Fix display of truncated R2L lines 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.
166e930d
EZ
7 (display_line): Fix prepending of truncation glyphs to R2L rows.
8 (insert_left_trunc_glyphs): Support addition of left truncation
9 glyphs to R2L rows.
59ca28de 10
4fc85283
EZ
112010-04-27 Eli Zaretskii <eliz@gnu.org>
12
13 * xdisp.c (set_cursor_from_row): Fix a crash when a display string
14 is continued to the next line.
15
7482731a
EZ
162010-04-25 Eli Zaretskii <eliz@gnu.org>
17
18 * xdisp.c (set_cursor_from_row): Don't return zero if cursor was
19 found by `cursor' property of a display string.
20 (display_line): Preserve overlay and string info in row->end.
21
adf4f59c
EZ
222010-04-25 Eli Zaretskii <eliz@gnu.org>
23
24 * xdisp.c (display_line): Fix crash with bidi display on the last
25 empty line. (Bug#6030)
f538fcec
EZ
26 (iterate_out_of_display_property): New function, body from pop_it.
27 (pop_it): Use it.
adf4f59c 28
76db6fcc
EZ
292010-04-24 Eli Zaretskii <eliz@gnu.org>
30
a49884a6
EZ
31 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
32 use `get_next_display_element' and `set_iterator_to_next' to
33 advance to the next character, when looking for the character that
34 begins the next row.
35
76db6fcc
EZ
36 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
37 definition of "struct Lisp_Symbol".
38
8785b888
EZ
392010-04-23 Eli Zaretskii <eliz@gnu.org>
40
41 * xdisp.c (pop_it): When the stack is popped after displaying
42 from a string, bidi-iterate to exit from the text portion covered
43 by the `display' property or overlay. (Bug#5988, bug#5920)
b893a150
EZ
44 (set_iterator_to_next, next_element_from_composition): Fix display
45 of composed characters from L2R scripts in bidi buffers.
46 (Bug#5977)
8785b888 47
feeb1604
DN
482010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
49
809fcaba
DN
50 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
51 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
52
ed710380
DN
53 Simplify STARTFILES definition.
54 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
55 relying on Makefile.in to define it.
56 * s/cygwin.h (START_FILES): Likewise.
57 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
58
feeb1604
DN
59 Clean up Solaris code.
60 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
61 (LIB_MOTIF): Remove, configure takes care of this.
62 (NOT_USING_MOTIF): Remove, unused.
63 * xrdb.c: Remove #if 0-ed #include.
64 (SYSV): Remove conditional for old SysV.
65 * sysdep.c (closedir): Remove conditional code for Solaris,
66 Solaris has closedir.
67
a0d0b563
JD
682010-04-22 Jan Djärv <jan.h.d@swipnet.se>
69
70 * xsettings.c (read_and_apply_settings): Check if current_font is
71 NULL before strcmp (Bug#6001).
72
56bae7c7
DN
732010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
74
75 Clean up HP-UX files.
76 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
77 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
78 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
79 * s/hpux10-20.h: ... to the only user, here.
80
372b7a95
EZ
812010-04-21 Eli Zaretskii <eliz@gnu.org>
82
83 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
84 use buffer-local values of paragraph-start and paragraph-separate.
85 <paragraph_start_re, paragraph_separate_re>: Rename from
86 fallback_paragraph_start_re and fallback_paragraph_separate_re.
87 (Bug#5992)
88
f904c0f9
JD
892010-04-21 Jan Djärv <jan.h.d@swipnet.se>
90
91 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
92 current_tool_bar_style are new.
93 (store_config_changed_event): Rename from store_font_changed_event.
94 (XSETTINGS_TOOL_BAR_STYLE): New define.
95 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
96 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
97 HAVE_XFT.
98 (something_changedCB): store_font_changed_event is now
99 store_config_changed_event
100 (parse_settings): Rename from parse_xft_settings. Read
101 non-xft xsettings outside #ifdef HAVE_XFT.
102 (read_settings): Renamed from read_xft_settings.
103 (apply_xft_settings): Take current settings as parameter. Do not
104 call read_(xft)_settings.
105 (read_and_apply_settings): New function.
106 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
107 read_and_apply_settings if there are settings to be read.
108 (init_xsettings): Renamed from init_xfd_settings.
109 Call read_and_apply_settings unconditionally.
110 (xsettings_initialize): Call init_xsettings.
111 (Ftool_bar_get_system_style): New function.
112 (syms_of_xsettings): Define Qmonospace_font_name and
113 Qtool_bar_style. Initialize current_tool_bar_style to nil.
114 defsubr Stool_bar_get_system_style. Fprovide on
115 dynamic-setting.
31a01b90 116 Move misplaced HAVE_GCONF
f904c0f9
JD
117
118 * xsettings.h (Ftool_bar_get_system_style): Declare.
119
120 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
121 Qtext, Qboth, Qboth_horiz are new.
122 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
123 Vtool_bar_style, tool_bar_max_label_size.
124
125 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
126
127 * keyboard.c: QClabel is new.
128 (parse_tool_bar_item): Take out QClabel from tool bar items.
129 Try to construct a label if ther is no QClabel.
130 (syms_of_keyboard): Intern :label as QClabel.
131
132 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
133 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
134 New.
135
136 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
137 dynamic-setting.el.
138
139 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
140 (xg_make_tool_item, xg_show_toolbar_item): New function.
141 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
142 Call xg_make_tool_item to make a tool bar item.
143 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
144
145 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
146 into account for toolbars.
147
c632dfda
JD
1482010-04-21 Jan Djärv <jan.h.d@swipnet.se>
149
150 * data.c (make_blv): Declarations before code (Bug#5993).
151
10efe302
GM
1522010-04-21 Glenn Morris <rgm@gnu.org>
153
154 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
155 Define using autoconf, not cpp.
156 (LIBXSM): New variable, set by autoconf.
157 (LIBXT): Use $LIBXSM.
158
4285ac5a
DN
1592010-04-21 Dan Nicolaescu <local_user@dannlt>
160
3ec759e7
DN
161 Remove NOMULTIPLEJOBS, unused.
162 * s/template.h (NOMULTIPLEJOBS):
163 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
164
4285ac5a
DN
165 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
166 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
167 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
168 detects -znocombreloc and passes it to the linker
169 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
170
2807228d
GM
1712010-04-21 Glenn Morris <rgm@gnu.org>
172
173 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
174
574c05e2
KK
1752010-04-21 Karel Klíč <kklic@redhat.com>
176
177 * Makefile.in (LIBSELINUX_LIBS): New.
178 (LIBES): Add $LIBSELINUX_LIBS.
179 * eval.c, lisp.h (call7): New function.
180 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
181 (Ffile_selinux_context, Fset_file_selinux_context):
182 New functions.
183 (Fcopy_file): New parameter preserve-selinux-context.
184 (Frename_file): Preserve selinux context when renaming by copy-file.
185
91eac4bb
JB
1862010-04-21 Juanma Barranquero <lekktu@gmail.com>
187 Eli Zaretskii <eliz@gnu.org>
188
50426a04
JB
189 Don't depend on cm.c or termcap.c on Windows, use stubs.
190 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
191 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
192 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
193 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
194 (sys_tputs, sys_tgetstr): New stubs.
195 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
196 (tputs, tgetstr): New; define to sys_*.
91eac4bb 197
938efb77
JB
1982010-04-20 Juanma Barranquero <lekktu@gmail.com>
199
200 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
201
b4bf28b7
SM
2022010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
203
8b1e1112
SM
204 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
205 Just signal a warning rather than an error when inside a let.
206 (Fmake_variable_frame_local): Add the same test.
207
933ac235
SM
208 * font.c (syms_of_font): Make the style table vars read-only.
209
b4bf28b7
SM
210 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
211 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
212
213 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
214
93d68d0c
EZ
2152010-04-20 Eli Zaretskii <eliz@gnu.org>
216
217 Fix R2L paragraph display on TTY.
218
219 * xdisp.c (unproduce_glyphs): New function.
220 (display_line): Use it when produced glyphs are discarded from R2L
221 glyph rows.
222 (append_composite_glyph): In R2L rows, prepend the glyph rather
223 than appending it.
224
225 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
226 rather than append it. Set up the resolved_level and bidi_type
227 attributes of the appended glyph.
283ccc18
EZ
228 (produce_special_glyphs): Mirror the backslash continuation
229 character in R2L lines.
93d68d0c 230
283ccc18 231 Implement display of R2L paragraphs in GUI sessions.
26cdf528 232
283ccc18
EZ
233 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
234 append_stretch_glyph.
235 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
236 off-by-one error in computing x at end of text in the row.
237 (append_stretch_glyph): In reversed row, prepend the glyph rather
238 than append it. Set resolved_level and bidi_type of the glyph.
239 (extend_face_to_end_of_line): If the row is reversed, prepend a
240 stretch glyph whose width is such that the rightmost glyph will be
241 drawn at the right margin of the window. Fix off-by-one error on
242 TTY frames in testing whether a line needs face extension. Fix
243 face extension at ZV. If this is the last glyph row, use
244 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
245 region face.
246 (set_cursor_from_row, display_line): Use
26cdf528
EZ
247 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
248 row->continuation_lines_width.
283ccc18
EZ
249 (next_element_from_buffer): Don't call bidi_paragraph_init if we
250 are at ZV. Fixes a crash when reseated to ZV by
251 try_window_reusing_current_matrix.
45903529
EZ
252 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
253 which happens with R2L glyph rows. Fixes a crash when inserting a
254 character at end of an R2L line.
283ccc18
EZ
255 (set_cursor_from_row): Don't be fooled by truncated rows: don't
256 treat them as having zero-width characters. Improve comments.
257 Don't reverse pos_before and pos_after for reversed glyph rows.
258 Set cursor.x to negative value when the cursor might be on the
259 left fringe.
260 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
261 left fringe, not the right one.
f951a506
EZ
262 (notice_overwritten_cursor, draw_phys_cursor_glyph)
263 (erase_phys_cursor): For reversed cursor_row, support cursor on
264 the left fringe.
265
283ccc18
EZ
266 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
267 of continuation indicators on the fringes.
268 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
269 left fringe.
270
f951a506
EZ
271 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
272 draw cursor on the left fringe.
273
274 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
275 cursor on the left fringe.
276
f951a506
EZ
277 * dispnew.c (update_text_area): Handle reversed desired rows when
278 the cursor is on the left fringe.
279 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
280 below, not by 0, for when the cursor is on the left fringe.
281
3bb49aaf
JD
2822010-04-20 Jan Djärv <jan.h.d@swipnet.se>
283
284 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
285 widget is a scrollbar.
286
c0be27fd
KH
2872010-04-20 Kenichi Handa <handa@m17n.org>
288
289 * charset.c (char_charset): Consider Vcharset_non_preferred_head
290 only when the arg CHARSET_LIST is nil.
291
ce5b453a
SM
2922010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
293
294 Make variable forwarding explicit rather the using special values.
295 Basically, this makes the structure of buffer-local values and object
296 forwarding explicit in the type of Lisp_Symbols rather than use
297 special Lisp_Objects for that. This tends to lead to slightly more
298 verbose code, but is more C-like, simpler, and makes it easier to make
299 sure we handled all cases, among other things by letting the compiler
300 help us check it.
301 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
302 Removing forwarding objects.
303 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
304 (struct Lisp_Symbol): Make the various forms of variable-forwarding
305 explicit rather than hiding them inside Lisp_Object "values".
306 (XFWDTYPE): New macro.
307 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
308 (XBUFFER_LOCAL_VALUE): Remove.
309 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
310 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
311 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
312 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
313 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
314 Remove the Lisp_Misc_* header.
315 (struct Lisp_Buffer_Local_Value): Redefine.
316 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
317 (struct Lisp_Misc_Any): Add filler to get the right size.
318 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
319 Lisp_Intfwd.
320 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
321 (DEFVAR_KBOARD): Allocate a forwarding object.
322 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
323 (let_shadows_global_binding_p): New function.
324 (union Lisp_Val_Fwd): New type.
325 (make_blv): New function.
326 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
327 (store_symval_forwarding, swap_in_global_binding, Fboundp)
328 (swap_in_symval_forwarding, find_symbol_value, Fset)
329 (let_shadows_buffer_binding_p, set_internal, default_value)
330 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
331 (Fkill_local_variable, Fmake_variable_frame_local)
332 (Flocal_variable_p, Flocal_variable_if_set_p)
333 (Fvariable_binding_locus):
334 * xdisp.c (select_frame_for_redisplay):
335 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
336 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
337 * frame.c (store_frame_param):
338 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
339 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
340 value structure.
341 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
342 (clone_per_buffer_values): Only adjust markers into the current buffer.
343 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
344 (Fbuffer_local_value, set_buffer_internal_1)
345 (swap_out_buffer_local_variables):
346 Adapt to the new symbol value structure.
347 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
348 (defvar_per_buffer): Take a new arg for the fwd object.
349 (buffer_lisp_local_variables): Return a proper alist (different fix
350 for bug#4138).
351 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
352 (Fgarbage_collect): Don't handle buffer_defaults specially.
353 (mark_object): Handle new symbol value structure rather than the old
354 special Lisp_Misc_* objects.
355 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
356 * term.c (set_tty_color_mode):
357 * bidi.c (bidi_initialize): Don't access the ->value field directly.
358 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
359 a buffer_local_flags.
360 * print.c (print_object): Get rid of impossible forwarding objects.
361
fd3998ff
EZ
3622010-04-19 Eli Zaretskii <eliz@gnu.org>
363
364 * bidi.c (bidi_get_type, bidi_get_category)
365 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
366 (bidi_type_of_next_char, bidi_level_of_next_char):
367 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 368
e42cd1a7
JB
3692010-04-19 Juanma Barranquero <lekktu@gmail.com>
370
371 * dired.c (Ffile_attributes): Fix typo in docstring.
372
6e104790 3732010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
374
375 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
376 NSInteger (Bug#5811).
377
6e104790 3782010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
379
380 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
381 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
382
6e104790 3832010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
384
385 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
386
6e104790
SM
3872010-04-19 Chong Yidong <cyd@stupidchicken.com>
388
389 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
390 terminal frames (Bug#5837).
391
37dcfea0
EZ
3922010-04-19 Eli Zaretskii <eliz@gnu.org>
393
d1da276f
EZ
394 * .gdbinit (xsubchartable): New command.
395
37dcfea0
EZ
3962010-04-19 Eli Zaretskii <eliz@gnu.org>
397
398 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 399 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
400 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
401 and
402 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
403
e9515805
SM
4042010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
405
406 * alloc.c (Fpurecopy): Hash-cons if requested.
407 (syms_of_alloc): Update purify-flag docstring.
408
22aa44a8
JD
4092010-04-18 Jan Djärv <jan.h.d@swipnet.se>
410
411 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
412 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
413
ebb5722e
EZ
4142010-04-17 Eli Zaretskii <eliz@gnu.org>
415
416 Fix a crash when an NSM character is inserted at BEGV.
417
418 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
419 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
420 NEUTRAL_B or UNKNOWN_BT.
421
0f4442ef
EZ
4222010-04-16 Eli Zaretskii <eliz@gnu.org>
423
424 * xdisp.c (set_cursor_from_row): Don't consider possibility of
425 other rows with cursor unless they are different from this row and
426 this row is part of a continued line. (Bug#5943)
427
7d4e45f8
DN
4282010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
429
430 * s/freebsd.h: Restore osreldate.h include.
431 Suggested by Naohiro Aota.
432
5ba5ec85
J
4332010-04-16 Jan Djärv <jan.h.d@swipnet.se>
434
435 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
436
20af301d
CY
4372010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
438
439 * s/cygwin.h: Avoid linking against static libgcc.
440
a4b000fb
JL
4412010-04-15 Juri Linkov <juri@jurta.org>
442
443 * window.c: Add Qscroll_command.
444 Remove Vscroll_preserve_screen_position_commands.
445 (window_scroll_pixel_based, window_scroll_line_based): Check the
446 `scroll-command' property on the last command instead of searching
447 the last command in Vscroll_preserve_screen_position_commands.
448 (syms_of_window): Initialize and staticpro `Qscroll_command'.
449 Put Qscroll_command property on Qscroll_up and Qscroll_down.
450 (scroll-preserve-screen-position): Doc fix.
451 (Vscroll_preserve_screen_position_commands): Remove variable.
452
bc319ba4
DN
4532010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
454
6bb24457
DN
455 * xdisp.c (message): Do not use NO_ARG_ARRAY.
456
19d4c244
DN
4572010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
458
459 Reduce cpp use in Makefile.in.
460 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
461 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
462 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
463 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
464 (CRT0_COMPILE): Remove, inline it in the only user.
465
32129746
JL
4662010-04-14 Juri Linkov <juri@jurta.org>
467
468 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
469 `scroll-up-command' and `M-v' from `scroll-down' to
470 `scroll-down-command'.
471
9013a7f8
JL
4722010-04-14 Juri Linkov <juri@jurta.org>
473
474 * window.c (Vscroll_preserve_screen_position_commands): New variable
475 with the default value as the list of Qscroll_down and Qscroll_up.
476 (window_scroll_pixel_based, window_scroll_line_based): Search the
477 last command in the list Vscroll_preserve_screen_position_commands
478 instead of comparing with Qscroll_up and Qscroll_down.
479
4bef8d26
JD
4802010-04-13 Jan Djärv <jan.h.d@swipnet.se>
481
92848133
JD
482 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
483 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
484 does that.
485
4bef8d26
JD
486 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
487 to zero.
488
58b963f7
SM
4892010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
490
84164a0d
SM
491 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
492
2b0a91e7
SM
493 Try to solve the problem of spurious EOF chars in long lines of text
494 sent to interactive subprocesses.
495 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
496 (system_process_attributes): Remove unused var `ttotal'.
497 * process.c (send_process): Don't bother breaking long line with EOF
498 chars when talking to ttys any more.
499 (wait_reading_process_output): Output a warning when called in such
500 a way that it could block without being interruptible.
501
58b963f7
SM
502 Try to detect file modification within the same second.
503 * buffer.h (struct buffer): New field modtime_size.
504 * buffer.c (reset_buffer): Initialize it.
505 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
506 (Fverify_visited_file_modtime): Check it.
507 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
508 (Fset_visited_file_modtime): Set (or clear) it.
509
01f5787b
SM
5102010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
511
512 * process.c (status_notify): Remove unused var `ro'.
513
83725342
JD
5142010-04-12 Jan Djärv <jan.h.d@swipnet.se>
515
516 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
517 more than one visual (Bug#5938).
518
b9465836
DN
5192010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
520
50426a04
JB
521 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
522 Undefine.
b9465836 523
8d9c8ece
DN
5242010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
525
b1f52161
DN
526 Remove C_SWITCH_SYSTEM_TEMACS.
527 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
528 (malloc, realloc, free): Use emacs, not temacs for conditional
529 definition.
530
531 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
532 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
533
8d9c8ece
DN
534 Use autoconf, not cpp for some variables.
535 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
536 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
537 (ALL_CFLAGS): Use them as make variables.
538 (really-lwlib, really-oldXMenu): Do not pass them.
539
1ecb2d3f
JD
5402010-04-11 Jan Djärv <jan.h.d@swipnet.se>
541
542 * xmenu.c (apply_systemfont_to_dialog): New.
543 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
544
3a4fa2f2
SM
5452010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
546
97e53006
SM
547 * process.c (exec_sentinel): Preserve current-buffer.
548
3a4fa2f2
SM
549 * process.c (read_process_output): Move the save-current-buffer to
550 apply to both the filter and the non-filter branches.
551
88df7221
DN
5522010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
553
554 * s/msdos.h (UNEXEC): New definition.
555
5634ff85
YM
5562010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
557
6eff5c3d
YM
558 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
559 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
560
561 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
562 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
563 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
564 TRY_WINDOW_CHECK_MARGINS.
565
566 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
567 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
568 width only when it is for padding.
5634ff85 569
b13aef54
J
5702010-04-09 Jan Djärv <jan.h.d@swipnet.se>
571
572 * xfns.c (Fx_show_tip): Call try_window in a loop until
573 fonts_changed_p is zero (Bug#2423).
574
21d28484
EZ
5752010-04-08 Eli Zaretskii <eliz@gnu.org>
576
577 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
578 the end of TEXT_AREA. (Bug#5856)
579
0269ef77
JD
5802010-04-08 Jan Djärv <jan.h.d@swipnet.se>
581
582 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
583 HAVE_GCONF.
584
5930fe97
EZ
5852010-04-08 Eli Zaretskii <eliz@gnu.org>
586
587 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
588 prev.orig_type, for resolving type of NSM. (Bug#5858)
589
99852628
JD
5902010-04-08 Jan Djärv <jan.h.d@swipnet.se>
591
592 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
593 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
594 in current_font.
595 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
596 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
597 New functions.
598 (syms_of_xsettings): Initialize current_font.
599 defsubr Sfont_get_system_normal_font.
99852628
JD
600
601 * xsettings.h (Ffont_get_system_normal_font,
602 xsettings_get_system_normal_font): Declare.
603
604 * xfns.c (extern xlwmenu_default_font): Remove.
605 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
606 to xlwmenu.c.
607
608 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
609 menu items in UTF-8.
610
611 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
612 (apply_systemfont_to_menu): New function.
613 (set_frame_menubar, create_and_show_popup_menu): Call
614 apply_systemfont_to_menu.
615
7fc874c4
J
6162010-04-07 Jan Djärv <jan.h.d@swipnet.se>
617
618 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
619 FRAME_LINE_TO_PIXEL_Y.
620
621 * xterm.c (x_set_window_size_1): Don't add border_width/height to
622 pixelwidth/height.
623
863bf481
DN
6242010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
625
5e5a3b92
DN
626 Simplify code for HP machines.
627 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
628 for GNU_LINUX, not needed.
629 (UNEXEC, NEED_BSDTTY): Move definitions...
630 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
631
863bf481
DN
632 * m/iris4d.h (UNEXEC): Move definition ...
633 * s/irix6-5.h (UNEXEC): ... here.
634
3e6bec3b
JD
6352010-04-04 Jan Djärv <jan.h.d@swipnet.se>
636
637 * xfns.c (set_machine_and_pid_properties): New function.
638 (Fx_create_frame): Call set_machine_and_pid_properties.
639
2912322b
SM
6402010-04-03 Eli Zaretskii <eliz@gnu.org>
641
1502b819
EZ
642 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
643 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
644 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
645
2912322b
SM
646 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
647 in this function. (Bug#5703)
648
6492010-04-03 Chong Yidong <cyd@stupidchicken.com>
650
651 * nsterm.h: Fix last change.
652
c435b432
DN
6532010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
654
a568f507
DN
655 * m/intel386.h (NO_REMAP): Move definition ...
656 * s/msdos.h (NO_REMAP): ... here.
657
4cd9f6c2
DN
658 * m/vax.h (CRT0_DUMMIES): Remove, unused.
659
c435b432
DN
660 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
661 used on those platforms.
662
42a2c622
DN
6632010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
664
665 Remove extern errno declarations.
666 * xterm.c:
667 * xrdb.c:
668 * w32term.c:
669 * unexec.c:
670 * unexaix.c:
671 * sysdep.c:
672 * process.c:
673 * lread.c:
674 * keyboard.c:
675 * floatfns.c:
676 * filelock.c:
677 * fileio.c:
678 * emacs.c (main):
679 * ecrt0.c:
680 * dispnew.c:
681 * callproc.c:
682 * buffer.c: Remove errno extern declarations.
683 * s/netbsd.h (NEED_ERRNO): Remove.
684
8224f93d
DN
6852010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
686
687 Remove all uses of LIBX11_SYSTEM.
688 * Makefile.in (LIBX11_SYSTEM): Remove.
689 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
690 instead.
691
814062c7
EZ
6922010-04-01 Eli Zaretskii <eliz@gnu.org>
693
ed68db4d
EZ
694 Remove support for DJGPP v1.x (bug#5813).
695
696 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
697 * s/msdos.h:
698 * unexec.c (make_hdr, copy_text_and_data):
699 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 700 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
701 (IT_set_terminal_modes, __write, _rename, gethostname)
702 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
703 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
704 the value of __DJGPP__.
ed68db4d
EZ
705 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
706 compatibility code.
8224f93d
DN
707 * lread.c:
708 * gmalloc.c (memalign):
709 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
710 * emacs.c (main):
711 * dosfns.c (init_dosfns):
ed68db4d
EZ
712 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
713
52f4d8d5
EZ
7142010-04-01 Eli Zaretskii <eliz@gnu.org>
715
814062c7
EZ
716 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
717 string with `cursor' property comes from an `after-string'
718 overlay. (Bug#5816)
719
0dc2e11d
GM
7202010-04-01 Glenn Morris <rgm@gnu.org>
721
722 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
723 Define as Makefile variables.
724 (LIBX): Use above variables rather than directly using autoconf.
725
1d29df59
DN
7262010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
727
728 Clean up BSD_SYSTEM use.
729 * xterm.c:
730 * process.c:
731 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
732 for including <sys/ioctl.h>.
733 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
734 code is only used for MSDOS.
735
1546c559
JL
7362010-03-31 Juri Linkov <juri@jurta.org>
737
738 * image.c: Add `Qextension_data'.
739 (syms_of_image): Initialize and staticpro `Qextension_data'.
740 (Fimage_metadata): Rename from `Fimage_extension_data'.
741 (gif_load): Put GIF extension data to the property
742 `Qextension_data'.
743
b8a1d5a1
CY
7442010-04-05 Chong Yidong <cyd@stupidchicken.com>
745
746 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
747 terminal frames (Bug#5837).
748
6521c534
CY
7492010-03-31 Chong Yidong <cyd@stupidchicken.com>
750
751 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
752 * nsterm.h: Fix prototype.
753
52c30783
EZ
7542010-03-31 Eli Zaretskii <eliz@gnu.org>
755
756 * xdisp.c (highlight_trailing_whitespace): Support highlight of
757 trailing whitespace in right-to-left rows.
758
855a0da7
SM
7592010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
760
761 Get rid of the direct_output optimizations.
762 * keyboard.c (nonundocount): Remove extern declaration.
763 (command_loop_1): Remove brittle optimisation for cheap and
764 common operations.
765 * xdisp.c (redisplay_internal): Don't bother checking
766 redisplay_performed_directly_p any more.
767 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
768 any more.
769 * dispnew.c (redisplay_performed_directly_p)
770 (direct_output_for_insert, direct_output_forward_char):
771 * dispextern.h (redisplay_performed_directly_p)
772 (direct_output_for_insert, direct_output_forward_char): Remove.
773 * cmds.c (nonundocount): Make it static.
774
85738751 7752010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
776
777 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
778
85738751 7792010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
780
781 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
782 invisible (Bug#5766).
783
85738751 7842010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 785
855a0da7
SM
786 * xdisp.c (x_consider_frame_title, update_window_cursor):
787 Remove HAVE_NS conditionals.
194d44e7 788 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
789
790 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
791 filename for the title.
792 (ns_set_doc_edited): Do nothing if the selected window is a
793 minibuffer window.
794
795 * nsterm.h: Add prototypes for ns_set_name_as_filename and
796 ns_set_doc_edited.
797
798 * nsterm.m: Remove unneeded prototype.
799
85738751 8002010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
801
802 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
803 in the DOC file. (Bug#5336)
804
85738751 8052010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
806
807 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
808
75d1428c
SM
8092010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
810
811 * window.c (keys_of_window): Remove redundant/overridden bindings.
812
82043cfb
EZ
8132010-03-30 Eli Zaretskii <eliz@gnu.org>
814
815 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
816 Restore original behavior when the iterator is not bidi_p.
817
b5dd0ae7
DN
8182010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
819
820 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
821
bd924a5d
EZ
8222010-03-30 Eli Zaretskii <eliz@gnu.org>
823
824 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
825 are outside the range of cached character positions.
826
3580374b
JB
8272010-03-30 Juanma Barranquero <lekktu@gmail.com>
828
829 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
830
a7b02820
EZ
8312010-03-30 Eli Zaretskii <eliz@gnu.org>
832
833 Initial support for bidirectional editing.
834
835 * Makefile.in (obj): Include bidi.o.
836 (bidi.o): New target.
837
838 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
839 ($(BLD)/bidi.$(O)): New target.
840
841 * bidi.c: New file.
842
843 * buffer.h (struct buffer): New members bidi_display_reordering
844 and bidi_paragraph_direction.
845
846 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
847 and bidi_paragraph_direction.
848 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
849 and bidi-paragraph-direction.
850 (Fbuffer_swap_text): Swap the values of
851 bidi_display_reordering and bidi_paragraph_direction.
852
853 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
854 (bidi_type_t, bidi_dir_t): New types.
855 (bidi_saved_info, bidi_stack, bidi_it): New structures.
856 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
857 prev_stop, base_level_stop, and eol_pos.
858 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
859 (IT_STACK_SIZE): Enlarge to 5.
860 (struct glyph_row): New member reversed_p.
861 <string_buffer_position>: Update prototype.
862 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
863 glyph_row if bidi_it.paragraph_dir == R2L.
864 (struct glyph): New members resolved_level and bidi_type.
865
866 * dispnew.c (direct_output_forward_char): Give up if we need bidi
867 processing or buffer's direction is right-to-left.
868 (prepare_desired_row): Preserve the reversed_p flag.
869 (row_equal_p): Compare the reversed_p attributes as well.
870
871 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
872 bidi_init_it and set it->paragraph_embedding from the current
873 buffer's value of bidi_paragraph_direction.
874 (reseat_1): Initialize bidi_it.first_elt.
875 (set_iterator_to_next, next_element_from_buffer): Use the value of
876 paragraph_embedding to determine the paragraph direction.
877 (set_iterator_to_next): Under bidi reordering, call
878 bidi_get_next_char_visually. Call bidi_paragraph_init if the
879 new_paragraph flag is set in the bidi iterator.
880 (next_element_from_buffer): If bidi_it.first_elt is set,
881 initialize paragraph direction and find the first character to
882 display in the visual order. If reseated to a middle of a line,
883 prime the bidi iterator starting at the line's beginning. Handle
884 the situation where we overstepped stop_charpos due to
885 non-linearity of the bidi iteration. Likewise for when we back up
886 beyond the previous stop_charpos. When moving across stop_charpos,
887 record it in prev_stop.
888 (display_line): Set row->end and it->start for the next row to the
889 next character in logical order. Always extend reversed_p rows to
890 the end of line, even if they end at ZV. Copy the reversed_p flag
891 to the next glyph row. Keep calling set_cursor_from_row for
892 bidi-reordered rows even if we already have a possible candidate
893 for cursor position. Set row_end after all the row's glyphs have
894 been produced, by looping over the glyphs. Record the position
895 after EOL in it->eol_pos, and use it to set end_pos of the last
896 row produced for a continued line.
897 <Qright_to_left, Qleft_to_right>: New variables.
898 (syms_of_xdisp): Initialize and staticpro them.
899 (string_buffer_position_lim): New function.
900 (string_buffer_position): Most of code moved to
901 string_buffer_position_lim. Last argument and return value are
902 now EMACS_INT; all callers changed.
903 (set_cursor_from_row): Rewritten to support bidirectional text and
904 reversed glyph rows.
905 (text_outside_line_unchanged_p, try_window_id): Disable
906 optimizations if we are reordering bidirectional text and the
907 paragraph direction can be affected by the change.
908 (append_glyph, append_composite_glyph)
909 (produce_image_glyph, append_stretch_glyph): Set the
910 resolved_level and bidi_type members of each glyph.
911 (append_glyph): If the glyph row is reversed, prepend the glyph
912 rather than appending it.
913 (handle_stop_backwards): New function.
914 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
915 (reseat): call handle_stop_backwards to recompute prev_stop and
916 base_level_stop for the new position.
917 (handle_invisible_prop): Under bidi iteration, skip invisible text
918 using bidi_get_next_char_visually. If we are `reseat'ed, init the
919 paragraph direction. Update IT->prev_stop after skipping
920 invisible text.
921 (move_it_in_display_line_to): New variables prev_method
922 and prev_pos. Compare for strict equality in
923 BUFFER_POS_REACHED_P.
924 (try_cursor_movement): Examine all the candidate rows that occlude
925 point, to return the best match. If rows are bidi-reordered
926 and point moved backwards, back up to the row that is not a
927 continuation line, and start looking for a suitable row from
928 there.
929
930 * term.c (append_glyph): Reverse glyphs by pre-pending them,
931 rather than appending, if the glyph_row's reversed_p flag is set.
932 Set the resolved_level and bidi_type members of each glyph.
933
934 * .gdbinit (pbiditype): New command.
935 (pgx): Use it to display bidi level and type of the glyph.
936 (pitx): Display some bidi information about the iterator.
937 (prowlims, pmtxrows): New commands.
938
32a8894e
DN
9392010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
940
941 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
942 * s/usg5-4.h (LIBS_DEBUG):
943 * s/irix6-5.h (C_DEBUG_SWITCH):
944 * s/gnu-linux.h (LIBS_DEBUG):
945 * s/darwin.h (LIBS_DEBUG):
946 * s/bsd-common.h (LIBS_DEBUG):
947 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
948 * m/iris4d.h (LIBS_DEBUG):
949 * m/hp800.h (LIBS_DEBUG): Remove definitions.
950
951 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
952 (LIBS_DEBUG): Remove definition.
953
649dbf36
CY
9542010-03-27 Chong Yidong <cyd@stupidchicken.com>
955
956 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
957 Windows.
958
cad4261f
YM
9592010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
960
961 * process.c (Fmake_network_process): Don't call turn_on_atimers around
962 `connect' (Bug#5723).
963
cd591dbc
HE
9642010-03-25 Helmut Eller <eller.helmut@gmail.com>
965
966 * process.c (Fmake_network_process): Call `select' for interrupted
967 `connect' rather than creating new socket (Bug#5173).
968
e867cb5d 9692010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
970
971 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
972
973 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
974
975 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
976
e867cb5d 9772010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
978
979 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
980 XLoadQueryFont.
981
e867cb5d 9822010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
983
984 * coding.c (decode_coding_ccl): Fix previous change for the
985 multibyte case.
fb608df3
KH
986 (encode_coding_ccl): Don't setup ccl program here. Fix for the
987 case that the output buffer is fullfilled.
988 (encode_coding): Setup ccl program here.
fbdc1721 989
e867cb5d 9902010-03-24 Andreas Politz <politza@fh-trier.de> (tiny change)
35cd7cd6
CY
991
992 * editfns.c (Fformat): Account for string precision when computing
993 field width (Bug#5710).
994
5845f0ed
DN
9952010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
996
814fb708
DN
997 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
998
5845f0ed
DN
999 Simplify LIBS_MACHINE definitions.
1000 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
1001 * m/iris4d.h (LIBS_MACHINE): Likewise.
1002 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
1003 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 1004 * s/netbsd.h: Remove commented out code.
5845f0ed 1005
b7064064
DN
10062010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
1007
df7734b2
DN
1008 Remove dead code dealing with POSIX_SIGNALS.
1009 * atimer.c (set_alarm): Remove dead code, all USG systems define
1010 POSIX_SIGNALS.
1011 * data.c (arith_error): Likewise.
1012 * keyboard.c (input_available_signal, handle_user_signal)
1013 (interrupt_signal): Likewise.
1014 * process.c (sigchld_handler): Likewise.
1015 (create_process): Remove if 0 code. Remove HPUX conditional when
1016 !defined (POSIX_SIGNALS), it cannot be true.
1017 * syssignal.h: Remove USG5_4 and USG conditionals when
1018 !POSIX_SIGNALS, they cannot be true.
1019
b7064064
DN
1020 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
1021 NO_SOCK_SIGIO, not used anymore.
1022
55da5ee3
DN
10232010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
1024
0be96e3a
DN
1025 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
1026 support vax on BSDs.
1027
55da5ee3
DN
1028 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
1029 * s/aix4-2.h (ORDINARY_LINK): ... here.
1030
c0282183
AS
10312010-03-21 Andreas Schwab <schwab@linux-m68k.org>
1032
82c3d67a
AS
1033 * Makefile.in (abs_builddir): Define.
1034 (bootstrap_exe): Use it.
1035 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 1036
3613edce
SM
10372010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
1038
1039 * Makefile.in (bootstrap_exe): Use an absolute name.
1040
7f110ddc
DN
10412010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
1042
22e87574
DN
1043 Remove support for old GNU/Linux using libc version 5.
1044 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
1045 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
1046
05a670e6
DN
1047 Consolidate redundant definitions in s/bsd-common.h.
1048 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1049 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1050 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
1051 doing it in all files that include this one.
1052 * s/gnu.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/freebsd.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 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
1059 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
1060 (LDAV_SYMBOL, KERNEL_FILE): Remove.
1061
2968f561
DN
1062 Consolidate redundant definitions.
1063 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
1064 it's undefined in all files that include this one.
1065 (POSIX_SIGNALS): Define here instead of doing it in all files that
1066 include this one.
1067 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
1068 (POSIX_SIGNALS): Do not define.
1069 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
1070 (POSIX_SIGNALS): Do not define.
1071 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
1072 (POSIX_SIGNALS): Do not define.
1073
15d25dc0
DN
1074 Remove support for old UNIX System V systems.
1075 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
1076 * s/usg-5-4-2.h: Remove.
1077
07e339e4
DN
1078 Remove support for Solaris on PPC and for old versions.
1079 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
1080 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
1081 that cancel each other.
1082 * s/sol2-3.h:
1083 * s/sol2-4.h:
1084 * s/sol2-5.h: Remove.
1085 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
1086 (NO_REMAP): Remove, unused.
1087 (UNEXEC): Move definition ...
1088 * s/aix4-2.h (UNEXEC): ... here.
1089
7f110ddc
DN
1090 * s/openbsd.h: Remove support for non-ELF and for systems that do
1091 not support shared libraries.
1092 * s/netbsd.h:
1093 * s/freebsd.h: Likewise.
1094
605f35cd
DN
10952010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
1096
1097 Remove non-working support for lynxos 3.0.
1098 * s/lynxos.h: Remove file.
1099
1100 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
1101 COFF_BSD_SYMBOLS, nothing defines it anymore.
1102
aed71cf4
DN
11032010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
1104
1105 Remove obsolete uses of HAVE_SHM.
1106 * emacs.c (standard_args):
1107 (Fdump_emacs):
1108 (syms_of_emacs): Remove code depending on HAVE_SHM.
1109
1110 * alloc.c: Remove HAVE_SHM dependent definition.
1111
1112 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
1113
aded53ff
GM
11142010-03-18 Glenn Morris <rgm@gnu.org>
1115
17284745
GM
1116 * emacs.c (USAGE4): Hard-code bug address.
1117 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
1118 (bug_reporting_address): Remove.
1119 (main): Don't call bug_reporting_address.
1120
aded53ff
GM
1121 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
1122 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
1123
303500aa
CY
11242010-03-15 Chong Yidong <cyd@stupidchicken.com>
1125
1126 * xfns.c (Fx_create_frame):
1127 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
1128 on left.
1129
cef3058f
CY
11302010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
1131
1132 * editfns.c (Fformat): Account for string precision when computing
1133 field width (Bug#5710).
1134
a647d59d
CY
11352010-03-12 Chong Yidong <cyd@stupidchicken.com>
1136
4fa42018
CY
1137 * xfns.c (Fx_create_frame): Set default to Qright.
1138
a647d59d
CY
1139 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
1140 all window systems.
1141
6da23aaa
EZ
11422010-03-12 Eli Zaretskii <eliz@gnu.org>
1143
a96f6398 1144 These changes remove termcap.c from the build on Posix platforms.
83d02def 1145 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
1146 (MSDOS_OBJ): ...to here.
1147 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
1148 now identical to when LIBS_TERMCAP is defined.
1149
1150 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
1151
1152 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
1153
a96f6398 1154 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 1155
288f9fc0
CY
11562010-03-10 Chong Yidong <cyd@stupidchicken.com>
1157
1158 * Branch for 23.2.
1159
d48cd3f4
SM
11602010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
1161
1162 Cleanup setup of gl_state in various parts of the code.
1163 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
1164 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
1165 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
1166 (skip_chars):
1167 * regex.c (regex_compile): Use it.
1168 (re_compile_pattern): Don't set gl_state.current_syntax_table since
1169 it's now set in regex_compile when/if we need it.
1170
618db430
SM
11712010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
1172
c0335e02
SM
1173 Make it possible to C-g in a tight bytecode loop again (bug#5680).
1174 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
1175 (QUIT): Use it to consolidate code and remove redundancy.
1176 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
1177
254c06a8
SM
1178 * regex.c (regex_compile): Setup gl_state as well.
1179
618db430
SM
1180 * syntax.c (skip_chars): Setup gl_state (bug#3823).
1181 (in_classes): Use CONSP before XCAR/XCDR.
1182
233f0c9f
CY
11832010-03-03 Chong Yidong <cyd@stupidchicken.com>
1184
1185 * keymap.c (Fwhere_is_internal): Use Fequal to compare
1186 definitions, so that keyboard macros are correctly handled
1187 (Bug#5481).
1188
75f80e63
EZ
11892010-03-02 Eli Zaretskii <eliz@gnu.org>
1190
1191 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
1192 text that could be relocated inside the call to emacs_mule_char.
1193 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
1194 (CODING_DECODE_CHAR): Add a comment describing its purpose.
1195
dcfb9bc4
KH
11962010-03-02 Kenichi Handa <handa@m17n.org>
1197
fc9a17bc
KH
1198 * character.c (parse_str_as_multibyte): Fix handling of the
1199 multibyte form of raw-bytes.
1200 (str_as_multibyte): Likewise.
1201
dcfb9bc4
KH
1202 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
1203 form of raw-bytes.
1204
412c01b6
CY
12052010-02-28 Chong Yidong <cyd@stupidchicken.com>
1206
1207 * charset.c (load_charset_map_from_file)
1208 (load_charset_map_from_vector): Zero out allocated
1209 charset_map_entries before using them.
1210
df7e1ea0
AS
12112010-02-27 Andreas Schwab <schwab@linux-m68k.org>
1212
1213 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
1214
fe69a722
CY
12152010-02-27 Chong Yidong <cyd@stupidchicken.com>
1216
4ed28cf4
CY
1217 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
1218 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 1219
7379cfce
KH
12202010-02-26 Kenichi Handa <handa@m17n.org>
1221
f88cc4d6
KH
1222 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
1223
7379cfce
KH
1224 * xdisp.c (reseat_to_string): Fix previous change.
1225
cf2fdcfb
CY
12262010-02-26 David Reitter <david.reitter@gmail.com>
1227
1228 * nsfont.m (nsfont_draw): ns_antialias_text should be a
1229 Lisp_Object (Bug#4736).
1230
cc6c7c75
KH
12312010-02-25 Kenichi Handa <handa@m17n.org>
1232
1233 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
1234
32e737d7
JD
12352010-02-24 Jan Djärv <jan.h.d@swipnet.se>
1236
1237 * xterm.c (XTflash): Move declarations before statements.
1238
1239 * gtkutil.c (xg_get_gdk_display): Remove (unused).
1240 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
1241 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
1242 (xg_create_tool_bar): Remove unused variables.
1243 (x_wm_set_size_hint): Move declarations before statements.
1244 (xg_create_frame_widgets): Remove variable grav,
1245
676cae9f
CY
12462010-02-21 Chong Yidong <cyd@stupidchicken.com>
1247
1248 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
1249
886cc2b8
SM
12502010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1251
1252 * term.c (fatal): Add a final \n if needed (bug#5596).
1253
ddb2d8e2
CY
12542010-02-18 Chong Yidong <cyd@stupidchicken.com>
1255
1256 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
1257
2a4f8d3d
GM
12582010-02-18 Glenn Morris <rgm@gnu.org>
1259
1260 * callint.c (Finteractive): Doc fix.
1261
ebaf11b6
KH
12622010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
1263
886cc2b8
SM
1264 * coding.c (record_conversion_result):
1265 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
1266 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
1267 memory allocation error.
1268
d0396581
KH
12692010-02-17 Kenichi Handa <handa@m17n.org>
1270
886cc2b8
SM
1271 * coding.c (decode_coding_ccl): Don't setup ccl program here.
1272 Fix for the case that the output buffer is fullfilled.
d0396581
KH
1273 (decode_coding): Setup ccl program here. Keep looping when the
1274 decoder stopped because the output buffer is
1275 fullfilled (bug#5534).
1276
1277 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
1278
98599f74
JD
12792010-02-13 Jan Djärv <jan.h.d@swipnet.se>
1280
471e4f04 1281 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 1282 bug #5571.
886cc2b8 1283 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 1284 overdrawn.
98599f74 1285
182659ae
JD
12862010-02-10 Jan Djärv <jan.h.d@swipnet.se>
1287
1288 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
1289 doing_interact here.
1290 (ice_connection_closed): New function.
1291 (x_session_check_input, smc_die_CB, ice_io_error_handler)
1292 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
1293 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
1294 returns I/O error.
1295 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
1296 bug #5512.
1297
9be32c4e 12982010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
1299
1300 * nsfont.m (nsfont_open): The system's value for the font descent
1301 is negative, so round it down to avoid clipping.
1302
a2f3eb19
CY
13032010-02-06 Chong Yidong <cyd@stupidchicken.com>
1304
1305 * charset.c (load_charset_map_from_file)
1306 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 1307 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 1308
3088147c
CY
13092010-02-05 Chong Yidong <cyd@stupidchicken.com>
1310
1311 * charset.c (load_charset_map_from_file): Allocate large
1312 charset_map_entries structure on the heap rather than the stack.
1313 (Bug#5526).
1314
b57d9029
KH
13152010-01-31 Kenichi Handa <handa@m17n.org>
1316
1317 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 1318 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 1319
c67d885b
CY
13202010-01-31 Chong Yidong <cyd@stupidchicken.com>
1321
1322 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
1323 <deactivated@gmail.com> (Bug#3605).
1324
8fab2362
CY
13252010-01-31 David De La Harpe Golden <david@harpegolden.net>
1326
1327 * fileio.c (Frename_file): Correctly rename symlinks to
1328 directories (Bug#5496).
1329
cb2a62f2
CY
13302010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
1331
1332 * nsterm.m (ns_ring_bell): Handle visible bell like X.
1333
944c7a26
AS
13342010-01-30 Andreas Schwab <schwab@linux-m68k.org>
1335
1336 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
1337
c024ac08
CY
13382010-01-29 Chong Yidong <cyd@stupidchicken.com>
1339
1340 * frame.c (DEFAULT_ROWS): Change default to 35.
1341
1342 * xfns.c (x_default_font_parameter): Change default XFT font to
1343 monospace-10 (Bug#3643).
1344
af93af83
EZ
13452010-01-29 Eli Zaretskii <eliz@gnu.org>
1346
1347 * w32inevt.c (key_event): Remove unnecessary comparison of
1348 event->uChar.AsciiChar with 128.
1349
ca0eb708
CY
13502010-01-28 Chong Yidong <cyd@stupidchicken.com>
1351
b242dbfc
CY
1352 * fileio.c (Frename_file): Fix last change (Bug#5487).
1353
ca0eb708
CY
1354 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
1355
1356 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
1357
45d45af5
JD
13582010-01-28 Jan Djärv <jan.h.d@swipnet.se>
1359
1360 * xfns.c (Fx_create_frame): Remove window size matching code from
1361 2010-01-15.
1362 (x_get_current_desktop, x_get_desktop_workarea): Remove
1363
7e233730
JR
13642010-01-27 Jason Rumney <jasonr@gnu.org>
1365
1366 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 1367 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 1368
86e893e3
KH
13692010-01-27 Kenichi Handa <handa@m17n.org>
1370
1371 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 1372 pattern string (Bug#4209).
86e893e3 1373
8719abec
CY
13742010-01-27 David De La Harpe Golden <david@harpegolden.net>
1375
1376 * fileio.c (Frename_file): Call copy-directory and
1377 delete-directory for directories, in order to handle cross-device
1378 renaming (Bug#3353).
1379
844794c8
JD
13802010-01-25 Jan Djärv <jan.h.d@swipnet.se>
1381
aa3e13b5 1382 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 1383 sizes 24 and 10. Bug #3643.
844794c8 1384
bd4b5750
SM
13852010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
1386
8dc1adf6 1387 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
1388 * keymap.c (shadow_lookup): Add `remap' arg.
1389 (describe_map, describe_vector): Update calls to shadow_lookup.
1390 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
1391 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
1392 perform remapping during shadow_lookup check of remapped_sequences.
1393
285d07e2
CY
13942010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
1395
1396 * image.c (png_load): Use png_sig_cmp instead of the obsolete
1397 png_check_sig, which has been removed in libpng 1.4.
1398
c6d09b8d
CY
13992010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
1400
1401 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
1402 lacks this header file).
1403
3d782998
YM
14042010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1405
1406 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
1407 as in Emacs 22.
1408
2aff7c53
YM
14092010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1410
1411 * lisp.h (make_pure_string): String pointer arg now points to const.
1412
1413 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
1414 args now point to const.
1415
74327f7a
EZ
14162010-01-22 Eli Zaretskii <eliz@gnu.org>
1417
1418 * lread.c (Fload): Don't treat files without .elc extension as
1419 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
1420 them. (bug#5303)
1421
4d1e6632
KH
14222010-01-20 Kenichi Handa <handa@m17n.org>
1423
1424 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
1425 treat the source as actual byte sequence.
1426
1fdede8f
AM
14272010-01-19 Alan Mackenzie <acm@muc.de>
1428
1429 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 1430 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
1431 `signal_after_change_p' to `coherent_change_p', and make the
1432 invocation of `modify_region' conditional on it.
1433
67477f30
JD
14342010-01-19 Jan Djärv <jan.h.d@swipnet.se>
1435
1436 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
1437 for debug purpose.
1438 (syms_of_xsettings): Declare xft-settings.
1439
244b023e
CY
14402010-01-18 Chong Yidong <cyd@stupidchicken.com>
1441
1442 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
1443
617364fe
CY
14442010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
1445
1446 * xterm.c (event_handler_gdk): Block input (Bug#5037).
1447
4fe22cdf
CY
14482010-01-16 Chong Yidong <cyd@stupidchicken.com>
1449
1450 * emacs.c (standard_args): Adjust arg priorities to reflect how
1451 they are processed in startup.el.
1452
e118d2be
AS
14532010-01-16 Andreas Schwab <schwab@linux-m68k.org>
1454
1455 * Makefile.in (lisp, shortlisp): Update.
1456
523ae620
SM
14572010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
1458
1459 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
1460 code, link the new kboard into all_kboard before running Lisp code,
1461 and protect the new terminal with GCPRO (Bug#5365).
1462 (x_term_init): Remove unused var `atom'.
1463 (x_delete_display, x_delete_terminal): Remove unused var `i'.
1464
f0d13888
JD
14652010-01-15 Jan Djärv <jan.h.d@swipnet.se>
1466
1467 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
1468 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
1469 to find out usable size of the desktop. Don't make frames larger than
ac146f82 1470 this. Bug #3643.
f0d13888 1471
cc320f07
KH
14722010-01-15 Kenichi Handa <handa@m17n.org>
1473
1474 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
1475
7ffdf101
CY
14762010-01-15 Chong Yidong <cyd@stupidchicken.com>
1477
1478 * nsterm.m (Qnone): Define.
1479
1480 * nsfns.m (Qnone): Move definition to nsterm.m.
1481
d12bd917
KH
14822010-01-14 Kenichi Handa <handa@m17n.org>
1483
1484 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
1485 systems.
1486
d9a7c140
KH
14872010-01-14 Kenichi Handa <handa@m17n.org>
1488
1489 Make auto-composition work on all buffers even if they are
1490 fundamental mode.
1491
1492 * composite.c (Vauto_composition_mode): New variable.
1493 (composition_compute_stop_pos): Check Vauto_composition_mode
1494 instead of Vauto_composition_function.
1495 (composition_adjust_point, Ffind_composition_internal): Likewise.
1496 (syms_of_composite): Declare Lisp variable
1497 "auto-composition-mode" here.
1498
63286bb2
CY
14992010-01-13 Chong Yidong <cyd@stupidchicken.com>
1500
1501 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
1502 during call to vendor-specific-keysyms (Bug#5365).
1503
c2623ee7
YM
15042010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1505
1506 * keyboard.c (input_available_signal) [SYNC_INPUT]:
1507 Call SIGNAL_THREAD_CHECK (Bug#5333).
1508
1509 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
1510 Call SIGNAL_THREAD_CHECK.
1511
0b5397c2
SM
15122010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
1513
1514 Try to fix bug#5314. This is probably not the final word, tho.
1515 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
1516 recent-auto-save-p as a side-effect.
1517 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
1518 * buffer.c (Fkill_buffer, reset_buffer):
1519 * editfns.c (Fsubst_char_in_region):
1520 * fileio.c (Finsert_file_contents, Fdo_auto_save)
1521 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
1522
dc954cb2
KH
15232010-01-13 Kenichi Handa <handa@m17n.org>
1524
1525 Display buffer name, etc. in mode line by composing correctly.
1526
1527 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
1528 STRING is not nil.
0b5397c2 1529 (display_mode_element): Adjust for the change of
dc954cb2
KH
1530 decode_mode_spec and display_line.
1531 (decode_mode_spec): Change arg MULTIBYTE to STRING.
1532 (display_string): Handle the case that STRING is non-null and
1533 LISP_STRING is not nil.
1534
0b5397c2
SM
1535 * xterm.c (x_draw_composite_glyph_string_foreground):
1536 Pay attention to s->face->overstrike.
dc954cb2
KH
1537
1538 * composite.c (composition_reseat_it): Don't check PT if STRING is
1539 non nil.
1540
4a00eaca
YM
15412010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1542
1543 * keyboard.c (read_char): Don't apply previous change when current
1544 buffer is unchanged by command execution.
1545
60abb287
JD
15462010-01-12 Jan Djärv <jan.h.d@swipnet.se>
1547
1548 * keyboard.c (read_char): Return after executing from special map.
1549
893db5bc
GM
15502010-01-12 Glenn Morris <rgm@gnu.org>
1551
1552 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
1553 bug-gnu-emacs rather than emacs-pretest-bug.
1554
4d03ece0
CY
15552010-01-11 Chong Yidong <cyd@stupidchicken.com>
1556
1557 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
1558 initializing the Lisp variables that depend on them.
1559
1df47e38
YM
15602010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1561
1562 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
1563 Clear areas that will not be updated after change of menu bar lines.
1564 Clear the menu bar window's current matrix when the window gets empty.
1565
2f1c6384
CY
15662010-01-09 Chong Yidong <cyd@stupidchicken.com>
1567
e398c61c
CY
1568 * intervals.h, textprop.c (extend_property_ranges): Return value
1569 and args changed. Discard properties that begin at or after the
1570 new end (Bug#5306).
1571
1572 * editfns.c (Fformat): Caller changed.
1573
e5a29a10
CY
1574 * nsterm.m (ns_set_default_prefs): Delete function.
1575 (syms_of_nsterm): Initialize ns_command_modifier,
1576 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
1577 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
1578
2f1c6384
CY
1579 * xdisp.c (pos_visible_p): Check for invisible text at the correct
1580 position (Bug#4040).
1581
d427a9fa
EZ
15822010-01-09 Eli Zaretskii <eliz@gnu.org>
1583
1584 * editfns.c (Ffloat_time): Doc fix.
1585
21b9df2f
JD
15862010-01-09 Jan Djärv <jan.h.d@swipnet.se>
1587
1588 * xfns.c (Fx_create_frame): Don't create frame larger than display
1589 by default bug#3643.
1590
4b00d3b1
YM
15912010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1592
1593 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
1594 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
1595 windows above internal border.
1596
1597 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
1598 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
1599 windows above internal border.
1600
1601 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
1602 tool bar windows specially.
1603
1604 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
1605
1606 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
1607 specially.
1608 (XTflash): Take account of menu bar height.
1609
1610 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
1611 specially.
1612
5075d853
JD
16132010-01-08 Jan Djärv <jan.h.d@swipnet.se>
1614
ac146f82 1615 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
1616 also be true before we can return early (bug #5339).
1617
474217c8
CY
16182010-01-06 David Reitter <david.reitter@gmail.com>
1619
1620 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
1621 (Fns_display_usable_bounds): Rewrite, computing bounds properly
1622 (Bug#3233).
1623
c0e6d47d
JD
16242010-01-06 Jan Djärv <jan.h.d@swipnet.se>
1625
d0cf45b7
JD
1626 * font.c (font_open_entity): Enable chache and call cached_font_ok
1627 for the driver if defined.
1628 (QCuser_spec): New symbol.
1629 (font_spec_from_name): Save name as user-spec.
1630 (font_load_for_lface): Keep user-spec instead of name.
1631 (font_open_by_name): Save name as user-spec.
1632 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 1633 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
1634
1635 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
1636 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
1637 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
1638
1639 * font.h (struct font_driver): Add cached_font_ok.
1640
c0e6d47d
JD
1641 * xterm.c (x_clear_frame): Queue draw for scroll bars.
1642
7c583cd8
JD
16432010-01-05 Jan Djärv <jan.h.d@swipnet.se>
1644
1645 * xterm.c (x_new_font): Move code for setting rows/cols before
1646 resizing ...
ac146f82 1647 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
1648
1649 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
1650 (xg_frame_resized, xg_frame_set_char_size):
1651 Call xg_clear_under_internal_border.
7c583cd8 1652 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 1653
03f77f0a
CY
16542010-01-05 Chong Yidong <cyd@stupidchicken.com>
1655
1656 * keyboard.c (read_key_sequence): Catch keyboard switch after
1657 making a new tty frame (Bug#5095).
1658
2a1ef5be
KH
16592010-01-05 Kenichi Handa <handa@m17n.org>
1660
1661 * fontset.c (fontset_find_font): Fix getting the frame pointer.
1662
e3eb1dae
SM
16632010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
1664
1665 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
1666 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
1667 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
1668
777013f2
MA
16692010-01-03 Michael Albinus <michael.albinus@gmx.de>
1670
1671 * dbusbind.c (xd_add_watch): Improve debug message.
1672 (xd_remove_watch): Improve debug message. If DATA is the session
1673 bus, unset D-Bus session environment.
1674 (Fdbus_init_bus): Pass the bus as argument to
1675 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 1676
8932b1c2
CY
16772010-01-01 Chong Yidong <cyd@stupidchicken.com>
1678
87231e2c
CY
1679 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
1680
4801c5fa
CY
1681 * lread.c (syms_of_lread): Make it clearer that these are the
1682 names of loaded files (Bug#5068).
1683
8932b1c2
CY
1684 * eval.c (run_hook_with_args): Handle the case where the global
1685 value has the obsolete single-function form (Bug#5026).
1686
11e3c684
CY
16872009-12-27 Chong Yidong <cyd@stupidchicken.com>
1688
1689 * minibuf.c (Fall_completions): Minor optimization.
1690
5b28ce35
EZ
16912009-12-26 Eli Zaretskii <eliz@gnu.org>
1692
5ce6e4f4
JB
1693 * .gdbinit (pgx): Fix display of composite glyphs.
1694 Display cmp.from and cmp.to as well.
1695 (pitx): Fix last change.
5b28ce35 1696
bcffff46
KH
16972009-12-25 Kenichi Handa <handa@m17n.org>
1698
1699 * composite.h (composition_adjust_point): Update prototype.
1700
1701 * composite.c (composition_reseat_it): Don't make a composition
1702 spanning over point.
1703 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
1704 composable characters.
1705 (composition_adjust_point): New arg NEW_PT. Callers changed.
1706
1707 * keyboard.c (command_loop_1): Force redisplay if the last point
1708 was within a composition.
1709 (adjust_point_for_property): Don't adjust point for automatic
1710 composition when called after buffer modification.
1711
3f670e9a
EZ
17122009-12-19 Eli Zaretskii <eliz@gnu.org>
1713
5ce6e4f4
JB
1714 * .gdbinit (pitx): Don't use enum names, use their values.
1715 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
1716 (pgx): Don't use enum names, use their values.
1717 (pitmethod): New helper command.
1718 (pitx): Use it to display iteration method.
1719 (pgrowit): New command.
1720
ad903955
EZ
1721 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
1722
3f670e9a
EZ
1723 Update dependencies in Makefile.in.
1724
1725 * Makefile.in (alloc.o): Depend on termhooks.h.
1726 (atimer.o): Depend on blockinput.h.
1727 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
1728 and frame.h.
1729 (callint.o): Depend on systime.h, coding.h, and composite.h.
1730 (callproc.o): Depend on buffer.h.
1731 (casefiddle.o): Don't depend on charset.h.
1732 (casetab.o): Depend on character.h.
1733 (ccl.o): Depend on composite.h.
1734 (chartab.o): Depend on ccl.h.
1735 (cm.o): Depend on dispextern.h.
1736 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
1737 (coding.o): Don't depend on $(INTERVALS_H).
1738 (composite.o): Don't depend on dispextern.h explicitly (it's in
1739 $(INTERVALS_H)). Depend on ccl.h.
1740 (data.o): Depend on systime.h, coding.h, composite.h,
1741 dispextern.h, font.h, and ccl.h.
1742 (dired.o): Depend on composite.h.
1743 (dispnew.o): Depend on coding.h. Don't depend explicitly on
1744 composite.h (it's in $(INTERVALS_H)).
1745 (doc.o): Depend on systime.h, coding.h, and composite.h.
1746 (editfns.o): Don't depend explicitly on dispextern.h.
1747 (emacs.o): Depend on frame.h and coding.h.
1748 (eval.o): Depend on coding.h, composite.h, and xterm.h.
1749 (fileio.o): Depend on frame.h and commands.h. Don't depend
1750 explicitly on dispextern.h.
1751 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
1752 composite.h.
1753 (fns.o): Don't depend on termhooks.h.
1754 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
1755 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
1756 coding.h, $(INTERVALS_H), window.h, xterm.h.
1757 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
1758 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
1759 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
1760 fontset.h, ccl.h, and ftfont.h.
1761 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1762 (gtkutil.o): Depend on dispextern.h and composite.h.
1763 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
1764 termhooks.h, and ccl.h.
1765 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
1766 (intervals.o): Depend on systime.h and coding.h.
1767 (keyboard.o): Depend on composite.h and coding.h.
1768 (keymap.o): Depend on coding.h and frame.h.
1769 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
1770 (macros.o): Depend on systime.h, coding.h, and composite.h.
1771 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
1772 and atimer.h.
1773 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
1774 dispextern.h explicitly.
0b5397c2
SM
1775 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
1776 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
1777 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
1778 (regex.o): Don't depend on charset.h.
1779 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
1780 (search.o): Don't depend explicitly on composite.h.
1781 (sound.o): Depend on atimer.h and systime.h.
1782 (syntax.o): Don't depend explicitly on composite.h.
1783 (sysdep.o): Depend on coding.h and composite.h.
1784 (term.o): Depend on xterm.h and buffer.h.
1785 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
1786 (textprop.o): Don't depend on dispextern.h explicitly.
1787 (undo.o): Depend on dispextern.h.
1788 (window.o): Depend on coding.h and termhooks.h. Don't depend on
1789 dispextern.h and composite.h explicitly.
1790 (xdisp.o): Depend on ccl.h.
1791 (xfaces.o): Depend on coding.h and ccl.h.
1792 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
1793 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1794 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
1795 ftfont.h.
1796 (xgselect.o): New dependency.
1797 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
1798 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
1799 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
1800 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
1801 (xsmfns.o): Depend on frame.h and dispextern.h.
1802 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
1803 sysselect.h.
1804
7a6f7fea
AS
18052009-12-19 Andreas Schwab <schwab@linux-m68k.org>
1806
1807 * font.c (Fclear_font_cache): Pass correct cache argument to
1808 font_clear_cache.
1809
f4c21026
AS
18102009-12-16 Andreas Schwab <schwab@linux-m68k.org>
1811
1812 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
1813 twice.
1814
f7ab0997
CY
18152009-12-15 Chong Yidong <cyd@stupidchicken.com>
1816
1817 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
1818 calling file-remote-p. Reported by Jim Meyering.
1819
fa8e045a
MA
18202009-12-15 Michael Albinus <michael.albinus@gmx.de>
1821
1822 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 1823 avoid compiler warnings. (Bug #5217)
fa8e045a 1824
a63dba42
KH
18252009-12-14 Kenichi Handa <handa@m17n.org>
1826
1827 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
1828 in 8-bit encoding.
1829
5ce6e4f4 18302009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
1831
1832 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
1833 tooltip windows.
1834
223e5fc6
JD
18352009-12-13 Jan Djärv <jan.h.d@swipnet.se>
1836
36acb2a7
JD
1837 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
1838 Xatom_net_window_type.
1839
1840 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
1841 Xatom_net_window_type.
1842
b8f00677
JD
1843 * xterm.c (my_log_handler): New function.
1844 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 1845 so we can filter out buggy messages. (Bug #5120).
b8f00677 1846
e5f0bc9a
JD
1847 * xterm.c (xg_scroll_callback): Parameter list changed,
1848 use parameter GtkScrollType to determine scroll/line/page.
1849 Only allow dragging if a button < 4 is grabbed (bug #5177).
1850 (xg_end_scroll_callback): New function.
1851 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
1852 xg_create_scroll_bar.
1853
1854 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
1855 (scroll_end_callback): Remove.
1856 (xg_create_scroll_bar): Add parameter end_callback, bind it to
1857 button-release-event. Replace value-changed event with change-value,
1858 bug #5177,
1859 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
1860 bug #5177.
1861
1862 * gtkutil.h (XG_LAST_SB_DATA): Remove.
1863 (xg_create_scroll_bar): Add GCallback end_callback.
1864
223e5fc6
JD
1865 * xftfont.c (QClcdfilter): New variable.
1866 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
1867 (syms_of_xftfont): Initialize QClcdfilter.
1868
3c055b77
JD
18692009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1870
1871 * xsettings.c (struct xsettings): Add member seen.
1872 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 1873 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
1874 (apply_xft_settings): Only update Xft settings with what member seen
1875 indicates as new.
1876
05fe33ff
EZ
18772009-12-12 Eli Zaretskii <eliz@gnu.org>
1878
1879 * dispextern.h (struct text_pos): Use EMACS_INT;
1880 (struct glyph): Use EMACS_INT for charpos.
1881 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
1882 region_beg_charpos, region_end_charpos,
1883 redisplay_end_trigger_charpos, and also for
1884 iterator_stack_entry.end_charpos and
1885 iterator_stack_entry.stop_charpos.
1886
e8d7886a
JD
18872009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1888
5ce6e4f4 1889 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
1890 (xg_create_scroll_bar): Call scroll_end_callback on button release
1891 event (bug #5177).
1892 (xg_event_is_for_scrollbar): != replaced with ==.
1893
d0db2ec8
KH
18942009-12-12 Kenichi Handa <handa@m17n.org>
1895
1896 * ftfont.c (struct ftfont_info): New member matrix.
1897 (ftfont_open): Setup xftfont_info->matrix.
1898 (MFLTFontFT): New member matrix.
1899 (FLOOR, CEIL, ROUND): New macros.
1900 (ftfont_get_metrics): Handle matrix transformation.
1901 (ftfont_shape_by_flt): New arg matrix. Callers changed.
1902
1903 * xftfont.c (struct xftfont_info): New member matrix.
1904 (xftfont_open): Setup xftfont_info->matrix.
1905
19062009-12-10 Kenichi Handa <handa@m17n.org>
1907
1908 * xdisp.c (append_space_for_newline): Consider face-remapping.
1909
2cc7b62f
AS
19102009-12-09 Andreas Schwab <schwab@linux-m68k.org>
1911
b87dd913
AS
1912 * xsettings.c: Include "keyboard.h".
1913
eba5eb94
AS
1914 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
1915
2cc7b62f
AS
1916 Fix implicit function declarations.
1917 * cmds.c: Include "frame.h".
1918 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
1919 * frame.h: Move declaration of delete_frame outside of
1920 HAVE_WINDOW_SYSTEM.
1921
a4ef73c8
CY
19222009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
1923
1924 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
1925
1926 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
1927 GTK builds.
1928
944a300c
AS
19292009-12-07 Andreas Schwab <schwab@linux-m68k.org>
1930
1931 * unexelf.c (unexec): Don't search for .data twice.
1932
022eef62
CY
19332009-12-05 Chong Yidong <cyd@stupidchicken.com>
1934
426ac949
CY
1935 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
1936 if push failed.
1937 (handle_line_prefix): Set avoid_cursor_p here. Check return value
1938 of push_display_prop (Bug#5000).
1939
022eef62
CY
1940 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
1941 value of font_list_entities (Bug#5085).
1942
be95bee9
JB
19432009-12-04 Juanma Barranquero <lekktu@gmail.com>
1944
1945 Fix `string-to-number' to deal consistently with integers and floats.
1946 * lread.c (isfloat_string): New argument ignore_trailing to accept all
1947 trailing characters, not just whitespace.
1948 (read1): Pass new arg 0 to keep old behavior.
1949 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
1950 trailing chars, as it is already done for integers. Doc fixes.
1951 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
1952
24c2d7ce
EZ
19532009-12-04 Eli Zaretskii <eliz@gnu.org>
1954
0b5397c2
SM
1955 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
1956 Delete unused enumeration value.
24c2d7ce 1957
7e694795
EZ
19582009-12-03 Eli Zaretskii <eliz@gnu.org>
1959
1960 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
1961
84b31826
SM
19622009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
1963
1964 * process.c (Fmake_network_process): Fix up the tests for
1965 "connectionless socket", so they DTRT for seqpacket sockets as well.
1966
f00c449b
SM
19672009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
1968
1969 * process.c (Qseqpacket): New symbol.
1970 (HAVE_SEQPACKET): New macro.
1971 (Fmake_network_process): Accept new :type `seqpacket'.
1972 (init_process): Add `seqpacket' feature when applicable.
1973 (syms_of_process): Initialize Qseqpacket.
1974
8096a0ff
YM
19752009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1976
1977 * font.c (font_load_for_lface, font_open_by_name): Don't store name
1978 if entity is Qnil.
1979
3e0de07f
SM
19802009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
1981
1982 * print.c (print_preprocess): Preprocess the key_and_value table of
1983 hashtables, even tho they're "hidden" (bug#5082).
1984
abeafb2a
JD
19852009-11-29 Jan Djärv <jan.h.d@swipnet.se>
1986
1987 * frame.c (frame_make_pointer_invisible)
1988 (frame_make_pointer_visible): Declare f before statements.
1989
4bf47195
EZ
19902009-11-28 Eli Zaretskii <eliz@gnu.org>
1991
1992 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
1993 omitted dependencies on lisp.h.
1994
c525b3f2
JD
19952009-11-27 Jan Djärv <jan.h.d@swipnet.se>
1996
ece2d4ed
JD
1997 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
1998 is NULL.
1999
2000 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
2001
2002 * frame.c (frame_make_pointer_invisible)
3e0de07f 2003 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
2004 frame.
2005
c525b3f2
JD
2006 * search.c (simple_search): Remove warning by making *p const.
2007
2f00e299
DN
20082009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
2009
2010 * xdisp.c (power_letter): Remove duplicate const.
2011
084b049b
JD
20122009-11-25 Jan Djärv <jan.h.d@swipnet.se>
2013
a1fadc6f
JD
2014 * term.c (delete_tty): Remove check for last terminal (bug#4970).
2015
5ce6e4f4 2016 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
2017 defaults (bug #5025).
2018
28259cac
SM
20192009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
2020
2021 * insdel.c (adjust_markers_for_delete): Move it in the
2022 right direction! (bug#4803)
2023
e8e14166
YM
20242009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2025
2026 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
2027
2028 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
2029
86677b58
GM
20302009-11-24 Glenn Morris <rgm@gnu.org>
2031
2032 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
2033
581e51e8
JD
20342009-11-23 Jan Djärv <jan.h.d@swipnet.se>
2035
cfc86c7a
JD
2036 * Makefile.in: Must create deps for ecrt0.o in its rule.
2037
581e51e8
JD
2038 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
2039 because that is what Gtk+ font dialog understands.
2040
2041 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
2042 of Fcopy_sequence.
2043 (font_open_by_name): Put name given into QCname for font-object returned.
2044
2045 * frame.c (x_set_font): Save original font name as frame parameter
2046 font-parameter.
2047
2048 * xsettings.c (set_default_xft_settings): New function.
2049 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
2050 is found.
2051
8b264ecb
AS
20522009-11-22 Andreas Schwab <schwab@linux-m68k.org>
2053
2054 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
2055 searching backwards through multibyte buffer.
2056
872870b2
JD
20572009-11-21 Jan Djärv <jan.h.d@swipnet.se>
2058
2059 * xterm.c: #include xgselect.h.
2060 (x_initialize): Call xgselect_initialize.
2061
2062 * xsettings.c (something_changedCB): C++ comments => C comments.
2063 (init_gconf): Do not deal with any GLib file descriptors, xg_select
2064 does that now.
2065
2066 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
2067 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
2068 (scroll_bar_button_cb): Remove.
5ce6e4f4 2069 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
2070 event.
2071 (xg_create_scroll_bar): Don't bind button-press-event and
2072 button-release-event.
2073
2074 * process.c: Include xgselect.h if defined (USE_GTK) ||
2075 defined (HAVE_GCONF).
2076 (wait_reading_process_output): Call xg_select for the same condition.
2077
2078 * xgselect.c (xg_select): New function to better integrate with
2079 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
2080
2081 * xgselect.h: New file, declare xg_select, xgselect_initialize.
2082
2083 * Makefile.in (XOBJ): Add xgselect.o.
2084
62a6e103
AS
20852009-11-21 Andreas Schwab <schwab@linux-m68k.org>
2086
0b5397c2
SM
2087 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
2088 Remove ignored second argument. All callers changed.
62a6e103
AS
2089 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
2090 (RE_STRING_CHAR_AND_LENGTH): Likewise.
2091 * xdisp.c (string_char_and_length): Likewise.
2092
b0ca0f33
DN
20932009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
2094
2095 * xterm.c (x_new_font):
2096 * print.c (print_object):
2097 * cmds.c (Fself_insert_command): Move declarations before statements.
2098
dd5a6279
CY
20992009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
2100
2101 * s/cygwin.h: Remove unneeded linker flags.
2102
4a8e097d
JD
21032009-11-20 Jan Djärv <jan.h.d@swipnet.se>
2104
0d1d0d26
JD
2105 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
2106
2107 * xsettings.h: Declare xsettings_get_system_font.
2108
2109 * xsettings.c (xsettings_get_system_font): New function.
2110 (init_gconf): No use initiating gconf unless we have Xft also.
2111 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
2112 HAVE_GCONF.
2113
4a8e097d
JD
2114 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
2115 add a blank entry so it doesn't collapse into nothing.
2116
8ab1650e
SM
21172009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
2118
2119 * lread.c (Funintern): Comment out last change.
2120
82c602f0
RS
21212009-11-19 Richard Stallman <rms@gnu.org>
2122
2123 * lread.c (Funintern): Error if symbol is t or nil.
2124
87e32266
SM
21252009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
2126
2127 * insdel.c (make_gap_larger): Don't make as many assumptions about the
2128 representation of Lisp integers.
2129 Reported by MJ Chan <mjchan.inbox@gmail.com>.
2130
1b9ac145
AS
21312009-11-17 Andreas Schwab <schwab@linux-m68k.org>
2132
2133 * lisp.h: Remove declaration of Ffont_get_system_font.
2134 * xfns.c: Move include of "xsettings.h".
2135 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
2136
dfb3c4c6
JD
21372009-11-17 Jan Djärv <jan.h.d@swipnet.se>
2138
87e32266
SM
2139 * xsettings.c (something_changedCB, Ffont_get_system_font):
2140 Check use_system_font.
dfb3c4c6
JD
2141 (syms_of_xsettings): DEFVAR font-use-system-font.
2142
9370c1d8
AS
21432009-11-17 Andreas Schwab <schwab@linux-m68k.org>
2144
25fe851a
AS
2145 * xfns.c (x_default_font_parameter): Remove dead assignment.
2146
9370c1d8
AS
2147 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
2148
637fa988
JD
21492009-11-17 Jan Djärv <jan.h.d@swipnet.se>
2150
87e32266 2151 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 2152 not have FC_LCD_*. #define them if not there.
a6eb20d8 2153
87e32266 2154 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 2155
637fa988
JD
2156 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
2157
2158 * xterm.c (handle_one_xevent): Call xft_settings_event for
2159 ClientMessage, PropertyNotify and DestroyNotify.
2160 (x_term_init): If we have XFT, get DPI from Xft.dpi.
2161 Call xsettings_initialize.
2162
2163 * xftfont.c (xftfont_fix_match): New function.
2164 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
2165 Call xftfont_fix_match after XftFontMatch.
2166
2167 * xfont.c (xfont_driver): Initialize all members.
2168
87e32266
SM
2169 * xfns.c (x_default_font_parameter):
2170 Try font from Ffont_get_system_font.
637fa988
JD
2171 Do not get font from x_default_parameter if we got one from
2172 Ffont_get_system_font.
87e32266 2173 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
2174
2175 * w32font.c (w32font_driver): Initialize all members.
2176
2177 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
2178
2179 * lisp.h: Declare syms_of_xsettings.
2180
87e32266
SM
2181 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
2182 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
2183
2184 * ftfont.c (ftfont_filter_properties): New function.
2185
2186 * frame.c (x_set_font): Remove unused variable lval.
2187
87e32266 2188 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
2189
2190 * font.c (font_put_extra): Don't return if val is nil, it means
2191 boolean option is off.
2192 (font_parse_fcname): Collect all extra properties in extra_props
2193 and call filter_properties for all drivers with extra_props and
2194 font as parameter.
87e32266
SM
2195 (font_open_entity): Do not use cache, it does not pick up new
2196 fontconfig settings like hinting.
637fa988
JD
2197 (font_load_for_lface): If spec had a name in it, store it in entity.
2198
2199 * emacs.c (main): Call syms_of_xsettings
2200
2201 * config.in: HAVE_GCONF is new.
2202
2203 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
2204 xsettings.o is new.
2205
5a942932
KH
22062009-11-17 Kenichi Handa <handa@m17n.org>
2207
2208 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
2209 back to the default font in case that no suitable font is found.
2210
b7c7a4d1
SM
22112009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
2212
2213 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
2214 Suggested by Chad Brown <yandros@mit.edu>.
2215 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
2216
072f1e39
JD
22172009-11-16 Jan Djärv <jan.h.d@swipnet.se>
2218
2219 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
2220
5d1e70a2
AS
22212009-11-14 Andreas Schwab <schwab@linux-m68k.org>
2222
87e32266 2223 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 2224
a53cfbe5
JD
22252009-11-14 Jan Djärv <jan.h.d@swipnet.se>
2226
473a99b7
JD
2227 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
2228 has a parent.
2229
a53cfbe5 2230 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 2231 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
2232
2233 * config.in: Generated (AUTO_DEPEND).
2234
f04bb9b2
MA
22352009-11-13 Michael Albinus <michael.albinus@gmx.de>
2236
b7c7a4d1 2237 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
2238 Vdbus_registered_functions_table, because it contains also
2239 properties. Fix docstring.
b7c7a4d1 2240 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 2241
8f11f7ec
SM
22422009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
2243
2244 * alloc.c (mark_object): Don't reprocess marked strings.
2245 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
2246 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
2247
8a605fe8
KH
22482009-11-13 Kenichi Handa <handa@m17n.org>
2249
8f11f7ec 2250 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
2251 semantics of Vword_combining_categories.
2252 (Vword_combining_categories): Describe the slight change of the
2253 semantics.
2254
241c4680
EZ
22552009-11-13 Eli Zaretskii <eliz@gnu.org>
2256
2257 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
2258
2259 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
2260
5d58e44c
SM
22612009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
2262
2263 * xdisp.c (syms_of_xdisp): Fix typo in last change.
2264
5e13f9d3
JB
22652009-11-12 Juanma Barranquero <lekktu@gmail.com>
2266
2267 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
2268
cf54c754
DR
22692009-11-11 David Reitter <david.reitter@gmail.com>
2270
2271 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
2272 variables to fix 2009-11-09 change.
2273
a4ada374
DN
22742009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
2275
91433552
DN
2276 * process.c (ifflag_def): Make flag_sym constant.
2277 (Fnetwork_interface_info): Use a constant pointer.
2278 (ifflag_table):
2279 * xfns.c (cursor_bits):
2280 * xdisp.c (power_letter):
2281 * termcap.c (speeds, esctab):
2282 * sysdep.c (baud_convert):
2283 * keyboard.c (lispy_accent_codes, modifier_names):
2284 * image.c (xbm_format, xpm_format, pbm_format, png_format)
2285 (jpeg_format, tiff_format, gif_format, svg_format)
2286 (interlace_start, interlace_increment, gs_format):
2287 * gtkutil.c (separator_names):
2288 * fringe.c (swap_nibble):
2289 * fns.c (base64_value_to_char, base64_char_to_value):
2290 * fileio.c (make_temp_name_tbl):
2291 * coding.c (suffixes): Make constant.
2292
f4265f6c
DN
2293 * frame.c (make_initial_frame):
2294 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
2295 build_string.
2296 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
2297
04420943
DN
2298 * s/freebsd.h:
2299 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
2300
0a5d24ae
DN
2301 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
2302 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
2303
a4ada374
DN
2304 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
2305 * xterm.c (syms_of_xterm):
2306 * xfaces.c (syms_of_xfaces):
2307 * xdisp.c (syms_of_xdisp):
2308 * lread.c (syms_of_lread):
2309 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
2310 build_string.
91433552 2311
a4ada374
DN
2312 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
2313
af98fc7f
SM
23142009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2315
8ab1650e 2316 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 2317
e90292a9
JD
23182009-11-10 Jan Djärv <jan.h.d@swipnet.se>
2319
2320 * keyboard.h: Declare timer_check.
2321
2322 * keyboard.c (timer_check_2): New function that does what the old
2323 timer_check did.
2324 (timer_check): Call timer_check_2 until -1 or a non-zero time is
2325 returned, i.e. don't return -1 with timers pending.
2326
2327 * process.c: Remove extern declaration of timer_check.
2328
2329 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
2330 even if timer_check returned -1.
2331
af98fc7f
SM
2332 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
2333 xg_dialog_data.
e90292a9
JD
2334 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
2335 the event loop.
2336 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
2337 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
2338 Destroy the dialog after xg_dialog_run.
2339
045b83c0
SM
23402009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2341
2342 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
2343
1fb99a3a
JD
23442009-11-10 Jan Djärv <jan.h.d@swipnet.se>
2345
2346 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
2347
04e452cb
JB
23482009-11-09 Juanma Barranquero <lekktu@gmail.com>
2349
2350 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
2351
ef7417fd
SM
23522009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
2353
2354 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
2355 w32menu.c, and nsmenu.m.
2356 Simplify the obsolete case where position is nil.
2357 (cleanup_popup_menu): New function, moved from nsmenu.m.
2358 (struct skp): Remove slot `notreal'.
2359 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
2360 adjust callers.
2361 (single_menu_item): Adjust call to parse_menu_item.
2362 (syms_of_menu): Defsubr x-popup-menu.
2363 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
2364 (keymap_panes): Don't export any more.
2365 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
2366 (xmenu_show): Declare.
2367 * keyboard.c (parse_menu_item): Remove arg `notreal'.
2368 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
2369 * keyboard.h (parse_menu_item): Update declaration.
2370 * xmenu.c (Fx_popup_menu): Remove.
2371 (syms_of_xmenu): Don't defsubr x-popup-menu.
2372 * w32menu.c (Fx_popup_menu): Remove.
2373 (syms_of_w32menu): Don't defsubr x-popup-menu.
2374 * nsmenu.m (cleanup_popup_menu): Remove.
2375 (ns_menu_show): Rename from ns_popup_menu and remove all the code
2376 moved to menu.c's Fx_popup_menu.
2377 (Fx_popup_menu): Remove.
2378 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
2379 menu_items (it's done in menu.c already).
2380
424d6179
SM
23812009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
2382
2383 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
2384 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
2385
c0df13a6 23862009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
2387
2388 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 2389 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
2390 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
2391 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
2392
2de9f71c
SM
23932009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2394
2395 Let integers use up 2 tags to give them one extra bit and thus double
2396 their range.
2397 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
2398 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
2399 New macros.
2400 (enum Lisp_Type): Use them. Give explicit values.
2401 (Lisp_Type_Limit): Remove.
2402 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
2403 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
2404 Pay attention to USE_2_TAGS_FOR_INTS.
2405 (INTEGERP): Use LISP_INT_TAG_P.
2406 * fns.c (internal_equal): Simplify the default case.
2407 (sxhash): Use case_Lisp_Int.
2408 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
2409 any more.
2410 (Ftype_of): Use case_Lisp_Int.
2411 (store_symval_forwarding): Take into account the fact that Ints can
2412 now have more than one tag.
2413 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
2414 buffer_slot_type_mismatch):
2415 * xfaces.c (face_attr_equal_p):
2416 * print.c (print_object):
2417 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
2418 Use case_Lisp_Int.
2419
323637a2
EZ
24202009-11-06 Eli Zaretskii <eliz@gnu.org>
2421
7ac65b38
EZ
2422 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
2423
323637a2
EZ
2424 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
2425 warning.
2426
e511451f
JD
24272009-11-06 Jan Djärv <jan.h.d@swipnet.se>
2428
2429 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
2430
2431 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
2432
2433 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
2434 ButtonPressRelease and MotionNotify (bug#4870).
2435
5e2327cf
DN
24362009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
2437
5adc433e
DN
2438 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
2439
d67b4f80
DN
2440 * xterm.c (syms_of_xterm):
2441 * xselect.c (syms_of_xselect):
2442 * xmenu.c (syms_of_xmenu):
2443 * xfns.c (syms_of_xfns):
2444 * xfaces.c (syms_of_xfaces):
2445 * xdisp.c (syms_of_xdisp):
2446 * window.c (syms_of_window):
2447 * w32fns.c (syms_of_w32fns):
2448 * undo.c (syms_of_undo):
2449 * textprop.c (syms_of_textprop):
2450 * terminal.c (syms_of_terminal):
2451 * syntax.c (syms_of_syntax):
2452 * sound.c (syms_of_sound):
2453 * search.c (syms_of_search):
2454 * print.c (syms_of_print):
2455 * minibuf.c (syms_of_minibuf):
2456 * macros.c (syms_of_macros):
2457 * keymap.c (syms_of_keymap, initial_define_key)
2458 (initial_define_lispy_key):
2459 * keyboard.c (syms_of_keyboard):
2460 * insdel.c (syms_of_insdel):
2461 * image.c (syms_of_image):
2462 * fringe.c (syms_of_fringe):
2463 * frame.c (syms_of_frame):
2464 * fontset.c (syms_of_fontset):
2465 * fns.c (syms_of_fns):
2466 * fns.c (syms_of_fns):
2467 * fileio.c (syms_of_fileio):
2468 * fileio.c (syms_of_fileio):
2469 * eval.c (syms_of_eval):
2470 * doc.c (syms_of_doc):
2471 * dispnew.c (syms_of_display):
2472 * dired.c (syms_of_dired):
2473 * dbusbind.c (syms_of_dbusbind):
2474 * data.c (syms_of_data):
2475 * composite.c (syms_of_composite):
2476 * coding.c (syms_of_coding):
2477 * cmds.c (syms_of_cmds):
2478 * charset.c (define_charset_internal, syms_of_character):
2479 * ccl.c (syms_of_ccl):
2480 * category.c (syms_of_category, init_category_once):
2481 * casetab.c (syms_of_casetab):
2482 * casefiddle.c (syms_of_casefiddle):
2483 * callint.c (syms_of_callint):
2484 * bytecode.c (syms_of_bytecode):
2485 * buffer.c (keys_of_buffer, syms_of_buffer):
2486 * alloc.c (syms_of_alloc):
2487 * process.c (syms_of_process, init_process):
2488 * lread.c (syms_of_lread, init_obarray):
2489 * font.c (build_style_table):
2490 * emacs.c (syms_of_emacs, main): Replace calls to intern with
2491 intern_c_string, calls to make_pure_string with
2492 make_pure_c_string. Use pure_cons instead of Fcons.
2493
5e2327cf
DN
2494 * process.c (socket_options): Make it const.
2495 (set_socket_option, init_process): Use a const pointer.
2496
2497 * lread.c (intern_c_string): New function.
2498 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2499 (defvar_int): Uset it. Make the name const char*.
2500
2501 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2502 (defvar_int): Update prototypes.
2503 (DEFUN, EXFUN): Support for prototypes is now required.
2504 (intern_c_string): New prototype.
2505 (struct Lisp_Subr): Make symbol_name constant.
2506
2507 * font.c (struct table_entry): Remove unused member. Make NAMES
2508 constant.
2509 (weight_table, slant_table, width_table): Make constant.
2510
2511 * emacs.c (struct standard_args): Make name and longname constant.
2512
2513 * character.h (DEFSYM): Use intern_c_string.
2514
a56eaaef
DN
25152009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2516
2517 * alloc.c (make_pure_c_string): New function.
2518
2519 * eval.c (Fautoload): Purecopy all arguments.
2520
f6a07420
KH
25212009-11-05 Kenichi Handa <handa@m17n.org>
2522
2523 * fileio.c (Finsert_file_contents): Be sure set coding-system of
2524 the buffer in case of replace.
2525
5d28d4b1
DN
25262009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
2527
2528 * puresize.h (BASE_PURESIZE): Increase to 1620000.
2529
b349d111
SM
25302009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
2531
d528b1ce
SM
2532 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
2533 when applicable (bug#4851).
2534
b349d111
SM
2535 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
2536 (P_): Support for prototypes is now required.
2537
c38eb027
CY
25382009-10-31 Chong Yidong <cyd@stupidchicken.com>
2539
2540 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
2541 (Bug#4827).
2542
0405f8d9
EZ
25432009-10-30 Eli Zaretskii <eliz@gnu.org>
2544
d528b1ce 2545 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 2546
ca0a881a
DN
25472009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
2548
2549 * puresize.h (BASE_PURESIZE): Increase to 1470000.
2550
d528b1ce
SM
2551 * lread.c (Fload): Purecopy the file name when building
2552 Vpreloaded_file_list.
ca0a881a 2553
47e0e0e4
JR
25542009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
2555
2556 * w32fns.c (syms_of_w32fns): Change default value of
2557 w32-scroll-lock-modifier to nil. (Bug#2827)
2558
057bce6f
JB
25592009-10-26 Juanma Barranquero <lekktu@gmail.com>
2560
782a943e 2561 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 2562
242bc74c
AS
25632009-10-26 Andreas Schwab <schwab@redhat.com>
2564
2565 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
2566
522d013a
JB
25672009-10-26 Juanma Barranquero <lekktu@gmail.com>
2568
2569 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
2570 For delta < 0, skip check that only makes sense when the mini-window
2571 is going to be enlarged. (Bug#4534)
2572
18060980
CY
25732009-10-25 Chong Yidong <cyd@stupidchicken.com>
2574
2575 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
2576 string in menu maps (Bug#4471).
2577
fec8f0fe
CY
25782009-10-24 Chong Yidong <cyd@stupidchicken.com>
2579
2580 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
2581 FRAME_NS_VIEW on terminal frames (Bug#4765).
2582
10d66ec0
AS
25832009-10-24 Andreas Schwab <schwab@linux-m68k.org>
2584
1cae01f7
AS
2585 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
2586 DBUS_TYPE_UINTnn separately to get proper sign extension.
2587
58a12889
AS
2588 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
2589 can properly handle unsigned types.
d528b1ce 2590 (make_uid, make_gid): Remove.
58a12889 2591
987c9327
AS
2592 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
2593 types again.
2594
522d013a 2595 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
2596 (system_process_attributes): Likewise.
2597
905a9ed3
DN
25982009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
2599
2600 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
2601
2602 * eval.c (Fautoload): Purecopy the filename. Simplify.
2603
2604 * category.c (Fdefine_category): Purecopy docstring.
2605
a599b3e8
AS
26062009-10-23 Andreas Schwab <schwab@linux-m68k.org>
2607
7b792fc9
AS
2608 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
2609
a599b3e8
AS
2610 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
2611
b35ac83e
CY
26122009-10-23 Chong Yidong <cyd@stupidchicken.com>
2613
2614 * window.c (Fwindow_edges, Fwindow_pixel_edges)
2615 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
2616 (Bug#4775).
2617
e8903e00
SM
26182009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
2619
2620 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
2621 (init_fileio_once):
2622 * lisp.h (init_fileio_once): Remove.
2623 * emacs.c (main): Don't call init_fileio_once.
2624
8f43cbf3
DN
26252009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
2626
2627 * puresize.h (BASE_PURESIZE): Increase to 1430000.
2628
26898943
AS
26292009-10-21 Andreas Schwab <schwab@linux-m68k.org>
2630
2631 * doprnt.c (doprnt): Fix overflow check.
2632
5c646d5a
JD
26332009-10-21 Jan Djärv <jan.h.d@swipnet.se>
2634
3132a7ea
JD
2635 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
2636
5c646d5a
JD
2637 * xterm.h (x_wait_for_event): Declare it.
2638
2639 * xterm.c (pending_event_wait): New variable.
2640 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
2641 see pending_event_wait.eventtype.
2642 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
2643 (x_new_font): Call change_frame_size with new rows/columns before we
2644 try to resize the frame.
5c646d5a 2645 (x_wait_for_event): New function.
d528b1ce
SM
2646 (x_set_window_size_1): Don't change gravity unless change_gravity
2647 is set.
5c646d5a
JD
2648 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
2649 don't change frame size, instead wait for the ConfigureNotify.
2650 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
2651 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
2652 (x_initialize): Initialize pending_event_wait.
2653
2654 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
2655 size.
2656
2657 * widget.c (EmacsFrameSetValues): Add comment.
2658 (EmacsFrameSetCharSize): Just call x_set_window_size.
2659
2660 * gtkutil.c (xg_frame_set_char_size): Flush events and call
2661 x_wait_for_event.
d528b1ce 2662 (flush_and_sync): Remove again.
5c646d5a
JD
2663 (xg_get_font_name): Suggest monospace if no previous font is known.
2664
e9c1637d
SM
26652009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
2666
2667 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 2668 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 2669
5a72cccb
YM
26702009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2671
2672 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
2673 processing pending events when event is filtered for input method.
ab04798f 2674 (Bug#3681)
5a72cccb 2675
2629aa37
JB
26762009-10-20 Juanma Barranquero <lekktu@gmail.com>
2677
2678 * fns.c: Add #endif accidentally removed in previous change.
2679
c3417a74
DN
26802009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2681
2682 * fns.c: Remove code for unsupported system: MAC_OS.
2683 * image.c: Likewise. Include setjmp.h.
2684
9685cef2
JD
26852009-10-19 Jan Djärv <jan.h.d@swipnet.se>
2686
2687 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
2688 pixel -1 (bug #4742).
2689
d7306fe6
DN
26902009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2691
019d2c4c
DN
2692 * process.c (create_pty): Remove conditionals for no longer
2693 supported systems: UNIPLUS and RTU.
2694
ee6bacd4
DN
2695 * xterm.c:
2696 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
2697
d7306fe6
DN
2698 * alloc.c: Do not define struct catchtag.
2699 * eval.c: Move struct catchtag definition ...
2700 * lisp.h: ... here.
2701
2702 * image.c: Move png.h #include earlier to avoid warnings.
2703
2704 * xterm.c:
2705 * xsmfns.c:
2706 * xselect.c:
2707 * xrdb.c:
2708 * xmenu.c:
2709 * xftfont.c:
2710 * xfont.c:
2711 * xfns.c:
2712 * xfaces.c:
2713 * xdisp.c:
2714 * window.c:
2715 * widget.c:
2716 * w32xfns.c:
2717 * w32uniscribe.c:
2718 * w32term.c:
2719 * w32select.c:
2720 * w32reg.c:
2721 * w32proc.c:
2722 * w32menu.c:
2723 * w32inevt.c:
2724 * w32heap.c:
2725 * w32font.c:
2726 * w32fns.c:
2727 * w32console.c:
2728 * w32.c:
2729 * w16select.c:
2730 * vm-limit.c:
2731 * unexsol.c:
2732 * unexec.c:
2733 * unexcw.c:
2734 * unexaix.c:
2735 * undo.c:
2736 * tparam.c:
2737 * textprop.c:
2738 * terminfo.c:
2739 * terminal.c:
2740 * termcap.c:
2741 * term.c:
2742 * syntax.c:
2743 * sound.c:
2744 * sheap.c:
2745 * search.c:
2746 * scroll.c:
2747 * region-cache.c:
2748 * regex.c:
2749 * ralloc.c:
2750 * process.c:
2751 * print.c:
b024548b
DN
2752 * nsterm.m:
2753 * nsselect.m:
2754 * nsmenu.m:
2755 * nsimage.m:
2756 * nsfont.m:
2757 * nsfns.m:
d7306fe6
DN
2758 * msdos.c:
2759 * minibuf.c:
2760 * menu.c:
2761 * marker.c:
2762 * macros.c:
2763 * keymap.c:
2764 * keyboard.c:
2765 * intervals.c:
2766 * insdel.c:
2767 * indent.c:
2768 * gtkutil.c:
2769 * ftxfont.c:
2770 * ftfont.c:
2771 * fringe.c:
2772 * frame.c:
2773 * fontset.c:
2774 * font.c:
2775 * fns.c:
2776 * floatfns.c:
2777 * filelock.c:
2778 * fileio.c:
2779 * emacs.c:
2780 * editfns.c:
2781 * dosfns.c:
2782 * doprnt.c:
2783 * doc.c:
2784 * dispnew.c:
2785 * dired.c:
2786 * dbusbind.c:
2787 * data.c:
2788 * composite.c:
2789 * coding.c:
2790 * cmds.c:
2791 * cm.c:
2792 * chartab.c:
2793 * charset.c:
2794 * character.c:
2795 * ccl.c:
2796 * category.c:
2797 * casetab.c:
2798 * casefiddle.c:
2799 * callproc.c:
2800 * callint.c:
2801 * bytecode.c:
2802 * buffer.c:
2803 * atimer.c: Include setjmp.h. (Bug#4643)
2804
fd5f21e6
SM
28052009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
2806
4c0354d7
SM
2807 Remove leftover table unibyte_to_multibyte_table.
2808 * character.c (unibyte_to_multibyte_table): Remove.
2809 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
2810 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
2811 * character.h (UNIBYTE_TO_CHAR): New macro.
2812 (MAKE_CHAR_MULTIBYTE): Use it.
2813 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
2814 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
2815 (message_dolog, set_message_1):
2816 * search.c (Freplace_match):
2817 * editfns.c (Fcompare_buffer_substrings):
2818 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
2819 (concat):
2820 * insdel.c (copy_text, count_size_as_multibyte):
2821 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
2822 * term.c (produce_glyphs):
2823 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
2824 * regex.c (RE_CHAR_TO_MULTIBYTE):
2825 * cmds.c (internal_self_insert):
2826 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
2827
fd5f21e6
SM
2828 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
2829
4418646e
DN
28302009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
2831
2832 * puresize.h (BASE_PURESIZE): Increase to 1310000.
2833
35f5c1d2
JB
28342009-10-16 Juanma Barranquero <lekktu@gmail.com>
2835
2836 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
2837
a0cd8f6b
AR
28382009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
2839
2840 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
2841 still needed under Tiger.
2842
2843 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
2844
2845 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
2846 __Apple__.
2847
2848 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
2849
01a8d3fa
KH
28502009-10-15 Kenichi Handa <handa@m17n.org>
2851
2852 * print.c (print_object): Escape a symbol like "2E10" too.
2853
bf6c75c9 28542009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
2855
2856 Cleanups and changes for 64-bit compile under Snow Leopard.
2857 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
2858
2859 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
2860
c5959062 2861 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
2862 (ns_findfonts, nsfont_list_family): Use long format in printf, and
2863 cast argument.
2864 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 2865 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
2866
2867 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
2868
2869 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
2870 where appropriate.
2871
2872 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
2873 where appropriate.
6e4780c5
JB
2874 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
2875 Use stringWithUTF8String.
bf6c75c9
AR
2876 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
2877
6e4780c5
JB
2878 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
2879 Add formal protocol mention to inheritance.
bf6c75c9
AR
2880 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
2881
6e4780c5
JB
2882 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
2883 Fix printf format.
bf6c75c9
AR
2884 (ns_query_color): Use CGFloat where appropriate.
2885 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 2886 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
2887 argument.
2888
3d87f118
AR
2889 * config.in (NS_HAVE_NSINTEGER): Drop.
2890
a95c8102
AR
2891 * dbusbind.c (dbus-method-return-internal)
2892 (dbus-method-error-internal): Use long format in printf, and cast
2893 argument.
2894
2895 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
2896 in printf, and cast argument.
2897
6873acca 2898 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
2899 cast argument.
2900
9ec6f100
GM
29012009-10-11 Glenn Morris <rgm@gnu.org>
2902
2903 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
2904
5be883cd
JD
29052009-10-08 Jan Djärv <jan.h.d@swipnet.se>
2906
2907 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
2908 menu bar with a small width so it doesn't enlarge the frame.
2909
d7a39b51
JB
29102009-10-08 Juanma Barranquero <lekktu@gmail.com>
2911
2912 * fontset.c (Fset_fontset_font): Fix typos in error messages.
2913
0c2b6f8e
GM
29142009-10-06 Glenn Morris <rgm@gnu.org>
2915
2916 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
2917 SOME_MACHINE_LISP (this enters indirectly via DOC).
2918
e02131a2
EZ
29192009-10-05 Eli Zaretskii <eliz@gnu.org>
2920
2921 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
2922
b4744254
EZ
29232009-10-04 Eli Zaretskii <eliz@gnu.org>
2924
2925 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
2926 Doc fix.
2927
dbf64827
JB
29282009-10-03 Martin Rudalics <rudalics@gmx.at>
2929
2930 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
2931
e9a0aef8
MA
29322009-10-02 Michael Albinus <michael.albinus@gmx.de>
2933
d528b1ce 2934 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
2935 used anymore outside fileio.c.
2936
2937 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
2938
64eb2b56
JB
29392009-10-01 Juanma Barranquero <lekktu@gmail.com>
2940
2941 * lisp.h (Qdelete_directory_internal):
2942 Declare, instead of Qdelete_directory.
2943
2944 * w32fns.c (Fsystem_move_file_to_trash): Use it.
2945
9d28c33e
SM
29462009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
2947
2948 * eval.c (Fcalled_interactively_p): Add `kind' argument.
2949
9d8f3bd9
MA
29502009-10-01 Michael Albinus <michael.albinus@gmx.de>
2951
9d28c33e 2952 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
2953 Fdelete_directory. It is not a command anymore. It has no file
2954 name handler.
2955
9694740b
SM
29562009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2957
2958 * xdisp.c (get_next_display_element): Use an enum in last change.
2959
748e162f
KH
29602009-09-28 Kenichi Handa <handa@m17n.org>
2961
9694740b 2962 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
2963 unibyte_display_via_language_environment in handling
2964 Vnobreak_char_display.
2965
17efd58d
AR
29662009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
2967
2968 * nsterm.h (ns_app_name): New extern variable.
2969
2970 * nsterm.m (ns_app_name): New variable.
2971 (ns_term_init): Set and use it.
2972 (ns_term_shutdown): Use it.
2973
2974 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
2975 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
2976
2977 * nsfns.m (ns_set_name_iconic, ns_set_name)
2978 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
2979 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
2980
9694740b
SM
2981 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
2982 Remove double-casting in client_data comparison.
31c2d412 2983
3208cb35
YM
29842009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2985
2986 * keyboard.c (make_lispy_event): Remember last wheel direction.
2987 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
2988
b7d552d6
GM
29892009-09-26 Glenn Morris <rgm@gnu.org>
2990
2991 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
2992 internal.elc. Add term/pc-win.elc.
2993 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
2994 term/x-win.elc.
2995 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
2996 term/w32-win.elc.
2997 (NS_SUPPORT): New.
2998 (lisp): Add NS_SUPPORT.
2999 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
3000
4ff670a8
DR
30012009-09-25 David Reitter <david.reitter@gmail.com>
3002
3003 * nsmenu.m (EmacsMenu-clear): Recognize application menu
3004 on Mac OS X 10.6+ (bug#4513).
3005
feabfb6c
JB
30062009-09-24 Juanma Barranquero <lekktu@gmail.com>
3007
3008 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
3009 some parts of Emacs code (like font selection) don't grok them.
3010 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 3011
de59072a
AS
30122009-09-24 Andreas Schwab <schwab@redhat.com>
3013
3014 * coding.c (decode_coding_iso_2022): Fix operator precedence.
3015
a489517b
JB
30162009-09-24 Juanma Barranquero <lekktu@gmail.com>
3017
3018 * dired.c (Fdirectory_files): Fix typo in docstring.
3019
0592970c
AR
30202009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3021
3022 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
3023 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
3024 (EmacsScroller-setPosition:portion:whole:): Remove -display call
3025 under GNUstep.
3026 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
3027
3028 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
3029 glyph advancement.
3030
48e8a88b
AR
30312009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3032
3033 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 3034 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
3035
3036 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
3037 deleted (bug #4492).
3038
e14f0a78
AR
3039 * nsfont.m (Vns_reg_to_script): New lisp variable.
3040 (syms_of_nsfont): Declare it.
3041 (ns_registry_to_script): New function.
3042 (ns_get_req_script): Call it.
3043 (ns_findfonts): Don't give up on non-unicode registry.
3044
3045 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
3046
5b650faa
SM
30472009-09-20 Tom Tromey <tromey@redhat.com>
3048
3049 * eval.c (find_handler_clause): Make stack-trace-on-error work in
3050 batch mode (bug#4228).
3051
a489517b 30522009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
3053
3054 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 3055 carefully. (Bug #4339)
0bae4e09 3056
fcfe06f3
CY
30572009-09-18 Chong Yidong <cyd@stupidchicken.com>
3058
d798ba87 3059 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 3060
31642728
AR
30612009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3062
3063 * emacs.c (inhibit_x_resources): Update doc string for NS.
3064 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 3065 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
3066
3067 * nsterm.h (ns_no_defaults): Remove.
3068
3069 * nsterm.m (ns_no_defaults): Remove.
3070 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
3071 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
3072 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
3073 don't update the NSWindow itself.
3074 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 3075 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
3076
3077 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
3078 ns_use_qd_smoothing.
3079
3080 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
3081 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 3082 (x-close-connection): Drop PSFlush() under OS X.
a489517b 3083 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 3084
8686ac71
JB
30852009-09-17 Juanma Barranquero <lekktu@gmail.com>
3086
3087 * emacs.c (inhibit_x_resources): New variable.
3088 (main) [HAVE_NS]: Don't process --quick command line option.
3089 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
3090
3091 * lisp.h (inhibit_x_resources): Declare it extern.
3092
3093 * w32reg.c (x_get_string_resource):
3094 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
3095
e227ba05
EZ
30962009-09-17 Eli Zaretskii <eliz@gnu.org>
3097
362654a6
JB
3098 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
3099 Add lisp/term/internal.elc.
e227ba05 3100
742d40e8
SM
31012009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
3102
3103 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
3104 (bug#4461).
3105
005bd5a2
DN
31062009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
3107
3108 * puresize.h (BASE_PURESIZE): Increase to 1290000.
3109
3110 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
3111 (OBJECTS_MACHINE): Remove, unused.
3112
f9af9719
SM
31132009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
3114
3115 * frame.c (x_get_resource_string): Remove unused.
3116
0307c7d2
JD
31172009-09-15 Jan Djärv <jan.h.d@swipnet.se>
3118
3119 * xterm.c (x_new_font): Call change_frame_size before calling
3120 x_set_window_size, in case frame size won't change.
3121
3122 * frame.c (x_set_font): Remove dead code.
3123
428b13d6
SM
31242009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
3125
3126 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
3127
5766c380
SM
31282009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3129
3130 * lread.c (Fload): Don't output a message after loading an obsolete
3131 package any more (done in Lisp now).
3132
2fd0161b
CY
31332009-09-12 Chong Yidong <cyd@stupidchicken.com>
3134
3135 * fns.c (syms_of_fns): Doc fix (Bug#4227).
3136
bc5e75b6
SM
31372009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3138
3139 * keymap.c (Fwhere_is_internal): Use nconc2.
3140
c31c985e
AM
31412009-09-11 Alan Mackenzie <acm@muc.de>
3142
3143 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
3144 batch mode.
3145
78012bd2
AS
31462009-09-11 Andreas Schwab <schwab@linux-m68k.org>
3147
3148 * xdisp.c (display_mode_element): Detect cycles.
3149
9d889332
SM
31502009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
3151
3152 * keymap.c (where_is_internal): Don't erroneously return nil right after
3153 filling the cache.
3154 (where_is_internal_1): Fix up typo.
3155
7ab5d780
GM
31562009-09-11 Glenn Morris <rgm@gnu.org>
3157
3158 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
3159 share a common doc-string.
3160
5238a749
SM
31612009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
3162
66d77eda
SM
3163 * keymap.c (get_keymap): Return the actual keymap symbol rather than
3164 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
3165
5238a749
SM
3166 * keymap.c (QCadvertised_binding): New constant.
3167 (syms_of_keymap): Initialize it.
3168 (Fwhere_is_internal): Try and use bindings from :advertised-binding
3169 if applicable.
3170
19f48442
SM
31712009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
3172
50d4ba39
SM
3173 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
3174 (parse_menu_item): Streamline since bindings are recomputed all the
3175 time anyway. Don't bother checking Vdefine_key_rebound_commands any
3176 more and don't support lmenu's menu-alias any more either.
3177
a88a5372
SM
3178 * keymap.c (where_is_internal_data): Make noindirect a boolean.
3179 (where_is_internal): Strip it down to only traverse the keymaps.
3180 Move the cache handling from Fwhere_is_internal to here.
3181 (Fwhere_is_internal): Move the handling of remapping and the choice of
3182 the best binding from where_is_internal to here.
3183 Unify the cached/noncached paths, so remapping is also handled
3184 correctly when the cache is used, and so the cache can be used to
3185 speed up remap-handling when applicable.
3186 Give preference to non-remapped bindings.
3187 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
3188 non-remapped bindings.
3189 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
3190 command remapping.
3191
19f48442
SM
3192 * xdisp.c (display_mode_element): Move list length limit from 50 to
3193 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
3194
599498c3 31952009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
3196
3197 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
3198
f9b7b5ac
SM
31992009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
3200
a53af587
JB
3201 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
3202 (Bug#4334)
3203
f9b7b5ac
SM
3204 * keymap.c (where_is_internal): Filter out shadowed remappings.
3205 Assume that where_is_internal returns unshadowed bindings to simplify
3206 the code and get rid of the gotos. Use ASIZE.
3207
04f4b72d
JD
32082009-09-04 Jan Djärv <jan.h.d@swipnet.se>
3209
4da146f2
JD
3210 * xterm.c (x_focus_changed): If we get a focusout and pointer
3211 is invisible, make it visible.
3212
04f4b72d
JD
3213 * xterm.h: Remove condition for declaration of
3214 x_*_window_to_frame.
3215
7cef7ce3
SM
32162009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
3217
3218 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
3219 initial terminal as well.
3220
a54fa5b7
JD
32212009-09-02 Jan Djärv <jan.h.d@swipnet.se>
3222
3223 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 3224 x_menubar_window_to_frame.
a54fa5b7 3225
50426a04 3226 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
3227 (XTmouse_position): Do not return valid positions
3228 for clicks in the menubar and the toolbar for Gtk+.
3229
3230 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
3231 if the widget for the event has the same top level as a frame,
3232 return the frame.
3233 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
3234 internal windows, bug #4122.
3235 (x_non_menubar_window_to_frame): Remove.
3236
5a021dd0
GM
32372009-09-02 Glenn Morris <rgm@gnu.org>
3238
3239 * buffer.c (default-major-mode): Move most of the doc from here...
3240 (major-mode): ... to here.
3241
548fe2f3
NR
32422009-08-30 Nick Roberts <nickrob@snap.net.nz>
3243
3244 * process.c (wait_reading_process_output): Keep the descriptor
3245 when pty is used by a non-child process, e.g., in I/O buffer of
3246 GDB this allows inferior to be restarted.
3247
e0840eef
EZ
32482009-08-29 Eli Zaretskii <eliz@gnu.org>
3249
3250 * xdisp.c (redisplay_internal): Remove redundant test and collapse
3251 both branches into one.
3252
82e98df4
SM
32532009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
3254
3255 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
3256 (main): Use enable-multibyte-characters rather than
3257 default-enable-multibyte-characters. Output a warning message when
3258 running a unibyte session.
3259
890617cb
YM
32602009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3261
3262 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
3263 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
3264 (copy_data_segment): Also copy __program_vars section.
3265 (copy_dyld_info) [LC_DYLD_INFO]: New function.
3266 (dump_it) [LC_DYLD_INFO]: Use it.
3267
3268 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
3269
e7adeadc
EZ
32702009-08-28 Eli Zaretskii <eliz@gnu.org>
3271
3272 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
3273 $(SRC)/buildobj.h.
3274 (buildobj.h): Renamed from $(SRC)/buildobj.h.
3275 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
3276 $(SRC)/buildobj.h.
3277 (clean): Add buildobj.h.
3278
3ed8bbdc
TZ
32792009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
3280
3281 * print.c (print_object): Set escapeflag to 1 when printing
3282 hashtable keys and values.
3283
155a6764
SM
32842009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
3285
3286 * lread.c (read_integer): Use doubles (and potentially return a float
3287 number) as we do in string-to-number.
3288 (read1): Use strtol to read integers, signal errors on strtol's
3289 overflow and use floats if strtol's output is too large for
3290 Elisp integers.
3291
877610de
EZ
32922009-08-27 Eli Zaretskii <eliz@gnu.org>
3293
3294 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
3295 (make-buildobj-SH): Fix last change.
3296 (SRC): Move to before where it's first used.
3297
ef73e7be
KH
32982009-08-27 Kenichi Handa <handa@m17n.org>
3299
550c8289
KH
3300 * process.c (send_process): Use encode_coding_object instead of
3301 encode_coding_string to perform eol-conversion even if the string
3302 is unibyte.
3303
60afa08d
KH
3304 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
3305 character.
3306
ef73e7be 3307 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 3308 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 3309
7b3a82d7
DN
33102009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
3311
5654bf63
DN
3312 * callproc.c (Fcall_process): Remove always true #if.
3313
7b3a82d7
DN
3314 * lisp.h: Replace #if 0 code for checking with text pointing to
3315 the --enable-checking configure flag.
3316
3317 * emacs.c (main): Mention the --enable-profiling configure flag
3318 instead of using CFLAGS.
3319
878bde49
KR
33202009-08-26 Ken Raeburn <raeburn@raeburn.org>
3321
3322 * Makefile.in (buildobj.h): New target.
3323 (doc.o): Depend on it.
3324 (temacs${EXEEXT}): Don't generate buildobj.lst.
3325 (mostlyclean): Delete buildobj.h, not buildobj.lst.
3326 * makefile.w32-in ($(SRC)/buildobj.h): New target.
3327 ($(BLD)/doc.$(O)): Depend on it.
3328 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
3329 provided by Eli Zaretskii.)
3330 ($(TEMACS)): Don't generate buildobj.lst.
3331 * doc.c: Include buildobj.h.
3332 (buildobj): New static variable.
3333 (Fsnarf_documentation): Use it, instead of opening and reading
3334 buildobj.lst.
3335
1574224c
MA
33362009-08-25 Michael Albinus <michael.albinus@gmx.de>
3337
3338 * dbusbind.c (Fdbus_call_method)
3339 (Fdbus_call_method_asynchronously): Use English numeric format for
3340 timeout values in doc string.
3341
d9da2f45
KH
33422009-08-25 Kenichi Handa <handa@m17n.org>
3343
ef73e7be
KH
3344 * alloc.c (mark_char_table): New function.
3345 (mark_object): Use mark_char_table for a char-table.
3346
d9da2f45
KH
3347 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
3348 (CHAR_TABLE_REF): Use it.
3349
c8edcc01
KR
33502009-08-23 Ken Raeburn <raeburn@raeburn.org>
3351
3352 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
3353 before invoking the newly build emacs to check for load-path
3354 shadowing.
3355
7763401b
GM
33562009-08-22 Glenn Morris <rgm@gnu.org>
3357
3358 * Makefile.in (bootstrap_exe): New variable.
3359 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
3360 Use ${bootstrap_exe}.
3361
729eadda
EZ
33622009-08-22 Eli Zaretskii <eliz@gnu.org>
3363
3364 * coding.h (encode_coding_string): Don't encode unibyte strings.
3365 (Bug#4047)
3366
eb4c6ace
MA
33672009-08-22 Michael Albinus <michael.albinus@gmx.de>
3368
3369 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
3370
3371 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
3372 intended as hotfix only.
3373 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
3374
36e34d1b
AR
33752009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3376
3377 * nsterm.m (ns_get_color): Update documentation properly for last
3378 change, and clean up loose ends in the code left by it. Fix
3379 longstanding bug with 16-bit hex parsing, and add support for
3380 yet another X11 format (rgb:r/g/b) for compatibility.
3381 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
3382 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
3383
f983eb8a
SM
33842009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
3385
3386 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
3387
3f56d3c6
MA
33882009-08-20 Michael Albinus <michael.albinus@gmx.de>
3389
3390 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
3391 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
3392 (xd_initialize, xd_pending_messages): Check, whether
3393 $DBUS_SESSION_BUS_ADDRESS is set.
3394
fb641d68
YM
33952009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3396
3397 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
3398
3399 * nsterm.m (ns_get_color): Remove incompatible color formats again.
3400
cf59a374
GM
34012009-08-20 Glenn Morris <rgm@gnu.org>
3402
3403 * emacs.c (system-type): Doc fix.
3404
1373f3be
SM
34052009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
3406
3407 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
3408 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
3409
058ed861
MA
34102009-08-18 Michael Albinus <michael.albinus@gmx.de>
3411
1373f3be
SM
3412 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
3413 New functions.
058ed861
MA
3414 (xd_initialize): Revert change from 2009-08-16.
3415
563a866e 34162009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
3417
3418 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 3419 font-group vector, return nil.
5fc05db0 3420
e42bdf01
CY
34212009-08-17 Chong Yidong <cyd@stupidchicken.com>
3422
3423 * process.c (status_notify): Don't perform redisplay.
3424 (Fdelete_process, list_processes_1, process_send_signal):
3425 Expliticly perform redisplay.
3426 (wait_reading_process_output): Always check process status, but
3427 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
3428
4230ab74
KR
34292009-08-17 Ken Raeburn <raeburn@raeburn.org>
3430
1373f3be 3431 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
3432 (XFLOAT_INIT): New macro for storing a float value.
3433 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
3434 * fns.c (sxhash): Copy out the value of a float in order to
3435 examine its bytes.
3436 * dbusbind.c (xd_append_arg): Likewise.
3437
4230ab74
KR
3438 * emacs.c (main): Don't call syms_of_data twice.
3439
a0645cdd
MA
34402009-08-16 Michael Albinus <michael.albinus@gmx.de>
3441
3442 * dbusbind.c (xd_initialize): Add connection file descriptor to
3443 input_wait_mask, in order to let select() detect, whether a new
3444 message has been arrived.
ca4f31ea 3445 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 3446
485db0ba
MA
34472009-08-15 Michael Albinus <michael.albinus@gmx.de>
3448
1373f3be
SM
3449 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
3450 New functions.
485db0ba
MA
3451
3452 * lisp.h (xd_pending_messages): Declare.
3453
3454 * keyboard.c (readable_events): Call xd_pending_messages.
3455
b5b98ff4
CY
34562009-08-15 Chong Yidong <cyd@stupidchicken.com>
3457
1373f3be 3458 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 3459
f8354c6e
CY
3460 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
3461
b5b98ff4
CY
3462 * buffer.c (set_buffer_internal_1)
3463 (swap_out_buffer_local_variables): Check for unbound local
3464 variables (Bug#4138).
3465
8b9fc636
EZ
34662009-08-14 Eli Zaretskii <eliz@gnu.org>
3467
3468 * process.c (create_pty): Fix last change.
3469
ce959360
CY
34702009-08-13 Chong Yidong <cyd@stupidchicken.com>
3471
3472 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
3473 (xbm_load_image): Caller changed.
64b807c9 3474 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 3475
c7baf7e9
NR
34762009-08-13 Nick Roberts <nickrob@snap.net.nz>
3477
3478 * process.c (create_pty): New function.
3479 (Fstart_process): Use it to allow Emacs to just associate a pty
3480 with the buffer. See associated change in gdb-mi.el.
3481 (list_processes_1): Deal with no program name.
3482 (start_process_unwind): Use pid == -2 to mean no process.
3483
1ac9108a
SM
34842009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
3485
3486 * cmds.c (nonundocount): New global variable.
3487 (keys_of_cmds): Initialize it.
3488 (Fself_insert_command): Use it to combine upto 20 sequential chars
3489 into a single undo entry, just like the Qself_insert_command code in
3490 keyboard.c does.
3491 Call frame_make_pointer_invisible, also like the Qself_insert_command
3492 code in keyboard.c does.
3493 * keyboard.c (command_loop_1): Use the new global nonundocount rather
3494 than its own local replacement for it.
3495
e267324c
KR
34962009-08-10 Ken Raeburn <raeburn@raeburn.org>
3497
1ac9108a 3498 * fns.c (concat): Don't re-set string length to its current value.
77437343 3499
1ac9108a
SM
3500 * coding.h (decode_coding_string, encode_coding_string):
3501 Use SBYTES macro.
f0bed503 3502
1ac9108a 3503 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
3504 (doprnt): Merge with doprnt1, discarding lispstrings code.
3505 * lisp.h (doprnt_lisp): Don't declare.
3506
416e006d
JL
35072009-08-07 Juri Linkov <juri@jurta.org>
3508
3509 * puresize.h (BASE_PURESIZE): Increase to 1270000.
3510
6f7d5780
DN
35112009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
3512
3513 * print.c (syms_of_print): Undo previous change.
3514
f19a0f5b
TZ
35152009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
3516
3517 * lread.c (read1, syms_of_lread): Read hashtables back from the
3518 readable format.
3519
3520 * print.c (print_preprocess, print_object): Print hashtables fully
3521 and readably.
3522 (syms_of_print): Provide 'hashtable-print-readable.
3523
b9173dc2
AR
35242009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
3525
3526 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
3527 no family set.
3528 (nsfont_open): Handle case when entity has no family.
3529
1586503c
AR
35302009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3531
3532 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
3533 element, not a list, for match case.
3534
087048cd
KH
35352009-07-28 Kenichi Handa <handa@m17n.org>
3536
3537 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
3538 rigidly.
3539
3540 * xfont.c (xfont_list_pattern): Don't ignore the return value of
3541 font_parse_xlfd. Check font properties more rigidly.
3542
780c2506
DN
35432009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
3544
31fd7c5c
JB
3545 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
3546 bsd-common.h.
780c2506 3547
a8c0cc18
KH
35482009-07-27 Kenichi Handa <handa@m17n.org>
3549
3550 * xfaces.c (face_with_height): Call font_clear_prop.
3551
4fbe2306
CY
35522009-07-26 Chong Yidong <cyd@stupidchicken.com>
3553
111d9af3
CY
3554 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
3555
3556 * xterm.c (x_term_init): Use Qx.
3557
4fbe2306
CY
3558 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
3559
1ac9108a 3560 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
3561 (ns_get_color): Revert 2009-07-16 change.
3562
beb0b7f9
EZ
35632009-07-25 Eli Zaretskii <eliz@gnu.org>
3564
3565 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 3566 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 3567
2baf5e76
KR
35682009-07-25 Ken Raeburn <raeburn@raeburn.org>
3569
1ac9108a
SM
3570 * coding.h (decode_coding_string, encode_coding_string):
3571 Use SCHARS macro.
8890e5f5 3572
2baf5e76 3573 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 3574 (load_depth): Delete.
2baf5e76
KR
3575 (Qload_in_progress): New variable.
3576 (load_unwind): Don't reference load_depth or load_in_progress.
3577 (Fload): Likewise; specbind Qload_in_progress instead.
3578 (init_lread): Don't initialize load_depth.
3579 (syms_of_lread): Initialize and protect Qload_in_progress.
3580
1395c6f5
AR
35812009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3582
3583 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
3584
4e2f36cf
AR
35852009-07-23 Yavor Doganov <yavor@gnu.org>
3586
3587 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
3588
5dd9a6f7
AR
35892009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3590
3591 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
3592 Bugs 3792, 3720, 2402.
3593 (ns_lookup_indexed_color): Check for bad index.
3594 (ns_index_color): Init unused slot to 0.
3595 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
3596 Bug 3714, possibly 3082.
5dd9a6f7 3597
c902b920
JR
35982009-07-22 Jason Rumney <jasonr@gnu.org>
3599
1ac9108a
SM
3600 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
3601 Position IME window at cursor (Bug#2570).
c902b920
JR
3602 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
3603 (globals_of_w32fns): Dynamically load functions required above.
3604
3605 * w32term.c (w32_draw_window_cursor): Send message to reposition
3606 any IME window.
3607
090101cf
CY
36082009-07-21 Chong Yidong <cyd@stupidchicken.com>
3609
3610 * fileio.c: Revert 2009-07-16 changes.
3611 (Vauto_save_include_big_deletions): New variable.
3612 (Fdo_auto_save): Disable auto-save only if
3613 auto-save-include-big-deletions is nil.
3614
e6583e3d
CY
36152009-07-21 Chong Yidong <cyd@stupidchicken.com>
3616
3617 * xdisp.c (move_it_to): For continued lines ending in a tab, take
3618 the overflowed pixels into account (Bug#3879).
3619
ece435a5
KR
36202009-07-21 Ken Raeburn <raeburn@raeburn.org>
3621
3622 * lread.c (load_depth): New variable.
3623 (Fload, load_unwind, init_lread): Set it to the load recursion
3624 depth; set load_in_progress as a simple boolean based on the
3625 current load_depth. (Bug#3892)
3626
40b2d973
AR
36272009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3628
3629 * nsfont.m (ns_has_attribute): Remove.
3630 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
3631
10be7e0d
JL
36322009-07-18 Juri Linkov <juri@jurta.org>
3633
3634 * process.c (Fset_process_query_on_exit_flag): Mention killing
3635 a buffer in docstring.
3636
fa055055
KH
36372009-07-17 Kenichi Handa <handa@m17n.org>
3638
3639 * casetab.c (shuffle): Fix the logic of setting up the cycle.
3640
042f7b69
YM
36412009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3642
3643 * nsfns.m (Fns_set_alpha): Remove function.
3644 (syms_of_nsfns): Don't defsubr it.
3645
3646 * nsterm.m (ns_get_color): Remove incompatible color formats.
3647 (ns_color_to_lisp): Generate #rrggbb color format string.
3648
4be941e3
RS
36492009-07-16 Richard Stallman <rms@gnu.org>
3650
3651 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
3652 (Fset_buffer_auto_saved): Handle save_length = -2.
3653
4e6b227d
CY
36542009-07-16 Chong Yidong <cyd@stupidchicken.com>
3655
3656 * xterm.c (Qx_gtk_map_stock): New var.
3657
3658 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
3659 of calling intern each time.
3660
a1856973
YM
36612009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3662
3663 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
3664 does tiling.
3665
3666 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
3667
497e54d8
KH
36682009-07-14 Kenichi Handa <handa@m17n.org>
3669
72d36834
KH
3670 * font.c (font_vconcat_entity_vectors): New function.
3671 (struct font_sort_data): New member font_driver_preference.
3672 (font_compare): Check font_driver_preference.
3673 (font_sort_entities): The format of the first argument changed.
3674 (font_delete_unmatched): Likewise.
3675 (font_list_entities): The return type changed.
3676 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
3677 (font_find_for_lface): Adjuste for the above changes.
3678 Don't suppress the checking of C even if the repertory supports it.
3679 (Flist_fonts): Adjust for the above changes.
72d36834 3680
1ac9108a
SM
3681 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
3682 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
3683 Reject a font who has adstyle property that is different from a
3684 langname derived from registry property.
1ac9108a 3685 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 3686
b6046155
EZ
36872009-07-13 Eli Zaretskii <eliz@gnu.org>
3688
3689 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
3690 local copy of dirfilename.
3691
fb6b6049
KH
36922009-07-13 Kenichi Handa <handa@m17n.org>
3693
e2402a5e
KH
3694 * chartab.c (sub_char_table_ref_and_range): Fix the range check
3695 against max_char.
3696
fb6b6049
KH
3697 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
3698 calling XSYMBOL (sym).
3699
65156807
EZ
37002009-07-11 Eli Zaretskii <eliz@gnu.org>
3701
1ac9108a
SM
3702 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
3703 New function.
3704 (directory_files_internal) [WINDOWSNT]:
3705 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
3706 the filesystem of the directory is fast or slow.
3707
3708 * w32.c (logon_network_drive): Don't assume PATH is an absolute
3709 file name.
3710 (is_slow_fs): New function.
3711 (stat): Use it to determine whether to issue more system calls to
3712 get accurate file attributes, when w32-get-true-file-attributes is
3713 `local'.
3714
e0ab5fcf
JD
37152009-07-10 Jan Djärv <jan.h.d@swipnet.se>
3716
3717 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 3718 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
3719 parameter font-parameter as default to the font dialog.
3720
784ceded
KH
37212009-07-10 Kenichi Handa <handa@m17n.org>
3722
3723 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
3724
fb8edc0b
EZ
37252009-07-09 Eli Zaretskii <eliz@gnu.org>
3726
1ac9108a 3727 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 3728
fb8edc0b
EZ
3729 * w32.c (stat): Treat UNC file names as residing on remote
3730 drives. (Bug#3542)
3731
635c75b1
KH
37322009-07-09 Kenichi Handa <handa@m17n.org>
3733
3734 * fontset.c (fontset_find_font): Fix previous change.
3735
c1d5ce94
MA
37362009-07-08 Michael Albinus <michael.albinus@gmx.de>
3737
3738 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
3739 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
3740 error flag.
3741
edb61b39
KH
37422009-07-08 Kenichi Handa <handa@m17n.org>
3743
374bf7e4
KH
3744 * fontset.c (fontset_find_font): Fix the logic of handling
3745 charset_matched.
3746 (font_for_char): Delete unused var.
3747 (generate_ascii_font_name): Delete it.
3748
edb61b39
KH
3749 * coding.h (JIS_TO_SJIS2): Fix the code range check.
3750
3751 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
3752 (encode_coding_sjis): Fix the code range check.
3753
0f3f018c
CY
37542009-07-07 Chong Yidong <cyd@stupidchicken.com>
3755
3756 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
3757 (Fexpand_file_name): Copy string data properly (Bug#3772).
3758
fcaf6f3a
JD
37592009-07-07 Jan Djärv <jan.h.d@swipnet.se>
3760
3761 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
3762 first MapNotify.
3763
6809ca75
KH
37642009-07-07 Kenichi Handa <handa@m17n.org>
3765
3766 * character.h (unibyte_has_multibyte_table): Delete extern.
3767 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
3768
3769 * charset.c (Fset_charset_priority): Update charset_unibyte.
3770 (syms_of_charset): Initialize charset_unibyte.
3771
3772 * character.c (unibyte_has_multibyte_table): Delete it.
3773 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
3774 charset_unibyte.
3775 (multibyte_char_to_unibyte_safe): Likewise.
3776 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
3777
1ac9108a 3778 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
3779 (x_produce_glyphs): Likewise.
3780
3781 * .gdbinit (xcharset): Fix the treating $arg0.
3782
ad9e2d54
EZ
37832009-07-04 Eli Zaretskii <eliz@gnu.org>
3784
3785 Emulation of `getloadavg' on MS-Windows.
50426a04 3786 * w32.c: Include float.h.
ad9e2d54
EZ
3787 (g_b_init_get_native_system_info, g_b_init_get_system_times)
3788 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
3789 (get_native_system_info, get_system_times): New functions.
3790 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
3791 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
3792 (globals_of_w32): Initialize g_b_init_get_native_system_info,
3793 g_b_init_get_system_times, and num_of_processors.
3794
0a3472c7
JR
37952009-07-03 Jason Rumney <jasonr@gnu.org>
3796
3797 * w32term.c (w32_initialize): Use standard types.
3798
80904120
EZ
37992009-07-03 Eli Zaretskii <eliz@gnu.org>
3800
3801 * dired.c (Ffile_attributes): Decode user and group names by the
3802 locale's encoding. (Bug#3443)
3803
6978862d
DN
38042009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
3805
f8d23104
DN
3806 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
3807 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
3808
3809 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
3810
3811 * term.c (init_tty): Remove spurious #ifdef.
3812
6978862d
DN
3813 * m/mips.h: Mention this file is also used for netbsd.
3814 * m/pmax.h: Remove file.
3815
e044e4fc
JD
38162009-07-03 Jan Djärv <jan.h.d@swipnet.se>
3817
3818 * xterm.h (struct x_display_info): Add invisible_cursor.
3819 (struct x_output): Add current_cursor.
3820
3821 * xterm.c (XTtoggle_invisible_pointer): New function.
3822 (x_define_frame_cursor): Don't define cursor if invisible or the
3823 same as before. Set current_cursor.
3824 (x_create_terminal): Set toggle_invisible_pointer_hook.
3825
3826 * xfns.c (make_invisible_cursor): New function.
3827 (x_set_mouse_color): Call make_invisible_cursor.
3828 Set current_cursor.
3829 (x_window): Set current_cursor.
3830
3831 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
3832
3833 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
3834 inserting a character.
3835 (read_avail_input): Call frame_make_pointer_visible.
3836
3837 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
3838 (frame_make_pointer_invisible, frame_make_pointer_visible):
3839 New functions.
e044e4fc
JD
3840 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
3841
3842 * frame.h: Declare frame_make_pointer_invisible and
3843 frame_make_pointer_visible.
3844 (struct frame): Add pointer_invisible.
3845
574c8efa
JD
38462009-07-02 Jan Djärv <jan.h.d@swipnet.se>
3847
7b507248
JD
3848 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
3849 frame isn't visible.
3850 (xg_frame_resized): If width/height is -1, get size of window
3851 from X server.
3852
3853 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
3854 for MapNotify.
3855
835bdaa7 3856 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 3857 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 3858 (flush_and_sync): Reintroduce.
574c8efa 3859
3f1c6666 38602009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 3861
31fd7c5c 3862 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
3863
3864 * xterm.c (x_handle_net_wm_state): Also look for sticky.
3865 (x_term_init): Initialize Xatom_net_wm_state_sticky.
3866
3867 * frame.h: Declare Qsticky.
3868
cad9ef74
JD
3869 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
3870
3871 * nsfns.m (ns_frame_parm_handlers): Ditto.
3872
3873 * frame.c: Declare Qsticky.
3874 (frame_parms): Add sticky.
3875
3876 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
3877
3878 * xterm.h: Declare x_set_sticky.
3879
3880 * xterm.c (x_set_sticky): New function.
3881
69b16610
JD
3882 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
3883 (xg_tool_bar_menu_proxy): Attach enter/leave events to
3884 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
3885
3886 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
3887
3888 * frame.c: Qmaximized is new.
3889 (x_set_frame_parameters): Do not handle fullscreen specially.
3890 Only set width and height if explicitly set.
3891 (x_set_fullscreen): Handle Qmaximized.
3892 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
3893 (syms_of_frame): Initialize Qmaximized.
3894
1ac9108a
SM
3895 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
3896 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
3897
3898 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
3899 for Expose event. Add call to x_check_fullscreen for MapNotify event.
3900 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
3901 set gravity to NorthWestGravity when USE_GTK.
3902 (set_wm_state): New function.
31fd7c5c 3903 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
3904 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
3905 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 3906 or the case when no window manager is running. That means remove calls
3f1c6666
JD
3907 to x_real_positions and x_fullscreen_adjust.
3908
3909 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
3910 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
3911 flush_and_sync.
3912 (xg_height_changed): New function.
3913 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
3914 and gtk_window_set_policy. Set frame gravity after parsing the
3915 geometry string.
3f1c6666
JD
3916 (xg_update_frame_menubar, free_frame_menubar)
3917 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
3918 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
3919 Remove calls to xg_frame_set_char_size.
3920
fd503d99
KH
39212009-07-01 Kenichi Handa <handa@m17n.org>
3922
3923 * keyboard.c (decode_keyboard_code): New function.
3924 (tty_read_avail_input): Decode the input bytes if necessary.
3925
1ac9108a
SM
3926 * coding.c (setup_coding_system):
3927 Initialize coding->carryover_bytes to 0.
fd503d99
KH
3928 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
3929 use Qno_conversion.
3930
24ed93fb
YM
39312009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3932
3933 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
3934
99061dfc
CY
39352009-06-30 Chong Yidong <cyd@stupidchicken.com>
3936
1ac9108a 3937 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 3938
ff90fbde
JR
39392009-06-30 Jason Rumney <jasonr@gnu.org>
3940
3941 * w32term.c (w32_initialize): Use GetModuleHandle for library that
3942 is already loaded.
3943 Set user model ID if supported (bug#1849).
3944
5f445726
JM
39452009-06-29 Jim Meyering <meyering@redhat.com>
3946
3947 Remove useless if-before-xfree test.
3948 * nsfont.m (nsfont_close): Remove useless test.
3949 * term.c (delete_tty): Likewise.
3950 * w32.c (system_process_attributes): Likewise.
3951 * w32font.c (w32font_close): Likewise.
3952 * xfaces.c (x_free_gc): Likewise.
3953 * xselect.c (buffer): Likewise.
3954
b9607587
AS
39552009-06-28 Andreas Schwab <schwab@linux-m68k.org>
3956
3957 * process.c (send_process): Keep decoded string in a local
3958 variable and protect it from GC. (Bug#3521)
3959
89ba96f4
EZ
39602009-06-28 Eli Zaretskii <eliz@gnu.org>
3961
3962 * term.c (create_tty_output) [MSDOS]: #ifdef away.
3963 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
3964
098a1589
CY
39652009-06-28 Chong Yidong <cyd@stupidchicken.com>
3966
485422be
CY
3967 * xdisp.c (start_display, handle_face_prop)
3968 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
3969 (redisplay_window, try_window_id, produce_image_glyph):
3970 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 3971
098a1589
CY
3972 * xterm.c (x_update_window_begin, x_new_focus_frame)
3973 (x_scroll_bar_handle_click, handle_one_xevent)
3974 (handle_one_xevent, XTread_socket, x_focus_on_frame)
3975 (x_make_frame_visible, x_make_frame_invisible)
3976 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
3977 code chunks that are now obsolete.
3978
78c38319
MA
39792009-06-28 Michael Albinus <michael.albinus@gmx.de>
3980
3981 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
3982 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
3983 for hours, when optimzation is enabled.
3984 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
3985 (xd_read_message): Make them static.
3986
4189ed40
CY
39872009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
3988
3989 * term.c (turn_on_face): Allow simultaneously bold and dim
3990 terminal faces (Bug#3530).
3991
cd9b5e16
CY
39922009-06-27 Chong Yidong <cyd@stupidchicken.com>
3993
4e23bedb
CY
3994 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
3995
cd9b5e16
CY
3996 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
3997 truncation glyphs (Bug#3686).
3998
07cc3c35
GM
39992009-06-27 Glenn Morris <rgm@gnu.org>
4000
4001 * m/pmax.h: Restore file, with only netbsd portions.
4002
31fd7c5c 40032009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 4004
cd9b5e16 4005 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 4006
42d4a64f
KH
40072009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
4008
4009 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
4010 the arg FORCE_SYMBOL.
4011
930fe55b 40122009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
4013
4014 * fontset.c (fontset_find_font): When a usable rfont_def is found
4015 in a fallback font-group, make it the first element of the group.
4016
57ebc3fd
CY
40172009-06-24 Chong Yidong <cyd@stupidchicken.com>
4018
4019 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
4020
f084f942
KH
40212009-06-24 Kenichi Handa <handa@m17n.org>
4022
4023 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
4024 set for C.
4025 (fontset_font): Record the availability of a font for C both in
4026 the realized fontsets of the current one and the default one.
4027
2f686c87
DN
40282009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
4029
4030 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
4031 conditional, it is always defined on AIX.
4032
666e158e
MB
40332009-06-23 Miles Bader <miles@gnu.org>
4034
4035 * window.c (Vrecenter_redisplay): New variable.
4036 (syms_of_window): Initialize it.
4037 (Qtty): New extern declaration.
4038 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
4039
c6da7cd2
JM
40402009-06-23 Jim Meyering <meyering@redhat.com>
4041
1ac9108a
SM
4042 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
4043 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 4044 pointer dereferences are guaranteed to be valid.
c6da7cd2 4045
678dca3d
KH
40462009-06-23 Kenichi Handa <handa@m17n.org>
4047
74d75424
KH
4048 * emacs.c (main): Call init_font ().
4049
4050 * font.h (Vfont_log): Extern it.
4051 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
4052
4053 * font.c (font_sort_entities, font_list_entities)
4054 (font_matching_entity, font_open_entity)
4055 (font_close_object): Change font_add_log to FONT_ADD_LOG.
4056 (Vfont_log): Delete static.
4057 (font_log_env_checked): Delete this variable.
4058 (font_add_log): Don't check font_log_env_checked.
4059 (font_deferred_log): Check Vfont_log.
4060 (init_font): New function.
4061
678dca3d
KH
4062 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
4063
4064 * w32font.c: Change font_add_log to FONT_ADD_LOG.
4065
4066 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
4067
4068 * xfont.c: Change font_add_log to FONT_ADD_LOG.
4069
4070 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
4071 (face_for_char): Don't call font_deferred_log here.
4072 (font_for_char): Likewise.
4073
8a668709
CY
40742009-06-22 Chong Yidong <cyd@stupidchicken.com>
4075
9a01ee33
CY
4076 * w32term.c (x_draw_glyph_string): Use the glyph string's width
4077 rather than its background_width for drawing the overline and
4078 underline (Bug#489).
4079
4080 * xterm.c (x_draw_glyph_string): Use the glyph string's width
4081 rather than its background_width for drawing the overline and
4082 underline (Bug#489).
ec7c9926
CY
4083 (xg_default_icon_file): New variable.
4084 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
4085 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 4086
8a668709
CY
4087 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
4088 (load_overlay_strings): Remove externs.
4089 (fast_find_position): Function deleted.
4090 (mouse_face_from_buffer_pos): New function, based on
4091 fast_find_position. Correctly handle before-strings,
4092 display-strings, and after-strings (Bug#1220).
4093 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
4094
4d4c02d8
CY
40952009-06-21 Chong Yidong <cyd@stupidchicken.com>
4096
1ac9108a 4097 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
4098 (move_it_in_display_line_to, move_it_in_display_line_to)
4099 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
4100
70243478
CY
41012009-06-21 Chong Yidong <cyd@stupidchicken.com>
4102
4103 * Branch for 23.1.
4104
13087e59
JR
41052009-06-21 Jason Rumney <jasonr@gnu.org>
4106
4107 * w32term.c (keyboard_codepage): New static variable.
4108 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
4109 (w32_read_socket) [WM_CHAR]: Use it to decode character
4110 input (bug#3237).
4111 (w32_initialize): Initialize it.
4112 (codepage_for_locale): New function.
4113
4735b74e
KR
41142009-06-20 Ken Raeburn <raeburn@raeburn.org>
4115
4116 * process.c (status_message): Pass Faset index argument as a lisp
4117 object, so as to work with USE_LISP_UNION_TYPE.
4118
0e727afa
YM
41192009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4120
4121 * coding.c (Ffind_coding_systems_region_internal):
4122 Cache checked characters.
4123
cf299835
KH
41242009-06-18 Kenichi Handa <handa@m17n.org>
4125
1ac9108a 4126 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 4127
90f20d94
AS
41282009-06-18 Andreas Schwab <aschwab@redhat.com>
4129
4130 * xdisp.c (redisplay_internal): Check that the frame is still
4131 live after redisplay of its windows.
4132 (redisplay_windows): Check that the window is still live.
4133
7f1faf1c
KH
41342009-06-17 Andreas Schwab <schwab@linux-m68k.org>
4135
4136 * coding.c (detect_coding_utf_16): Fix previous change.
4137
cc13543e
KH
41382009-06-16 Kenichi Handa <handa@m17n.org>
4139
4140 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
4141 UTF-16 by checking the dispersion of Eth and Oth bytes.
4142
977b85f4
AS
41432009-06-15 Andreas Schwab <schwab@linux-m68k.org>
4144
4145 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
4146
66bd43d1
KH
41472009-06-15 Kenichi Handa <handa@m17n.org>
4148
4149 * process.c (status_message): Fix previous change. Be sure to
4150 decode a localized string.
4151
cb5ca9c5
YM
41522009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4153
4154 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
4155 add comment explaining why.
4156
ec7709ba 41572009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 4158
ec7709ba 4159 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 4160
4b7f335c
AR
41612009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
4162
4163 * nsfont.m (ns_attribute_value): Remove.
4164 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
4165 (ns_has_attribute): Shrink the normal range.
4166 (ns_findfonts): Don't worry about requested spec in determining
4167 need for synthItal.
e41820ee 4168 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 4169
73b26103
SZ
41702009-06-14 Seiji Zenitani <zenitani@mac.com>
4171
4172 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
4173
5753e4da
KH
41742009-06-11 Kenichi Handa <handa@m17n.org>
4175
4176 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
4177 overhang for the static composition case.
4178
3561b671
KH
41792009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4180
5753e4da
KH
4181 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
4182 overhang for the automatic composition case.
4183
3561b671
KH
4184 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
4185 composition case.
4186
852bbd41
CY
41872009-06-10 Chong Yidong <cyd@stupidchicken.com>
4188
4189 * xdisp.c (get_next_display_element): When handling wrap-prefix
4190 and line-prefix, treat \n as a control character (bug#3502).
4191
9903d1e6
KH
41922009-06-10 Kenichi Handa <handa@m17n.org>
4193
4194 * font.c (font_parse_family_registry): Fix for one-char foundry.
4195 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
4196
0bcbaaaa
CY
41972009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
4198
4199 * process.c (status_message): Fix handling of multibyte signal
4200 string (Bug#3499).
4201
40aa3f13
JM
42022009-06-09 Jim Meyering <meyering@redhat.com>
4203
1f80c7e2
CY
4204 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
4205 color name is missing.
40aa3f13 4206
72d51285
KH
42072009-06-09 Kenichi Handa <handa@m17n.org>
4208
4209 * charset.c (Fmap_charset_chars): In docstring, state clearly that
4210 FROM-CODE and TO-CODE are codepoints of CHARSET.
4211
c1d04d84
AR
42122009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
4213
4214 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
4215
42162009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
4217
4218 Changes to support :script/:lang/:otf in NS font driver.
4219 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
4220 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
4221 indicate not part of font driver interface, and change callers.
4222 (ns_get_family): Remove pointless null check.
4223 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
4224 ns_spec_to_descriptor, ns_descriptor_to_entity.
4225 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
4226 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
4227 (ns_spec_to_descriptor, ns_descriptor_to_entity)
4228 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
4229 (ns_get_req_script, ns_accumulate_script_ranges)
4230 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
4231 New functions.
4232 (nsfont_list, nsfont_match): Use ns_findfonts.
4233 (nsfont_open): Use font descriptor instead of traits.
4234 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
4235 (dump_glyphstring): Rename to ns_dump_glyphstring.
4236
c7eb9816
AR
4237 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
4238
c1d04d84
AR
4239 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
4240
4241 * fontset.c (fontset_from_font): Remove NS-specific code.
4242
ec7709ba 42432009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
4244
4245 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
4246 nonactive windows.
4247
31fd7c5c 42482009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 4249
1ac9108a 4250 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 4251
68852c13 42522009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
4253
4254 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
4255
6756cd1d
CY
42562009-06-07 Chong Yidong <cyd@stupidchicken.com>
4257
4258 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
4259 account for the overflowing of newlines into the last glyph on the
4260 display line (Bug#3482).
4261
28bf482a
DR
42622009-06-05 David Reitter <david.reitter@gmail.com>
4263
ec7709ba
JB
4264 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
4265 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
4266 Fns_selection_exists_p, Fns_selection_owner_p.
4267
fdb55376
JR
42682009-06-03 Jason Rumney <jasonr@gnu.org>
4269
4270 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
4271 available. (Bug#3379)
4272
05129fbe
KH
42732009-05-29 Kenichi Handa <handa@m17n.org>
4274
1ac9108a
SM
4275 * coding.c (get_translation_table):
4276 Check Venable_character_translation.
05129fbe 4277
ec7709ba 42782009-05-26 David Reitter <david.reitter@gmail.com>
15891144 4279
ec7709ba
JB
4280 * nsterm.m (ns_raise_frame): Only raise frame if visible.
4281 (x_make_frame_visible): Move frame to front rather than calling
15891144 4282 ns_raise_frame().
ec7709ba 4283 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 4284 isn't key window.
ec7709ba 4285 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
4286 drawRect may be called by NSView even if the frame is hidden.
4287
ec7709ba
JB
4288 * nsfns.m (Fx_create_frame): Follow other ports in
4289 determining visibility; default to t. Ensure async_visible is set.
15891144 4290
21f73755
EZ
42912009-05-23 Eli Zaretskii <eliz@gnu.org>
4292
4293 * dired.c (Ffile_attributes): Doc fix.
4294
34001e41
CY
42952009-05-22 Chong Yidong <cyd@stupidchicken.com>
4296
4297 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
4298
46306a17
SM
42992009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
4300
4301 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
4302 and xfont_scratch_props.
4303 (syms_of_xfont): Do it here instead.
4304 (xfont_find_ccl_program): Delete, unused.
4305 (xfont_open): Delete unused var `i'.
4306
ef6e0694
KH
43072009-05-21 Kenichi Handa <handa@m17n.org>
4308
4309 * fontset.c (Qlatin): Don't make it static.
4310
46306a17
SM
4311 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
4312 New functions.
ef6e0694
KH
4313 (xfont_scripts_cache, xfont_scratch_props): New variables.
4314 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
4315 (xfont_list_pattern): Argument changed. Callers changed.
4316 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
4317 (xfont_list): Don't reject a font spec with :script property.
4318 (xfont_has_char): Fix setting of encoding.
4319 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
4320 xfont_scratch_props.
4321
43222009-05-19 Kenichi Handa <handa@m17n.org>
4323
46306a17 4324 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
4325 Callers changed.
4326
43272009-05-18 Kenichi Handa <handa@m17n.org>
4328
4329 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
4330
ac71ced7
SM
43312009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
4332
4333 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
4334 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
4335
1c6d1051
YM
43362009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4337
4338 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
4339 (x_delete_terminal): Dissociate resource database from display and
4340 then call XrmDestroyDatabase before closing display.
4341
9b9b779c
AR
43422009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
4343
4344 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
4345 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
4346 whether selected frame is viable before raising it (based on patch
4347 by David Reitter), and improve commentary.
4348 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 4349
cccd42d5
KH
43502009-05-15 Kenichi Handa <handa@m17n.org>
4351
4352 * font.c (Ffont_spec): Check arguments.
4353
337fbd17
CY
43542009-05-14 Chong Yidong <cyd@stupidchicken.com>
4355
4356 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
4357 weight when testing attributes (Bug#3282).
4358
47a6002f
JD
43592009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4360
4361 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
4362 what we expect to get in the next ConfigureNotify event.
4363
9cb363db
YM
4364 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
4365 before Xft one (Bug#1696).
4366
b9126609
CY
43672009-05-07 David Reitter <david.reitter@gmail.com>
4368
4369 * nsfns.m (Fx_display_planes): Compute bitplanes using
4370 NSBitsPerPixelFromDepth (Bug#3207).
4371
27a69fd9
CY
43722009-05-10 Chong Yidong <cyd@stupidchicken.com>
4373
4374 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
4375
00f37552
TTN
43762009-05-10 Ulrich Mueller <ulm@gentoo.org>
4377
4378 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
4379
2d82a920
DR
43802009-05-07 David Reitter <david.reitter@gmail.com>
4381
ec7709ba
JB
4382 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
4383 Respect mouse face background.
2d82a920 4384
46b0d52d
DR
43852009-05-07 David Reitter <david.reitter@gmail.com>
4386
ec7709ba
JB
4387 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
4388 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
4389 in ns_update_begin and ns_update_end.
4390
ce1b23bb
SM
43912009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4392
5996e1b7
SM
4393 * nsfns.m (ns_get_screen): Rewrite.
4394 Don't presume selected-frame is of type `ns'.
4395
ba98e3a0
SM
4396 * font.c (font_update_drivers): Sanity fallback to avoid disabling
4397 all drivers.
4398
ce1b23bb
SM
4399 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
4400
bcda200f
YM
44012009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4402
4403 * keyboard.h (add_user_signal): Fix typo in extern.
4404
4405 * lisp.h (add_user_signal): Remove extern.
4406
4407 * unexelf.c (unexec): Consider a section to precede the .bss section
4408 if its addresses overlap that of .bss.
4409 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
4410 instead of dumping process.
4411
864660a2
SM
44122009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4413
4414 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
4415
50da4e56
SM
44162009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
4417
4418 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
4419
51520a1a
DN
44202009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
4421
4422 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
4423 any statements.
4424
409ea3a1
AS
44252009-05-02 Andreas Schwab <schwab@linux-m68k.org>
4426
59c4c60f
AS
4427 * process.c (read_process_output): Make sure the current buffer is
4428 always restored.
4429
409ea3a1
AS
4430 * coding.c (record_conversion_result): Don't modify
4431 Vlast_code_conversion_error for successful result.
4432 (alloc_destination): Don't clobber conversion result. (Bug#1650)
4433
56f00ed2
KH
44342009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
4435
4436 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 4437 (load_charset_map): Remove unnecessary code.
56f00ed2 4438
4491c9d2
DR
44392009-04-30 David Reitter <david.reitter@gmail.com>
4440
35f5b128 4441 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
4442 through f24.
4443
6970f632
CY
44442009-04-30 Chong Yidong <cyd@stupidchicken.com>
4445
4446 * xfaces.c (face_at_buffer_position): New arg base_face_id.
4447
4448 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
4449 face_at_buffer_position.
4450 (face_before_or_after_it_pos, get_next_display_element)
4451 (note_mouse_highlight): Update face_at_buffer_position call.
4452
4453 * term.c (term_mouse_highlight):
4454 * msdos.c (IT_note_mouse_highlight):
4455 * fontset.c (Finternal_char_font):
35f5b128 4456 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
4457
4458 * dispextern.h (face_at_buffer_position): Update prototype.
4459
0c616f63
KH
44602009-04-30 Kenichi Handa <handa@m17n.org>
4461
35f5b128 4462 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 4463
ad3aaf33
AS
44642009-04-29 Andreas Schwab <schwab@linux-m68k.org>
4465
4466 * callproc.c (Fcall_process): Fix GC protection. Make sure
4467 current buffer is always restored.
4468
c3c963a0
YM
44692009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4470
4471 * atimer.c (init_atimer): Also clear stopped_atimers.
4472
4473 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
4474
7e3386cb
YM
4475 * process.c (create_process): Clean up merger residues of
4476 2008-07-17 change.
4477
91f68422
CY
44782009-04-29 Ulrich Mueller <ulm@gentoo.org>
4479
4480 * lread.c (Vread_circle): New variable.
4481 (read1): Disable recursive read if Vread_circle is nil.
4482
24b34550
KH
44832009-04-29 Kenichi Handa <handa@m17n.org>
4484
4485 * fontset.h (set_default_ascii_font): Delete extern.
4486
4487 * fontset.c (set_default_ascii_font): Delete this unused function.
4488
4489 * frame.c (x_set_font): When ARG is a font-object, check if the
4490 font-object matches with the ASCII font-spec of the frame's
9c358bda 4491 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 4492
77bf07e1
AS
44932009-04-28 Andreas Schwab <schwab@linux-m68k.org>
4494
4495 * fns.c (Flocale_info): Protect vector from GC during decoding.
4496
4497 * process.c (Fstart_process): Protect argv strings from GC during
4498 encoding.
4499
2c55aacf
AS
45002009-04-27 Andreas Schwab <schwab@linux-m68k.org>
4501
4502 * sysdep.c: Include <ctype.h>.
4503
b892d3c9
DR
45042009-04-27 David Reitter <david.reitter@gmail.com>
4505
35f5b128 4506 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
4507 Remove commented-out code.
4508
9d0644c4
JB
45092009-04-26 Johan Bockgård <bojohan@gnu.org>
4510
4511 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
4512
b7053016
JR
45132009-04-25 Jason Rumney <jasonr@gnu.org>
4514
4515 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
4516
4e8231f3
YM
45172009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4518
4519 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
4520 Swap bytes in short integer if fringe bitmap width > 8.
4521
493dcf2c
KH
45222009-04-23 Kenichi Handa <handa@m17n.org>
4523
4524 * xfaces.c (Fx_list_fonts): If a font size is specified in
4525 PATTERN, set it in returned scalable fonts.
4526
401e9e57
CY
45272009-04-22 Chong Yidong <cyd@stupidchicken.com>
4528
708e05dc
CY
4529 * keyboard.c (Fset_input_meta_mode): Doc fix.
4530
4531 * dispnew.c (Fsend_string_to_terminal): Doc fix.
4532
1ac9108a 4533 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
4534
4535 * coding.c (Fterminal_coding_system): Doc fix.
4536
4537 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
4538 (Fx_display_pixel_height, Fx_display_planes)
4539 (Fx_display_color_cells, Fx_server_max_request_size)
4540 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
4541 (Fx_display_mm_height, Fx_display_mm_width)
4542 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
4543 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
4544 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
4545 (check_x_display_info): Handle terminal objects instead of
4546 terminal ids.
4547
401e9e57
CY
4548 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
4549 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
4550 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
4551 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 4552
df80c7f0
KH
45532009-04-21 Kenichi Handa <handa@m17n.org>
4554
5a8f12af 4555 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 4556 (font_score): Check AVGWIDTH too.
908567ef 4557
df80c7f0
KH
4558 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
4559 worst case.
1ac9108a
SM
4560 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
4561 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 4562
705af33f
JR
45632009-04-19 Jason Rumney <jasonr@gnu.org>
4564
4565 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 4566 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
4567
4568 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
4569 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
4570 get_phys_cursor_geometry.
4571
b71ac3dd 4572 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
4573 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
4574 using get_phys_cursor_geometry.
4575
4576 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
4577 correctly calculated.
4578
dc2933eb
JD
45792009-04-19 Jan Djärv <jan.h.d@swipnet.se>
4580
1ac9108a
SM
4581 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
4582 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
4583 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
4584 is deprecated.
4585
973e7849
AS
45862009-04-18 Andreas Schwab <schwab@linux-m68k.org>
4587
4588 * font.c (font_put_frame_data): Use xfree instead of free.
4589
314d66f4
JB
45902009-04-17 Juanma Barranquero <lekktu@gmail.com>
4591
4592 * w32font.c (Qja, Qko): Remove declarations.
4593 (syms_of_w32font): Don't DEFSYM them.
4594
cf702558
CY
45952009-04-17 Chong Yidong <cyd@stupidchicken.com>
4596
4597 * font.c (Qja, Qko): Move definitions here from ftfont.c.
4598
4599 * font.h (Qja, Qko): Extern them.
4600
4601 * ftfont.c (Qja, Qko): Remove declarations.
4602
4603 * xfont.c (Qja, Qko): Remove declarations.
4604
b50504f5
KH
46052009-04-17 Kenichi Handa <handa@m17n.org>
4606
bde25748
KH
4607 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
4608 string from a vector to handle Latin-1 characters correctly.
4609
b50504f5
KH
4610 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
4611 entity even if the cache hits.
4612
f4646fff
AS
46132009-04-16 Andreas Schwab <schwab@linux-m68k.org>
4614
4615 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 4616 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 4617
e7deaab0
AS
4618 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
4619 * lisp.h: Adjust prototypes.
4620
0a0e7d49
CY
46212009-04-16 Chong Yidong <cyd@stupidchicken.com>
4622
4623 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
4624 change (Bug#3003).
4625
3c908a57
KH
46262009-04-16 Kenichi Handa <handa@m17n.org>
4627
1ac9108a 4628 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
4629
4630 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
4631 adstyle.
4632
4633 * ftfont.c (Qja, Qko): Don't make them static.
4634 (enum ftfont_cache_for): New enum.
4635 (fc_charset_table): Undo the previous change.
4636 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
4637 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
4638 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
4639 non-scarable font, try to get AVERAGE_WIDTH.
4640 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
4641 Change ft_face_cache from a list of a hash-table. Don't check
4642 `ja' and `ko' adstyle here.
4643 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
4644 FTFONT_CACHE_FOR_CHARET.
4645 (ftfont_get_charset): Undo the previous change.
1ac9108a 4646 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
4647 (ftfont_close): Likewise.
4648 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
4649
4650 * font.c (font_sort_entites): Change the meaning of the arg
4651 BEST-ONLY. Don't optimize for VEC of lenght 1.
4652 (font_select_entity): Just return the value of font_sort_entites.
4653
4654 * xfaces.c (merge_face_vectors): Reflect font properties in
4655 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
4656 font_clear_prop if a face attribute doesn't change.
4657
3c908a57
KH
4658 * charset.h (charset_ksc5601): Extern it.
4659
4660 * charset.c (charset_ksc5601): New variable.
4661 (Fdefine_charset_internal): Set charset_ksc5601.
4662 (init_charset_once): Initialize charset_ksc5601 to -1.
4663
d65859c3
DN
46642009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4665
4666 * fileio.c (history_delete_duplicates): Remove unused declaration.
4667
4668 * callint.c (history_delete_duplicates): New declaration.
4669 (Fcall_interactively): Remove command history duplicates when
4670 history_delete_duplicates is true.
4671
3ba010e5
EZ
46722009-04-14 Eli Zaretskii <eliz@gnu.org>
4673
4674 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
4675
06f19b91
KH
46762009-04-14 Kenichi Handa <handa@m17n.org>
4677
4678 * font.c (Ffont_info): Fix docstring. Fix the second element of
4679 the returned value (bug#2949).
4680
2cce8bfc
CY
46812009-04-14 Chong Yidong <cyd@stupidchicken.com>
4682
4683 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
4684
d156542d
KH
46852009-04-14 Kenichi Handa <handa@m17n.org>
4686
4687 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
4688 encoding charset is ascii_compatible.
4689
4690 * charset.c (Fdefine_charset_internal): Make charset
4691 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
4692 code_offset is 0, and covers all ASCII characters.
4693
86fa089e
SM
46942009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4695
4696 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
4697 (ns_string_to_pasteboard_internal):
4698 * nsmenu.m (process_dialog):
4699 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
4700 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
4701 * lisp.h (Fx_load_color_file): Declare.
4702
a8a3728b
KH
47032009-04-13 Kenichi Handa <handa@m17n.org>
4704
1ac9108a 4705 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
4706 (font_select_entity): Suppress the code to optimize for the same
4707 kind of fonts.
4708 (font_load_for_lface): Get a font that supports at least ASCII
4709 characters.
4710
4711 * ftfont.c (Qja, Qko): New variables.
4712 (fc_charset_table): Delete uniquifier data for iso8859-1.
4713 (ftfont_get_latin1_charset): New function.
4714 (get_adstyle_property): New function.
4715 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
4716 bitmap fonts.
4717 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
4718 Delete iso-8859-1 range from the charset of fonts whose adstyle is
4719 `ko' or `ja'.
4720 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 4721 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
4722 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
4723 property.
4724 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
4725 (syms_of_ftfont): DEFSYM Qja and Qko.
4726
483670b5
KH
47272009-04-09 Kenichi Handa <handa@m17n.org>
4728
12b55765
KH
4729 * charset.c (map_charset_chars): For a charset of `superset'
4730 method, fix calculation of code range.
4731
483670b5
KH
4732 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
4733 from the list of extra properties.
4734 (font_clear_prop): Be sure to delete `:name' font property.
4735
57d3b93b
KH
47362009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4737
b4b2c2ca
YM
4738 * dispnew.c (redraw_overlapping_rows): Fix detection of
4739 overlapping for topmost and bottommost rows.
4740
1ac9108a 4741 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 4742
472c3609
JR
47432009-04-06 Jason Rumney <jasonr@gnu.org>
4744
4745 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
4746
ab193662
KH
47472009-04-06 Kenichi Handa <handa@m17n.org>
4748
4749 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
4750
4751 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
4752
0c26f026
KH
47532009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4754
4755 * ftfont.c (ftfont_open): Fix checking of the return value of
4756 FT_Load_Char. Fix setting font->underline_thickness.
4757
e173bbce
CY
47582009-04-04 Chong Yidong <cyd@stupidchicken.com>
4759
4760 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
4761 (Fterminal_parameters, Fterminal_parameter)
4762 (Fset_terminal_parameter): In doc string, refer to terminal
4763 objects rather than terminal ids.
4764
693a2698
EZ
47652009-04-04 Eli Zaretskii <eliz@gnu.org>
4766
4767 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
4768 ret_lim_data. (Bug#2867)
4769
d5221487
CY
47702009-04-03 Chong Yidong <cyd@stupidchicken.com>
4771
4772 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
4773 so they don't get wider than the window, matching 2006-01-23
4774 change to the partner function in xdisp.c (Bug#2800).
4775
223509a3
KH
47762009-04-03 Kenichi Handa <handa@m17n.org>
4777
4778 * print.c (print_object): Make each lowest sub_char_table start a
4779 new line (Bug#2866).
4780
74fcd0b1
KH
47812009-04-02 Kenichi Handa <handa@m17n.org>
4782
4783 * fontset.c (fontset_font): Record no-font when a fontset
4784 explicitly tells not to try another font-specs.
4785
c542407d
SM
47862009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
4787
4788 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
4789
e3869731
KH
47902009-03-30 Kenichi Handa <handa@m17n.org>
4791
d8d2f142
KH
4792 * fontset.c (fontset_from_font): Specify only registry in a
4793 font-spec for all characters supported by that registry.
4794
e3869731
KH
4795 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
4796 even if HAVE_M17N_FLT is not defined.
4797
5da5f805
CY
47982009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
4799
4800 * ftfont.c: Conditionalize prototyping and use of
4801 ftfont_variation_glyphs.
4802
ab226c50
SM
48032009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
4804
9628fed7
SM
4805 * frame.c (delete_frame): Work around compiler bug.
4806
4807 * editfns.c (general_insert_function): Adjust to insdel.c changes.
4808 * insdel.c (prepare_to_modify_buffer, signal_before_change):
4809 Some more EMACS_INT.
4810 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
4811
4812 * xdisp.c (dump_glyph): Fix typo.
4813
ae19ba7c
SM
4814 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
4815 (adjust_markers_gap_motion, adjust_markers_for_delete)
4816 (adjust_markers_for_insert, adjust_point)
4817 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
4818 (make_gap, copy_text, count_size_as_multibyte, insert)
4819 (insert_and_inherit, insert_before_markers)
4820 (insert_before_markers_and_inherit, insert_1)
4821 (count_combining_before, count_combining_after, insert_1_both)
4822 (insert_from_string, insert_from_string_before_markers)
4823 (insert_from_string_1, insert_from_gap, insert_from_buffer)
4824 (insert_from_buffer_1, adjust_after_replace)
4825 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
4826 (replace_range_2, del_range, del_range_1, del_range_byte)
4827 (del_range_both, del_range_2, modify_region)
4828 (prepare_to_modify_buffer, signal_before_change)
4829 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
4830 for buffer positions and sizes.
4831 * lisp.h: Adjust prototypes accordingly.
4832
4833 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
4834 (non_regular_inserted, non_regular_nbytes, read_non_regular)
4835 (Finsert_file_contents): Use EMACS_INT for buffer positions.
4836
ab226c50
SM
4837 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
4838
46dfb8fb
JD
48392009-03-27 Jan Djärv <jan.h.d@swipnet.se>
4840
4841 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
4842 lines and columns so we keep the same pixel height and width.
4843
4844 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
4845 the property _NET_WM_STATE has changed.
46dfb8fb
JD
4846 (x_handle_net_wm_state): New function to update frame parameter
4847 fullscreen.
4848 (x_term_init): Initialize atoms for _NET_WM_STATE.
4849
4850 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
4851
d347e494
SM
48522009-03-27 Kevin Ryde <user42@zip.com.au>
4853
4854 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
4855 Gpm_GetEvent as an error that justifies closing the filedescriptor.
4856 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
4857 (Fgpm_mouse_stop): Pass that new parameter.
4858 * termhooks.h (close_gpm): Adjust prototype.
4859
84db11d6
SM
48602009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
4861
c95a5008
SM
4862 * lisp.h (Fx_focus_frame): Declare.
4863
84db11d6
SM
4864 * callint.c (Fcall_interactively): For '^' just delegate the work to
4865 handle-shift-selection.
4866 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
4867
0a1958d6
CY
48682009-03-24 Chong Yidong <cyd@stupidchicken.com>
4869
0bfdff23
CY
4870 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
4871
0a1958d6
CY
4872 * data.c (Qinteractive_form): New variable.
4873 (Finteractive_form): Use it.
4874
4875 * eval.c (Fcommandp): Use Qinteractive_form.
4876
58aec0d6
JR
48772009-03-24 Jason Rumney <jasonr@gnu.org>
4878
4879 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
4880 Calculate total size precisely. Decode environment variables
4881 before substituting. (Bug#38)
4882
553dd618
KH
48832009-03-24 Kenichi Handa <handa@m17n.org>
4884
4885 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 4886 encoding (Bug#2722).
553dd618 4887
c39ea606
JD
48882009-03-23 Jan Djärv <jan.h.d@swipnet.se>
4889
4890 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
4891 that gdpy is set.
4892
bc9b2b5e
AM
48932009-03-22 Alan Mackenzie <acm@muc.de>
4894
4895 * callint.c (Finteractive): Clarify the doc string - even
4896 promptless elements need \n separators.
4897
9f995a76
JR
48982009-03-22 Jason Rumney <jasonr@gnu.org>
4899
4900 * w32term.c (syms_of_w32term): Doc fix for
4901 x-use-underline-position-properties.
4902
22749e9a
EZ
49032009-03-21 Eli Zaretskii <eliz@gnu.org>
4904
4905 * w32.c (getpwuid): Change argument type to unsigned.
4906 (struct w32_id): Change type of `rid' member to unsigned.
4907 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
4908 argument ID to unsigned. All callers changed.
4909 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
4910
e00553bf
EZ
49112009-03-20 Eli Zaretskii <eliz@gnu.org>
4912
4913 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
4914 negative, produce a float value.
4915
4916 * dired.c (make_uid, make_gid): New functions.
4917 (Ffile_attributes): Use them to avoid negative UID and GID.
4918
f761d6b6
JB
49192009-03-20 Juanma Barranquero <lekktu@gmail.com>
4920
4921 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
4922 (syms_of_keyboard) <command-hook-internal, input-method-function>:
4923 Fix typos in docstrings.
4924
d507f8d7
KH
49252009-03-19 Kenichi Handa <handa@m17n.org>
4926
4927 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
4928 changed, use font_load_for_lface to get a new font object.
4929 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
4930
4931 * frame.c (x_set_font): Handle the case that ARG is a cons.
4932
c68845e0
GM
49332009-03-19 Glenn Morris <rgm@gnu.org>
4934
4935 * fileio.c (Fsubstitute_in_file_name): Doc fix.
4936
bfa49dd1
CY
49372009-03-19 Chong Yidong <cyd@stupidchicken.com>
4938
4939 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
4940
8458d4c1
KH
49412009-03-19 Kenichi Handa <handa@m17n.org>
4942
4943 * charset.c (load_charset_map_from_file): When a mapfile can't be
4944 loaded, signal an error.
4945
78e7d1fe
EZ
49462009-03-18 Eli Zaretskii <eliz@gnu.org>
4947
4948 * dired.c (Ffile_attributes): Make sure UID and GID are always
4949 positive, even if the value is too large for a positive EMACS_INT.
4950 Doc fix.
4951
4952 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
4953
5da9fdfa
YM
49542009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4955
4956 * xmenu.c (xdialog_show): Move Fredisplay call ...
4957 (Fx_popup_dialog): ... here.
4958
7519c40d
SM
49592009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
4960
4961 * dired.c (file_name_completion): Disable the first optimization just
4962 installed, since it is not implemented correctly.
4963
2cd298e2
SM
49642009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4965
4966 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 4967 only if the entry can affect bestmatch.
2cd298e2
SM
4968 Stop the search early, as Ftry_completion already does.
4969
48d37adf
CY
49702009-03-17 Chong Yidong <cyd@stupidchicken.com>
4971
e10c9c93 4972 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 4973
9286b16a
CY
49742009-03-15 Chong Yidong <cyd@stupidchicken.com>
4975
4976 * keyboard.c (parse_menu_item): Don't display remappings as menu
4977 equivalent bindings (Bug#788).
4978
f7b146dc
JR
49792009-03-15 Jason Rumney <jasonr@gnu.org>
4980
4981 * w32term.h (WM_EMACS_PAINT): New message.
4982 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
4983 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
4984 before passing to lisp thread. (Bug#950)
4985
f761d6b6 49862009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 4987
d93f9575
CY
4988 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
4989 variable as it was never reset.
4990 (ns_term_init): Remove initialization of Lisp-settable defaults
4991 and ns_expand_space.
4992 (-setPanelFromDefaultValues): Remove ns_expand_space.
4993 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
4994 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
4995 i.e. no additional spacing, similar to Carbon port.
4996
d93f9575
CY
4997 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
4998 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 4999
305018ec
JD
50002009-03-14 Jan Djärv <jan.h.d@swipnet.se>
5001
5002 * sound.c (alsa_configure): Remove call to deprecated
5003 snd_pcm_sw_params_set_xfer_align.
5004
f761d6b6 50052009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
5006
5007 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
5008 after clicking in a detached tool bar.
5009 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
5010
46e722a9
SM
50112009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
5012
348db3dd
SM
5013 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
5014 int/Lisp_Object mixup).
46e722a9 5015
a3d16f39
KH
50162009-03-13 Kenichi Handa <handa@m17n.org>
5017
5018 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 5019 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
5020 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
5021 (set_fontset_font): Change ARG to a vector. Handle range_list in
5022 ARG correctly.
5023 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 5024 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
5025 the above change.
5026 (fontset_from_font): Fix previous change.
fe24f56a 5027 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
5028 entry. If FONTSET is the default fontset, don't set the extra
5029 slot of the returning char-table.
5030
b066e6b6
JB
50312009-03-12 Juanma Barranquero <lekktu@gmail.com>
5032
5033 * nsfns.m (Fx_close_connection): Doc fix.
5034 (Fns_do_applescript): Reflow docstring.
5035 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
5036 (Fx_display_pixel_width, Fx_display_pixel_height)
5037 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
5038 Fix typos in docstrings.
5039 (Fns_set_alpha): Fix typos in error messages.
5040
d472514e 50412009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 5042
d472514e 5043 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
5044 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
5045 were used for such events.
5046
d472514e
JB
5047 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
5048 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 5049
d472514e 5050 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
5051 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
5052
fb930676
KH
50532009-03-11 Kenichi Handa <handa@m17n.org>
5054
ff85581a
KH
5055 * font.h (font_open_by_spec): Extern it.
5056
c50b7e98
KH
5057 * font.c (font_open_by_spec): New function.
5058 (font_open_by_name): Use font_open_by_spec.
5059
fb930676
KH
5060 * frame.c (x_set_font): When ARG is a font-object, don't alter the
5061 fontset of the frame.
5062
5063 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
5064 modify the default font of frames that use this fontset.
5065 (num_auto_fontsets): New variable.
5066 (fontset_from_font): Use num_auto_fontsets to decide a fontset
5067 name. Be sure to set FONTSET_ASCII to the correct font name.
5068 (update_auto_fontset_alist): New function.
5069
df4e8455
JB
50702009-03-11 Juanma Barranquero <lekktu@gmail.com>
5071
5072 * makefile.w32-in: Update dependencies.
5073
0a375797
AR
50742009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5075
5076 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
5077
61313fa3
SM
50782009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
5079
5080 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
5081
b55103fb
CY
50822009-03-10 Chong Yidong <cyd@stupidchicken.com>
5083
5084 * lread.c (Feval_buffer): Doc fix.
5085
dde2559c
KH
50862009-03-09 Kenichi Handa <handa@m17n.org>
5087
5088 * charset.c (Qfile_name_handler_alist): Extern it.
5089 (load_charset_map_from_file): Temporarily bind
5090 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
5091
df4e8455 50922009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 5093
47f588bb
GM
5094 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
5095 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 5096
4ddf94bd
AR
50972009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5098
4c9bdfc2
AR
5099 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
5100 (x_set_window_size): Change back to calculated method of setting
5101 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
5102 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
5103 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
5104
fe41ae9e
AR
5105 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
5106
4c9bdfc2
AR
5107 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
5108 accelerator in parens under GNUstep.
5109
825d0875
KH
51102009-03-06 Kenichi Handa <handa@m17n.org>
5111
5112 These changes are to detect incorrect composition sequence without
f3b3be74 5113 looking ahead the source. (Bug#2370)
825d0875
KH
5114
5115 * coding.h: Include "composite.h".
5116 (enum compisition_state): New enum.
5117 (struct compisition_status): New struct.
5118 (struct iso_2022_spec): New member cmp_status.
5119 (struct emacs_mule_spec): New struct.
5120 (struct coding_system): New members ctext_extended_segment_len and
5121 embedded_utf_8. Change the union member
5122 spec.emacs_mule_full_support to spec.emacs_mule.
5123
5124 * coding.c (CODING_ISO_CMP_STATUS): New macro.
5125 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 5126 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
5127 (ADD_COMPOSITION_DATA): New arg nbytes.
5128 (emacs_mule_char): New arg cmp_status.
5129 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
5130 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
5131 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
5132 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
5133 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
5134 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
5135 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
5136 (EMACS_MULE_COMPOSITION_END): New macro.
5137 (emacs_mule_finish_composition): New function.
5138 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
5139 (decode_coding_emacs_mule): Avoid long looking ahead while
5140 handling composition.
5141 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
5142 (ENCODE_COMPOSITION_RULE): New macro.
5143 (finish_composition): New function.
5144 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
5145 (DECODE_COMPOSITION_START): New implementation.
5146 (DECODE_COMPOSITION_END): Likewise.
5147 (STORE_COMPOSITION_RULE): New macro.
5148 (decode_coding_iso_2022): Avoid long looking ahead while handling
5149 composition, CTEXT extended segment, and embedded UTF-8.
5150 (setup_coding_system): For a coding of type iso-2022, reset
5151 CODING_ISO_EXTSEGMENT_LEN (coding) and
5152 CODING_ISO_EMBEDDED_UTF_8 (coding).
5153 (get_translation): Delete arguments last_block, from_nchars,
5154 to_nchars. Callers changed.
5155 (produce_chars): Don't modify charbuf. Adjusted for the change of
5156 get_translation.
98a326f7 5157 (produce_composition): Adjust for the new annotation sequence.
825d0875 5158 (handle_composition_annotation): Likewise.
98a326f7 5159 (consume_chars): Adjust for the change of get_translation.
825d0875 5160
ccbc4452
AR
51612009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
5162
4ddf94bd 5163 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 5164
988a7ddb
KH
51652009-03-05 Kenichi Handa <handa@m17n.org>
5166
5167 * font.c (font_select_entity): New function.
5168 (font_find_for_lface): Use font_select_entity to select a font.
5169
5170 * fontset.c (fontset_find_font): If a font found without
a8a3728b 5171 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
5172 font with C restriction.
5173
98a326f7 51742009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 5175
be1bce46 5176 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 5177
10ea2b82
JR
51782009-03-04 Jason Rumney <jasonr@gnu.org>
5179
2c93b248 5180 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 5181 characters that have already been read. (Bug#2569)
2c93b248 5182
10ea2b82
JR
5183 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
5184 Log an error message if check_image_size failed.
5185 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 5186 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 5187
71a0c011
EZ
51882009-03-02 Eli Zaretskii <eliz@gnu.org>
5189
5190 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
5191 when decoding process output.
5192
2f63bba8
RS
51932009-03-01 Richard M Stallman <rms@gnu.org>
5194
5195 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
5196
5197 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
5198
0a9564cb
EZ
51992009-02-28 Eli Zaretskii <eliz@gnu.org>
5200
5201 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
5202 (decode_coding_emacs_mule, decode_coding_iso_2022)
5203 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5204 (decode_coding_raw_text, decode_coding_charset)
5205 (setup_coding_system, decode_eol, decode_coding, consume_chars):
5206 Honor inhibit-eol-conversion. (Bug #2186)
5207
449148b3
JR
52082009-02-28 Jason Rumney <jasonr@gnu.org>
5209
5210 * coding.c (detect_coding_charset): If not checking latin extra,
5211 fail on characters between 0x80 and 0xA0. (Bug#2354)
5212
a4aee864
EZ
52132009-02-28 Eli Zaretskii <eliz@gnu.org>
5214
5215 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 5216 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 5217
d88bee5a
GM
52182009-02-27 Glenn Morris <rgm@gnu.org>
5219
5220 * callint.c (Finteractive): Doc fix.
5221
a808f22d
KH
52222009-02-27 Kenichi Handa <handa@m17n.org>
5223
5224 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
5225
caf8d60c
CY
52262009-02-27 Chong Yidong <cyd@stupidchicken.com>
5227
5228 * font.c (font_style_to_value): Set value for unknown symbols to
5229 100 instead of 255.
b61137ea
CY
5230 (weight_table, slant_table, width_table): Treat "unspecified" as
5231 the default value.
caf8d60c 5232
1a0de25c
JB
52332009-02-26 Juanma Barranquero <lekktu@gmail.com>
5234
5235 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
5236
8fc45744
JB
52372009-02-25 Juanma Barranquero <lekktu@gmail.com>
5238
107bd7d1
JB
5239 * lread.c (Fload): Stop checking Vloads_in_progress and signal
5240 error as soon as a recursive load is detected.
8fc45744 5241
f097e223
AR
52422009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5243
5244 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
5245 before caching.
5246
8810a12f
KH
52472009-02-24 Kenichi Handa <handa@m17n.org>
5248
5249 * fontset.c (fontset_find_font): Fix the condition for checking
5250 unavailable font.
5251
2c7d1565
GM
52522009-02-24 Glenn Morris <rgm@gnu.org>
5253
5254 * xfaces.c (Finternal_set_font_selection_order): Remove leading
5255 whitespace that confuses documentation.
5256
a20878b6
MB
52572009-02-23 Miles Bader <miles@gnu.org>
5258
5259 * process.c (Flist_system_processes, Fprocess_attributes)
5260 (syms_of_process): Rename `system-process-attributes' to
5261 `process-attributes'.
5262
b3b58c01
AS
52632009-02-22 Andreas Schwab <schwab@linux-m68k.org>
5264
1b3b981b
AS
5265 * coding.h (struct coding_system): Make safe_charsets a pointer to
5266 unsigned char.
5267 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
5268 being 255.
5269 (SAFE_CHARSET_P): Likewise.
5270 (setup_iso_safe_charsets): Properly setup safe_charsets.
5271 (Fdefine_coding_system_internal): Likewise.
5272 (setup_coding_system): Likewise. Remove unneeded casts.
5273 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
5274 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
5275 unneeded casts.
5276
b3b58c01
AS
5277 * insdel.c (del_range_2): Don't modify gap contents when called
5278 from decode_coding_object. (Bug#1809)
5279
0b6f228c
CY
52802009-02-21 Chong Yidong <cyd@stupidchicken.com>
5281
5282 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
5283 Qfont_object.
5284 (Ftype_of): Recognize font objects.
5285
5286 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
5287
5288 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
5289 moved to data.c.
5290
52f8870b
AR
52912009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5292
5293 * nsterm.m (x_make_frame_invisible): Unset async_visible,
5294 async_iconified. Based on a patch by Christian Lynbech
5295 <christian.lynbech@tieto.com>.
5296 (EmacsView-windowDidMiniaturize:): Unset async_visible.
5297
7087d5e9
GM
52982009-02-20 Glenn Morris <rgm@gnu.org>
5299
5300 * syntax.c (Fskip_chars_forward): Fix doc typo.
5301
41d2ceef
CY
53022009-02-20 Chong Yidong <cyd@stupidchicken.com>
5303
5304 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
5305
1a3b7ca6
CY
53062009-02-19 Chong Yidong <cyd@stupidchicken.com>
5307
5308 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
5309
73cce38d
KH
53102009-02-19 Kenichi Handa <handa@m17n.org>
5311
5312 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 5313 Don't overflow coding->carryover. (Bug#2370)
73cce38d 5314
a51092ee
DN
53152009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
5316
5317 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
5318
c423ecca
KH
53192009-02-18 Kenichi Handa <handa@m17n.org>
5320
5321 * font.c (font_check_otf_features): Fix handling of `nil' element.
5322 (Ffont_spec): Describe :lang and :otf in the docstring.
5323
4c1958f4
AS
53242009-02-16 Andreas Schwab <schwab@suse.de>
5325
5326 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
5327 string.
5328
5704f39a
KH
53292009-02-16 Kenichi Handa <handa@m17n.org>
5330
5331 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 5332 (Bug#1723)
5704f39a 5333
8f0085aa
CY
53342009-02-14 Chong Yidong <cyd@stupidchicken.com>
5335
a057d86a 5336 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
5337
5338 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
5339 (handle_line_prefix): Suppress wrapping of wrap prefixes.
5340
aff01dd9
EZ
53412009-02-14 Eli Zaretskii <eliz@gnu.org>
5342
5343 * msdos.c (MAX_SCREEN_BUF): New macro.
5344 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
5345 Encode the entire run of glyphs sharing the same face, instead of
5346 doing that one glyph at a time (fixes a bug with displaying
5347 double-size characters).
5348
ba301db3
AR
53492009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
5350
5351 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
5352
5353 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
5354 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 5355 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
5356
5357 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 5358 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 5359
51d861de
SM
53602009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
5361
ac146f82 5362 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
5363 invisible areas.
5364
7fed8996
JR
53652009-02-12 Jason Rumney <jasonr@gnu.org>
5366
631ea4fb
JR
5367 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
5368 (add_font_entity_to_list): Call check_face_name even when family
5369 is unspecified.
5370
cb4a3e42
JR
5371 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5372 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 5373 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 5374
7fed8996 5375 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 5376 raster fonts. (Bug#2219)
7fed8996 5377
895416e3
KH
53782009-02-12 Kenichi Handa <handa@m17n.org>
5379
5380 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
5381 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
5382 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 5383 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
5384 (find_automatic_composition): While looking forward and backward,
5385 check static composition. Fix where to stop looking forward.
5386 (composition_adjust_point): Fix checking of static composition.
5387 (Fcomposition_get_gstring): Pay attention to
1dacf998 5388 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
5389
5390 * lisp.h (fast_looking_at): Extern it.
5391
5392 * search.c (fast_looking_at): New function.
5393
51d861de 5394 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
5395 <struct glyph>.u.cmp.to.
5396 (append_composite_glyph): Likewise.
5397
51d861de 5398 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
5399 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
5400 composition.
51d861de 5401 (append_composite_glyph): Adjust for the change of
895416e3
KH
5402 <strcut glyph>.u.cmp.to.
5403
8510724d
JB
54042009-02-11 Juanma Barranquero <lekktu@gmail.com>
5405
5406 * casetab.c (init_casetab_once):
5407 * coding.c (ALLOC_CONVERSION_WORK_AREA):
5408 * font.c (font_update_lface):
5409 * fontset.c (Fnew_fontset):
5410 * ftfont.c (ftfont_drive_otf):
5411 * xfont.c (xfont_open):
5412 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
5413
294fa707
SM
54142009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
5415
5416 * fileio.c (Fwrite_region): !NILP -> CONSP.
5417
b5bfebec
AS
54182009-02-10 Andreas Schwab <schwab@suse.de>
5419
5420 * process.c (send_process): Properly relocate pointer into data
adab88bd 5421 when using encoded data. (Bug#2272)
b5bfebec 5422
cb84a2be
KH
54232009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
5424
5425 * coding.c (detect_coding_charset): Fix previous change.
5426
89e09428
JR
54272009-02-08 Jason Rumney <jasonr@gnu.org>
5428
5429 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 5430 disappeared while hourglass was displayed. (Bug #2193)
89e09428 5431
4470a277
AS
54322009-02-07 Andreas Schwab <schwab@suse.de>
5433
5434 * unexelf.c (unexec): Fix error message.
5435
3175b12a
AR
54362009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
5437
5438 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 5439 when modal window is active. (Bug #2152)
3175b12a
AR
5440 (applicationShouldTerminate:): Remove now-unneeded while loop
5441 around NSRunAlertPanel.
5442
5443 * nsmenu.m (popupSession): New file-global variable.
5444 (pop_down_menu): End the popupSession before closing dialog.
5445 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
5446 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
5447 don't query NSApp for events (just sleep instead).
5448
8434d0b8
EZ
54492009-02-07 Eli Zaretskii <eliz@gnu.org>
5450
51d861de
SM
5451 * coding.c (syms_of_coding) <translation-table-for-input>:
5452 Modify doc string to discourage use for character code unification.
8434d0b8 5453
aa82edfd
CY
54542009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5455
5456 * atimer.c (run_timers): Update pending_atimers.
5457
2d283c7c
CY
54582009-02-06 Chong Yidong <cyd@stupidchicken.com>
5459
eb306cab
CY
5460 * image.c (svg_load_image): Fix last change.
5461
2d283c7c
CY
5462 * xfns.c (Fx_create_frame): Signal an error if no font is
5463 found (Bug#2147).
5464
4d8e170e
JB
54652009-02-05 Juanma Barranquero <lekktu@gmail.com>
5466
5467 * character.c (syms_of_character) <script-representative-chars>:
5468 Fix typo in docstring.
5469
c96169a0
AR
54702009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
5471
5472 * nsmenu.m (pop_down_menu): New function.
5473 (ns_popup_dialog): Call it on unwind.
5474 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
5475 call timer_check() (Bug#2154).
5476 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
5477 handling_signal is set.
5478 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
5479
31fd7c5c 5480 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
5481
5482 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
5483
5484 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
5485
51d861de
SM
5486 * keyboard.c (poll_for_input_1, handle_async_input):
5487 Set handling_signal under HAVE_NS.
c96169a0 5488
aacd8ba1
GM
54892009-02-04 Glenn Morris <rgm@gnu.org>
5490
5491 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
5492
4cb75c4b
KH
54932009-02-04 Kenichi Handa <handa@m17n.org>
5494
5495 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
5496
5497 * charset.c (Fchar_charset): New optional arg restriction.
5498
5499 * coding.h (coding_system_charset_list): Extern it.
5500
5501 * coding.c (coding_system_charset_list): New function.
5502
5503 * composite.c: Include coding.h and termhooks.h.
5504 (composition_gstring_p): Fix for the terminal case.
5505 (composition_gstring_width): Likewise.
5506 (fill_gstring_body): Likewise.
5507 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
5508 the frame.
5509 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
5510 is within a composition.
867d4bb3 5511 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
5512
5513 * term.c (encode_terminal_code): Fix handling of composition.
5514 (produce_composite_glyph): For static composition, get pixel_width
5515 from struct composition.
5516
826ba17e
AS
55172009-02-02 Andreas Schwab <schwab@suse.de>
5518
5519 * unexelf.c (unexec): Handle unaligned bss offset.
5520
8ad093db
AR
55212009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5522
5523 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
5524 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 5525
8ad093db
AR
5526 * keyboard.c (handle_interrupt): Don't call
5527 quit_throw_to_read_char() under NS.
d0a76a6e 5528
8ad093db
AR
5529 * blockinput.h: Remove NS-specific code.
5530
4d18a7a2
DN
55312009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
5532
db878925
DN
5533 * dispnew.c (window_change_signal): Don't try to get the size of a
5534 suspended tty frame.
5535 * term.c (Fresume_tty): Resize if the size has changed while the
5536 tty was suspended.
5537
4d18a7a2
DN
5538 * alloc.c (mark_stack): Properly conditionalize previous change.
5539
8984df7c
JB
55402009-01-30 Juanma Barranquero <lekktu@gmail.com>
5541
5542 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
5543 * w32term.c (w32_read_socket) [SYNC_INPUT]:
5544 Remove; this code is not used on Windows.
5545
75f4f1ac
EZ
55462009-01-30 Eli Zaretskii <eliz@gnu.org>
5547
5548 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
5549 EOLs that also has stray ^M characters.
5550
07a1e794
JB
55512009-01-30 Juanma Barranquero <lekktu@gmail.com>
5552
5553 * atimer.c (run_timers, alarm_signal_handler):
5554 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
5555 * w32inevt.c (w32_console_read_socket):
5556 * w32term.c (w32_read_socket):
5557 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
5558
a8b11cc9
CY
55592009-01-30 Chong Yidong <cyd@stupidchicken.com>
5560
5561 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
5562 Initialize it as a relative filename pattern.
5563 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
5564 (Fcall_process_region): Simplify temp file creation using
5565 temporary-file-directory.
5566
c279587b
EZ
55672009-01-29 Eli Zaretskii <eliz@gnu.org>
5568
5569 * msdos.c: Rename pending_signals to msdos_pending_signals.
5570 (sig_suspender, sigprocmask): Adjust.
5571
a8fe3242
CY
55722009-01-29 Chong Yidong <cyd@stupidchicken.com>
5573
5574 * keyboard.c (pending_signals): New var.
5575 (poll_for_input, input_available_signal, init_keyboard): Set it.
5576 (process_pending_signals): New function.
5577
5578 * lisp.h (QUIT): Check pending_signals instead of
5579 interrupt_input_pending. Use process_pending_signals.
5580
51d861de 5581 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 5582
51d861de 5583 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
5584
5585 * sysdep.c (emacs_write): Use process_pending_signals.
5586
5587 * xterm.c (XTread_socket): Update pending_signals.
5588
5589 * w32term.c (w32_read_socket): Update pending_signals.
5590
5591 * w32inevt.c (w32_console_read_socket): Update pending_signals.
5592
6570a1c4
KH
55932009-01-29 Kenichi Handa <handa@m17n.org>
5594
5595 * xftfont.c (xftfont_has_char): New function.
5596 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
5597
d72a4afa
AR
55982009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5599
5600 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
5601 under GNUstep.
5602 (ns_query_color): New declaration.
5603
5604 * nsterm.m (ns_confirm_quit): New variable.
5605 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
5606 (EmacsApp-applicationShouldTerminate:): Use it.
5607 (EmacsPrefsController): Let user set it.
5608 (ns_query_color): New function.
5609 (ns_defined_color): Use it.
5610 (ns_initialize): Drop.
5611 (ns_term_init): Add two lines from ns_initialize(), and set
5612 input_interrupt_mode to nil.
5613
5614 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 5615 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 5616
9fe78804
KH
56172009-01-28 Kenichi Handa <handa@m17n.org>
5618
5619 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
5620 (fontset_get_font_group): Remember that no font-group is specified
5621 for C.
9fe78804 5622
fa57de36
CY
56232009-01-27 Chong Yidong <cyd@stupidchicken.com>
5624
930600e9
CY
5625 * fns.c (concat): Check for string overflow (bug#1787).
5626
fa57de36
CY
5627 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
5628 Quadruple undo limits (bug#1501).
5629
7179ce7b
KH
56302009-01-27 Kenichi Handa <handa@m17n.org>
5631
5632 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
5633 directly use GT_Get_Char_index.
5634
5635 * xftfont.c (struct xftfont_info): New member `index'.
5636
5637 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 5638 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 5639
5be8fcc0
CY
56402009-01-26 Kenichi Handa <handa@m17n.org>
5641
5642 * fontset.c (fontset_find_font): Fix handling of non-cons return
5643 value of fontset_get_font_group.
5644 (fontset_font): Revert last change.
5645
19ae3e61
JR
56462009-01-26 Jason Rumney <jasonr@gnu.org>
5647
5648 * w32font.c (w32font_list_internal): Return quickly if registry is
5649 unknown. Simplify final return.
5650 (add_font_entity_to_list): Break complex logic down into more
5651 manageable chunks. Move unknown registry check to
5652 w32font_list_internal.
5653
8612b71a
AR
56542009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
5655
5656 Changes to remove Feval calls from GUI under NS.
5657
d8038940
JB
5658 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
5659 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
5660 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
5661
5662 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
5663 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
5664 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
5665 instead of NON_ASCII_KEYSTROKE_EVENT.
5666 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
5667 (EmacsApp-applicationShouldTerminate:): Query user.
5668 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
5669 instead of Feval.
5670
5671 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
5672
5673 * keyboard.c (kbd_buffer_get_event): Check for it.
5674 (keys_of_keyboard): Define lispy keys for
5675 ns-put/unput-working-text.
5676
5677 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
5678 versions.
5679 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
5680
6288ae55
CY
56812009-01-25 Chong Yidong <cyd@stupidchicken.com>
5682
5683 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 5684 setting current_buffer directly. (Bug#2044)
6288ae55 5685
289e7f8f
CY
56862009-01-24 Chong Yidong <cyd@stupidchicken.com>
5687
5ce87308 5688 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 5689 any work. (Bug#1952, bug#1990).
5ce87308 5690
64cc3cf6 5691 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 5692
b3243e6f
AR
56932009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5694
5695 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
5696 (ns_no_defaults): New declaration.
5697 (main): Use it.
e0d2e69a 5698
d900b2af 5699 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 5700
d900b2af 5701 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 5702
d900b2af
AR
5703 * nsterm.m (ns_no_defaults): New variable.
5704 (ns_initialize): Don't read defaults when ns_no_defaults.
5705 (EmacsView-readSelectionFromPasteboard:)
5706 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 5707 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
5708 (ns_dumpglyphs_stretch): New function.
5709 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 5710 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 5711
e0d2e69a
AR
5712 * nsimage.m (setPixmapData:): Set to ignore image DPI.
5713
3ac71f5d
CY
57142009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
5715
5716 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
5717 call for Sparc64.
5718
3fe53a83
AR
57192009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5720
5721 * nsfns.m:
5722 * nsgui.h:
5723 * nsmenu.m:
5724 * nsselect.m:
5725 * nsterm.h:
5726 * nsterm.m: Remove '23' comments that indicated code added during
5727 update from emacs-20 -> emacs-23.
5728
10f87c6f 57292009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
5730
5731 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 5732 ns_alternate_modifier. (Bug#1217)
a3b53a85 5733
c7cef62d
AR
5734 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
5735 Display all shortcuts, including those w/o super modifier.
5736
575fb8bd
AR
5737 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
5738
918b848b
CY
57392009-01-22 Chong Yidong <cyd@stupidchicken.com>
5740
5741 * fileio.c (Vwrite_region_post_annotation_function)
5742 (Vwrite_region_annotation_buffers): New vars.
5743 (build_annotations_unwind): Just reset
5744 Vwrite_region_annotation_buffers.
5745 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
5746 Call write-region-post-annotation-function.
5747 (build_annotations): Add to Vwrite_region_annotation_buffers if
5748 buffer changes.
5749
a39e2539
AR
57502009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5751
5752 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
5753 Tiger.
51d861de
SM
5754 * nsfns.m (ns_do_applescript):
5755 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 5756
35ed44db
AR
57572009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
5758
5759 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
5760
cbe0b5bf
AR
57612009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5762
5763 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 5764
6049d3a0
AR
5765 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
5766
5767 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
5768 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
5769 handle Ctrl-tab. (Bug#1841)
5770 (ns_get_color): Use unsigned long long for scanned hex string value.
5771 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 5772 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 5773 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 5774 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 5775 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 5776 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 5777 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 5778
d3810c21 5779 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 5780 DPI. (Bug#1316)
d3810c21
AR
5781 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
5782 values in onTiger section.
4c7077c3 5783
e301e634
CY
57842009-01-19 Chong Yidong <cyd@stupidchicken.com>
5785
7f82490b
CY
5786 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
5787 Check return value of font_spec_from_name.
64cc3cf6 5788 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
5789
5790 * font.c (font_spec_from_name): Return Qnil if font name could not
5791 be parsed.
5792 (font_parse_name): Treat a `?' character as part of an XLFD.
5793
e301e634
CY
5794 * fns.c (Fsubstring): Doc fix.
5795
1c0db158
KH
57962009-01-19 Kenichi Handa <handa@m17n.org>
5797
51d861de 5798 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
5799 (ftfont_list): Likewise.
5800
acf20901
JB
58012009-01-18 Juanma Barranquero <lekktu@gmail.com>
5802
fff4e459
JB
5803 * dbusbind.c (Fdbus_register_signal):
5804 * process.c (conv_sockaddr_to_lisp):
5805 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
5806
acf20901
JB
5807 * callproc.c (Fgetenv_internal): Doc fix.
5808
e7abcdfb
CY
58092009-01-16 Chong Yidong <cyd@stupidchicken.com>
5810
5811 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
5812 it is not even used.
5813
b60861e6
GM
58142009-01-16 Glenn Morris <rgm@gnu.org>
5815
5816 * font.c (Ffont_variation_glyphs): Silence compiler.
5817
8db52afe
JB
58182009-01-15 Juanma Barranquero <lekktu@gmail.com>
5819
5820 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
5821 Reported by David Robinow <drobinow@gmail.com>.
5822
4cddb209
KH
58232009-01-15 Kenichi Handa <handa@m17n.org>
5824
51d861de 5825 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 5826
f247f67b
JR
58272009-01-14 Jason Rumney <jasonr@gnu.org>
5828
5829 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 5830 never a fontset. (Bug#1562)
f247f67b 5831
f56a4450
KH
58322009-01-14 Kenichi Handa <handa@m17n.org>
5833
5834 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 5835 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 5836
4e99855e
CY
58372009-01-13 Chong Yidong <cyd@stupidchicken.com>
5838
5839 * font.c (font_clear_prop): If clearing the family, clear the font
5840 width index too.
5841
fff4e459 5842 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 5843
24f01470
JB
58442009-01-12 Juanma Barranquero <lekktu@gmail.com>
5845
5846 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
5847 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
5848 functions, use sizeof.
5849
a41240a3
MR
58502009-01-12 Martin Rudalics <rudalics@gmx.at>
5851
5852 * keyboard.c (read_char): Fix case where last_nonmenu_event
5853 returned a bad value with submenus. (Bug#447)
5854
944636b8
CY
58552009-01-12 Chong Yidong <cyd@stupidchicken.com>
5856
5857 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
5858 family, clear the font width index too.
5859
0dad7c6f
JR
58602009-01-11 Jason Rumney <jasonr@gnu.org>
5861
5862 * keyboard.c (cmd_error_internal): Exit when errors occur before
5863 frame creation and not in daemon mode. (Bug#1836)
5864
7c2363af
CY
58652009-01-10 Chong Yidong <cyd@stupidchicken.com>
5866
5867 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
5868 of a display vector, backtrack.
5869 (try_window_reusing_current_matrix): Check glyph type before
5870 referencing charpos member.
5871
97b1b294
EZ
58722009-01-10 Eli Zaretskii <eliz@gnu.org>
5873
5874 Fix Bug #876:
5875
5876 * coding.c (inhibit_null_byte_detection): New variable.
5877 (detect_coding, detect_coding_system): Don't pay attention to null
5878 bytes if inhibit_null_byte_detection is non-zero.
51d861de 5879 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
5880 <inhibit-iso-escape-detection>: Doc fix.
5881
4624b6e3
JR
58822009-01-09 Jason Rumney <jasonr@gnu.org>
5883
5884 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 5885 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
5886 Only report Unicode Plane 2 fonts as unicode-sip.
5887
323b840c
CY
58882009-01-09 Chong Yidong <cyd@stupidchicken.com>
5889
51d861de
SM
5890 * xfaces.c (Fx_font_family_list): Delete function.
5891 Move compatibility version to faces.el.
323b840c 5892
51d861de 5893 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 5894
eba7400d
MR
58952009-01-09 Martin Rudalics <rudalics@gmx.at>
5896
5897 * frame.c (x_set_frame_parameters): Remember requested value for
5898 fullscreen before it's reset by the parameter handler.
5899
4b09796d
GM
59002009-01-09 Glenn Morris <rgm@gnu.org>
5901
5902 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 5903 (last_command_event): ... and update all users.
4b09796d
GM
5904 (last_input_char): For clarity, rename to...
5905 (last_input_event): ... and update all users.
5906 (last-command-char, last-input-char): Move to subr.el as aliases.
5907 * cmds.c, commands.h: Update for last_command_char rename.
5908
14ccea62
CY
59092009-01-08 Chong Yidong <cyd@stupidchicken.com>
5910
51d861de 5911 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 5912
5f004711
JR
59132009-01-08 Jason Rumney <jasonr@gnu.org>
5914
5915 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
5916 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
5917 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
5918 Don't declare.
fff4e459 5919 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
5920 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
5921
b71f6f73
KH
59222009-01-07 Kenichi Handa <handa@m17n.org>
5923
50b06221 5924 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 5925 remember the coding system used for decoding in
50b06221
KH
5926 coding_system (Bug#1039).
5927
b71f6f73 5928 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 5929 breaking the loop. (Bug#870)
b71f6f73
KH
5930 (decode_coding_utf_16, decode_coding_emacs_mule)
5931 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5932 (decode_coding_charset): Likewise.
5933
56f668f7
MR
59342009-01-05 Martin Rudalics <rudalics@gmx.at>
5935
5936 * frame.c (x_set_frame_parameters): Make sure height (width) get
5937 applied when fullwidth (fullheight) is set. (Bug#1522)
5938
5da9424d
JB
59392009-01-04 Juanma Barranquero <lekktu@gmail.com>
5940
5941 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
5942 (utc_base): Declare as ULONGLONG, not long double.
5943 (convert_time_raw): Delete.
5944 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
5945 (initialize_utc_base): New function.
5946 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
5947 (convert_from_time_t): Use initialize_utc_base; compute result with
5948 64-bit arithmetic.
5949 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
5950
c4605e09
EZ
59512009-01-03 Eli Zaretskii <eliz@gnu.org>
5952
9acef61c 5953 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
5954 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
5955 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
5956 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
5957 [!subprocesses]: Define.
5958 (syms_of_process) [!subprocesses]: Intern and staticpro them.
5959 (Flist_system_processes, Fsystem_process_attributes)
5960 [!subprocesses]: Call list_system_processes and
5961 system_process_attributes instead of returning Qnil.
5962
9acef61c
JB
5963 * dosfns.c (system_process_attributes, list_system_processes):
5964 New functions.
c4605e09
EZ
5965
5966 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
5967
5968 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
5969 Don't use the default (no-op) implementation.
5970
8b7d0a16
JR
59712009-01-03 Jason Rumney <jasonr@gnu.org>
5972
a6d46bc1
JR
5973 * keyboard.c (parse_modifiers_uncached): Wheel events are
5974 clicks (bug#687).
5975
8b7d0a16
JR
5976 * w32term.c (x_query_colors, x_query_color): New functions.
5977
5978 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
5979 (svg_load_image): Cast returned pointers from dynamically loaded
5980 functions. Eliminate W32 specific code.
5981
bfe11752
DN
59822009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
5983
89e2438a
DN
5984 * nsfns.m (x_set_foreground_color, x_set_background_color)
5985 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
5986 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
5987 x_ prefix instead of ns_. Update references.
5988 (syms_of_nsfns): Add a FIXME comment.
5989
5990 * nsterm.m (x_set_cursor_type): New prototype.
5991 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
5992
bfe11752
DN
5993 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
5994 for Solaris instead of incorrectly providing Qutime and Qcutime.
5995
031da700
EZ
59962009-01-02 Eli Zaretskii <eliz@gnu.org>
5997
5998 * w32.c (process_times): Compute sum of utime and stime.
5999 (system_process_attributes): Add Qtime to the alist.
6000
6001 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
6002 and add them to the alist.
6003
6004 * process.c (top level) <Qtime, Qctime>: New variables.
6005 (syms_of_process): staticpro them.
6006 (Fsystem_process_attributes): Add their documentation to the doc
6007 string.
6008
6009 * process.h: Declare Qtime and Qctime.
6010
df23bf08
JR
60112009-01-02 Jason Rumney <jasonr@gnu.org>
6012
9acef61c 6013 * image.c (Qgobject): New symbol.
df23bf08
JR
6014 (syms_of_image): Initialize it.
6015 (init_svg_functions): Load some functions from gobject library.
6016
5bbdf7aa
DN
60172009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
6018
6019 * frame.c (make_terminal_frame): Remove redundant code and useless
6020 block.
6021
63136da6
AS
60222009-01-01 Andreas Schwab <schwab@suse.de>
6023
6024 * process.c (conv_sockaddr_to_lisp): Add workaround for
6025 getsockname bug on BSD.
6026
9ef69046
CY
60272009-01-01 Chong Yidong <cyd@stupidchicken.com>
6028
d6fafbe0
CY
6029 * xfns.c (x_create_tip_frame): Set border width of the X window.
6030
51d861de 6031 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 6032
f9c34147
JR
60332009-01-01 Jason Rumney <jasonr@gnu.org>
6034
9acef61c 6035 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
6036 Don't block input, as per earlier xterm.c changes.
6037
f5497e45
AR
60382008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
6039
6040 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
6041 (ns_appkit_version_int): New function.
6042 (x-server-version): Use ns_appkit_version_int and follow 21+
6043 convention of returning 3 integers.
6044
c19cab20
KH
60452008-12-30 Kenichi Handa <handa@m17n.org>
6046
6047 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
6048 (CHAR_SURROGATE_PAIR_P): New macro.
6049
6050 * font.h (struct font_driver): New member get_variation_glyphs.
6051
9acef61c 6052 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
6053 (Ffont_variation_glyphs): New function.
6054 (syms_of_font): Defsubr it.
6055
6056 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
6057 ftfont_variation_glyphs.
6058 (setup_otf_gstring): New function.
6059 (ftfont_drive_otf): Use it.
6060 (ftfont_shape_by_flt): Handle variation selector.
6061 (ftfont_variation_glyphs): New function.
6062
28cd591f
MR
60632008-12-30 Martin Rudalics <rudalics@gmx.at>
6064
6065 * frame.c (Vemacs_iconified): Remove.
6066
7f714baf
JR
60672008-12-30 Jason Rumney <jasonr@gnu.org>
6068
6069 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 6070 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 6071
9d2d22ab
CY
60722008-12-30 Chong Yidong <cyd@stupidchicken.com>
6073
6074 * indent.c (Fvertical_motion): Don't advance iterator if we have
6075 reseated to the desired position.
6076
6077 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
6078 checking for pos match.
6079
545312c2
KH
60802008-12-30 Kenichi Handa <handa@m17n.org>
6081
1ede3eb6
KH
6082 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
6083 just get the low 8-bit of the code.
6084
545312c2
KH
6085 * font.c (font_intern_prop): Validate str as multibyte.
6086
bd7bbf29
DN
60872008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
6088
31e0750e
DN
6089 * dispextern.h (struct face): Move lface and hash from the middle
6090 of bitfields.
6091
bd7bbf29
DN
6092 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
6093
b5672e7c
DN
60942008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
6095
6096 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
6097 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
6098 instead of intervals.h.
6099
d704470f
AS
61002008-12-26 Andreas Schwab <schwab@suse.de>
6101
6102 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
6103 cons.
6104
54b33868
MR
61052008-12-26 Martin Rudalics <rudalics@gmx.at>
6106
6107 * textprop.c (Qminibuffer_prompt): New variable.
6108 (syms_of_textprop): Initialize it.
6109 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
6110 in minibuffer-prompt face. (Bug#1662)
6111
40b615d6
JR
61122008-12-25 Jason Rumney <jasonr@gnu.org>
6113
6114 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
6115
baae5c2d
JR
61162008-12-24 Jason Rumney <jasonr@gnu.org>
6117
6118 * ralloc.c (r_alloc_reset_variable): New function.
6119
6120 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 6121 record of what points where. (Bug#716)
baae5c2d 6122
a9051c88
DN
61232008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
6124
6125 * minibuf.c (read_minibuf): Follow the non-interactive case when
6126 running as a daemon, before detaching.
6127
8b146312
AS
61282008-12-22 Andreas Schwab <schwab@suse.de>
6129
6130 * buffer.c (init_buffer): Use realloc instead of xrealloc.
6131 * gtkutil.c (free_widget_value): Use xfree instead of free.
6132
56f2de10
MR
61332008-12-22 Martin Rudalics <rudalics@gmx.at>
6134
6135 * frame.c (delete_frame): New function derived from
6136 Fdelete_frame to handle Qnoelisp value for FORCE argument.
6137 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
6138 (Fdelete_frame): Call delete_frame. Remove line from doc-string
6139 saying that FORCE non-nil doesn't run `delete-frame-functions'.
6140 * frame.h: Extern delete_frame.
6141 * window.c (window_loop):
6142 * terminal.c (delete_terminal):
6143 * xterm.c (x_connection_closed):
6144 * xfns.c (Fx_hide_tip):
9acef61c 6145 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 6146
1fc200d6
JR
61472008-12-21 Jason Rumney <jasonr@gnu.org>
6148
6149 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
6150 when character maps to .notdef character.
6151
5e252df2
SM
61522008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
6153
6154 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
6155
99b72cc4
JR
61562008-12-20 Jason Rumney <jasonr@gnu.org>
6157
6158 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 6159 a graphical frame on Windows. (Bug#1325)
99b72cc4 6160
acc49a52
JD
61612008-12-20 Jan Djärv <jan.h.d@swipnet.se>
6162
6163 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
6164
6ea15123
CY
61652008-12-20 Chong Yidong <cyd@stupidchicken.com>
6166
6167 * minibuf.c (Fread_buffer): Doc fix.
6168
b2dab6c8
JR
61692008-12-20 Jason Rumney <jasonr@gnu.org>
6170
54ea0c87 6171 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 6172 server name in UNC paths. (Bug#719)
54ea0c87 6173
b2dab6c8 6174 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 6175 charbuf. (Bug#1035)
b2dab6c8 6176
6d1921be
DN
61772008-12-19 Daniel Engeler <engeler@gmail.com>
6178
6179 * sysdep.c (serial_configure): Fix typo.
6180
53934c98
DN
61812008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
6182
6183 * sysdep.c: Include alloca.h.
f4f634e8
DN
6184 (system_process_attributes): Add implementation for Solaris.
6185
6186 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 6187
06e111a6
DN
61882008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
6189
6190 Reorganize implementation of Flist_system_processes and
6191 Fsystem_process_attributes. No functional changes.
6192 * process.c: Don't #include pwd.h, grp.h and limits.h.
6193 (Flist_system_processes): Just call list_system_processes.
6194 (Fsystem_process_attributes): Just call system_process_attributes.
6195 (procfs_list_system_processes, time_from_jiffies)
6196 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
6197 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
6198
6199 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
6200 (list_system_processes): Rename from
6201 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
6202 Provide a do nothing implementation.
6203 (system_process_attributes): Rename from
6204 procfs_list_system_processes.
6205 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 6206 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
6207
6208 * w32.c (list_system_processes): Rename from
6209 w32_list_system_processes.
6210 (system_process_attributes): Rename from
6211 w32_system_process_attributes.
6212
6213 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
6214
6215 * process.h (w32_list_system_processes)
6216 (w32_system_process_attributes): Remove.
362654a6
JB
6217 (list_system_processes, system_process_attributes):
6218 New prototypes.
06e111a6 6219
6a705b23
KH
62202008-12-19 Kenichi Handa <handa@m17n.org>
6221
6222 * xfont.c (xfont_decode_coding_xlfd): New function.
6223 (xfont_encode_coding_xlfd): New function.
6224 (xfont_list_pattern): Decode XLFD by iso-8859-1.
6225 (xfont_list): Decode and encode XLFD by iso-8859-1.
6226 (xfont_match): Likewise.
6227 (xfont_list_family): Likewise.
6228 (xfont_open): Likewise.
6229
d66c0241 6230 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
6231 names are utf-8.
6232
d66c0241 6233 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
6234 names are utf-8.
6235
5a130941
JD
62362008-12-18 Jan Djärv <jan.h.d@swipnet.se>
6237
6238 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
6239 changed.
bfd20325
JD
6240 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
6241 clicked on a detached tool bar button.
5a130941 6242
fd95644b
DN
62432008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
6244
6245 * emacs.c (main): Print and error and exit when no data is read
6246 from the pipe.
6247
e6eee6ae
JR
62482008-12-17 Jason Rumney <jasonr@gnu.org>
6249
6250 * w32font.c (w32font_has_char): Always return -1.
6251
a35dd56b
KH
62522008-12-16 Kenichi Handa <handa@m17n.org>
6253
6254 * font.c (font_open_entity): Fix previous change.
6255
0e3635c2
DN
62562008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
6257
6258 * process.c: Include <limits.h>.
6259
d4835507 62602008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
6261
6262 * font.c (font_update_drivers): Fix mistake in reconstructing the
6263 driver list.
6264
62652008-12-16 Chong Yidong <cyd@stupidchicken.com>
6266
6267 * font.c (font_clear_cache): Fix format of font cache data.
6268
e2cbc401
CY
62692008-12-15 Chong Yidong <cyd@stupidchicken.com>
6270
6271 * xftfont.c (xftfont_open): Free Xft font pattern if
6272 XftFontOpenPattern fails.
6273
6274 * xterm.c (x_free_frame_resources): Remove extraneous call to
6275 free_frame_faces.
6276
b131d535
CY
62772008-12-13 Chong Yidong <cyd@stupidchicken.com>
6278
6279 * xterm.c (x_delete_display): Move xim_close_dpy call to
6280 x_delete_terminal.
6281 (x_delete_terminal): Call xim_close_dpy.
6282
e6df5336
JR
62832008-12-13 Jason Rumney <jasonr@gnu.org>
6284
6285 * w32font.c (intern_font_name): New function.
6286 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
6287 (w32font_open_internal, Fx_select_font): Decode font name.
6288 (fill_in_logfont, list_all_matching_fonts): Encode font name.
6289
6290 * w32font.h (intern_font_name): Declare new function.
6291
6292 * w32uniscribe.c (add_opentype_font_name_to_list):
6293 Use intern_font_name.
6294
20d68145
CY
62952008-12-13 Chong Yidong <cyd@stupidchicken.com>
6296
9f2554de
CY
6297 * frame.c (Fdelete_frame): Call free_font_driver_list.
6298
3d9bec9a
CY
6299 * font.c (free_font_driver_list): Implement missing function.
6300
20d68145
CY
6301 * w32term.c (w32_term_init): Don't initialize the image cache
6302 here; it will be done in init_frame_faces.
6303
6304 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
6305 (struct x_display_info): Remove unused member null_pixel. New
6306 member xim_callback_data.
6307
6308 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
6309 (xim_initialize): Save pointer to callback function data.
6310 (xim_close_dpy): Free callback function data. Call XCloseIM,
6311 reverting 2008-11-04 change by David Smith.
6312 (x_term_init): Don't initialize the image cache here; it will be
6313 done in init_frame_faces. Remove ancient "null_pixel" cruft.
6314 (x_delete_display): Free x_dnd_atoms member.
6315
96f9306b
KH
63162008-12-13 Kenichi Handa <handa@m17n.org>
6317
6dec9044
JB
6318 * font.c (font_rescale_ratio): Moved from xfaces.c.
6319 Argument type changed. Handle a font-spec too.
96f9306b 6320 (font_score): Check Vface_font_rescale_alist.
6dec9044 6321 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
6322
6323 * xfaces.c (font_rescale_ratio): Moved to font.c.
6324
8d5b4964
CY
63252008-12-13 Chong Yidong <cyd@stupidchicken.com>
6326
6327 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
6328
e6df5336
JR
63292008-12-12 Jason Rumney <jasonr@gnu.org>
6330
6331 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
6332 Vwindow_system_version to the real w32 major version.
6333
97c6058a
DN
63342008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
6335
6336 * term.c (init_tty): Move setting the terminal name before the
6337 potential user: maybe_fatal.
6338
ec4e88d7
CY
63392008-12-11 Chong Yidong <cyd@stupidchicken.com>
6340
d4835507
JB
6341 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
6342 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 6343
b4233ec9
JR
63442008-12-11 Jason Rumney <jasonr@gnu.org>
6345
8ec71e23 6346 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 6347 SYMBOL_CHARSET. (Bug#547)
8ec71e23 6348
b4233ec9 6349 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 6350 size for surrogates. (Bug#1096, bug#872)
b4233ec9 6351
011a0143
JB
63522008-12-11 Juanma Barranquero <lekktu@gmail.com>
6353
6354 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
6355
3c309f34
JB
63562008-12-11 Juanma Barranquero <lekktu@gmail.com>
6357
6358 * process.c (Fsystem_process_attributes, syms_of_process):
6359 Fix typo in name of Ssystem_process_attributes.
6360 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
6361
fedc6ab5
JB
63622008-12-11 Juanma Barranquero <lekktu@gmail.com>
6363
6364 * syntax.c (Fmodify_syntax_entry): Doc fix.
6365
ba3de0e8
JB
63662008-12-10 Juanma Barranquero <lekktu@gmail.com>
6367
6368 * font.c (Ffont_spec): Move usage to end of docstring.
6369
174f1c74
JR
63702008-12-10 Jason Rumney <jasonr@gnu.org>
6371
6372 * w32font.c (Qcham): New symbol.
6373 (font_supported_scripts): Add cham, and comments for other new
6374 scripts in bitfield from OpenType spec.
9d32f818
JR
6375 (add_font_entity_to_list): Limit unicode-sip fonts to those that
6376 contain characters beyond the bmp.
174f1c74 6377
7b649478
KH
63782008-12-10 Kenichi Handa <handa@m17n.org>
6379
6380 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 6381 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
6382 Qunicode_sip.
6383
2133e2d1
JB
63842008-12-10 Juanma Barranquero <lekktu@gmail.com>
6385
6386 * coding.c (QCdefault_char): Rename from QCdefalut_char.
6387 (Fcoding_system_put): Use QCdefault_char.
6388 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
6389
9af886ee
CY
63902008-12-09 Chong Yidong <cyd@stupidchicken.com>
6391
74d819eb
CY
6392 * xftfont.c (syms_of_xftfont): Fix typo.
6393
4ccfa1c0 6394 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 6395
7c19d3ae
DN
63962008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
6397
6398 * emacs.c (main): Close daemon_pipe on exec.
6399
567826bb
CY
64002008-12-08 Chong Yidong <cyd@stupidchicken.com>
6401
6402 * termchar.h (struct tty): New members termcap_term_buffer and
6403 termcap_strings_buffer.
6404
6405 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 6406 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
6407 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
6408 All callers changed.
6409 (init_tty): Store termcap data and string buffers in new struct
6410 tty members termcap_term_buffer and termcap_strings_buffer.
6411 (delete_tty): Free them.
4ccfa1c0 6412 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 6413
aa96c42b
SZ
64142008-12-07 Seiji Zenitani <zenitani@mac.com>
6415
6416 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 6417 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 6418
b7e1d896
CY
64192008-12-06 Chong Yidong <cyd@stupidchicken.com>
6420
6421 * coding.c (make_conversion_work_buffer): Disable buffer
6422 modification hooks in the work buffer.
6423
b5ec91a5
EZ
64242008-12-05 Eli Zaretskii <eliz@gnu.org>
6425
6426 * process.c (procfs_system_process_attributes): If `nread' has a
6427 negative value, assign zero to it.
6428
a5d2a52b
CY
64292008-12-05 Chong Yidong <cyd@stupidchicken.com>
6430
68c5540b 6431 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 6432
7bf1bb21
KH
64332008-12-05 Kenichi Handa <handa@m17n.org>
6434
6435 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
6436 second character is a combining character.
6437
2fdc7d00
EZ
64382008-12-05 Eli Zaretskii <eliz@gnu.org>
6439
6440 * process.c (procfs_system_process_attributes): Don't use cmd,
6441 cmdsize, and q without initializing them first.
6442
bf6bfba8
JR
64432008-12-04 Jason Rumney <jasonr@gnu.org>
6444
6445 * w32font.c (w32font_draw): Initialize orig_clip before getting
6446 it, and delete it when finished.
6447
a3b1a468
DN
64482008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
6449
6450 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
6451 case when running as a daemon before detaching.
6452
8b8be8eb
JB
64532008-12-03 Juanma Barranquero <lekktu@gmail.com>
6454
805f2638 6455 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 6456
b1bde622
KH
64572008-12-03 Kenichi Handa <handa@m17n.org>
6458
e500c47d
KH
6459 * font.c (font_at): Set `multibyte' at first.
6460
ca516334
KH
6461 * coding.c (decode_coding_charset): Check type of an element of
6462 vector VALIDS.
7bf1bb21 6463 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 6464
4ccfa1c0 6465 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
6466 (font_for_char): Likewise.
6467
1e5ecd37
CY
64682008-12-03 Chong Yidong <cyd@stupidchicken.com>
6469
d5b01609 6470 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
6471 (font_update_lface): Handle fonts with corrupted size specs,
6472 i.e. non-int and non-float.
d5b01609 6473
11e3a6e4 6474 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 6475 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 6476 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 6477
ab06788b
CY
6478 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
6479
1e5ecd37 6480 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 6481 underline_minimum_offset for underline position.
1e5ecd37 6482
63c125ab
DN
64832008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
6484
6485 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
6486
6487 * character.c (c_string_width): Specify the type for LEN.
6488
3a8406e1
KH
64892008-12-03 Kenichi Handa <handa@m17n.org>
6490
4ccfa1c0 6491 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 6492 (decode_coding_utf_8): Likewise.
4ccfa1c0 6493 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 6494 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 6495
651df7d9
CY
64962008-12-02 Chong Yidong <cyd@stupidchicken.com>
6497
6498 * keyboard.c (make_lispy_position): Only use PT if the selected
6499 window is current.
6500
1f625c6c
AS
65012008-12-02 Andreas Schwab <schwab@suse.de>
6502
f7741ce9
AS
6503 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
6504
1f625c6c
AS
6505 * doprnt.c (doprnt1): Fix size of charbuf.
6506
92bc2678
CY
65072008-12-02 Chong Yidong <cyd@stupidchicken.com>
6508
6509 * keyboard.c (timer_check): Revert last change.
6510
93b9e8cc
JB
65112008-12-02 Juanma Barranquero <lekktu@gmail.com>
6512
6513 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
6514
fd7a37d5
JB
65152008-12-01 Juanma Barranquero <lekktu@gmail.com>
6516
6517 * makefile.w32-in: Update dependencies.
6518 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
6519
c115043b
AS
65202008-12-01 Andreas Schwab <schwab@suse.de>
6521
6522 * font.c (register_font_driver): Use xmalloc.
6523 (font_put_frame_data): Likewise.
6524
f5668d2a
CY
65252008-12-01 Chong Yidong <cyd@stupidchicken.com>
6526
860d96be
CY
6527 * xfaces.c (realize_x_face): Make abort condition clearer.
6528
f5668d2a
CY
6529 * gtkutil.c (update_frame_tool_bar): Initialize variable.
6530
379c17e7
CY
65312008-11-30 Chong Yidong <cyd@stupidchicken.com>
6532
6533 * keyboard.c (timer_check): After a timer runs, ensure that the
6534 selected window's buffer is current.
6535
35f36d65
JB
65362008-11-30 Juanma Barranquero <lekktu@gmail.com>
6537
f952c61c
JB
6538 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
6539 It was accidentally restored by the Unicode merge.
6540
35f36d65
JB
6541 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
6542
b23077df
JB
65432008-11-29 Juanma Barranquero <lekktu@gmail.com>
6544
6545 * w32proc.c: Include "coding.h".
6546 (Fw32_short_file_name): Encode filename passed to Windows API.
6547 (Fw32_long_file_name): Encode filename passed to Windows API and
6548 decode back the result. (Bug#1433)
6549
b8ebe9dd
KH
65502008-11-29 Kenichi Handa <handa@m17n.org>
6551
8cc53f96
KH
6552 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
6553 not before accessing it.
6554
b8ebe9dd
KH
6555 * charset.c (Fdefine_charset_internal): After calculating
6556 min_char, max_char, and fastmap, copy the charset structure again.
6557 (encode_char): Fix the previous change.
6558
59bc82c0
SZ
65592008-11-28 Seiji Zenitani <zenitani@mac.com>
6560
6561 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
6562
6563 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
6564
6565 * nsterm.m (x_set_frame_alpha): New function.
6566
32247e3d
EZ
65672008-11-27 Eli Zaretskii <eliz@gnu.org>
6568
6569 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
6570
b003e5ff
JB
65712008-11-27 Juanma Barranquero <lekktu@gmail.com>
6572
6573 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
6574 pointer to check_face_name.
6575
708550f5
KH
65762008-11-27 Kenichi Handa <handa@m17n.org>
6577
6578 * category.h (SET_CATEGORY_SET): Call set_category_set.
6579 (set_category_set): Extern it.
6580
6581 * category.c (hash_get_category_set): New function.
6582 (Fmodify_category_entry): Adjusted for the change of
6583 char_table_ref_and_range. Call hash_get_category_set to get a
6584 category set to store in the table.
6585
6586 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
6587 Funify_charset.
6588
2ae37cf0 6589 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
6590 (DECODE_CHAR): Check if the decoder vector is ready.
6591 (ENCODE_CHAR): Check if the encoder char-table is ready.
6592 (maybe_unify_char): Extern it.
6593
6594 * charset.c (Vchar_unified_charset_table): Delete it.
6595 (inhibit_load_charset_map): New variable.
6596 (temp_charset_work): New variable.
6597 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
6598 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
6599 New macros.
6600 (load_charset_map): Meaning of control_flag changed. If
6601 inhibit_load_charset_map is nonzero, setup a table in
6602 temp_charset_work.
6603 (load_charset): New argument control_flag.
6604 (map_charset_for_dump): New function.
6605 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
6606 map_charset_for_dump.
6607 (Fdefine_charset_internal): If the charset method is MAP, load
6608 mapping tables by calling load_charset.
6609 (Funify_charset): Don't load a mapping table but directly set
6610 Vchar_unify_table.
6611 (maybe_unify_char): New function.
6612 (decode_char): Don't handle the deleted method MAP_DEFERRED.
6613 Handle the case of inhibit_load_charset_map being nonzero.
6614 (encode_char): Don't handle the deleted method MAP_DEFERRED.
6615 Handle the case of inhibit_load_charset_map being nonzero.
6616 (Fclear_charset_maps): Just free temp_charset_work.
6617 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
6618 variable.
6619
6620 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
6621 change of char_table_ref_and_range.
6622 (char_table_ref_and_range): Change the meaning of argument FROM
6623 and TO. Now the caller must provide initial values for *FROM
6624 and *TO.
6625
6626 * fontset.c (fontset_add): Adjusted for the change of
6627 char_table_ref_and_range.
6628 (fontset_get_font_group): Likewise.
6629 (Ffontset_info): Likewise.
6630
6631 * keymap.c (describe_vector): Adjusted for the change of
6632 char_table_ref_and_range. For char-table, put boundary between
6633 non-ASCII and 8-bit characters.
6634
6635 * print.c (print_object): For bool-vector, delete unnecessary
6636 check of ASCII_BYTE_P.
6637
9196133b
JR
66382008-11-26 Jason Rumney <jasonr@gnu.org>
6639
6640 * w32font.c (w32font_open_internal): Don't include external
9acef61c 6641 leading in font height. (Bug#879)
9196133b 6642
9f688acf
GM
66432008-11-26 Glenn Morris <rgm@gnu.org>
6644
6645 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
6646 redefinition with ifdef. (Bug#1383)
6647
90d19aff
AR
66482008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6649
6650 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
6651
4ccfa1c0 66522008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
6653
6654 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
6655 New EmacsView methods.
6656 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
6657 Fixes bug #1048,1357,1414.
6658
66592008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6660
6661 Fix bug #1362.
6662 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
6663 is not an indexed color.
6664 * nsterm.m (free_indexed_color): Add argument checking.
6665 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
6666
e7d5ecb3
CY
66672008-11-24 Chong Yidong <cyd@stupidchicken.com>
6668
6669 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
6670 Document confirm-after-completion value for
6671 minibuffer-completion-confirm.
6672
c285743c
JR
66732008-11-24 Jason Rumney <jasonr@gnu.org>
6674
6675 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
6676 warning.
6677
b0857706
JR
66782008-11-23 Jason Rumney <jasonr@gnu.org>
6679
6680 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
6681 restored before returning.
6682
6683 * w32font.c (check_face_name): New function.
6684 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 6685 fonts. (Bug#642)
b0857706 6686
ee50ff07
MR
66872008-11-22 Martin Rudalics <rudalics@gmx.at>
6688
6689 * buffer.c (Fswitch_to_buffer): Reword and mention new option
6690 confirm-nonexistent-file-or-buffer in doc-string.
6691
b8ff72fa
SM
66922008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
6693
6694 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
6695 Fix copy/paste typo. Add checks.
6696
cee53ed4
KH
66972008-11-21 Kenichi Handa <handa@m17n.org>
6698
6699 * coding.c (detect_coding_iso_2022): Reject invalid composition
6700 sequence.
6701 (DECODE_COMPOSITION_START): If the current source is the last
6702 block, and the current composition doesn't end, regard this
6703 sequence as invalid.
6704 (decode_coding_iso_2022): Handle invalid composition sequence.
6705
f6ef1e65
MR
67062008-11-20 Martin Rudalics <rudalics@gmx.at>
6707
6708 * window.c (coordinates_in_window): Don't return
6709 ON_VERTICAL_BORDER for the rightmost position of a mode/header
6710 line when the window is not the rightmost one. (Bug#1372)
6711
e08b1705
MR
67122008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
6713
6714 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
6715
ad98e89f
EZ
67162008-11-15 Eli Zaretskii <eliz@gnu.org>
6717
6718 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
6719 and bright_bg if noninteractive is non-zero.
6720
fb098a4b
CY
67212008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6722
6723 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
6724 x_draw_glyph_string_background.
6725
6726 * w32term.c (x_draw_glyph_string): Likewise.
6727
ce952b6e
CY
67282008-11-15 Chong Yidong <cyd@stupidchicken.com>
6729
6730 * xterm.c (x_draw_glyph_string): Stop drawing the background of
6731 the next glyph string once past the overhang width.
6732
6733 * nsterm.m (ns_draw_glyph_string): Likewise.
6734
6735 * w32term.c (x_draw_glyph_string): Likewise.
6736
26ea7079
CY
67372008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
6738
6739 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
6740 double file close.
6741
1c33c906
MR
67422008-11-14 Martin Rudalics <rudalics@gmx.at>
6743
6744 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
6745 dedicated status of window before attempting to display another
6746 buffer in it.
6747
8fc29035
JB
67482008-11-14 Juanma Barranquero <lekktu@gmail.com>
6749
6750 * msdos.c (Fmsdos_long_file_names):
6751 (syms_of_msdos) <dos-unsupported-char-glyph>:
6752 * dosfns.c (Fint86): Fix typos in docstrings.
6753
55fb4286
EZ
67542008-11-14 Eli Zaretskii <eliz@gnu.org>
6755
6756 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
6757
3fda0315
KY
67582008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
6759
6760 * puresize.h (BASE_PURESIZE): Increase to 1260000.
6761
7e849c17
CY
67622008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
6763
6764 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
6765
6766 * frame.h: Negative alpha means "don't touch".
6767
6768 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
6769
6770 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
6771
b9fd67bd
DN
67722008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
6773
6774 * hftctl.c:
6775 * chpdef.h:
6776 * acldef.h: Remove files used only for systems no longer supported.
6777
6778 * Makefile.in: Fix .o alphabetical ordering.
6779 (hftctl.o): Remove dependency, file removed.
6780 (keymap.o, print.o): Depend on charset.h.
6781
d5998e03
KH
67822008-11-10 Kenichi Handa <handa@m17n.org>
6783
2ae37cf0 6784 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 6785
be70e183
CY
67862008-11-08 Chong Yidong <cyd@stupidchicken.com>
6787
6788 * dired.c (file_name_completion): If completion_ignore_case is
6789 enabled, ignore case when checking completion-regexp-list.
6790
7cf94eac
EZ
67912008-11-08 Eli Zaretskii <eliz@gnu.org>
6792
6793 * vm-limit.c (get_lim_data): Fix last change.
6794
ee107a89
KH
67952008-11-08 Kenichi Handa <handa@m17n.org>
6796
6797 * character.c (Fget_byte): New function.
6798 (syms_of_character): Defsubr Fget_byte.
6799
5fd15622
CY
68002008-11-07 Chong Yidong <cyd@stupidchicken.com>
6801
6802 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
6803 cursor position is valid after scrolling.
6804
13d62fad
JB
68052008-11-06 Juanma Barranquero <lekktu@gmail.com>
6806
6807 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
6808
a1dd2936
GM
68092008-11-06 Glenn Morris <rgm@gnu.org>
6810
6811 * xterm.c (handle_one_xevent): Don't let popup menus cause
6812 mouse-autoselect-window related window switching. (Bug#1261)
6813
860cd236
CY
68142008-11-04 David Smith <davidsmith@acm.org> (tiny change)
6815
6816 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
6817
653a3150
AS
68182008-11-04 Andreas Schwab <schwab@suse.de>
6819
6820 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
6821
870f5cac
CY
68222008-11-03 Chong Yidong <cyd@stupidchicken.com>
6823
6824 * xfns.c (Fx_wm_set_size_hint): New function.
6825
1e02f3cb
MR
68262008-11-03 Martin Rudalics <rudalics@gmx.at>
6827
6828 * textprop.c (Fprevious_single_char_property_change): Return 0
6829 when there's no change in a string. (Bug#1301)
6830
e630dfc6
MR
68312008-11-02 Martin Rudalics <rudalics@gmx.at>
6832
6833 * frame.c (do_switch_frame): New argument NORECORD passed to
6834 Fselect_window.
6835 (Fselect_frame): New argument NORECORD passed to
6836 do_switch_frame.
6837 (Fset_frame_selected_window): New argument NORECORD passed to
6838 Fselect_frame.
6839 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
6840 in call of do_switch_frame.
6841 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
6842 Handle NORECORD argument in call of Fselect_frame.
6843 * lisp.h (do_switch_frame, Fselect_frame)
6844 (Fset_frame_selected_window): Adjust declarations.
6845 * window.c (select_frame_norecord): New function.
6846 (run_window_configuration_change_hook): Use it and call
6847 Fselect_frame with NORECORD set.
6848 (Fselect_window): Pass NORECORD to Fselect_frame.
6849 (Fset_window_configuration): Handle NORECORD argument in call of
6850 do_switch_frame.
6851 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
6852 Fset_frame_selected_window.
6853 * keyboard.c (command_loop_1): Handle NORECORD in call of
6854 Fselect_frame (currently ifdefd).
6855
9020b223
GM
68562008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
6857
6858 * emacs.c (USAGE2): Untabify.
6859
793ffee8
SM
68602008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
6861
6862 * composite.c (fill_gstring_header): Fix copy/paste typo.
6863
ab6d1131
MR
68642008-10-31 Martin Rudalics <rudalics@gmx.at>
6865
6866 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
6867 (Fother_window): Rename argument and rewrite doc-string.
6868 (select_window_norecord): Fix return value. (Bug#1276)
6869
601a9cf1
JB
68702008-10-30 Juanma Barranquero <lekktu@gmail.com>
6871
6872 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
6873 new frames overriding foreground for tooltips. Based on similar patch
6874 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
6875
813b0652
CY
68762008-10-29 Chong Yidong <cyd@stupidchicken.com>
6877
6878 * emacs.c (Fdaemon_initialized): Initialize nfd.
6879
4414f58f
MR
68802008-10-29 Martin Rudalics <rudalics@gmx.at>
6881
6882 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
6883 (Fwindow_text_height): Clarify doc-strings.
6884 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
6885 doc-string of window-scroll-functions.
6886
ecdcaa09
RS
68872008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
6888
6889 * category.c (syms_of_category): Fix typo in docstring.
6890
23fe745a
JB
68912008-10-28 Juanma Barranquero <lekktu@gmail.com>
6892
6893 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
6894 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
6895 Fix typos in docstrings.
6896
ff808935
DN
68972008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
6898
6899 * emacs.c (daemon_pipe): Make non-static.
6900 (IS_DAEMON): Move definition ...
6901 * lisp.h (IS_DAEMON): ... here.
6902 (daemon_pipe): Declare.
6903 (is_daemon): Remove.
6904 * dispnew.c (init_display): Use IS_DAEMON.
6905
fc012771
SM
69062008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
6907
6908 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
6909 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
6910
6911 * emacs.c (is_daemon): Remove.
6912 (main): Don't set is_daemon.
6913 (IS_DAEMON): New macro.
6914 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 6915 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
6916 parent exits.
6917 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
6918
d8bdbe6f
CY
69192008-10-27 Chong Yidong <cyd@stupidchicken.com>
6920
d1a072bf
CY
6921 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
6922 over-sized glyph, draw it with the default glyph width.
6923
e2e325aa
CY
6924 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6925 glyph, draw it with the default glyph width.
6926
6927 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6928 glyph, draw it with the default glyph width.
6929
d8bdbe6f
CY
6930 * xdisp.c (try_scrolling): When computing the distance from the
6931 scroll margin to PT, try moving some distance past the window
6932 bottom before giving up.
6933
7bfac547
MR
69342008-10-27 Martin Rudalics <rudalics@gmx.at>
6935
6936 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
6937 (Fset_window_buffer): Explain in doc-string that a window can be
6938 "strongly" dedicated to its buffer.
6939
4ff029f6
DN
69402008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
6941
6942 * emacs.c (daemon_name): New variable.
6943 (main): Deal with --daemon=SERVER_NAME.
6944 (Fdaemonp): Return a name if one was passed to --daemon.
6945
5790ef40
DN
69462008-10-26 Romain Francoise <romain@orebokech.com>
6947
f9bd0df9 6948 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
6949 (main): Create a pipe before forking, make the parent exit only after
6950 the child has closed its end of the pipe. Move closing the
6951 descriptors ...
6952 (Fdaemon_initialized): ... here. New function.
6953
f5385255
SM
69542008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
6955
4d632321
SM
6956 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
6957 the previous unoptimized table.
6958
f5385255
SM
6959 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
6960 the distinction between non-nil and non-t value of `dedicated'.
6961
6c56a0f3
CY
69622008-10-25 Chong Yidong <cyd@stupidchicken.com>
6963
6964 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 6965 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 6966
fec89261
MR
69672008-10-25 Martin Rudalics <rudalics@gmx.at>
6968
6969 * window.c (Fget_buffer_window, Fdelete_windows_on)
6970 (Freplace_buffer_in_windows): Make buffer argument optional and
6971 rename to buffer_or_name.
6972
34fcddd0
CY
69732008-10-24 Chong Yidong <cyd@stupidchicken.com>
6974
f5385255
SM
6975 * xdisp.c (handle_single_display_spec, handle_display_prop):
6976 Undo 2005-05-16 change.
34fcddd0
CY
6977 (handle_stop): Pop iterator if it's loaded with an empty string.
6978 (get_overlay_strings_1): Don't save iterator if it's loaded with
6979 an empty string (bug#1201).
6980
064766f2
KH
69812008-10-24 Kenichi Handa <handa@m17n.org>
6982
6983 * ftfont.c (ftfont_otf_features): Fix previous change.
6984 (ftfont_otf_capability): Check FeatureList.FeatureCount before
6985 calling ftfont_otf_features.
6986
f9bd0df9 69872008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
6988
6989 * font.c (font_match_p): Fix for the case that a vector of
6990 characters is in script-representative-chars.
6991
1dae9197
MA
69922008-10-24 Michael Albinus <michael.albinus@gmx.de>
6993
6994 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 6995 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
6996 (xd_read_queued_messages): Catch Qdbus_error from the macros.
6997 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 6998 macro. (Bug#1186)
1dae9197 6999
f9bd0df9 70002008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
7001
7002 * s/sol2-10.h: New file.
7003
878a4584
JB
70042008-10-23 Juanma Barranquero <lekktu@gmail.com>
7005
7006 * xdisp.c (fill_glyph_string): Fix typo in source (though the
7007 poor beast has survived 9+ years and the jump from xterm.c!).
7008
cd265ca6
MR
70092008-10-23 Martin Rudalics <rudalics@gmx.at>
7010
7011 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
7012 Reword doc-string.
f5385255 7013 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 7014
472a4dc9
JB
70152008-10-23 Juanma Barranquero <lekktu@gmail.com>
7016
7017 * character.c (syms_of_character) <script-representative-chars>:
7018 <unicode-category-table>: Doc fixes.
7019
159bd5a2
NF
70202008-10-23 Noah Friedman <friedman@splode.com>
7021
7022 * coding.c (make_conversion_work_buffer): Check that
7023 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
7024 Fget_buffer_create.
7025
49f9c344
KH
70262008-10-23 Kenichi Handa <handa@m17n.org>
7027
7028 * font.c (font_add_log): Check the values of extra properties.
7029
12bb3111
MR
70302008-10-22 Martin Rudalics <rudalics@gmx.at>
7031
7032 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
7033 Reword doc-string.
7034 (Fset_window_parameter): Use NILP.
7035 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 7036 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 7037
bbeb4e99
JB
70382008-10-22 Juanma Barranquero <lekktu@gmail.com>
7039
7040 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
7041
70422008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
7043
7044 * nsfns.m (ns_appkit_version): New function.
7045 (x-server-version): Use it.
7046 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
7047 (x-server-vendor): Don't check_ns().
7048
7049 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
7050
a9b555d3
JB
70512008-10-22 Juanma Barranquero <lekktu@gmail.com>
7052
7053 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
7054 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
7055
4626499f
KH
70562008-10-22 Kenichi Handa <handa@m17n.org>
7057
e3681952
KH
7058 * syntax.c (scan_words): Call word_boundary_p instead of comparing
7059 scripts.
7060
4626499f
KH
7061 * category.c (word_boundary_p): Check scripts instead of charset.
7062 Handle nil value in word-separating-categories and
7063 word-combining-categories.
7064 (syms_of_category): Fix docstrings of word-separating-categories
7065 and word-combining-categories.
7066
1560f91a
EZ
70672008-10-21 Eli Zaretskii <eliz@gnu.org>
7068
7069 * coding.c (Fencode_coding_region, Fdecode_coding_region)
7070 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
7071
f4668441
MR
70722008-10-21 Martin Rudalics <rudalics@gmx.at>
7073
7074 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
7075 Rename arg "buffer" to "buffer_or_name".
7076 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
7077 it optional.
7078 (no_switch_window): Remove since the return value is not used.
a9b555d3 7079 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
7080 Consider window as dedicated when Fwindow_dedicated_p returns a
7081 non-nil value.
7082 * lisp.h: Remove prototype for no_switch_window.
7083
fd75ddb2
JD
70842008-10-21 Jan Djärv <jan.h.d@swipnet.se>
7085
7086 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 7087 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 7088
07295713
KH
70892008-10-21 Kenichi Handa <handa@m17n.org>
7090
7091 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
7092 check Vlatin_extra_code_table.
7093
712adc82
EZ
70942008-10-20 Eli Zaretskii <eliz@gnu.org>
7095
7096 * fileio.c (Fset_file_modes): Doc fix.
7097
f549eb0b
MA
70982008-10-19 Michael Albinus <michael.albinus@gmx.de>
7099
7100 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
7101 in arrays.
7102
aac0c6e3
MR
71032008-10-19 Martin Rudalics <rudalics@gmx.at>
7104
7105 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
7106 Mention kill-buffer in doc-string.
7107 (Fset_window_buffer): Reinsert tem check removed in last commit.
7108 (Fenlarge_window, Fshrink_window): Have argument names and
7109 doc-string follow Elisp manual more closely.
7110
71112008-10-18 Eli Zaretskii <eliz@gnu.org>
7112
7113 * fileio.c (Fset_file_modes): Doc fix.
7114
71152008-10-18 Martin Rudalics <rudalics@gmx.at>
7116
7117 * window.c (Fwindow_width, Fset_window_start)
7118 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
7119 (Fdelete_windows_on, Freplace_buffer_in_windows):
7120 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
7121 (Fwindow_dedicated_p): Make window argument optional.
7122 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
7123 (Fset_window_buffer): Respect any non-nil dedicated value for
7124 window. Rename "buffer" argument to "buffer_or_name".
7125
71262008-10-18 Ulrich Mueller <ulm@gentoo.org>
7127
7128 * m/sh3.h: New file, machine description for SuperH.
7129
71302008-10-17 Martin Rudalics <rudalics@gmx.at>
7131
7132 * window.c (Fsplit_window): Rename arg horflag to horizontal.
7133
71342008-10-17 Kenichi Handa <handa@m17n.org>
7135
7136 * ftfont.c (ftfont_otf_features): Fix indexing
7137 gsub_gpos->FeatureList.Feature. Check the validity of indices.
7138
71392008-10-16 Magnus Henoch <mange@freemail.hu>
7140
7141 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
7142 (Fdbus_call_method_asynchronously): Ditto.
7143 This change makes C-h f display the argument list.
7144
71452008-10-16 Chong Yidong <cyd@stupidchicken.com>
7146
7147 * fileio.c (Fexpand_file_name): Doc fix.
7148
7149 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
7150 of :foreground and :background equivalent to unspecified (20.x
7151 compatibility).
7152
71532008-10-15 Eli Zaretskii <eliz@gnu.org>
7154
7155 * buffer.c (syms_of_buffer): Doc fix.
7156
71572008-10-14 Kenichi Handa <handa@m17n.org>
7158
7159 * font.c (font_clear_prop): When clearing font width, clear the
7160 average width field too.
7161
71622008-10-12 Andreas Schwab <schwab@suse.de>
7163
7164 * ftfont.c (ftfont_shape_by_flt): Make static.
7165 * ftfont.h (ftfont_shape_by_flt): Don't declare.
7166
7167 * font.c: Don't include <m17n-flt.h>.
7168
71692008-10-10 Eli Zaretskii <eliz@gnu.org>
7170
7171 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
7172
71732008-10-09 Eli Zaretskii <eliz@gnu.org>
7174
7175 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
7176 away code.
7177
71782008-10-09 Chong Yidong <cyd@stupidchicken.com>
7179
7180 * dispnew.c (update_text_area): Avoid looping due to large glyph
7181 overhangs (bug#1070).
7182
71832008-10-09 Kenichi Handa <handa@m17n.org>
7184
7185 * fontset.c (face_for_char): If face->fontset is negative, just
7186 return ascii_face.
7187
f5385255
SM
7188 * font.c (font_delete_unmatched): Fix previous change.
7189 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
7190
71912008-10-09 Martin Rudalics <rudalics@gmx.at>
7192
7193 * frame.c (Fraise_frame): On text-only terminals select frame in
7194 order to make it visible. (Bug#1061)
7195
71962008-10-08 Chong Yidong <cyd@stupidchicken.com>
7197
7198 * fontset.c (fontset_find_font): Check frame validity.
7199
72002008-10-07 Chong Yidong <cyd@stupidchicken.com>
7201
a9b555d3 7202 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
7203 (xg_display_close): Allow Emacs to close all displays (bug#985).
7204
72052008-10-06 Andreas Schwab <schwab@suse.de>
7206
f5385255 7207 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
7208
72092008-10-06 Chong Yidong <cyd@stupidchicken.com>
7210
f5385255 7211 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 7212
a9b555d3 7213 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
7214
7215 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
7216 during initialization.
7217
72182008-10-04 Eli Zaretskii <eliz@gnu.org>
7219
7220 * xdisp.c (redisplay_internal): If frame switched, redisplay the
7221 whole thing on MSDOS frames as well as on a TTY.
7222
7223 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
7224 well as for TTY.
7225 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
7226 well as on a TTY.
7227
7228 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
7229 as well as for TTY.
7230
7231 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
7232
7233 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
7234 MSDOS frames as well.
7235
72362008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7237
7238 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
7239 correct arguments.
b71ac3dd 7240 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
7241
72422008-10-03 Glenn Morris <rgm@gnu.org>
7243
7244 * emacs.c (USAGE1): Add --daemon.
7245
72462008-10-02 Eli Zaretskii <eliz@gnu.org>
7247
7248 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
7249 100, so it's in percents as advertised.
7250
72512008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7252
7253 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
7254 (ns_output.current_cursor, ns_output.desired_cursor)
7255 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
7256 (FRAME_NEW_CURSOR_COLOR): Remove.
7257
7258 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 7259 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
7260 enumeration (HOLLOW_BOX_CURSOR, etc.).
7261
7262 * nsterm.m (ns_frame_rehighlight): Remove commented code.
7263 (draw_window_cursor): Simplify code.
f5385255
SM
7264 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
7265 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 7266 updates manually.
a9b555d3
JB
7267 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
7268 Use core Emacs cursor types.
aac0c6e3 7269
b8ff72fa 7270 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
7271
72722008-10-02 Martin Rudalics <rudalics@gmx.at>
7273
7274 * process.c (Faccept_process_output): Fix doc-string.
7275
72762008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
7277
7278 * gmalloc.c (__sbrk): Also define for uClibc.
7279
7280 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
7281 for uClibc.
7282
72832008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7284
7285 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
7286 styles.
7287 (nsfont_open): Reenable the cache.
7288
72892008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7290
7291 * font.c (font_matching_entity): Reflect ATTRS in font selection.
7292 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
7293
72942008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
7295
7296 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
7297 a suspended terminal.
7298
72992008-09-30 Michael Albinus <michael.albinus@gmx.de>
7300
7301 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
7302
73032008-09-30 Eli Zaretskii <eliz@gnu.org>
7304
7305 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
7306
73072008-09-30 Chong Yidong <cyd@stupidchicken.com>
7308
7309 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
7310 in a continued line coincides with a line beginning.
7311
73122008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7313
7314 * nsfont.m (nsfont_trait_distance): Fix bug.
7315 (nsfont_list): Return a list rather than a vector (syncs with Handa
7316 changes of 2008-05-14).
7317 (nsfont_open): Improve logging.
7318
73192008-09-29 Andreas Schwab <schwab@suse.de>
7320
7321 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7322
73232008-09-28 Martin Rudalics <rudalics@gmx.at>
7324
7325 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
7326 name as char-resolve-modifiers.
7327 Reported by: Markus Triska <markus.triska@gmx.at>
7328
73292008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
7330
7331 * dispnew.c (init_display): Return earlier when running as a daemon.
7332
73332008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7334
7335 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
7336
73372008-09-27 Eli Zaretskii <eliz@gnu.org>
7338
7339 * composite.c (Fcomposition_get_gstring)
7340 (Fcompose_region_internal, Fcompose_string_internal)
7341 (Ffind_composition_internal): Doc fix.
7342 (syms_of_composite) <compose-chars-after-function>: Doc fix.
7343 (syms_of_composite) <auto-composition-function>: Doc fix.
7344 (syms_of_composite) <composition-function-table>: Doc fix.
7345
73462008-09-25 Chong Yidong <cyd@stupidchicken.com>
7347
7348 * search.c (wordify): New argument for lax word-ends.
7349 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
7350
73512008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
7352
7353 * lisp.h (is_daemon): Declare.
7354 * dispnew.c (init_display): Do not try to initialize the terminal
7355 when running as a daemon.
7356
73572008-09-22 Chong Yidong <cyd@stupidchicken.com>
7358
7359 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
7360 x_display_pixel_height.
7361
73622008-09-22 Martin Rudalics <rudalics@gmx.at>
7363
7364 * undo.c (record_point): Don't call Fundo_boundary for first
7365 change. (Bug#731)
7366
73672008-09-22 Juanma Barranquero <lekktu@gmail.com>
7368
7369 * emacs.c (Fdaemonp): Doc fix.
7370
73712008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
7372
7373 * emacs.c (main): Place #ifdef in the proper place.
7374
73752008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
7376
7377 * emacs.c (standard_args): Add --daemon.
7378 (main): Disconnect from the terminal when --daemon is passed.
7379 (is_daemon): New variable.
7380 (Fdaemonp): New function.
7381 (syms_of_emacs): Defsubr it.
7382
73832008-09-20 Chong Yidong <cyd@stupidchicken.com>
7384
7385 * xdisp.c (get_next_display_element): Handle string display
7386 correctly when checking for the end of a box run.
7387
73882008-09-20 Glenn Morris <rgm@gnu.org>
7389
7390 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
7391 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
7392 (Frename_file): Avoid copying to trash if a rename involves
7393 a delete. (Bug#964).
7394
73952008-09-20 Eli Zaretskii <eliz@gnu.org>
7396
7397 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
7398 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
7399 frames as well as termcap frames.
7400 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
7401 get_named_tty.
7402
74032008-09-19 Eli Zaretskii <eliz@gnu.org>
7404
7405 * process.c (procfs_system_process_attributes): Fix cmdline in
7406 case /proc/PID/cmdline is empty.
7407
7408 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
7409 x_display_pixel_height.
7410
74112008-09-19 Juanma Barranquero <lekktu@gmail.com>
7412
7413 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
7414
7415 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
7416 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
7417
74182008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
7419
7420 * dispextern.h (struct it): Move line_wrap away from the middle of
7421 bitfields. Move voffset in struct iterator_stack_entry after the
7422 bitfields. Move tab_width near after another short.
7423
74242008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
7425
7426 * frame.h (struct frame): Move alpha from the middle of bitfields.
7427
7428 * window.h (struct window): Move frozen_window_start_p after the
7429 rest of the bitfields to reduce padding.
7430
74312008-09-18 Chong Yidong <cyd@stupidchicken.com>
7432
7433 * xterm.h (x_display_info): Remove `height' and `width' members.
7434
7435 * nsterm.h (ns_display_info): Remove `height' and `width' members.
7436
7437 * w32term.h (w32_display_info): Remove `height', `width',
7438 `height_in', and `width_in' members.
7439
b8ff72fa
SM
7440 * xterm.c (x_display_pixel_height, x_display_pixel_width):
7441 New functions.
aac0c6e3
MR
7442 (x_calc_absolute_position): Use them.
7443 (x_term_init): Omit removed `height' and `width' members.
7444
b8ff72fa
SM
7445 * w32term.c (x_display_pixel_height, x_display_pixel_width):
7446 New functions.
aac0c6e3
MR
7447 (w32_read_socket, x_calc_absolute_position): Use them.
7448 (w32_initialize_display_info, w32_term_init): Omit removed members
7449 of w32_display_info.
7450
b8ff72fa
SM
7451 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
7452 New functions.
7453 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 7454
b8ff72fa
SM
7455 * xterm.c (x_display_pixel_height, x_display_pixel_width):
7456 New functions.
aac0c6e3
MR
7457 (x_calc_absolute_position): Use them.
7458 (x_term_init): Omit removed `height' and `width' members.
7459
7460 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
7461 (compute_tip_xy):
7462 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
7463 * xmenu.c (menu_position_func): Use x_display_pixel_height and
7464 x_display_pixel_width.
7465
74662008-09-18 Kenichi Handa <handa@m17n.org>
7467
7468 * composite.c (fill_gstring_header): Don't check FROM and TO here.
7469 (composition_compute_stop_pos): Fix handling of static composition.
7470 (Fcomposition_get_gstring): Check FROM and TO at first.
7471
74722008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
7473
46e722a9 7474 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
7475 mixup (YAILOM).
7476
74772008-09-17 Chong Yidong <cyd@stupidchicken.com>
7478
7479 * indent.c (Fvertical_motion): Use position reported by iterator
7480 instead of PT for determining screen motion (bug#943).
7481
74822008-09-17 Romain Francoise <romain@orebokech.com>
7483
7484 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
7485
74862008-09-17 Kenichi Handa <handa@m17n.org>
7487
7488 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
7489
7490 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
7491 if necessary.
7492
74932008-09-16 Kenichi Handa <handa@m17n.org>
7494
7495 * coding.c (make_conversion_work_buffer): Avoid calling
7496 Fget_buffer_create if it is not necessary.
7497
74982008-09-15 Martin Rudalics <rudalics@gmx.at>
7499
7500 * window.c (Fselect_window): Don't update window_select_count and
7501 use_time when norecord is not nil.
7502
75032008-09-14 Kenichi Handa <handa@m17n.org>
7504
7505 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
7506 specpdl_ptr.
7507
75082008-09-12 Kenichi Handa <handa@m17n.org>
7509
7510 * indent.c (scan_for_column): Don't handle automatic composition
7511 if the current buffer is not associated with a window.
7512
7513 * composite.c (composition_reseat_it): If the current buffer is
7514 not associated with a window, ignore the automatic composition.
7515 (find_automatic_composition): Likewise.
7516
75172008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7518
7519 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
7520 (Fgpm_mouse_stop): Use it.
7521 * termhooks.h (close_gpm): Declare.
7522 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
7523 connection if Gpm_GetEvent fails.
7524
7525 * window.c (set_window_buffer): Always preserve current-buffer.
7526
75272008-09-12 Glenn Morris <rgm@gnu.org>
7528
7529 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
7530
75312008-09-11 Glenn Morris <rgm@gnu.org>
7532
7533 * charset.c (charset-map-path): Doc fix.
7534
75352008-09-10 Kenichi Handa <handa@m17n.org>
7536
7537 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
7538
7539 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
7540 compose a grapheme cluster with the preceding base glyph.
7541
7542 * composite.c (composition_compute_stop_pos): Fix previous change.
7543 Reset cmp_it->id to -1 at first.
7544
75452008-09-10 Glenn Morris <rgm@gnu.org>
7546
7547 * Makefile.in (character.o, chartab.o): Fix config.h typo.
7548
75492008-09-09 Chong Yidong <cyd@stupidchicken.com>
7550
7551 * keyboard.c (read_key_sequence): Reapply translation maps when
7552 switching keyboards.
7553
75542008-09-09 Kenichi Handa <handa@m17n.org>
7555
7556 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
7557 characters.
7558
7559 * composite.c (FORWARD_CHAR): Fix calculation
7560 of (POSITION).pos_byte.
7561 (composition_compute_stop_pos): Limit the search of composition to
7562 at most 500 characters ahead. If we reach the limit or find a
7563 newline, set cmp_it->ch to -2 and return 0.
7564 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
7565
75662008-09-08 Kenichi Handa <handa@m17n.org>
7567
7568 * indent.c (Fvertical_motion): Be sure to set
7569 it_overshoot_expected if it.cmp_it.id is non-negative.
7570
75712008-09-07 Andreas Schwab <schwab@suse.de>
7572
7573 * callproc.c (Fcall_process): Don't hold references to string data
7574 across garbage collection. Move initialisation of new_argv down
7575 to avoid compiler bug.
7576
75772008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7578
7579 * process.c (Fsystem_process_attributes): Doc fix.
7580
75812008-09-07 Chong Yidong <cyd@stupidchicken.com>
7582
7583 * callproc.c (Fcall_process): Canonicalize current directory name.
7584
7585 * xdisp.c (move_it_to): When moving by vpos, ensure that the
7586 iterator advances to the next line if the current line ends in a
7587 continued tab.
7588
75892008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
7590
7591 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
7592 member to point to cmp_from.
7593
7594 * xdisp.c: Doc fix for references to gidx data member.
7595
75962008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
7597
7598 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
7599
76002008-09-07 Kenichi Handa <handa@m17n.org>
7601
7602 * composite.c (FORWARD_CHAR): Check STOP after
7603 incrementing (POSITION).pos.
7604
76052008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7606
7607 * process.c (Fsystem_process_attributes): Doc fix.
7608
76092008-09-06 Chong Yidong <cyd@stupidchicken.com>
7610
7611 * keyboard.c (Ftop_level): Doc fix.
7612
76132008-09-06 Eli Zaretskii <eliz@gnu.org>
7614
7615 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
7616 minibuffer, don't let lower part of menu invade the echo area.
7617
7618 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
7619 "char *q" to access menu text and advance through it. Revert the
7620 change that displayed ">" instead of ASCII character 0x10.
7621
76222008-09-05 Eli Zaretskii <eliz@gnu.org>
7623
7624 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
7625 toggle boxes and radio buttons on MS-DOS as well.
7626
76272008-09-05 Kenichi Handa <handa@m17n.org>
7628
7629 * composite.c (autocmp_chars): Check lookback count.
7630 (composition_compute_stop_pos): Set cmp_it->lookback.
7631 (composition_reseat_it): Check lookback count.
7632 (struct position_record): New struct.
7633 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
7634 (find_automatic_composition): New function.
7635 (composition_adjust_point): Use find_automatic_composition.
7636
7637 * dispextern.h (struct composition_it): New member lookback.
7638
76392008-09-02 Chong Yidong <cyd@stupidchicken.com>
7640
7641 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
7642 if moving by a single line.
7643
76442008-09-02 Andreas Schwab <schwab@suse.de>
7645
7646 * xterm.c (x_delete_display): Fix merge error.
7647
7648 * fileio.c (Fexpand_file_name): Remove unused variables.
7649
76502008-09-02 Eli Zaretskii <eliz@gnu.org>
7651
7652 * fileio.c (Fexpand_file_name): Copy argument `name' into local
7653 storage on all platforms, not just on DOS_NT.
7654
76552008-09-02 Jason Rumney <jasonr@gnu.org>
7656
b8ff72fa
SM
7657 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
7658 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
7659
76602008-09-01 Chong Yidong <cyd@stupidchicken.com>
7661
7662 * xfaces.c (Finternal_set_alternative_font_family_alist)
7663 (Finternal_set_alternative_font_registry_alist): Properly copy
7664 entire alist structure.
7665
76662008-09-01 Kenichi Handa <handa@m17n.org>
7667
d66c0241 7668 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 7669 representative chars of the script is a vector.
d66c0241
JB
7670 (ftfont_list): Handle the case where the representative chars of
7671 the script is a vector.
aac0c6e3
MR
7672
7673 * character.c (syms_of_character): Docstring of
7674 script-representative-chars fixed.
7675
76762008-08-31 Eli Zaretskii <eliz@gnu.org>
7677
7678 * msdos.c (BUILD_CHAR_GLYPH): New macro.
7679 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
7680 the menu. Allocate larger buffer for `text', to account for
7681 possible ^C characters.
7682
76832008-08-31 Martin Rudalics <rudalics@gmx.at>
7684
7685 * xdisp.c (prepare_menu_bars): Don't call
7686 Vwindow_size_change_functions with arg Qt.
7687
76882008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
7689
7690 * font.h (font_range):
7691 * fileio.c (report_file_error):
46e722a9
SM
7692 * composite.c (composition_update_it): Yet another int/Lisp_Object
7693 mixup (YAILOM).
aac0c6e3
MR
7694
76952008-08-30 Glenn Morris <rgm@gnu.org>
7696
7697 * data.c (Fmake_variable_frame_local): Doc fix.
7698
7699 * frame.c (Fmodify_frame_parameters): Doc fix.
7700
77012008-08-30 Eli Zaretskii <eliz@gnu.org>
7702
7703 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
7704 needed by GetTokenInformation.
7705 (w32_system_process_attributes): Check return values of all system
7706 APIs.
7707
7708 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
7709 only when the state changes.
7710 (IT_update_begin, IT_update_end): Add termscript trace.
7711
7712 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
7713 clipboard is unavailable. Set dst to NULL if it doesn't point to
7714 malloc'ed data.
7715 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
7716 passing random values to xfree.
7717
7718 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 7719 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
7720
77212008-08-29 Jason Rumney <jasonr@gnu.org>
7722
7723 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
7724
77252008-08-29 Eli Zaretskii <eliz@gnu.org>
7726
7727 * composite.c (fill_gstring_body): Avoid compiler warnings.
7728
7729 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
7730 LGLYPH_SET_CODE to avoid compiler warnings.
7731
2ae37cf0 7732 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
7733
7734 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
7735
7736 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
7737 LGLYPH_SET_CODE.
7738
77392008-08-29 Kenichi Handa <handa@m17n.org>
7740
7741 * fileio.c (report_file_error): Don't downcase the first character
7742 of errstring if it is still unibyte.
7743
77442008-08-29 Kenichi Handa <handa@m17n.org>
7745
7746 These changes are to re-implement the automatic composition so
7747 that it doesn't use text properties.
7748
7749 * Makefile.in (ftfont.o): Depend on composite.h.
7750 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
7751
7752 * character.h (Vunicode_category_table): Extern it.
7753
7754 * character.c (Vunicode_category_table): New variable.
7755 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
7756
7757 * chartab.c (optimize_sub_char_table): Perform more greedy
7758 optimization.
7759
b8ff72fa
SM
7760 * composite.h (enum composition_method):
7761 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
7762 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
7763 (Vcomposition_function_table): Extern it.
7764 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
7765 (composition_gstring_put_cache, composition_gstring_from_id)
7766 (composition_gstring_p, composition_gstring_width)
7767 (composition_compute_stop_pos, composition_reseat_it)
7768 (composition_update_it, composition_adjust_point): Extern them.
7769 (Fcomposition_get_gstring): EXFUN it.
7770
d66c0241 7771 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
7772 (Vcomposition_function_table)
7773 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
7774 (gstring_hash_table, gstring_work, gstring_work_headers):
7775 New variables.
aac0c6e3
MR
7776 (gstring_lookup_cache, composition_gstring_put_cache)
7777 (composition_gstring_from_id, composition_gstring_p)
7778 (composition_gstring_width, fill_gstring_header)
7779 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
7780 (composition_reseat_it, composition_update_it)
b8ff72fa 7781 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
7782 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
7783 and gstring_work_headers. DEFVAR_LISP composition-function-table.
7784 Defsubr compostion_get_gstring.
7785
7786 * dispextern.h (struct glyph): New union u.cmp. Delete the member
7787 cmp_id.
7788 (struct glyph_string): Delete the member gidx. New members
7789 cmp_id, cmp_from, and cmp_to.
7790 (enum it_method): Delete GET_FROM_COMPOSITION.
7791 (struct composition_it): New struct.
7792 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
7793 Delete c, len, cmp_id, cmp_len in u.comp.
7794
7795 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 7796 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 7797 (enum lglyph_indices): Likewise.
b8ff72fa 7798 (font_range): Adjust extern.
aac0c6e3
MR
7799 (font_fill_lglyph_metrics): Extern it.
7800
7801 * font.c (QCf): New variable.
7802 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7803 (font_prepare_composition): Delete this function.
7804 (font_range): Type and arguments changed.
7805 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
7806 (font_fill_lglyph_metrics): New function.
b8ff72fa 7807 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 7808 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
7809 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
7810 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
7811
7812 * fontset.h (font_for_char): Extern it.
7813
7814 * fontset.c (font_for_char): New function.
7815
7816 * ftfont.c: Include composite.h.
7817 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 7818 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
7819
7820 * indent.c: Include composite.h and dispextern.h.
7821 (check_composition): Delete this function.
7822 (scan_for_column): Handle composition by
7823 composition_compute_stop_pos, composition_reseat_it, and
7824 composition_update_it.
7825 (compute_motion): Likewise.
7826 (Fvertical_motion): Fix checking of composition.
7827
7828 * keyboard.c (adjust_point_for_property): Check composition by
7829 composition_adjust_point.
7830
b8ff72fa 7831 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
7832 struct glyph_string.
7833
b8ff72fa
SM
7834 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
7835 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
7836 struct glyph.
7837 (produce_composite_glyph): Likewise.
7838
b8ff72fa
SM
7839 * w32term.c (x_draw_composite_glyph_string_foreground):
7840 Adjust for the change of struct glyph_string.
aac0c6e3
MR
7841 (x_draw_glyph_string): Likewise.
7842
7843 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
7844 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7845
7846 * xdisp.c: Include font.h.
7847 (it_props): Delete the entry for Qauto_composed.
7848 (init_iterator): Initialize it->cmp_it.id to -1.
7849 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 7850 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
7851 (handle_auto_composed_prop): Delete it.
7852 (handle_composition_prop): Handle only static composition.
7853 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
7854 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 7855 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
7856 (pop_it): Likewise.
7857 (get_next_element): Delete next_element_from_composition.
7858 (CHAR_COMPOSED_P): New macro.
7859 (get_next_display_element): For automatic composition, get a face
7860 from the font in the glyph-string.
7861 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 7862 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
7863 (next_element_from_string): Check if the character at the current
7864 position is composed by CHAR_COMPOSED_P.
7865 (next_element_from_buffer): Likewise.
d66c0241
JB
7866 (next_element_from_composition): Adjust for the change of struct it.
7867 Update it->cmp_it.
b8ff72fa
SM
7868 (dump_glyph): Adjust for the change of struct glyph.
7869 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
7870 it and struct glyph. Don't handle automatic composition here.
7871 (fill_gstring_glyph_string): New function.
7872 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 7873 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
7874 (BUILD_GSTRING_GLYPH_STRING): New macro.
7875 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
7876 automatic composition.
b8ff72fa 7877 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 7878 struct glyph.
b8ff72fa 7879 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 7880
b8ff72fa 7881 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
7882 the change of struct glyph_string.
7883 (x_draw_glyph_string): Likewise.
7884
78852008-08-29 Glenn Morris <rgm@gnu.org>
7886
7887 * buffer.c (word-wrap): Doc fix.
7888 * xdisp.c (truncate-partial-width-windows): Doc fix.
7889 Increase default to 50.
7890
78912008-08-29 Chong Yidong <cyd@stupidchicken.com>
7892
7893 * xdisp.c (update_tool_bar_unwind): New function.
7894 (update_tool_bar): Temporarily set selected frame before building
7895 tool-bar items.
7896
78972008-08-28 Michael Albinus <michael.albinus@gmx.de>
7898
7899 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
7900 snprintf, respectively.
7901 (xd_append_arg): Convert strings with Fstring_make_unibyte.
7902
79032008-08-28 Chong Yidong <cyd@stupidchicken.com>
7904
7905 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
7906 LDFLAGS to GNUstep CC invocation.
7907
79082008-08-27 Chong Yidong <cyd@stupidchicken.com>
7909
7910 * indent.c (Fvertical_motion): Revert last change. Handle the
7911 general case where we are moving forward, and PT spans multiple
7912 screen lines.
7913
7914 * eval.c (find_handler_clause): Temporarily increase
7915 max-lisp-eval-depth while printing the backtrace buffer, to
7916 guarantee that help-mode code can run.
7917
79182008-08-27 Eli Zaretskii <eliz@gnu.org>
7919
7920 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
7921 colors under -rv.
7922 (IT_set_frame_parameters): Don't swap foreground and background
7923 colors if `(reverse . t)' is present in the frame properties.
7924 (internal_terminal_init): Call init_frame_faces only for the
7925 initial frame.
7926
79272008-08-27 Andreas Schwab <schwab@suse.de>
7928
7929 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
7930
79312008-08-27 Andreas Schwab <schwab@suse.de>
7932
7933 * search.c (search_buffer): Set char_base to zero only at the end.
7934
79352008-08-27 Kenichi Handa <handa@m17n.org>
7936
b8ff72fa 7937 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
7938
79392008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
7940
7941 * xterm.c (x_term_init): Temporarily hide the partially
7942 initialized terminal while calling vendor-specific-keysyms.
7943
79442008-08-26 Eli Zaretskii <eliz@gnu.org>
7945
7946 * msdos.c (internal_terminal_init): Most initializations done only
7947 once, especially initial_screen_colors[] and termscript open.
7948
79492008-08-26 Chong Yidong <cyd@stupidchicken.com>
7950
7951 * eval.c (Fcondition_case): Doc fix.
7952
7953 * widgetprv.h (EmacsFramePart): Change font member to the new font
7954 struct.
7955
7956 * widget.c: Include character.h and font.h for XSETFONT.
7957 (setup_frame_gcs): Compute X font id from font struct, just once.
7958
79592008-08-26 Eli Zaretskii <eliz@gnu.org>
7960
7961 * term.c (get_named_tty): Fix last change.
7962
79632008-08-26 Chong Yidong <cyd@stupidchicken.com>
7964
7965 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 7966 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
7967
79682008-08-25 Eli Zaretskii <eliz@gnu.org>
7969
7970 * frame.c (do_switch_frame): Mark previously displayed frame as
7971 obscured for FRAME_MSDOS_P frames as well.
7972
79732008-08-24 Eli Zaretskii <eliz@gnu.org>
7974
7975 * frame.c (make_terminal_frame): Initialize f->terminal,
7976 f->terminal->reference_count, and scroll bars on MS-DOS as well.
7977 Set the top frame to newly created frame.
7978 (Fmake_terminal_frame): Reuse the_only_display_info.
7979
7980 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
7981 estimating available memory.
7982
b97439ce 79832008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
7984
7985 * nsterm.m (ns_draw_window_cursor): Don't call
7986 NSDisableScreenUpdates and NSEnableScreenUpdates on
7987 non-NS_IMPL_COCOA systems.
7988
79892008-08-23 Andreas Schwab <schwab@suse.de>
7990
7991 * process.c (procfs_system_process_attributes): Fix use of
7992 uninitialized variables.
7993
79942008-08-23 Eli Zaretskii <eliz@gnu.org>
7995
7996 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
7997
7998 * dispnew.c (init_display): Remove MS-DOS specific conditions for
7999 calling tty-set-up-initial-frame-faces.
8000
b8ff72fa
SM
8001 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
8002 Allow MSDOS frames along with X frames.
aac0c6e3
MR
8003
8004 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
8005 addition to output_termcap.
8006
8007 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
8008
8009 * termchar.h (FRAME_TTY): Support output_msdos_raw.
8010 (struct tty_display_info) [MSDOS]: Add fields related to mouse
8011 highlight.
8012
8013 * process.c [!subprocesses]: Define QCname.
8014 (syms_of_process): Intern and staticpro it.
8015
8016 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
8017 Adjust for changes in encoding/decoding routines.
8018 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
8019 encode_coding and decode_coding.
8020
b8ff72fa 8021 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
8022
8023 * dosfns.c: Include frame.h before termhooks.h.
8024 (dos_cleanup): Use CURTTY ()->termscript instead of a global
8025 variable termscript.
8026
8027 * s/msdos.h (USER_FULL_NAME): Define.
8028 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
8029
8030 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
8031 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
8032 pw->pw_gecos.
8033
8034 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
8035 SELECTED_FRAME as additional (1st) argument.
8036 (tty_read_avail_input): Handle output_msdos_raw in
8037 addition to output_termcap.
8038
8039 * msdos.c: Include frame.h before termhooks.h.
8040 (mouse_on, mouse_off, mouse_moveto, mouse_init)
8041 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
8042 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
8043 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
8044 (IT_set_terminal_modes, IT_reset_terminal_modes)
8045 (IT_set_frame_parameters): Use tty->termscript instead of a global
8046 variable termscript.
8047 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
8048 global variable terminal_coding. Don't refer to
8049 Vnonascii_translation_table.
8050 (internal_terminal_init): Set Vwindow_system in current_kboard.
8051 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
8052 Announce date and time of session start, if termscript is open.
8053 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
8054 term.c:init_tty). Open termscript only of not already open.
8055 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
8056 here instead of dos_ttraw. Don't initialize display if this is an
8057 initial tty. Don't set FRAME_FONT.
8058 (Vwindow_system_version): Bump to 23.
8059 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
8060 is available, set up mouse_position_hook.
8061 (dos_ttraw, IT_set_terminal_modes): If called with initial
8062 terminal, do nothing.
8063 (IT_set_frame_parameters): Handle the Qtty_type frame
8064 parameter by calling internal_terminal_init.
8065 (dos_set_window_size, show_mouse_face)
8066 (clear_mouse_face, IT_note_mode_line_highlight)
8067 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
8068 (dos_rawgetc): Use tty_display_info instead of x_display_info.
8069 (initialize_msdos_display): New function.
8070 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
8071 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
8072 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
8073 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 8074 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
8075 (request_sigio, unrequest_sigio): Don't define, now defined on
8076 sysdep.c.
8077 (IT_write_glyphs): Rewrite to use encode_terminal_code.
8078
8079 * term.c [MSDOS]: Include msdos.h.
8080 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
8081 conditional to DOS_NT. Allow only one call to this function in a
8082 session. Don't allocate a new struct tty_display_info; instead,
8083 reuse the_only_display_info. Call get_tty_size to get screen
8084 dimensions. Call init_baud_rate to set bad_rate.
8085 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
8086 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 8087 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
8088 (get_tty_terminal, get_named_tty, Ftty_type)
8089 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
8090 output_termcap.
b8ff72fa
SM
8091 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
8092 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 8093 only when subprocesses are supported.
aac0c6e3
MR
8094
8095 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
8096 f->output_data.x.
8097 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
8098 terminal devices.
8099
5582fbc7 8100 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
8101 x_output.
8102 (FRAME_FONT): Use output_data.tty.
8103 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
8104 (struct x_display_info): Rename from display_info. Update all users in
8105 msdos.c.
aac0c6e3 8106 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 8107 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
8108 (dos_ttraw): Update prototype.
8109
8110 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
8111 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
8112
81132008-08-23 Jason Rumney <jasonr@gnu.org>
8114
8115 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
8116 (fn_TIFFSetDirectory): New library function used.
8117 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
8118 (tiff_load): Use :index to select among multiple images. Set count
8119 property when multiple images exist.
8120 (gif_format): Use :index, not :image.
8121
81222008-08-23 Chong Yidong <cyd@stupidchicken.com>
8123
8124 * xdisp.c (try_scrolling): Check INT_MAX instead of
8125 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
8126 to obtain INT_MAX.
8127
81282008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
8129
8130 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
8131
81322008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
8133
8134 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
8135 GNUstep library location.
8136
81372008-08-21 Chong Yidong <cyd@stupidchicken.com>
8138
8139 * xfaces.c (x_update_menu_appearance): Check validity of menu font
8140 before using it.
8141
8142 * puresize.h (BASE_PURESIZE): Increase to 1250000.
8143
81442008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8145
8146 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
8147 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
8148 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
8149 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
8150 (EmacsApp-cursor_blink_handler): Remove declaration.
8151 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
8152 match 01 Feb 2008 changes in xterm.c.
8153 (ns_read_socket): Add cast to avoid warning.
8154 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
8155 GNUstep.
8156
81572008-08-20 Chong Yidong <cyd@stupidchicken.com>
8158
8159 * xselect.c (x_get_foreign_selection): Return nil if desired
8160 selection could not be obtained, instead of signalling an error.
8161
81622008-08-20 David Reitter <david.reitter@gmail.com>
8163
8164 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
8165 * nsterm.m: Remove ns-specific code for cursor blinking.
8166 (ns_draw_window_cursor): Clear cursor properly rather than
8167 redrawing the area. Respect width of bar cursors.
8168 These changes enable the use of generic blink-cursor-mode and
8169 generic cursor types in NS and support smooth cursor movements (do
8170 not blink off after command).
8171 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
8172 Nextstep, too.
8173
81742008-08-19 Kenichi Handa <handa@m17n.org>
8175
8176 * font.c (Vfont_log_deferred): New variable.
8177 (font_add_log): Check Vfont_log_deferred.
8178 (font_deferred_log): New function.
8179
8180 * font.h (font_deferred_log): Extern it.
8181
8182 * fontset.c (reorder_font_vector): Use encoding charset of fonts
8183 for sorting.
8184 (face_for_char): Use deferred log.
8185
81862008-08-18 Kenichi Handa <handa@m17n.org>
8187
8188 * fontset.c (face_for_char): Add font log.
8189
8190 * font.c (font_add_log): Add the font properties :script, :lang,
8191 and :otf in the log.
8192
81932008-08-17 Chong Yidong <cyd@stupidchicken.com>
8194
8195 * xdisp.c: Remove dead code.
8196 (handle_invisible_prop, next_overlay_string): Defer call to
8197 setup_for_ellipsis.
8198 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
8199
82002008-08-15 Chong Yidong <cyd@stupidchicken.com>
8201
8202 * xfaces.c (lookup_derived_face): Properly handle possible zero
8203 return value of get_lface_attributes.
8204 (merge_faces): Don't tell lookup_derived_face to signal an error
8205 if face is not found.
8206
8207 * dired.c (Fdirectory_files): Doc fix.
8208
8209 * process.c (make_process): Initialize kill_without_query struct
8210 member.
8211
82122008-08-15 Eli Zaretskii <eliz@gnu.org>
8213
8214 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
8215 Alternative calculation of totphys for Visual Studio 6.
8216
8217 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
8218
8219 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
8220 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
8221 All users changed.
8222 (stat): Only root directory passed to GetDriveType. Allow RAM
8223 disk as well as local fixed disk when w32-get-true-file-attributes
8224 is set to `local'.
8225 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
8226 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
8227 (w32_cached_id, w32_add_to_cache): New functions.
8228 (get_name_and_id): Look account names in the cache before calling
8229 lookup_account_sid.
8230 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
8231 New initialization flags.
8232 (globals_of_w32): Initialize them to zero.
8233 (w32_system_process_attributes): Use w32_cached_id and
8234 w32_add_to_cache.
8235
82362008-08-14 Lawrence Mitchell <wence@gmx.li>
8237
8238 * lread.c (Fread_char, Fread_char_exclusive): If no character
8239 event is read before timeout is reached, return nil, rather than
8240 converting to a number.
8241
82422008-08-14 Chong Yidong <cyd@stupidchicken.com>
8243
8244 * fns.c (use_dialog_box): Doc fix.
8245
8246 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
8247 on OS X.
8248
82492008-08-13 Chong Yidong <cyd@stupidchicken.com>
8250
8251 * frame.c (Qns_parse_geometry): New var.
8252 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
8253
82542008-08-11 Chong Yidong <cyd@stupidchicken.com>
8255
8256 * xdisp.c (x_produce_glyphs): Handle the case when font has no
8257 space character in calculating tabs.
8258
82592008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
8260
8261 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
8262
82632008-08-10 Glenn Morris <rgm@gnu.org>
8264
8265 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
8266 silence gcc "limited range of data type" warnings in some
8267 make_fixnum_or_float calls.
8268
82692008-08-09 Eli Zaretskii <eliz@gnu.org>
8270
8271 * w32.c (w32_system_process_attributes): If the process does not
8272 exist, return nil.
8273
8274 * w32.c: Include thelp32.h, psapi.h and coding.h.
8275 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
8276 declarations.
8277 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
8278 (Process32Next_Proc): New typedefs.
8279 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
8280 (g_b_init_process32_next, g_b_init_open_thread_token)
8281 (g_b_init_impersonate_self, g_b_init_revert_to_self)
8282 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
8283 (g_b_init_get_process_working_set_size)
8284 (g_b_init_global_memory_status_ex): New static variables.
8285 (globals_of_w32): Initialize them.
8286 (create_toolhelp32_snapshot, process32_first, process32_next)
8287 (open_thread_token, impersonate_self, revert_to_self)
8288 (get_process_memory_info, get_process_working_set_size)
8289 (global_memory_status, global_memory_status_ex): New wrapper
8290 functions.
8291 (w32_list_system_processes, w32_system_process_attributes)
8292 (enable_privilege, restore_privilege, ltime, process_times):
8293 New functions.
8294 (convert_time_raw): New function.
8295 (convert_time): Remove conversion of FILETIME into time in 100
8296 nsec units, call convert_time_raw instead.
8297
8298 * process.h (w32_list_system_processes, w32_system_process_attributes):
8299 Add prototypes.
8300 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
8301 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
8302 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
8303 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
8304
8305 * process.c (Fsystem_process_attributes): Doc fix.
8306
83072008-08-08 Chong Yidong <cyd@stupidchicken.com>
8308
8309 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
8310 a continued multi-char glyph; if so, advance to the actual glyph.
8311
83122008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
8313
8314 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
8315
8316 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
8317 (.m.o): Use it.
8318 * config.in: Regenerate.
8319
83202008-08-07 Chong Yidong <cyd@stupidchicken.com>
8321
8322 * xdisp.c (redisplay_window): Revert last change.
8323 (try_window): Check bottom scroll margin too.
8324
83252008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8326
8327 * config.in: Regenerate.
8328
8329 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
8330 -list-load-path-shadows'.
8331 (nsgui.h): Reduce number of things depending on it.
8332
83332008-08-06 Chong Yidong <cyd@stupidchicken.com>
8334
8335 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
8336 instead of window-end which does the wrong thing at eob.
8337 (try_cursor_movement): Minor optimization.
8338 (redisplay_window): If scroll margin is defined, don't assume
8339 window doesn't need scrolling.
8340
83412008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8342
8343 * config.in: Regenerate.
8344
8345 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
8346 (mostlyclean): Don't delete *.d under NS.
8347
8348 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
8349
83502008-08-06 Kenichi Handa <handa@m17n.org>
8351
8352 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
8353
83542008-08-06 Andreas Schwab <schwab@suse.de>
8355
8356 * config.in: Regenerate.
8357
83582008-08-05 Chong Yidong <cyd@stupidchicken.com>
8359
8360 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
8361 forcing a window start.
8362
8363 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
8364 (auto_save_1): Update modtime when auto-save-list-file-name is on.
8365
83662008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8367
8368 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
8369 argument.
8370
83712008-08-05 Juanma Barranquero <lekktu@gmail.com>
8372
8373 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
8374 <scroll-down-aggressively, before-change-functions>:
8375 <after-change-functions>: Reflow docstrings.
8376
83772008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8378 Ken Raeburn <raeburn@gnu.org>
8379
8380 Dock menu customization, based on a patch by Ken Raeburn, plus some
8381 other fixes.
8382 * nsmenu.m (dockMenu): New variable.
8383 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
8384
8385 * nsterm.h (dockMenu): Declare.
8386
8387 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
8388 (ns_term_init): Initialize dockMenu.
8389 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
8390 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
8391 left.
8392
8393 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
8394
83952008-08-04 Chong Yidong <cyd@stupidchicken.com>
8396
8397 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
8398
8399 * config.in: Regenerate.
8400
84012008-08-04 Seiji Zenitani <zenitani@mac.com>
8402
8403 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
8404
84052008-08-04 Chong Yidong <cyd@stupidchicken.com>
8406
8407 * nsterm.h (find_and_call_menu_selection): Fix prototype.
8408
84092008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8410
8411 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
8412
8413 * keyboard.h: Comment an #endif.
8414
8415 * lisp.h (have_menus_p): Adjust comment.
8416
8417 * menu.c (find_and_return_menu_selection): Fix comparison with
8418 client_data.
8419
8420 * nsmenu.m (popup_activated_flag): New variable.
8421 (popup_activated): New function.
8422 (menu-or-popup-active-p): New exported lisp definition.
8423 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
8424 when popup done.
8425 (ns_popup_dialog): Set popup_activated_flag.
8426
8427 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
8428 version for GNUstep (handled by conditional typedef in nsterm.m).
8429 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
8430 in rgb.txt).
8431
8432 * process.c (init_process): Use DARWIN_OS, not DARWIN.
8433
8434 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
8435
8436 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
8437
8438 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
8439 shortcircuit if popup_activated like GTK and X toolkit.
8440
8441 * m/inter386.h: Change DARWIN to DARWIN_OS.
8442
8443 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
8444 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
8445 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
8446 comment on NO_SOCK_SIGIO.
8447
84482008-08-03 Chong Yidong <cyd@stupidchicken.com>
8449
8450 * nsterm.m (windowDidResize): Remove stopModal call.
8451
84522008-08-03 Andreas Schwab <schwab@suse.de>
8453
8454 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
8455 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
8456
84572008-08-02 Chong Yidong <cyd@stupidchicken.com>
8458
8459 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
8460 Don't use uninitialized pointer variable when using getrlimit.
8461
84622008-08-02 Jason Rumney <jasonr@gnu.org>
8463
8464 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
8465
84662008-08-02 Eli Zaretskii <eliz@gnu.org>
8467
8468 * alloc.c (NSTATICS): Bump to 0x640.
8469
8470 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
8471
8472 * lisp.h: Add prototype for directory_files_internal.
8473
8474 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
8475 New functions.
8476 (syms_of_process): Defsubr them. Add initializations for various
8477 Q* symbols used in procfs_system_process_attributes.
8478 (procfs_list_system_processes, procfs_system_process_attributes)
8479 [HAVE_PROCFS]: New functions.
8480 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
8481 (procfs_get_total_memory): New functions.
8482
84832008-08-01 Juanma Barranquero <lekktu@gmail.com>
8484
8485 * xfaces.c (Fx_load_color_file): Fix previous change;
8486 it is #ifdef WINDOWSNT, not WINDOWS_NT.
8487
84882008-08-01 Michael Albinus <michael.albinus@gmx.de>
8489
8490 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
8491
84922008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8493
8494 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
8495
84962008-08-01 Chong Yidong <cyd@stupidchicken.com>
8497
8498 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
8499
8500 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
8501 define NSApplicationDelegateReplySuccess.
8502 (EmacsView -converstationIdentifier): Use long instead of
8503 NSInteger for GNUstep, since it doesn't have NSInteger.
8504
8505 * xmenu.c: Revert last change.
8506
8507 * keyboard.h: Fix last change.
8508
85092008-08-01 Juanma Barranquero <lekktu@gmail.com>
8510
8511 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
8512 on Windows.
8513
85142008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8515
8516 Warning clearing and clean-up in NS port.
8517 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
8518 Add prototypes.
8519 * nsgui.h (FACE_DEFAULT): Remove, unused.
8520 (XGCValues): Change colors to unsigned long.
8521 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
8522 nsterm.m.
8523 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
8524 (ns_list_fonts): Remove, unused.
8525 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
8526 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
8527 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
8528 (nsfont_draw): Compare face colors to 0, not nil.
8529 * nsmenu.m (struct widget_value): Drop unneeded declaration.
8530 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
8531 (-addSubmenuWithTitle:): Use NSMenuItem class.
8532 (ns_popup_menu): Use NO, not NULL, for enabled setting.
8533 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
8534 (ns_clip_to_row): Make gc arg a BOOL.
8535 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
8536 ns_clip_to_row() call.
8537 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
8538 used). Cast FRAME_FONT assignments.
8539 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
8540 (ns_string_to_lispmod): Change arg to const char.
8541 (ns_term_init): Use NSMenuItem class.
8542 (EmacsApp -openFile:): Move to different section of file.
8543 (EmacsApp -application:openFiles:): Don't return a value, call
8544 -replyToOpenOrPrint:.
8545 (EmacsView -keyDown:): Fix up cast.
8546 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
8547 (EmacsView -menuDown:): Cast tag in call to
8548 find_and_call_menu_selection().
8549 (ns_list_fonts): Remove, unused.
8550 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
8551 (ns_fontname_to_xlfd): Make static.
8552 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
8553 Remove prototypes (now in keyboard.h).
8554 (next_menubar_widget_id): Remove, unused.
8555 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
8556 Remove prototypes (now in keyboard.h).
8557 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
8558
85592008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
8560
8561 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
8562 (floatfns.o): Depend on syssignal.h.
8563 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
8564
8565 * systty.h: Fix previous change that removed BSD_TERMIOS.
8566 Add comments to #ifdefs.
8567
85682008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8569
8570 * w32fns.c (w32-load-color-file): Remove.
8571 (x-open-connection): Use renamed Fx_load_color_file.
8572 * xfaces.c (x-load-color-file): Add.
8573 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
8574 Emacs.clr.
8575 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
8576
85772008-07-31 Michael Albinus <michael.albinus@gmx.de>
8578
8579 * dbusbind.c (Fdbus_call_method_asynchronously)
8580 (Fdbus_method_error_internal): New defuns.
8581 (xd_read_message): Handle also reply messages.
8582 (Vdbus_registered_functions_table): Extend docstring.
8583
85842008-07-31 Juanma Barranquero <lekktu@gmail.com>
8585
8586 * keyboard.c (gobble_input): Fix previous change.
8587
85882008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8589
8590 * bitmaps/README:
8591 * xfns.c:
8592 * termcap.c:
8593 * term.c:
8594 * syswait.h:
8595 * systty.h:
8596 * systime.h:
8597 * syssignal.h:
8598 * sysdep.c:
8599 * process.h:
8600 * process.c:
8601 * print.c:
8602 * ndir.h:
8603 * lread.c:
8604 * keyboard.c:
8605 * getpagesize.h:
8606 * floatfns.c:
8607 * fileio.c:
8608 * emacs.c:
8609 * doc.c:
8610 * dispnew.c:
8611 * dired.c:
8612 * data.c:
8613 * callproc.c:
8614 * buffer.c:
8615 * README:
8616 * Makefile.in:
8617 * s/template.h:
8618 * s/msdos.h:
8619 * m/vax.h: Remove VMS support.
8620 * s/vms.h:
8621 * vlimit.h:
8622 * uaf.h:
8623 * temacs.opt:
8624 * param.h:
8625 * ioctl.h: Remove file.
8626
86272008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8628
8629 * s/ms-w32.h (MULTI_KBOARD): Remove.
8630 * xterm.c:
8631 * xselect.c:
8632 * xfns.c:
8633 * window.c:
8634 * w32term.c:
8635 * w32fns.c:
8636 * terminal.c:
8637 * termhooks.h:
8638 * term.c:
8639 * sysdep.c:
8640 * keyboard.h:
8641 * keyboard.c:
8642 * frame.h:
8643 * frame.c:
8644 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
8645 * config.in: Regenerate.
8646
86472008-07-30 Jason Rumney <jasonr@gnu.org>
8648
8649 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
8650
8651 * w32font.c (w32font_encode_char): Leave as unicode if in range.
8652 (w32font_open_internal): Get unicode version of textmetrics.
8653 Don't enable or disable glyph indices here.
8654 (w32font_open): Disable use of glyph indices.
8655
8656 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
8657
86582008-07-30 Chong Yidong <cyd@stupidchicken.com>
8659
8660 * minibuf.c (Vread_buffer_function): Doc fix.
8661
86622008-07-30 John Paul Wallington <jpw@pobox.com>
8663
8664 * minibuf.c (read_buffer_completion_ignore_case): New var.
8665 (Fread_buffer): Use it.
8666
86672008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
8668
8669 * systty.h (sensemode): Remove empty #if. Remove reference to
8670 BSD_TERMIOS, unused.
8671
8672 * sysdep.c: Remove reference to DGUX.
8673 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
8674
8675 * config.in: Regenerate.
8676
86772008-07-30 Jason Rumney <jasonr@gnu.org>
8678
8679 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
8680
86812008-07-29 Jason Rumney <jasonr@gnu.org>
8682
8683 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
8684 is populated.
8685 (uniscribe_encode_char): Always use uniscribe.
8686 Avoid using context if cache is populated.
8687
86882008-07-29 Jan Djärv <jan.h.d@swipnet.se>
8689
8690 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
8691 open menu.
8692
8693 * gtkutil.c (menu_nav_ended): Remove.
8694 (create_menus): Remove signal connect for menu_nav_ended.
8695
86962008-07-28 Chong Yidong <cyd@stupidchicken.com>
8697
8698 * xdisp.c (redisplay_window): Check return value of
8699 compute_window_start_on_continuation_line before forcing a window
8700 start.
8701
87022008-07-28 Jason Rumney <jasonr@gnu.org>
8703
8704 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
8705
8706 * w32term.c (w32_enable_unicode_output, cleartype_active):
8707 Remove obsolete display options.
8708 (x_draw_glyph_string_background): Don't use old cleartype_active
8709 workaround.
8710 (w32_initialize): Remove cleartype_active initialization.
8711 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
8712
87132008-07-28 Andreas Schwab <schwab@suse.de>
8714
8715 * lisp.h (init_weak_hash_tables, syms_of_font)
8716 (xd_read_queued_messages, syms_of_dbusbind): Declare.
8717 (remove_hash_entry): Don't declare.
8718 * eval.c (maybe_call_debugger): Make static and move before use.
8719 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
8720 * xdisp.c: Include "gtkutil.h" if USE_GTK.
8721 * xterm.h (x_set_frame_alpha): Declare.
8722
87232008-07-28 Jan Djärv <jan.h.d@swipnet.se>
8724
8725 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
8726 (create_menus): Connect selection-done to menu_nav_ended.
8727
87282008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8729
8730 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
8731 Set Vx_resource_name to a fallback. Replace read of 'buffered'
8732 parameter with read of 'alpha' one.
8733 (Qns_frame_parameter): Remove.
5582fbc7 8734 * nsselect.m (selection-coding-system)
aac0c6e3
MR
8735 (next-selection-coding-system, Vselection_coding_system)
8736 (Vnext_selection_coding_system): Drop.
8737
87382008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8739
8740 * nsfns.m (do-applescript, do_applescript): Rename to
8741 ns-do-applescript, ns_do_applescript, and move within file.
8742
87432008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8744
8745 Remove support for Mac Carbon.
8746 * mactoolbox.c:
8747 * macterm.h:
8748 * macterm.c:
8749 * macselect.c:
8750 * macmenu.c:
8751 * macgui.h:
8752 * macfns.c:
8753 * mac.c: Remove file.
8754 * s/darwin.h:
8755 * m/intel386.h:
8756 * xfaces.c:
8757 * xdisp.c:
8758 * window.c:
8759 * tparam.c:
8760 * termhooks.h:
8761 * termcap.c:
8762 * term.c:
8763 * syssignal.h:
8764 * sysselect.h:
8765 * sysdep.c:
8766 * process.c:
8767 * lread.c:
8768 * lisp.h:
8769 * keyboard.c:
8770 * image.c:
8771 * fringe.c:
8772 * frame.h:
8773 * frame.c:
8774 * fontset.c:
8775 * font.h:
8776 * font.c:
8777 * fns.c:
8778 * fileio.c:
8779 * emacs.c:
8780 * dispnew.c:
8781 * dispextern.h:
8782 * config.in:
8783 * atimer.c:
2ae37cf0 8784 * Makefile.in: Remove code for Carbon.
aac0c6e3 8785
f0131492 87862008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
8787
8788 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
8789
87902008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8791
8792 * macterm.h (kCGBitmapByteOrder32Host): New define for
8793 non-universal SDKs.
8794
8795 * image.c (mac_create_cg_image_from_image, image_load_image_io)
8796 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8797
8798 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
8799 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8800
88012008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
8802
8803 * w32inevt.c: Include dispextern.h.
8804
88052008-07-26 Andreas Schwab <schwab@suse.de>
8806
8807 * print.c (print_object): Fix off-by-one in last change.
8808
88092008-07-25 Juanma Barranquero <lekktu@gmail.com>
8810
8811 * term.c (syms_of_term): Don't initialize default_orig_pair,
8812 default_set_foreground and default_set_background on Windows.
8813
88142008-07-25 Jason Rumney <jasonr@gnu.org>
8815
8816 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
8817 ScriptItemize. Clean up return value checking. Remove unused
8818 variables.
8819 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
8820 shaping engine.
8821
8822 * w32font.c (w32font_has_char): Handle the case where we can't
8823 determine the script for a character.
8824
88252008-07-25 Chong Yidong <cyd@stupidchicken.com>
8826
8827 * term.c (syms_of_term): Initialize default_orig_pair,
8828 default_set_foreground, and default_set_background.
8829
8830 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
8831 clash (bug#86).
8832 (getloadavg): Callers changed.
8833
8834 * image.c (svg_load_image): Fix last change.
8835 (svg_load_image): Use rsvg_handle_get_dimensions to check that
8836 image size is valid. Use g_object_unref instead of deprecated
8837 rsvg_handle_free to free rsvg handle.
8838 (x_from_xcolors): Don't initialize pixmap (silence compiler).
8839
88402008-07-25 Jason Rumney <jasonr@gnu.org>
8841
8842 * w32font.c (w32font_encode_char): Encode characters outside BMP as
8843 surrogates before looking up glyph index.
8844 (w32font_text_extents): Encode as surrogates if falling back to
8845 functions that need UTF-16 wide chars.
8846
8847 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
8848 BMP as surrogates before looking up glyph index.
8849
88502008-07-25 Chong Yidong <cyd@stupidchicken.com>
8851
8852 * image.c (svg_load_image): Check for failure in return value of
8853 rsvg_handle_get_pixbuf. Free rsvg handle when done.
8854
88552008-07-25 Jason Rumney <jasonr@gnu.org>
8856
8857 * w32font.c (Fx_select_font): Reverse sense of second arg.
8858
88592008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
8860
8861 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
8862 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
8863
8864 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
8865 (PURESIZE): Use it.
8866
88672008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
8868
8869 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
8870 * m/alpha.h (TEXT_END):
8871 * m/ibmrs6000.h (TEXT_END):
8872 * m/macppc.h (TEXT_END):
8873 * s/darwin.h (TEXT_END):
8874 * s/msdos.h (TEXT_END): Remove, unused.
8875 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
8876 * s/cygwin.h: Remove comment.
8877
8878 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
8879 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
8880 * m/intel386.h (DOT_GLOBAL_START):
8881 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
8882 (USG): Remove, file not used on USG platforms.
8883
8884 * Makefile.in (HAVE_X11): Remove empty #else.
8885
88862008-07-24 Andreas Schwab <schwab@suse.de>
8887
8888 * fileio.c (Finsert_file_contents): Properly adjust undo list
8889 after format conversion.
8890
88912008-07-24 Jan Djärv <jan.h.d@swipnet.se>
8892
8893 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
8894 (menu_nav_ended): Remove.
8895 (create_menus): Remove signal connect for menu_nav_ended.
8896 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
8897 create_menus.
8898 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
8899
89002008-07-23 Jason Rumney <jasonr@gnu.org>
8901
8902 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
8903 with opened font.
8904 (w32font_open): Set font type to gdi.
8905
8906 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
8907
89082008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
8909
8910 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
8911 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
8912 defines it.
8913 * unexec.c (ADDR_CORRECT): Define unconditionally.
8914
8915 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
8916
8917 * unexec.c: Remove code depending on !COFF and USG, the file is
8918 not used for such systems.
8919
8920 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
8921 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
8922 (LD_SWITCH_SYSTEM_1): Remove, update users.
8923
8924 * s/darwin.h (DATA_END):
8925 * m/intel386.h (DATA_END):
8926 * m/ibmrs6000.h (DATA_END):
8927 * m/alpha.h (DATA_END): Remove, unused.
8928
8929 * config.in: Regenerate.
8930 * s/ms-w32.h (subprocesses): Define unconditionally.
8931 * s/template.h (subprocesses): Update comment.
8932 * s/vms.h (subprocesses):
8933 * s/usg5-4.h (subprocesses):
8934 * s/hpux10-20.h (subprocesses):
8935 * s/gnu-linux.h (subprocesses):
8936 * s/cygwin.h (subprocesses):
8937 * s/bsd-common.h (subprocesses):
8938 * s/aix4-2.h (subprocesses):
8939 * s/darwin.h (subprocesses): Do not define, defined by default now.
8940
8941 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
8942 Remove all references.
8943 (temacs): Add GNUstep specific ld flags.
8944
8945 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
8946 similarly to what X does.
8947
89482008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8949
8950 * nsfns.m (x-list-fonts): Remove.
8951 (syms_of_nsfns): Drop the x-list-fonts declaration.
8952 * nsterm.m: Get rid of remaining "//" comments.
8953
89542008-07-22 Chong Yidong <cyd@stupidchicken.com>
8955
8956 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
8957
8958 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
8959 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
8960 (Fns_own_selection_internal, Fx_disown_selection_internal)
8961 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
8962
8963 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
8964 ... */' style of docstrings. Doc fixes.
8965
89662008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8967
8968 * terminfo.c (UP, BC, PC): Undo previous change.
8969
8970 * nsfns.m: Rename ns prefixed functions/variables to the
8971 corresponding x versions. Update references.
8972
89732008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
8974
8975 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
8976
89772008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8978
8979 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
8980 Remove forwarding functions.
8981 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
8982 non-static.
8983 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
8984 non-static.
8985 (ns_frame_parm_handlers): Use the new names.
8986 (syms_of_nsfns): Move to the end of file.
8987
8988 * nsterm.m (syms_of_nsterm): Move to the end of file.
8989
8990 * dispnew.c (init_display): Remove code for X10.
8991
89922008-07-22 Jason Rumney <jasonr@gnu.org>
8993
8994 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
8995 bare drive.
8996
89972008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8998
8999 * nsterm.m (syms_of_nsterm): Remove debugging println.
9000
90012008-07-22 David Reitter <david.reitter@gmail.com>
9002
9003 * nsfns.m (do_applescript, F_do_applescript): NS version of the
9004 Carbon implementation of the same functionality: execute arbitrary
9005 AppleScript code.
9006
90072008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9008
9009 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
9010 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
9011 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9012 (Fx_display_mm_height, Fx_display_mm_width)
9013 (Fx_display_backing_store, Fx_display_visual_class)
9014 (Fx_display_save_under, Fx_open_connection)
9015 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
9016 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
9017 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
9018 (Fx_display_pixel_width, Fx_display_pixel_height)
9019 (Fx_display_usable_bounds, Fx_display_planes)
9020 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
9021 ... */' style of docstrings.
9022
90232008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
9024
9025 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
9026 on this platform.
9027 (mips):
9028 * m/iris4d.h (mips): Do not define.
9029 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
9030
9031 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
9032
9033 * image.c:
9034 * nsfns.m:
9035 * nsselect.m:
9036 * nsterm.h:
9037 * nsterm.m: Rename ns prefixed functions/variables to the
9038 corresponding x versions. Update references.
9039
9040 * m/ibms390x.h (NO_REMAP): Do not undefine.
9041
9042 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
9043
90442008-07-21 Chong Yidong <cyd@stupidchicken.com>
9045
9046 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
9047 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
9048 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
9049 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
9050 (Fns_display_mm_height, Fns_display_mm_width)
9051 (Fns_display_backing_store, Fns_display_visual_class)
9052 (Fns_display_save_under, Fns_open_connection)
9053 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
9054 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
9055 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
9056 (Fns_display_pixel_width, Fns_display_pixel_height)
9057 (Fns_display_usable_bounds, Fx_display_planes)
9058 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
9059
90602008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
9061
9062 * print.c (print_object): Check print_depth before searching for
9063 circularities.
9064
90652008-07-21 Michael Albinus <michael.albinus@gmx.de>
9066
9067 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
9068 only sprintf.
9069
90702008-07-21 Kenichi Handa <handa@m17n.org>
9071
9072 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
9073
90742008-07-20 Andreas Schwab <schwab@suse.de>
9075
9076 * syntax.c (find_start_pos, find_start_value)
9077 (find_start_value_byte, find_start_begv, find_defun_start)
9078 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
9079
90802008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
9081
9082 * s/sol2-3.h: Insert contents of s/sol2.h.
9083 (LD_SWITCH_SYSTEM): Remove redundant definition.
9084 * s/sol2.h: Remove, unused.
9085
90862008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9087
9088 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
9089
90902008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9091
9092 * Makefile.in (ns_appdir): Fix typo in find command.
9093
90942008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
9095
9096 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
9097
9098 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
9099 added not supported anymore.
9100
9101 * s/usg5-4-2.h (LIBS_SYSTEM):
9102 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
9103
9104 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
9105 * s/lynxos.h (GETPGRP_NO_ARG):
9106 * s/hpux10-20.h (NO_SIOCTL_H):
9107 * s/gnu.h (GETPGRP_NO_ARG):
9108 * s/gnu-linux.h (NO_SIOCTL_H):
9109 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
9110 * s/cygwin.h (GETPGRP_NO_ARG):
9111 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
9112 (C_DEBUG_SWITCH): Remove duplicate definition.
9113
9114 * m/ibms390.h: Remove boilerplate comments.
9115
9116 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
9117
9118 * process.c (HAVE_SERIAL): Consolidate ifdefs.
9119 (wait_reading_process_output): Remove code for SunOS, platform not
9120 supported anymore. Use SOLARIS2 instead of sun.
9121
91222008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9123
9124 * font.c (font_open_by_name): Under NS, default lface height to zero.
9125 (font_open_for_lface): Under NS, set size based on frame fontsize.
9126 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
9127 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
9128
91292008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9130
9131 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
9132 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
9133 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
9134 YES/NO.
9135 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
9136 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
9137 * Makefile.in (clean): Clear out build destination dir.
9138
91392008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9140
9141 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
9142 xterm, xselect.
9143 * lisp.h: Remove declaration of hash_remove.
9144 * nsgui.h: Remove redefinitions of hash_remove.
9145 * fns.c (hash_remove): Rename to hash_remove_from_table.
9146
91472008-07-19 Seiji Zenitani <zenitani@mac.com>
9148
9149 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
9150 strdup() the family UTF8String before modifying it.
9151
91522008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9153
9154 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
9155 NS_FACE_BACKGROUND with 0 instead of nil.
9156 * nsfont.m (nsfont_draw): Same.
9157
91582008-07-19 Chong Yidong <cyd@stupidchicken.com>
9159
9160 * nsfns.m (ns_set_background_color): Fix crash.
9161
91622008-07-18 Chong Yidong <cyd@stupidchicken.com>
9163
9164 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
9165
91662008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
9167
9168 * puresize.h (BASE_PURESIZE): Increase to 1240000.
9169
91702008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9171
9172 * gtkutil.c: Include <config.h> instead of "config.h".
9173
9174 * lisp.h (Foverlay_buffer): Add EXFUN.
9175
9176 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
9177 child process to complete child_setup. Undo 2005-09-21 change.
9178
9179 * s/darwin.h: Mention setsid after vfork.
9180
91812008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9182
9183 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
9184 Depend on macgui.h.
9185
9186 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
9187 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
9188
9189 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
9190 and f19.
9191 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
9192
9193 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
9194 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
9195 Remove enumerators.
9196
9197 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
9198 Check if FACE_FROM_ID returns NULL.
9199
92002008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
9201
9202 * w32inevt.c (change_frame_size): Remove extern declaration.
9203 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
9204 change_frame_size.
9205
92062008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
9207
9208 * getloadavg.c: Revert last change (2008-07-15).
9209
92102008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
9211
9212 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 9213 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
9214 from configure.
9215
92162008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
9217
9218 * s/sol2.h:
9219 * s/sol2-4.h: Reorganize conditionals.
9220
9221 * ecrt0.c: Remove code depending on m68000, not used anymore.
9222
9223 * fns.c (hash_remove): Make static.
9224 * lisp.h (hash_remove): Don't prototype.
9225
9226 * m/ibmrs6000.h:
9227 * m/ibms390x.h:
9228 * m/macppc.h: Remove boilerplate comments.
9229
9230 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
9231 Solaris, which does not need them.
9232
9233 * m/vax.h: Remove comments about unsupported systems.
9234
9235 * s/darwin.h: Reorganize ifdefs.
9236
92372008-07-17 Andreas Schwab <schwab@suse.de>
9238
9239 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
9240
92412008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
9242
9243 Use SDATA. Follow coding convention of placing operators at
9244 beginning of next line rather than end of previous line, and placing
9245 spaces around infix operators.
9246
9247 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
9248 in case it was defined already.
9249 USE @GNUSTEP_MAKEFILES@ rather than envvars.
9250 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
9251 ns_default.
9252 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
9253 Lisp_Objects.
9254 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
9255 (ns_defined_color, ns_color_to_lisp): Declare.
9256 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
9257 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
9258 it's accepted even with USE_LISP_UNION_TYPE.
9259 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
9260 (update_frame_tool_bar): Remove apparently obsolete tests for
9261 non-integerness of f->tool_bar_lines.
9262 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
9263 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
9264 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
9265 (nsfont_open): Don't confuse NULL for Qnil.
9266 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
9267 * menu.h (find_and_call_menu_selection):
9268 * menu.c (find_and_call_menu_selection): Use just int for vector size.
9269 (find_and_return_menu_selection): Always return something.
9270 * frame.h: Include dispextern.h for Display_Info.
9271 (display_x_get_resource): Declare.
9272
92732008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
9274
9275 * syntax.c: Remove stdio.h include accidentally introduced in
9276 Emacs.app commit.
9277 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
9278 NS_IMPL_COCOA.
9279 * keyboard.c (handle_async_input, input_available_signal): Remove
9280 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
9281
92822008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
9283
9284 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
9285 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
9286 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
9287 Use SDATA.
9288
9289 * keymap.c: Remove all NS-specific code.
9290 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
9291 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
9292 where_is_preferred_modifier, return a different value depending on how
9293 preferred is the binding.
9294 (where_is_internal): Adjust accordingly.
9295 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
9296 Adjust to new preferred_sequence_p.
9297 (syms_of_keymap): Declare `where-is-preferred-modifier'.
9298 * keyboard.c (parse_solitary_modifier): Not static any more.
9299 * keyboard.h (parse_solitary_modifier): Declare.
9300
93012008-07-16 Andreas Schwab <schwab@suse.de>
9302
9303 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
9304 of easymenu.
9305
93062008-07-16 Chong Yidong <cyd@stupidchicken.com>
9307
9308 * xdisp.c (move_it_in_display_line): Account for word wrap, so
9309 that we don't move off the line.
9310
93112008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
9312
9313 * keyboard.c (Qsuper): Remove.
9314 (parse_menu_item): Don't call where_is_internal specially for NS.
9315
93162008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
9317
9318 * s/gnu-linux.h: Remove boilerplate comments.
9319
9320 * m/alpha.h (__ELF__): Consolidate conditions.
9321
9322 * m/m68k.h (linux): Use GNU_LINUX instead.
9323 Remove boilerplate comments.
9324
9325 * m/intel386.h: Undo refactoring from previous change.
9326 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
9327 too, remove dead code.
9328 (linux): Use GNU_LINUX instead.
9329
93302008-07-16 Jason Rumney <jasonr@gnu.org>
9331
9332 * w32gui.h: Repeat 26 June changes lost by last change.
9333
93342008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
9335
9336 * systty.h: Remove code for Aix on 386, unsupported platform.
9337
9338 * s/ms-w32.h: Remove boilerplate comments.
9339 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
9340
9341 * s/gnu-linux.h (TERM): Remove support.
9342 (HAVE_SYSVIPC): Remove, unused.
9343 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
9344 for this system.
9345
9346 * process.c: Remove support for IRIS, unused.
9347 Remove support for TERM, not relevant anymore.
9348
9349 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
9350 used with the definition.
9351
9352 * s/aix4-2.h (static): Do not undef.
9353
9354 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
9355 only used on Aix.
9356 (HAVE_SYSVIPC): Remove, unused.
9357
9358 * m/hp800.h (CANNOT_DUMP): Do not undef.
9359
9360 * m/alpha.h: Fix comment.
9361
9362 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
9363 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
9364 used by this configuration.
9365 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
9366 * unexec.c: Remove code depending on HPUX and
9367 USG_SHARED_LIBRARIES, not used with this file. Remove code
9368 depending on IRIS, unused. Remove if 0-ed code.
9369
9370 * s/template.h: Remove comments about static.
9371
9372 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
9373 Remove if 0-ed code.
9374 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
9375 were the same as the default.
9376 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
9377 Remove boilerplate comments.
9378 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
9379 (HAVE_SYSVIPC): Remove, unused.
9380 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
9381
9382 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9383 Remove boilerplate comments.
9384 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9385 Remove boilerplate comments.
9386 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9387 Remove boilerplate comments.
9388 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
9389
9390 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
9391 USG systems which do not use DATA_SEG_BITS.
9392 Refactor code. Remove boilerplate comments.
9393
9394 * m/ibms390.h:
9395 * m/m68k.h:
9396 * s/bsd-common.h:
9397 * s/cygwin.h:
9398 * s/darwin.h:
9399 * s/freebsd.h:
9400 * s/gnu.h:
9401 * s/msdos.h: Remove boilerplate comments.
9402
9403 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 9404 do not use this file.
aac0c6e3
MR
9405 (IRIS_4D): Remove, unused.
9406
9407 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 9408 do not use this file.
aac0c6e3
MR
9409 (SIGN_EXTEND_CHAR):
9410 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
9411 * unexmips.c: Remove file, unused.
9412
9413 * editfns.c (Fuser_full_name): Replace the only use of
9414 USER_FULL_NAME with its value.
9415 * config.in: Regenerate.
9416
94172008-07-16 David Reitter <david.reitter@gmail.com>
9418
9419 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
9420 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
9421
94222008-07-16 Glenn Morris <rgm@gnu.org>
9423
9424 * emacs.c (system-type): Doc fix.
9425
94262008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
9427
9428 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
9429 If the cache doesn't work, let's fix it, rather than work around it.
9430
94312008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9432
9433 * Makefile.in: Correct additions for nsfont.o in last commit.
9434 * nsfont.m: New file (forgot last commit).
9435
94362008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
9437
9438 * callproc.c (set_initial_environment): Initialize
9439 Vprocess_environment under CANNOT_DUMP (fixes crash when
9440 batch-compiling for bootstrap).
9441
94422008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
9443 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9444
9445 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
9446 fix crash due to different init order.
9447
94482008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9449
9450 Changes and additions for NeXTstep windowing system (Cocoa and
9451 GNUstep) support.
9452
9453 * Makefile.in:
9454 * config.in: Support defines and build commands for NS port.
9455 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
9456 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
9457 * dispextern.h: Include nsgui.h and add needed typedefs under NS
9458 windowing.
9459 (struct face): Add synth_ital field.
9460 * dispnew.c: Include nsterm.h when compiling under NS windowing.
9461 (init_display): Initialize Vinitial_window_system to "ns" when so
9462 compiled.
9463 * emacs.c: Include GSConfig.h when compiling under GNUstep.
9464 (display_arg): Use under NS.
9465 (main): Under NS, allocate autorelease pool and handle command line
9466 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
9467 (standard_args): Add NS-specific args.
9468 (shut_down_emacs): Shut down NS terminal if compiled under NS.
9469 * font.c (DEFAULT_ENCODING): New variable.
9470 (font_find_for_lface): Use it.
9471 (syms_of_font): Load syms_of_nsfont under NS.
9472 * font.h: Declare nsfont_driver when compiled under NS.
9473 * fontset.c: When compiling under NS, include nsterm.h.
9474 (fontset_from_font): Autoconstruct fontset under NS.
9475 * frame.c (various): Under NS, include nsterm.h, add Qns window system
9476 symbol, document and use it.
9477 (do_switch_frame): When for_deletion under Cocoa, add
9478 Fraise_frame(Qnil).
9479 (x_set_frame_parameters): Ensure font attribute changes are picked up.
9480 (x_get_arg): Allow "yes" and "no" as boolean values.
9481 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
9482 Qright under Cocoa.
9483 (focus-follows-mouse): Default to 0 under NS.
9484 * frame.h (enum output_method): Add output_ns.
9485 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
9486 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
9487 (FRAME_WINDOW_P): NS-specific definition.
9488 * fringe.c (max_used_fringe_bitmap): Make public.
9489 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
9490 (getloadavg): Use NeXT code under descendant OS's.
9491 * image.c (includes and header section, x_create_bitmap_from_data)
9492 (x_create_bitmap_from_file, free_bitmap_record, image_background)
9493 (image_background_transparent, x_clear_image_1)
9494 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
9495 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
9496 (x_to_xcolors, x_from_xcolors, x_disable_image)
9497 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
9498 other GUIs, including XPM support using code originally written for
9499 Carbon GUI.
9500 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
9501 using NS API.
9502 (image_ascent): Use font metrics macros instead of direct struct field
9503 access.
9504 * keyboard.c (includes): Add nsterm.h when compiling under NS.
9505 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
9506 Also, handle NS as GTK for menu bar purposes.
9507 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
9508 toolkit where they differ.
9509 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
9510 use cachelist, still needed under NS.
9511 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
9512 (struct widget_value): Define it here for menu.c.
9513 * keymap.c (includes): Include modifier internals.
9514 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
9515 NS.
9516 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
9517 support for preferring sequences using certain modifiers, specified by
9518 the FIRSTONLY argument.
9519 * lisp.h (hash_remove): Rename to avoid name clash when compiling
9520 under NS GNUstep implementation.
9521 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
9522 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
9523 * menu.c: Include nsterm.h under NS.
9524 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
9525 (free_menubar_widget_tree_value, update_submenu_strings)
9526 (find_and_call_menu_selection): Treat NS as X and NT.
9527 (find_and_return_menu_selection): New function, used for popup menus.
9528 * nsgui.h:
9529 * nsterm.h:
9530 * nsfns.m:
9531 * nsimage.m:
9532 * nsmenu.m:
9533 * nsselect.m:
9534 * nsterm.m: New files.
9535 * process.c (wait_reading_process_output): Under NS, call ns_select()
9536 instead of plain select().
9537 * syntax.c (char_quoted): Under NS, avoid a crash when called near
9538 beginning of buffer.
9539 * sysselect.h (init_process): Rename when compiling under Cocoa to
9540 avoid name conflict.
9541 * termhooks.h (display_info): Add ns_display_info to union.
9542 * terminal.c (Fterminal_live_p): Add ns to terminal types.
9543 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
9544 COCOA environment.
9545 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
9546 unexec() signature. (Note, this will dump, but the resulting file
9547 crashes; unexosx is used instead; keeping around for reference and
9548 possible aid in getting dump working under GNUstep.)
9549 * w32gui.h (button_type, widget_value): Remove definitions (now in
9550 keyboard.h).
9551 * window.c: Include nsterm.h when compiling under NS.
9552 * xdisp.c (includes): Include nsterm.h when compiling under NS.
9553 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
9554 other GUI windowing systems.
9555 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
9556 GTK.
9557 (x_consider_frame_title): Under NS, set icon type and frame
9558 modified-state indicator; use ns_set_name_as_filename() when using
9559 formatted title.
9560 (update_window_cursor): Make public when compiling under NS.
9561 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
9562 (hourglass_atimer, Vhourglass_delay
9563 * xfaces.c (header section, init_frame_faces, clear_font_table)
9564 (defined_color, unload_color, x_face_list_fonts)
9565 (prepare_face_for_display): Add NS support parallel to other GUIs.
9566 Emulate GCs like other non-X GUIs.
9567 (split_font_name): Don't lowercase font name under NS.
9568 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
9569 under NS.
9570 * s/darwin.h: Add support for compilation under NS.
9571
95722008-07-15 Jason Rumney <jasonr@gnu.org>
9573
9574 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
9575 (w32_show_hourglass): Rename from show_hourglass.
9576 (w32_hide_hourglass): Rename from hide_hourglass.
9577 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
9578 (Vhourglass_delay): Declare extern.
9579 (hourglass_started): Remove.
9580
9581 * xdisp.c (Vhourglass_delay): Remove static.
9582 (hourglass_started, start_hourglass, cancel_hourglass):
9583 Don't include these versions on WINDOWSNT.
9584
95852008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9586
9587 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
9588 variables (formerly in xfns.c).
9589 (show_hourglass, hide_hourglass): New prototypes (same).
9590 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
9591 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
9592 in xfns.c).
9593 (syms_of_xdisp): Declare/initialize display-hourglass,
9594 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
9595 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
9596 formerly in xfns.c.
9597 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9598 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9599 (start_hourglass, cancel_hourglass): Remove.
9600 (show_hourglass, hide_hourglass): Remove prototypes and static
9601 modifiers.
9602 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
9603 hourglass_atimer, hourglass_shown_p declaration/initialization.
9604 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9605 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9606 (start_hourglass, cancel_hourglass): Remove.
9607 (show_hourglass, hide_hourglass): Remove prototypes and static
9608 modifiers.
9609 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
9610 hourglass_atimer, hourglass_shown_p declaration/initialization.
9611 * w32fns.c (display_hourglass_p, Vhourglass_delay)
9612 (DEFAULT_HOURGLASS_DELAY): Remove.
9613 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
9614 hourglass_shown_p declaration/initialization.
9615
96162008-07-14 Jason Rumney <jasonr@gnu.org>
9617
9618 * w32fns.c (w32_get_arg): Remove wrapper function.
9619 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
9620 directly.
9621 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
9622
96232008-07-14 Kenichi Handa <handa@m17n.org>
9624
9625 * xfont.c (xfont_open): Add workaround for X's bug.
9626
96272008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9628
9629 * fontset.c: Include <stdio.h> unconditionally.
9630
96312008-07-13 Michael Albinus <michael.albinus@gmx.de>
9632
9633 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
9634 for filtering.
9635
96362008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
9637
9638 * s/vms.h: Use __GNUC__ instead of _GNUC_.
9639
9640 * m/macppc.h:
9641 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
9642
9643 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
9644 (SPECIAL_EMACS_INT):
9645 * m/ia64.h (SPECIAL_EMACS_INT):
9646 * m/amdx86-64.h (SPECIAL_EMACS_INT):
9647 * s/gnu.h (NLIST_STRUCT):
9648 * s/aix4-2.h (X11R5_INHIBIT_I18N):
9649 * s/gnu-linux.h (LINUX):
9650 * s/msdos.h (HAVE_FACES):
9651 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
9652
9653 * systty.h:
9654 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
9655 anymore.
9656
96572008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
9658
9659 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
9660 always defined as int.
9661
9662 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
9663 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
9664 * s/gnu-linux.h (HAVE_WAIT_HEADER):
9665 * s/freebsd.h (HAVE_WAIT_HEADER):
9666 * s/bsd-common.h (HAVE_UNION_WAIT):
9667 * s/aix4-2.h (HAVE_WAIT_HEADER):
9668 * m/mips.h (HAVE_UNION_WAIT):
9669 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
9670 (COFF, static): Do not define, they are undefined later in the file.
9671
9672 * process.c (update_status): Don't use a union.
9673 (status_convert):
9674 (sigchld_handler): Use int instead of WAITTYPE.
9675
96762008-07-12 Chong Yidong <cyd@stupidchicken.com>
9677
9678 * indent.c (Fvertical_motion): Restore hscroll before moving to
9679 goal column.
9680
96812008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9682
9683 * lisp.h: Remove left over code.
9684
96852008-07-11 Andreas Schwab <schwab@suse.de>
9686
9687 * lisp.h: Fix logic in last change.
9688
9689 * menu.h: New file.
9690 * menu.c: Include it.
9691 * xmenu.c: Likewise.
9692 * Makefile.in: Update dependencies.
9693
96942008-07-11 Kenichi Handa <handa@m17n.org>
9695
9696 * fontset.c (fontset_from_font): Cancel the previous change.
9697
96982008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9699
9700 * lisp.h:
9701 * w32heap.c:
9702 * emacs.c:
9703 * alloc.c: Replace all references of NO_UNION_TYPE with
9704 USE_LISP_UNION_TYPE.
9705
9706 * m/xtensa.h (NO_UNION_TYPE):
9707 * m/vax.h (NO_UNION_TYPE):
9708 * m/template.h (NO_UNION_TYPE):
9709 * m/sparc.h (NO_UNION_TYPE):
9710 * m/mips.h (NO_UNION_TYPE):
9711 * m/macppc.h (NO_UNION_TYPE):
9712 * m/m68k.h (NO_UNION_TYPE):
9713 * m/iris4d.h (NO_UNION_TYPE):
9714 * m/intel386.h (NO_UNION_TYPE):
9715 * m/ibms390x.h (NO_UNION_TYPE):
9716 * m/ibms390.h (NO_UNION_TYPE):
9717 * m/ibmrs6000.h (NO_UNION_TYPE):
9718 * m/ia64.h (NO_UNION_TYPE):
9719 * m/hp800.h (NO_UNION_TYPE):
9720 * m/arm.h (NO_UNION_TYPE):
9721 * m/amdx86-64.h (NO_UNION_TYPE):
9722 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
9723 defining it the same.
9724
97252008-07-10 Chong Yidong <cyd@stupidchicken.com>
9726
9727 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
9728
97292008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9730
9731 * fileio.c:
50426a04 9732 * sysdep.c:
aac0c6e3
MR
9733 * systty.h:
9734 * m/ibmrs6000.h:
9735 * m/iris4d.h:
9736 * s/aix4-2.h:
9737 * s/freebsd.h:
9738 * s/gnu-linux.h:
9739 * s/hpux10-20.h:
9740 * s/hpux11.h:
9741 * s/netbsd.h:
9742 * s/sol2-3.h:
9743 * s/sol2-4.h:
9744 * s/sol2.h:
9745 * s/usg5-4.h:
9746 * s/vms.h: Remove references to unused variables.
9747
97482008-07-10 Andreas Schwab <schwab@suse.de>
9749
9750 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
9751 pattern before matching the generic family.
9752
97532008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9754
9755 * unexec.c:
9756 * s/vms.h:
9757 * s/usg5-4-2.h:
9758 * s/sol2-5.h:
9759 * s/freebsd.h:
9760 * s/darwin.h: Remove dead code.
9761
9762 * m/template.h:
9763 * m/sparc.h:
9764 * m/mips.h:
9765 * m/m68k.h:
9766 * m/iris4d.h:
9767 * m/intel386.h:
9768 * m/ibms390x.h:
9769 * m/ibms390.h:
9770 * m/ia64.h:
9771 * m/hp800.h:
9772 * m/arm.h:
9773 * m/amdx86-64.h: Remove dead code and references to unused
9774 and compiler defined symbols.
9775
9776 * unexmips.c:
9777 * unexelf.c: Remove references to desupported systems.
9778
9779 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
9780
9781 * m/powermac.h: Remove boilerplate comments.
9782 (NO_REMAP): Remove unused definition.
9783
9784 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
9785 define them.
9786
97872008-07-10 Kenichi Handa <handa@m17n.org>
9788
9789 * xfont.c (xfont_open): Log the reason of failure.
9790
97912008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
9792
9793 * fontset.c (fontset_get_font_group):
9794 * font.c (font_check_otf): Specify argument types.
9795
97962008-07-09 Kenichi Handa <handa@m17n.org>
9797
9798 * coding.c (detect_coding_utf_8): Set detect_info->found only when
9799 non-ASCII char is found.
9800
9801 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
9802 (reorder_font_vector): Change the arg preferred_family to font.
9803 Prefer the spec matching with font.
9804 (fontset_get_font_group): New function.
9805 (fontset_find_font): Change the format of an element of a realized
9806 fontset. Use fontset_get_font_group.
9807 (fontset_font): Try the current fontset, the default fontset, the
9808 fallbacks of the current fontset, and the fallbacks of the default
9809 fontset in this order.
9810 (face_for_char): Delete the shortcut to use the current font.
9811 (fontset_from_font): Don't set fonts for Latin in the fontset.
9812
9813 * font.h (font_make_object, font_match_p): Adjust prototypes.
9814
9815 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
9816
9817 * font.c (font_make_object): New arg entity and pixelsize.
9818 (font_check_otf_features, font_check_otf): New functions.
9819 (font_match_p): Check :lang, :script, and :otf properties.
9820
9821 * xfont.c (xfont_open): Adjust it for the change of
9822 font_make_object.
9823 (xfont_text_extents): Fix initial setting of metrics.
9824
9825 * ftfont.c (struct ftfont_info): New member index, delete member
9826 fc_charset_idx. Make the member order compatible with struct
9827 xftfont_info.
9828 (fc_charset_table): Change charset names to registry names.
9829 (ftfont_pattern_entity): Delete the args registry and
9830 fc_charset_idx. Change the value of :font-entity property
9831 to (FONTNAME . INDEX). Always set :registry property to
9832 `iso10646-1'.
9833 (struct ftfont_cache_data): New struct.
9834 (ftfont_lookup_cache): New arg for_face.
9835 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
9836 (ftfont_driver): Set the member otf_capability.
9837 (ftfont_get_charset): Adjust it for the change of
9838 fc_charset_table.
9839 (OTF_TAG_SYM): New macro.
9840 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
9841 for the change of fc_charset_table.
9842 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
9843 ftfont_pattern_entity. Add FC_INDEX to objset.
9844 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
9845 and ftfont_pattern_entity.
9846 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
9847 font_make_object, struct ftfont_info.
9848 (ftfont_has_char): Use ftfont_get_fc_charset.
9849 (ftfont_otf_features, ftfont_otf_capability): New functions.
9850 (ftfont_shape): Use ftfont_get_otf.
9851 (ftfont_text_extents): Fix initial setting of metrics.
9852
9853 * xftfont.c (struct xftfont_info): New member ft_size. Make the
9854 member order compatible with struct ftfont_info.
9855 (xftfont_open): Add FC_CHARSET to the pattern. Set
9856 xftfont_info->ft_size. Don't unlock the face. Check BDF
9857 properties if appropriate.
9858 (xftfont_close): Unlock the face.
9859 (xftfont_anchor_point, xftfont_shape): Deleted.
9860 (syms_of_xftfont): Don't set members anchor_point and shape of
9861 xftfont_driver.
9862
9863 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
9864 font_make_object.
9865
9866 * w32font.c (w32font_open): Adjust it for the change of
9867 font_make_object.
9868 (w32font_open_internal): Don't set properties of font_object here.
9869
98702008-07-08 Chong Yidong <cyd@stupidchicken.com>
9871
9872 * macfns.c (x_create_tip_frame):
9873 * w32fns.c (x_create_tip_frame):
9874 * xfns.c (x_create_tip_frame): Pass parameter argument to
9875 face-set-after-frame-default.
9876
9877 * xfaces.c (Finternal_merge_in_global_face): Save merged
9878 attributes for the default face back into the face vector.
9879
98802008-07-08 Andreas Schwab <schwab@suse.de>
9881
9882 * fontset.h: Declare fontset_from_font. Don't declare
9883 new_fontset_from_font and fontset_from_font_name.
9884 * xterm.c: Include "fontset.h".
9885 * Makefile.in (xterm.o): Update dependencies.
9886
98872008-07-08 Glenn Morris <rgm@gnu.org>
9888
9889 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
9890 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
9891
98922008-07-07 Chong Yidong <cyd@stupidchicken.com>
9893
9894 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
9895 (x_set_frame_parameters): Don't bind it.
9896
98972008-07-07 Juanma Barranquero <lekktu@gmail.com>
9898
9899 * w32fns.c (map_w32_filename): Declare extern.
9900
99012008-07-07 Jason Rumney <jasonr@gnu.org>
9902
9903 * w32term.c (WS_EX_LAYERED): Define if not already.
9904
99052008-07-06 Chong Yidong <cyd@stupidchicken.com>
9906
9907 * xfaces.c (set_font_frame_param): Don't try to set the font
9908 parameter if it is still unspecified in the lface.
9909
99102008-07-05 Chong Yidong <cyd@stupidchicken.com>
9911
9912 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
9913 face if it didn't already exist.
9914
9915 * xdisp.c (try_window_id): Give up if word-wrapping is on.
9916
99172008-07-05 Andreas Schwab <schwab@suse.de>
9918
9919 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
9920
99212008-07-05 Chong Yidong <cyd@stupidchicken.com>
9922
9923 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
9924 word-wrapping.
9925 (IT_DISPLAYING_WHITESPACE): New macro.
9926 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
9927 when word-wrapping. Simplify word-wrapping logic. Use correct
9928 pixel positions when saving copies of the iterator.
9929 (display_line): Use proper wrap point if the last character on a
9930 line was preceded by whitespace.
9931
99322008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
9933
9934 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
9935
99362008-07-04 Kenichi Handa <handa@m17n.org>
9937
9938 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
9939
9940 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
9941
99422008-07-02 Jason Rumney <jasonr@gnu.org>
9943
9944 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 9945 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
9946
9947 * xdisp.c (next_element_from_display_vector): Move assignment out
9948 of if statement.
9949
99502008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
9951
9952 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
9953
9954 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
9955 (syms_of_fileio): Initialize and export them.
9956 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
9957
9958 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
9959 (Fsystem_move_file_to_trash): New function.
9960 (syms_of_w32fns): Export it to lisp.
9961
99622008-07-01 Jason Rumney <jasonr@gnu.org>
9963
9964 * w32font.c (w32font_text_extents): Don't count overhang as part
9965 of width.
9966
99672008-06-30 Miles Bader <miles@gnu.org>
9968
9969 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
9970 Add `avoid_cursor_p' field.
9971
9972 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
9973 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
9974 (append_glyph, append_composite_glyph, produce_image_glyph)
9975 (append_stretch_glyph): Initialize avoid_cursor_p.
9976 (get_it_property): Rename from `get_line_height_property'.
9977 (x_produce_glyphs): Use get_it_property.
9978 (handle_line_prefix, push_display_prop): New functions.
9979 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
9980 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
9981 New variables.
9982 (syms_of_xdisp): Initialize them.
9983
99842008-06-30 Kenichi Handa <handa@m17n.org>
9985
9986 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
9987 XftDefaultSubstitute (they are called in XftFontMatch).
9988 (xftfont_open): Fix args to ftfont_font_format.
9989
9990 * ftfont.c (fc_charset_table): New member lang.
9991 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 9992 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
9993 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
9994 (ftfont_open): Fix args to ftfont_font_format.
9995 (ftfont_font_format): New arg filename.
9996
99972008-06-30 Chong Yidong <cyd@stupidchicken.com>
9998
9999 * xfaces.c (Finternal_merge_in_global_face): If default face was
10000 modified, realize it again. Update the font face attribute.
10001
100022008-06-29 Jason Rumney <jasonr@gnu.org>
10003
10004 * w32term.c (x_set_frame_alpha): Fix logic.
10005
100062008-06-29 Kenichi Handa <handa@m17n.org>
10007
10008 * fontset.c (Finternal_char_font): Return font-object instead of
10009 font-name.
10010
10011 * composite.c (get_composition_id): Fix the width calculation for TAB.
10012
100132008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
10014
10015 * indent.c (Fvertical_motion): Properly handle float column arg.
10016
100172008-06-28 Jason Rumney <jasonr@gnu.org>
10018
10019 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
10020 (pfnSetLayeredWindowAttributes): New function pointer.
10021 (w32_initialize): Initialize it when supported.
10022 (x_set_frame_alpha): New function.
10023
10024 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
10025 (w32_frame_parm_handlers): Set alpha handler.
10026
10027 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
10028
100292008-06-27 Jason Rumney <jasonr@gnu.org>
10030
10031 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
10032 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
10033 (w32_to_x_charset, x_to_w32_charset)
10034 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
10035 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
10036 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
10037 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
10038 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
10039 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
10040 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
10041 (Qw32_charset_unicode): Remove.
10042 (syms_of_w32fns): Update for above changes.
10043
10044 * w32font.c (w32_to_x_charset, x_to_w32_charset)
10045 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
10046 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
10047 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
10048 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
10049 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
10050 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
10051 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
10052 (syms_of_w32font): Update for above changes.
10053
100542008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
10055
10056 * s/usg5-4.h: Fix previous change: keep the correct branch of a
10057 removed #if.
10058 (USG_SHARED_LIBRARIES): Remove duplicate definition.
10059
100602008-06-26 Juanma Barranquero <lekktu@gmail.com>
10061 Eli Zaretskii <eliz@gnu.org>
10062
10063 * makefile.w32-in (LOCAL_FLAGS):
10064 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
10065
10066 * sysdep.c (_spawnlp, _getpid):
10067 Declare with explicit _cdecl instead of _CRTAPI1.
10068
10069 * editfns.c (Fget_internal_run_time):
10070 Check for WINDOWSNT with #ifdef, not #if.
10071
100722008-06-26 Jason Rumney <jasonr@gnu.org>
10073
10074 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
10075
10076 * w32term.c (x_draw_glyph_string_foreground)
10077 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
10078 Use FONT_HANDLE macro.
10079 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
10080
10081 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
10082 (uniscribe_encode_char): Use FONT_HANDLE macro.
10083
10084 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
10085 (w32font_text_extents): Use precast w32_font.
10086 (w32font_close): Free cached metrics.
10087 (w32font_open_internal): Allocate space for name on stack.
10088
100892008-06-26 Chong Yidong <cyd@stupidchicken.com>
10090
10091 * xdisp.c (extend_face_to_end_of_line): Fix last change.
10092
100932008-06-26 Jason Rumney <jasonr@gnu.org>
10094
10095 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
10096 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
10097
100982008-06-26 Juanma Barranquero <lekktu@gmail.com>
10099
10100 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
10101
101022008-06-26 Jason Rumney <jasonr@gnu.org>
10103
10104 * w32bdf.c, w32bdf.h: Remove obsolete files.
10105
10106 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
10107
10108 * w32gui.h: Don't include w32bdf.h.
10109 (XCharStruct, enum w32_char_font_type, W32FontStruct):
10110 Remove obsolete font support.
10111
10112 * w32font.h (struct w32font_info): Remove compat_w32_font.
10113 Add hfont member.
10114 (FONT_COMPAT): Remove obsolete macro.
10115
10116 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
10117 (w32font_encode_char, w32font_text_extents): Use new hfont member.
10118 (w32font_open_internal): Remove compat code. Set new hfont member.
10119 (Fx_select_font): Use new hfont member.
10120
10121 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
10122 (uniscribe_encode_char): Use new hfont member.
10123
10124 * w32term.c (x_draw_glyph_string_foreground)
10125 (x_draw_composite_glyph_string_foreground): Use new hfont member.
10126 (x_draw_glyph_string): Use metrics in w32font_info.
10127
101282008-06-26 Kenichi Handa <handa@m17n.org>
10129
10130 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
10131
101322008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
10133
10134 * unexnext.c:
10135 * m/ews4800.h:
10136 * m/hp9000s300.h:
10137 * m/ibm370aix.h:
10138 * m/mips-siemens.h:
10139 * m/ncr386.h:
10140 * m/next.h:
10141 * m/pmax.h:
10142 * m/powerpcle.h:
10143 * m/tandem-s2.h:
10144 * s/386bsd.h:
10145 * s/bsd386.h:
10146 * s/bsd4-1.h:
10147 * s/bsd4-2.h:
10148 * s/bsdos2-1.h:
10149 * s/bsdos2.h:
10150 * s/bsdos3.h:
10151 * s/bsdos4.h:
10152 * s/nextstep.h:
10153 * s/ultrix4-3.h:
10154 * s/usg5-0.h:
10155 * s/usg5-2-2.h:
10156 * s/usg5-2.h:
10157 * s/usg5-4-3.h:
10158 * s/ux4800.h:
10159 * s/uxpds.h:
10160 * s/uxpv.h: Remove support for obsolete systems.
10161 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 10162 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
10163 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
10164 Remove, insert contents in s/aix4-2.h.
10165 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
10166 * s/bsd4-3.h: Rename to ...
10167 * s/bsd-common.h: ... this.
10168 * data.c:
10169 * doc.c:
10170 * ecrt0.c:
10171 * emacs.c:
10172 * fileio.c:
10173 * floatfns.c:
10174 * keyboard.c:
10175 * mem-limits.h:
10176 * print.c:
10177 * process.c:
10178 * sysdep.c:
10179 * syssignal.h:
10180 * systty.h:
10181 * syswait.h:
10182 * term.c:
10183 * unexec.c:
10184 * unexelf.c:
10185 * unexhp9k800.c:
10186 * m/hp800.h:
10187 * m/ibmrs6000.h:
10188 * m/mips.h:
10189 * m/vax.h:
10190 * s/darwin.h:
10191 * s/freebsd.h:
10192 * s/gnu.h:
10193 * s/ms-w32.h:
10194 * s/msdos.h:
10195 * s/netbsd.h:
10196 * s/template.h: Remove references to obsolete variables.
10197
10198 * Makefile.in: Add dependencies for all unexec files.
10199 (admindir): Remove unused variable.
10200 (UNEXEC_SRC): Remove references.
10201
102022008-06-25 Chong Yidong <cyd@stupidchicken.com>
10203
10204 * xfns.c (x_default_font_parameter): If Xft is available, first
10205 try Monospace-12 for the default font.
10206
102072008-06-25 Jason Rumney <jasonr@gnu.org>
10208
10209 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
10210
102112008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
10212
10213 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
10214
10215 * buffer.c (syms_of_buffer): Remove default-word-wrap.
10216
102172008-06-25 Juanma Barranquero <lekktu@gmail.com>
10218
10219 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
10220 <scroll-conservatively>: Fix typo in docstring.
10221
10222 * xselect.c (Fx_send_client_event): Doc fix.
10223
102242008-06-25 Kenichi Handa <handa@m17n.org>
10225
10226 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
10227
10228 * font.c (font_parse_fcname): Remove unused variables.
10229 (font_sort_entites): Delete the arg SPEC. Caller changed.
10230 Fix for the case of ! best_only.
10231 (font_delete_unmatched): Check DPI and AVGWIDTH too.
10232
10233 * lisp.h (Fstring_to_unibyte): EXFUN it.
10234
10235 * character.h (str_to_unibyte): Extern it.
10236
10237 * character.c (str_to_unibyte): New function.
10238
10239 * fns.c (Fstring_to_unibyte): New function.
10240 (syms_of_fns): Defsubr it.
10241
102422008-06-24 Kenichi Handa <handa@m17n.org>
10243
10244 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
10245 DPI too.
10246 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
10247
102482008-06-24 Andreas Schwab <schwab@suse.de>
10249
10250 * Makefile.in (${lispsource}loaddefs.el): Rename from
10251 ../lisp/loaddefs.el.
10252 (bootstrap-clean): Do what distclean does but don't remove
10253 Makefile.
10254 (distclean): Depend on bootstrap-clean and remove Makefile.
10255
102562008-06-24 Chong Yidong <cyd@stupidchicken.com>
10257
10258 * buffer.h (struct buffer): New member word_wrap.
10259
10260 * buffer.c (syms_of_buffer): New variables default-word-wrap and
10261 word-wrap.
10262 (init_buffer_once): Initialize them.
10263
10264 * dispextern.h (struct it): Replace bool truncate_lines_p with a
10265 line_wrap enum possessing three possible values.
10266
10267 * termopts.h: Replace truncate_partial_width_windows with
10268 Vtruncate_partial_width_windows.
10269
10270 * dispnew.c (direct_output_for_insert): Avoid direct output when
10271 inserting a space with word wrap on.
10272
10273 * indent.c (compute_motion): Obey integer values of
10274 truncate-partial-width-windows.
10275
10276 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
10277 replacing truncate_partial_width_windows.
10278 (init_iterator): If Vtruncate_partial_width_windows is an integer,
10279 truncate only if the window width is below that integer.
10280 (start_display, resize_mini_window, produce_stretch_glyph)
10281 (display_string, move_it_in_display_line_to): Use line_wrap.
10282 (back_to_previous_visible_line_start, reseat_1): Reset
10283 string_from_display_prop_p.
10284 (display_line): Extend default face to end of line when wrapping.
10285
102862008-06-24 Kim F. Storm <storm@cua.dk>
10287
10288 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
10289 to wrap continued lines at word boundaries.
10290
102912008-06-24 Jason Rumney <jasonr@gnu.org>
10292
10293 * font.c (Ffont_face_attributes): Multiply pixel size before point
10294 conversion to avoid multiplying rounding error.
10295
102962008-06-23 Jason Rumney <jasonr@gnu.org>
10297
10298 * w32term.c (x_draw_glyph_string_background)
10299 (x_draw_glyph_string): Remove old bdf font code.
10300
10301 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
10302
103032008-06-22 Kenichi Handa <handa@m17n.org>
10304
10305 * font.c (font_find_for_lface): Try the adstyle specified in
10306 the property of LFACE_FONT of LFACE (if any).
10307
103082008-06-21 Seiji Zenitani <zenitani@mac.com>
10309 Ryo Yoshitake <ryo@shiftmode.net>
10310
10311 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
10312
103132008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
10314
10315 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
10316 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
10317 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
10318 (witness-emacs): Remove.
10319 (lisp, shortlisp): Move loaddefs.el earlier.
10320 (mostlyclean): Forget about witness-emacs.
10321
103222008-06-22 Glenn Morris <rgm@gnu.org>
10323
10324 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
10325 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
10326
103272008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
10328
10329 * Makefile.in (PRECOMP): Remove.
10330 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
10331 (witness-emacs): Run `compile-first'.
10332 (.el.elc): Use the new compile-onefile target.
10333
103342008-06-21 Kenichi Handa <handa@m17n.org>
10335
10336 * xftfont.c (xftfont_open): Handle QCembolden only when
10337 FC_EMBOLDEN is defined.
10338
103392008-06-21 Andreas Schwab <schwab@suse.de>
10340
10341 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
10342 (.el.elc): Likewise.
10343
103442008-06-21 Miles Bader <miles@gnu.org>
10345
10346 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
10347 build dir, not the lisp source dir.
10348
103492008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
10350
10351 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
10352 (bootstrapclean): Remove.
10353 (.el.elc): New rule.
10354 (PRECOMP): New var.
10355 (../lisp/subdirs.el): Remove.
10356 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
10357 (witness-emacs): New target.
10358 (mostlyclean): Remove witness-emacs as well.
10359 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
10360 Add witness-emacs dependency.
10361
103622008-06-20 Chong Yidong <cyd@stupidchicken.com>
10363
10364 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
10365 defined by the font.
10366
103672008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10368
10369 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
10370 (bootstrap-clean): New target that keeps TAGS around.
10371 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
10372 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
10373
103742008-06-20 Jason Rumney <jasonr@gnu.org>
10375
10376 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
10377 Remove obsolete font code.
10378
10379 * w32font.c (font_matches_spec): Use csb bitfield from font signature
10380 to determine language support.
10381
103822008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10383
10384 * sysdep.c (cfsetspeed): New fun extracted from the code.
10385 (cfmakeraw): Move before first use.
10386
103872008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
10388
10389 * sysdep.c (cfmakeraw): Provide fallback implementation.
10390 (serial_configure): Provide fallback implementation of cfsetspeed.
10391
103922008-06-20 Kenichi Handa <handa@m17n.org>
10393
10394 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
10395 the pattern.
10396
10397 * fontset.c (fontset_from_font): Copy font_spec before changing
10398 the elements.
10399
10400 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
10401
104022008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10403
10404 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
10405 for explicit `font' parameters.
10406
10407 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
10408
104092008-06-19 Kenichi Handa <handa@m17n.org>
10410
10411 * frame.c: Include <ctype.h>.
10412 (x_set_font_backend): Allow spacing characters in the X resource
10413 for FontBackend.
10414
104152008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
10416
10417 * w32fns.c, xfns.c (Qfont_param): New var.
10418 (syms_of_w32fns): Initialize it.
10419 (x_default_font_parameter): Record explicit `font' into
10420 `font-parameter'.
10421
104222008-06-18 Kenichi Handa <handa@m17n.org>
10423
10424 * font.c (font_parse_xlfd): Fix previous change.
10425 (font_parse_fcname): Don't use :fc-unknown-spec.
10426 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
10427 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
10428 (font_add_log): Prepend the driver name to the resulting fonts.
10429
10430 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
10431 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
10432 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
10433
10434 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
10435 (QCembolden): New variables.
10436 (syms_of_xftfont): DEFSYM them.
10437 (xftfont_open): Call XftFontMatch. Don't trust the result of
10438 XftTextExtents8 if the pixel_size is less than 5.
10439
104402008-06-18 Andreas Schwab <schwab@suse.de>
10441
10442 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
10443 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
10444
104452008-06-18 Jason Rumney <jasonr@gnu.org>
10446
10447 * w32font.c (w32font_list, w32font_match): Add logging.
10448
10449 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
10450
104512008-06-17 Chong Yidong <cyd@stupidchicken.com>
10452
10453 * font.c (font_parse_fcname): Store divider characters for
10454 unknown-spec list. For known key symbols, intern using correct
10455 symbol name.
10456
104572008-06-17 Kenichi Handa <handa@m17n.org>
10458
10459 * xfaces.c (realize_default_face): If the frame is not on window
10460 system, set the fontset of face to nil.
10461
104622008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10463
10464 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
10465
104662008-06-16 Juanma Barranquero <lekktu@gmail.com>
10467
10468 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
10469 (build_font_name_from_vector): Delete externs.
10470
10471 * xfaces.c (struct font_name): Don't declare.
10472
104732008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
10474
10475 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
10476
104772008-06-16 Chong Yidong <cyd@stupidchicken.com>
10478
10479 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
10480
104812008-06-16 Juanma Barranquero <lekktu@gmail.com>
10482
10483 * font.c (Ffont_spec): Fix usage in docstring.
10484 (Ffont_face_attributes): Doc fix.
10485
104862008-06-16 Andreas Schwab <schwab@suse.de>
10487
10488 * font.c (Ffont_face_attributes): Fix definition.
10489
104902008-06-16 Jason Rumney <jasonr@gnu.org>
10491
10492 * font.h (font_style_symbolic_from_value): Remove.
10493
10494 * font.c (font_style_symbolic_from_value): Remove.
10495 (font_style_symbolic): Revert to pre 2008-06-13 version.
10496
10497 * w32font.c (w32_to_fc_weight): New function.
10498 (w32font_full_name, logfont_to_fcname): Use it.
10499
105002008-06-16 Kenichi Handa <handa@m17n.org>
10501
10502 * font.c (font_check_object): Delete it.
10503 (font_clear_cache): Check if a font-object is alive.
10504 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
10505 font-object to nil.
10506 (font_close_object): Don't check FONT_CLOSE_OBJECT.
10507 (font_at): Don't call font_check_object.
10508 (Ffont_get): Return a symbol for :weight, :slant, and :width.
10509
105102008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
10511
10512 * puresize.h (BASE_PURESIZE): Increase to 1230000.
10513
105142008-06-16 Chong Yidong <cyd@stupidchicken.com>
10515
10516 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
10517
105182008-06-15 Chong Yidong <cyd@stupidchicken.com>
10519
10520 * font.c (font_parse_fcname): Only one decimal point.
10521 (font_unparse_fcname): Handle data in family and foundry indices
10522 as symbols, not strings.
10523 (font_unparse_gtkname, Ffont_face_attributes): New functions.
10524
10525 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
10526
10527 * font.h (font_unparse_gtkname): Add prototype.
10528
105292008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10530
10531 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
10532
105332008-06-15 Andreas Schwab <schwab@suse.de>
10534
10535 * font.c (font_update_drivers): Fix crash when no drivers match.
10536
105372008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
10538
10539 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
10540 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
10541
105422008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
10543
10544 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
10545
105462008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
10547
10548 * process.c (Fserial_process_configure, Fprocess_send_eof):
10549 Use EQ to compare Lisp_Objects.
10550
105512008-06-13 Jason Rumney <jasonr@gnu.org>
10552
10553 * w32fns.c (Fw32_select_font): Remove old font API function.
10554
10555 * w32font.c (logfont_to_fcname): New function.
10556 (Fx_select_font): New font dialog function compatible with
10557 GTK/fontconfig version.
10558
10559 * font.c (font_style_symbolic_from_value): New function.
10560 (font_style_symbolic): Use it.
10561
10562 * font.h (font_style_symbolic_from_value): Declare new function.
10563
105642008-06-13 Juanma Barranquero <lekktu@gmail.com>
10565
10566 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
10567 <font-width-table>: Fix typos in docstrings.
10568
105692008-06-13 Daniel Engeler <engeler@gmail.com>
10570
10571 These changes add serial port access.
10572 * process.c: Add HAVE_SERIAL.
10573 (Fdelete_process, Fprocess_status, Fset_process_buffer)
10574 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
10575 (list_processes_1, select_wrapper, Fstop_process)
10576 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
10577 (status_notify): Modify to handle serial processes.
10578 [HAVE_SERIAL] (Fserial_process_configure)
10579 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
10580 New functions.
10581 * process.h (struct Lisp_Process): Add `type'.
10582 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
10583 New functions.
10584 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
10585 serial ports.
b71ac3dd 10586 (serial_open, serial_configure): New functions.
aac0c6e3
MR
10587 * w32.h: Add FILE_SERIAL.
10588 (struct _child_process): Add ovl_read, ovl_write.
10589
105902008-06-13 Kenichi Handa <handa@m17n.org>
10591
10592 * dispextern.h (enum lface_attribute_index): New member
10593 LFACE_FOUNDRY_INDEX.
10594
10595 * font.c (font_score): Delete arg alternate_families. Check only
10596 weight, slant, width, and size. Ignore the difference of alias
10597 style symbols.
10598 (font_sort_entites): Adjust for the above change. Reflect the
10599 order of font-driver to scores.
10600 (font_list_entities): Don't check alternate_familes here.
10601 (font_clear_prop): Handle foundry.
10602 (font_update_lface): Don't parse "foundry-family" form here.
10603 Handle FONT_FOUNDRY_INDEX.
10604 (font_find_for_lface): Likewise. Handle alternate families here.
10605 If registry is nil, try iso8859-1 and ascii-0.
10606 (font_open_for_lface): Pay attention to size in ENTITY.
10607 (font_open_by_name): Simplify by calling font_load_for_lface.
10608 (free_font_driver_list): Delete it.
10609 (font_update_drivers): Preserve the order of backends.
10610 (syms_of_font): Setting of sort_shift_bits adjusted for the change
10611 of font_score and font_sort_entites.
10612 (font_update_sort_order): Likewise.
10613
10614 * xfaces.c (LFACE_FOUNDRY): New macro.
10615 (check_lface_attrs): Check foundry.
10616 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
10617 (merge_face_vectors): Check foundry.
10618 (merge_face_ref): Likewise.
10619 (Finternal_set_lisp_face_attribute): Likewise.
10620 (x_update_menu_appearance): Likewise.
10621 (Finternal_get_lisp_face_attribute): Likewise.
10622 (lface_hash): Likewise.
10623 (lface_same_font_attributes_p): Likewise.
10624 (x_supports_face_attributes_p): Likewise.
10625 (tty_supports_face_attributes_p): Likewise.
10626 (Finternal_set_alternative_font_family_alist): Intern strings.
10627 (Finternal_set_alternative_font_registry_alist): Downcase strings.
10628 (realize_default_face): Set LFACE_FOUNDRY (lface).
10629
10630 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
10631 font-driver at first.
10632
10633 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
10634
106352008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10636
10637 * lread.c (Fload): Use xfree, not free on saved_doc_string.
10638
106392008-06-12 Jim Meyering <meyering@redhat.com>
10640
10641 Make unexec_free handle NULL the same way free does.
10642 * unexmacosx.c (unexec_free): Ignore a NULL argument.
10643
106442008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
10645
10646 * character.h (CHAR_TO_BYTE_SAFE): New macro.
10647 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
10648 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
10649 (WEAK_ALIAS): Simplify.
10650 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
10651 when searching a unibyte buffer.
10652
106532008-06-12 Chong Yidong <cyd@stupidchicken.com>
10654
10655 * xfns.c (Fx_select_font): Rename from x-font-dialog.
10656
106572008-06-12 Juanma Barranquero <lekktu@gmail.com>
10658
10659 * w32font.c: Include ctype.h.
10660
106612008-06-11 Jason Rumney <jasonr@gnu.org>
10662
10663 * w32font.c (w32font_encode_char): Detect missing glyphs that are
10664 misreported as space.
10665 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
10666 as aliases for registry iso10646-1.
10667
106682008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
10669
10670 * buffer.c (clone_per_buffer_values): Skip `name'.
10671
106722008-06-11 Chong Yidong <cyd@stupidchicken.com>
10673
10674 * font.c (font_parse_fcname): Fix last change; accept decimal
10675 points in font size.
10676
106772008-06-10 Jason Rumney <jasonr@gnu.org>
10678
10679 * w32uniscribe.c (add_opentype_font_name_to_list):
10680 Skip non unicode fonts.
10681
106822008-06-10 Chong Yidong <cyd@stupidchicken.com>
10683
10684 * xfns.c (Fx_font_dialog): New function.
10685
10686 * gtkutil.c (xg_dialog_response_cb): Rename from
10687 xg_file_response_callback.
10688 (pop_down_dialog): Rename from pop_down_file_dialog.
10689 (xg_get_file_name): Callers changed.
10690 (xg_get_font_name): New function.
10691
10692 * gtkutil.h (xg_get_font_name): Insert prototype.
10693
106942008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10695
10696 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
10697 x_underline_minimum_display_offset.
10698 (syms_of_xdisp): Declare it here rather than in xterm.c.
10699 * dispextern.h (underline_minimum_offset): Declare it.
10700 * w32term.c (x_draw_glyph_string): Use it.
10701 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
10702 (syms_of_xterm): Don't declare it any more.
10703 (x_draw_glyph_string): Adjust to the new name.
10704
8719abec 107052008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
10706
10707 * xterm.c (x_underline_minimum_display_offset): New var.
10708 (x_draw_glyph_string): Use it.
10709 (syms_of_xterm): Declare it.
10710
107112008-06-10 Chong Yidong <cyd@stupidchicken.com>
10712
10713 * font.c (font_parse_fcname): Accept GTK-style font names too.
10714
107152008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10716
10717 * dired.c (file_name_completion): Don't return t if the match is exact
10718 but with different capitalization.
10719 * minibuf.c (Ftry_completion): Simplify.
10720
10721 * window.c (Vwindow_point_insertion_type): New var.
10722 (set_window_buffer): Use it.
10723 (syms_of_window): Init and export it to Lisp.
10724
107252008-06-10 Kenichi Handa <handa@m17n.org>
10726
10727 * font.h (font_intern_prop): Prototype adjusted.
10728
10729 * font.c (font_intern_prop): New arg force_symbol.
10730 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
10731 Adjust for the change of font_intern_prop.
10732
10733 * ftfont.c (ftfont_pattern_entity):
10734 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
10735 (w32_registry):
10736 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
10737 the change of font_intern_prop.
10738
107392008-06-09 Juanma Barranquero <lekktu@gmail.com>
10740
10741 * w32menu.c (digest_single_submenu): Declare extern.
10742
107432008-06-09 Jason Rumney <jasonr@gnu.org>
10744
10745 * w32term.c (x_make_frame_visible): Use alternate restore flags.
10746
10747 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
10748 (parse_single_submenu): Remove.
10749 (digest_single_submenu): Remove.
10750 (syms_of_w32menu): Don't initialise variables that have moved
10751 to menu.c.
10752 (set_frame_menubar): Sync with version in xmenu.c.
10753 (w32_menu_show): Sync with xmenu_show in xmenu.c.
10754
10755 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
10756 Make static again.
10757
107582008-06-09 Jason Rumney <jasonr@gnu.org>
10759
10760 Changes to w32 files related to the move of common menu code
10761 to menu.c on 2008-06-08 by Chong Yidong.
10762
10763 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
10764 defs to w32gui.h.
10765 (single_keymap_panes, push_menu_item, push_menu_pane):
10766 Make globally visible.
10767
10768 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
10769 (local_free, malloc_widget_value, free_widget_value)
10770 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
10771 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
10772 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
10773 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
10774 (menu_items, menu_items_allocated, menu_items_used)
10775 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
10776 (init_menu_items, finish_menu_items, discard_menu_items)
10777 (grow_menu_items, push_submenu_start, push_submenu_end)
10778 (push_left_right_boundary, push_menu_pane, push_menu_item)
10779 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
10780 (free_menubar_widget_tree_value, parse_single_submenu)
10781 (update_submenu_strings): Remove functions.
10782 (xmalloc_widget_value): Remove and declare extern.
10783
10784 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
10785 (OBJ1): Build it.
10786
10787 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
10788 (local_heap, local_alloc, local_free, malloc_widget_value)
10789 (free_widget_value): Define here.
10790
107912008-06-09 Kenichi Handa <handa@m17n.org>
10792
10793 * font.h (Qascii_0): Extern it.
10794
10795 * font.c (Qascii_0): New variable.
10796 (syms_of_font): DEFSYM it.
10797 (font_open_by_name): If the registry "iso8859-1" fails, try also
10798 "ascii-0".
10799
10800 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
10801
108022008-06-08 Kenichi Handa <handa@m17n.org>
10803
10804 * .gdbinit (xfont): New command.
10805
108062008-06-08 Andreas Schwab <schwab@suse.de>
10807
10808 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
10809 * Makefile.in (menu.o): Update dependencies.
10810
10811 * Makefile.in (obj): Always add menu.o.
10812 * emacs.c (main): Always call syms_of_menu.
10813 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
10814
108152008-06-08 Chong Yidong <cyd@stupidchicken.com>
10816
10817 * Makefile.in: Compile menu.c.
10818
10819 * lisp.h: Declare syms_of_menu.
10820
10821 * emacs.c (main): Call syms_of_menu.
10822
10823 * keyboard.h: Relocate platform-independent menu definitions from
10824 xmenu.c.
10825
10826 * menu.c: New file. Relocate platform-independent menu
10827 definitions from xmenu.c. Suggested by Adrian Robert.
10828
10829 * xmenu.c: Remove platform-independent menu definitions.
10830 (menu_items menu_items_inuse, menu_items_allocated)
10831 (menu_items_used, menu_items_n_panes)
10832 (menu_items_submenu_depth): Move to keyboard.h.
10833 (init_menu_items, finish_menu_items, unuse_menu_items)
10834 (discard_menu_items, restore_menu_items, save_menu_items)
10835 (grow_menu_items, push_submenu_start, push_submenu_end)
10836 (push_left_right_boundary, push_menu_pane, push_menu_item)
10837 (keymap_panes, single_keymap_panes, single_menu_item)
10838 (list_of_panes, list_of_items, find_and_call_menu_selection)
10839 (xmalloc_widget_value, free_menubar_widget_value_tree)
10840 (parse_single_submenu, digest_single_submenu)
10841 (update_submenu_strings): Move to menu.c.
10842
108432008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
10844
10845 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
10846
108472008-06-06 Miles Bader <miles@gnu.org>
10848
10849 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
10850 face, not frame default.
10851
108522008-06-05 Martin Rudalics <rudalics@gmx.at>
10853
10854 * window.c (pop_up_windows, pop_up_frames)
10855 (display_buffer_reuse_frames, Vpop_up_frame_function)
10856 (Vdisplay_buffer_function, Veven_window_heights)
10857 (Vspecial_display_buffer_names, Vspecial_display_regexps)
10858 (Vspecial_display_function, Vsame_window_buffer_names)
10859 (Vsame_window_regexps, split_height_threshold)
10860 (Vsplit_window_preferred_function): Move those vars to window.el.
10861 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
10862 (Fdisplay_buffer): Move those functions to window.el.
10863 (syms_of_window): Remove corresponding declarations.
10864 (display_buffer): New function.
10865 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
10866 * dispnew.c (Flast_nonminibuf_frame): New function.
10867 * buffer.c (Fpop_to_buffer): Move to window.el.
10868
108692008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10870
10871 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
10872
108732008-06-05 Kenichi Handa <handa@m17n.org>
10874
10875 * coding.c (detect_coding): Fix previous change.
10876 (detect_coding_system): Likewise.
10877
108782008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10879
10880 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
10881
10882 * keymap.c (Vminibuffer_local_filename_must_match_map):
10883 Rename from Vminibuffer_local_must_match_filename_map.
10884 (syms_of_keymap):
10885 * minibuf.c (Fcompleting_read): Adjust accordingly.
10886 * commands.h: Rename declaration as well.
10887
108882008-06-05 Kenichi Handa <handa@m17n.org>
10889
10890 * font.c (Ffont_spec): Don't use font_parse_family_registry for
10891 family name.
10892 (Ffont_put): Likewise.
10893
10894 * fontset.c (fontset_find_font): Call font_open_for_lface with the
10895 current font-spec.
10896
10897 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
10898 is unspecified.
10899
10900 * xfaces.c (realize_x_face): If the font-related face attributes
10901 are the same as those of default face, realize a new fontset from
10902 default->fontset.
10903 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
10904
109052008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10906
10907 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
10908 (move_it_in_display_line): New wrapper.
10909
10910 * window.c (window_scroll_pixel_based_preserve_x)
10911 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
10912 (window_scroll_pixel_based, window_scroll_line_based):
10913 Use them to preserve column positions.
10914 (syms_of_window): Initialize them.
10915
10916 * indent.c (Fvertical_motion): Extend first arg to allow passing an
10917 (HPOS . VPOS) pair.
10918
10919 * dispextern.h (move_it_in_display_line): Declare.
10920
109212008-06-05 Juanma Barranquero <lekktu@gmail.com>
10922
10923 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
10924 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
10925 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
10926
109272008-06-04 Juanma Barranquero <lekktu@gmail.com>
10928
10929 * window.c (Fset_window_parameter): Doc fix.
10930 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
10931
109322008-06-04 Joakim Verona <joakim@verona.se>
10933
10934 * window.h (struct window): Add new member window_parameters.
10935
10936 * window.c (Fwindow_parameters, Fwindow_parameter)
10937 (Fset_window_parameter): New defuns.
10938 (syms_of_window): Defsubr the new defuns.
10939 (make_window): Initialize window_parameters to nil.
10940
109412008-06-04 John Paul Wallington <jpw@pobox.com>
10942
10943 * eval.c (Fdefmacro): Doc fix.
10944
109452008-06-04 Kenichi Handa <handa@m17n.org>
10946
10947 * coding.c (detect_coding): Fix handling of coding->head_ascii.
10948 Be sure to call setup_coding_system when we find a proper coding system.
10949 (detect_coding_system): Fix handling of coding->head_ascii.
10950
109512008-06-03 Andreas Schwab <schwab@suse.de>
10952
10953 * font.c (font_prop_validate_spacing): Fix last change.
10954
109552008-06-03 Kenichi Handa <handa@m17n.org>
10956
10957 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
10958 (font_parse_fcname): Fix handling of unknown key.
10959
10960 * xfont.c (xfont_list): Try an alias.
10961
10962 * charset.c (char_charset): Return NULL if the arg charset_list is
10963 specified and C doesn't belong to any of them.
10964
109652008-06-02 Chip Coldwell <coldwell@redhat.com>
10966
10967 * font.c (font_pixel_size): Don't take cdr of an integer.
10968
109692008-06-02 Jim Meyering <meyering@redhat.com>
10970
10971 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
10972 * alloc.c (xfree): Return right away for a NULL arg.
10973 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
10974 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
10975 * mac.c (create_apple_event_from_event_ref): Likewise.
10976 (create_apple_event_from_drag_ref, cfstring_create_normalized):
10977 Likewise.
10978 * doprnt.c (doprnt1): Likewise.
10979 * frame.c (frame): Likewise.
10980 * keyboard.c (wipe_kboard): Likewise.
10981 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
10982 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
10983 * term.c (tty_default_color_capabilities, maybe_fatal)
10984 (delete_tty): Likewise.
10985 * w16select.c (string): Likewise.
10986 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
10987 * w32bdf.c (w32_free_bdf_font): Likewise.
10988 * w32fns.c (w32_unload_font): Likewise.
10989 * w32font.c (w32font_close): Likewise.
10990 * window.c (size_window): Likewise.
10991 * xselect.c (receive_incremental_selection): Likewise.
10992 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
10993 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
10994 * w32.c (stat): Likewise.
10995
10996 Remove useless if-before-free tests.
10997 * editfns.c (Fset_time_zone_rule): Likewise.
10998 * lread.c (nosuffix): Likewise.
10999 * ralloc.c (get_bloc): Likewise.
11000 * regex.c (reg_free): Likewise.
11001 * xftfont.c (xftfont_open, xftfont_close): Likewise.
11002 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
11003 * xsmfns.c (smc_save_yourself_CB): Likewise.
11004
110052008-06-02 Kenichi Handa <handa@m17n.org>
11006
11007 * font.c (font_find_for_lface): Handle float font size.
11008 (font_open_for_lface): Likewise.
11009
11010 * xfaces.c (x_supports_face_attributes_p): Check face->font before
11011 comparing the properties.
11012
110132008-06-01 Jason Rumney <jasonr@gnu.org>
11014
11015 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
11016 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
11017 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
11018 Don't add empty script list.
11019 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
11020
110212008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
11022
11023 * Makefile.in (dot, dotdot): Remove, update users.
11024 ".." has been used elsewhere in the file for a long time.
11025 (LIBXT_STATIC): Remove conditional based on unused variable.
11026
110272008-06-01 Miles Bader <miles@gnu.org>
11028
11029 * xfaces.c (Vface_remapping_alist): New variable.
11030 (syms_of_xfaces): Initialize it.
11031 (enum named_merge_point_kind): New type.
11032 (struct named_merge_point): Add `named_merge_point_kind' field.
11033 (push_named_merge_point): Make cycle detection respect different
11034 named-merge-point kinds.
11035 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
11036 Remove face-name alias resolution.
11037 (lface_from_face_name): New definition using
11038 `lface_from_face_name_no_resolve'.
11039 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
11040 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
11041 (get_lface_attributes): New definition that layers face-remapping on
11042 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
11043 (lookup_basic_face): New function.
11044 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
11045 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
11046 `get_lface_attributes'.
11047 (face_at_buffer_position): Use `lookup_basic_face' to lookup
11048 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
11049 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
11050
11051 * xdisp.c (init_iterator): Pass base_face_id through
11052 `lookup_basic_face' when we actually use it as a face-id.
11053 (handle_single_display_prop): Use `lookup_basic_face' to lookup
11054 DEFAULT_FACE_ID.
11055
11056 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
11057 lookup the initial face-id.
11058
11059 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
11060
110612008-06-01 Juanma Barranquero <lekktu@gmail.com>
11062
11063 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
11064 (Fremove_text_properties): Fix typos in docstrings.
11065
110662008-05-31 Kenichi Handa <handa@m17n.org>
11067
11068 * font.c (font_list_entities): Fix the car part of data to be
11069 stored in the cache.
11070
11071 * ftfont.c (ftfont_font_format): Don't use strcasestr.
11072
110732008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
11074
11075 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
11076 Add a `test' argument so another predicate than `equal' can be used.
11077 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
11078 (map_char_table): Remove unused vars `c' and `i'.
11079 * lisp.h (Foptimize_char_table): Adjust declaration.
11080 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
11081
110822008-05-30 Kenichi Handa <handa@m17n.org>
11083
11084 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
11085 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
11086 defined.
11087
110882008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
11089
11090 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
11091 (Fmake_variable_frame_local): Disallow mixing buffer-local and
11092 frame-local settings for the same variable.
11093
110942008-05-30 Kenichi Handa <handa@m17n.org>
11095
11096 * fontset.c (Ffont_info): Move to font.c.
11097 (syms_of_fontset): Delete defsubr of Sfont_info.
11098
11099 * font.c (font_style_to_value, font_score): Delete casting of the
11100 args to xstcasecmp.
11101 (register_font_driver): Increment num_font_drivers only when
11102 registering the driver globally.
11103 (Ffont_info): Move from fontset.c. Handle a font object too.
11104 (syms_of_font): Defsubr Sfont_info.
11105
111062008-05-29 Kenichi Handa <handa@m17n.org>
11107
11108 * coding.h (enum define_coding_utf8_arg_index): New enum.
11109 (enum coding_attr_index): Change coding_attr_utf_16_bom to
11110 coding_attr_utf_bom.
11111 (enum utf_bom_type): Rename from utf_16_bom_type.
11112 (struct utf_16_spec): Adjust for the above change.
11113 (struct coding_system): Add utf_8_bom in `spec' union.
11114
11115 * coding.c (CODING_UTF_8_BOM): New macro.
11116 (enum coding_category): Delete coding_category_utf_8, add
11117 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
11118 coding_category_utf_8_sig.
11119 (CATEGORY_MASK_UTF_8): Delete it.
11120 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
11121 (CATEGORY_MASK_UTF_8_SIG): New macros.
11122 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
11123 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
11124 CATEGORY_MASK_UTF_8_SIG.
11125 (CATEGORY_MASK_UTF_8): New macro.
11126 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
11127 (detect_coding_utf_8): Check BOM.
11128 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
11129 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
11130 (encode_coding_utf_16): Likewise.
11131 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
11132 (detect_coding, detect_coding_system): Handle utf-8-auto.
11133 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
11134 (syms_of_coding): Fix setting up of Vcoding_category_table.
11135
111362008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
11137
11138 * process.c (Faccept_process_output): If `millisec' is non-nil,
11139 `seconds' default to 0.
11140 (wait_reading_process_output): Also return non-nil if we read output
11141 from a non-running process.
11142
111432008-05-29 Jason Rumney <jasonr@gnu.org>
11144
11145 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
11146 `raster' specified.
11147 (add_font_entity_to_list): Allow non-opentype truetype fonts back
11148 in the uniscribe backend, but disallow any font that has no
11149 unicode subrange support.
11150
111512008-05-29 Juanma Barranquero <lekktu@gmail.com>
11152
11153 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
11154 Fix typos in docstrings.
11155
111562008-05-29 Kenichi Handa <handa@m17n.org>
11157
11158 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
11159 (Fx_family_fonts): Set frame correctly.
11160
111612008-05-28 Jason Rumney <jasonr@gnu.org>
11162
11163 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
11164
111652008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
11166
11167 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
11168 calling build_annotations.
11169
111702008-05-28 Juanma Barranquero <lekktu@gmail.com>
11171
11172 * coding.c (Fdecode_coding_region, Fencode_coding_region)
11173 (Fencode_coding_string):
11174 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
11175 <latin-extra-code-table>: Fix typos in docstrings.
11176 (syms_of_coding) <coding-system-alist>: Doc fix.
11177 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
11178
111792008-05-28 Kenichi Handa <handa@m17n.org>
11180
11181 * fontset.c (Ffont_info): Don't call font_close_object.
11182
11183 * font.c (font_parse_family_registry): Use Ffont_put to validate
11184 foundry and family.
11185 (font_delete_unmatched): Don't check spacing.
11186 (font_list_entities): Add spacing to the spec to list fonts.
11187
11188 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
11189 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
11190
11191 * coding.c (encode_coding_raw_text): Fix previous change.
11192 (encode_coding_object): When the dst_object is a buffer and is
11193 different from src_object, move gap to PT.
11194
111952008-05-27 Chong Yidong <cyd@stupidchicken.com>
11196
11197 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
11198
111992008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
11200
11201 * coding.c (encode_coding_raw_text): Set coding->produced_char for
11202 all branches. Compute it differently.
11203
11204 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
11205
112062008-05-27 Juanma Barranquero <lekktu@gmail.com>
11207
11208 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
11209 into "else if () ... else ...".
11210
112112008-05-27 Jason Rumney <jasonr@gnu.org>
11212
11213 * w32font.c (w32font_open_internal): Determine if glyph indices
11214 are likely to work here.
11215
112162008-05-27 Chong Yidong <cyd@stupidchicken.com>
11217
11218 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
11219 draw overlap glyphs with appropriate highlighting.
11220
112212008-05-27 Kenichi Handa <handa@m17n.org>
11222
11223 * xfont.c (xfont_open): Fix calculation of font->average_width.
11224
112252008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
11226
11227 * casefiddle.c (casify_object): Try to guess better whether the
11228 argument is a byte or a char.
11229
112302008-05-26 Andreas Schwab <schwab@suse.de>
11231
11232 * xselect.c (x_reply_selection_request): Properly handle format == 32.
11233 Always send multiples of format size.
11234
11235 * xterm.c (x_set_frame_alpha): Fix type mismatch.
11236
112372008-05-26 Jason Rumney <jasonr@gnu.org>
11238
11239 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
11240 (compute_metrics): Don't set failure if we just cleared the cache.
11241 (w32_weight_table): Remove unused variable.
11242 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
11243 backwards compatibility.
11244
112452008-05-25 Kenichi Handa <handa@m17n.org>
11246
11247 * w32term.c (x_draw_glyph_string):
11248 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
11249
11250 * xfaces.c: Delete unused function prototypes.
11251 (xstrlwr, font_frame): Delete them.
11252 (clear_face_cache): Delete unused variable.
11253
11254 * xftfont.c (xftfont_open): Delete unused variable.
11255 If underline_thickness is not 1, adjust underline_position.
11256
11257 * ftxfont.c (ftxfont_open): Delete unused variable.
11258
11259 * fontset.c (face_for_char): Optimize for the case of no charset
11260 property.
11261
11262 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
11263 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
11264 (otf_open, font_otf_capability, generate_otf_features)
11265 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
11266 Comment out by surrounding "#if 0" and "#endif" for the moment.
11267 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
11268 (syms_of_font): Codes for accessing above commented out.
11269
112702008-05-24 Eli Zaretskii <eliz@gnu.org>
11271
11272 * w32proc.c: Include dispextern.h.
11273
11274 * w32.c: Include dispextern.h.
11275
112762008-05-23 Juanma Barranquero <lekktu@gmail.com>
11277
11278 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
11279 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
11280 Fix typos in docstrings.
11281
112822008-05-23 Jason Rumney <jasonr@gnu.org>
11283
11284 * xsmfns.c: Remove includes that are already included by config.h.
11285
112862008-05-23 Kenichi Handa <handa@m17n.org>
11287
11288 * charset.c (Qemacs, charset_emacs): New variables.
11289 (char_charset): Fix for non-Unicode characters.
11290 (syms_of_charset): Define charset_emacs.
11291
11292 * w32term.c (x_draw_glyph_string): Be sure to update
11293 s->underline_thickness and s->underline_position. Be sure to draw
11294 underline within the current line area.
11295
11296 * xterm.c (x_draw_glyph_string): Be sure to update
11297 s->underline_thickness and s->underline_position. Be sure to draw
11298 underline within the current line area.
11299
11300 * fontset.c: Delete unused variables and add casting for char *
11301 throughout the file.
11302 (fontset_font): Try the fallback fonts of the current fontset
11303 before consulting the default fontset.
11304
11305 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
11306
11307 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
11308
113092008-05-22 Jason Rumney <jasonr@gnu.org>
11310
11311 * font.c: Don't include strings.h.
11312
11313 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
11314
11315 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
11316 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
11317 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
11318 to call xstrcasecmp.
11319
11320 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
11321
11322 * fontset.c (fs_query_fontset): Use xstrcasecmp.
11323
11324 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
11325
11326 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
11327
113282008-05-22 Kenichi Handa <handa@m17n.org>
11329
11330 * puresize.h (BASE_PURESIZE): Increase to 1220000.
11331
11332 * font.c (font_prop_validate_style): Adjust for the format
11333 change of font_style_table.
11334
11335 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
11336 two args.
11337
11338 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
11339 two args.
11340
113412008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
11342
11343 * minibuf.c (keys_of_minibuf): Delete.
11344 * lisp.h (keys_of_minibuf): Delete.
11345 * emacs.c (main): Don't call keys_of_minibuf.
11346
113472008-05-22 Kenichi Handa <handa@m17n.org>
11348
11349 * ftfont.c (ftfont_resolve_generic_family): Rename from
11350 ftfont_list_generic_family. Return a single family for each
11351 generic family.
11352 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
11353 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
11354 Call font_add_log.
11355 (ftfont_match): Call font_add_log.
11356
11357 * font.h (Ffont_xlfd_name): EXFUN adjusted.
11358 (FONT_DEBUG): Define it.
11359 (font_add_log): Extern it.
11360 (font_assert): Rename from xassert.
11361
11362 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
11363 (xfont_list_family): Call font_add_log.
11364 (xfont_match): Likewise.
11365 (memq_no_quit): Delete.
11366
11367 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
11368 call of Ffont_xlfd_name.
11369
11370 * xfaces.c (struct table_entry, slant_table, weight_table)
11371 (swidth_table): Move to font.c.
11372
11373 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
11374 xassert are changed to font_assert. Delete many unused variables.
11375 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
11376 New variables.
11377 (struct table_entry): Move from xfaces.c and modified.
11378 (weight_table, slant_table, width_table): Move from xfaces.c and
11379 contents adjusted for the change of struct table_entry.
11380 (font_style_to_value, font_style_symbolic): Adjust for the
11381 format change of font_style_table.
11382 (font_parse_family_registry): Don't overwrite existing foundry and
11383 family of font_spec.
11384 (font_score): Fix calculation of diff for sizes.
11385 (font_sort_entites): Call font_add_log.
11386 (font_delete_unmatched): Return a newly created list.
11387 (font_list_entities): Fix previous change. Call font_add_log.
11388 (font_matching_entity, font_open_entity, font_close_entity):
11389 Call font_add_log.
11390 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
11391 (Finternal_set_font_style_table): Delete.
11392 (BUILD_STYLE_TABLE): New macro.
11393 (build_style_table): New function.
11394 (Vfont_log, font_log_env_checked): New variables.
11395 (font_add_log): New function.
11396 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
11397 Declare Lisp variables "font-weight-table", "font-slant-table",
11398 "font-width-table", and "font-log". Initialize font_style_table.
11399
114002008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
11401
11402 * xterm.c (x_set_frame_alpha): Move declarations before statements.
11403
114042008-05-21 Seiji Zenitani <zenitani@mac.com>
11405 Ryo Yoshitake <ryo@shiftmode.net>
11406
11407 * frame.c (Qalpha): Add a new frame parameter `alpha'.
11408 (Vframe_alpha_lower_limit): New variable.
11409 (x_set_alpha): New function.
11410
11411 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
11412
11413 * xfns.c (x-create-frame, Qalpha):
11414 Initialize the frame parameter `alpha'.
11415 * xterm.c (OPAQUE, OPACITY): New.
11416 (x_set_frame_alpha): New function.
11417 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
11418
11419 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
11420 * w32fns.c (w32_frame_parm_handlers): Likewise.
11421
114222008-05-20 Jason Rumney <jasonr@gnu.org>
11423
11424 * w32font.c (add_font_entity_to_list): Don't add non-opentype
11425 truetype fonts to opentype list.
11426
114272008-05-20 Juanma Barranquero <lekktu@gmail.com>
11428
11429 * fontset.c (Ffontset_info): Doc fix.
11430 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
11431 <ignore-relative-composition>: Fix typos in docstrings.
11432
11433 * font.c (syms-of-font) <font-encoding-alist>:
11434 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
11435 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
11436 (Ffont_otf_alternates): Doc fixes.
11437
114382008-05-20 Kenichi Handa <handa@m17n.org>
11439
11440 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
11441 font.h through out the file.
11442 (FONT_DRIVERS): Rename from FONTOBJ.
11443 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
11444 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
11445
11446 * emacs.c (main): Call syms_of_font unconditionally.
11447
11448 * font.h (find_font_encoding): Extern it.
11449
11450 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
11451 fontset.c.
194d44e7 11452 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
11453 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
11454 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
11455 only when HAVE_WINDOW_SYSTEM is defined.
11456 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
11457 when HAVE_WINDOW_SYSTEM is defined.
11458
11459 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
11460 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
11461
11462 * xfaces.c: Include font.h unconditionally.
11463 (merge_face_ref, merge_face_vectors)
11464 (Finternal_set_lisp_face_attribute): Cancel the previous change.
11465
114662008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
11467
11468 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
11469 indirect_variable.
11470 * eval.c (lisp_indirect_variable): New fun.
11471 (Fuser_variable_p): Use it.
11472
114732008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
11474
11475 * lisp.h (indirect_variable):
11476 * data.c (indirect_variable, let_shadows_buffer_binding_p):
11477 Use Lisp_Symbol pointers rather than Lisp_Object.
11478 Adjust callers.
11479 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
11480 To this end, change calling-convention.
11481
11482 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
11483 if some non-hidden buffers are selected by string&pred.
11484
114852008-05-19 Chong Yidong <cyd@stupidchicken.com>
11486
11487 * process.c (wait_reading_process_output): Always check status
11488 when in batch mode.
11489
114902008-05-19 Kenichi Handa <handa@m17n.org>
11491
11492 * font.c (font_list_entities): Fix handling of cache.
11493 (font_matching_entity): Likewise.
11494
11495 * ftfont.c (cs_iso8859_1): Delete.
11496 (ft_face_cache): New variable.
11497 (struct ftfont_info): New member fc_charset_idx.
11498 (ftfont_build_basic_charsets): Delete.
11499 (fc_charset_table): New variable.
11500 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
11501 . FC_CHARSET_IDX) as :font-entity property in the font entity.
11502 Callers changed.
11503 (ftfont_lookup_cache, ftfont_get_charset): New functions.
11504 (ftfont_spec_pattern): New argument fc_charset_idx.
11505 Check registry more rigidly. Change callers.
11506 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
11507 change of :font-entity property of the font.
11508
11509 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
11510 property of the font.
11511
115122008-05-18 Juanma Barranquero <lekktu@gmail.com>
11513
11514 * coding.c (Fcoding_system_p): Rename argument to match docstring.
11515 (Funencodable_char_position, Fcheck_coding_systems_region)
11516 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
11517 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
11518 (Ffind_operation_coding_system, Fset_coding_system_priority)
11519 (Fcoding_system_eol_type): Doc fixes.
11520
115212008-05-17 Glenn Morris <rgm@gnu.org>
11522
11523 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
11524
115252008-05-16 Eli Zaretskii <eliz@gnu.org>
11526
11527 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
11528 and st_gid.
11529
11530 * frame.c (Fdelete_frame): Don't call font_update_drivers if
11531 HAVE_WINDOW_SYSTEM is not defined.
11532
11533 * xfaces.c (merge_face_ref, merge_face_vectors)
11534 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
11535 HAVE_WINDOW_SYSTEM is defined.
11536 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
11537
115382008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
11539
11540 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
11541
115422008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11543
11544 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
11545
115462008-05-15 Kenichi Handa <handa@m17n.org>
11547
11548 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
11549 preference.
11550
115512008-05-15 Glenn Morris <rgm@gnu.org>
11552
11553 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
11554
115552008-05-15 Chong Yidong <cyd@stupidchicken.com>
11556
11557 * fns.c (init_fns): Don't initialize weak_hash_tables here.
11558 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
11559
11560 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
11561
115622008-05-15 Kenichi Handa <handa@m17n.org>
11563
11564 * ftfont.c (ftfont_list): Downcase family name to check generic
11565 families.
11566
11567 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
11568 font-spec for QCfont value.
11569
11570 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
11571 buffer. Check the return value of it.
11572
115732008-05-14 Jason Rumney <jasonr@gnu.org>
11574
11575 * w32term.c (w32_get_glyph_overhangs): Remove.
11576 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
11577
115782008-05-14 Kenichi Handa <handa@m17n.org>
11579
11580 * font.c (font_prop_validate): Make nil a valid value.
11581 (font_clear_cache): Check if the cached vector of entities is nil
11582 or not.
11583
115842008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11585
11586 * emacs.c (main_thread): Conditionalize on
11587 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11588 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
11589
11590 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
11591 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
11592 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11593
115942008-05-14 Kenichi Handa <handa@m17n.org>
11595
11596 * coding.c (detect_coding_iso_2022): Ignore a coding category that
11597 has no corresponding coding system.
11598
115992008-05-14 Jason Rumney <jasonr@gnu.org>
11600
11601 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
11602
11603 * w32font.h (w32font_open_internal): Update declaration.
11604
11605 * w32font.c (w32font_open_internal): Change last argument from
11606 w32font_info struct to font object. Fill in font object from
11607 font_entity. Get Outline metrics if possible. Use them to
11608 calculate underline position and thickness. Use xlfd name as name
11609 property. Don't set codepage.
11610 (w32font_open): Pass font_object to w32font_open_internal. Don't
11611 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
11612 (w32font_draw): Use s->font.
11613 (clear_cached_metrics): Don't clear non-existent blocks.
11614
11615 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
11616 font was not found.
11617 (x_draw_glyph_string): Use underline position and thickness from font.
11618
11619 * w32uniscribe.c (uniscribe_open): Pass font_object to
11620 w32font_open_internal.
11621
116222008-05-14 Kenichi Handa <handa@m17n.org>
11623
11624 These changes are to delete all legacy font-handling codes, and
11625 make Emacs use only font-backends.
11626
11627 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
11628 (frame.o, image.o, print.o): Depend on $(FONTSRC).
11629
11630 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
11631
11632 * charset.h (Vcharset_non_preferred_head)
11633 (Vcurrent_iso639_language): Extern them.
11634
11635 * charset.c (Vcharset_non_preferred_head): New variable.
11636 (Vcurrent_iso639_language): New variable.
11637 (syms_of_charset): Declare it as a Lisp variable.
11638 (char_charset): Don't check non preferred charsets. As a last
11639 resort, return charset_unicode.
11640 (Fset_charset_priority): Update Vcharset_non_preferred_head.
11641
11642 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
11643 conditionals. Don't check enable_font_backend. Delete all codes
11644 used only when USE_FONT_BACKEND is not defined.
11645
11646 * dispextern.h (struct glyph_string): Change type of `font' to
11647 `struct font *'.
11648 (struct glyph_string): New member underline_position and
11649 underline_thickness.
11650 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
11651 (struct face): Change type of `font' to `struct font *'. Remove
11652 members `font_name', `font_info_id'.
11653 (per_char_metric, encode_char): Delete externs.
11654 (calc_pixel_width_or_height): Adjust the prototype.
11655
11656 * emacs.c (enable_font_backend): Delete extern.
11657 (main): Don't set enable_font_backend. Don't check the command
11658 line argument "-disable-font-backend".
11659
11660 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
11661 (enum font_property_index): New members FONT_DPI_INDEX,
11662 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
11663 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
11664 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
11665 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
11666 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
11667 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
11668 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
11669 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
11670 (struct font_spec, struct font_entity): New structs.
11671 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
11672 (struct font): Many members from old "struct font_info" moved to
11673 here. Members font and entity deleted.
11674 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
11675 the new font-related objects.
11676 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
11677 (CHECK_FONT_GET_OBJECT): Likewise.
11678 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
11679 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
11680 (struct font_driver): New members case_sensitive anc check. Type
11681 of the member list and open changed.
11682 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
11683 (font_symbolic_width, font_find_object, font_get_spec)
11684 (font_set_lface_from_name): Delete extern.
11685 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
11686
11687 * font.c: Include <strings.h>.
11688 (enable_font_backend): Delete it.
11689 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
11690 (CHECK_VALIDATE_FONT_SPEC): Delete it.
11691 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
11692 (null_string): Delete it.
11693 (null_vector): Make it static.
11694 (font_family_alist): Delete it.
11695 (Qnormal): Extern it.
11696 (QCextra, QClanguage): Delete it.
11697 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
11698 (font_make_spec, font_make_entity, font_make_object)
11699 (font_intern_prop): Renamed from intern_downcase. Don't downcase
11700 the string. Callers changed.
11701 (font_pixel_size): Adjusted for the format change of font-related
11702 objects.
11703 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
11704 (font_style_to_value, font_style_symbolic): New function.
11705 (build_font_family_alist): Delete it.
11706 (font_registry_charsets): Use Fassoc_string instead of
11707 assq_no_quit.
11708 (font_prop_validate_symbol): Don't return null_string.
11709 (font_prop_validate_style): Adjusted for the change of
11710 style-related values in a font vector.
11711 (font_property_table): Delete entries for QClanguage and
11712 QCantialias, add entries for QCavgwidth.
11713 (get_font_prop_index): Delete the 2nd argument FROM.
11714 (font_prop_validate): Arguments changed.
11715 (font_put_extra): Adjusted for the change of font-related objects.
11716 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
11717 (font_parse_fcname, font_unparse_fcname)
11718 (font_prepare_composition): Likewise.
11719 (font_parse_family_registry): Renamed from font_merge_old_spec.
11720 (otf_open): Delete the 1st arg entity.
11721 (font_otf_capability): Adjusted for the above change.
11722 (font_score): New arg alternate_families. Adjusted for the change
11723 of font-related objects.
11724 (font_sort_entites): New arg best_only.
11725 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
11726 Delete them.
11727 (font_match_p): Check alternate families.
11728 (font_find_object): Delete it.
11729 (font_check_object): New function.
11730 (font_clear_cache): Adjusted for the change of font-related objects.
11731 (font_delete_unmatched): New arg.
11732 (font_list_entities): Call font_driver->list with a spec that
11733 doesn't specify style-related properties.
11734 (font_matching_entity): Arguments changed. Caller changed.
11735 (font_open_entity): Adjusted for the change of font-related objects.
11736 (font_close_object, font_has_char, font_encode_char)
11737 (font_get_name, font_get_spec): Likewise.
11738 (font_spec_from_name, font_clear_prop, font_update_lface):
11739 New functions.
11740 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
11741 (font_prepare_for_face, font_done_for_face, font_open_by_name)
11742 (font_at): Adjusted for the change of font-related objects.
11743 (font_range): New function.
11744 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
11745 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
11746 (Fcopy_font_spec, Fmerge_font_spec): New function.
11747 (Ffont_family_list): Renamed from list-families.
11748 (Finternal_set_font_style_table): Arguments changed.
11749 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
11750 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
11751 change of font-related objects.
11752 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
11753
11754 * fontset.h (struct font_info): Delete it. Most members go to
11755 struct font.
11756 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
11757 (enum FONT_SPEC_INDEX): Delete it.
11758 (font_info, list_fonts_func, load_font_func, query_font_func)
11759 (set_frame_fontset_func, find_ccl_program_func)
11760 (get_font_repertory_func, new_fontset_from_font_name): Delete
11761 externs.
11762 (fontset_from_font_name): Extern it.
11763 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
11764 (FONT_INFO_FROM_FACE): Deleted.
11765 (face_for_font): Adjust prototype.
11766
11767 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
11768 conditionals. Don't check enable_font_backend. Delete all codes
11769 used only when USE_FONT_BACKEND is not defined.
11770 (get_font_info_func, list_font_func, load_font_func)
11771 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
11772 (get_font_repertory_func): Delete them.
11773 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
11774 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
11775 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
11776 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
11777 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
11778 (fontset_compare_rfontdef): New function.
11779 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
11780 rfont-defs by qsort. Adjusted for the change of font-group vector.
11781 (load_font_get_repertory): Deleted.
11782 (fontset_find_font): Use new macros to ref/set elements of
11783 font-def and rfont-def.
11784 (fontset_font): Fix the timing of remembering that no font for C.
11785 (free_face_fontset): Do nothing if the face has no fontset.
11786 (face_suitable_for_char_p): Use new macros to ref/set elements of
11787 rfont-def.
11788 (face_for_char): Likewise. Call face_for_char with font_object.
11789 (fs_load_font): Delete. Delete #pragma surrounding it.
11790 (fs_query_fontset): Use strcasecmp instead of strcmp.
11791 (generate_ascii_font_name): Adjusted for the format change of
11792 font-spec.
11793 (Fset_fontset_font): Likewise. Use new macros to set elements of
11794 font-def.
11795 (Fnew_fontset): Use font_unparse_xlfd to generate
11796 FONTSET_ASCII (fontset).
11797 (new_fontset_from_font_name): Deleted.
11798 (fontset_from_font): Renamed from new_fontset_from_font. Check if
11799 a fontset is already created for the font. FIx updating of
11800 Vfontset_alias_alist.
11801 (fontset_ascii_font): Deleted.
11802 (Ffont_info): Adjusted for the format change of font-spec.
11803 (Finternal_char_font): Likewise.
11804 (Ffontset_info): Likewise.
11805 (syms_of_fontset): Don't check load_font_func.
11806
11807 * fns.c (internal_equal): Handle PREV_FONT.
11808
11809 * frame.h: Delete USE_FONT_BACKEND conditional.
11810
11811 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
11812 conditionals. Don't check enable_font_backend. Delete all codes
11813 used only when USE_FONT_BACKEND is not defined.
11814 (x_set_font): Call x_new_font, not x_new_fontset2.
11815 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
11816 already set for the frame.
11817
11818 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
11819 a font-entity by font_make_entity. Use font_intern_prop instead
11820 of intern_downcase. Use FONT_SET_STYLE to set a style-related
11821 font property. If a font is scalable, set avgwidth property to 0.
11822 Set font-entity property by font_put_extra.
11823 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
11824 (ffont_driver): Adjusted for the change of struct font_driver.
11825 (ftfont_spec_pattern): New function.
11826 (ftfont_list): Return a list, not vector.
11827 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
11828 (ftfont_list_family): Don't downcase names.
11829 (ftfont_free_entity): Deleted.
11830 (ftfont_open): Return a font-object. Adjusted for the change of
11831 struct font. Get underline_thickness and underline_position from
11832 font property. Don't update dpyinfo->smallest_font_height and
11833 dpyinfo->smallest_char_width.
11834 (ftfont_close): Don't free `struct font'.
11835 (ftfont_has_char): Adjusted for the format change of font-entity.
11836 (ftfont_encode_char, ftfont_text_extents): Likewise.
11837
11838 * ftxfont.c (ftxfont_list): Return a list, not vector.
11839 (ftxfont_open): Return a font-object. Adjusted for the change of
11840 struct font. Get underline_thickness and underline_position from
11841 font property. Don't update dpyinfo->smallest_font_height and
11842 dpyinfo->smallest_char_width.
11843 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
11844 (ftxfont_draw): Adjusted for the change of struct font.
11845
11846 * image.c (image_ascent): Don't include "charset.h". Include
11847 "character.h" and "font.h".
11848
11849 * lisp.h (enum pvec_type): New member PREV_FONT.
11850 (Fassoc_string): EXFUN it.
11851
11852 * print.c: Include font.h.
11853 (print_object): Handle font-related objects.
11854
11855 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
11856 conditionals. Don't check enable_font_backend. Delete all codes
11857 used only when USE_FONT_BACKEND is not defined.
11858 (handle_auto_composed_prop): Do nothing if it->f is not on a
11859 window system. Check how many following characters can be
11860 displayed by the same font.
11861 (calc_pixel_width_or_height): Type of the 4th arg is changed to
11862 'struct font *'.
11863 (get_char_face_and_encoding): Assign the whole encoding task to
11864 the `encode-char' method of a font driver.
11865 (fill_composite_glyph_string): Adjusted for the change of `struct
11866 face' and `struct glyph_string'.
11867 (fill_glyph_string): Likewise.
11868 (get_per_char_metric): Arguments changed.
11869 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
11870 and `struct glyph_string'.
11871 (produce_stretch_glyph, calc_line_height_property)
11872 (x_produce_glyphs): Likewise.
11873
11874 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
11875 conditionals. Don't check enable_font_backend. Delete all codes
11876 used only when USE_FONT_BACKEND is not defined. Use
11877 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
11878 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
11879 (Qp): Extern them.
11880 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
11881 Deleted.
11882 (struct font_name): Deleted.
11883 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
11884 (compare_fonts_by_sort_order): New function.
11885 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
11886 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
11887 Deleted.
11888 (Fx_family_fonts): Use font_list_entities, and sort fonts by
11889 compare_fonts_by_sort_order.
11890 (Fx_font_family_list): Call Ffont_family_list.
11891 (face_numeric_value, face_numeric_weight, face_numeric_slant)
11892 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
11893 (face_symbolic_slant, face_symbolic_swidth)
11894 (split_font_name_into_vector, build_font_name_from_vector)
11895 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
11896 (font_rescale_ratio, split_font_name, build_font_name)
11897 (free_font_names, sort_fonts, x_face_list_fonts)
11898 (face_font_available_p, sorted_font_list, cmp_font_names)
11899 (font_list_1, concat_font_list, font_list, remove_duplicates):
11900 Deleted.
11901 (Fx_list_fonts): Use Ffont_list.
11902 (LFACE_AVGWIDTH): Deleted.
11903 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
11904 by FONTP.
11905 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
11906 (set_lface_from_font_name): Delete it.
11907 (set_lface_from_font): Renamed from
11908 set_lface_from_font_and_fontset. Caller changed. Don't set
11909 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
11910 for face.
11911 (merge_face_vectors): Copy font-spec if necessary.
11912 Clear properties of the font-spec if necessary.
11913 (merge_face_ref): Clear properties of the font-spec if necessary.
11914 (Finternal_set_lisp_face_attribute): Likewise.
11915 (set_font_frame_param): Use font_load_for_lface to load a
11916 font-object, and call Fmodify_frame_parameters with it.
11917 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
11918 font name by Ffont_xlfd_name.
11919 (Finternal_lisp_face_attribute_values): Don't check QCweight,
11920 QCslant, and QCwidth.
11921 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
11922 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
11923 Compare fonts by EQ.
11924 (lookup_non_ascii_face): Deleted.
11925 (face_for_font): The 2nd argument changed.
11926 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
11927 Check atomic font properties by case insensitive.
11928 (realize_non_ascii_face): Set face->overstrike correctly.
11929 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
11930 (dump_realized_face): Get font name from
11931 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
11932
11933 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
11934 conditionals. Don't check enable_font_backend. Delete all codes
11935 used only when USE_FONT_BACKEND is not defined.
11936 (xic_create_xfontset): Original code deleted and renamed from
11937 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
11938 (x_make_gc): Don't set GCFont in GCs.
11939 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
11940 opened by "fixed".
11941 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
11942 find_ccl_program_func, query_font_func, set_frame_fontset_func,
11943 get_font_repertory_func.
11944
11945 * xfont.c: Include <stdlib.h> and "ccl.h".
11946 (struct xfont_info): New structure.
11947 (xfont_query_font): Deleted.
11948 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
11949 moved from xterm.c.
11950 (xfont_driver): Adjusted for the change of struct font_driver.
11951 (compare_font_names): New function.
11952 (xfont_list_pattern): Sort font names case insensitively. Make
11953 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
11954 (xfont_list): Return a list, not vector.
11955 (xfont_match): If the font doesn't have QCname property, generate
11956 a name from the other font properties.
11957 (xfont_open): Return a font-object. Adjusted for the change of
11958 struct font. Get underline_thickness and underline_position from
11959 font property. Don't update dpyinfo->smallest_font_height and
11960 dpyinfo->smallest_char_width.
11961 (xfont_close): Don't free struct font.
11962 (xfont_prepare_face): Adjusted for the change of struct font.
11963 (xfont_done_face): Deleted.
11964 (xfont_has_char): Adjusted for the change of struct font.
11965 (xfont_encode_char, xfont_draw): Likewise.
11966 (xfont_check): New function.
11967
11968 * xftfont.c (xftfont_list): Adjusted for the change of `list'
11969 callback function.
11970 (xftfont_match): Adjusted for the format change of font-entity.
11971 (xftfont_open): Adjusted for the format change of font-entity and
11972 font-object. Adjusted for the change of struct font. Return a
11973 font-object. Don't update dpyinfo->smallest_font_height and
11974 dpyinfo->smallest_char_width.
11975 (xftfont_close): Block input while calling XftFontClose.
11976 (xftfont_prepare_face): Don't block input while calling
11977 xftfont_get_colors. Adjusted for the change of struct font.
11978 (xftfont_shape): Return value of error case fixed.
11979
11980 * xrdb.c (x_load_resources): Don't setup a fontset resource.
11981
11982 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
11983 conditionals.
11984 (FONT_WIDTH): Return (f)->max_width.
11985 (struct x_display_info): Delete member `font'.
11986 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
11987 (x_find_ccl_program, x_get_font_repertory): Delete externs.
11988 (struct x_output): Change type of `font' to `struct font *'.
11989
11990 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
11991 conditionals. Don't check enable_font_backend. Delete all codes
11992 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
11993 (x_per_char_metric, x_encode_char): Deleted.
11994 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
11995 (x_compute_glyph_string_overhangs): Adjusted for the change of
11996 `struct face'.
11997 (x_draw_glyph_string_foreground)
11998 (x_draw_composite_glyph_string_foreground): Likewise.
11999 (x_draw_glyph_string): Likewise. Use font->underline_position and
12000 font->underline_thickness.
12001 (x_new_font): Renamed from x_new_fontset2.
12002 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
12003 (x_check_font): Call `check' method of a font driver.
12004 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
12005 (x_query_font, x_get_font_repertory): Deleted.
12006 (x_find_ccl_program): Renamed and moved to xfont.c.
12007 (x_redisplay_interface): Adjusted for the change of `struct
12008 redisplay_interface'.
12009
12010 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
12011 conditionals. Don't check enable_font_backend. Delete all codes
12012 used only when USE_FONT_BACKEND is not defined. Surround non-used
12013 code by "#ifdef OLD_FONT" and "endif".
12014 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
12015
12016 * w32font.h (struct w32font_info): New member.
12017 (FONT_COMPAT): New macro.
12018 (w32font_open_internal): Prototype adjusted.
12019
12020 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
12021 OLD_FONT" and "endif".
12022
12023 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
12024 conditionals. Don't check enable_font_backend. Delete all codes
12025 used only when USE_FONT_BACKEND is not defined.
12026 (w32font_open): Return a font-object. Make a font-object by
12027 font_make_object. Adjusted for the change of struct w32font_info.
12028 (w32font_close): Don't free struct font. Adjusted for the change
12029 of struct w32font_info.
12030 (w32font_encode_char, w32font_text_extents, w32font_draw):
12031 Adjusted for the change of struct w32font_info.
12032 (w32font_draw): Likewise.
12033 (w32font_list_internal): Return a list, not vector.
12034 (w32font_open_internal): Change the 4th arg to font-object.
12035 Adjusted for the change of struct w32font_info and font-object format.
12036 (add_font_name_to_list): Don't downcase names.
12037 (w32_enumfont_pattern_entity): Make a font-entity by
12038 font_make_entity. Adjusted for the format change of font-entity.
12039 Use FONT_SET_STYLE to set a style-related font property. If a
12040 font is scalable, set avgwidth property to 0. Set font-entity
12041 property by font_put_extra.
12042 (font_matches_spec): Adjusted for the format change of font-entity.
12043 (w32_weight_table, w32_decode_weight): New variables.
12044 (w32_encode_weight): New function.
12045 (fill_in_logfont): Adjusted for the format change of font-spec.
12046 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
12047 weight value.
12048 (w32font_driver): Adjusted for the change of struct font_driver.
12049
12050 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
12051 conditionals. Don't check enable_font_backend. Surround non-used
12052 code by "#ifdef OLD_FONT" and "endif".
12053 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
12054 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
12055
12056 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
12057 conditionals. Don't check enable_font_backend. Delete all codes
12058 used only when USE_FONT_BACKEND is not defined. Surround non-used
12059 code by "#ifdef OLD_FONT" and "endif".
12060
12061 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
12062 (uniscribe_open): Return value changed to font-object.
12063 Adjusted for the format change of font-object.
12064 (uniscribe_otf_capability): Adjusted for the change of struct font.
12065 (add_opentype_font_name_to_list): Don't downcase names.
12066 (uniscribe_font_driver): Adjusted for the change of struct
12067 font_driver.
12068
120692008-05-13 Chong Yidong <cyd@stupidchicken.com>
12070
12071 * dispnew.c (update_frame_1): Check if tty output is still valid
12072 before flushing it.
12073
120742008-05-13 Jan Djärv <jan.h.d@swipnet.se>
12075
12076 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
12077 to Gtk+ menus.
12078
120792008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
12080
12081 * dired.c (file_name_completion): Tweak the code so as to always do it
12082 in a single pass. Tighten the scope of some variables.
12083
12084 * dired.c (Qdefault_directory): New var.
12085 (file_name_completion): Use it instead of Fexpand_file_name.
12086 (syms_of_dired): Initialize it.
12087
120882008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
12089
12090 * fileio.c (double_dollars): Remove dead code.
12091
120922008-05-10 Eli Zaretskii <eliz@gnu.org>
12093
12094 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
12095 Mention w32-get-true-file-attributes in doc string.
12096
12097 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
12098
120992008-05-09 Glenn Morris <rgm@gnu.org>
12100
12101 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
12102 2008-04-23.
12103
121042008-05-09 Eli Zaretskii <eliz@gnu.org>
12105
12106 Support for reporting owner and group of each file on MS-Windows:
12107 * dired.c (stat_uname, stat_gname): New functions, with special
12108 implementation for w32.
12109 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
12110
12111 * w32.c: Rename the_passwd_* to dflt_passwd_*.
12112 (dflt_group_name): New static variable.
12113 (dflt_group): Rename from the_group.
12114 (init_user_info): Init dflt_group fields. Get user's group name
12115 from LookupAccountSid.
12116 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
12117 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
12118 New initialization states.
12119 (globals_of_w32): Initialize them to zero. Initialize the default
12120 group name to "None".
12121 (GetFileSecurity_Name): New global var, the name of the function
12122 to call for GetFileSecurity.
12123 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
12124 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
12125 (get_file_security, get_security_descriptor_owner)
12126 (get_security_descriptor_group, is_valid_sid)
12127 (get_file_security_desc, get_rid, get_name_and_id)
12128 (get_file_owner_and_group): New functions.
12129 (stat): Use get_file_security_desc and get_file_owner_and_group to
12130 report the owner and primary group of each file. Don't ignore the
12131 high 32 bits of file's size, now that st_size is 64-bit wide.
12132 Fix test when to get true file attributes.
12133 (init_user_info): Use get_rid instead of equivalent inline code.
12134 (fstat): Don't ignore the high 32 bits of file's size.
12135
121362008-05-09 Chong Yidong <cyd@stupidchicken.com>
12137
12138 * image.c (png_load): Use correct bit-depth for setting background
12139 color.
12140
121412008-05-08 Eli Zaretskii <eliz@gnu.org>
12142
12143 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
12144 epa-hook.elc.
12145
121462008-05-08 Juanma Barranquero <lekktu@gmail.com>
12147
12148 * font.c (Ffont_match_p): Don't use `iff' in docstring.
12149
121502008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
12151
12152 * macfns.c (Fx_create_frame): Make a copy of frame parameters
12153 because the original parameters are in pure storage now.
12154 (mac_window): Remove unused params. Update callers.
12155
121562008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12157
12158 * lread.c (substitute_object_recurse): Use lower-level primitives.
12159 Don't signal errors when traversing sub-char-tables.
12160 Don't loop over all the possible characters when traversing char-tables.
12161
12162 * print.c (print_preprocess): Add sub-char-tables to the print-table,
12163 just like we do in print.c.
12164
121652008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
12166
12167 * minibuf.c (Ftry_completion): Remove code left over from when we used
12168 scmp instead of Fcompare_strings.
12169
121702008-05-04 Juanma Barranquero <lekktu@gmail.com>
12171
12172 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
12173
121742008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12175
12176 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
12177 Create bitmap context in native byte order.
12178
12179 * macterm.c (XDrawLine)
12180 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
12181 context in native byte order.
12182
121832008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12184
12185 * config.in: Regenerate.
12186
12187 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
12188 New definitions for Image I/O support.
12189 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
12190 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
12191 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
12192 (mac_data_provider_release_data, image_load_image_io)
12193 [USE_MAC_IMAGE_IO]: New functions.
12194 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
12195 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
12196 (init_image_func_pointer) [MAC_OSX]: Remove function.
12197 (image_load_quartz2d) [MAC_OSX]: Check availability of
12198 CGImageCreateWithPNGDataProvider at compile time.
12199 Use lowercase `false' for boolean constant.
12200 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
12201 Use image_load_image_io.
12202 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
12203 Don't check MyCGImageCreateWithPNGDataProvider.
12204 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
12205 Don't call init_image_func_pointer.
12206
12207 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
12208
12209 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
12210 Make variable non-static.
12211 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
12212 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
12213
12214 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
12215 (RED_FROM_ULONG): Mask off higher bits.
12216 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
12217
12218 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
12219 Include AvailabilityMacros.h.
12220 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
12221 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
12222
122232008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
12224
12225 * chartab.c (Fset_char_table_range): If range is t, really set all
12226 chars to that value.
12227
122282008-05-03 Eli Zaretskii <eliz@gnu.org>
12229
12230 * dired.c (Ffile_attributes): Don't allow the device number become
12231 negative.
12232
122332008-05-02 Daiki Ueno <ueno@unixuser.org>
12234
12235 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
12236
122372008-05-02 Juri Linkov <juri@jurta.org>
12238
12239 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
12240 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
12241 DEFAULT argument as a list of default values in docstrings.
12242
122432008-05-01 Chong Yidong <cyd@stupidchicken.com>
12244
12245 * puresize.h (BASE_PURESIZE): Increase to 1210000.
12246
122472008-05-01 Martin Rudalics <rudalics@gmx.at>
12248
12249 * dispnew.c (change_frame_size_1): Preserve small windows when
12250 shrinking frames by calling set_window_height|width with third
12251 arg 2.
12252
12253 * window.h (struct window): Replace field too_small_ok by field
12254 resize_proportionally.
12255
12256 * window.c (make_window): Initialize resize_proportionally.
12257 (enlarge_window): Temporarily set resize_proportionally to make
12258 sure that shrink_windows does scale the window proportionally.
12259 (shrink_windows): When window has resize_proportionally set try
12260 to shrink it proportionally by stealing from other windows.
12261 (struct saved_window, Fset_window_configuration)
12262 (compare_window_configurations): Handle resize_proportionally.
12263 (WINDOW_TOTAL_SIZE): New macro.
12264 (window_min_size, shrink_windows, size_window): Use it.
12265 (check_min_window_sizes): Remove. Invalid values of
12266 window-min-height|width are handled by window_min_size_2 now.
12267 (size_window, Fsplit_window, enlarge_window)
12268 (adjust_window_trailing_edge, grow_mini_window): Don't call
12269 check_min_window_sizes.
12270 (window_min_size_2, window_min_size_1, window_min_size):
12271 New argument safe_p for retrieving "safe" minimum sizes.
12272 (Fdisplay_buffer, Fsplit_window, enlarge_window)
12273 (adjust_window_trailing_edge, grow_mini_window):
12274 Adjust arguments of window_min_size... functions.
12275 (shrink_windows): Argument min_size removed. New argument
12276 safe_p allows shrinking windows to their safe minimum sizes.
12277 Calculate minimum size and decide whether a window shall be
12278 deleted for each window individually.
12279 (size_window): When nodelete_p equals 2, tell shrink_windows to
12280 delete windows only if their new minimum size is no more safe.
12281 (shrink_window_lowest_first): Call window_min_size_1 to make
12282 sure to preserve modeline of bottom-most window when resizing
12283 the minibuffer.
12284 (Fset_window_configuration, Fcurrent_window_configuration)
12285 (compare_window_configurations): Do not handle
12286 window-min-height|width any more.
12287 (syms_of_window): Clarify window-min-height|width doc-strings.
12288
122892008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
12290
12291 * dired.c (file_name_completion): Fix up the encoding/decoding issue
12292 some more. Copy some of the code from Ftry_completions.
12293 Remove special case code that dates back to initial revision when the
12294 slash was only added when necessary and that can't trigger nowadays.
12295
122962008-04-27 Kenichi Handa <handa@m17n.org>
12297
12298 * font.c (font_prop_validate): Signal `error' instead of `font'.
12299
123002008-04-29 Jason Rumney <jasonr@gnu.org>
12301
12302 * w32fns.c (Fw32_battery_status): New defun.
12303 (syms_of_w32fns): Defsubr it.
12304
123052008-04-28 Andreas Schwab <schwab@suse.de>
12306
12307 * dired.c (file_name_completion): Fix another mixing of encoded
12308 and decoded names.
12309
123102008-04-28 Juanma Barranquero <lekktu@gmail.com>
12311
12312 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
12313
123142008-04-27 Juanma Barranquero <lekktu@gmail.com>
12315
12316 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
12317
123182008-04-27 Andreas Schwab <schwab@suse.de>
12319
12320 * dired.c (file_name_completion): Fix inappropriate mixing of
12321 encoded and decoded names.
12322
12323 * xterm.c (XTread_socket): Fix use of uninitialized variable.
12324
12325 * puresize.h (BASE_PURESIZE): Increase to 1200000.
12326
123272008-04-26 Eli Zaretskii <eliz@gnu.org>
12328
12329 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
12330 2008-03-31, it's not needed anymore with `struct stat' definition
12331 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
12332 for the same reasons.
12333
123342008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
12335
12336 * m/sparc.h: Additional redefinitions for GNU/Linux.
12337
123382008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12339
12340 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
12341 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
12342 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
12343 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
12344 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
12345 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
12346 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12347 Likewise.
12348
12349 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
12350 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
12351 (mac_ax_number_of_characters): Add externs.
12352 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
12353 [USE_MAC_TSM]: Likewise.
12354 (mac_handle_text_input_event) [MAC_OSX]:
12355 Handle kEventTextInputOffsetToPos for no active input area case.
12356 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
12357 (mac_handle_document_access_event)
12358 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
12359 (install_application_handler) [MAC_OSX]: Register handlers for
12360 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
12361 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12362 Register mac_handle_document_access_event.
12363
12364 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
12365 Make functions non-static.
12366
123672008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
12368
12369 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
12370 (read_file_name_completion_ignore_case, insert_default_directory)
12371 (Qdefault_directory): Move to minibuffer.el.
12372 (Fread_file_name): Call the new `read-file-name' instead.
12373
123742008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12375
12376 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
12377 Make function non-static.
12378 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
12379 Remove function.
12380 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12381 Move to mactoolbox.c.
12382 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
12383
12384 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
12385 (mac_rect_make): New macro.
12386
12387 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
12388 instead of float.
12389 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12390 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
12391 (XSetBackground) [USE_CG_DRAWING]: Likewise.
12392 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
12393 CGRectMake.
12394 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12395 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
12396 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
12397 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12398 instead of WindowRef in argument type.
12399 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
12400 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
12401 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
12402 instead of DISPLAY. All uses changed.
12403 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
12404 (x_calc_absolute_position): Simplify so as not to use
12405 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
12406
12407 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12408 instead of WindowRef in argument type.
12409 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
12410 [TARGET_API_MAC_CARBON]: Remove externs.
12411 (create_apple_event, mac_event_parameters_to_lisp)
12412 [TARGET_API_MAC_CARBON]: Add externs.
12413
12414 * mactoolbox.c (Vmac_ts_script_language_on_focus)
12415 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
12416 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
12417 is clicked.
12418 (x_activate_menubar): Remove extern for saved_menu_event_location.
12419 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12420 Move from mac.c.
12421
124222008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12423
12424 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
12425 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
12426
124272008-04-23 Jason Rumney <jasonr@gnu.org>
12428
12429 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
12430 attributes only for local files.
12431
12432 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
12433 default to Qlocal.
12434
124352008-04-22 Juri Linkov <juri@jurta.org>
12436
12437 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
12438 read-buffer-to-switch instead of using the letter "B".
12439
124402008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
12441
12442 * fileio.c (Qdefault_directory): New variable.
12443 (Fread_file_name): Use it to pass `dir' to the completion functions.
12444
124452008-04-20 Chong Yidong <cyd@stupidchicken.com>
12446
12447 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
12448
124492008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
12450
12451 * keyboard.c (Vpre_help_message): Remove.
12452 (show_help_echo): Remove default C code.
12453
12454 * dired.c (directory_files_internal, file_name_completion):
12455 Only call ENCODE_FILE if the string is indeed decoded.
12456
124572008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12458
12459 * Makefile.in (TOOLKIT_DEFINES): Remove.
12460 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
12461
124622008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12463
12464 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
12465 (mactoolbox.o): New target.
12466
12467 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
12468 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
12469
12470 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
12471 Use mac_set_frame_window_background instead of XSetWindowBackground.
12472 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
12473 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
12474 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
12475 instead of SetWindowTitleWithCFString.
12476 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
12477 Move function to mactoolbox.c.
12478 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
12479 Use mac_set_window_modified instead of SetWindowModified.
12480 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
12481 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
12482 (Fx_focus_frame): Use mac_front_non_floating_window instead of
12483 FrontNonFloatingWindow. Use mac_activate_window instead of
12484 ActivateWindow. Use mac_active_non_floating_window instead of
12485 ActiveNonFloatingWindow.
12486 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
12487 Use mac_show_hourglass and mac_hide_hourglass.
12488 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
12489 instead of GetGlobalMouse.
12490 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
12491 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
12492 Use mac_bring_window_to_front instead of BringToFront.
12493 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
12494 mactoolbox.c.
12495 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
12496 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
12497 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
12498 mactoolbox.c.
12499
12500 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
12501 (XtPointer): Move typedef from macmenu.c.
12502 (enum button_type): Move enum from macmenu.c.
12503 (widget_value): Move typedef from macmenu.c.
12504 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
12505 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12506 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12507 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12508 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12509 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12510 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12511 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
12512 (Selection): Move typedef from macselect.c.
12513 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
12514 macterm.c.
12515 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
12516 (mac_is_window_collapsed, mac_bring_window_to_front)
12517 (mac_send_window_behind, mac_hide_window, mac_show_window)
12518 (mac_collapse_window, mac_front_non_floating_window)
12519 (mac_active_non_floating_window, mac_activate_window)
12520 (mac_move_window_structure, mac_move_window, mac_size_window)
12521 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
12522
12523 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
12524 (enum mac_menu_kind): Move enum to mactoolbox.c.
12525 (min_menu_id): Move variable to mactoolbox.c.
12526 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
12527 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
12528 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
12529 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
12530 [TARGET_API_MAC_CARBON]: Likewise.
12531 (XtPointer): Move typedef to macgui.h.
12532 (enum button_type): Move enum to macgui.h.
12533 (widget_value): Move typedef to macgui.h.
12534 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12535 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12536 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12537 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12538 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12539 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12540 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
12541 (popup_activated_flag): Make variable non-static.
12542 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
12543 (add_menu_item, fill_menu, dispose_menus):
12544 Move functions to mactoolbox.c.
12545 (restore_show_help_function, menu_target_item_handler)
12546 (install_menu_target_item_handler, mac_handle_dialog_event)
12547 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
12548 [TARGET_API_MAC_CARBON]: Likewise.
12549 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
12550 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12551 (find_and_call_menu_selection, name_is_separator): Make function
12552 non-static.
12553 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
12554 to mactoolbox.c.
12555 (set_frame_menubar): Don't call install_menu_quit_handler.
12556 (menu_item_selection): New variable.
12557 (mac_menu_show): Use create_and_show_popup_menu.
12558 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
12559 selection but set variable menu_item_selection. All uses changed.
12560 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
12561 Call install_menu_quit_handler. Move to mactoolbox.c.
12562
12563 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
12564 (Selection): Move typedef to macgui.h.
12565 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
12566 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
12567 Make variables non-static.
12568 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12569 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
12570 Make functions non-static.
12571 (Vmac_service_selection) [MAC_OSX]: Likewise.
12572 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
12573 (mac_valid_selection_target_p, mac_clear_selection)
12574 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12575 (mac_put_selection_value, mac_selection_has_target_p)
12576 (mac_get_selection_value, mac_get_selection_target_list)
12577 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
12578 Move functions to mactoolbox.c.
12579 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
12580 Likewise.
12581 (copy_scrap_flavor_data, mac_handle_service_event)
12582 (install_service_handler) [MAC_OSX]: Likewise.
12583 (syms_of_macselect) <Vmac_dnd_known_types>:
12584 Use mac_dnd_default_known_types.
12585
12586 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
12587 Move to mactoolbox.c.
12588 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
12589 (Fx_selection_owner_p): Add EXFUN.
12590 (install_window_handler, remove_window_handler, XSetWindowBackground):
12591 Remove externs.
12592 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
12593 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
12594 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
12595 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
12596 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
12597 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
12598 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
12599 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
12600 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
12601 (create_and_show_popup_menu, mac_get_selection_from_symbol)
12602 (mac_valid_selection_target_p, mac_clear_selection)
12603 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12604 (mac_put_selection_value, mac_selection_has_target_p)
12605 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
12606 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
12607 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
12608 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12609 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
12610 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12611 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
12612 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12613 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12614
12615 * mactoolbox.c: New file.
12616
126172008-04-18 Jason Rumney <jasonr@gnu.org>
12618
12619 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
12620
126212008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12622
12623 * character.c (Fmultibyte_char_to_unibyte):
12624 Return latin1 chars unchanged.
12625
12626 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
12627 relocated if it points to `name'.
12628
126292008-04-17 Kenichi Handa <handa@m17n.org>
12630
12631 * data.c (Faset): Allow setting a multibyte character in an
12632 ASCII-only unibyte string.
12633
12634 * lisp.h (STRING_SET_MULTIBYTE): New macro.
12635
126362008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
12637
12638 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
12639 done in config.h.
12640
126412008-04-16 Juanma Barranquero <lekktu@gmail.com>
12642
12643 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
12644 (Fchar_direction): Add usage in the docstring.
12645
126462008-04-15 Chong Yidong <cyd@stupidchicken.com>
12647
12648 * keyboard.c (read_key_sequence): Remove always-true checks.
12649
126502008-04-14 Jason Rumney <jasonr@gnu.org>
12651
12652 * w32font.c (w32font_open_internal): Set max_bounds.descent in
12653 compatibility struct, for better underline positioning.
12654
126552008-04-13 David Hansen <david.hansen@gmx.net>
12656
12657 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
12658 string.
12659
126602008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
12661
12662 * m/hp800.h (XUINT, XSET): Remove.
12663
126642008-04-12 Juanma Barranquero <lekktu@gmail.com>
12665
12666 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
12667 previous change.
12668
126692008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
12670
12671 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
12672 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
12673
126742008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12675
12676 * keymap.h (map_keymap_canonical): Declare.
12677 * xmenu.c (single_keymap_panes): Use it.
12678
126792008-04-11 Glenn Morris <rgm@gnu.org>
12680
12681 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
12682 set the target's value to that of the alias.
12683
126842008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12685
12686 * term.c (set_tty_color_mode): Left over typo.
12687
126882008-04-10 Michael Albinus <michael.albinus@gmx.de>
12689
12690 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
12691 only after check for file name handler functions. Signal, when
12692 native functionality is not supported.
12693 (syms_of_fileio): Declare it unconditionally.
12694
126952008-04-10 Jason Rumney <jasonr@gnu.org>
12696
12697 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
12698 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
12699
12700 * w32.c (logon_network_drive): Also logon to remote drives that
12701 are mapped to drive letters.
12702
127032008-04-10 Glenn Morris <rgm@gnu.org>
12704
12705 * xdisp.c (truncate-partial-width-windows): Doc fix.
12706
127072008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
12708
12709 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
12710 Move functions to minibuffer.el.
12711 (syms_of_fileio): Don't declare them.
12712
127132008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12714
12715 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
12716 (syms_of_minibuf): Remove its initialization.
12717
12718 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
12719
127202008-04-09 Juanma Barranquero <lekktu@gmail.com>
12721
12722 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
12723
127242008-04-09 Jason Rumney <jasonr@gnu.org>
12725
12726 * makefile.w32-in (distclean): Delete makefile too.
12727 (maintainer-clean): New target.
12728
12729 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
12730
12731 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
12732 for new font backend and composite cases.
12733
127342008-04-09 Jan Djärv <jan.h.d@swipnet.se>
12735
12736 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
12737 Most of the code moved to run_timers.
12738 (do_pending_atimers): Call run_timers.
12739 (run_timers): New function.
12740
12741 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
12742 run atimers.
12743
12744 * process.c (wait_reading_process_output): The same as above.
12745
127462008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12747
12748 * minibuf.c (last_exact_completion): Remove variable.
12749 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
12750 (complete_and_exit_1, complete_and_exit_2)
12751 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
12752 (Fdisplay_completion_list, display_completion_list_1)
12753 (Fminibuffer_completion_help, Fself_insert_and_exit)
12754 (Fexit_minibuffer, Fminibuffer_message): Move functions to
12755 minibuffer.el.
12756 (syms_of_minibuf): Remove corresponding initializations.
12757
12758 * keyboard.c (Qdeactivate_mark): New var.
12759 (command_loop_1): Use it to call `deactivate-mark'.
12760 (syms_of_keyboard): Initialize it.
12761
12762 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
12763 to another frame.
12764 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
12765 Don't call set_tty_color_mode.
12766 (store_frame_param): Reset previous_frame rather than call
12767 set_tty_color_mode.
12768 * term.c (set_tty_color_mode): Rewrite.
12769 * dispextern.h (set_tty_color_mode): New type.
12770 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
12771
127722008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
12773
12774 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
12775 for generic chars, which do not exist any more in emacs-unicode.
12776
127772008-04-08 Michael Albinus <michael.albinus@gmx.de>
12778
12779 * coding.c (detect_coding_emacs_mule)
12780 (Ffind_operation_coding_system): Fix typo.
12781
127822008-04-08 Jason Rumney <jasonr@gnu.org>
12783
12784 * w32uniscribe.c (SNAME): Extract only symbol name.
12785
12786 * w32font.h (struct w32_metric_cache): New struct.
12787 (w32font_info): Use it.
12788 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
12789 (CACHE_BLOCKSIZE): New constants.
12790
12791 * w32font.c (Qja, Qko, Qzh): New symbols.
12792 (syms_of_w32font): Initialise them.
12793 (font_matches_spec): Use them to filter by language.
12794 (recompute_cached_metrics): Remove function.
12795 (compute_metrics, clear_cached_metrics): New functions.
12796 (w32font_encode_char): Use them to manage metric cache.
12797 (w32font_text_extents): Cache metrics for all glyphs on demand.
12798 Delay converting glyph indices to WORD until needed.
12799 (w32font_open_internal): Initialize metric cache to empty.
12800 (registry_to_w32_charset): Charset should always be a symbol.
12801 (fill_in_logfont, list_all_matching_fonts): Family should
12802 always be a symbol.
12803
128042008-04-06 Jason Rumney <jasonr@gnu.org>
12805
12806 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
12807 Give up if glyph indices not supported. Use uniscribe obtained
12808 ABC widths for individual metrics. Map glyph clusters back to
12809 characters using fClusterStart flag. Return number of glyphs
12810 produced, not chars processed.
12811 (uniscribe_shape): Map char at FROM to current glyph.
12812
128132008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12814
12815 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
12816 Use SetMenuItemHierarchicalMenu.
12817
128182008-04-05 Jason Rumney <jasonr@gnu.org>
12819
12820 * image.c (pbm_load): Allow color values up to 65535.
12821 Throw an error if max_color_idx is outside the supported range.
12822 Report an error when image size is invalid.
12823 Read two bytes at a time when raw images have max_color_idx above 255.
12824
128252008-04-05 Eli Zaretskii <eliz@gnu.org>
12826
12827 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12828 cFileName a file name that includes `?' characters, use the 8+3
12829 alias in cAlternateFileName instead.
12830
128312008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
12832
12833 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
12834 append "CCL: Quitted" when the CCL program is quitted.
12835 (setup_ccl_program): Initialize ccl->quit_silently to zero.
12836
12837 * ccl.h (struct ccl_program): New member quit_silently.
12838
128392008-04-05 Chong Yidong <cyd@stupidchicken.com>
12840
12841 * search.c (compile_pattern_1): Treat non-nil and non-string of
12842 search-spaces-regexp as nil.
12843
12844 * minibuf.c (Fassoc_string): Tweak docstring.
12845
128462008-04-05 Eli Zaretskii <eliz@gnu.org>
12847
12848 * dired.c (Ffile_attributes): Support inode numbers wider than 32
12849 bits. Remove ugly WINDOWSNT-specific kludge introduced on
12850 2008-03-14 to force inode be positive.
12851
12852 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
12853 _S_* ones, since we now use our own sys/stat.h.
12854 (stat, fstat): Don't mangle the inode number.
12855 (init_user_info): Don't restrict UID and GID to 0-60000 range.
12856
128572008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
12858
12859 * frame.h (struct frame): Give one more bit to `visible' since we use
12860 values larger than 1 to indicate obscured frames on ttys.
12861
12862 * keymap.c (Qkeymap_canonicalize): New var.
12863 (Fmap_keymap_internal): New fun.
12864 (describe_map): Use keymap-canonicalize.
12865
12866 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
12867 (Fundo_boundary): Set them.
12868 (syms_of_undo): Initialize them.
12869 (record_point): Use them instead of last_point_position*.
12870 (last_undo_buffer): Change type.
12871
128722008-04-04 Jason Rumney <jasonr@gnu.org>
12873
12874 * w32font.c (w32font_text_extents): Use font's ascent and descent.
12875 (recompute_cached_metrics): Don't set ascent and descent per char.
12876
12877 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
12878 (uniscribe_check_otf): Add GC protection before consing.
12879 Rearrange loop for counting features.
12880
128812008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
12882
12883 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
12884 buffer with byte-size of source buffer.
12885
128862008-04-03 Chong Yidong <cyd@stupidchicken.com>
12887
12888 * callint.c (Fcall_interactively): Handle temporary region even
12889 when shift-select-mode is off.
12890
128912008-04-03 Jason Rumney <jasonr@gnu.org>
12892
12893 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
12894
128952008-04-03 Kenichi Handa <handa@m17n.org>
12896
12897 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
12898 (CATEGORY_MASK_UTF_16): Likewise.
12899 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
12900 binary file.
12901 (detect_coding): Add null-byte detection for a binary file.
12902 (detect_coding_system): Likewise.
12903
129042008-04-03 Jason Rumney <jasonr@gnu.org>
12905
12906 * w32uniscribe.c: New file.
12907
12908 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
12909
12910 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
12911
12912 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
12913 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
12914 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
12915 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
12916 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
12917 (Qphonetic): New symbols.
12918 (syms_of_w32font): Initialize them.
12919 (font_supported_scripts): Use them.
12920 (w32font_list_family): List all charsets.
12921 (w32font_text_extents, recompute_cached_metrics): Fix metric
12922 calculations.
12923 (w32_enumfont_pattern_entity): Make full_type a DWORD.
12924 Give opentype fonts their own format.
12925 (font_matches_spec): New arguments backend and logfont.
12926 Handle :otf spec for uniscribe backend.
12927 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
12928 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
12929
12930 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
12931 font backend.
12932 (globals_of_w32fns): Initialize uniscribe font backend.
12933
12934 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
12935 dependencies.
12936 (w32uniscribe.$(O)): New file to build.
12937 (FONT_OBJ): Include w32uniscribe.$(O).
12938 (LIBS): Add uniscribe libraries.
12939
12940 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
12941
129422008-04-02 Chong Yidong <cyd@stupidchicken.com>
12943
12944 * callint.c (Vshift_select_mode): New var.
12945 (Finteractive): Document new ^ spec.
12946 (Fcall_interactively): Call handle-shift-selection if the ^ spec
12947 is present.
12948
12949 * keyboard.c (Vthis_command_keys_shift_translated): New var.
12950 (command_loop_1): Avoid running the direct display versions of
12951 forward-char and backward-char if shift-selection may occur.
12952 (read_key_sequence): Set Vthis_command_keys_shift_translated if
12953 shift-translation takes place.
12954
12955 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
12956 avoid clobbering by define-minor-mode.
12957
12958 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
12959 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
12960
12961 * syntax.c (Fforward_word): Add ^ interactive spec.
12962
12963 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
12964 (Fscroll_right): Add ^ interactive spec.
12965
129662008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
12967
12968 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
12969
12970 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
12971
12972 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
12973
129742008-03-31 Juri Linkov <juri@jurta.org>
12975
12976 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
12977
129782008-03-30 Jan Djärv <jan.h.d@swipnet.se>
12979
12980 * gtkutil.c (xg_set_geometry): Fix indentation.
12981 (xg_resize_outer_widget): Remove.
12982 (x_wm_size_hint_off): Fix indentation.
12983 (xg_frame_set_char_size): Call flush_and_sync after
12984 gtk_window_resize.
12985 (x_wm_set_size_hint): Pass NULL as geometry window to
12986 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
12987 Add menu bar and tool bar height to base height.
12988 (xg_update_frame_menubar, free_frame_menubar)
12989 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
12990 (update_frame_tool_bar, free_frame_tool_bar):
12991 Change xg_resize_outer_widget to xg_frame_set_char_size.
12992
129932008-03-30 Michael Albinus <michael.albinus@gmx.de>
12994
12995 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
12996 (Fdbus_call_method): New parameter TIMEOUT.
12997 (dbus-send-signal): Optimize UNGCPRO call.
12998
129992008-03-29 Juri Linkov <juri@jurta.org>
13000
13001 * window.c (Fdisplay_buffer): Move call to
13002 Vsplit_window_preferred_function out of conditions that check
13003 if window is eligible for vertical splitting.
13004 When Vsplit_window_preferred_function is non-nil, call it and use
13005 its non-nil return value as window. Otherwise, continue doing
13006 vertical splitting using Fsplit_window with arg horflag=nil.
13007 (syms_of_window) <Vsplit_window_preferred_function>: Change the
13008 default value from `split-window' to nil.
13009
130102008-03-29 Juri Linkov <juri@jurta.org>
13011
13012 * callint.c (Fcall_interactively): Revert 2008-03-16 change
13013 for interactive code letters 'b' and 'B'.
13014
130152008-03-29 Eli Zaretskii <eliz@gnu.org>
13016
13017 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
13018 multibyte string.
13019
130202008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
13021
13022 * keyboard.c (pending_funcalls): New var.
13023 (timer_check): Run it.
13024 (syms_of_keyboard): Initialize it.
13025 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
13026 (Vdelete_terminal_functions): New vars.
13027 (syms_of_terminal): Initialize them.
13028 (Fdelete_terminal): Run delete-terminal-functions.
13029 * xdisp.c (safe_eval): Rewrite.
13030 (safe_call2): New fun.
13031 * frame.c (Qdelete_frame_functions): New var.
13032 (syms_of_frame): Initialize it.
13033 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
13034 * lisp.h (safe_call2, pending_funcalls): Declare.
13035
130362008-03-28 Andreas Schwab <schwab@suse.de>
13037
13038 * indent.c (Fmove_to_column): Move declaration before statements.
13039
130402008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
13041
13042 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
13043 (struct frame): Use bit fields for boolean vars.
13044
13045 * process.c (server_accept_connection): Simplify naming.
13046 (emacs_get_tty_pgrp): Use SDATA.
13047
13048 * coding.c (decode_coding_object): Fix last change.
13049
130502008-03-27 Jason Rumney <jasonr@gnu.org>
13051
13052 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
13053
130542008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
13055
13056 * charset.c (Fdefine_charset_internal): Change the way of
13057 registering charsets in Vcharset_order_list.
13058 (syms_of_charset): Make the charset `eight-bit' supplementary.
13059
130602008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
13061
13062 * regex.c (EXTEND_BUFFER): Change order of pointer addition
13063 operations, to avoid having the difference between pointers
13064 overflow.
13065
130662008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
13067
13068 * indent.c (check_display_width): New fun.
13069 (scan_for_column): Use it.
13070
13071 * data.c (syms_of_data): Mark most-positive-fixnum and
13072 most-negative-fixnum as constants.
13073
13074 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
13075
13076 * indent.c (scan_for_column): Extract from current_column_1.
13077 Merge with the same code from Fmove_to_column.
13078 (current_column_1, Fmove_to_column): Use it.
13079
130802008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
13081
13082 * keymap.c (map_keymap_internal): New fun.
13083 (map_keymap): Use it.
13084 (Fmap_keymap_internal): New fun.
13085 (Fmap_keymap): Remove left-out test from before make_save_value.
13086
13087 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
13088
13089 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
13090 Use XCAR/XCDR.
13091
13092 * process.h (struct Lisp_Process): Remove filter_multibyte.
13093 * process.c (QCfilter_multibyte): Remove.
13094 (setup_process_coding_systems): Don't use filter_multibyte.
13095 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
13096 (read_process_output): Don't adjust multibyteness to filter_multibyte.
13097 (Fset_process_filter_multibyte): Change the coding-system to
13098 approximate the previous behavior.
13099 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
13100 coding-system.
13101
13102 * coding.c (decode_coding_object): When not decoding into a buffer,
13103 obey the coding system's preference of (uni|multi)byte.
13104
131052008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
13106
13107 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
13108 every char is changed and has a different byte-length.
13109 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
13110 Fix int -> EMACS_INT.
13111
131122008-03-23 David Hansen <david.hansen@gmx.net>
13113
13114 * dbusbind.c (xd_read_message): Remove extra copying of message
13115 strings. Check for NULL `interface' or `member'.
13116
131172008-03-22 Eli Zaretskii <eliz@gnu.org>
13118
13119 * w32.c (readdir): If FindFirstFile/FindNextFile return in
13120 cFileName a file name that includes `?' characters, use the 8+3
13121 alias in cAlternateFileName instead.
13122
131232008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
13124
13125 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
13126
131272008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
13128
13129 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
13130 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
13131 work on current_buffer only instead (that was already the case
13132 for some of the code anyway).
13133 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
13134 (temp_set_point, temp_set_point_both): Use EMACS_INT.
13135 (SET_PT, SET_PT_BOTH): Adjust.
13136 * intervals.h (set_point, temp_set_point, set_point_both)
13137 (temp_set_point_both): Remove redundant declarations.
13138
131392008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
13140
13141 * fileio.c (Finsert_file_contents):
13142 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
13143 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
13144 when buffer != current_buffer anyway.
13145
131462008-03-20 Andreas Schwab <schwab@suse.de>
13147
13148 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
13149 as default.
13150
131512008-03-19 Jason Rumney <jasonr@gnu.org>
13152
13153 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
13154 (syms_of_w32fns): Initialize them.
13155 (HOURGLASS_ID): New constant.
13156 (x_window_to_frame): Don't check hourglass_window.
13157 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
13158 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
13159 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
13160 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
13161 Only change the cursor if hourglass is not active.
13162 (Fx_create_frame): Initialize frame's current_cursor.
13163 (hourglass_atimer): Remove.
13164 (hourglass_started): New function.
13165 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
13166 (show_hourglass): Adapt to w32, changing argument to frame.
13167
13168 * w32term.h (struct w32_output): Remove hourglass_window.
13169 Add current_cursor.
13170
13171 * eval.c (call_debugger, Fsignal):
13172 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
13173 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
13174 (Fexecute_extended_command, cancel_hourglass_unwind):
13175 * minibuf.c (read_minibuf):
13176 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
13177
131782008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
13179
13180 * window.c (run_funs): New fun.
13181 (run_window_configuration_change_hook): Use it to run the buffer-local
13182 and the global part of the hook.
13183
13184 * xdisp.c (format_mode_line_unwind_data): Add window argument.
13185 (unwind_format_mode_line): Restore selected window.
13186 (x_consider_frame_title, Fformat_mode_line): Set selected window.
13187
131882008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
13189
13190 * editfns.c (Fchar_equal): Check they are valid characters.
13191
13192 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
13193
131942008-03-17 Andreas Schwab <schwab@suse.de>
13195
13196 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
13197 against a charset.
13198
13199 * lisp.h (Fbuffer_list): Declare.
13200
132012008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 13202
aac0c6e3
MR
13203 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
13204 handlebox_widget is != 0.
13205
132062008-03-16 Juri Linkov <juri@jurta.org>
13207
13208 * callint.c (Fcall_interactively): For interactive code letters
13209 'b' and 'B' put the buffer list into the list of default "future"
13210 values of the minibuffer.
13211
132122008-03-16 Andreas Schwab <schwab@suse.de>
13213
13214 * keyboard.c (read_key_sequence): Fix downcasing of letters with
13215 modifiers.
13216
13217 * regex.c (re_match_2_internal): Correct matching of a charset
13218 against latin-1 characters.
13219
132202008-03-16 Kenichi Handa <handa@m17n.org>
13221
13222 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
13223 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
13224 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
13225 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
13226 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
13227 CHAR_STRING_ADVANCE.
13228 (produce_chars): Fix for the case that the source and the
13229 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
13230 instead of CHAR_STRING_ADVANCE.
13231 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
13232 STRING_CHAR_ADVANCE.
13233
132342008-03-15 Andreas Schwab <schwab@suse.de>
13235
13236 * regex.c (re_match_2_internal): Correct matching of eight bit
13237 characters in unibyte strings.
13238
132392008-03-15 Martin Rudalics <rudalics@gmx.at>
13240
13241 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
13242 at end of range when it coincides with the end of the buffer.
13243
132442008-03-14 Eli Zaretskii <eliz@gnu.org>
13245
13246 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
13247
13248 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
13249
132502008-03-14 Jason Rumney <jasonr@gnu.org>
13251
13252 * editfns.c (initial_tz): New variable.
13253 (syms_of_editfns): Initialize it.
13254 (Fset_time_zone_rule): Set it when first called.
13255 Use it when TZSTRING is nil.
13256
13257 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
13258 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
13259 (monitor_from_point_fn, get_monitor_info_fn): New globals.
13260 (globals_of_w32fns): Initialize them.
13261 (compute_tip_xy): Use them to position tooltips.
13262
132632008-03-14 Glenn Morris <rgm@gnu.org>
13264
13265 * emacs.c (main): Revert previous change.
13266 (standard_args): Revert -internal-script back to -scriptload,
13267 and remove the long-option form.
13268
132692008-03-13 Glenn Morris <rgm@gnu.org>
13270
13271 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
13272 Remove option -enable-font-backend.
13273
132742008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
13275
13276 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
13277
132782008-03-11 Jan Djärv <jan.h.d@swipnet.se>
13279
13280 * xterm.c (x_connection_closed): For GTK: If this is the last
13281 terminal just exit without closing the display.
13282
132832008-03-11 Jason Rumney <jasonr@gnu.org>
13284
13285 * w32font.c (w32font_full_name): Use floor to round.
13286
f0131492 132872008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
13288
13289 * sound.c (alsa_configure): Declare vol at beginning of block.
13290
13291 * fontset.c (Ffontset_info): Remove extra semicolon.
13292
132932008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
13294
13295 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
13296 size of resulting string.
13297
132982008-03-10 Jason Rumney <jasonr@gnu.org>
13299
13300 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
13301
133022008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13303
13304 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
13305 Don't pretend as if characters with display property haven't been
13306 consumed for string-replacing-string case.
13307
133082008-03-08 Kim F. Storm <storm@cua.dk>
13309
13310 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
13311 (get_next_display_element, next_element_from_string)
13312 (next_element_from_ellipsis, next_element_from_buffer): Use it.
13313
133142008-03-08 Andreas Schwab <schwab@suse.de>
13315
13316 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
13317
133182008-03-06 Jason Rumney <jasonr@gnu.org>
13319
13320 * w32font.c (w32_registry): Take font_type argument. Use ANSI
13321 when charset not specified. Only translate ANSI to unicode when
13322 font_type is truetype.
13323 (w32font_coverage_ok): New function.
13324 (add_font_entity_to_list): Use it to filter unsuitable fonts.
13325
133262008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
13327
13328 * lread.c (Fread_char): Resolve modifiers.
13329 (Fread_char_exclusive): Likewise.
13330
13331 * character.c (char_resolve_modifier_mask): New function.
13332 (char_string): Use char_resolve_modifier_mask.
13333 (Fchar_resolve_modifiers): New function.
13334 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
13335 function.
13336
133372008-03-04 Jason Rumney <jasonr@gnu.org>
13338
13339 * makefile.w32-in: Always include w32font.c in the build.
13340 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
13341
133422008-03-04 Andreas Schwab <schwab@suse.de>
13343
13344 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
13345 (versionclean): Likewise.
13346
133472008-03-04 Juanma Barranquero <lekktu@gmail.com>
13348
13349 * .cvsignore: Add oo.
13350
133512008-03-03 Andreas Schwab <schwab@suse.de>
13352
13353 * coding.c (decode_coding_object): Inhibit gap shrinking while
13354 decoding in place.
13355
133562008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
13357
13358 * w32term.c: Remove unused include "gnu.h".
13359 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
13360
13361 * gnu.h: Rename to ...
13362 * emacs-icon.h: ... this.
13363 * xterm.c: Use emacs-icon.h instead of gnu.h.
13364 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
13365
133662008-03-03 Juanma Barranquero <lekktu@gmail.com>
13367
13368 * w32font.c: Include math.h.
13369
133702008-03-03 Jason Rumney <jasonr@gnu.org>
13371
13372 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
13373 Compute options separately.
13374 (w32font_open_internal): Set glyph_idx before caching metrics.
13375
13376 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
13377 Define if system headers don't.
13378 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
13379 (w32font_encode_char): Don't declare here.
13380
13381 * w32font.c (Quniscribe, QCformat): New symbols.
13382 (syms_of_w32font): Define them.
13383 (w32font_has_char): Indicate uncertainty.
13384 (w32font_encode_char): Encode as glyph point. Make static.
13385 (recompute_cached_metrics): New function.
13386 (w32font_open_internal): Use it. Set font to use glyph points
13387 initially. Set format based on type of font.
13388 (w32font_text_extents, w32font_draw): Optionally use glyph points.
13389 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
13390 on it. Set format based on information available here.
13391 (add_font_entity_to_list): Identify backend based on opentype_only.
13392
133932008-03-02 Andreas Schwab <schwab@suse.de>
13394
13395 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
13396
13397 * coding.c (decode_coding_big5, produce_chars):
13398 Fix typos in last change.
13399
134002008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
13401
13402 * gnu.h: New icon.
13403
134042008-03-02 Kenichi Handa <handa@m17n.org>
13405
13406 * coding.c (decode_coding_utf_8): When eol-type of CODING is
13407 `dos', don't decode '\r' if that is the last in the source.
13408 (decode_coding_utf_16, decode_coding_emacs_mule)
13409 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13410 (decode_coding_raw_text, decode_coding_charset): Likewise.
13411 (produce_chars): Don't decode EOL here. Use EMACS_INT.
13412
134132008-03-01 Jason Rumney <jasonr@gnu.org>
13414
13415 * w32font.c (w32font_full_name): Report point size for scalable fonts.
13416
134172008-03-01 Kim F. Storm <storm@cua.dk>
13418
13419 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
13420
134212008-03-01 Jason Rumney <jasonr@gnu.org>
13422
13423 * w32font.c (w32font_full_name): New function.
13424 (w32font_open_internal): Use it.
13425
134262008-03-01 Kim F. Storm <storm@cua.dk>
13427
13428 * dispnew.c (line_draw_cost): Fix invalid glyph check.
13429
134302008-03-01 Jason Rumney <jasonr@gnu.org>
13431
13432 * font.c (font_unparse_fcname): Increase len when style is a symbol.
13433
134342008-03-01 Jan Djärv <jan.h.d@swipnet.se>
13435
13436 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
13437 xg_frame_resized when the event is for the edit widget.
13438
13439 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
13440
13441 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
13442 set_char_size.
13443 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
13444 operations on widgets here. Just set frame size if needed.
13445 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
13446 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
13447 (x_wm_set_size_hint): Set size hints on the edit widget only, not
13448 the whole frame.
13449 (xg_create_tool_bar): Move attachment of the tool bar to
13450 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
13451 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
13452
134532008-03-01 Jason Rumney <jasonr@gnu.org>
13454
13455 * w32fns.c (w32_msg_pump): Disable debug code.
13456
134572008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13458
13459 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
13460
134612008-02-29 Chong Yidong <cyd@stupidchicken.com>
13462
13463 * xdisp.c (next_overlay_string): Don't set
13464 overlay_strings_at_end_processed_p if we're currently reading from
13465 a display string.
13466
134672008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
13468
13469 * xdisp.c (get_overlay_strings_1): Fix typo.
13470
134712008-02-29 Chong Yidong <cyd@stupidchicken.com>
13472
13473 * xdisp.c (get_overlay_strings_1): Add missing argument type.
13474
134752008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
13476
13477 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
13478
13479 * xdisp.c (display_mode_element): Cancel the previous change.
13480 (decode_mode_spec): Likewise.
13481 (handle_auto_composed_prop): Don't make composition if it->string
13482 is a string.
13483
134842008-02-27 Kim F. Storm <storm@cua.dk>
13485
13486 * lisp.h (GLYPH): Change type from int to struct with separate char
13487 and face_id members.
13488 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
13489 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
13490 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
13491 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
13492 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
13493 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
13494 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
13495 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
13496 handle new Lisp glyph code encoding, either an integer or a cons.
13497
13498 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
13499 (GLYPH_ALIAS): Delete.
13500 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
13501 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
13502 (GLYPH_FROM_CHAR): Replace macro by ...
13503 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
13504
13505 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
13506 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
13507 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
13508 (GLYPH_INVALID_P): New macro.
13509 (spec_glyph_lookup_face): Update prototype.
13510
13511 * dispnew.c (line_draw_cost): Adapt to new glyph type.
13512 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
13513 new glyph code encoding.
13514 (spec_glyph_lookup_face): No return value; update passed glyph instead.
13515 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
13516
13517 * xdisp.c (get_next_display_element, next_element_from_display_vector):
13518 Adapt to new glyph type and new glyph code encoding.
13519
13520 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
13521
13522 * indent.c (current_column, current_column_1, Fmove_to_column)
13523 (compute_motion): Adapt to new glyph code encoding.
13524
13525 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
13526
135272008-02-27 Chong Yidong <cyd@stupidchicken.com>
13528
13529 * process.c (wait_reading_process_output): Check for window
13530 changes caused by timers.
13531 Suggested by Johan Bockgård.
13532
135332008-02-27 Glenn Morris <rgm@gnu.org>
13534
13535 * emacs.c (USAGE1): Add `--disable-font-backend'.
13536
135372008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
13538
13539 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
13540 is made to the buffer.
13541
135422008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
13543
13544 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
13545 (face_at_string_position):
13546 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
13547 (face_at_string_position):
13548 * xdisp.c (display_string, next_overlay_change):
13549 * buffer.h (overlays_at):
13550 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
13551 Update callers.
13552
135532008-02-26 Chong Yidong <cyd@stupidchicken.com>
13554
13555 * editfns.c (Fformat): Doc fix.
13556
135572008-02-26 Juanma Barranquero <lekktu@gmail.com>
13558
13559 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
13560 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
13561 (Ffont_otf_alternates, Fquery_font): Doc fixes.
13562
135632008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13564
13565 * buffer.c (Fbuffer_swap_text): New function.
13566 (syms_of_buffer): Defsubr it.
13567
135682008-02-25 Chong Yidong <cyd@stupidchicken.com>
13569
13570 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
13571
135722008-02-25 Jason Rumney <jasonr@gnu.org>
13573
13574 * w32font.c (w32font_draw): Draw one character at a time when padding.
13575
135762008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13577
13578 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
13579 Handle a nil arg. Use run_window_configuration_change_hook.
13580 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
13581 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
13582 Use run_window_configuration_change_hook.
13583
135842008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13585
13586 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
13587 1-pixel width.
13588
135892008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13590
13591 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
13592 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
13593 if the glyph in the font is zero pixel with.
13594
13595 * dispextern.h (struct glyph_string): New member padding_p.
13596
13597 * w32font.c (w32font_draw): Pay attention to s->padding_p.
13598
13599 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
13600
13601 * xfont.c (xfont_draw): Pay attention to s->padding_p.
13602
13603 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
13604
13605 * font.c: If the font driver doesn't have `shape' function, return Qnil.
13606
136072008-02-25 Jason Rumney <jasonr@gnu.org>
13608
13609 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
13610
136112008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
13612
13613 Allow fine-grained image-cache flushing.
13614 * dispextern.h (struct image): Add `dependencies' field.
13615 (clear_image_caches): Change arg to Lisp_Object.
13616 * image.c (make_image): Initialize `dependencies' field.
13617 (clear_image_cache): Change arg to allow fine-grained flushing.
13618 Perform the flush even if image-cache-eviction-delay is nil.
13619 (clear_image_caches): Change arg to Lisp_Object.
13620 (Fclear_image_cache): Expand meaning of the argument.
13621 (mark_image): Mark `dependencies' field.
13622 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
13623 (lface_hash): Use XHASH rather than XFASTINT.
13624 (face_at_buffer_position): Fix int -> EMACS_INT position.
13625 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
13626 (select_frame_for_redisplay): Remove code duplication.
13627 (redisplay_internal): Adapt arg to call to clear_image_caches.
13628
136292008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
13630
13631 * s/vms4-0.h:
13632 * s/vms4-2.h:
13633 * s/vms4-4.h:
13634 * s/vms5-5.h: Remove, unused.
13635
13636 * s/irix5-2.h:
13637 * s/irix6-0.h:
13638 * s/riscos5.h:
13639 * s/mach-bsd4-3.h:
13640 * m/mips4.h: Remove files for obsolete systems.
13641
13642 * Makefile.in:
13643 * filelock.c:
13644 * unexmips.c:
13645 * m/hp9000s300.h:
13646 * m/iris4d.h:
13647 * s/aix3-1.h:
13648 * s/hpux.h:
13649 * s/msdos.h:
13650 * s/usg5-0.h:
13651 * s/usg5-2-2.h:
13652 * s/usg5-2.h:
13653 * s/usg5-3.h: Remove references to obsolete variables.
13654
13655 * s/irix5-0.h: Remove, move all the contents ...
13656 * s/irix6-5.h: ... here. Simplify.
13657 * config.in: Regenerate.
13658
136592008-02-24 Jason Rumney <jasonr@gnu.org>
13660
13661 * w32term.c (x_draw_glyph_string_background): Clear the background
13662 manually when cleartype is in use.
13663 (x_draw_glyph_string_foreground): Draw text transparently when
13664 cleartype is in use.
13665
13666 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
13667 a font into it unless we have to.
13668
136692008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13670
13671 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
13672 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 13673
aac0c6e3
MR
136742008-02-18 Jason Rumney <jasonr@gnu.org>
13675
13676 * w32fns.c (Fw32_shell_execute): Encode parameters.
13677
136782008-02-09 Eli Zaretskii <eliz@gnu.org>
13679
13680 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
13681
136822008-02-05 Juanma Barranquero <lekktu@gmail.com>
13683
13684 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
13685
136862008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
13687
13688 * xterm.c (x_set_offset): Don't change the gravity if
13689 CHANGE_GRAVITY is -1.
13690
136912008-02-23 Chong Yidong <cyd@stupidchicken.com>
13692
13693 * fileio.c (auto_save_error_occurred): New var.
13694 (auto_save_error): Set it.
13695 (Fdo_auto_save): Don't overwrite the error message if an auto-save
13696 error occurred.
13697
136982008-02-23 Eli Zaretskii <eliz@gnu.org>
13699
13700 * w32.c (globals_of_w32): Add initializations for
13701 g_b_init_get_sid_sub_authority and
13702 g_b_init_get_sid_sub_authority_count.
13703
137042008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
13705
13706 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
13707 (font_parse_xlfd): Use them for sanity check.
13708 (Finternal_set_font_style_table): Make sure the table is bijective.
13709
13710 Consolidate the image_cache to the terminal struct.
13711 * termhooks.h (P_): Remove redundant def.
13712 (struct terminal): New field `image_cache'.
13713 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
13714 of FRAME_X_IMAGE_CACHE.
13715 * xterm.h (struct x_display_info): Remove image_cache field.
13716 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13717 * w32term.h (struct w32_display_info): Remove image_cache field.
13718 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13719 * macterm.h (struct mac_display_info): Remove image_cache field.
13720 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13721 * xterm.c (x_term_init):
13722 * w32term.c (w32_term_init):
13723 * macterm.c (mac_term_init): Set the image_cache in the terminal.
13724 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
13725 Remove declarations.
13726 (clear_image_caches, mark_image_cache): New declarations.
13727 * xfaces.c (clear_face_cache):
13728 * xdisp.c (redisplay_internal): Use clear_image_caches.
13729 * image.c (clear_image_cache): Don't check that a frame is on
13730 a window-system before checking if it shares the same cache.
13731 (clear_image_caches): New function.
13732 (Fclear_image_cache): Use it.
13733 (mark_image): Move from allo.c.
13734 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
13735 * alloc.c (mark_image, mark_image_cache): Move to image.c.
13736 (mark_object): Don't call mark_image_cache for frames.
13737 (mark_terminals): Call mark_image_cache.
13738
13739 * lisp.h (Fdelete_terminal): Declare.
13740
13741 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
13742 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
13743 wrong_type_argument.
13744
137452008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
13746
13747 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
13748 malayalam.el, and tamil.el. Add sinhala.el.
13749
137502008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
13751
13752 * xterm.c (x_connection_closed): Consolidate identical tests.
13753 (x_delete_terminal): Don't crash if called via x_connection_closed.
13754
137552008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
13756
13757 * xdisp.c (decode_mode_spec): New arg string.
13758 (display_mode_element): Adjust for the above change.
13759
137602008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13761
13762 * callint.c (Fcall_interactively): Use AREF.
13763
137642008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
13765
13766 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
13767
137682008-02-18 Jan Djärv <jan.h.d@swipnet.se>
13769
13770 * xfns.c (Fx_show_tip): Set string to " " if empty.
13771
137722008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
13773
13774 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
13775 with Qt.
13776
137772008-02-17 Kenichi Handa <handa@m17n.org>
13778
13779 * ftfont.c (ftfont_shape): Return Lispy number.
13780
13781 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
13782 for GCs.
13783 (Finternal_set_font_selection_order): Call font_update_sort_order
13784 only when enable_font_backend is set.
13785 (realize_x_face): Set face->font_info to that of default face only
13786 when enable_font_backend is set.
13787
13788 * xdisp.c (handle_composition_prop): Set it->c to the fist
13789 character of the composed region.
13790 (fill_composite_glyph_string): Set base_face->font_info to
13791 s->font_info. Get a face for ascii from base_face->ascii_face.
13792 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
13793 with a face already decided.
13794 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
13795 non-negative.
13796 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
13797 call font_prepare_composition unconditionally.
13798
13799 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
13800
13801 * xterm.h (struct x_display_info): New member font.
13802
13803 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
13804 (x_set_mouse_face_gc, x_new_font): Likewise.
13805 (x_term_init): Setup display_info->font.
13806 (x_delete_terminal): Free display_info->font.
13807
13808 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
13809
13810 * ftxfont.c (ftxfont_default_fid): Delete it.
13811 (ftxfont_open): Set xfont->fid to 0.
13812 (ftxfont_end_for_frame): Clear data specific to the frame and the
13813 font-driver.
13814
13815 * xftfont.c (xftfont_default_fid): Delete it.
13816 (xftfont_open): Set xfont->fid to 0.
13817
13818 * fontset.c (FONTSET_OBJLIST): New macro.
13819 (fontset_find_font): Update font-object list of the fontset.
13820 (free_realized_fontset): New function.
13821 (free_face_fontset): Call free_realized_fontset.
13822 (Ffont_info): Call font_close_object only when enable_font_backend
13823 is set.
13824
13825 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
13826 [HAVE_NTGUI]: Include w32term.h.
13827 [MAC_OS]: Include macterm.ch.
13828 (font_otf_ValueRecord): Use make_number.
13829 (font_finish_cache): Fix handling of reference count.
13830 (font_clear_cache): Update num_fonts.
13831 (font_open_entity): Update smallest_char_width and
13832 smallest_font_height of the frame.
13833 (font_close_object): Update num_fonts.
13834 (Fclear_font_cache): Fix finding the target cache data.
13835
138362008-02-16 Glenn Morris <rgm@gnu.org>
13837
13838 * fontset.c (Finternal_char_font): Fix compilation warning.
13839
138402008-02-16 Eli Zaretskii <eliz@gnu.org>
13841
13842 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
13843 instead of char arrays. Enlarge the size of array passed to
13844 get_token_information.
13845
13846 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
13847 warnings.
13848
138492008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
13850
13851 * .gdbinit: Don't set `args', it breaks gdb --args.
13852
138532008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
13854
13855 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
13856 within a narrowed buffer.
13857
138582008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
13859
13860 * coding.c (decode_coding_object, encode_coding_object):
13861 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
13862
138632008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13864
13865 * coding.c (coding_set_destination): Use BEG_BYTE rather than
13866 hardcoding 1.
13867 (detect_coding_system):
13868 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
13869 (string_char_to_byte, string_byte_to_char, insert_from_gap):
13870 * insdel.c (insert_from_gap):
13871 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
13872 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
13873 (string_to_multibyte):
13874 * character.c (chars_in_text, multibyte_chars_in_text):
13875 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
13876
13877 * character.h (FETCH_STRING_CHAR_ADVANCE)
13878 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
13879 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
13880 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
13881
13882 * casefiddle.c (casify_region): Only call after-change and composition
13883 functions on the part of the region that was changed.
13884
13885 * keyboard.c (read_avail_input):
13886 * frame.c (Fdelete_frame): Call Fdelete_terminal.
13887
138882008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13889
13890 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
13891 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
13892
138932008-02-11 Juanma Barranquero <lekktu@gmail.com>
13894
13895 * w32menu.c (push_submenu_start, push_submenu_end)
13896 (push_left_right_boundary, push_menu_pane, push_menu_item):
13897 * keyboard.c (read_key_sequence): Don't pass args with side effects
13898 to AREF, it fails when compiling with -DENABLE_CHECKING.
13899
139002008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
13901
13902 * Makefile.in (${lispsource}international/charprop.el):
13903 Delete this target.
13904
13905 * search.c (boyer_moore): Fix incorrect synching of the trunk and
13906 emacs-unicode-2.
13907
139082008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13909
13910 * terminal.c (Fdelete_terminal): Clean up the `force' path.
13911
139122008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13913
13914 * frame.c (Qnoelisp): New symbol.
13915 (syms_of_frame): Initialize it.
13916 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
13917 harmless Elisp code, from a strong `force' from x_connection_closed.
13918 * frame.h (Qnoelisp): Declare.
13919 * xterm.c (x_connection_closed): Pass `noelisp'.
13920
13921 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
13922 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
13923 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
13924 rather than `int' for the type of `type'.
13925
139262008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
13927
13928 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
13929
13930 * Makefile.in (GNUC): Remove support for gcc-1.x.
13931
139322008-02-10 Richard Stallman <rms@gnu.org>
13933
13934 * lisp.h (ASET): Use AREF, not ASLOT.
13935
139362008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13937
13938 * lisp.h (ASET): Check bounds.
13939
139402008-02-10 Glenn Morris <rgm@gnu.org>
13941
13942 * buffer.c (mode-name): Doc fix.
13943
139442008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13945
13946 * Makefile.in:
13947 * emacs.c:
13948 * gmalloc.c:
13949 * keyboard.c:
13950 * lisp.h:
13951 * m/ibm370aix.h:
13952 * process.c:
13953 * regex.c:
13954 * s/hpux.h:
13955 * sysdep.c:
13956 * sysselect.h:
13957 * systty.h:
13958 * unexec.c:
13959 * w32term.c:
13960 * xsmfns.c:
13961 * xterm.c: Remove code that deals with obsolete variables.
13962
13963 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
13964
13965 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
13966 nothing else needs it anymore.
13967
139682008-02-09 Eli Zaretskii <eliz@gnu.org>
13969
13970 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
13971 instead of unibyte_char_to_multibyte.
13972
139732008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13974
13975 * s/gnu-linux.h: Remove commented out code.
13976
13977 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
13978
13979 * Makefile.in: Update what RMS says about using autoconf.
13980 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
13981 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
13982 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
13983 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
13984
139852008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
13986
13987 * keymap.c (Fkey_description): Move side effect outside of macro call.
13988
13989 * xfaces.c (Finternal_make_lisp_face):
13990 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
13991
13992 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
13993 (syms_of_fontset): Use ASET.
13994
13995 * fns.c (concat): Move side effect outside of macro call.
13996 (hash_clear): Use ASET.
13997
139982008-02-08 Richard Stallman <rms@gnu.org>
13999
14000 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
14001 If FORCE, and frame has a surrogate minibuffer for another frame,
14002 delete the other frame first.
14003
140042008-02-07 Timo Savola <timo.savola@iki.fi>
14005
14006 * xterm.c (x_detect_focus_change): Handle embed client message.
14007 (handle_one_xevent): Ditto.
14008 (handle_one_xevent): If embedded and we get a button press/release,
14009 request focus.
14010 (xembed_set_info, xembed_send_message): New functions.
14011 (x_make_frame_visible): Call xembed_set_info if embedded.
14012 (x_make_frame_invisible): Call xembed_set_info if embedded.
14013 (x_term_init): Initialize Xatom_XEMBED.
14014 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
14015 (x_iconify_frame): Ditto.
14016
14017 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
14018 (enum xembed_info, enum xembed_message, enum xembed_focus)
14019 (enum xembed_modifier, enum xembed_accelerator): New.
14020 (xembed_set_info, xembed_send_message): Declare.
14021 (FRAME_X_EMBEDDED_P): New.
14022
14023 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
14024 gtk_plug_new.
14025
14026 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
14027 window ID of a frame.
14028 (x_window): Reparent frame if embedded.
14029 (Fx_create_frame): Don't set border width if embedded.
14030
14031 * emacs.c (USAGE3): Add --parent-id.
14032 (standard_args): Ditto.
14033
140342008-02-07 Jan Djärv <jan.h.d@swipnet.se>
14035
14036 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
14037
140382008-02-07 Jim Meyering <meyering@redhat.com>
14039
14040 Use "do...while (0)", not "if (1)...else" in macro definitions.
14041 The latter provokes a warning from gcc about the empty else, when
14042 followed by ";". Also, without that trailing semicolon, it would
14043 silently swallow up any following statement.
14044 * syntax.h (SETUP_SYNTAX_TABLE)
14045 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
14046 * buffer.h (DECODE_POSITION): Likewise.
14047 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
14048 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
14049 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
14050 (FETCH_CHAR_ADVANCE): Likewise.
14051 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
14052
140532008-02-07 Jim Meyering <meyering@redhat.com>
14054
14055 * lread.c [lint]: Don't include <sys/inode.h>.
14056
140572008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
14058
14059 * xselect.c (x_handle_dnd_message):
14060 * xmenu.c (digest_single_submenu, xmenu_show):
14061 * xdisp.c (with_echo_area_buffer_unwind_data)
14062 (format_mode_line_unwind_data, unwind_format_mode_line)
14063 (display_menu_bar):
14064 * eval.c (Ffetch_bytecode):
14065 * doc.c (store_function_docstring):
14066 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
14067 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
14068 * buffer.c (add_overlay_mod_hooklist): Use ASET.
14069
140702008-02-07 Kenichi Handa <handa@m17n.org>
14071
14072 * ftxfont.c (ftxfont_open): Don't set
14073 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
14074
14075 * ftfont.c (ftfont_open): Fix previous change.
14076
140772008-02-06 Jason Rumney <jasonr@gnu.org>
14078
14079 * w32font.c (w32font_text_extents): Fill in lbearing metric.
14080 Use cached metrics for ASCII characters.
14081 (w32font_open_internal): Don't set font's owning_frame.
14082 Cache metrics for ASCII characters.
14083
14084 * w32font.h (struct w32font_info): Add ascii_metrics.
14085 Remove owning_frame.
14086
140872008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
14088
14089 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
14090 to negative value.
14091
14092 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
14093
14094 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
14095
14096 * charset.c (syms_of_charset): Set QCtest and Qeq.
14097
140982008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
14099
14100 * process.c (Fstart_process):
14101 * callproc.c (Fcall_process): Handle the case where
14102 Funhandled_file_name_directory returns nil.
14103
14104 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
14105 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
14106 * font.c (check_gstring): Use them and AREF to access the vector before
14107 we know it's really a gstring.
14108 (Ffont_shape_text): Fix typo.
46e722a9 14109 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
14110
14111 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
14112 Declare.
14113
14114 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
14115
141162008-02-05 Jason Rumney <jasonr@gnu.org>
14117
14118 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
14119 Set smallest_font_height and smallest_char_width in display info.
14120
141212008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
14122
14123 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
14124
141252008-02-05 Miles Bader <miles@gnu.org>
14126
14127 * xfaces.c (get_lface_attributes, merge_named_face)
14128 (lookup_named_face, lookup_derived_face, realize_named_face):
14129 Revert 2008-02-01 change by cyd@stupidchicken.com.
14130
141312008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
14132
14133 * fontset.c (Ffontset_info): Handle the case of inhibitting the
14134 fallback fonts.
14135 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
14136
141372008-02-04 Jason Rumney <jasonr@gnu.org>
14138
14139 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
14140 set full_name.
14141 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
14142
141432008-02-03 Jason Rumney <jasonr@gnu.org>
14144
14145 * makefile.w32-in (OBJ1): Include font.o here.
14146 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
14147
141482008-02-02 Jason Rumney <jasonr@gnu.org>
14149
14150 * makefile.w32-in (temacs): Bump EMHEAP to 21.
14151
141522008-02-01 Jason Rumney <jasonr@gnu.org>
14153
14154 * s/cygwin.h: Define VIRT_ADDR_VARIES.
14155
14156 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
14157
141582008-02-01 Andreas Schwab <schwab@suse.de>
14159
14160 * Makefile.in (shortlisp, lisp): Update for rename of
14161 ../lisp/language/myanmar.el.
14162
141632008-02-01 Chong Yidong <cyd@stupidchicken.com>
14164
14165 * xfaces.c (get_lface_attributes): Delete function.
14166 (merge_named_face, lookup_named_face, lookup_derived_face)
14167 (realize_named_face): Call lface_from_face_name directly, and use
14168 the fact that merge_face_vectors does not alter its FROM argument.
14169
141702008-02-01 Jason Rumney <jasonr@gnu.org>
14171
14172 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
14173 input in the default locale. Handle non-Unicode multibyte input.
14174
141752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14176
14177 * fontset.c (reorder_font_vector): Exclude nil elements from the
14178 font group. Don't try multiple fonts.
14179 (fontset_font): Adjust for the above change.
14180 (Finternal_char_font): Return nil if the found font doesn't
14181 contain the character ch.
14182
14183 * Makefile.in (lisp, shortlisp): Add cham.el.
14184
141852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14186
14187 * font.h (FONTP): Make it return 1 also for a font-object.
14188
14189 * .gdbinit (xfontset): New function.
14190
14191 * font.c (font_find_for_lface): Check if the character C is
14192 supported or not only for the first font.
14193
14194 * fontset.c (reorder_font_vector): Fix typo.
14195 (fontset_find_font): Don't add a font-spec specifying a script.
14196 Use 0 (not Qt) for the indication of empty font-group. Change the
14197 format of RFONT-DEF. Return Qt if no font in the font-group
14198 support the character.
14199 (fontset_font): Adjust for the above change. If no font was
14200 found the character, remember that.
14201 (face_for_char): Adjust for the change of RFONT-DEF.
14202 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
14203 no font for the target.
14204 (Finternal_char_font): Adjust for the change of RFONT-DEF.
14205
142062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14207
14208 * font.c (font_load_for_face): Handle the case that the font in
14209 face->lface is a string.
14210
142112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14212
14213 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
14214
142152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14216
14217 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
14218 Fix previous change. If the frame is not on a window system,
14219 signal an error.
14220
142212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14222
14223 * coding.c (decode_coding_object, encode_coding_object): Adjust
14224 marker positions after conversion.
14225
14226 * lisp.h (struct Lisp_Marker): New member need_adjustment.
14227
142282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14229
14230 * font.c (font_find_for_lface): Fix the handling of the return
14231 value of font_has_char.
14232 (Ffont_shape_text): Fix previous change.
14233
14234 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
14235 (fontset_ref_and_range): Delete it.
14236 (fontset_find_font): Call char_table_ref_and_range instead of
14237 FONTSET_REF_AND_RANGE.
14238 (make_fontset): Don't setup font groups of Latin here.
14239 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
14240 (new_fontset_from_font): Make the specified font the default for
14241 all Latin characters.
14242
142432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14244
14245 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
14246 is on a window system before accessing the fontset of the frame.
14247
142482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14249
14250 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
14251
14252 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
14253 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
14254
14255 * font.c (Ffont_shape_text): If the font driver doesn't have a
14256 shaper function, make zero-width glyphs to have at least one-pixel
14257 width. Fix setting of `to' field of glyphs.
14258
142592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14260
14261 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
14262 glyphs.
14263
14264 * font.h (struct font_driver): Improve docstring of member `shape'.
14265
142662008-02-01 Kenichi Handa <handa@m17n.org>
14267
14268 * composite.c (syms_of_composite): Fix docstring of
14269 auto-composition-function.
14270
14271 * font.h (LGLYPH_SIZE): New macro.
14272
14273 * font.c (Ffont_fill_gstring): Stop filling when a character not
14274 supported by the font is found.
14275 (Ffont_shape_text): When a shape callback function returns nil,
14276 try at most two more times with larger gstring.
14277 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
14278
14279 * xdisp.c (handle_auto_composed_prop): Change the argument to
14280 auto-composition-function.
14281
14282 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
14283 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
14284 Lispy glyph and store it in the lgstring.
14285
14286 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
14287
14288 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
14289
142902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14291
14292 * font.c (Ffont_shape_text): Avoid unnecessary composition.
14293
14294 * fontset.c (Vfont_encoding_charset_alist): New variable.
14295 (syms_of_fontset): DEFVAR it.
14296 (reorder_font_vector, fontset_find_font): Optimize for the case of
14297 no need of reordering.
14298 (face_for_char): Map the charset property by
14299 Vfont_encoding_charset_alist.
14300
143012008-02-01 Jason Rumney <jasonr@gnu.org>
14302
14303 * w32font.c (logfonts_match): Don't check adstyle here.
14304 (font_matches_spec): Check here against physical font instead.
14305 (add_font_entity_to_list): Avoid some substitutions.
14306
14307 * font.c (font_parse_fcname): Default weight and slant to normal.
14308 (font_score): Prefer normal fonts if weight or slant unspecified.
14309 (font_score) [WINDOWSNT]: Scale weight difference down to closer
14310 match freetype scores.
14311
143122008-02-01 Jason Rumney <jasonr@gnu.org>
14313
14314 * w32font.c (w32font_text_extents): Don't use the frame stored in the
14315 font, as it may have been deleted.
14316 (w32_enumfont_pattern_entity): Map generic family to adstyle using
14317 most common hyphenless variation.
14318 (logfonts_match): Check generic family.
14319 (font_matches_spec): Don't check generic family here.
14320 (fill_in_logfont): Set generic family based on adstyle.
14321
14322 * w32font.h (w32font_get_cache): Update declaration.
14323
143242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14325
14326 * ftfont.c (ftfont_get_cache): Adjust the argument type.
14327
14328 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
14329 If none of the new drivers are available, call font_update_drivers
14330 with the old drivers.
14331
14332 * w32font.c (w32font_get_cache): Adjust the argument type.
14333
14334 * xfont.c (xfont_get_cache): Adjust the argument type.
14335
14336 * font.h (struct font_driver): Change argument type of get_cache.
14337
14338 * xftfont.c (xftfont_start_for_frame): Delete prototype.
14339
14340 * font.c (Ffont_get): Fix arguments to Fassoc.
14341 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
14342 (font_clear_cache): New function.
14343 (font_list_entities, font_matching_entity): Use font_get_cache.
14344 (font_update_drivers): Call font_clear_cache when finishing a driver.
14345
14346 * fontset.c (fontset_find_font): Fix previous change.
14347
143482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14349
14350 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
14351 dpyinfo->font_table.
14352 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
14353 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
14354
14355 * font.c (font_at): Handle the case that the arg C is negative.
14356 Handle the unibyte case.
14357 (Ffont_at): Call font_at with the arg C -1.
14358
14359 * xdisp.c (handle_auto_composed_prop): Don't get a character at
14360 the position here, and call font_at with the arg C -1.
14361 Don't check the range of the existing composition at the point.
14362
143632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14364
14365 * fontset.c (fontset_add): New args charset_id and family.
14366 Change caller.
14367 (load_font_get_repertory, fontset_find_font): Assume that
14368 font_spec is always a font-spec object.
14369 (Fset_fontset_font): Always store a font-spec object in a fontset.
14370
14371 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
14372 instead of get_property_and_range.
14373
143742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14375
14376 * xftfont.c (struct xftfont_info): Delete the member ft_face.
14377 (xftfont_open): Don't keep locking face.
14378 (xftfont_close): Don't unlock face.
14379 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
14380
14381 * fontset.c (fontset_find_font): Don't prefer a font of
14382 supplementary charset.
14383
143842008-02-01 Kenichi Handa <handa@m17n.org>
14385
14386 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
14387 script, langsys_tag to langsys, new member script.
14388 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 14389 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
14390 listing to the script specified in that property. Fix arg to
14391 OTF_check_features.
14392
143932008-02-01 Jason Rumney <jasonr@gnu.org>
14394
14395 * w32font.h: New file.
14396
14397 * w32font.c: Include it.
14398 (struct w32font_info): Add owning_frame field. Move to w32font.h.
14399 (w32font_open): Set owning_frame.
14400 (w32font_text_extents): Use owning_frame.
14401 (struct font_callback_data): Add opentype_only field.
14402 (add_font_entity_to_list): Use it to filter fonts.
14403 Don't check against full name.
14404 (w32font_list_internal): New function.
14405 (w32font_list): Use it.
14406 (w32font_match_internal): New function.
14407 (w32font_match): Use it.
14408 (w32font_open_internal): New function.
14409 (w32font_open): Use it.
14410 (w32font_get_cache, w32font_close, w32font_has_char)
14411 (w32font_encode_char, w32font_text_extents, w32font_draw):
14412 Make non-static.
14413
14414 * makefile.w32-in (w32font.o): Depend on w32font.h.
14415
144162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14417
14418 * charset.c (Fdefine_charset_internal): Record a supplementary
14419 charset at the tail of Vcharset_order_list.
14420
14421 * font.c (Ffont_shape_text): Fix the return value.
14422
14423 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
14424
14425 * xdisp.c (handle_auto_composed_prop): Fix previous change.
14426
144272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14428
14429 * ftfont.c (struct OpenTypeSpec): New struct.
14430 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
14431 (ftfont_get_open_type_spec): New function.
14432 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
14433
14434 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
14435
144362008-02-01 Jason Rumney <jasonr@gnu.org>
14437
14438 * w32font.c (add_font_entity_to_list): Compare only the beginning
14439 of full name.
14440
144412008-02-01 Kenichi Handa <handa@m17n.org>
14442
14443 * xdisp.c (handle_auto_composed_prop): Simplify the code.
14444 Never return HANDLED_RECOMPUTE_PROPS.
14445
144462008-02-01 Kenichi Handa <handa@m17n.org>
14447
14448 * font.c (font_gstring_produce): Delete it.
14449
14450 * composite.h (COMPOSITION_METHOD):
14451 Handle COMPOSITION_WITH_GLYPH_STRING.
14452
144532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14454
14455 * xfont.c (Qx): Delete.
14456 (syms_of_xfont): Don't initialize Qx.
14457
14458 * composite.h (enum composition_method):
14459 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
14460
144612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14462
14463 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
14464 (choose_face_font): Accept new form of font-spec.
14465
14466 * frame.h (font_driver_list): Declare it unconditionally.
14467 (struct frame): Define members font_driver_list and font_data_list
14468 unconditionally.
14469
14470 * fontset.c: Include "font.h" unconditionally.
14471 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
14472 (Fset_fontset_font): Accept a font-spec object.
14473
14474 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
14475 PIXEL_SIZE part a wild card.
14476
14477 * dispextern.h (struct glyph_string): Define members clip and
14478 num_clips unconditionally.
14479 (struct face): Define members font_info and extra unconditionally.
14480
14481 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
14482 ftfont_info only when HAVE_LIBOTF is defined.
14483
144842008-02-01 Andreas Schwab <schwab@suse.de>
14485
14486 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
14487 and end.
14488
144892008-02-01 Jason Rumney <jasonr@gnu.org>
14490
14491 * w32font.c (w32font_driver): Add new fields.
14492
144932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14494
14495 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
14496 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
14497 (LIBES): Add @M17N_FLT_CFLAGS@.
14498
14499 * composite.c (compose_text): Don't treat the new style
14500 composition specially.
14501
14502 * emacs.c (main): Call syms_of_font unconditionally.
14503
14504 * font.h (FONT_ENTITY_NOT_LOADABLE)
14505 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
14506 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
14507 (struct font_driver): New member shape.
14508 (font_registry_charsets): Extern it.
14509 (font_find_for_lface, font_prepare_composition): Adjust prototype.
14510 (font_otf_capability, font_drive_otf): Delete their externs.
14511
14512 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
14513 (font_charset_alist, font_registry_charsets): Move from xfont.c
14514 and rename.
14515 (font_prop_validate_otf): New function.
14516 (font_property_table): Register it for QCotf.
14517 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
14518 (font_drive_otf): Delete.
14519 (font_prepare_composition): New arg F. Adjust for the change of
14520 lispy gstring.
14521 (font_find_for_lface): New arg C.
14522 (font_load_for_face): Adjust for the change of font_find_for_lface.
14523 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
14524 lispy gstring.
14525 (Ffont_shape_text): New function.
14526 (Fopen_font): If the font size is not given, use 12-pixel.
14527 (Ffont_at): New arg STRING.
14528 (syms_of_font): Initalize font_charset_alist.
14529 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
14530 conditionally.
14531
14532 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
14533 fonts of the same font-spec. Change the format of RFONT-DEF.
14534 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
14535 Adjust for the change of RFONT-DEF.
14536 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
14537
14538 * ftfont.h: New file.
14539
14540 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
14541 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14542 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14543 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
14544 font_otf_capability and font_drive_otf, set ftfont_shape.
14545 (ftfont_list): Adjust for the change of :otf property value.
14546 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
14547 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
14548 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
14549 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14550 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
14551 (otf_gstring, gstring, m17n_flt_initialized): New variables.
14552
14553 * w32term.c (x_draw_composite_glyph_string_foreground):
14554 Adjust for the change of lispy gstring.
14555
14556 * xdisp.c (handle_composition_prop): Adjust for the change of
14557 lispy gstring. Call a function for auto-composition with the
14558 third arg it->window.
14559 (fill_composite_glyph_string): Adjust for the change of lispy string.
14560 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
14561
14562 * xfaces.c (set_font_frame_param): Adjust for the change of
14563 font_find_for_lface.
14564
14565 * xfont.c (x_font_charset_alist): Move to font.c and rename.
14566 (xfont_registry_charsets): Likewise. Change caller.
14567 (syms_of_xfont): Don't handle x_font_charset_alist.
14568
14569 * xftfont.c: Include "ftfont.h".
14570 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14571 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14572 (xftfont_close) [HAVE_LIBOTF]: Close otf.
14573 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14574 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
14575 Set xftfont_driver.shape to xftfont_shape.
14576
14577 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14578 the change of lispy gstring.
14579
145802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14581
14582 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
14583
145842008-02-01 Jason Rumney <jasonr@gnu.org>
14585
14586 * w32font.c (w32font_draw): Fill background manually.
14587
145882008-02-01 Jason Rumney <jasonr@gnu.org>
14589
14590 * font.c (Qfontp): Remove unused symbol.
14591 (QCantialias): New symbol.
14592 (syms_of_font): Define it.
14593 (font_property_table): Set a validator for QCantialias.
14594
14595 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
14596 Define if not already.
14597 (QCfamily): Share with xfaces.c.
14598 (Qstandard, Qsubpixel, Qnatural): New symbols.
14599 (syms_of_w32font): Define them. Don't define QCfamily here.
14600 (w32_antialias_type, lispy_antialias_type): New functions.
14601 (w32_enumfont_pattern_entity): New arg requested_font.
14602 Set antialias parameter if non-default was requested.
14603 (fill_in_logfont): Fill in lfQuality if :antialias specified.
14604
146052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14606
14607 * lread.c (read1): Undo the previous change.
14608
146092008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
14610
14611 * frame.c (Fdelete_frame): Call font_update_drivers only when
14612 USE_FONT_BACKEND is defined.
14613
146142008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14615
14616 * font.h (struct font_bitmap): New member bits_per_pixel.
14617 (struct font_driver): New members start_for_frame and end_for_frame.
14618 (struct font_data_list): New struct.
14619 (font_put_frame_data, font_get_frame_data): Extern them.
14620
14621 * frame.h (struct frame): New member font_data_list.
14622
14623 * font.c (font_update_drivers): Call driver->start_for_frame and
14624 driver->end_for_frame at proper timings.
14625 (font_put_frame_data, font_get_frame_data): New functions.
14626 (Ffont_spec): Add usage in the docstring.
14627
14628 * frame.c (make_frame): Initialize f->font_data_list to NULL.
14629 (Fdelete_frame): Call font_update_drivers.
14630
14631 * xftfont.c (struct xftface_info): Delete the member xft_draw.
14632 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
14633 (xftfont_get_xft_draw): New function.
14634 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
14635 (xftfont_end_for_frame): New function.
14636 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
14637
14638 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
14639 Change argument. Cache GCs in the per-frame data.
14640 (struct ftxfont_frame_data): New struct.
14641 (ftxfont_draw_bitmap): New arg gc_fore and flush.
14642 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
14643 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
14644 (ftxfont_end_for_frame): New function.
14645 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
14646
14647 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
14648
146492008-02-01 Kenichi Handa <handa@m17n.org>
14650
14651 * xselect.c (Vselection_coding_system)
14652 (Vnext_selection_coding_system): Delete them.
14653 (syms_of_xselect): Don't declare selection-coding-system and
14654 next-selection-coding-system. They are declared in select.el.
14655
146562008-02-01 Jason Rumney <jasonr@gnu.org>
14657
14658 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
14659
14660 * w32fns.c: Include imm.h.
14661 (get_composition_string_fn, get_ime_context_fn): New optional
14662 system functions.
14663 (globals_of_w32fns): Load them from imm32.dll.
14664 (ignore_ime_char): New flag.
14665 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
14666 WM_IME_ENDCOMPOSITION messages.
14667
14668 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
14669 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
14670
146712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14672
14673 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
14674 (READCHAR_REPORT_MULTIBYTE): New macro.
14675 (readchar): New 2nd arg MULTIBYTE.
14676 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
14677 Make symbol's name multibyte according to the multibyteness of the
14678 source.
14679
146802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14681
14682 * xfaces.c (face_for_overlay_string): Call lookup_face with
14683 correct arguments (fix of synching with the trunk).
14684
146852008-02-01 Kenichi Handa <handa@m17n.org>
14686
14687 * font.c (font_prop_validate_symbol, font_prop_validate_style)
14688 (font_prop_validate_non_neg, font_prop_validate_spacing):
14689 Delete argument prop_index.
14690 (font_property_table): Change arguments to validater. Change Callers.
14691 (font_lispy_object): Delete.
14692 (font_at): Use font_find_object instead fo font_lispy_object.
14693
146942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14695
14696 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
14697 and file names.
14698
146992008-02-01 Jason Rumney <jasonr@gnu.org>
14700
14701 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
14702 (font_matches_spec): Remove debug output.
14703 (add_font_entity_to_list): Avoid using substituted fonts.
14704
147052008-02-01 Jason Rumney <jasonr@gnu.org>
14706
14707 * doc.c (Fsnarf_documentation):
14708 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
14709
147102008-02-01 Miles Bader <miles@gnu.org>
14711
14712 * dispextern.h (struct glyph_row): Only define "clip" field if
14713 HAVE_WINDOW_SYSTEM is defined.
14714
147152008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14716
14717 Fix up multi-tty merge.
14718
14719 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
14720 and indentation.
14721
14722 * xfaces.c (free_realized_face, clear_face_gcs):
14723 Include font_done_for_face in the input_blocked section, just in case.
14724
14725 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
14726 (get_char_face_and_encoding): Undo last change and remove the *other*
14727 duplicate definition (i.e. keep the one that's better scoped and that
14728 includes code for the font-backend).
14729
14730 * terminal.c (create_terminal): Default keyboard_coding to
14731 `no-conversion' and terminal_coding to `undecided'.
14732
14733 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
14734
14735 * fontset.c (free_realized_fontsets): Check that the table entry does
14736 contain a fontset before trying to compare it to `base'.
14737
14738 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
14739 syms_of_charset, and syms_of_coding earlier because init_window_once
14740 now needs Vcoding_system_hash_table to be setup.
14741
14742 * coding.h (default_buffer_file_coding): Remove.
14743
14744 * coding.c (default_buffer_file_coding): Remove.
14745 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
14746 than ->symbol, and use the terminal-local coding system.
14747 (syms_of_coding): Don't setup the coding-systems that are not
14748 terminal-local.
14749 (Fdefine_coding_system_internal): Use XCAR/XCDR.
14750
14751 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
14752 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
14753
14754 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
14755 in chartab.c and were re-added here by mistake.
14756 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
14757
14758 * doc.c (Fsnarf_documentation):
14759 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
14760 src to etc.
14761
14762 * ChangeLog.10: Add mistakenly removed entry.
14763
147642008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
14765
14766 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
14767
147682008-02-01 Miles Bader <miles@gnu.org>
14769
14770 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
14771 Add extra args to FACE_FOR_CHAR.
14772
147732008-02-01 Kenichi Handa <handa@m17n.org>
14774
14775 * keymap.c (where_is_internal_1): If key is a cons, store the copy
14776 in sequence.
14777
14778 * chartab.c (map_sub_char_table, map_char_table): If the range
14779 contains just one character, call the function with that character
14780 even if the depth is not 3.
14781
147822008-02-01 Jason Rumney <jasonr@gnu.org>
14783
14784 * w32font.c (w32font_text_extents): Calculate metrics for the
14785 whole string.
14786
147872008-02-01 Jason Rumney <jasonr@gnu.org>
14788
14789 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
14790
147912008-02-01 Jason Rumney <jasonr@gnu.org>
14792
14793 * w32term.c (x_set_glyph_string_clipping): Use
14794 get_glyph_string_clip_rects.
14795 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14796 Adjust for the change of struct glyph_string.
14797
14798 * w32font.c (w32font_draw): Do clipping here.
14799
148002008-02-01 Kenichi Handa <handa@m17n.org>
14801
14802 * xftfont.c (xftfont_draw): Adjust for the change of struct
14803 glyph_string.
14804
14805 * xterm.c (x_set_glyph_string_clipping): Use
14806 get_glyph_string_clip_rects.
14807 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14808 Adjust for the change of struct glyph_string.
14809
14810 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
14811 the resulting clip(s}.
14812 (expose_overlaps): Add arg r. Change callers. Set it to
14813 row->clip temporarily.
14814 (expose_window): Redraw rows overlapping the exposed area.
14815
14816 * dispextern.h (struct glyph_row): New member clip.
14817 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
14818 clip_height, new member clip, and num_clips.
14819
148202008-02-01 Kenichi Handa <handa@m17n.org>
14821
14822 * data.c (Fchar_or_string_p): Fix docstring.
14823
148242008-02-01 Kenichi Handa <handa@m17n.org>
14825
14826 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
14827 create a temporary XftDraw object.
14828
148292008-02-01 Kenichi Handa <handa@m17n.org>
14830
14831 * font.c (Ffontp): Fix docstring.
14832
14833 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
14834 strong evidence of ISO-2022.
14835
148362008-02-01 Kenichi Handa <handa@m17n.org>
14837
14838 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
14839 SYNTAX_ENTRY_FOLLOW_PARENT.
14840
148412008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14842
14843 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
14844 its type.
14845 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
14846 Update to the new type of weak_hash_tables and next_weak.
14847
14848 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
14849 a plain C pointer to Lisp_Hash_Table.
14850
14851 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
14852 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
14853 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
14854 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
14855 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
14856 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
14857 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
14858 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
14859 (GC_EQ): Remove since they've been identical to their non-GC_
14860 alter-egos ever since the markbit was eradicated.
14861
14862 * alloc.c:
14863 * buffer.c:
14864 * buffer.h:
14865 * data.c:
14866 * fileio.c:
14867 * filelock.c:
14868 * fns.c:
14869 * frame.h:
14870 * lisp.h:
14871 * macterm.c:
14872 * print.c:
14873 * process.c:
14874 * w32fns.c:
14875 * w32menu.c:
14876 * w32term.c:
14877 * xfns.c:
14878 * xmenu.c:
14879 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
14880
148812008-02-01 Kenichi Handa <handa@m17n.org>
14882
14883 * chartab.c (map_sub_char_table): Make it work for the top-level
14884 char-table. Fix handling of parent char-table.
14885 (map_char_table): Adjust for the above change.
14886
148872008-02-01 Jason Rumney <jasonr@gnu.org>
14888
14889 * w32font.c (Qgdi): Rename from Qw32.
14890
148912008-02-01 Jason Rumney <jasonr@gnu.org>
14892
14893 * w32bdf.c (get_quoted_string): Make function static.
14894
148952008-02-01 Kenichi Handa <handa@m17n.org>
14896
14897 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
14898 bigger ascent and descent than those of the font, use them as
14899 font's ascent and descent.
14900
149012008-02-01 Kenichi Handa <handa@m17n.org>
14902
14903 * Makefile.in (${lispsource}international/charprop.el): Move this
14904 target within "#ifdef HAVE_UNIDATA" and "#endif".
14905
149062008-02-01 Kenichi Handa <handa@m17n.org>
14907
14908 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
14909 (shortlisp): Add ../lisp/language/tai-viet.el.
14910
149112008-02-01 Ulrich Mueller <ulm@gentoo.org>
14912
14913 * Makefile.in (${lispsource}international/charprop.el): Depend on
14914 temacs${EXEEXT}.
14915
149162008-02-01 Jason Rumney <jasonr@gnu.org>
14917
14918 * w32font.c (w32font_close): Delete the GDI font object.
14919
14920 * w32menu.c: Include character.h.
14921
14922 * w32proc.c: Likewise.
14923
14924 * w32select.c: Likewise.
14925
14926 * makefile.w32-in (w32proc.o): Depend on character.h.
14927
149282008-02-01 Jason Rumney <jasonr@gnu.org>
14929
14930 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
14931
14932 * w32menu.c (syms_of_w32menu): Likewise.
14933
14934 * w32proc.c (syms_of_ntproc): Likewise.
14935
14936 * w32select.c (syms_of_w32select): Likewise.
14937
14938 * w32term.c (syms_of_w32term): Likewise.
14939
149402008-02-01 Jason Rumney <jasonr@gnu.org>
14941
14942 * w32font.c (w32font_draw): Delete brush after using it.
14943
149442008-02-01 Jason Rumney <jasonr@gnu.org>
14945
14946 * w32font.c (w32font_open): Don't set font_idx.
14947 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
14948 to font settings.
14949 (w32font_draw): Fill background explicitly.
14950
149512008-02-01 Jason Rumney <jasonr@gnu.org>
14952
14953 * w32term.c (w32_initialize): Don't call w32font_initialize.
14954
14955 * w32font.c (w32font_info): Remove subranges.
14956 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
14957 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
14958 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
14959 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
14960 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
14961 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
14962 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
14963 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
14964 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
14965 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
14966 New symbols.
14967 (font_callback_data): New struct.
14968 (w32font_list, w32font_match): Use it.
14969 (w32font_open): Don't populate subranges.
14970 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
14971 (w32font_encode_char): Always return unicode code-point as-is.
14972 (w32font_text_extents): Supply a transformation matrix to
14973 GetGlyphOutline. Never look up by glyph index. Avoid looping
14974 twice. Use unicode version of GetTexExtentPoint32 instead of
14975 glyph index version.
14976 (set_fonts_frame): Remove.
14977 (w32_enumfont_pattern_entity): Add frame parameter, use it to
14978 set frame parameter. Use backward compatible fake foundries.
14979 Save generic family in extra slot under QCfamily. Make width slot
14980 constant. Save QCspacing value. Save list of scripts instead of
14981 binary subranges.
14982 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
14983 (add_font_entity_to_list): Use font_callback_data struct. Filter
14984 unwanted fonts.
14985 (add_one_font_entity_to_list): Use font_callback_data struct.
14986 (w32_registry): Default to iso10646_1.
14987 (fill_in_logfont): Use dpi from extra slot. Don't bother with
14988 string font registries. Don't fill in font name if it is a generic
14989 family name, fill family instead. Use spacing, family and script
14990 extra info to fill pitch, family and charset fields.
14991 (list_all_matching_fonts): Use font_callback_data struct.
14992 (unicode_range_for_char): Remove.
14993 (font_supported_scripts): New function.
14994 (w32font_initialize): Remove.
14995 (syms_of_w32font): Update which symbols are defined.
14996
149972008-02-01 Jason Rumney <jasonr@gnu.org>
14998
14999 * font.c (font_pixel_size): Reverse assq_no_quit args.
15000
15001 * w32term.h (FONT_WIDTH): Report max width, not average.
15002 (FONT_MAX_WIDTH): Remove.
15003 (FONT_AVG_WIDTH): New macro.
15004
15005 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
15006 redefinition of FONT_WIDTH.
15007
15008 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
15009 (w32_cache_char_metrics): Use FONT_WIDTH.
15010
15011 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
15012
150132008-02-01 Jason Rumney <jasonr@gnu.org>
15014
15015 * w32font.c (w32font_open): Make lfHeight negative.
15016
15017 * w32fns.c (x_default_font_parameter): Use new style font name.
15018 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
15019
150202008-02-01 Jason Rumney <jasonr@gnu.org>
15021
15022 * w32font.c (QCsubranges): New symbol.
15023 (w32font_open, w32font_has_char): Get subranges from subproperty
15024 of extra.
15025 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
15026 (syms_of_w32font): Define :subranges symbol.
15027
15028 * font.c (font_put_extra): Expose externally.
15029
15030 * font.h (font_put_extra): Move declaration from font.c.
15031
15032 * font.c (Ffont_get): Use font driver to determine otf capability.
15033 (adjust_anchor): Check if driver defines anchor_point before using.
15034
15035 * w32font.c (w32font_open): Handle size, height and pixel_size better.
15036 (w32font_draw): Use options.
15037 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
15038 Fix detection of truetype fonts.
15039 (registry_to_w32_charset): Handle charsets other than iso8859-1
15040 expressed as lisp symbols.
15041 (w32_registry): Express charset as lisp symbol.
15042 (fill_in_logfont): Reverse pixel and point height logic.
15043 Don't set width here. Set quality to default.
15044
15045 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
15046 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
15047
15048 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
15049 Remove redundant loop and allocation.
15050
15051 * makefile.w32-in (font.o, w32font.o): New objects.
15052 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
15053 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
15054
15055 * xdisp.c (fill_composite_glyph_string): Make the first arg to
15056 STORE_XCHARB a valid l-value.
15057
15058 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
15059 calculations for non-Truetype fonts.
15060 (x_draw_glyph_string): Sync with xterm.c.
15061 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
15062 Remove redundant code.
15063 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
15064
15065 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
15066 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
15067
15068 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
15069 (x_to_w32_charset, w32_to_x_charset): Expose externally.
15070
15071 * w32font.c: New file for w32 font backend.
15072
150732008-02-01 Kenichi Handa <handa@m17n.org>
15074
15075 * term.c: Don't include "buffer.h" twice.
15076
150772008-02-01 Kenichi Handa <handa@m17n.org>
15078
15079 * character.c (Funibyte_string): New function.
15080 (syms_of_character): Defsubr it.
15081
150822008-02-01 Jason Rumney <jasonr@gnu.org>
15083
15084 * w32term.c [USE_FONT_BACKEND]:
15085 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
15086 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
15087 (x_draw_glyph_string, x_draw_glyph_string_foreground)
15088 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
15089 (x_free_frame_resources): Sync with xterm.c.
15090
150912008-02-01 Andreas Schwab <schwab@suse.de>
15092
15093 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
15094 char-table size.
15095
150962008-02-01 Kenichi Handa <handa@m17n.org>
15097
15098 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
15099
151002008-02-01 Kenichi Handa <handa@m17n.org>
15101
15102 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
15103 font_otf_gpos, add font_drive_otf.
15104
15105 * fontset.c (fontset_find_font): Pay attention to font size
15106 specified for a font.
15107 (reorder_font_vector): Check contents of font_def.
15108
15109 * font.c (struct otf_list): Delete it.
15110 (otf_list): Make it a lisp variable.
15111 (otf_open): Use lispy otf_list.
15112 (generate_otf_features): Rename from parse_gsub_gpos_spec.
15113 (check_otf_features): New function.
15114 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
15115 New functions.
15116 (font_drive_otf): New function merging font_otf_gsub and
15117 font_otf_gpos.
15118 (font_open_for_lface): New arg spec. Change argument order.
15119 (font_load_for_face): Adjust for the change of font_open_for_lface.
15120 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
15121 Ffont_otf_gpos.
15122 (syms_of_font): Staticpro otf_list. Delete defsubr of
15123 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
15124
15125 * xfaces.c (set_font_frame_param): Adjust for the change of
15126 font_open_for_lface.
15127
15128 * font.h (font_open_for_lface): Adjust prototype.
15129 (struct font_driver): Delete members otf_gsub and otf_gpos, add
15130 member otf_drive.
15131 (font_otf_gsub, font_otf_gpos): Delete externs.
15132 (font_drive_otf): Extern it.
15133
151342008-02-01 Kenichi Handa <handa@m17n.org>
15135
15136 * font.c (font_at): If the window W is not on a window system,
15137 return Qnil.
15138
15139 * coding.c (produce_chars, encode_coding): Don't call
15140 insert_from_gap if no characters to produce.
15141
151422008-02-01 Kenichi Handa <handa@m17n.org>
15143
15144 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
15145 Fclear_face_cache.
15146
15147 * xfaces.c (face_for_font): Check also face->font==font->font.font.
15148
151492008-02-01 Miles Bader <miles@gnu.org>
15150
15151 * emacs.c (main): Change default value of `enable_font_backend' to 1.
15152 Parse "--disable-font-backend" option.
15153 (standard_args): Add "--disable-font-backend" option.
15154
151552008-02-01 Kenichi Handa <handa@m17n.org>
15156
15157 * fontset.c (fontset_find_font): New function.
15158 (fontset_font): Use fontset_find_font.
15159 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
15160 Register the specified font for all Latin characters.
15161 (new_fontset_from_font): Register the specified font for all Latin
15162 characters.
15163 (dump_fontset): For a realized fontset, include the base fontset
15164 name in the returned vector.
15165
151662008-02-01 Kenichi Handa <handa@m17n.org>
15167
15168 * character.h (CHAR_STRING): Cast C to unsigned on calling
15169 char_string.
15170
15171 * character.c (char_string): Type of arg C changed to unsigned.
15172 Signal an error if C is an invalid character code.
15173
15174 * editfns.c (general_insert_function, Fchar_to_string):
15175 Use CHARACTERP, not INTEGERP.
15176
151772008-02-01 Kenichi Handa <handa@m17n.org>
15178
15179 * character.h (MIN_MULTIBYTE_LEADING_CODE)
15180 (MAX_MULTIBYTE_LEADING_CODE): New macros.
15181
15182 * regex.c (analyse_first): Fix for multibyte characters in "case
15183 charset:" and "case categoryspec:".
15184
151852008-02-01 Andreas Schwab <schwab@suse.de>
15186
15187 * Makefile.in (LIBES): Move standard libraries to the end.
15188
151892008-02-01 Kenichi Handa <handa@m17n.org>
15190
15191 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
15192 nonzero, don't shrink the buffer nextb.
15193
15194 * buffer.h (struct buffer_text): New member inhibit_shrinking.
15195
15196 * coding.c (coding_alloc_by_making_gap): New arg offset.
15197 (alloc_destination): Call coding_alloc_by_making_gap with the arg
15198 offset.
15199 (decode_coding_iso_2022): Update coding->safe_charsets.
15200 (decode_coding_gap): Temporarily set
15201 current_buffer->text->inhibit_shrinking to 1.
15202
152032008-02-01 Kenichi Handa <handa@m17n.org>
15204
15205 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
15206 indexing into elements of s->cmp and s->char2b.
15207
152082008-02-01 Juanma Barranquero <lekktu@gmail.com>
15209
15210 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
15211
152122008-02-01 Kenichi Handa <handa@m17n.org>
15213
15214 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
15215 target_multibyte instead of multibyte.
15216 (re_match_2_internal): Call bcmp_translate with target_multibyte.
15217 (bcmp_translate): Change the argument name from multibyte to
15218 target_multibyte.
15219
152202008-02-01 Kenichi Handa <handa@m17n.org>
15221
15222 These changes are to compile a regexp into a pattern that can be
15223 used both for multibyte and unibyte targets.
15224
15225 * Makefile.in (search.o): Depend on charset.h.
15226
15227 * character.c (multibyte_char_to_unibyte_safe): New function.
15228
15229 * search.c: Include "charset.h".
15230 (compile_pattern_1): Delete argument multibyte. Don't set
15231 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
15232 (compile_pattern): Don't compare cp->buf.target_multibyte.
15233 Compare cp->buf.charset_unibyte.
15234 (compile_pattern): Set cp->buf.target_multibyte.
15235
15236 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
15237
15238 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
15239
15240 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
15241 multibyte. Change callers.
15242 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
15243 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
15244 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
15245 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
15246 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
15247 (regex_compile): Make the compiled pattern usable both for
15248 multibyte and unibyte targets.
15249 (analyse_first): Make the fastmap usable both for multibyte and
15250 unibyte targets.
15251 (TRANSLATE_VIA_MULTIBYTE): Delete.
15252 (re_match_2_internal): Pay attention to the case that the
15253 multibyteness of bufp and target may be different.
15254
152552008-02-01 Kenichi Handa <handa@m17n.org>
15256
15257 * xdisp.c (x_produce_glyphs): When a font is not found, make the
15258 empty box occupy at least one column width.
15259
152602008-02-01 Miles Bader <miles@gnu.org>
15261
15262 * Makefile.in: Remove redundant HAVE_XFT clause.
15263
152642008-02-01 Kenichi Handa <handa@m17n.org>
15265
15266 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
15267
152682008-02-01 Kenichi Handa <handa@m17n.org>
15269
15270 * fontset.c (Finternal_char_font): Fix for the case of POSITION
15271 being nil.
15272
152732008-02-01 Kenichi Handa <handa@m17n.org>
15274
15275 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
15276
152772008-02-01 Kenichi Handa <handa@m17n.org>
15278
15279 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
15280
152812008-02-01 Kenichi Handa <handa@m17n.org>
15282
15283 * search.c (simple_search): Fix previous change.
15284
152852008-02-01 Kenichi Handa <handa@m17n.org>
15286
15287 * xftfont.c (ftfont_font_format): Extern declaration.
15288
15289 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
15290
15291 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
15292 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
15293
15294 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
15295 (ftfont_font_format): Fix previous change.
15296
15297 * font.h (Ffont_xlfd_name): EXFUN it.
15298
15299 * font.c (font_parse_xlfd): Fix the array size of `f'.
15300 (register_font_driver): Use EQ to compare driver->type.
15301
15302 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
15303 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
15304 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
15305
153062008-02-01 Kenichi Handa <handa@m17n.org>
15307
15308 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
15309 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
15310
153112008-02-01 Kenichi Handa <handa@m17n.org>
15312
15313 * xfont.c (xfont_open): Set font->format.
15314
15315 * xftfont.c (xftfont_open): Set font->format.
15316
15317 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
15318 (ftfont_list): Include FC_FONTFORMAT in FcObject.
15319 (ftfont_open): Set font->format.
15320 (ftfont_font_format): New function.
15321
15322 * font.h (struct font): New member format.
15323
15324 * font.c (Qopentype): New variable.
15325 (syms_of_font): Defsym it.
15326 (Fquery_font): Change the format of the last element of the return
15327 value.
15328
153292008-02-01 Kenichi Handa <handa@m17n.org>
15330
15331 * xfns.c (xic_create_xfontset): Try the default fontset name as a
15332 last resort.
15333
153342008-02-01 Kenichi Handa <handa@m17n.org>
15335
15336 * coding.c (detect_coding_charset): Fix detection of multi-byte
15337 charset.
15338
153392008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
15340
15341 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
15342
153432008-02-01 Kenichi Handa <handa@m17n.org>
15344
15345 * xdisp.c (get_next_display_element): Set it->face_id for the
15346 first component of a composition.
15347 (x_produce_glyphs): Check if the font is changed or not for composition.
15348
153492008-02-01 Kenichi Handa <handa@m17n.org>
15350
15351 * fontset.c (Qlatin): New variable.
15352 (syms_of_fontset): Define it as a lisp symbol.
15353 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
15354
153552008-02-01 Kenichi Handa <handa@m17n.org>
15356
15357 * font.c (font_unparse_fcname): Pay attention to the case that
15358 some of font property is a null string.
15359
153602008-02-01 Kenichi Handa <handa@m17n.org>
15361
15362 * term.c: Include "composite.h".
15363 (encode_terminal_code): Output all components of composition.
15364 Check the size of encode_terminal_src.
15365 (produce_glyphs): For composition, call produce_composite_glyph.
15366 (append_composite_glyph, produce_composite_glyph): New functions.
15367
15368 * xdisp.c (x_produce_glyphs): In handling composition, if a font
15369 is not found, get font_info from the current ascii face.
15370
153712008-02-01 Kenichi Handa <handa@m17n.org>
15372
15373 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
15374 buffer-file-name to Qnil before calling insert_from_buffer.
15375
15376 * font.c (font_unparse_fcname): Pay attention to the case that
15377 foundry is a null string.
15378
153792008-02-01 Kenichi Handa <handa@m17n.org>
15380
15381 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
15382
15383 * font.c (Qunicode_sip): New variable.
15384 (syms_of_font): Declare it as a Lisp symbol.
15385
15386 * font.h (Qunicode_sip): Extern it.
15387
153882008-02-01 Kenichi Handa <handa@m17n.org>
15389
15390 * composite.c (get_composition_id): Pay attention to TAB component.
15391
15392 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
15393 TAB. Adjust for the change of s->char2b which always points to
15394 the first element of allocated memory.
15395
15396 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
15397
15398 * xdisp.c (handle_composition_prop): Set it->c to the first
15399 non-TAB component.
15400 (fill_composite_glyph_string): Change argument.
15401 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
15402 (x_produce_glyphs): Fix handling of left/right padding.
15403
154042008-02-01 Kenichi Handa <handa@m17n.org>
15405
15406 * coding.c (detect_coding_system): Fix for handling off
15407 inhibit_iso_escape_detection. Fix for the case that no coding
15408 system is defined for a specific coding category.
15409
154102008-02-01 Kenichi Handa <handa@m17n.org>
15411
15412 * font.c (font_matching_entity): Delete unused local var.
15413
15414 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
15415 opening a font.
15416
15417 * fileio.c (Finsert_file_contents): On recovering a file, assume
15418 Unix-like eol.
15419 (choose_write_coding_system): On auto-saving a file, force
15420 Unix-like eol.
15421
15422 * coding.c (setup_coding_system): Fix setting of
15423 coding->common_flags based on eol_type.
15424 (coding_inherit_eol_type): If PARENT is not nil, be sure to
15425 inherit from it.
15426
154272008-02-01 Kenichi Handa <handa@m17n.org>
15428
15429 * alloc.c (NSTATICS): Increas to 0x600.
15430
154312008-02-01 Kenichi Handa <handa@m17n.org>
15432
15433 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
15434 (ftfont_list): Don't check :name property.
15435 (ftfont_match): New function.
15436 (ftfont_pattern_entity): If the pattern doesn't contain
15437 FC_SPACING, don't assume FC_MONO.
15438
15439 * font.h (struct font_driver): New member `match'.
15440 (font_update_drivers): Adjust prototype.
15441
15442 * font.c (font_parse_fcname, font_parse_name): Don't change :name
15443 property of FONT.
15444 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
15445 them unconditionally.
15446 (font_matching_entity): New function.
15447 (font_open_by_name): Try font_matching_entity if exact match is
15448 not found.
15449 (font_update_drivers): Delete the arg FONT. Return a list of
15450 actually used backends. Don't free faces, font caches here.
15451 Don't store data in frame parameters. Don't call x_set_font.
15452 (Ffont_spec): Store :name property as is.
15453 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
15454 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
15455 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
15456 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
15457 Call font->driver->otf_gsub instead of font_otf_gsub.
15458
15459 * frame.c (x_set_font_backend): Do more works that were done in
15460 font_update_drivers before.
15461
15462 * xfont.c (xfont_match): New function.
15463 (xfont_driver): Set xfont_driver.match to xfont_match.
15464 (xfont_draw): Set font in GC if necessary.
15465
15466 * ftxfont.c (ftxfont_match): New function.
15467 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
15468
15469 * xftfont.c (xftfont_match): New function.
15470 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
15471
154722008-02-01 Kenichi Handa <handa@m17n.org>
15473
15474 * font.h (struct font): New member scalable.
15475 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
15476 (font_otf_gsub): Adjust prototype.
15477
15478 * font.c (font_otf_capability): Fix handling of the default langsys.
15479 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
15480 Check the contents of SPEC.
15481 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
15482 (check_gstring): New function.
15483 (REPLACEMENT_CHARACTER): New macro.
15484 (font_otf_gsub): New arg alternate_subst. Be sure to set all
15485 glyph codes of GSTRING.
15486 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
15487 (font_prepare_composition): Set cmp->glyph_len.
15488 (font_open_entity): Set font->scalable.
15489 (Ffont_get): Handle :otf property.
15490 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
15491 functions.
15492 (Fquery_font): Use font->font.full_name.
15493 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
15494 Sfont_otf_alternates.
15495
15496 * ftfont.c (ftfont_open): Set font->font.full_name and
15497 font->font.name properly. Fix calculation of font->font.height
15498 and font->min_width.
15499
15500 * ftxfont.c (ftxfont_create_gcs): New function.
15501 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
15502 (ftxfont_draw_backgrond): Fix filling region.
15503 (ftxfont_default_fid): New function.
15504 (ftxfont_open): Set xfont->fid to the return value of
15505 ftxfont_default_fid.
15506 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
15507 (ftxfont_done_face): Free only GCs that are created by
15508 ftxfont_create_gcs.
15509 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
15510
15511 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
15512 Clip to src->width, etc (not src->clip_XXX).
15513
15514 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
15515 FontBackend frame parameter.
15516
155172008-02-01 Kenichi Handa <handa@m17n.org>
15518
15519 * font.h (struct font_driver_list): New member `on'.
15520 (Fclear_font_cache): EXFUN it.
15521 (font_update_drivers): Extern it.
15522
15523 * font.c (font_unparse_fcname): Fix typo (swidth->width).
15524 (font_list_entities): Check driver_list->on.
15525 (register_font_driver): Initalize `on' member to 0.
15526 (font_update_drivers): New function.
15527 (Fclear_font_cache): Check driver_list->on.
15528
15529 * frame.h (Qfont_backend): Extern it.
15530 (x_set_font_backend): Extern it.
15531
15532 * frame.c (Qfont_backend): New variable.
15533 (frame_parms): New element for font-backend.
15534 (x_set_font_backend): New function.
15535
15536 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
15537 FontBackend frame parameter.
15538 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
15539 x_set_font_backend.
15540
15541 * xfont.c (xfont_list): Don't try listing by :name property if the
15542 name is not for XLFD.
15543
155442008-02-01 Kenichi Handa <handa@m17n.org>
15545
15546 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
15547 (LGLYPH_SET_TO): New macros.
15548 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
15549 element of G is vector or not.
15550 (font_at): Extern it.
15551
15552 * font.c: Include window.h.
15553 (font_lispy_object): New function.
15554 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
15555 end of valid glyph.
15556 (font_close_object): Fix getting (struct font *).
15557 (font_at): New function.
15558 (Ffont_get): If FONT is a font-object, get entity from it.
15559 (Ffont_make_gstring): Initialize elements of glyphs with nil.
15560 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
15561 range check.
15562 (Ffont_at): New function.
15563 (syms_of_font): Defsubr Sfont_at.
15564
15565 * xdisp.c (it_props): Move the entry for Qauto_composed to just
15566 before the entry for Qcomposition.
15567 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
15568 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
15569 the font in gstring.
15570 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
15571 LGLYPH_FORM (g) to detect the end of valid glyph.
15572 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
15573 we are composing with gstring.
15574
15575 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
15576 Check if adjustment is vector or not.
15577
15578 * Makefile.in (font.o): Make it depends on window.h.
15579
155802008-02-01 Kenichi Handa <handa@m17n.org>
15581
15582 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
15583 adjustment is vector or not.
15584
155852008-02-01 Miles Bader <miles@gnu.org>
15586
15587 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
15588
155892008-02-01 Kenichi Handa <handa@m17n.org>
15590
15591 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
15592 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
15593 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
15594
15595 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
15596 (DEVICE_DELTA): Fix typo.
15597 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
15598 LGLYPH format.
15599
15600 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15601 the change of LGLYPH format.
15602
156032008-02-01 Kenichi Handa <handa@m17n.org>
15604
15605 * ftfont.c (ftfont_list): Fix typo.
15606 (ftfont_build_basic_charsets): Don't include letters with diacritics.
15607
156082008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15609
15610 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
15611
15612 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
15613 xftface_info is non-NULL.
15614
156152008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15616
15617 * ftfont.c (ftfont_list): Move misplaced #endif.
15618
156192008-02-01 Kenichi Handa <handa@m17n.org>
15620
15621 * ftfont.c (ftfont_list): Pay attention to the case that
15622 FC_CAPABILITY is not defined.
15623
156242008-02-01 Kenichi Handa <handa@m17n.org>
15625
15626 * xftfont.c (xftfont_open): Set charset related members to -1.
15627
15628 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
15629 QCname.
15630 (ftfont_open): Set charset related members to -1.
15631
15632 * fontset.c (Votf_script_alist): New variable.
15633 (syms_of_fontset): Initialize it.
15634 (fontset_font): Delete unused variable.
15635
15636 * fontset.h (Votf_script_alist): Extern it.
15637
15638 * font.c (font_find_for_lface): Optimize code.
15639
15640 * font.h (font_close_object, font_merge_old_spec): Extern them.
15641
156422008-02-01 Kenichi Handa <handa@m17n.org>
15643
15644 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
15645 (syms_of_font): Initialize them.
15646 (font_pixel_size): Allow float value in dpi.
15647 (font_prop_validate_type): Delete.
15648 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
15649 Change caller.
15650 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
15651 (font_prop_validate_extra): Delete.
15652 (font_prop_validate_spacing): New function.
15653 (font_property_table): Add elements for all known properties.
15654 (get_font_prop_index): Rename from check_font_prop_name. New
15655 argument FROM. Change caller.
15656 (font_prop_validate): Validate all known properties.
15657 (font_put_extra): Delete argument force. Change caller.
15658 (font_expand_wildcards): Make it static. Fix the way of shrinking
15659 the possible range.
15660 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
15661 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
15662 Change caller.
15663 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
15664 (font_parse_fcname): Delete argument merge. Fix parsing of point
15665 size. Don't validate properties values here. Change caller.
15666 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
15667 (font_open_by_name): Delete unused variable.
15668 (Ffont_spec): Likewise. Validate property values.
15669 (Ffont_match_p): New function.
15670
15671 * font.h (QCscalable): Extern it.
15672 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
15673
15674 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
15675
15676 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
15677 (xfont_list_pattern): New function.
15678 (xfont_list): Use xfont_list_pattern.
15679
156802008-02-01 Kenichi Handa <handa@m17n.org>
15681
15682 * font.h (Flist_fonts): EXFUN it.
15683
156842008-02-01 Jason Rumney <jasonr@gnu.org>
15685
15686 * w32term.c (w32_initialize): Add back smoothing_type and
15687 smoothing_enabled definitions.
15688
156892008-02-01 Kenichi Handa <handa@m17n.org>
15690
15691 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
15692 s->face->font on determining underline position.
15693
156942008-02-01 Kenichi Handa <handa@m17n.org>
15695
15696 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
15697 (font_has_char): Accept font-object too.
15698 (font_find_for_lface): Try at first with a size specified in face.
15699
157002008-02-01 Kenichi Handa <handa@m17n.org>
15701
15702 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
15703 font_open_by_name.
15704
157052008-02-01 Kenichi Handa <handa@m17n.org>
15706
15707 * font.h (QCspacing, QCdpi): Extern them.
15708 (enum font_spacing): New enum.
15709 (FONT_PIXEL_SIZE_QUANTUM): New macro.
15710
15711 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
15712 (QCspacing, QCdpi): New variables.
15713 (syms_of_font): Initialize them.
15714 (font_pixel_size): New function.
15715 (font_put_extra): New function.
15716 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
15717 in FONT_EXTRA.
15718 (font_parse_fcname): Handle enumerated values (e.g. bold).
15719 Fix handling font size. Add QCname property that contains only
15720 unknown properties.
15721 (font_score): Change argument. Change caller. Pay attention to
15722 FONT_PIXEL_SIZE_QUANTUM.
15723 (font_sort_entites, font_list_entities, font_find_for_lface)
15724 (font_open_for_lface, font_open_by_name): Fix handling of font size.
15725 (Ffont_spec): Add QCname property that contains only unknown properties.
15726
15727 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
15728 include weight in listing pattern, instead check weight of each
15729 listed font. Don't include scalable in pattern. Pay attention to
15730 FONT_PIXEL_SIZE_QUANTUM.
15731
157322008-02-01 Kenichi Handa <handa@m17n.org>
15733
15734 * font.c (font_parse_fcname): Fix parsing of point-size.
15735 (font_unparse_fcname): Produce symbolic names for style properties.
15736 (font_list_entities): Handle float size correctly.
15737 (font_open_by_name): Prefer `normal' property values if the name
15738 doesn't specify them.
15739
15740 * fontset.c (Finternal_char_font): Use font_get_name, not
15741 Ffont_xlfd_name.
15742
15743 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
15744 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
15745 pattern. Don't force scalable.
15746
15747 * xftfont.c (xftfont_open): For generating a name, start from
15748 96-byte buffer.
15749
157502008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15751
15752 * frame.h (x_new_fontset2): Fix prototype.
15753
157542008-02-01 Kenichi Handa <handa@m17n.org>
15755
15756 * font.h (struct font_driver): Delete member parse_name.
15757 (font_match_p, font_get_spec, font_parse_fcname)
15758 (font_unparse_fcname): Extern them.
15759 (font_get_name): Adjust prototype.
15760
15761 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
15762 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
15763 (font_expand_wildcards): Fix handling ENCODING field. Avoid
15764 unnecessary checks for weight, slant, and swidth.
15765 (font_parse_fcname): New function.
15766 (font_unparse_fcname): New function.
15767 (font_parse_name): New function.
15768 (font_match_p): New function.
15769 (font_get_name): Change return value to Lisp string.
15770 (font_get_spec): New function.
15771 (Qunspecified, Qignore_defface): Don't extern them.
15772 (font_find_for_lface): Assume that LFACE is fully specified.
15773 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
15774 object, use it for FACE.
15775 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
15776 driver->parse_name.
15777 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
15778
15779 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
15780 prototype.
15781
15782 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
15783 argument F. Don't call Fnew_fontset. Instead, directly call
15784 make_fontset.
15785
15786 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
15787
15788 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
15789 of x_new_fontset2.
15790
15791 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
15792 (Qsans__serif): New variables.
15793 (ftfont_generic_family_list): New variable.
15794 (syms_of_ftfont): Initialize the above variables.
15795 (ftfont_pattern_entity): Delete argument NAME.
15796 (ftfont_list_generic_family): New function.
15797 (ftfont_parse_name): Delete this function.
15798 (ftfont_list): Try generic family only when FcFontList found no font.
15799 (ftfont_list_family): Fix args to FcObjectSetBuild.
15800
15801 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
15802 object in attrs[LFACE_FONT_INDEX].
15803 (set_lface_from_font_name): Cancel all changes for font-backend.
15804 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
15805 function.
15806 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
15807 font object in QCfont attribute.
15808 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
15809 (realize_default_face) [USE_FONT_BACKEND]: Call
15810 set_lface_from_font_and_fontset.
15811
15812 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
15813 "fixed", and signal error here if no suitable font was found.
15814
15815 * xfont.c (xfont_parse_name): Delete this function.
15816
15817 * xftfont.c (xftfont_open): Change coding style of error
15818 handling. Generate fontconfig's fontname pattern.
15819
15820 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
15821 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
15822
15823 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
15824 Both args FONTSET and FONT_OBJECT must be existing ones.
15825
158262008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15827
15828 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
15829
158302008-02-01 Kenichi Handa <handa@m17n.org>
15831
15832 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
15833
15834 * font.h (struct font): Fix typo.
15835
15836 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
15837 XLFD_XXX_INDEX.
15838 (enum xlfd_field_mask): New enum.
15839 (intern_font_field): Changed argument. Change caller. If digits
15840 are followed by non-digits, return a symbol.
15841 (font_expand_wildcards): New function.
15842 (font_parse_xlfd): Fix wildcard handling.
15843 (Ffont_spec): If :name is specified, reflect the info in the other
15844 properties.
15845
15846 * ftfont.c (ftfont_pattern_entity): Fix typo.
15847 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
15848 locale.
15849
158502008-02-01 Kenichi Handa <handa@m17n.org>
15851
15852 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
15853
15854 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
15855 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
15856 registry doesn't specify encoding part.
15857 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
15858 (font_open_by_name): At first try parsing the name.
15859 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
15860 as Lisp symbols.
15861
15862 * fontset.c (reorder_font_vector): Pay attention to the case that
15863 the 3rd element of font_def is nil.
15864 (fontset_font): For the default fontset, append one more fontset
15865 elements for a script-based font specification. Don't add script
15866 attribute on finding a font.
15867 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
15868 font name.
15869 (fontset_ascii_font): If a font can't be opened, return nil.
15870
15871 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
15872 (ftfont_pattern_entity): New function.
15873 (ftfont_get_cache): Assume that freetype_font_cache is already
15874 initialized.
15875 (ftfont_list): Handle the case that a file is specified in font
15876 name. Use ftfont_pattern_entity to generate entities.
15877 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
15878 (syms_of_ftfont): Initialize freetype_font_cache.
15879
15880 * xftfont.c (xftfont_open): Make the font name fontconfig's
15881 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
15882 (xftfont_close): Free font->font.name if not NULL.
15883
15884 * xfont.c (xfont_list): If script is specified for a font, return
15885 null_vector.
15886 (xfont_list_family): Declare argument type.
15887
15888 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
15889 name, set LFACE_FONT (lface) to nil.
15890
15891 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
15892 return Qnil.
15893
158942008-02-01 Kenichi Handa <handa@m17n.org>
15895
15896 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
15897 (standard_args): Add "-enable-font-backend".
15898
158992008-02-01 Kenichi Handa <handa@m17n.org>
15900
15901 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
15902 (struct xftdraw_list, xftdraw_list): Delete them.
15903 (register_xftdraw, check_xftdraw): Delete them.
15904 (xftfont_prepare_face): Don't call register_xftdraw.
15905 (xftfont_done_face): Don't call check_xftdraw.
15906 (xftfont_draw): Get background color only when with_background is
15907 nonzero.
15908
15909 * xfont.c (xfont_encode_char): Fix calculation of char2b.
15910
159112008-02-01 Kenichi Handa <handa@m17n.org>
15912
15913 These changes are for the new font handling codes.
15914
15915 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
15916 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
15917 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
15918 (FONTSRC, FONTOBJ): New variables.
15919 (obj): Add $(FONTOBJ).
15920 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
15921 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
15922 @LIBOTF_LIBS@.
15923 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
15924 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
15925
15926 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
15927
15928 * character.h (Vscript_representative_chars): Extern it.
15929
15930 * character.c (Vscript_representative_chars): New variable.
15931 (syms_of_character): Declare it as a Lisp variable.
15932
15933 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
15934 enable_font_backend is nonzero, accept the composition method
15935 COMPOSITION_WITH_GLYPH_STRING.
15936
15937 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
15938 enumeration COMPOSITION_WITH_GLYPH_STRING.
15939
15940 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
15941 members clip_x, clip_y, clip_width, and clip_height.
15942 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
15943
15944 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
15945 --enable-font-backend. Call syms_of_font.
15946
15947 * fns.c (assoc_no_quit): New function.
15948
15949 * fontset.h (FONT_INFO_FROM_FACE): New macro.
15950 (face_for_font, new_fontset_from_font)
15951 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
15952
15953 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
15954 (fontset_font, fontset_ascii, face_for_char)
15955 (make_fontset_for_ascii_face, Ffont_info)
15956 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
15957 is nonzero, use font-backend mechanism.
15958 (find_font_encoding): Make it non-static.
15959 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
15960 New functions.
15961
15962 * frame.h (struct frame): New members resx and resy.
15963 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
15964 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
15965
15966 * frame.c [USE_FONT_BACKEND]: Include "font.h".
15967 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
15968
15969 * lisp.h (assoc_no_quit): Extern it.
15970
15971 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
15972 Through out the file, use FONT_INFO_FROM_FACE instead of
15973 FONT_INFO_FROM_ID, use get_per_char_metric instead of
15974 rif->per_char_metric.
15975 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
15976 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
15977 (get_glyph_face_and_encoding, fill_composite_glyph_string)
15978 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15979 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
15980 nonzero, use font-backend mechanism.
15981 (get_per_char_metric): New function.
15982
15983 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
15984 (set_lface_from_font_name)
15985 (set_font_frame_param, free_realized_face)
15986 (prepare_face_for_display, clear_face_gcs)
15987 (Finternal_set_font_selection_order, realize_x_face)
15988 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
15989 font-backend mechanism.
15990 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
15991 (load_face_font) [USE_FONT_BACKEND]: Abort.
15992 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
15993 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
15994
15995 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
15996 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
15997 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
15998 nonzero, register all available font drivers. Call
15999 x_default_font_parameter for deciding a font.
16000 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
16001
16002 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
16003 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
16004 (x_set_glyph_string_clipping_exactly)
16005 (x_compute_glyph_string_overhangs)
16006 (x_draw_glyph_string_foreground)
16007 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
16008 (x_free_frame_resources) [USE_FONT_BACKEND]: If
16009 enable_font_backend is nonzero, use font-backend mechanism.
16010 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
16011
160122008-02-01 Kenichi Handa <handa@m17n.org>
16013
16014 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
16015 system_eol_type.
16016 (syms_of_coding): Initialize system_eol_type.
16017
16018 * process.c (Fset_process_coding_system): Inherit system's eol
16019 format if necessary.
16020
160212008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16022
16023 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
16024
160252008-02-01 Kenichi Handa <handa@m17n.org>
16026
16027 * coding.c (decode_eol): Pay attention to buffer relocation in
16028 del_range_2.
16029 (decode_coding): Call decode_eol before restoring undo_list.
16030
160312008-02-01 Kenichi Handa <handa@m17n.org>
16032
16033 * charset.c (Fdefine_charset_internal): Fix setting of
16034 emacs_mule_bytes.
16035
160362008-02-01 Kenichi Handa <handa@m17n.org>
16037
16038 * keyboard.c (read_char): Check if C is a character or not before
16039 looking up Vkeyboard_translate_table.
16040
160412008-02-01 Kenichi Handa <handa@m17n.org>
16042
16043 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
16044 condition to terminate the loop.
16045
160462008-02-01 Kenichi Handa <handa@m17n.org>
16047
16048 * coding.c (produce_composition): Compare charbuf[i] instead of
16049 args[i] against 0.
16050 (Fterminal_coding_system): Use EQ to compare Lisp objects.
16051
160522008-02-01 Kenichi Handa <handa@m17n.org>
16053
16054 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
16055 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
16056 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
16057 detect_coding.
16058 (emacs_mule_char): Handle old style (Emacs 20) component character
16059 of a composition.
16060 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
16061 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
16062 composition rule.
16063 (decode_coding_emacs_mule): Handle invalid bytes correctly.
16064
160652008-02-01 Kenichi Handa <handa@m17n.org>
16066
16067 * coding.c (encode_coding_ccl): Allocate destination dynamically
16068 when necessary.
16069
160702008-02-01 Kenichi Handa <handa@m17n.org>
16071
16072 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
16073 the loop. When quitted, show a proper error message.
16074
160752008-02-01 Kenichi Handa <handa@m17n.org>
16076
16077 * xterm.c (x_set_glyph_string_clipping_exactly): Set
16078 src->clip_head and src->clip_tail temporarily instead of src->hl.
16079
16080 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
16081 character sequence.
16082 (Fccl_execute_on_string): Use ASET, not XSET.
16083
160842008-02-01 Kenichi Handa <handa@m17n.org>
16085
16086 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
16087
160882008-02-01 Kenichi Handa <handa@m17n.org>
16089
16090 * coding.c (decode_coding): Fix the condition of terminating the
16091 decoding loop.
16092
160932008-02-01 Kenichi Handa <handa@m17n.org>
16094
16095 * data.c (Faset): On setting a character bigger than 255 in a
16096 unibyte string, signal an error instead of make the string multibyte.
16097
160982008-02-01 Kenichi Handa <handa@m17n.org>
16099
16100 * charset.c (map_charset_chars): Fix for ascii-compatible charset
16101 made by a mapping table.
16102
161032008-02-01 Kenichi Handa <handa@m17n.org>
16104
16105 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
16106 not.
16107 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
16108 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
16109
16110 * xterm.c (x_draw_composite_glyph_string_foreground): Check
16111 s->face is NULL or not.
16112
161132008-02-01 Kenichi Handa <handa@m17n.org>
16114
16115 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
16116 (x_draw_glyph_string): Fix drawing of right_overhang and
16117 left_overhang around/on cursor.
16118
16119 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
16120
161212008-02-01 Kenichi Handa <handa@m17n.org>
16122
16123 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
16124
161252008-02-01 Kenichi Handa <handa@m17n.org>
16126
16127 * coding.c (Fdefine_coding_system_internal)
16128 (Fdefine_coding_system_alias): Avoid a duplicated element in
16129 Vcoding_system_alist.
16130
161312008-02-01 Kenichi Handa <handa@m17n.org>
16132
16133 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
16134
16135 * coding.c (Qcoding_system_define_form): New variable.
16136 (syms_of_coding): Intern and staticpro it.
16137 (Fcoding_system_p): Check Qcoding_system_define_form.
16138 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
16139
16140 * coding.h (CODING_SYSTEM_P): If ID is not available, call
16141 Fcoding_system_p.
16142 (CHECK_CODING_SYSTEM): If ID is not available, call
16143 Fcheck_coding_system.
16144 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
16145 Try also Fcheck_coding_system.
16146
161472008-02-01 Kenichi Handa <handa@m17n.org>
16148
16149 * coding.c (code_conversion_restore): GCPRO arg.
16150
161512008-02-01 Kenichi Handa <handa@m17n.org>
16152
16153 * character.c (lisp_string_width): Check multibyteness of STRING.
16154
161552008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16156
16157 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
16158 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
16159 (decode_mac_font_name): Use decode_coding_c_string instead of
16160 decode_coding.
16161 (x_load_font): Initialize fontp->fontset to -1. Set
16162 fontp->encoding_type.
16163
161642008-02-01 Kenichi Handa <handa@m17n.org>
16165
16166 * search.c (search_buffer): Give up BM search on case-fold-search
16167 if one of a target character has a case-equivalence of different
16168 byte length even if that target charcter is an ASCII.
16169 (simple_search): Fix calculation of byte length of matched text.
16170 (boyer_moore): Fix handling of case-equivalent multibyte characters.
16171
161722008-02-01 Kenichi Handa <handa@m17n.org>
16173
16174 * coding.c (decode_coding): Fix handling of invalid bytes.
16175
161762008-02-01 Kenichi Handa <handa@m17n.org>
16177
16178 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
16179 Unicode characters.
16180
161812008-02-01 Kenichi Handa <handa@m17n.org>
16182
16183 * coding.c (encode_coding_object): If a pre-write-conversion
16184 function makes a new buffer, kill it.
16185
161862008-02-01 Kenichi Handa <handa@m17n.org>
16187
16188 * coding.c (QCascii_compatible_p): New variable.
16189 (syms_of_coding): Initialize it.
16190 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
16191 calling string_char.
16192 (record_conversion_result): Add `default:' case.
16193 (coding_charset_list): Delete unused variable `coding_type'.
16194 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
16195 property in the plist of the coding system.
16196 (Fcoding_system_put): Check QCascii_compatible_p.
16197
161982008-02-01 Miles Bader <miles@gnu.org>
16199
16200 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
16201 removed calculation of frame `f', as it's now used.
16202
162032008-02-01 Kenichi Handa <handa@m17n.org>
16204
16205 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
16206 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
16207 (UNIDATA): New variable.
16208 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
16209 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
16210 $(RUN_TEMACS) unconditionally.
16211
162122008-02-01 Kenichi Handa <handa@m17n.org>
16213
16214 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
16215 (admindir): New variable.
16216 ($(lispsource)international/charprop.el): New target.
16217
162182008-02-01 Miles Bader <miles@gnu.org>
16219
16220 * character.c (chars-in-region): Remove obsolete function.
16221 (syms_of_character): Remove its initialization.
16222
162232008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
16224
16225 * w32select.c (validate_coding_system)
16226 (setup_windows_coding_system): New functions.
16227 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
16228 setup_windows_coding_system.
16229 (setup_config, Fw32_get_clipboard_data): Use
16230 validate_coding_system.
16231 (Fx_selection_exists): Move call to setup_config to a place
16232 where signals are allowed.
16233
16234 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
16235 (Fcheck_coding_system): Add declarations.
16236
162372008-02-01 Kenichi Handa <handa@m17n.org>
16238
16239 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
16240
162412008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16242
16243 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
16244 string as the second argument for x_new_fontset.
16245
162462008-02-01 Kenichi Handa <handa@m17n.org>
16247
16248 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
16249 (encode_coding_object): Use safe_call instead of call2.
16250
162512008-02-01 Kenichi Handa <handa@m17n.org>
16252
16253 * fontset.c (Fset_fontset_font): Check family element of a given vector.
16254
16255 * Makefile.in (lisp): Include charprop.el.
16256
162572008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16258
16259 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
16260 Not sure if it's unnecessary.
16261
162622008-02-01 Steven Tamm <steventamm@mac.com>
16263
16264 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
16265 some possibly unnecessary fontset checking code that crashed
16266 when creating a new frame.
16267
162682008-02-01 Kenichi Handa <handa@m17n.org>
16269
16270 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
16271 lookup_face.
16272
16273 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
16274
16275 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
16276
162772008-02-01 Kenichi Handa <handa@m17n.org>
16278
16279 * coding.c: Cancel the change done in HEAD on 2008-02-01.
16280 (coding_charset_list): New function.
16281
16282 * coding.h (coding_charset_list): Extern it.
16283
162842008-02-01 Kenichi Handa <handa@m17n.org>
16285
16286 * fontset.c (Fset_fontset_font): Call find_font_encoding with
16287 concatenation of family and registry.
16288
162892008-02-01 Kenichi Handa <handa@m17n.org>
16290
16291 * character.h (BYTE8_STRING): Fix typo.
16292
16293 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
16294 string to multibyte (sync to HEAD).
16295
16296 * casefiddle.c (casify_region): Handle changes in byte-length
16297 using replace_range_2 (sync to HEAD).
16298
162992008-02-01 Andreas Schwab <schwab@suse.de>
16300
16301 * chartab.c (map_char_table): GCPRO table and arg.
16302
163032008-02-01 Kenichi Handa <handa@m17n.org>
16304
16305 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
16306 already at limit.
16307
163082008-02-01 Kenichi Handa <handa@m17n.org>
16309
16310 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
16311 instead of fast_c_string_match_ignore_case.
16312 (find_font_encoding): Change argument to Lisp_Object. Use
16313 fast_string_match_ignore_case instead of
16314 fast_c_string_match_ignore_case. Change caller.
16315
163162008-02-01 Kenichi Handa <handa@m17n.org>
16317
16318 * xdisp.c (get_next_display_element): In unibyte case, decide to
16319 display in octal form by checking a character by
16320 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
16321
16322 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
16323
16324 * character.c (unibyte_has_multibyte_table): New variable.
16325
16326 * character.h (unibyte_has_multibyte_table): Extern it.
16327 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
16328
163292008-02-01 Kenichi Handa <handa@m17n.org>
16330
16331 * coding.c (encode_coding_iso_2022): Fix handling of charset
16332 annotation.
16333
163342008-02-01 Kenichi Handa <handa@m17n.org>
16335
16336 * coding.c (setup_coding_system): If coding_system is nil, use
16337 Qundecided.
16338 (Fterminal_coding_system): Return nil if terminal coding system is
16339 `undecided'.
16340 (syms_of_coding): Define coding-system `undecided' here. Setup
16341 terminal_coding as `undecided'.
16342
163432008-02-01 Kenichi Handa <handa@m17n.org>
16344
16345 * xdisp.c (message_dolog, set_message_1): Call
16346 unibyte_char_to_multibyte with arg type int.
16347
16348 * lread.c (read1): Fix reading of a char-table.
16349
16350 * print.c (print_object): Include sub char-table in circularities
16351 detection.
16352
163532008-02-01 Kenichi Handa <handa@m17n.org>
16354
16355 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
16356 Append the found sequences in car of ARGS instead of prepending.
16357
163582008-02-01 Kenichi Handa <handa@m17n.org>
16359
16360 * fileio.c (report_file_error): Make a unibyte string from
16361 strerror (errorno).
16362 (Fsubstitute_in_file_name): Fix the arg to
16363 unibyte_char_to_multibyte. It is evaluated twice.
16364
163652008-02-01 Kenichi Handa <handa@m17n.org>
16366
16367 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
16368
163692008-02-01 Kenichi Handa <handa@m17n.org>
16370
16371 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
16372 BOM is not found.
16373 (detect_coding, detect_coding_system): Optimization for ISO-2022
16374 when no 8-bit data is found.
16375
163762008-02-01 Jason Rumney <jasonr@gnu.org>
16377
16378 * w32fns.c (x_to_w32_font): Update to use new coding struct.
16379
163802008-02-01 Kenichi Handa <handa@m17n.org>
16381
16382 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
16383 CHARS.
16384
163852008-02-01 Steven Tamm <steventamm@mac.com>
16386
16387 * macterm.c (mac_encode_char): Add charset argument and update
16388 to use encoding_type.
16389 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
16390 switch to pure fontset.
16391 (decode_mac_font_name): Temporarily remove decoding.
16392 (x_font_name_to_mac_font_name): Temporarily remove encoding.
16393 (x_load_font): Temporarily remove encoding.
16394
163952008-02-01 Kenichi Handa <handa@m17n.org>
16396
16397 * xfaces.c (Fface_font): If frame is not on a window system,
16398 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
16399 refer to face->font.
16400 (split_font_name_into_vector, build_font_name_from_vector)
16401 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
16402 when HAVE_WINDOW_SYSTEM is defined.
16403
164042008-02-01 Kenichi Handa <handa@m17n.org>
16405
16406 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
16407 (x_produce_glyphs): Fix setting of members of cmp in case
16408 cmp->glyph_len is zero.
16409
16410 * fontset.c (Fset_fontset_font): Fix docstring.
16411 (Ffontset_info): Make it backward compatible. New arg ALL.
16412
164132008-02-01 Kim F. Storm <storm@cua.dk>
16414
16415 * process.c (read_process_output): Grow decoding_buf when needed;
16416 this could cause a crash in allocate_string and compact_small_strings.
16417
164182008-02-01 Kenichi Handa <handa@m17n.org>
16419
16420 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
16421
164222008-02-01 Kenichi Handa <handa@m17n.org>
16423
16424 * coding.c (setup_coding_system): Set coding->common_flags
16425 correctly for raw-text.
16426 (consume_chars): On encoding unibyte text by raw-text, don't check
16427 multibyte form.
16428 (encode_coding): On encoding by raw-text, never use translation tables.
16429
16430 * fileio.c (e_write): Short cut for the case of no encoding.
16431
164322008-02-01 Kenichi Handa <handa@m17n.org>
16433
16434 * coding.c (detect_coding, detect_coding_system): Delete unused
16435 variables.
16436
164372008-02-01 Kenichi Handa <handa@m17n.org>
16438
16439 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
16440 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
16441
164422008-02-01 Kenichi Handa <handa@m17n.org>
16443
16444 * coding.c (Ffind_coding_systems_region_internal): Include
16445 raw-text and no-conversion in the result.
16446
164472008-02-01 Kenichi Handa <handa@m17n.org>
16448
16449 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
16450 (load_font_get_repertory): Delete unnecessary check of ENCODING of
16451 FONT_DEF.
16452 (font_def_arg, add_arg, from_arg, to_arg): New args.
16453 (set_fontset_font): Change argument.
16454 (Fset_fontset_font): Fix for the case that TARGET is a script
16455 name and charset name.
16456 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
16457
164582008-02-01 Kenichi Handa <handa@m17n.org>
16459
16460 * fontset.c (fontset_font): Rename from fontset_face. Change return
16461 value.
16462 (face_suitable_for_char_p, face_for_char): Adjust for the change
16463 of fontset_font.
16464 (make_fontset_for_ascii_face): Fix setting of the fontset element
16465 for ASCII.
16466 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
16467 to get a font name.
16468 (Ffontset_info): Adjust for the change of fontset_font.
16469
16470 * coding.c (emacs_mule_char): Check invalid code more rigidly.
16471
16472 * character.h (LEADING_CODE_LATIN_1_MIN)
16473 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
16474
164752008-02-01 Kenichi Handa <handa@m17n.org>
16476
16477 * editfns.c (check_translation): New function.
16478 (Ftranslate_region_internal): Handle M:N mapping.
16479
164802008-02-01 Kenichi Handa <handa@m17n.org>
16481
16482 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
16483
164842008-02-01 Kenichi Handa <handa@m17n.org>
16485
16486 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
16487 goto invalid_code.
16488 (decode_coding_iso_2022): Fix handling of invalid designation.
16489
16490 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
16491 after calling code_conversion_save.
16492
164932008-02-01 Kenichi Handa <handa@m17n.org>
16494
16495 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
16496
16497 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
16498
16499 * fontset.c: Include "intervals.h".
16500 (fontset_face): Fix comparing of Lisp_Objects.
16501 (free_face_fontset, new_fontset_from_font_name): Fix
16502 Lisp_Object/int mixup.
16503
16504 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
16505
16506 * coding.c: Add many prototypes for static functions.
16507 (get_translation_table): Allow max_lookup to be NULL.
16508 (decode_coding, Ffind_coding_systems_region_internal)
16509 (Funencodable_char_position, Fcheck_coding_systems_region): Call
16510 get_translation_table with max_lookup NULL.
16511
165122008-02-01 Kenichi Handa <handa@m17n.org>
16513
16514 * coding.c (get_translation_table): Declare it as Lisp_Object.
16515 (LOOKUP_TRANSLATION_TABLE): New macro.
16516 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
16517 instead of CHAR_TABLE_REF.
16518
165192008-02-01 Kenichi Handa <handa@m17n.org>
16520
16521 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
16522 annotation data format.
16523 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
16524 Change arguments FROM and TO to single argument NCHARS. Change caller.
16525 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
16526 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16527 (decode_coding_ccl, decode_coding_charset): Pay attention to
16528 coding->charbuf_used.
16529 (get_translation): New function.
16530 (produce_chars): New arguments translation_table and last_block.
16531 Translate characters here. Return number of carryover chars.
16532 Change caller.
16533 (produce_composition): New argument pos. Change caller.
16534 Adjust for the change of annotation data format.
16535 (produce_charset, produce_annotation): Likewise.
16536 (decode_coding, encode_coding): Don't call translate_chars.
16537 (consume_chars): New arg translation_table. Change caller.
16538 (translate_chars): Delete.
16539 (syms_of_coding): Make translation-table's number of extra slots 2.
16540
165412008-02-01 Kenichi Handa <handa@m17n.org>
16542
16543 * search.c (simple_search): Fix setting this_pos_byte in backward
16544 search.
16545
16546 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
16547 byte sequence.
16548 (detect_coding_ccl): Fix setting of the variable valids.
16549
165502008-02-01 Kenichi Handa <handa@m17n.org>
16551
16552 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
16553
16554 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
16555
16556 * editfns.c (Ftranslate_region_internal): Rename from
16557 Ftranslate_region. Accept a char-table in TABLE.
16558 (syms_of_editfns): Defsubr Stranslate_region_internal.
16559
16560 * xfaces.c (set_lface_from_font_name): If a font is specified for
16561 a frame, generate a fontset from the font.
16562 (build_scalable_font_name): If the scalable font is requested for
16563 a specific size, don't change that size.
16564 (try_font_list): Try a scalable font also in the case that a
16565 pattern string is specified.
16566
165672008-02-01 Kenichi Handa <handa@m17n.org>
16568
16569 * xfaces.c (Fface_font): New optional arg CHARACTER.
16570
165712008-02-01 Kenichi Handa <handa@m17n.org>
16572
16573 * charset.h (CHARSET_OFFSET): New macro.
16574
165752008-02-01 Kenichi Handa <handa@m17n.org>
16576
16577 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
16578
16579 * fontset.c (fontset_face): Handle the case that repertory is a
16580 char-table.
16581 (find_font_encoding): Return nil for unknown encoding.
16582 (Fset_fontset_font): Ignore a font of unknown encoding.
16583
165842008-02-01 Kenichi Handa <handa@m17n.org>
16585
16586 * keymap.c (describe_vector): Handle default value of a char table.
16587
16588 * fontset.c (fontset_face): Handle fallback fonts correctly.
16589 (Ffontset_info): Return infomation about fallback fonts.
16590
165912008-02-01 Kenichi Handa <handa@m17n.org>
16592
16593 * fontset.c (FONTSET_DEFAULT): New macro.
16594 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
16595 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
16596 the case that it is nil.
16597 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
16598 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
16599
16600 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
16601 subset or superset.
16602
166032008-02-01 Kenichi Handa <handa@m17n.org>
16604
16605 * emacs.c (main): Call init_charset after syms_of_XXX.
16606
16607 * charset.c (Vcharset_map_directory): Delete.
16608 (Vcharset_map_path): New variable.
16609 (load_charset_map_from_file): Use Vcharset_map_path instead.
16610 (init_charset): Initialize Vcharset_map_path.
16611 (syms_of_charset): Delete declaration of "charset-map-directory",
16612 add declaration of "charset-map-path".
16613
166142008-02-01 Kenichi Handa <handa@m17n.org>
16615
16616 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
16617 ASCII only string.
16618
16619 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
16620
16621 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
16622 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
16623
166242008-02-01 Kenichi Handa <handa@m17n.org>
16625
16626 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
16627
16628 * coding.c (QCmnemonic, QCdefalut_char)
16629 (QCdecode_translation_table, QCencode_translation_table)
16630 (QCpost_read_conversion, QCpre_write_conversion): New variables.
16631 (get_translation_table): Return a list of translation tables if
16632 necessary.
16633 (decode_coding): Call get_translation_table with ENCODEP 0.
16634 (char_encodable_p): If translation_table is non-nil, always call
16635 translate_char.
16636 (Fdefine_coding_system_internal): Accept list of translation
16637 tables as :encode-translation-table and :decode-translation-table.
16638 (Fcoding_system_put): New function.
16639 (syms_of_coding): Declare new symbols. Defsubr
16640 Scoding_system_put.
16641 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
16642 typically JISX0212.
16643
16644 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
16645 when the charset is superset type.
16646
16647 * character.c (translate_char): Accept list of translation tables.
16648
166492008-02-01 Kenichi Handa <handa@m17n.org>
16650
16651 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
16652 (CODING_ATTR_TRANS_TBL): New macro.
16653
16654 * coding.c (get_translation_table): New function.
16655 (translate_chars): Fix the bug of skipping annotation data.
16656 (decode_coding, encode_coding): Utilize get_translation_table.
16657 (char_encodable_p, Funencodable_char_position): Translate char if
16658 necessary.
16659 (Ffind_coding_systems_region_internal)
16660 (Fcheck_coding_systems_region): Setup translation table for encode
16661 in a coding system attribute vector in advance.
16662 (Fdefine_coding_system_internal): Allow a symbol as translation
16663 table. For shift-jis type coding system, allow 4th charset.
16664
166652008-02-01 Kenichi Handa <handa@m17n.org>
16666
16667 * coding.c (decode_coding_sjis): Check the first byte rigidly.
16668
16669 * xdisp.c (get_next_display_element): Pass -1 as POS to
16670 FACE_FOR_CHAR if displaying a C-string.
16671
166722008-02-01 Kenichi Handa <handa@m17n.org>
16673
16674 * composite.c (get_composition_id): Handle xoff and yoff in a
16675 composition rule.
16676
16677 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
16678 (struct composition): New member lbearing and rbearing.
16679
16680 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
16681 (x_get_glyph_overhangs): Handle a composition glyph.
16682 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
16683
16684 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
16685 composition glyph.
16686
166872008-02-01 Kenichi Handa <handa@m17n.org>
16688
16689 * print.c: Include charset.h.
16690 (Vprint_charset_text_property): New variable.
16691 (Qdefault): Extern it.
16692 (PRINT_STRING_NON_CHARSET_FOUND)
16693 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
16694 (print_check_string_result): New variable.
16695 (print_check_string_charset_prop): New function.
16696 (print_prune_charset_plist): New variable.
16697 (print_prune_string_charset): New function.
16698 (print_object): Call print_prune_string_charset if
16699 Vprint_charset_text_property is not t.
16700 (print_interval): Print nothing if interval->plist is nil.
16701 (syms_of_print): Declare Vprint_charset_text_property as a lisp
16702 variable. Init and staticpro print_prune_charset_plist.
16703
167042008-02-01 Kenichi Handa <handa@m17n.org>
16705
16706 * fontset.c (new_fontset_from_font_name): Use the specified font
16707 for all characters in the new fontset.
16708
16709 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16710 OBJECT args.
16711
16712 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
16713 OBJECT args for composition too.
16714
16715 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16716 OBJECT args.
16717
167182008-02-01 Kenichi Handa <handa@m17n.org>
16719
16720 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
16721
16722 * fontset.c (reorder_font_vector): Adjust for the change of
16723 FONT_DEF format.
16724 (fontset_face): New arg id. Change caller.
16725 (face_for_char): New args pos and object.
16726 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
16727 (fs_query_fontset): Check NAME by Fassoc too.
16728 (Fset_fontset_font): Allow non-XLFD font name.
16729 (Ffontset_info): Adjust for the change of FONT_DEF format.
16730
16731 * fontset.h (face_for_char): Adjust prototype.
16732
16733 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
16734 (append_space, extend_face_to_end_of_line)
16735 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16736 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
16737
16738 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
16739 POS and OBJECT args.
16740
16741 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
16742 POS and OBJECT args.
16743
167442008-02-01 Jason Rumney <jasonr@gnu.org>
16745
16746 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
16747 of GlobalAlloc'ed memory.
16748
167492008-02-01 Kenichi Handa <handa@m17n.org>
16750
16751 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
16752
16753 * charset.h (charset_table_used): Delete extern.
16754
16755 * charset.c (charset_table_used): Make it static.
16756 (map_charset_chars): Fix args to c_function with.
16757
16758 * chartab.c (map_sub_char_table_for_charset): Fix args to
16759 c_function with.
16760
16761 * coding.h (enum coding_result_code): Delete
16762 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
16763
16764 * coding.c (Qinsufficient_source, Qinconsistent_eol)
16765 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
16766 (Vlast_code_conversion_error): New variables.
16767 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
16768 (ONE_MORE_BYTE): Record error if any instead of signaling an
16769 error. If non-ASCII multibyte char is found, return the negative
16770 value of the code. All callers changed to check it.
16771 (ONE_MORE_BYTE_NO_CHECK): Likewise.
16772 (record_conversion_result): New function. Change all codes setting
16773 coding->result to call this function.
16774 (detect_coding_utf_8, decode_coding_utf_8)
16775 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
16776 Don't use the local variable incomplete.
16777 (emacs_mule_char): Change the second arg to `const'.
16778 (decode_coding): Fix of flushing out unprocessed data.
16779 (make_conversion_work_buffer): Fix making of a work buffer.
16780 (decode_coding_object): Return coding->dst_object.
16781
16782 * fontset.c (set_fontset_font): Fix args.
16783
16784 * lisp.h (CHARACTERBITS): Define as 22.
16785
16786 * process.c (send_process): Be sure to set coding->src_multibyte.
16787
16788 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
16789
167902008-02-01 Kenichi Handa <handa@m17n.org>
16791
16792 * xdisp.c (handle_auto_composed_prop): Give limit to
16793 Fnext_single_char_property_change.
16794
167952008-02-01 Kenichi Handa <handa@m17n.org>
16796
16797 * composite.c (syms_of_composite): Don't make the composition hash
16798 table weak.
16799
16800 * fontset.c (Fset_fontset_font): Fix docstring.
16801
16802 * lisp.h (detect_coding_system): Adjust prototype.
16803
16804 * fileio.c (kill_workbuf_unwind): Delete this function.
16805 (Finsert_file_contents): Adjust the call of detect_coding_system.
16806 Get conversion_buffer by code_conversion_save. Use the macro
16807 CODING_MAY_REQUIRE_DECODING. After decoding, update
16808 coding_system.
16809
16810 * coding.h (make_conversion_work_buffer): Delete extern.
16811 (code_conversion_save): Extern it.
16812
16813 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
16814 (CODING_GET_INFO): Delete argument eol_type. Change callers.
16815 (decode_coding_utf_8): Don't do eol converion.
16816 (detect_coding_utf_16): Check coding->src_chars, not
16817 coding->src_bytes. Add heuristics for those that have no signature.
16818 (decode_coding_emacs_mule, decode_coding_iso_2022)
16819 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16820 Don't do eol converion.
16821 (adjust_coding_eol_type): Return a new coding system.
16822 (detect_coding): Don't detect eol. Fix for utf-16 detection.
16823 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
16824 each change.
16825 (decode_coding): Pay attention to undo_list. Do eol conversion for
16826 all types of coding-systems (if necessary).
16827 (Vcode_conversion_work_buf_list): Delete it.
16828 (Vcode_conversion_reused_workbuf): Rename from
16829 Vcode_conversion_reused_work_buf.
16830 (Vcode_conversion_workbuf_name): New variable.
16831 (reused_workbuf_in_use): New variable.
16832 (make_conversion_work_buffer): Delete the arg DEPTH.
16833 (code_conversion_restore): Change argument to cons.
16834 (code_conversion_save): Delete the argument BUFFER. Change callers.
16835 (detect_coding_system): New argument src_chars. Change callers.
16836 Fix for utf-16 detection.
16837 (init_coding_once): Don't use ISO_carriage_return.
16838 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
16839 reused_workbuf_in_use.
16840
168412008-02-01 Kenichi Handa <handa@m17n.org>
16842
16843 * keymap.c (store_in_keymap): Pay attention to the case that idx
16844 is a cons specifying a character range.
16845
168462008-02-01 Kenichi Handa <handa@m17n.org>
16847
16848 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
16849 HANDLED_RECOMPUTE_PROPS.
16850
16851 * coding.c (Fdefine_coding_system_internal): Fix checking of
16852 ascii compatibility.
16853
168542008-02-01 Kenichi Handa <handa@m17n.org>
16855
16856 * charset.c (find_charsets_in_text): Delete unused locale variable.
16857 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
16858
16859 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
16860 Resync charset_list to Vemacs_mule_charset_list.
16861
16862 * keymap.c (store_in_keymap): Pay attention to the case that idx
16863 is a cons specifying a character range.
16864
168652008-02-01 Kenichi Handa <handa@m17n.org>
16866
16867 * composite.c (update_compositions): Bind inhibit-read-only, etc
16868 to t before calling remove-list-of-text-properties.
16869
16870 * print.c (print_object): Always print ASCII chars as is.
16871
168722008-02-01 Kenichi Handa <handa@m17n.org>
16873
16874 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
16875
16876 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
16877 is a char table.
16878
168792008-02-01 Kenichi Handa <handa@m17n.org>
16880
16881 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
16882
168832008-02-01 Kenichi Handa <handa@m17n.org>
16884
16885 * xfaces.c (set_lface_from_font_name): Fix for the case that
16886 FONTNAME is not fontset name.
16887
168882008-02-01 Kenichi Handa <handa@m17n.org>
16889
16890 * fns.c (base64_encode_1): Fix previous change.
16891
168922008-02-01 Kenichi Handa <handa@m17n.org>
16893
16894 * fontset.c (set_fontset_font): New function.
16895 (Fset_fontset_font): If a font is specified for a charset, use
16896 map_charset_chars to store the font spec in a fontset.
16897
168982008-02-01 Kenichi Handa <handa@m17n.org>
16899
16900 * fontset.c (fontset_face): Create a fallback fontset on demand.
16901 (make_fontset): Don't create a fallback fontset here.
16902 (free_face_fontset): Free a fallback fontset (if any) too.
16903 (n_auto_fontsets): Delete this variable.
16904 (auto_fontset_alist): New variable.
16905 (new_fontset_from_font_name): Check auto_fontset_alist.
16906 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
16907 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
16908 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
16909 Defsubr Sfontset_list_all.
16910
169112008-02-01 Kenichi Handa <handa@m17n.org>
16912
16913 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
16914
169152008-02-01 Kenichi Handa <handa@m17n.org>
16916
16917 * fontset.c (Fnew_fontset): Check NAME more rigidly.
16918
169192008-02-01 Kenichi Handa <handa@m17n.org>
16920
16921 * editfns.c (Fgoto_char): Fix docstring.
16922
169232008-02-01 Kenichi Handa <handa@m17n.org>
16924
16925 * insdel.c (insert_from_gap): Adjust intervals correctly.
16926
169272008-02-01 Jason Rumney <jasonr@gnu.org>
16928
16929 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
16930 (pfnGetFontUnicodeRanges): New dynamically loaded function.
16931 (w32_initialize): Try to load it.
16932 (x_get_font_repertory): Use it if available.
16933 (w32_encode_char): Add shortcut for unicode output.
16934
16935 * w32fns.c (w32_load_system_font): Default charset to -1.
16936 (x_to_w32_charset): Match all fonts for unicode.
16937 (w32_to_x_charset): New parameter matching. Don't return partial
16938 or wildcard charsets.
16939 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
16940 (w32_codepage_for_font): Return CP_UNICODE for unicode.
16941 (w32_to_x_font): Match charset to real charset.
16942 (enum_font_cb2): Always list unicode versions.
16943
16944 * makefile.w32-in (temacs): Increase EMHEAP.
16945
169462008-02-01 Jason Rumney <jasonr@gnu.org>
16947
16948 * w32term.c (w32_encode_char): New charset parameter.
16949 font_info.encoding becomes encoding_type.
16950 (x_get_font_repertory): New function. Warning: stub only!
16951 (x_new_font): Return quickly if font already set.
16952 (x_new_fontset): fontsetname parameter is Lisp_Object.
16953 Use new fs_query_fontset. Try new_fontset_from_font_name.
16954 Use fontset_name for return value.
16955
16956 * w32term.h: Declare x_get_font_repertory.
16957
16958 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
16959 place of find_charset_in_text. Use encode_coding_object in place
16960 of encode_coding.
16961 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
16962 decode_coding.
16963
16964 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
16965 of x_new_fontset.
16966 (w32_load_system_font): Initialize charset as unicode.
16967 font_info.encoding becomes encoding_type.
16968 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
16969 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
16970 (syms_of_w32fns): Set get_font_repertory_func.
16971
16972 * w32console.c: Include character.h. Use terminal_encode_buffer
16973 from term.c.
16974 (write_glyphs): Use new version of encode_terminal_code. Use
16975 encode_coding_object in place of encode_coding.
16976
16977 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
16978 encoding becomes encoding_type.
16979
16980 * term.c (terminal_encode_buffer): Make externally visible.
16981
16982 * makefile.w32-in: Add character.h dependancies.
16983 (character.o, chartab.o): New targets.
16984
169852008-02-01 Kenichi Handa <handa@m17n.org>
16986
16987 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
16988 CODING_ID_EOL_TYPE.
16989
169902008-02-01 Andreas Schwab <schwab@suse.de>
16991
16992 * coding.c (produce_chars): Revert last change.
16993
169942008-02-01 Kenichi Handa <handa@m17n.org>
16995
16996 * charset.h (charset_unicode): Extern it.
16997
16998 * charset.c (string_xstring_p): Check by (C >= 0x100).
16999 (find_charsets_in_text): Change format of the arc CHARSETS. New
17000 arg MULTIBYTE.
17001 (Ffind_charset_region, Ffind_charset_string): Adjust for the
17002 change of find_charsets_in_text.
17003 (Fsplit_char): Fix doc. Never return unknown.
17004
17005 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
17006
17007 * coding.c (Fdefine_coding_system_alias): Update
17008 Vcoding_system_list.
17009
17010 * fontset.c (load_font_get_repertory): Pay attention to the case
17011 that ENCODING of a font is specified by a char-table.
17012
17013 * xterm.c (x_get_font_repertory): Handle the case that the
17014 encoding of font is other than Unicode.
17015
170162008-02-01 Kenichi Handa <handa@m17n.org>
17017
17018 * term.c (encode_terminal_code): Don't handle glyph-table. Check
17019 if a character is encodable by the terminal coding system. If
17020 not, produces proper number of `?'s. Update
17021 terminal_encode_buffer and terminal_encode_buf_size if necessary.
17022 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
17023
170242008-02-01 Kenichi Handa <handa@m17n.org>
17025
17026 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
17027 variables.
17028 (encode_terminal_code): Change argument. Encode multiple
17029 characters at once. Store the result of encoding in
17030 terminal_encode_buffer.
17031 (write_glyphs, insert_glyphs): Adjust for the change of
17032 encode_terminal_code.
17033 (term_init): Initialize terminal_encode_buffer and
17034 terminal_encode_buf_size.
17035
17036 * coding.c (consume_chars): If coding->src_object is nil, don't
17037 check annotation.
17038
170392008-02-01 Kenichi Handa <handa@m17n.org>
17040
17041 * character.c (char_string): Use ASCII_CHAR_P instead of
17042 SINGLE_BYTE_CHAR_P.
17043
170442008-02-01 Kenichi Handa <handa@m17n.org>
17045
17046 * xdisp.c (handle_auto_composed_prop): Check if the last
17047 characters of auto-composed region is newly composed with the
17048 following characters.
17049 (handle_composition_prop): Fix checking of point being inside
17050 composition.
17051
170522008-02-01 Kenichi Handa <handa@m17n.org>
17053
17054 * fns.c (concat): Don't change multibyteness of the result by
17055 concatenating an 8-bit character.
17056
17057 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
17058 multibyteness of the result when newelt is an 8-bit character.
17059
170602008-02-01 Dave Love <fx@gnu.org>
17061
17062 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
17063 EMACS_INT.
17064
17065 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
17066
17067 * xfaces.c (face_numeric_value): Declare dim size_t.
17068 (Finternal_lisp_face_equal_p): Remove unused f.
17069
17070 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
17071 (MATRIX_ROW): Remove unused vars.
17072 (draw_glyphs, x_insert_glyphs, fast_find_position)
17073 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
17074 byte/char counts.
17075
17076 * regex.c (regex_compile): Remove unused var.
17077
17078 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17079
17080 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
17081 (Faccessible_keymaps, where_is_internal): Remove unused vars.
17082
17083 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
17084
17085 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
17086
17087 * fileio.c (Fwrite_region): Remove unused var.
17088
17089 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
17090 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
17091
17092 * composite.c (Fremove_list_of_text_properties): Declare.
17093
17094 * coding.c (inhibit_pre_post_conversion): Remove (unused).
17095 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
17096 (coding_inherit_eol_type): Remove unused attrs.
17097 (detect_coding): Cast arg of detect_eol.
17098
17099 * charset.c (syms_of_charset): Remove unused var p.
17100 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
17101 byte/char counts.
17102
17103 * casetab.c (set_case_table): Remove unused var.
17104
17105 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
17106 unused vars.
17107
171082008-02-01 Dave Love <fx@gnu.org>
17109
17110 * xterm.c (x_bitmap_mask): Declare.
17111
171122008-02-01 Dave Love <fx@gnu.org>
17113
17114 * xterm.c (x_term_init): Fix type error.
17115
17116 * lisp.h: Add Funibyte_char_to_multibyte.
17117
17118 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
17119 (Fset_coding_system_priority): Doc fix.
17120
17121 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
17122
17123 * indent.c (check_composition): Make start and end EMACS_INT.
17124
17125 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
17126
17127 * xdisp.c (handle_composition_prop, check_point_in_composition):
17128 Make buffer positions EMACS_INT.
17129
17130 * composite.c (find_composition, run_composition_function)
17131 (update_compositions, Ffind_composition_internal): Make buffer
17132 positions EMACS_INT.
17133
17134 * composite.h (find_composition, update_compositions): Make
17135 position args EMACS_INT.
17136
17137 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
17138
17139 * intervals.c (get_property_and_range):
17140 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
17141
17142 * unexalpha.c: Don't include varargs.h.
17143
171442008-02-01 Dave Love <fx@gnu.org>
17145
17146 * coding.h (ENCODE_UTF_8): New.
17147
17148 * Makefile.in (gtkutil.o): Depend on coding.h.
17149
17150 * coding.c (Fset_coding_system_priority): Doc fix.
17151
171522008-02-01 Kenichi Handa <handa@m17n.org>
17153
17154 * fileio.c (Finsert_file_contents): Call setup_coding_system in
17155 the case of auto saving.
17156
171572008-02-01 Andreas Schwab <schwab@suse.de>
17158
17159 * chartab.c (map_char_table, map_char_table_for_charset): Protect
17160 `range' from GC.
17161
171622008-02-01 Kenichi Handa <handa@m17n.org>
17163
17164 * coding.c (decode_coding_sjis): Check bytes more rigidly.
17165
171662008-02-01 Kenichi Handa <handa@m17n.org>
17167
17168 * fileio.c (choose_write_coding_system): Return a decided coding system.
17169 (Fwrite_region): Set Vlast_coding_system_used to the return value
17170 of choose_write_coding_system.
17171
171722008-02-01 Kenichi Handa <handa@m17n.org>
17173
17174 * charset.c (Fset_charset_priority): Pay attention to duplicated
17175 arguments.
17176
17177 * coding.c (QCcategory): New variable.
17178 (syms_of_coding): Defsym it. Set all elements of
17179 Vcoding_category_table and their symbol values.
17180 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
17181 coding-category-XXX, and coding-category-list.
17182 (Fdefine_coding_system_internal): Add category in the plist.
17183
171842008-02-01 Kenichi Handa <handa@m17n.org>
17185
17186 * callproc.c (Fcall_process): Handle carryover correctly.
17187
17188 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
17189 (raw_text_coding_system): Check NILP (coding_system).
17190 (coding_inherit_eol_type): Check NILP (coding_system) and
17191 NILP (parent).
17192 (consume_chars): Fix for the case of raw-text.
17193
17194 * process.c (read_process_output): Handle carryover correctly.
17195
171962008-02-01 Dave Love <fx@gnu.org>
17197
17198 * regex.c (re_search_2): Fix last change.
17199
172002008-02-01 Kenichi Handa <handa@m17n.org>
17201
17202 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
17203 target_multibyte. Even in a unibyte case, return a converted
17204 multibyte char.
17205 (GET_CHAR_AFTER): New macro.
17206 (PATFETCH): Translate via multibyte char.
17207 (HANDLE_UNIBYTE_RANGE): Delete this macro.
17208 (SETUP_MULTIBYTE_RANGE): New macro.
17209 (regex_compile): Setup compiled code so that its multibyteness
17210 matches that of a target. Fix the handling of "[X-YZ]" using
17211 SETUP_MULTIBYTE_RANGE.
17212 (analyse_first) <charset>: For filling fastmap for all multibyte
17213 characters, don't check by BASE_LEADING_CODE_P.
17214 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
17215 the same as RE_MULTIBYTE_P (bufp) now.
17216 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
17217 (TARGET_CHAR_AND_LENGTH): Delete this macro.
17218 (TRANSLATE_VIA_MULTIBYTE): New macro.
17219 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
17220 It is the same as RE_MULTIBYTE_P (bufp) now.
17221 <exactn>: Translate via multibyte.
17222 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
17223 translate it.
17224 <charset, charset_not>: Fetch a character by
17225 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
17226 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
17227 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
17228 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
17229 by GET_CHAR_AFTER.
17230 (bcmp_translate): Likewise.
17231
17232 * search.c (compile_pattern): Check the member target_multibyte,
17233 not the member multibyte of buf.
17234
17235 * lread.c (read1): While reading a string, set force_singlebyte
17236 and force_multibyte correctly.
17237
17238 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
17239 up of unibyte_to_multibyte_table.
17240
172412008-02-01 Kenichi Handa <handa@m17n.org>
17242
17243 * coding.c (setup_coding_system): If coding has
17244 post-read-conversion or pre-write-conversion, set
17245 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
17246 respectively.
17247 (decode_coding_gap): Run post-read-conversion if any.
17248
17249 * fileio.c (Finsert_file_contents): Even if we read into a
17250 unibyte buffer, check if we must decode the result or not.
17251
172522008-02-01 Kenichi Handa <handa@m17n.org>
17253
17254 * coding.c (make_conversion_work_buffer): Change the work buffer
17255 name to the same one as that of Emacs 21.
17256
172572008-02-01 Kenichi Handa <handa@m17n.org>
17258
17259 * coding.h (make_conversion_work_buffer): Adjust prototype.
17260 (code_conversion_restore): Don't extern it.
17261
17262 * coding.c (detected_mask): Delete unused variable.
17263 (decode_coding_iso_2022): Pay attention to the byte sequence of
17264 CTEXT extended segment, and retain those bytes as is.
17265 (decode_coding_ccl): Delete unused variable `valids'.
17266 (setup_coding_system): Delete unused variable `category'.
17267 (consume_chars): Delete unused variable `category'. Make it work
17268 for non-multibyte case.
17269 (make_conversion_work_buffer): Change argument.
17270 (saved_coding): Delete unused variable.
17271 (code_conversion_restore): Don't check saved_coding->destination.
17272 (code_conversion_save): New function.
17273 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
17274 instead of record_unwind_protect.
17275 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
17276 (detect_coding_system): Delete unused variable `mask'.
17277 (Fdefine_coding_system_internal): Delete unused variable id.
17278
17279 * fileio.c (kill_workbuf_unwind): New function.
17280 (Finsert_file_contents): On replacing, call
17281 make_conversion_work_buffer with correct args, and call
17282 record_unwind_protect with the first arg kill_workbuf_unwind.
17283
17284 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
17285
172862008-02-01 Kenichi Handa <handa@m17n.org>
17287
17288 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
17289 (fontset_add): Fix for the case that TO is less than TO1.
17290 (Ffontset_info): Don't use fallback fontset on checking the
17291 default fontset.
17292 (dump_fontset): New function for debugging.
17293
17294 * coding.c (Fdefine_coding_system_internal): Fix for the case that
17295 coding_type is Qcharset.
17296
172972008-02-01 Kenichi Handa <handa@m17n.org>
17298
17299 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
17300 (map_char_table): Don't inherit the value from the parent on
17301 initializing VAL. Adjust for the above change.
17302
173032008-02-01 Kenichi Handa <handa@m17n.org>
17304
17305 * coding.c (Qsignature, Qendian): Delete these variables.
17306 (syms_of_coding): Don't initialize them.
17307 (CATEGORY_MASK_UTF_16_AUTO): New macro.
17308 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
17309 detect_info->found.
17310 (decode_coding_utf_16): Don't detect BOM here.
17311 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
17312 is NOT utf_16_without_bom.
17313 (setup_coding_system): For a coding system of type utf-16, check
17314 if the attribute :endian is Qbig or not (not nil or not), and set
17315 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
17316 (detect_coding): If coding type is utf-16 and BOM detection is
17317 required, detect it.
17318 (Fdefine_coding_system_internal): For a coding system of type
17319 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
17320
173212008-02-01 Kenichi Handa <handa@m17n.org>
17322
17323 * coding.c (coding_set_source): Fix for the case that the current
17324 buffer is different from coding->src_object.
17325 (decode_coding_object): Don't use the conversion work buffer if
17326 DST_OBJECT is a buffer.
17327
173282008-02-01 Dave Love <fx@gnu.org>
17329
17330 * lread.c (read_emacs_mule_char) [len==2]: Index
17331 emacs_mule_charset correctly.
17332
173332008-02-01 Dave Love <fx@gnu.org>
17334
17335 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
17336 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
17337 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
17338 treated specially.)
17339 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
17340 (detected_mask): Remove Big5 bits.
17341
173422008-02-01 Kenichi Handa <handa@m17n.org>
17343
17344 The following changes are to make the font rescaling facility
17345 compatible with Emacs 21.
17346
17347 * xfaces.c (Vface_font_rescale_alist): Rename from
17348 Vface_resizing_fonts.
17349 (struct font_name): Rename member resizing_ratio to rescale_ratio.
17350 (font_rescale_ratio): Rename from font_resizing_ratio.
17351 (split_font_name): Set font->rescale_ratio.
17352 (better_font_p): Pay attention to font->rescale_ratio.
17353 (build_scalable_font_name): Likewise. Change RESX, and RESY
17354 fields.
17355 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
17356
173572008-02-01 Kenichi Handa <handa@m17n.org>
17358
17359 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
17360 (Qutf_16_le): Remove these variables.
17361 (syms_of_coding): Don't DEFSYM them.
17362 (decode_coding_utf_16): Fix handling of BOM.
17363 (encode_coding_utf_16): Fix handling of BOM.
17364
173652008-02-01 Kenichi Handa <handa@m17n.org>
17366
17367 * fileio.c (Finsert_file_contents): On replacing, before decoding
17368 the file into the work buffer, set point of the work buffer to the end.
17369
173702008-02-01 Dave Love <fx@gnu.org>
17371
17372 * coding.c (Fcheck_coding_systems_region): Fix type errors.
17373
173742008-02-01 Dave Love <fx@gnu.org>
17375
17376 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17377 and fix C types.
17378
173792008-02-01 Kenichi Handa <handa@m17n.org>
17380
17381 * xdisp.c (SKIP_GLYPHS): New macro.
17382 (set_cursor_from_row): Pay attention to string display properties.
17383
17384 * category.c (copy_category_entry): Fix for the case that RANGE
17385 is an integer.
17386
17387 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
17388
17389 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
17390
173912008-02-01 Kenichi Handa <handa@m17n.org>
17392
17393 * charset.c (Fcharset_id_internal): New function.
17394 (syms_of_charset): Defsubr it.
17395
17396 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
17397 with the last arg charset_list acquired from coding.
17398 (Fdefine_coding_system_internal): For ccl-based coding system, fix
17399 the attribute coding_attr_ccl_valids.
17400
17401 * coding.h (enum define_coding_ccl_arg_index): Set the first
17402 member coding_arg_ccl_decoder to coding_arg_max.
17403
17404 * ccl.h (ccl_driver): Adjust prototype.
17405
17406 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
17407 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 17408 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
17409 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
17410 last arg Qnil.
17411
174122008-02-01 Kenichi Handa <handa@m17n.org>
17413
17414 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
17415 call encode_char.
17416
17417 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
17418
174192008-02-01 Dave Love <fx@gnu.org>
17420
17421 * composite.c (syms_of_composite): Make composition_hash_table weak.
17422
174232008-02-01 Kenichi Handa <handa@m17n.org>
17424
17425 * dispextern.h (check_face_attributes, generate_ascii_font_name)
17426 (font_name_registry): Don't extern them.
17427 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
17428
17429 * fontset.h (Qfontset): Don't extern it.
17430 (new_fontset_from_font_name): Extern it.
17431
17432 * fontset.c: Give 8 extra slots to fontset objects.
17433 (Qfontset_info): New variable.
17434 (syms_of_fontset): Defsym it.
17435 (FONTSET_FALLBACK): New macro.
17436 (fontset_face): Try also the default fontset.
17437 (make_fontset): Realize a fallback fontset from the default fontset.
17438 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
17439 using split_font_name_into_vector and build_font_name_from_vector.
17440 (Fset_fontset_font): Access the elements of font_spec by enum
17441 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
17442 name by using split_font_name_into_vector.
17443 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
17444 generate a proper font name from the fontset name. Update
17445 Vfontset_alias_alist.
17446 (n_auto_fontsets): New variable.
17447 (new_fontset_from_font_name): New function.
17448 (Ffont_info): Store the information about fonts generated from the
17449 default fontset in the first extra slot of the returned char-table.
17450
17451 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
17452 (font_name_registry): Delete function.
17453 (split_font_name_into_vector): New function.
17454 (build_font_name_from_vector): New function.
17455 (font_list): The argument REGISTRY is now a list of registry names.
17456 (choose_face_font): If we are choosing an ASCII font, and ATTRS
17457 specifies an explicit font name, return the name as is. Make a
17458 list of registy names.
17459
17460 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
17461 of x_new_fontset.
17462 (Fx_create_frame): Don't call x_new_fontset here. Just use
17463 x_list_fonts to check the existence of fonts.
17464
17465 * xterm.h (x_new_fontset): Adjust prototype.
17466
17467 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
17468 string. Use new_fontset_from_font_name to create a fontset from a
17469 font name.
17470
174712008-02-01 Kenichi Handa <handa@m17n.org>
17472
17473 * syntax.c (Vfind_word_boundary_function_table): New name for
17474 Vnext_word_boundary_function_table.
17475 (find-word-boundary-function-table): New name for
17476 next-word-boundary-function-table.
17477
174782008-02-01 Dave Love <fx@gnu.org>
17479
17480 * Makefile.in: Fix some dependencies.
17481
17482 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
17483 set it to nil before returning.
17484
17485 * composite.c (update_compositions): Fix type error.
17486
17487 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
17488
174892008-02-01 Kenichi Handa <handa@m17n.org>
17490
17491 * xterm.c (x_new_font): Optimize for the case that the font is
17492 already set for the frame.
17493
174942008-02-01 Kenichi Handa <handa@m17n.org>
17495
17496 * chartab.c (char_table_ascii): Check if the char table contents
17497 is sub-char-table or not.
17498 (char_table_set, char_table_set_range): Fix argument to
17499 char_table_ascii.
17500
17501 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
17502 (detect_coding_utf_8, detect_coding_utf_16)
17503 (detect_coding_emacs_mule, detect_coding_iso_2022)
17504 (detect_coding_sjis, detect_coding_big5)
17505 (detect_coding_ccl, detect_coding_charset): Change argument MASK
17506 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
17507 sequence is valid in this coding system. Change callers.
17508 (MAX_ANNOTATION_LENGTH): New macro.
17509 (ADD_ANNOTATION_DATA): New macro.
17510 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
17511 ADD_ANNOTATION_DATA. Change the format of annotation data.
17512 (ADD_CHARSET_DATA): New macro.
17513 (emacs_mule_char): New argument ID. Change callers.
17514 (decode_coding_emacs_mule, decode_coding_iso_2022)
17515 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
17516 Produce charset annotation data in coding->charbuf.
17517 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
17518 to charset annotation data in coding->charbuf.
17519 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
17520 coding->common_flags if the coding system is iso-2022 based and
17521 uses designation.
17522 (produce_composition): Adjust for the new annotation data format.
17523 (produce_charset): New function.
17524 (produce_annotation): Handle charset annotation.
17525 (handle_composition_annotation, handle_charset_annotation): New
17526 functions.
17527 (consume_chars): Handle charset annotation. Utilize the above two
17528 functions.
17529 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
17530 buffer, get the deleted text as a string and set
17531 coding->src_object to that string.
17532 (detect_coding, detect_coding_system): Use the new struct
17533 coding_detection_info.
17534
17535 * coding.h (struct coding_detection_info): New structure.
17536 (struct coding_system): Adjust prototype of the member `detector'.
17537 (CODING_ANNOTATE_CHARSET_MASK): New macro.
17538
175392008-02-01 Kenichi Handa <handa@m17n.org>
17540
17541 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
17542
175432008-02-01 Dave Love <fx@gnu.org>
17544
17545 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
17546 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
17547 to new local and nullify apropos_accumulate before returning.
17548 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
17549
175502008-02-01 Kenichi Handa <handa@m17n.org>
17551
17552 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
17553 correctly.
e3eea1fc 17554
aac0c6e3
MR
175552008-02-01 Dave Love <fx@gnu.org>
17556
17557 * fns.c (Flanginfo): Call synchronize_system_time_locale.
17558
175592008-02-01 Kenichi Handa <handa@m17n.org>
17560
17561 The following changes are to make character composition happen
17562 automatically on displaying.
17563
17564 * Makefile.in (lisp, shortlisp): Add composite.elc.
17565
17566 * composite.h (Qauto_composed, Vauto_composition_function)
17567 (Qauto_composition_function): Extern them.
17568
17569 * composite.c (Vcomposition_function_table)
17570 (Qcomposition_function_table): Delete variables.
17571 (Qauto_composed, Vauto_composition_function)
17572 (Qauto_composition_function): New variables.
17573 (run_composition_function): Don't call
17574 compose-chars-after-function.
17575 (update_compositions): Clear `auto-composed' text property.
17576 (compose_chars_in_text): Delete this function.
17577 (syms_of_composite): Staticpro Qauto_composed and
17578 Qauto_composition_function. Declare Vauto_composition_function as
17579 a Lisp variable.
17580
17581 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
17582
17583 * xdisp.c (it_props): Add an entry for Qauto_composed.
17584 (handle_auto_composed_prop): New function.
17585
17586 * xselect.c (selection_data_to_lisp_data): Don't call
17587 compose_chars_in_text.
17588
175892008-02-01 Dave Love <fx@gnu.org>
17590
17591 * keyboard.c (read_char): Modify checking around use of
17592 Vkeyboard_translate_table.
17593
17594 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17595 and fix C types.
17596
175972008-02-01 Kenichi Handa <handa@m17n.org>
17598
17599 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
17600 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17601 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
17602 the case that the last byte is '\r' correctly.
17603 (decode_coding): Flush out the unprocessed data correctly.
17604 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
17605
176062008-02-01 Dave Love <fx@gnu.org>
17607
17608 * xterm.c (XTread_socket): Fix changes for defined keysyms.
17609 Add XK_ISO... case.
17610 (xaw_scroll_callback): Revert last change.
17611
176122008-02-01 Kenichi Handa <handa@m17n.org>
17613
17614 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
17615
176162008-02-01 Kenichi Handa <handa@m17n.org>
17617
17618 * xfaces.c (Vface_resizing_fonts): New variable.
17619 (struct font_name): New member `resizing_ratio'.
17620 (font_resizing_ratio): New function.
17621 (split_font_name): Set font->resizing_ratio.
17622 (better_font_p): Pay attention to font->resizing_ratio.
17623 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
17624 RESX, and RESY fields.
17625 (try_alternative_families): Try scalable fonts if
17626 Vscalable_fonts_allowed is not Qt.
17627 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
17628
176292008-02-01 Dave Love <fx@gnu.org>
17630
17631 * xterm.c (xaw_scroll_callback): Cast correctly.
17632
176332008-02-01 Dave Love <fx@gnu.org>
17634
17635 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
17636 (lispy_kana_keys): Comment out.
17637 (make_lispy_event) [XK_kana_A]: Comment out.
17638
17639 * xterm.c (xaw_scroll_callback): Cast call_data.
17640 (XTread_socket): Deal with ASCII keysyms.
17641 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
17642
176432008-02-01 Dave Love <fx@gnu.org>
17644
17645 * xterm.c (Vx_keysym_table): New.
17646 (syms_of_xterm): Initialize it.
17647 (XTread_socket): Use it.
17648 From head: Eliminate incorrect optimization that tried to avoid
17649 decoding the output of X*LookupString.
17650 (x_get_font_repertory): Delete charset declaration.
17651
176522008-02-01 Kenichi Handa <handa@m17n.org>
17653
17654 * coding.c (detect_coding_charset): If only ASCII bytes are found,
17655 return 0.
17656 (Fdefine_coding_system_internal): Setup
17657 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
17658
176592008-02-01 Dave Love <fx@gnu.org>
17660
17661 * coding.c (Fcheck_coding_system): Doc fix.
17662
17663 * editfns.c (Finsert_byte): Return a proper value.
17664
176652008-02-01 Kenichi Handa <handa@m17n.org>
17666
17667 * coding.c (decode_coding): Fix args to translate_chars. Pay
17668 attention to Vstandard_translation_table_for_decode.
17669 (encode_coding): Fix args to translate_chars. Pay attention to
17670 Vstandard_translation_table_for_encode.
17671
17672 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
17673 SINGLE_BYTE_CHAR_P.
17674
17675 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
17676 not by SINGLE_BYTE_CHAR_P.
17677
17678 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
17679 SINGLE_BYTE_CHAR_P.
17680
17681 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
17682 SINGLE_BYTE_CHAR_P.
17683
17684 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
17685 by SINGLE_BYTE_CHAR_P.
17686
17687 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
17688 SINGLE_BYTE_CHAR_P.
17689
176902008-02-01 Dave Love <fx@gnu.org>
17691
17692 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
17693
176942008-02-01 Dave Love <fx@gnu.org>
17695
17696 * fns.c (Flanginfo): Fix typo.
17697
17698 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
17699
177002008-02-01 Kenichi Handa <handa@m17n.org>
17701
17702 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
17703 (detect_coding_emacs_mule, detect_coding_iso_2022)
17704 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
17705 incomplete byte sequence. Don't update *mask when correctly detected.
17706 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
17707 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
17708 (detect_coding, detect_coding_system): Adjust for the changes above.
17709
177102008-02-01 Kenichi Handa <handa@m17n.org>
17711
17712 * character.c (char_string): Rename from
17713 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
17714 (string_char): Rename from string_char.
17715
17716 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
17717 if C is greater than MAX_3_BYTE_CHAR.
17718 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
17719 string_char instead of string_char_with_unification.
17720
177212008-02-01 Dave Love <fx@gnu.org>
17722
17723 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
17724
177252008-02-01 Kenichi Handa <handa@m17n.org>
17726
17727 * keymap.c (push_key_description): Pay attention to force_multibyte.
17728
17729 * regex.c (re_search_2): Fix for the case of unibyte buffer.
17730
177312008-02-01 Dave Love <fx@gnu.org>
17732
17733 * charset.c (define_charset_internal): Rename `supprementary'.
17734
17735 * Makefile.in (lisp, shortlisp): Remove latin-N.
17736
177372008-02-01 Dave Love <fx@gnu.org>
17738
17739 * xfns.c (x_window, x_window): Use use_xim.
17740
17741 * xterm.c (use_xim): Initialize.
17742 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
17743 (x_term_init): Maybe set use_xim.
17744
17745 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
17746
177472008-02-01 Kenichi Handa <handa@m17n.org>
17748
17749 * search.c (search_buffer): Fix case-fold-search of multibyte
17750 characters.
17751 (boyer_moore): Rename the last argument to char_high_bits.
17752
177532008-02-01 Kenichi Handa <handa@m17n.org>
17754
17755 * xdisp.c (display_string): Fix for the case of zero width glyph.
17756
17757 * xfns.c (x_set_font): Change the error message of the case that
17758 x_new_fontset returns Qt.
17759
17760 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
17761 (Finternal_set_lisp_face_attribute): Use signal_error for the
17762 error of invalid fontset.
17763
17764 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
17765 fontset, return Qt.
17766
177672008-02-01 Dave Love <fx@gnu.org>
17768
17769 * unexelf.c (unexec): Make .got handling not SGI-specific.
17770
17771 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
17772
17773 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
17774
17775 * keyboard.c (read_key_sequence): Fix type error.
17776
17777 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
17778 type error.
17779
17780 * fontset.c (fontset_add): Return Lisp_Object.
17781
177822008-02-01 Dave Love <fx@gnu.org>
17783
17784 * charset.h (charset_ordered_list_tick): Declare extern.
17785
177862008-02-01 Kenichi Handa <handa@m17n.org>
17787
17788 The following changes (and some of 2008-02-01 changes of mine) are
17789 for handling syntax, category, and case conversion for unibyte
17790 characters by converting them to multibyte on the fly. With these
17791 changes, we don't have to setup syntax and case tables for unibyte
17792 characters in each language environment.
17793
17794 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
17795 multibyte if necessary.
17796
17797 * bytecode.c (Fbyte_code): Likewise.
17798
17799 * character.h (LEADING_CODE_LATIN_1_MIN)
17800 (LEADING_CODE_LATIN_1_MAX): New macros.
17801 (unibyte_to_multibyte_table): Extern it.
17802 (unibyte_char_to_multibyte): New macro.
17803 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
17804 (CHAR_LEADING_CODE): New macro.
17805 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
17806
17807 * character.c (unibyte_to_multibyte_table): New variable.
17808 (unibyte_char_to_multibyte): Move to character.h and define as macro.
17809 (multibyte_char_to_unibyte): If C is an eight-bit character,
17810 convert it to the corresponding byte value.
17811
17812 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
17813 not 1, signals an error. Update the elements of
17814 unibyte_to_multibyte_table.
17815 (init_charset_once): Initialize unibyte_to_multibyte_table.
17816 (syms_of_charset): Define the charset `iso-8859-1'.
17817
17818 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
17819 as is without converting it to unibyte. In a unibyte buffer,
17820 convert C to multibyte before checking the syntax.
17821
17822 * lisp.h (unibyte_char_to_multibyte): Delete extern.
17823
17824 * minibuf.c (Fminibuffer_complete_word): Use the macro
17825 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
17826
17827 * regex.h (struct re_pattern_buffer): New member target_multibyte.
17828
17829 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
17830 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
17831 that is zero, convert an eight-bit char to multibyte.
17832 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
17833 non-emacs case.
17834 (PATFETCH): Convert an eight-bit char to multibyte.
17835 (HANDLE_UNIBYTE_RANGE): New macro.
17836 (regex_compile): Setup the compiled pattern for multibyte chars
17837 even if the given regex string is unibyte. Use PATFETCH_RAW
17838 instead of PATFETCH in many places. To handle `charset'
17839 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
17840 only for ASCII chars.
17841 (analyse_first) <exactn>: Simplify because the compiled pattern
17842 is multibyte.
17843 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
17844 <charset>: Use CHAR_LEADING_CODE to get leading codes.
17845 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
17846 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
17847 multibyte always 1.
17848 (re_search_2): In emacs, set the locale variable multibyte to 1,
17849 otherwise to 0. New local variable target_multibyte. Check it
17850 to decide the multibyteness of STR1 and STR2. If
17851 target_multibyte is zero, convert unibyte chars to multibyte
17852 before translating and checking fastmap.
17853 (TARGET_CHAR_AND_LENGTH): New macro.
17854 (re_match_2_internal): In emacs, set the locale variable multibyte
17855 to 1, otherwise to 0. New local variable target_multibyte. Check
17856 it to decide the multibyteness of STR1 and STR2. Use
17857 TARGET_CHAR_AND_LENGTH to fetch a character from D.
17858 <charset, charset_not>: If multibyte is nonzero, check fastmap
17859 only for ASCII chars. Call bcmp_translate with
17860 target_multibyte, not with multibyte.
17861 <begline>: Declare the local variable C as `unsigned'.
17862 (bcmp_translate): Change the last arg name to target_multibyte.
17863
17864 * search.c (compile_pattern_1): Don't adjust the multibyteness of
17865 the regexp pattern and the matching target. Set cp->buf.multibyte
17866 to the multibyteness of the regexp pattern. Set
17867 cp->but.target_multibyte to the multibyteness of the matching target.
17868 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
17869 FETCH_STRING_CHAR_ADVANCE.
17870 (Freplace_match): Convert unibyte chars to multibyte.
17871
17872 * syntax.c (char_quoted, back_comment, scan_words)
17873 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
17874 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
17875 unibyte chars to multibyte.
17876 (skip_chars): Delete the arg syntaxp, and move the code for
17877 handling syntaxes to skip_syntaxes. Change callers.
17878 Fix the case that the multibyteness of STRING and the current
17879 buffer doesn't match.
17880 (skip_syntaxes): New function.
17881 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
17882 SINGLE_BYTE_CHAR_P.
17883
178842008-02-01 Kenichi Handa <handa@m17n.org>
17885
17886 * xfaces.c (QCfontset): New variable.
17887 (LFACE_FONTSET): New macro.
17888 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
17889 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
17890 (Finternal_set_lisp_face_attribute)
17891 (Finternal_get_lisp_face_attribute): Handle QCfontset.
17892 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
17893 check also LFACE_FONTSET_INDEX.
17894 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
17895 attrs[LFACE_FONT_INDEX].
17896 (syms_of_xfaces): Intern and staticpro QCfontset.
17897
17898 * dispextern.h (enum lface_attribute_index): New member
17899 LFACE_FONTSET_INDEX.
17900
17901 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
17902
179032008-02-01 Kenichi Handa <handa@m17n.org>
17904
17905 * coding.c (coding_set_destination): Fix coding->destination for
17906 the case converting a region.
17907 (encode_coding_utf_8): Encode eight-bit chars as single byte.
17908 (encode_coding_object): Fix coding->dst_pos and
17909 coding->dst_pos_byte for the case converting a region.
17910
17911 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
17912
17913 * character.h (BYTE8_STRING): New macro.
17914
17915 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
17916
179172008-02-01 Kenichi Handa <handa@m17n.org>
17918
17919 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
17920 characters by octal form.
17921
17922 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
17923
17924 * buffer.h (_fetch_multibyte_char_len): Delete extern.
17925 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
17926 _fetch_multibyte_char_len.
17927 (FETCH_CHAR_AS_MULTIBYTE): New macro.
17928
17929 * casetab.c (set_canon, set_identity, shuffle): Simplify.
17930
17931 * casefiddle.c (casify_object): Simplify. Handle the case that
17932 the case conversion change the byte length.
17933 (casify_region): Likewise.
17934
17935 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
17936
17937 * character.c (_fetch_multibyte_char_len): Delete this variable.
17938 (syms_of_character): Setup Vprintable_chars.
17939
17940 * editfns.c (Fchar_equal): Fix for the unibyte case.
17941 (Finsert_byte): New function.
17942 (syms_of_editfns): Defsubr it.
17943
17944 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
17945 of direct code 0x3ffff.
17946
17947 * search.c (Freplace_match): Fix for the unibyte case.
17948
179492008-02-01 Kenichi Handa <handa@m17n.org>
17950
17951 * lread.c (safe_to_load_p): Fix the logic.
17952
17953 * syntax.c (scan_words): Don't treat characters belonging to
17954 different scripts as constituting a word.
17955
17956 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17957
17958 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
17959
17960 * emacs.c (main): In the case of --unibyte, instead of aborting on
17961 finding non-empty buffer, make it unibyte.
17962
179632008-02-01 Kenichi Handa <handa@m17n.org>
17964
17965 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
17966 to create a fontset.
17967
179682008-02-01 Dave Love <fx@gnu.org>
17969
17970 * character.c (Funibyte_char_to_multibyte): Doc fix.
17971
17972 * xfns.c [HAVE_STDLIB_H]: Fix last change.
17973
179742008-02-01 Kenichi Handa <handa@m17n.org>
17975
17976 * fontset.c (fontset_add): Make the type `int'.
17977 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
17978
17979 * character.c (unibyte_char_to_multibyte)
17980 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
17981 charset_unibyte, not charset_primary.
17982
17983 * charset.h (charset_unibyte): Extern it instead of charset_primary.
17984
17985 * charset.c (charset_unibyte): Rename from charset_primary.
17986 (Funibyte_charset): Rename from Fprimary_charset.
17987 (Fset_unibyte_charset): Rename from Fset_primary_charset.
17988 (syms_of_charset): Adjust for the above changes.
17989
17990 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17991 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17992 it->multibyte_p is zero.
17993
17994 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
17995 Delete extern.
17996
179972008-02-01 Kenichi Handa <handa@m17n.org>
17998
17999 * coding.c (Fdefine_coding_system_internal): Fix category setting
18000 for a coding system of type iso-2022.
18001
180022008-02-01 Kenichi Handa <handa@m17n.org>
18003
18004 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
18005
180062008-02-01 Kenichi Handa <handa@m17n.org>
18007
18008 * syntax.c (Vnext_word_boundary_function_table): New variable.
18009 (next-word-boundary-function-table): Declare it as a Lisp variable
18010 in syms_of_syntax.
18011 (scan_words): Call functions in Vnext_word_boundary_function_table
18012 if any.
18013
18014 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
18015
18016 * fontset.c (fs_load_font): If fontp->charset is not negative,
18017 return fontp without setting its members.
18018
180192008-02-01 Dave Love <fx@gnu.org>
18020
18021 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
18022
18023 * m/sparc.h (HAVE_ALLOCA): Delete.
18024
18025 * s/irix6-5.h: Don't include strings.h.
18026 (bcopy, bzero, bcmp): Don't undef.
18027
18028 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
18029
18030 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
18031 (TIOCSIGSEND): Don't test IRIX6.
18032 (bcopy, bzero, bcmp): Define conditionally.
18033
180342008-02-01 Kenichi Handa <handa@m17n.org>
18035
18036 * buffer.c (Qas, Qmake, Qto): New variables.
18037 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
18038 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
18039
18040 * callproc.c (Fcall_process): Don't call insert_1_both directly if
18041 we are inserting a process output into a multibyte buffer.
18042
18043 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
18044 multibyte_char_to_unibyte.
18045
18046 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
18047 by the primary charset, make it eight-bit char.
18048 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
18049
18050 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
18051 (charset_8_bit__control, charset_8_bit_graphic)
18052 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
18053 (define_charset_internal): New function.
18054 (syms_of_charset): Call define_charset_internal for pre-defined
18055 charsets.
18056
18057 * charset.h (charset_8_bit): Extern it.
18058
18059 * coding.c (make_conversion_work_buffer): Adjust for the change
18060 of Fset_buffer_multibyte.
18061 (encode_coding_raw_text): Increment p0 in the loop.
18062
18063 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
18064
18065 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
18066 for the change of Fset_buffer_multibyte.
18067
18068 * fns.c (Fstring_to_multibyte): New function.
18069 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
18070
180712008-02-01 Dave Love <fx@gnu.org>
18072
18073 * xfns.c (x_put_x_image): Declare args.
18074
18075 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
18076 (try_font_list): Declare an arg.
18077
18078 * xdisp.c (message2_nolog, set_message): Declare an arg.
18079
18080 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
18081
18082 * syntax.c (scan_sexps_forward): Declare an arg.
18083
18084 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
18085 Declare an arg.
18086
18087 * lisp.h (Fnew_fontset): Declare.
18088
18089 * keymap.c (push_key_description): Call CHARACTERP correctly.
18090
18091 * fontset.c (fontset_add): Declare args. Call make_number correctly.
18092 (face_for_char): Delete unused vars.
18093 (Fset_fontset_font): Doc fix. Delete unused vars.
18094
18095 * doc.c (Fsubstitute_command_keys): Delete unused vars.
18096
18097 * composite.c (update_compositions): Declare arg.
18098
18099 * cm.c (calccost, cmgoto): Declare args.
18100
18101 * charset.c: Remove `emacs' conditional. Doc fixes.
18102 (map_char_table_for_charset): Declare.
18103
18104 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
18105
18106 * ccl.c: Remove `emacs' conditional.
18107
181082008-02-01 Kenichi Handa <handa@m17n.org>
18109
18110 The following changes are to allow specifying multiple font
18111 patterns for a character range (specified by script or charset).
18112
18113 * Makefile.in (abbrev.o): Depend on syntax.h.
18114 (xfaces.o): Depend on charset.h.
18115
18116 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
18117 SINGLE_BYTE_CHAR_P.
18118
18119 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
18120
18121 * character.h (Vchar_script_table): Extern it.
18122
18123 * character.c (Vscript_alist): Delete.
18124 (Vchar_script_table, Qchar_script_table): New variable.
18125 (syms_of_character): Declare Vchar_script_table as a lisp variable
18126 and initialize it.
18127
18128 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
18129 have property char-table-extra-slots, make no extra slot.
18130
18131 * dispextern.h (struct face): Delete member `charset'.
18132 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
18133 SINGLE_BYTE_CHAR_P.
18134 (choose_face_font, lookup_non_ascii_face, font_name_registry):
18135 Add prototypes.
18136 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
18137 (generate_ascii_font_name): Rename from generate_ascii_font.
18138
18139 * fontset.h (get_font_repertory_func): New prototype.
18140 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
18141 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
18142
18143 * fontset.c (Qprepend, Qappend): New variables.
18144 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
18145 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
18146 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
18147 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
18148 (fontset_ref_and_range, fontset_add, reorder_font_vector)
18149 (load_font_get_repertory): New functions.
18150 (fontset_set): Delete.
18151 (fontset_face): New arg FACE. Return face ID, not face.
18152 Complete re-write to handle new fontset structure. Change caller.
18153 (free_face_fontset): Use ASET istead of AREF (X) = Y.
18154 (face_for_char): Don't call lookup_face.
18155 (make_fontset_for_ascii_face): New arg FACE.
18156 (fs_load_font): New arg CHARSET_ID. Don't check
18157 Vfont_encoding_alist here.
18158 (find_font_encoding): New function.
18159 (list_fontsets): Use STRINGP, not ! NILP.
18160 (accumulate_script_ranges): New function.
18161 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
18162 re-written to handle new fontset structure.
18163 (Ffontset_font): Return a copy of element.
18164 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
18165 docstring of font-encoding-alist.
18166
18167 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
18168 (Fset_fotset_font): Fix arguments to 5.
18169
18170 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
18171
18172 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
18173 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18174 (highlight_trailing_whitespace): Adjust for the change of
18175 lookup_named_face.
18176
18177 * xfaces.c: Include charset.h.
18178 (load_face_font): Delete argument C. Change caller.
18179 (generate_ascii_font_name): Rename from generate_ascii_font.
18180 (font_name_registry): New function.
18181 (cache_face): Store ascii faces before non-ascii faces in buckets.
18182 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
18183 Lookup only ascii faces.
18184 (lookup_non_ascii_face): New function.
18185 (lookup_named_face): Delete argument C. Change caller.
18186 (lookup_derived_face): Delete argument C. Change caller.
18187 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
18188 a string, just call font_list with it.
18189 (choose_face_font): Delete arguments FACE and C. New arg
18190 FONT_SPEC. Change caller.
18191 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
18192 Change caller.
18193 (realize_non_ascii_face): New function.
18194 (realize_x_face): Call load_face_font here.
18195 (realize_tty_face): Delete argument C. Change caller.
18196 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
18197 get a face ID.
18198 (dump_realized_face): Don't print charset of FACE.
18199
18200 * xfns.c (x_set_font): Always call x_new_fontset and
18201 store_frame_parameter.
18202 (Fx_create_frame): Call x_new_fontset, not x_new_font.
18203 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
18204
18205 * xterm.h (x_get_font_repertory): Extern it.
18206
18207 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
18208 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
18209 it->multibyte_p is zero.
18210 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18211 (x_new_fontset): If FONTSETNAME doesn't match any existing
18212 fontsets, create a new one.
18213 (x_get_font_repertory): New function.
18214
182152008-02-01 Kenichi Handa <handa@m17n.org>
18216
18217 * coding.c (Ffind_coding_systems_region_internal): Detect an
18218 ASCII only string correctly.
18219
18220 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
18221 version is 0.
18222
182232008-02-01 Kenichi Handa <handa@m17n.org>
18224
18225 * lread.c: Include "coding.h".
18226 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
18227 (load_each_byte, unread_char): New variables.
18228 (readchar_backlog): Delete.
18229 (readchar): Return a character unless load_each_byte is nonzero.
18230 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
18231 cons. If unread_char is not -1, simply return it.
18232 (unreadchar): Handle the case that readcharfun is
18233 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
18234 (read_multibyte): Delete.
18235 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
18236 (read_emacs_mule_char): New functions.
18237 (Fload): Even if the file doesn't have the extension ".elc", if
18238 safe_to_load_p returns a positive version number, assume that the
18239 file contains bytecompiled code. If the version is less than 22,
18240 load the file while decoding multibyte sequences by emacs-mule.
18241 (readevalloop): Don't use readchar_backlog.
18242 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
18243 (Fread_from_string): Pay attention to the case that STREAM is a cons.
18244 (read_escape): Delete the arg BYTEREP.
18245 (read1): Set load_each_byte to 1 temporarily while handling
18246 #@NUMBER. Don't call read_multibyte.
18247 (read_vector): Call Fread with a cons. If readcharfun is
18248 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
18249 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
18250 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
18251 and Qload_force_doc_strings.
18252
182532008-02-01 Kenichi Handa <handa@m17n.org>
18254
18255 * xdisp.c (face_before_or_after_it_pos): Call
18256 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
18257
182582008-02-01 Kenichi Handa <handa@m17n.org>
18259
18260 * character.h (TRAILING_CODE_P): New macro.
18261 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
18262 (string_char_with_unification): Fix prototype.
18263 (Vscript_alist): Extern it.
18264
18265 * character.c (Vscript_alist): New variable.
18266 (string_char_with_unification, str_as_unibyte)
18267 (string_escape_byte8): Add `const' to local variables.
18268 (syms_of_character): Declare script-alist as a Lisp variable.
18269
18270 * charset.h (Vcharset_ordered_list): Extern it.
18271 (charset_ordered_list_tick): Extern it.
18272 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
18273 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
18274 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
18275 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
18276 (Funify_charset): Adjust for the change of Funify_charset.
18277
18278 * charset.c (charset_ordered_list_tick): New variable.
18279 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
18280 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
18281 deunify intead of unify a charset.
18282 (string_xstring_p): Add `const' to local variables.
18283 (find_charsets_in_text): Add `const' to arguments and local variables.
18284 (encode_char): Adjust for the change of Funify_charset. Fix
18285 detecting of invalid code.
18286 (Fset_charset_priority): Increment charset_ordered_list_tick.
18287 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
18288 and TO_CODE.
18289
18290 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
18291 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
18292 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
18293 (decode_coding_ccl, consume_chars)
18294 (Ffind_coding_systems_region_internal)
18295 (Fcheck_coding_systems_region): Add `const' to local variables.
18296
18297 * print.c (print_object): Use octal form for printing the
18298 contents of a bool vector.
18299
183002008-02-01 Dave Love <fx@gnu.org>
18301
18302 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
18303 <version == 20>: Refuse to load.
18304
183052008-02-01 Dave Love <fx@gnu.org>
18306
18307 * fns.c: Move coding.h.
18308 (Qcodeset, Qdays, Qmonths): New.
18309 (concat): Use CHARACTERP instead of INTEGERP.
18310 (Flocale_codeset): Delete.
18311 (Flanginfo): New function.
18312 (syms_of_fns): Change accordingly.
18313
18314 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
18315
183162008-02-01 Dave Love <fx@gnu.org>
18317
18318 * casetab.c (init_casetab_once, init_casetab_once): Fix
18319 CHAR_TABLE_SET call.
18320
18321 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
18322
18323 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
18324
18325 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
18326 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
18327 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
18328
18329 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
18330
18331 * coding.c (ENCODE_DESIGNATION, decode_eol)
18332 (make_conversion_work_buffer, code_conversion_restore)
18333 (Fdefine_coding_system_internal): Convert Lisp types.
18334 (code_conversion_restore): Use EQ, not ==.
18335 (Fencode_coding_string): Fix code_convert_string call.
18336
18337 * coding.h (code_convert_region): Fix prototype.
18338
18339 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
18340
18341 * fontset.c (fontset_ref, fontset_set, fs_load_font)
18342 (Ffontset_info): Convert Lisp types.
18343
18344 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
18345
18346 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
18347
18348 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
18349
18350 * chartab.c: Include "...h", not <...h> in some cases.
18351
18352 * callproc.c (Fcall_process): Remove unused variables.
18353
183542008-02-01 Dave Love <fx@gnu.org>
18355
18356 * coding.c (Fset_coding_system_priority): Allow null arg list.
18357
183582008-02-01 Dave Love <fx@gnu.org>
18359
18360 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18361 (Fself_insert_and_exit): Use CHARACTERP.
18362
18363 * callproc.c (Fcall_process): Remove unused vars.
18364
18365 * xterm.c (XTread_socket): Add extra dead keysyms.
18366
18367 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
18368
18369 * dispextern.h: Remove prototypes for redraw_frame,
18370 redraw_garbaged_frames.
18371
18372 * cmds.c (Fself_insert_command): Use CHARACTERP.
18373
18374 * chartab.c (make_sub_char_table): Remove unused var.
18375 (Fset_char_table_default, Fmap_char_table): Doc fix.
18376
18377 * keymap.c (access_keymap): Remove generic char code.
18378 (push_key_description): Use CHARACTERP.
18379
183802008-02-01 Dave Love <fx@gnu.org>
18381
18382 * charset.c: Doc fixes.
18383 (Funify_charset): Extra checking.
18384
183852008-02-01 Dave Love <fx@gnu.org>
18386
18387 * lread.c: Remove some unused variables.
18388 (safe_to_load_p): If safe, return the magic number version byte.
18389 (Fload): Maybe use load-with-code-conversion.
18390
183912008-02-01 Kenichi Handa <handa@m17n.org>
18392
18393 * category.c (Fmodify_category_entry): Don't modify the contents
18394 of category_set for characters out of the range. Avoid
18395 unnecessary modification.
18396
18397 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
18398 Vchar_unify_table. The default value of the table is now nil.
18399
18400 * character.c (syms_of_character): Setup Vchar_width_table for
18401 eight-bit-control and raw-byte chars.
18402
18403 * charset.h (enum define_charset_arg_index): Delete
18404 charset_arg_parents and add charset_arg_subset and
18405 charset_arg_superset.
18406 (enum charset_attr_index): Delete charset_parents and add
18407 charset_subset and charset_superset.
18408 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
18409 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
18410 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
18411 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
18412 (CHARSET_SUPERSET): New macros.
18413 (charset_work): Extern it.
18414 (ENCODE_CHAR): Use charset_work.
18415 (CHAR_CHARSET_P): Adjust for the change of encoder format.
18416 (map_charset_chars): Extern it.
18417
18418 * charset.c (load_charset_map): Set the default value of encoder
18419 and deunifier char-tables to nil.
18420 (map_charset_chars): Change argument. Change callers. Use
18421 map_char_table_for_charset instead of map_char_table.
18422 (Fmap_charset_chars): New optional args from_code and to_code.
18423 (Fdefine_charset_internal): Adjust for the change of
18424 `define-charset' (:parents -> :subset or :superset).
18425 (charset_work): New variable.
18426 (encode_char, syms_of_charset): Adjust for the change of
18427 Fdefine_charset_internal.
18428 (Ffind_charset_string): Setup the vector `charsets' correctly.
18429
18430 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
18431 the previous change.
18432 (char_table_ref_and_range): Adjust for the above change.
18433 (map_sub_char_table_for_charset): New function.
18434 (map_char_table_for_charset): New function.
18435
18436 * keymap.c (describe_vector): Handle a char-table directly here.
18437 (describe_char_table): Delete.
18438
18439 * lisp.h (map_charset_chars): Delete.
18440
184412008-02-01 Dave Love <fx@gnu.org>
18442
18443 * fns.c (count_combining): Comment out (unused).
18444 (Flocale_codeset): New.
18445 (syms_of_fns): Defsubr it.
18446
18447 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
18448 (size_t): Remove.
18449
184502008-02-01 Dave Love <fx@gnu.org>
18451
18452 * Makefile.in (chartab.o): Depend on charset.h.
18453
184542008-02-01 Kenichi Handa <handa@m17n.org>
18455
18456 * character.c (syms_of_character): Set the default value of
18457 Vprintable_chars to Qnil.
18458
184592008-02-01 Dave Love <fx@gnu.org>
18460
18461 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
18462
184632008-02-01 Kenichi Handa <handa@m17n.org>
18464
18465 * charset.c (load_charset_map): Handle the case that from < to
18466 correctly.
18467
18468 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
18469 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
18470 Pay attention to raw-8-bit chars.
18471
184722008-02-01 Kenichi Handa <handa@m17n.org>
18473
18474 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
18475 It is not bytecompiled now.
18476
18477 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
18478 (charset_jisx0208): New variables.
18479 (Fdefine_charset_internal): Setup them if appropriate.
18480 (init_charset_once): Initialize them to -1.
18481
18482 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
18483 (charset_jisx0208): Extern them.
18484
18485 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
18486 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
18487 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
18488 (setup_iso_safe_charsets): Fix arguments to Fassq.
18489 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
18490 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
18491 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
18492 (encode_coding_iso_2022): Change the 1st arg to
18493 ENCODE_ISO_CHARACTER to a variable.
18494
184952008-02-01 Kenichi Handa <handa@m17n.org>
18496
18497 * charset.h (enum define_charset_arg_index): New enums
18498 charset_arg_min_code and charset_arg_max_code.
18499 (struct charset): New member char_index_offset.
18500
18501 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
18502 Take charset->char_index_offset into account.
18503 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
18504 args[charset_arg_max_code]. Setup charset.char_index_offset.
18505 (syms_of_charset): Fix args to Fdefine_charset_internal.
18506
185072008-02-01 Dave Love <fx@gnu.org>
18508
18509 * coding.c (decode_coding_utf_8): Reject overlong sequences.
18510
185112008-02-01 Dave Love <fx@gnu.org>
18512
18513 * coding.c: Doc fixes.
18514 (Fcoding_system_aliases): Fix return value.
18515 (Qmac): Remove (duplicated) definition.
18516
185172008-02-01 Dave Love <fx@gnu.org>
18518
362654a6
JB
18519 * charset.c (Fcharset_priority_list, Fset_charset_priority):
18520 New functions.
aac0c6e3
MR
18521
18522 * character.c (Fstring): Doc fix.
18523
18524 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
18525
362654a6 18526 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
18527 (font-encoding-alist): Doc fix.
18528
185292008-02-01 Dave Love <fx@gnu.org>
18530
18531 * term.c (costs_set): Declare static, non-initialized for pcc.
18532 (encode_terminal_code): Remove unused var.
18533
18534 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
18535 for K&R.
18536
18537 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
18538
18539 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
18540 (suffixes): Move out of make_subsidiaries for K&R.
18541
18542 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
18543
18544 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
18545
185462008-02-01 Dave Love <fx@gnu.org>
18547
18548 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
18549
18550 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
18551
185522008-02-01 Yong Lu <lyongu@asia-infonet.com>
18553
18554 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
18555
18556 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
18557
185582008-02-01 Kenichi Handa <handa@m17n.org>
18559
18560 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
18561 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
18562
185632008-02-01 Kenichi Handa <handa@m17n.org>
18564
18565 * coding.c (decode_coding_charset): Adjust for the change of
18566 Fdefine_coding_system_internal.
18567 (Fdefine_coding_system_internal): For a coding system of
18568 `charset' type, store a list of charset IDs in
18569 `charset_attr_charset_valids' element of coding attributes.
18570
185712008-02-01 Kenichi Handa <handa@m17n.org>
18572
18573 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
18574 (emacs_mule_char): New arg src. Delete arg `composition'. Change
18575 caller. Handle 2-byte and 3-byte charsets correctly.
18576 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
18577 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
18578 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
18579 (DECODE_EMACS_MULE_21_COMPOSITION): Call
18580 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
18581 sequence.
18582 (decode_coding_emacs_mule): Handle composition correctly. Rewind
18583 `src' and `consumed_chars' correctly before calling emacs_mule_char.
18584 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
18585 and alt&rule composition.
18586 (decode_coding_iso_2022): Handle composition correctly.
18587 (init_coding_once): Setup emacs_mule_bytes for private charsets.
18588
18589 * charset.c (Fdefine_charset_internal): Fix bug for the case of
18590 re-defining a charset. If the charset has :emacs-mule-id, setup
18591 emacs_mule_bytes.
18592 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
18593
185942008-02-01 Kenichi Handa <handa@m17n.org>
18595
18596 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
18597 (encode_coding_big5, encode_coding_charset): If coding requires safe
18598 encoding, produce a character specified by
18599 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
18600
186012008-02-01 Dave Love <fx@gnu.org>
18602
18603 * xterm.c (XSetIMValues): Declare.
18604
18605 * process.c: Conditionally include sys/wait.h, pty.h.
18606
18607 * print.c (print_object): Fix print format for 64-bit systems.
18608
18609 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
18610
18611 * buffer.c (emacs_strerror): Declare.
18612
18613 * fontset.c (Fclear_face_cache): Declare.
18614 (accumulate_font_info): Comment-out (unused).
18615 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
18616 variables.
18617
18618 * character.h (string_escape_byte8): Declare.
18619
18620 * charset.c (load_charset_map, load_charset_map_from_file): Remove
18621 unused vars.
18622 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
18623 (Fmap_charset_chars): Doc fix.
18624
18625 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
18626 (Fset_coding_system_priority, Fset_coding_system_priority)
18627 (Fdefine_coding_system_internal): Doc fix.
18628
186292008-02-01 Dave Love <fx@gnu.org>
18630
18631 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
18632
186332008-02-01 Kenichi Handa <handa@m17n.org>
18634
18635 * character.c (string_escape_byte8): Make multibyte string with
18636 correct size.
18637
18638 * charset.c (Fmake_char): Delete unnecessary code.
18639
186402008-02-01 Kenichi Handa <handa@m17n.org>
18641
18642 * xfns.c (x_encode_text): Allocate coding.destination here, and
18643 call encode_coding_object with dst_object Qnil.
18644
18645 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
18646 multibyte form correctly.
18647
18648 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
18649 against Vfont_encoding_alist.
18650
18651 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
18652 handling of charset list.
18653 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
18654 (decode_coding_object): Move point to coding->dst_pos before
18655 calling post-read-conversion function.
18656 (encode_coding_object): Give correct arguments to
18657 pre-write-conversion. Ignore the return value of
18658 pre-write-conversion function. Pay attention to the case that
18659 pre-write-conversion changes the current buffer. If dst_object is
18660 Qt, even if coding->src_bytes is zero, allocate at least one byte
18661 to coding->destination.
18662
18663 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
18664
18665 * charset.c (Fmake_char): Make it more backward compatible.
18666 (Fmap_charset_chars): Fix docstring.
18667
186682008-02-01 Dave Love <fx@gnu.org>
18669
18670 * coding.c: Doc fixes.
18671 (Fdefine_coding_system_alias): Use names, not symbols, in
18672 coding-system-alist.
18673
186742008-02-01 Kenichi Handa <handa@m17n.org>
18675
18676 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
18677 of calling free_realized_face.
18678
186792008-02-01 Yong Lu <lyongu@asia-infonet.com>
18680
18681 * charset.c (read_hex): Don't treat SPC as a comment starter.
18682 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
18683 (Fdecode_char): Fix typo.
18684
186852008-02-01 Kenichi Handa <handa@m17n.org>
18686
18687 * charset.h (struct charset): New member `code_space_mask'.
18688
18689 * coding.c (coding_set_source): Delete the local variable beg_byte.
18690 (encode_coding_charset, Fdefine_coding_system_internal):
18691 Delete the local variable charset.
18692 (Fdefine_coding_system_internal): Setup
18693 attrs[coding_attr_charset_valids] correctly.
18694
18695 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
18696 member to check if CODE is valid or not.
18697 (Fdefine_charset_internal): Initialize `code_space_mask' member.
18698 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
18699 is within the range of charset->min_code and carset->max_code.
18700
187012008-02-01 Dave Love <fx@gnu.org>
18702
18703 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
18704
18705 * dispextern.h (generate_ascii_font): Fix return type.
18706
18707 * xfaces.c (generate_ascii_font): Fix arg declaration.
18708
18709 * coding.c (coding_inherit_eol_type)
18710 (Fset_terminal_coding_system_internal)
18711 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
18712
187132008-02-01 Kenichi Handa <handa@m17n.org>
18714
18715 * coding.c (decode_coding_charset, encode_coding_charset): Handle
18716 multiple charsets correctly.
18717
187182008-02-01 Kenichi Handa <handa@m17n.org>
18719
18720 * search.c (boyer_moore): Fix handling of multibyte character
18721 translation.
18722
18723 * xdisp.c (display_mode_element): When the variable `elt' is
18724 changed, update `this' and `lisp_string'.
18725
187262008-02-01 Kenichi Handa <handa@m17n.org>
18727
18728 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
18729
18730 * callproc.c (Fcall_process): Be sure to give the current buffer
18731 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
18732
18733 * charset.c (struct charset_map_entries): New struct.
18734 (load_charset_map): Rename from parse_charset_map. New args
18735 entries and n_entries. Change caller.
18736 (load_charset_map_from_file): Rename from load_charset_map.
18737 Change caller. New arg control_flag. Call load_charset_map at
18738 the tail.
18739 (load_charset_map_from_vector): New function.
18740 (Fdefine_charset_internal): Setup charset.compact_codes_p.
18741 (encode_char): If the charset is compact, change a character index
18742 to a code point.
18743
18744 * coding.c (coding_alloc_by_making_gap): Check the case that the
18745 source and destination are the same correctly.
18746 (decode_coding_raw_text): Set coding->consumed_char and
18747 coding->consumed to 0.
18748 (produce_chars): If coding->chars_at_source is nonzero, update
18749 coding->consumed_char and coding->consumed before calling
18750 alloc_destination.
18751 (Fdefine_coding_system_alias): Register ALIAS in
18752 Vcoding_system_alist.
18753 (syms_of_coding): Define `no-conversion' coding system at the tail.
18754
18755 * fileio.c (Finsert_file_contents): Set coding_system instead of
18756 val. If the current buffer is multibyte, always call
18757 decode_coding_gap.
18758
18759 * xfaces.c (try_font_list): Give higher priority to fontset's
18760 family than face's family.
18761
187622008-02-01 Kenichi Handa <handa@m17n.org>
18763
18764 * callproc.c (Fcall_process): Be sure to give the current buffer
18765 to decode_coding_c_string.
18766
18767 * xfaces.c (try_font_list): Give a family specified in a fontset
18768 higher priority than a family specified in a face.
18769
187702008-02-01 Kenichi Handa <handa@m17n.org>
18771
18772 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
18773 Fix arguments to insert_from_buffer.
18774
18775 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
18776
187772008-02-01 Kenichi Handa <handa@m17n.org>
18778
18779 * coding.c (produce_chars): Set the variable `multibytep' correctly.
18780 (decode_coding_gap): Set coding->dst_multibyte correctly.
18781
187822008-02-01 Kenichi Handa <handa@m17n.org>
18783
18784 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
18785 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
18786 (encode_coding_utf_16): Substitute coding->default_char for
18787 non-Unicode characters.
18788 (decode_coding): Don't call record_insert here.
18789 (setup_coding_system): Initialize `surrogate' of
18790 coding->spec.utf_16 to 0.
18791 (EMIT_ONE_BYTE): Fix for multibyte case.
18792
18793 * insdel.c (insert_from_gap): Call record_insert.
18794
187952008-02-01 Kenichi Handa <handa@m17n.org>
18796
18797 * casefiddle.c (casify_region): Fix multibyte case.
18798
18799 * character.c (c_string_width): Add return type `int'.
18800 (char_string_with_unification): Delete arg ADVANCED.
18801
18802 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
18803 (CHAR_STRING): Adjust for the change of char_string_with_unification.
18804 (CHAR_STRING_ADVANCE): Make it do-while statement.
18805
18806 * chartab.c (sub_char_table_set_range): Optimize for the case
18807 DEPTH == 3. Add workaround code for a GCC optimization bug.
18808
18809 * charset.c (parse_charset_map): Remove an unused variable.
18810
18811 * coding.c: Delete unused variables.
18812
18813 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
18814 earlier. If inserted is zero and the coding system doesn't
18815 require flushing, don't call decode_coding_gap.
18816
18817 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
18818
188192008-02-01 Kenichi Handa <handa@m17n.org>
18820
18821 The following changes are for using Unicode as an internal
18822 character model, and use UTF-8 format for buffer/string
18823 representation.
18824
18825 * .gdbinit (xchartable): Adjust for the change of char table structure.
18826 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
18827
18828 * Makefile.in (obj): Add character.o and chartab.o.
18829 (lisp, shortlisp): Remove utf-8.elc.
18830 (*.o): For many files, change dependency on charset.h to
18831 character.h, and add dependency on character.h.
18832 (character.o, chartab.o): New targets.
18833
18834 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
18835 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
18836 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
18837 of "charset.h".
18838
18839 * dired.c, filelock.c: Include "character.h".
18840
18841 * alloc.c: Include "character.h" instead of "charset.h".
18842 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
18843 (syms_of_alloc): Remove defsubr for Smake_char_table.
18844
18845 * buffer.c: Include "character.h" instead of "charset.h", don't
18846 include "coding.h".
18847 (Fset_buffer_multibyte): Adjust for UTF-8.
18848
18849 * buffer.h: EXFUN Fbuffer_live_p.
18850
18851 * callproc.c: Include "character.h" instead of "charset.h".
18852 (Fcall_process): Big change for the new code-conversion APIs.
18853
18854 * casetab.c: Include "character.h" instead of "charset.h".
18855 (set_canon, set_identity, shuffle): Adjust for the new
18856 map_char_table spec.
18857 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
18858 accessing the char table structure.
18859
18860 * chartab.c: New file that implements char table.
18861
18862 * category.c: Include "character.h".
18863 (copy_category_entry): New function.
18864 (copy_category_table): Call map_char_table and copy_category_entry.
18865 (Fmake_category_table): Initialize all top-level slots.
18866 (char_category_set): New function.
18867 (modify_lower_category_set): Delete.
18868 (Fmodify_category_entry): Call char_table_ref_and_range.
18869
18870 * category.h (CATEGORY_SET): Just call char_category_set.
18871
18872 * ccl.c: Include "character.h".
18873 (Qccl, Qcclp): New variables.
18874 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
18875 it's less than 256.
18876 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
18877 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
18878 and DST type.
18879 (ccl_driver): Change types of argument, adjust code accordingly.
18880 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
18881 ccl_driver.
18882 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
18883
18884 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
18885 New members src_multibyte, dst_multibyte, consumed, and produced.
18886 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
18887 (CODING_SPEC_CCL_PROGRAM): New macro.
18888 (ccl_driver): Update prototype.
18889 (Qccl, Qcclp, Fccl_program_p): Extern them.
18890 (CHECK_CCL_PROGRAM): New macro.
18891
18892 * character.c, character.h, chartab.c: New files.
18893
18894 * charset.c: Mostly re-written. Move character and multibyte sequence
18895 handling codes to character.c.
18896
18897 * charset.h: Mostly re-written. Move character and multibyte sequence
18898 handling codes to character.h.
18899
18900 * coding.c, coding.h: Mostly re-written.
18901
18902 * composite.c: Include "character.h" instead of "charset.h".
18903 (CHAR_WIDTH): Move to character.h.
18904 (HASH_KEY, HASH_VALUE): Delete.
18905
18906 * composite.h (enum composition_method): Change order of enumeration
18907 symbols.
18908
18909 * data.c: Include "character.h" instead of "charset.h".
18910 (Faref): Call CHAR_TABLE_REF for a char table.
18911 (Faset): Call CHAR_TABLE_SET for a char table.
18912
18913 * dispextern.h (free_realized_face, check_face_attribytes)
18914 (generate_ascii_font): Extern them.
18915 (free_realized_multibyte_face): Delete extern.
18916
18917 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
18918 table structure.
18919
18920 * editfns.c: Include "character.h" instead of "charset.h".
18921 (Fchar_to_string): Always call CHAR_STRING.
18922
18923 * emacs.c (main): Call init_charset_once, init_charset,
18924 syms_of_chartab, and syms_of_character.
18925
18926 * fileio.c: Include "character.h" instead of "charset.h".
18927 (Finsert_file_contents): Big change for the new code-conversion API.
18928 (choose_write_coding_system, Fwrite_region): Likewise.
18929 (build_annotations_2): Delete.
18930 (e_write): Big change for the new code-conversion API.
18931
18932 * fns.c: Include "character.h" instead of "charset.h".
18933 (copy_sub_char_table): Move to chartab.c.
18934 (Fcopy_sequence): Call copy_char_table for a char table.
18935 (concat): Delete codes calling count_multibyte.
18936 (string_char_to_byte, string_byte_to_char): Adjust for the new
18937 multibyte form.
18938 (internal_equal): Adjust for the change of char table structure.
18939 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
18940 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
18941 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
18942 (char_table_translate, optimize_sub_char_table)
18943 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
18944 chartab.c.
18945 (char_table_ref_and_index): Delete.
18946 (HASH_KEY, HASH_VALUE): Move to lisp.h.
18947 (Fmd5): Call preferred_coding_system instead of accessing
18948 Vcoding_category_list. Adjust for the new code-conversion API.
18949 (syms_of_fns): Move defsubr for char table related functions to
18950 chartab.c.
18951
18952 * fontset.c: Mostly re-written.
18953
18954 * fontset.h (struct font_info): Change type of the member encoding_type.
18955 (enum FONT_SPEC_INDEX): New enum.
18956 (fontset_font_pattern, fs_load_font): Update prototype.
18957 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
18958
18959 * indent.c: Include "character.h" instead of "charset.h".
18960 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
18961
18962 * insdel.c: Include "character.h" instead of "charset.h".
18963 (copy_text): Don't refer to Vnonascii_translation_table.
18964 (insert_from_gap): New function.
18965
18966 * keyboard.c: Include "character.h" instead of "charset.h".
18967 (command_loop_1): Never call direct_output_forward_char before
18968 a non-ASCII character.
18969 (read_char): If Vkeyboard_translate_table is a char table, always
18970 translate a character.
18971
18972 * keymap.c: Include "character.h".
18973 (store_in_keymap): Handle the case that IDX is a cons.
18974 (Fdefine_key): Handle the case that KEY is a cons and the car part
18975 is also a cons (range).
18976 (push_key_description): Adjust for the new character code.
18977 (describe_vector): Call describe_char_table for a char table.
18978 (describe_char_table): New function.
18979
18980 * keymap.h (describe_char_table): Extern it.
18981
18982 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
18983 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
18984 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
18985 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
18986 Delete.
18987 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
18988 structure.
18989 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
18990 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
18991 (CHARTAB_SIZE_BITS_3): New macros.
18992 (chartab_size): Extern it.
18993 (struct Lisp_Char_Table): Re-design.
18994 (struct Lisp_Sub_Char_Table): New structure.
18995 (HASH_KEY, HASH_VALUE): Move from fns.c.
18996 (CHARACTERBITS): Define as 22.
18997 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
18998 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
18999 (GC_SUB_CHAR_TABLE_P): New macro.
19000 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
19001 (code_convert_string_norecord): Deleted extern.
19002 (init_character_once, syms_of_character, init_charset)
19003 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
19004
19005 * lread.c: Include "character.h".
19006 (read_multibyte): New arg NBYTES.
19007 (read_escape): Change the meaning of returned *BYTEREP.
19008 (to_multibyte): Delete.
19009 (read1): Adjust the handling of char table and string.
19010
19011 * print.c: Include "character.h" instead of "charset.h".
19012 (print_string): Convert 8-bit raw bytes to octal form by
19013 string_escape_byte8.
19014 (print_object): Adjust for the new multibyte form. Print 8-bit
19015 raw bytes always in octal form. Handle sub char table correctly.
19016
19017 * process.c: Include "character.h" instead of "charset.h".
19018 (read_process_output, send_process): Adjust for the new
19019 code-conversion API.
19020
19021 * puresize.h (BASE_PURESIZE): Increase.
19022
19023 * regex.c: Include "character.h" instead of "charset.h".
19024 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
19025 (regex_compile): Accept a range whose starting and ending
19026 character have different leading bytes.
19027 (analyse_first): Adjust for the above change.
19028
19029 * search.c: Include "character.h" instead of "charset.h".
19030 (search_buffer, boyer_moore): Adjust for the new multibyte form.
19031 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
19032
19033 * syntax.c: Include "character.h" instead of "charset.h".
19034 (syntax_parent_lookup): Delete.
19035 (Fmodify_syntax_entry): Accept a cons as CHAR.
19036 (skip_chars): Adjust for the new multibyte form.
19037 (init_syntax_once): Call char_table_set_range instead of directly
19038 accessing the structure of a char table.
19039
19040 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
19041 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
19042 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
19043 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
19044
19045 * term.c: Include "buffer.h" and "character.h".
19046 (encode_terminal_code, write_glyphs): Adjust for the new
19047 code-conversion API.
19048 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
19049
19050 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
19051
19052 * xdisp.c: Include "character.h".
19053 (get_next_display_element): Adjust for the new multibyte form.
19054 (disp_char_vector): Adjust for the new char table structure.
19055 (decode_mode_spec_coding): Adjust for the new structure of
19056 coding system.
19057 (decode_mode_spec): Adjust for the new code-conversion API.
19058
19059 * xfaces.c: Include "character.h" instead of "charset.h".
19060 (load_face_font): Adjust for the change of choose_face_font and
19061 FS_LOAD_FONT.
19062 (generate_ascii_font): New function.
19063 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
19064 (set_font_frame_param): Adjust for the change of choose_face_font.
19065 (free_realized_face): Make it public.
19066 (free_realized_faces_for_fontset): Rename from
19067 free_realized_multibyte_face. Free also faces realized for ASCII.
19068 (choose_face_font): Change arguments. Adjust for the change of
19069 fontset_font_pattern and FS_LOAD_FONT.
19070
19071 * xfns.c: Include "character.h".
19072 (x_encode_text): Adjust for the new code-conversion API.
19073
19074 * xselect.c: Don't include "charset.h".
19075 (selection_data_to_lisp_data): Adjust for the new code conversion API.
19076
19077 * xterm.c: Include "character.h".
19078 (x_encode_char): New argument CHARSET. Change caller.
19079 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
19080 Call ENCODE_CHAR instead of SPLIT_CHAR.
19081 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
19082 CHAR_WIDTH instead of CHARSET_WIDTH.
19083 (XTread_socket): Adjust for the new code-conversion API.
19084 (x_new_font): Adjust for the change of FS_LOAD_FONT.
19085 (x_load_font): Adjust for the change of struct font.
19086
190872008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19088
19089 * xfaces.c (face_at_buffer_position): Remove unused vars.
19090
190912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19092
19093 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
19094 Fix overflow checking.
19095
190962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19097
19098 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
19099 Cancel previous change.
19100
191012008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
19102
19103 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
19104 ccl->eight_bit_control. Fix check for buffer overflow.
19105 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
19106 (ccl_driver): Initialize extra_bytes to 0.
19107
191082008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
19109
19110 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
19111 return it ORed with ctrl_modifier.
19112
191132008-01-29 Miles Bader <miles@gnu.org>
19114
19115 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
19116
191172008-01-28 Jason Rumney <jasonr@gnu.org>
19118
19119 * w32.c (stat): Don't double check for networked drive.
19120
191212008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
19122
19123 * window.c (run_window_configuration_change_hook): New function.
19124 Code extracted from set_window_buffer. Set the selected frame.
19125 (set_window_buffer): Use it.
19126 * window.h (run_window_configuration_change_hook): Declare.
19127 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
19128
19129 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
19130
191312008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
19132
19133 * Makefile.in: Remove references to unused macros.
19134
191352008-01-26 Eli Zaretskii <eliz@gnu.org>
19136
19137 * w32.c (g_b_init_get_sid_sub_authority)
19138 (g_b_init_get_sid_sub_authority_count): New static variables.
19139 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
19140 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
19141 (init_user_info): Use them to retrieve uid and gid.
19142 Use 500/513, the Windows defaults, as Administrator's uid/gid.
19143 (fstat): Use pw_uid and pw_gid from the_passwd structure for
19144 st_uid and st_gid of the file.
19145
191462008-01-26 Jason Rumney <jasonr@gnu.org>
19147
19148 * w32.c (logon_network_drive): New function.
19149 (stat): Use it.
19150
191512008-01-26 Chong Yidong <cyd@stupidchicken.com>
19152
19153 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
19154 invisible text covered with an ellipsis.
19155
191562008-01-25 Richard Stallman <rms@gnu.org>
19157
19158 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
19159 jump back to beginning. Move some other initializations after that.
19160 (Qwindow_text_change_functions, Vwindow_text_change_functions):
19161 New variables.
19162 (syms_of_xdisp): Init them.
19163
19164 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
19165
19166 * buffer.c (reset_buffer_local_variables):
19167 Implement `permanent-local-hook'.
19168 (Qpermanent_local_hook): New variable.
19169 (syms_of_buffer): Init and staticpro it.
19170
191712008-01-25 Michael Albinus <michael.albinus@gmx.de>
19172
19173 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
19174
191752008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
19176
19177 * fns.c (Fclrhash): Return TABLE.
19178
191792008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19180
19181 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
19182 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
19183 is set even without positional changes.
19184 (x_scroll_bar_clear): Set bar->redraw_needed_p.
19185
19186 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
19187
191882008-01-23 Jason Rumney <jasonr@gnu.org>
19189
19190 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
19191
19192 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
19193 the unicode range available in MULE by locale-coding-system.
19194 Improve dbcs lead byte detection. Set event timestamp and modifiers
19195 earlier.
19196
191972008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19198
19199 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
19200 [MAC_OSX] (init_mac_osx_environment): Initialize it.
19201 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
19202 when used on child processes.
19203
192042008-01-21 Michael Albinus <michael.albinus@gmx.de>
19205
19206 * dbusbind.c (Fdbus_method_return_internal): Rename from
19207 Fdbus_method_return.
19208 (Fdbus_unregister_object): Move to dbus.el.
19209 (Fdbus_call_method, Fdbus_method_return_internal)
19210 (Fdbus_send_signal): Improve debug messages.
19211
192122008-01-20 Martin Rudalics <rudalics@gmx.at>
19213
19214 * undo.c (undo_inhibit_record_point): New variable.
19215 (syms_of_undo): Initialize it.
19216 (record_point): Don't record point when undo_inhibit_record_point
19217 is set.
19218
192192008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
19220
19221 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
19222
19223 * xdisp.c (Qauto_hscroll_mode): New var.
19224 (syms_of_xdisp): Initialize it.
19225 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
19226 window's buffer.
19227 (hscroll_windows): Don't check automatic_hscrolling_p here.
19228
19229 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
19230 vscroll if we're setting window-buffer to the value it already has.
19231
192322008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
19233
19234 * m/intel386.h: Remove references to XENIX.
19235
192362008-01-17 Andreas Schwab <schwab@suse.de>
19237
19238 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
19239 instead of HAVE_X86_64_LIB64_DIR.
19240 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
19241
192422008-01-17 Glenn Morris <rgm@gnu.org>
19243
19244 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
19245 to HAVE_X86_64_LIB64_DIR.
19246
192472008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
19248
19249 * s/irix3-3.h:
19250 * s/irix4-0.h:
19251 * s/386-ix.h:
19252 * s/domain.h:
19253 * s/hpux9-x11r4.h:
19254 * s/hpux9shxr4.h: Remove files for systems no longer supported.
19255
19256 * sysdep.c: Remove code containing references to symbols defined
19257 by unsupported systems.
19258
192592008-01-16 Glenn Morris <rgm@gnu.org>
19260
19261 * coding.c (select-safe-coding-system-function): Doc fix.
19262
192632008-01-15 Glenn Morris <rgm@gnu.org>
19264
19265 * config.in: Revert 2008-01-13 change: this is a generated file.
19266
192672008-01-13 Tom Tromey <tromey@redhat.com>
19268
19269 * lisp.h: Fix typo.
19270
192712008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
19272
19273 * m/sequent-ptx.h:
19274 * m/sequent.h:
19275 * s/ptx.h:
19276 * s/ptx4-2.h:
19277 * s/ptx4.h: Remove files for systems no longer supported.
19278
19279 * callproc.c (Fcall_process): Fix previous change.
19280
192812008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
19282
19283 * unexsunos4.c: Remove file, system not supported anymore.
19284
19285 * m/mips.h:
19286 * m/intel386.h:
19287 * callproc.c:
19288 * config.in:
19289 * ecrt0.c:
19290 * emacs.c:
19291 * fileio.c:
19292 * frame.c:
19293 * getpagesize.h:
19294 * keyboard.c:
19295 * lread.c:
19296 * process.c:
19297 * puresize.h:
19298 * sysdep.c:
19299 * systty.h:
19300 * syswait.h:
19301 * unexec.c:
19302 * xdisp.c:
19303 * alloc.c: Remove code containing references to symbols defined by
19304 unsupported systems.
19305
193062008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
19307
19308 * coding.c (detect_coding_mask): Fix previous change.
19309
193102008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
19311
19312 * coding.c (detect_coding_iso2022): New arg
19313 latin_extra_code_state. Allow Latin extra codes only
19314 when *latin_extra_code_state is nonzero.
19315 (detect_coding_mask): If there is a NULL byte, detect the encoding
19316 as UTF-16 or binary. If Latin extra codes exist, detect the
19317 encoding as ISO-2022 only when there's no other proper encoding is
19318 found.
19319
193202008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19321
19322 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
19323 #ifdef MAC_OS.
19324
193252008-01-08 Richard Stallman <rms@gnu.org>
19326
19327 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
19328
193292008-01-06 Nick Roberts <nickrob@snap.net.nz>
19330
19331 * keyboard.c (parse_menu_item): Don't enclose key bindings on
19332 menu bar in parentheses.
19333
193342008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
19335
19336 * m/7300.h:
19337 * m/acorn.h:
19338 * m/alliant-2800.h:
19339 * m/alliant.h:
19340 * m/alliant1.h:
19341 * m/alliant4.h:
19342 * m/altos.h:
19343 * m/amdahl.h:
19344 * m/apollo.h:
19345 * m/att3b.h:
19346 * m/aviion-intel.h:
19347 * m/aviion.h:
19348 * m/celerity.h:
19349 * m/clipper.h:
19350 * m/cnvrgnt.h:
19351 * m/convex.h:
19352 * m/cydra5.h:
19353 * m/delta88k.h:
19354 * m/dpx2.h:
19355 * m/dual.h:
19356 * m/elxsi.h:
19357 * m/f301.h:
19358 * m/gould-np1.h:
19359 * m/gould.h:
19360 * m/i860.h:
19361 * m/ibmps2-aix.h:
19362 * m/ibmrt-aix.h:
19363 * m/ibmrt.h:
19364 * m/irist.h:
19365 * m/is386.h:
19366 * m/isi-ov.h:
19367 * m/mega68.h:
19368 * m/mg1.h:
19369 * m/news-r6.h:
19370 * m/news-risc.h:
19371 * m/news.h:
19372 * m/nh3000.h:
19373 * m/nh4000.h:
19374 * m/ns16000.h:
19375 * m/ns32000.h:
19376 * m/nu.h:
19377 * m/orion.h:
19378 * m/orion105.h:
19379 * m/paragon.h:
19380 * m/pfa50.h:
19381 * m/plexus.h:
19382 * m/pyramid.h:
19383 * m/pyrmips.h:
19384 * m/sh3el.h:
19385 * m/sps7.h:
19386 * m/sr2k.h:
19387 * m/stride.h:
19388 * m/sun1.h:
19389 * m/sun2.h:
19390 * m/sun3-68881.h:
19391 * m/sun3-fpa.h:
19392 * m/sun3-soft.h:
19393 * m/sun3.h:
19394 * m/sun386.h:
19395 * m/symmetry.h:
19396 * m/tad68k.h:
19397 * m/tahoe.h:
19398 * m/targon31.h:
19399 * m/tek4300.h:
19400 * m/tekxd88.h:
19401 * m/tower32.h:
19402 * m/tower32v3.h:
19403 * m/ustation.h:
19404 * m/wicat.h:
19405 * m/xps100.h:
19406 * s/cxux.h:
19407 * s/cxux7.h:
19408 * s/dgux.h:
19409 * s/dgux4.h:
19410 * s/dgux5-4-3.h:
19411 * s/dgux5-4r2.h:
19412 * s/esix.h:
19413 * s/esix5r4.h:
19414 * s/hiuxmpp.h:
19415 * s/hiuxwe2.h:
19416 * s/iris3-5.h:
19417 * s/iris3-6.h:
19418 * s/isc2-2.h:
19419 * s/isc3-0.h:
19420 * s/isc4-0.h:
19421 * s/isc4-1.h:
19422 * s/newsos5.h:
19423 * s/newsos6.h:
19424 * s/osf1.h:
19425 * s/osf5-0.h:
19426 * s/riscix1-1.h:
19427 * s/riscix12.h:
19428 * s/sco4.h:
19429 * s/sco5.h:
19430 * s/sunos4-0.h:
19431 * s/sunos4-1.h:
19432 * s/sunos413.h:
19433 * s/sunos4shr.h:
19434 * s/umax.h:
19435 * s/unipl5-2.h:
19436 * s/xenix.h:
19437 * cxux-crt0.s:
19438 * unexapollo.c:
19439 * unexconvex.c:
19440 * unexenix.c:
19441 * unexsni.c: Remove files for systems no longer supported.
19442
19443 * m/intel386.h: Remove references to unsupported systems.
19444
19445 * w32.c (get_emacs_configuration): Remove reference to i860.
19446
19447 * sysdep.c: Remove dead code.
19448
194492008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
19450
19451 * s/rtu.h:
19452 * m/masscomp.h: Remove files. Platform is obsolete.
19453
194542008-01-04 Michael Albinus <michael.albinus@gmx.de>
19455
19456 * dbusbind.c (Fdbus_method_return): New function.
19457 (xd_read_message): Add the serial number to the event.
19458 (Fdbus_register_method): Activate the function.
19459
194602008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
19461
19462 * keyboard.c (read_key_sequence): Fix typo.
19463
194642008-01-03 Michael Albinus <michael.albinus@gmx.de>
19465
19466 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
19467 (xd_signature, xd_append_arg): Handle element type detection for
19468 empty arrays.
19469 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
19470 SDATA () calls; this must be solved more general.
19471 (Fdbus_register_signal): Use SBYTES instead of strlen.
19472
194732008-01-03 Magnus Henoch <magnus@zemdatav>
19474
19475 * dbusbind.c (xd_append_arg): Use unsigned char instead of
19476 unsigned int for byte values (necessary for big-endian platform).
19477 (Fdbus_call_method): Handle the case of no returned arguments.
19478
194792007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
19480
19481 * dbusbind.c (xd_read_message): Use non-static input_event struct.
19482
194832007-12-31 Magnus Henoch <mange@freemail.hu>
19484
19485 * dbusbind.c (xd_signature): Signature of variant is just "v".
19486
194872007-12-30 Michael Albinus <michael.albinus@gmx.de>
19488
19489 * dbusbind.c: Fix several errors and compiler warnings.
19490 Reported by Tom Tromey <tromey@redhat.com>.
19491 (XD_ERROR, XD_DEBUG_MESSAGE)
19492 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
19493 (xd_append_arg): Part for basic D-Bus types rewritten.
19494 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
19495 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
19496 appropriate.
19497 (xd_read_message): Return Qnil. Don't signal an error; it is not
19498 useful during event reading.
19499 (Fdbus_register_signal): Signal an error if the check for
19500 FUNCTIONP fails.
19501 (Fdbus_register_method): New function. The implementation is not
19502 complete, the call of the function signals an error therefore.
19503 (Fdbus_unregister_object): New function, renamed from
19504 Fdbus_unregister_signal. The initial check signals an error, if
19505 the object is not well formed.
19506
195072007-12-30 Richard Stallman <rms@gnu.org>
19508
19509 * textprop.c (get_char_property_and_overlay):
19510 Signal error if POSITION is out of range in a buffer.
19511
195122007-12-29 Martin Rudalics <rudalics@gmx.at>
19513
19514 * w32fns.c (Fx_create_frame): Make copy of frame parameters
19515 because the original parameters are in pure storage now.
19516
195172007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19518
19519 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
19520
195212007-12-22 Eli Zaretskii <eliz@gnu.org>
19522
19523 * callint.c (syms_of_callint) <command-history>: Add reference to
19524 history-length in the doc string.
19525
195262007-12-17 Jason Rumney <jasonr@gnu.org>
19527
19528 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
19529 before passing as wParam.
19530
195312007-12-22 Michael Albinus <michael.albinus@gmx.de>
19532
19533 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
19534 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
19535 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
19536 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
19537 as number.
19538 (Fdbus_call_method): Fix docstring.
19539
195402007-12-21 Michael Albinus <michael.albinus@gmx.de>
19541
19542 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
19543 New macros.
19544 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
19545 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
19546 Simplify.
19547 (xd_signature): New function.
19548 (xd_append_arg): Compute also signatures. Major rewrite.
19549 (xd_retrieve_arg): Make debug messages friendly.
19550 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
19551 Check for signatures of arguments.
19552
195532007-12-19 Michael Albinus <michael.albinus@gmx.de>
19554
19555 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
19556 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
19557 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
19558 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
19559 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
19560 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
19561 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
19562 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
19563 (xd_retrieve_value): Remove. Functionality included in ...
19564 (xd_append_arg): New function.
19565 (Fdbus_call_method, Fdbus_send_signal): Apply it.
19566
195672007-12-16 Michael Albinus <michael.albinus@gmx.de>
19568
19569 * dbusbind.c (top): Include <stdio.h>.
19570 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
19571 dbus_message_new_method_call and dbus_message_new_signal.
19572 (Fdbus_register_signal): Rename unique_name to uname.
19573 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
19574 non-existing unique name. Fix typos in matching rule. Return an
19575 object which is useful in Fdbus_unregister_signal.
19576 (Fdbus_unregister_signal): Reimplementation, in order to remove
19577 only the corresponding entry.
19578 (Vdbus_registered_functions_table): Change the order of entries.
19579 Apply these changes in xd_read_message and Fdbus_register_signal.
19580
195812007-12-16 Andreas Schwab <schwab@suse.de>
19582
19583 * fileio.c (Finsert_file_contents): Fix overflow check to not
19584 depend on undefined integer overflow.
19585
195862007-12-14 Jason Rumney <jasonr@gnu.org>
19587
19588 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
19589 for characters above 127.
19590
195912007-12-13 Jason Rumney <jasonr@gnu.org>
19592
19593 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
19594 before dereferencing array.
19595 (lookup_vk_code): Remove zero comparison.
19596
195972007-12-14 Michael Albinus <michael.albinus@gmx.de>
19598
19599 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
19600 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
19601 Use `unsigned int' instead of `uint'.
19602 (xd_read_message, Fdbus_register_signal): Split expressions into
19603 multiple lines before operators "&&" and "||", according to the
19604 GNU Coding Standards.
19605
196062007-12-14 Eli Zaretskii <eliz@gnu.org>
19607
19608 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
19609
196102007-12-12 Juri Linkov <juri@jurta.org>
19611
19612 * buffer.c (Frename_buffer): In interactive spec replace
19613 `read-buffer' with `read-string' that uses `buffer-name-history'
19614 as history, and the current buffer's name as default.
19615
196162007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
19617
19618 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
19619 manipulating the backtrace manually.
19620 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
19621 (struct backtrace, backtrace_list): Remove.
19622 (command_loop_1): Remove dead var `no_direct'.
19623
19624 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
19625 preserve non-built-in buffer-local variables.
19626 (Fkill_all_local_variables): Don't re-create&re-set permanent
19627 buffer-local variables.
19628
196292007-12-09 Juri Linkov <juri@jurta.org>
19630
19631 * buffer.c (Frename_buffer): Change interactive spec from "s" to
19632 Lisp code that uses `read-buffer' with current buffer as default.
19633
196342007-12-08 Michael Albinus <michael.albinus@gmx.de>
19635
19636 * dbusbind.c (xd_read_message): Generate an event for every
19637 registered handler. There might be several handlers registered
19638 for the same signal.
19639 (Fdbus_register_signal): Don't overwrite a registration for the
19640 same signal. Add a new registration if handlers are different.
19641 (Vdbus_registered_functions_table): Rework doc string.
19642
196432007-12-07 Michael Albinus <michael.albinus@gmx.de>
19644
19645 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
19646 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
19647 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
19648 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
19649 Unify argument lists.
19650 (xd_read_message, Fdbus_register_signal): Reorder and extend event
19651 arguments and hash table keys. Use unique name for service.
19652 (Fdbus_unregister_signal): Remove checks.
19653 (Vdbus_registered_functions_table): Fix doc string.
19654
196552007-12-05 Magnus Henoch <mange@freemail.hu>
19656
19657 * process.c (make_process): Initialize pty_flag to 0.
19658
196592007-12-05 Jason Rumney <jasonr@gnu.org>
19660
19661 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
19662 specified XBMs.
19663
196642007-12-05 Richard Stallman <rms@gnu.org>
19665
19666 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
19667
196682007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19669
19670 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
19671 New variable.
19672 (mac_try_close_socket) [MAC_OSX]: New function.
19673 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
19674 Update cfsockets_for_select. Replace invalid CFRunLoop source.
19675
19676 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
19677 Use mac_try_close_socket.
19678
196792007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19680
19681 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
19682 reloc_base.
19683 (copy_dysymtab): Compute relocation base here.
19684 (rebase_reloc_address) [__ppc64__]: New function.
19685 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
19686 changed.
19687
196882007-12-05 Jason Rumney <jasonr@gnu.org>
19689
19690 * w32proc.c (sys_spawnve): Quote args with wildcards.
19691
196922007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19693
19694 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
19695 __objc_* sections.
19696 (unrelocate) [_LP64]: Set relocation base to address of data segment.
19697
196982007-12-05 Michael Albinus <michael.albinus@gmx.de>
19699
19700 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
19701 Move check for Vdbus_registered_functions_table to
19702 xd_read_queued_messages.
19703 (xd_read_queued_messages): Protect xd_read_message calls by
19704 internal_condition_case_1.
19705
197062007-12-04 Michael Albinus <michael.albinus@gmx.de>
19707
19708 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
19709 Qdbus_system_bus and Qdbus_session_bus, respectively.
19710 (Vdbus_intern_symbols): Remove.
19711 (Vdbus_registered_functions_table): New hash table.
19712 (XD_SYMBOL_INTERN_SYMBOL): Remove.
19713 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
19714 Rewrite in order to manage registered functions by hash table
19715 Vdbus_registered_functions_table.
19716
197172007-12-03 Jan Djärv <jan.h.d@swipnet.se>
19718
19719 * xterm.c: Update URL to Window Manager Specification in comment.
19720
197212007-12-02 Michael Albinus <michael.albinus@gmx.de>
19722
19723 * config.in (HAVE_DBUS): Add.
19724
19725 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
19726 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
19727 (obj): Add $(DBUS_OBJ).
19728 (LIBES): Add $(DBUS_LIBS).
19729 (dbusbind.o): New target.
19730
19731 * dbusbind.c: New file.
19732
19733 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
19734
19735 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
19736 (Qdbus_event): New Lisp symbol.
19737 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
19738 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 19739 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
19740
19741 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
19742
197432007-12-01 Richard Stallman <rms@gnu.org>
19744
19745 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
19746
197472007-11-30 Jason Rumney <jasonr@gnu.org>
19748
19749 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
19750 (w32con_reset_terminal_modes): Clear screen buffer.
19751 (w32_face_attributes): Don't use color indexes that are out of range.
19752 Only reverse the default colors.
19753
19754 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
19755 WINDOWSNT.
19756
19757 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
19758
197592007-11-29 Jason Rumney <jasonr@gnu.org>
19760
19761 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
19762 (w32_face_attributes): Use Vtty_defined_color_alist to determine
19763 if the terminal colors are initialized.
19764 (unspecified_fg, unspecified_bg): Remove unused declarations.
19765
197662007-11-29 Andreas Schwab <schwab@suse.de>
19767
19768 * keyboard.c (apply_modifiers): Fix typo.
19769
197702007-11-29 Richard Stallman <rms@gnu.org>
19771
19772 * keymap.c (Fcurrent_local_map): Doc fix.
19773
197742007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
19775
19776 * s/gnu-kfreebsd.h: New file.
19777
197782007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
19779
19780 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
19781 Don't cast redundantly.
19782
19783 * keyboard.c (KEY_TO_CHAR): New macro.
19784 (parse_modifiers, apply_modifiers): Accept integer arguments.
19785 (read_key_sequence): Use them to unify the "shift->unshift" mapping
19786 for chars and symbol keys.
19787 After doing such remapping, apply function-key-map again.
19788
197892007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
19790
19791 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
19792 compiled anymore.
19793
197942007-11-26 Andreas Schwab <schwab@suse.de>
19795
19796 * process.c (list_processes_1): Fix indentation level of the
19797 command column.
19798
197992007-11-23 Andreas Schwab <schwab@suse.de>
19800
19801 * editfns.c (Fformat): Handle %c specially since it requires the
19802 argument to be of type int.
19803
198042007-11-23 Markus Triska <markus.triska@gmx.at>
19805
19806 * emacs.c (main): Call init_editfns before init_process, since
19807 init_process sets Vprocess_connection_type depending on OS release.
19808
198092007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
19810
19811 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
19812 (find_symbol_value): Use do_symval_forwarding.
19813
19814 * data.c (set_internal): Set the value in the `cons-cell' (for
19815 Buffer_Local_values) not only for frame-local variables.
19816
198172007-11-22 Andreas Schwab <schwab@suse.de>
19818
19819 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
19820 values to sprintf.
19821 * keymap.c (Fsingle_key_description): Likewise.
19822 * print.c (print_object): Likewise.
19823
198242007-11-22 Jan Djärv <jan.h.d@swipnet.se>
19825
19826 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
19827 file for image is nil.
19828
198292007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
19830
19831 * term.c: Include stdarg.h.
19832 (fatal): Implement using varargs.
19833 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
19834
198352007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19836
19837 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
19838 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
19839 Update call to buffer_slot_type_mismatch.
19840 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
19841 (buffer_slot_type_mismatch): Update.
19842 * buffer.c (buffer_local_types): Remove.
19843 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
19844 (defvar_per_buffer): Set the type in the buffer_objfwd.
19845
198462007-11-21 Jason Rumney <jasonr@gnu.org>
19847
19848 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
19849 CreateFileMapping returns NULL on failure.
19850
198512007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19852
19853 * search.c (Fset_match_data): Remove the `evaporate' feature.
19854 (unwind_set_match_data): Don't use the `evaporate' feature.
19855
198562007-11-21 Jason Rumney <jasonr@gnu.org>
19857
19858 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
19859
19860 * w32console.c (w32con_write_glyphs): Remove unused variables.
19861
198622007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
19863
19864 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
19865
19866 * s/darwin.h (MULTI_KBOARD): Remove.
19867
19868 * macfns.c (x_create_tip_frame, Fx_create_frame)
19869 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
19870
198712007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
19872
19873 * buffer.c (Fbuffer_local_value): Remove redundant test.
19874 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
19875 than in `current-buffer' to match the comment.
19876 Do the swap using swap_in_global_binding.
19877
19878 * data.c (store_symval_forwarding, set_internal):
19879 * eval.c (specbind): Remove dead code.
19880
19881 * coding.c (detect_coding, Fupdate_coding_systems_internal):
19882 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
19883 Since we do not want to see internal Lisp_*fwd objects here.
19884
198852007-11-18 Jan Djärv <jan.h.d@swipnet.se>
19886
19887 * sysdep.c (init_system_name): Use getaddrinfo if available.
19888
19889 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
19890 (x_scroll_bar_note_movement): start, end, with, height in struct
19891 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
19892
198932007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
19894
19895 * puresize.h (BASE_PURESIZE): Increase to 1190000.
19896
198972007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
19898
19899 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
19900 This undoes Richard's change of 14-Oct-2002.
19901
19902 * alloc.c (allocate_other_vector):
19903 * lisp.h (allocate_other_vector): Remove.
19904
19905 * window.c (struct save_window_data): Move non-lisp data to the end
19906 and make it `int' rather than Lisp_Object.
19907 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
19908 Done wrap/unwrap integer values.
19909 (Fset_window_configuration, compare_window_configurations):
19910 Update use of fields to their new types.
19911
19912 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
19913 Turn integer fields into `int'. Merge x_window_low and x_window_high.
19914 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
19915 (SET_SCROLL_BAR_X_WINDOW): Remove.
19916 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
19917 Access the new x_window field directly.
19918 * xterm.c (x_scroll_bar_create): Use a pseudovector.
19919 Don't wrap/unwrap integers into Lisp_Objects.
19920 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
19921 (x_scroll_bar_report_motion):
19922 Don't wrap/unwrap integers into Lisp_Objects.
19923 (x_term_init): Use SDATA.
19924 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
19925 (x_scroll_bar_set_handle, x_scroll_bar_remove)
19926 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
19927 (x_scroll_bar_report_motion, x_scroll_bar_clear):
19928 * xfns.c (x_set_background_color):
19929 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
19930 Access the new x_window field directly.
19931
19932 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
19933 (allocate_pseudovector): Make non-static.
19934
19935 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
19936 (allocate_pseudovector): Declare.
19937 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
19938
199392007-11-15 Andreas Schwab <schwab@suse.de>
19940
19941 * editfns.c (Fformat): Correctly format EMACS_INT values.
19942 Also take precision into account when formatting an integer.
19943
19944 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
19945
199462007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
19947
19948 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
19949 (syms_of_keyboard): Defsubr it.
19950
19951 * data.c (swap_in_global_binding): Fix longstanding bug where
19952 store_symval_forwarding was not called with the right second argument,
19953 thus causing objfwd-ing from being dropped.
19954
199552007-11-14 Juanma Barranquero <lekktu@gmail.com>
19956
19957 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
19958 (Fx_display_pixel_height, Fx_display_planes)
19959 (Fx_display_color_cells, Fx_server_max_request_size)
19960 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19961 (Fx_display_visual_class, Fx_display_save_under):
19962 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
19963 (Fx_display_pixel_height, Fx_display_planes)
19964 (Fx_display_color_cells, Fx_server_max_request_size)
19965 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
19966 (Fx_display_mm_height, Fx_display_mm_width)
19967 (Fx_display_backing_store, Fx_display_visual_class)
19968 (Fw32_select_font, Fx_display_save_under):
19969 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
19970 (Fx_display_pixel_height, Fx_display_planes)
19971 (Fx_display_color_cells, Fx_server_max_request_size)
19972 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19973 (Fx_display_save_under): Fix typos in docstrings.
19974
199752007-11-14 Juanma Barranquero <lekktu@gmail.com>
19976
19977 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
19978 corresponding to deleted entries; they are an implementation detail.
19979 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
19980 Remove variables.
19981 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
19982 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
19983 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
19984 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
19985 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
19986 (Fw32_define_rgb_color, Fw32_load_color_file)
19987 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
19988 Fix typos in docstrings.
19989 (Fx_server_version): Reflow docstring.
19990 (Fw32_shell_execute): Doc fixes.
19991
199922007-11-13 Juanma Barranquero <lekktu@gmail.com>
19993
19994 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
19995 if w32_parse_hot_key returned nil.
19996
199972007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
19998
19999 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
20000
200012007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 20002
aac0c6e3
MR
20003 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
20004
20005 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
20006
20007 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
20008 Remove W32_SCROLL_BAR_CLICK_EVENT.
20009
20010 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
20011 Add MULTIMEDIA_KEY_EVENT.
20012
20013 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
20014 (lispy_multimedia_keys) [WINDOWSNT]: New array.
20015 (make_lispy_event) [WINDOWSNT]: Use it to translate
20016 MULTIMEDIA_KEY_EVENT.
20017
20018 * w32term.h (WM_APPCOMMAND): Define if not already.
20019 (GET_APPCOMMAND_LPARAM): Likewise.
20020
20021 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
20022 WM_APPCOMMAND.
20023
20024 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
20025 (syms_of_w32fns): Export and initialize it.
20026 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
20027
200282007-11-09 Chong Yidong <cyd@stupidchicken.com>
20029
20030 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
20031 twice.
20032
20033 * xdisp.c (handle_face_prop): Fix last change.
20034
200352007-11-09 Richard Stallman <rms@gnu.org>
20036
20037 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
20038 not just for after-strings and before-strings.
20039 Call face_for_overlay_string and pass the overlay to it.
20040 (handle_display_prop): Determine whether property came from an overlay.
20041 Pass OVERLAY arg to handle_single_display_spec.
20042 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
20043 (load_overlay_strings): Fill in it->string_overlays.
20044 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
20045
20046 * xfaces.c (face_for_overlay_string): Function renamed from
20047 face_at_buffer_position_no_overlays, and add arg OVERLAY.
20048
20049 * dispextern.h (struct it): New elt string_overlays.
20050 New elt from_overlay, also in stack.
20051 Rearrange a few elements.
20052 (face_for_overlay_string): Decl renamed from
20053 face_at_buffer_position_no_overlays, and add argument.
20054
200552007-11-09 Richard Stallman <rms@gnu.org>
20056
20057 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
20058 to get the base face for an overlay string.
20059
20060 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
20061
20062 * xfaces.c (face_at_buffer_position_no_overlays): New function.
20063
20064 * xdisp.c (handle_stop): Move some code out of loop.
20065
200662007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20067
20068 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
20069 Fix conversion from Lisp object to ATSUFontID.
20070
200712007-11-09 Jason Rumney <jasonr@gnu.org>
20072
20073 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
20074
200752007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20076
20077 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
20078 Don't assume regions are aligned to page boundary.
20079 (print_load_command_name): Add LC_UUID if defined.
20080
200812007-11-09 Richard Stallman <rms@gnu.org>
20082
20083 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
20084
200852007-11-07 Jason Rumney <jasonr@gnu.org>
20086
20087 * s/windows95.h: Remove.
20088
200892007-11-06 Jan Djärv <jan.h.d@swipnet.se>
20090
20091 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
20092 abort with a message on unhandled store_type values.
20093
200942007-11-01 Jan Djärv <jan.h.d@swipnet.se>
20095
20096 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
20097 Remove HAVE_X11R5 and HAVE_X11R4.
20098
200992007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
20100
20101 * Makefile.in: Remove references to sunfns.c and sunfns.o.
20102
201032007-11-01 Johan Bockgård <bojohan@gnu.org>
20104
20105 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
20106 Don't set s->stippled_p here, since it has already been set by
20107 x_set_glyph_string_gc from x_draw_glyph_string.
20108
201092007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
20110
20111 * sunfns.c: Remove file.
20112
20113 * m/sun386.h:
20114 * m/sun2.h:
20115 * m/sparc.h: Remove Sun windows code.
20116
201172007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
20118
20119 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
20120 (init_keyboard): Set current_kboard's window-system to nil.
20121 (tty_read_avail_input): Typo.
20122 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
20123
201242007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
20125
20126 * s/usg5-4.h:
20127 * s/usg5-3.h:
20128 * s/ptx.h:
20129 * m/is386.h:
20130 * m/ibmps2-aix.h:
20131 * Makefile.in: Remove all mentions of X10.
20132
20133 * dispnew.c (syms_of_display): Don't mention version 10.
20134
201352007-10-28 Juanma Barranquero <lekktu@gmail.com>
20136
20137 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
20138 ($(BLD)/abbrev.$(O)): Remove.
20139
201402007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
20141
20142 Rewrite abbrev.c in Elisp.
20143 * image.c (Qcount): Don't declare as extern.
20144 (syms_of_image): Initialize and staticpro `Qcount'.
20145 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
20146 * emacs.c (main): Don't call syms_of_abbrev.
20147 * Makefile.in (obj): Remove abbrev.o.
20148 (abbrev.o): Remove.
20149 * abbrev.c: Remove.
20150
201512007-10-26 Martin Rudalics <rudalics@gmx.at>
20152
20153 * window.c (window_min_size_2): Don't count header-line.
20154
201552007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
20156
20157 * frame.h (struct frame): Move all bit fields after the first bit
20158 field to take advantage of the available space. Group all the
20159 chars together to reduce wasted space due to padding.
20160
201612007-10-26 Juanma Barranquero <lekktu@gmail.com>
20162
20163 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
20164
20165 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
20166 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
20167 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
20168 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
20169 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
20170 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
20171 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
20172 (last_marked, mark_object_loop_halt): Make static.
20173
20174 * frame.c (syms_of_frame) <delete-frame-functions>:
20175 Fix typo in docstring.
20176
201772007-10-25 Juanma Barranquero <lekktu@gmail.com>
20178
20179 * w32.c (init_environment): Fix tiny memory leak.
20180 (w32_get_resource): Remove unused variable `ok'.
20181
201822007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
20183
20184 Make `window-system' into a keyboard-local variable (rather than
20185 frame-local as done originally by multi-tty).
20186
20187 * keyboard.h (struct kboard): Add Vwindow_system.
20188 * keyboard.c (init_kboard): Set a default for Vwindow_system.
20189 (mark_kboards): Mark Vwindow_system.
20190
20191 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
20192 (init_display): Don't set the obsolete `window-system' frame-param.
20193
20194 * xterm.c (x_term_init):
20195 * w32term.c (w32_create_terminal):
20196 * term.c (init_tty): Set Vwindow_system.
20197 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
20198 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
20199
20200 * xfns.c (Fx_create_frame, x_create_tip_frame):
20201 * w32fns.c (Fx_create_frame, x_create_tip_frame):
20202 * macfns.c (Fx_create_frame):
20203 Don't set the obsolete `window-system' frame-param.
20204
20205 * frame.h (Qwindow_system): Remove.
20206 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
20207 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
20208
202092007-10-24 Richard Stallman <rms@gnu.org>
20210
20211 * frame.c (x_figure_window_size): For fullscreen case,
20212 set USPosition | PPosition without clobbering rest of window_prompting.
20213
20214 * keyboard.c (Fcurrent_idle_time): Doc fix.
20215
20216 * print.c (Fwith_output_to_temp_buffer): Doc fix.
20217
202182007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
20219
20220 * process.c (unwind_request_sigio): Only define if __ultrix__.
20221
20222 * callproc.c (child_setup): Remove spurious *.
20223
20224 * lisp.h (Fget_text_property): Declare.
20225 (have_menus_p): Declare it here rather than in sys-dep header files.
20226 * macterm.h (have_menus_p):
20227 * msdos.h (have_menus_p):
20228 * xterm.h (have_menus_p): Remove.
20229
20230 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
20231 (Fmake_variable_frame_local): Just check the variable's const-ness
20232 rather than checking nil or t.
20233
202342007-10-22 Jason Rumney <jasonr@gnu.org>
20235
20236 * w32fns.c: Include math.h.
20237 (w32_abort): Declaration moved to nt/config.nt.
20238
20239 * s/ms-w32.h (HAVE_STDLIB_H): Define.
20240 (abort): Redefinition moved to nt/config.nt.
20241
20242 * m/windowsnt.h: Remove.
20243
202442007-10-22 Juanma Barranquero <lekktu@gmail.com>
20245
20246 * emacs.c (Fdump_emacs): Fix typo in message.
20247 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
20248 <installation-directory>: Reflow docstring.
20249
202502007-10-22 Juri Linkov <juri@jurta.org>
20251
20252 * minibuf.c: Allow minibuffer default to be a list of default values.
20253 With empty input use the first element of this list as returned default.
20254 (string_to_object)
20255 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
20256 (read_minibuf): If defalt is cons, set histstring to its car.
20257 (Fread_string): If default_value is cons, set val to its car.
20258 (Fread_buffer): If def is cons, use its car.
20259 (Fcompleting_read): If defalt is cons, set val to its car.
20260
202612007-10-21 Michael Albinus <michael.albinus@gmx.de>
20262
20263 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
20264
202652007-10-20 Juanma Barranquero <lekktu@gmail.com>
20266
20267 * doc.c (Fdocumentation): Check for advice in all cases.
20268
202692007-10-19 Chong Yidong <cyd@stupidchicken.com>
20270
20271 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
20272
202732007-10-19 Richard Stallman <rms@gnu.org>
20274
20275 * doc.c (Fdocumentation): Check for and handle an advised function.
20276
202772007-10-19 Juanma Barranquero <lekktu@gmail.com>
20278
20279 * process.c (Fset_process_filter): Doc fix.
20280
202812007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
20282
20283 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
20284 which caused key-translation-map to applied repeatedly (thus breaking
20285 double-mode).
20286
202872007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
20288
20289 * xselect.c (x_own_selection, x_handle_selection_clear)
20290 (x_clear_frame_selections):
20291 * w32menu.c (list_of_panes, list_of_items):
20292 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
20293 * textprop.c (validate_plist, interval_has_all_properties)
20294 (interval_has_some_properties, interval_has_some_properties_list)
20295 (add_properties, text_property_list):
20296 * process.c (Fget_buffer_process, list_processes_1, status_notify):
20297 * minibuf.c (Fassoc_string):
20298 * macselect.c (x_own_selection, x_clear_frame_selections)
20299 (Fx_disown_selection_internal):
20300 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
20301 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
20302
203032007-10-17 Chong Yidong <cyd@stupidchicken.com>
20304
20305 * process.c: Link to libs for calling res_init() if available.
20306 (Fmake_network_process): Call res_init() before getaddrinfo or
20307 gethostbyname, if possible.
20308
203092007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
20310
20311 * lread.c (read1): Set pvectype for char_tables.
20312
20313 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
20314 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
20315 Add type checks.
20316 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
20317
20318 * alloc.c (free_misc): Use XMISCTYPE.
20319 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
20320
203212007-10-17 Glenn Morris <rgm@gnu.org>
20322
20323 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
20324 (syms_of_minibuf): Add Qcompletion_ignore_case.
20325 * dired.c (Qcompletion_ignore_case): Change to external.
20326 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
20327 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
20328 (Fread_file_name): Use it rather than intern'ing.
20329
20330 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
20331 (Fread_coding_system): Ignore case of user input.
20332
203332007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20334
20335 * xdisp.c (handle_display_prop): Ignore display specs after
20336 replacing one when string text is being replaced.
20337 (handle_single_display_spec): Pretend as if characters with display
20338 property haven't been consumed only when buffer text is being replaced.
20339
203402007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
20341
20342 * xfns.c (Fx_create_frame, Fx_display_list):
20343 * window.c (window_fixed_size_p, enlarge_window)
20344 (shrink_window_lowest_first):
20345 * macterm.c (init_font_name_table):
20346 * macfns.c (Fx_create_frame, Fx_display_list):
20347 * lread.c (close_load_descs):
20348 * keyboard.c (read_char_x_menu_prompt):
20349 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
20350 * coding.c (code_convert_region_unwind): Test the type of an object
20351 rather than just !NILP before extracting data from it.
20352
20353 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
20354
20355 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
20356 (XMISCANY): New macro.
20357 (XMISCTYPE): Use it.
20358 (struct Lisp_Misc_Any): New type.
20359 (union Lisp_Misc): Use it.
20360 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
20361 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
20362 (find_symbol_value, set_internal, default_value, Fset_default)
20363 (Fmake_variable_buffer_local, Fmake_local_variable)
20364 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
20365 (Flocal_variable_if_set_p, Fvariable_binding_locus):
20366 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
20367 * alloc.c (allocate_buffer): Set the size and tag.
20368 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
20369 Use XMISCANY.
20370 (die): Follow the GNU convention for error messages.
20371 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
20372 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
20373 tag any more.
20374 (set_buffer_internal_1):
20375 * frame.c (store_frame_param):
20376 * eval.c (specbind):
20377 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
20378
20379 * doc.c (Fsnarf_documentation): Simplify.
20380
203812007-10-14 Juanma Barranquero <lekktu@gmail.com>
20382
20383 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
20384 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
20385
203862007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
20387
20388 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
20389
203902007-10-14 Juanma Barranquero <lekktu@gmail.com>
20391
20392 * eval.c (do_autoload): Don't save autoloads.
20393
20394 * data.c (Ffset): Save autoload of the function being set.
20395
203962007-10-07 John Paul Wallington <jpw@pobox.com>
20397
20398 * xfns.c (x_create_tip_frame): Set the `display-type' frame
20399 parameter before setting up faces.
20400
204012007-10-13 Eli Zaretskii <eliz@gnu.org>
20402
20403 * ccl.c (Fregister_code_conversion_map):
20404 * keyboard.c (append_tool_bar_item): Reformat last change.
20405
20406 * lisp.h (eabs): Rename from `abs'. All callers changed.
20407
204082007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
20409
20410 * buffer.c (add_overlay_mod_hooklist):
20411 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
20412 * fontset.c (make_fontset):
20413 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
20414 (append_tool_bar_item):
20415 * macmenu.c (grow_menu_items):
20416 * w32menu.c (grow_menu_items):
20417 * xmenu.c (grow_menu_items): Use larger_vector.
20418
204192007-10-13 Eli Zaretskii <eliz@gnu.org>
20420
20421 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
20422 selected frame'' on MSDOS).
20423
204242007-10-12 Martin Rudalics <rudalics@gmx.at>
20425
20426 * frame.c (Qexplicit_name): New variable.
20427 (x_report_frame_params): Report it in parameter alist.
20428 (syms_of_frame): Intern and staticpro it.
20429
204302007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
20431
20432 * macfns.c (x_create_tip_frame): Set terminal for frame.
20433
204342007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
20435
20436 * frame.c (Qenvironment): Remove.
20437 (syms_of_frame) <Qenvironment>: Don't initialize.
20438 (Fdelete_frame): Don't treat the `environment' param specially.
20439 * frame.h (Qenvironment): Don't declare.
20440 * callproc.c (set_initial_environment): Don't set unused frame param.
20441
20442 * frame.c (Fframe_with_environment): Remove.
20443 (syms_of_frame) <Sframe_with_environment>: Don't declare.
20444
20445 * lisp.h (Fframe_with_environment): Don't declare.
20446
204472007-10-10 Juanma Barranquero <lekktu@gmail.com>
20448
20449 * indent.c (indent_tabs_mode, last_known_column)
20450 (last_known_column_modified): Make static.
20451 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
20452
204532007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
20454
20455 * puresize.h (BASE_PURESIZE): Increase to 1170000.
20456
204572007-10-09 Jason Rumney <jasonr@gnu.org>
20458
20459 * w32term.c (x_set_window_size): Disable code that attempts to tell
20460 Lisp code about a size change before it actually happens.
20461
204622007-10-09 Richard Stallman <rms@gnu.org>
20463
20464 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
20465 return HANDLED_RETURN.
20466
204672007-10-08 Martin Rudalics <rudalics@gmx.at>
20468
20469 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
20470 when there's an unread command event.
20471
20472 * frame.c (focus_follows_mouse): Move here from frame.el to allow
20473 window autoselection act appropriately when leaving selected frame.
20474 (syms_of_frame): Initialize focus_follows_mouse.
20475 * frame.h (focus_follows_mouse): Extern it.
20476 * macterm.c (XTread_socket): When focus_follows_mouse is nil
20477 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
20478 * msdos.c (dos_rawgetc): Likewise.
20479 * w32term.c (w32_read_socket): Likewise.
20480 * xterm.c (handle_one_xevent): Likewise.
20481 * xdisp.c (syms_of_xdisp): In doc-string of
20482 mouse-autoselect-window mention focus-follows-mouse.
20483
204842007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20485
20486 * macterm.c (mac_load_query_font): Fix missing return value.
20487 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
20488 Add BLOCK_INPUT.
20489
204902007-10-08 Richard Stallman <rms@gnu.org>
20491
20492 * xdisp.c (get_window_cursor_type): Implement documented behavior
20493 for cursor-in-non-selected-windows = t.
20494
204952007-10-08 Jason Rumney <jasonr@gnu.org>
20496
20497 * w32.c (w32_get_resource): Always close registry keys.
20498
204992007-10-08 Jason Rumney <jasonr@gnu.org>
20500
20501 * makefile.w32-in (LIBS): Add COMCTL32.
20502
20503 * w32fns.c (globals_of_w32fns): Init common controls.
20504
205052007-10-08 Richard Stallman <rms@gnu.org>
20506
20507 * image.c (our_memory_buffer): Rename from omfib_buffer.
20508
205092007-10-08 Richard Stallman <rms@gnu.org>
20510
20511 * buffer.c (Foverlays_at): Doc fix.
20512
205132007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
20514
20515 * fns.c (Fplist_put): Preserve uneven tail data.
20516
205172007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
20518
20519 * termhooks.h (enum event_kind): Remove trailing comma.
20520
20521 * frame.h (enum): Remove trailing comma.
20522
205232007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
20524
20525 * w32proc.c (delete_child): Don't terminate threads of zombies.
20526
205272007-10-08 Martin Rudalics <rudalics@gmx.at>
20528
20529 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
20530
20531 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
20532 last-repeatable-command.
20533 (init_kboard): Initialize Vlast_repeatable_command.
20534 (command_loop_1): Set it to real_this_command unless that was
20535 bound to an input event.
20536 (mark_kboards): Mark it.
20537
205382007-10-08 Richard Stallman <rms@gnu.org>
20539
20540 * eval.c (condition-case): Doc fix.
20541
205422007-10-08 Masatake YAMATO <jet@gyve.org>
20543
20544 * xfaces.c (tty_supports_face_attributes_p): Fix code
20545 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
20546 was copied and not edited.
20547
205482007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
20549
20550 Add new `input-decode-map' keymap and use it for terminal
20551 escape sequences.
20552 * keyboard.h (struct kboard): Add Vinput_decode_map.
20553 Remove Vlocal_key_translation_map.
20554 * keyboard.c (read_key_sequence): Add support for input-decode-map.
20555 (init_kboard): Init input-decode-map.
20556 Replace local-key-translation-map back with key-translation-map.
20557 (syms_of_keyboard): Declare input-decode-map.
20558 Remove local-key-translation-map. Update docstrings.
20559 (mark_kboards): Mark Vinput_decode_map.
20560 Don't mark Vlocal_key_translation_map.
20561 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
20562 Replace local-key-translation-map back with key-translation-map.
20563 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
20564 Bind in input-decode-map rather than function-key-map.
20565
20566 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
20567 This was made redundant by the previous introduction of XSETPVECTYPE.
20568
205692007-10-09 Richard Stallman <rms@gnu.org>
20570
20571 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
20572
205732007-09-29 Richard Stallman <rms@gnu.org>
20574
20575 * eval.c (internal_condition_case_2, internal_condition_case_1)
20576 (internal_condition_case): Reenable abort if x_catching_errors ()
20577 to see if that really happens and why.
20578
205792007-10-06 Andreas Schwab <schwab@suse.de>
20580
20581 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
20582
205832007-10-04 Juanma Barranquero <lekktu@gmail.com>
20584
20585 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
20586
205872007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
20588
20589 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
20590
205912007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
20592
20593 * window.h (struct window):
20594 * window.c (struct save_window_data, struct saved_window):
20595 * termhooks.h (struct terminal):
20596 * process.h (struct Lisp_Process):
20597 * frame.h (struct frame):
20598 * buffer.h (struct buffer):
20599 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
20600 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
20601 The size field of (pseudo)vectors is now unsigned.
20602 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
20603
20604 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
20605 Turn `count' into an integer.
20606
20607 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
20608 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
20609 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
20610 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
20611 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
20612
20613 * alloc.c (allocate_pseudovector): New fun.
20614 (ALLOCATE_PSEUDOVECTOR): New macro.
20615 (allocate_window, allocate_terminal, allocate_frame)
20616 (allocate_process): Use it.
20617 (mark_vectorlike): New function.
20618 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
20619 (mark_terminals): Use it.
20620 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
20621 (Fmake_byte_code): Use XSETPVECTYPE.
20622
20623 * frame.c (Fframe_parameters): Minor simplification.
20624
20625 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
20626
20627 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
20628
20629 * buffer.c (Fget_buffer_create, init_buffer_once):
20630 * lread.c (defsubr):
20631 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
20632
20633 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
20634 defined differently in the m/*.h files.
20635 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
20636 (XSETPVECTYPE): New macro.
20637 (XSETPSEUDOVECTOR): Use it.
20638
20639 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
20640 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
20641
20642 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
20643 * lread.c (defvar_per_buffer):
20644 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
20645
20646 * window.c (candidate_window_p): Only consider as visible frames that
20647 are on the same terminal.
20648
20649 * m/ibms390x.h (MARKBIT): Remove unused macro.
20650
206512007-10-01 Juanma Barranquero <lekktu@gmail.com>
20652
20653 * lread.c (Fload): Fix typo in docstring.
20654
206552007-10-01 Michaël Cadilhac <michael@cadilhac.name>
20656
20657 * floatfns.c (Fexpt): Manually check for overflows, so that a power
20658 of a non-zero value can't yield zero.
20659
206602007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
20661
20662 * term.c (term_clear_mouse_face, term_mouse_highlight)
20663 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
20664
20665 * print.c (safe_debug_print): Use XHASH.
20666
20667 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
20668 Lisp elements such as tags.
20669 (XHASH): New macro.
20670 (EQ): Use it.
20671 (SREF, SSET, STRING_COPYIN): Use SDATA.
20672 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
20673
20674 * alloc.c (mark_terminal): Remove left-over declaration.
20675 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
20676 (allocate_vectorlike): Remove type argument. Adjust callers.
20677 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
20678 Only handle the one remaining MEM_TYPE_VECTORLIKE.
20679
20680 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
20681 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
20682 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
20683 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
20684 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
20685 Use them.
20686
20687 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
20688 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
20689 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
20690
206912007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
20692
20693 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
20694 loaded by default.
20695
206962007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
20697
20698 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
20699 on this tty.
20700 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
20701
20702 * term.c (mouse_face_window): Rename from Qmouse_face_window.
20703 Update all users.
20704 (handle_one_term_event): Use Gpm_DrawPointer.
20705 (Fgpm_mouse_start): Rename from Fterm_open_connection.
20706 Signal errors instead of returning nil. Always return nil.
20707 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
20708 Make it a noop if gpm-mouse was not activated.
20709 (syms_of_term): Update names.
20710
207112007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
20712
20713 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
20714 (init_sys_modes): Check that gpm_tty is the current tty.
20715
20716 * alloc.c (allocate_terminal): Set the vector size to only count the
20717 lisp fields. Initialize those to nil.
20718 (mark_object): Don't treat terminals specially.
20719 (mark_terminal): Remove.
20720 (mark_terminals): Use mark_object instead.
20721
20722 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
20723 the GC to the beginning.
20724
20725 * indent.h:
20726 * indent.c: Use EMACS_INT for ints coming from Elisp data.
20727
20728 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
20729
207302007-09-25 Jason Rumney <jasonr@gnu.org>
20731
20732 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
20733
20734 * w32console.c (create_w32cons_output): Remove.
20735
20736 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
20737
20738 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
20739 (reset_sys_modes): Use reset_terminal_modes_hook.
20740
207412007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
20742
20743 * eval.c (do_autoload): Don't output any message.
20744
207452007-09-24 Juri Linkov <juri@jurta.org>
20746
20747 * emacs.c (standard_args): Change priority of "--no-splash"
20748 from 40 to 3. Add "--no-desktop" with the same priority.
20749
207502007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
20751
20752 * alloc.c (gc_sweep): Check cons cell mark bits word by word
20753 and optimize the case where they are all 1.
20754
207552007-09-23 Johannes Weiner <hannes@saeurebad.de>
20756
20757 * lisp.h (abs): Define if not defined.
20758 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
20759 Don't define `abs', since it's defined in lisp.h.
20760
207612007-09-22 Eli Zaretskii <eliz@gnu.org>
20762
20763 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
20764 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
20765 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
20766 (init_tty): Use DEV_TTY instead of "/dev/tty".
20767 [WINDOWSNT]: No need to protect from NAME arg being null.
20768
207692007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
20770
20771 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
20772 up the tty state.
20773
207742007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20775
20776 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
20777 (gpm_tty): Change its type.
20778 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
20779 (gpm_tty): Change its type and initialize it.
20780 (Fterm_open_connection): Check the frame is indeed a tty.
20781 Use the new gpm_tty.
20782 (Fterm_close_connection): Use the new gpm_tty.
20783 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
20784 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
20785
207862007-09-21 Juanma Barranquero <lekktu@gmail.com>
20787
20788 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
20789 underline_color, to draw strike-through.
20790
207912007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20792
20793 * lisp.h (allocate_terminal): Declare.
20794
20795 * window.c (candidate_window_p): Consider frames that are being placed
20796 by the user as somewhere between visible and iconified.
20797 (window_loop): Prefer windows on the current frame.
20798 (Fselect_window): Move the use of select-frame to the beginning so we
20799 can just delegate all the work (it'll call us back anyway).
20800
20801 * frame.c (Qdisplay_environment_variable):
20802 * frame.h (Qdisplay_environment_variable): Delete.
20803
20804 * .gdbinit (xbacktrace): Print the arg's address rather than the value
20805 of the first arg, since that value may be a union.
20806
20807 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
20808 parameter rather than Qdisplay_environment_variable. If all else
20809 fails, look for DISPLAY in initial-environment.
20810
208112007-09-21 Glenn Morris <rgm@gnu.org>
20812
20813 * Makefile.in (emacstool): Remove target.
20814 (lisp, shortlisp): Remove termdev.elc.
20815
208162007-09-21 Markus Triska <markus.triska@gmx.at>
20817
20818 * xterm.c (x_delete_display): Compile session management conditionally.
20819
208202007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
20821
20822 * callproc.c (getenv_internal_1): New function.
20823 (getenv_internal): Use it.
20824 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
20825
20826 * terminal.c (get_terminal): Don't accept ints to represent terminals.
20827 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
20828 (Fset_terminal_parameter): Work with dead terminals as well.
20829 (Fmodify_terminal_parameters): Remove.
20830
20831 * terminal.c (get_terminal): Handle terminals.
20832 Make sure the terminal returned is live.
20833 (create_terminal): Use allocate_terminal.
20834 (mark_terminals): Move to alloc.c.
20835 (delete_terminal): Use terminal->name as liveness status.
20836 NULL out fields after freeing their contents.
20837 Don't deallocate the object.
20838 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
20839 rather than an int.
20840 (Fterminal_live_p): Accept non-integer arguments.
20841 (Fterminal_list): Return terminal objects rather than an ints.
20842
20843 * alloc.c (enum mem_type): New member for `terminal' objects.
20844 (allocate_terminal): New function.
20845 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
20846 Handle terminals.
20847 (mark_terminal): New fun.
20848 (mark_terminals): Move from terminal.c.
20849
20850 * term.c (get_tty_terminal): Don't treat output_initial specially.
20851 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
20852 (delete_tty): Use terminal->name as liveness status.
20853
20854 * termhooks.h (struct terminal): Make it into a pseudovector.
20855 Remove `deleted' replaced by checking `name's nullness.
20856
20857 * print.c (print_object): Handle terminals.
20858
20859 * lisp.h (enum pvec_type): New `terminal' pseudovector.
20860 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
20861
20862 * frame.c (make_terminal_frame):
20863 * keyboard.c (tty_read_avail_input):
20864 * w32term.c (x_delete_terminal):
20865 * xfns.c (Fx_create_frame, x_create_tip_frame):
20866 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
20867
208682007-09-20 Glenn Morris <rgm@gnu.org>
20869
20870 * process.c (Fmake_network_process): Doc fix.
20871
208722007-09-19 Jason Rumney <jasonr@gnu.org>
20873
20874 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
20875
208762007-09-19 Michaël Cadilhac <michael@cadilhac.name>
20877
20878 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
20879 Fix a C warning regarding variable constness.
20880
20881 * xterm.c (handle_one_xevent): Fix a C warning.
20882
208832007-09-18 Jason Rumney <jasonr@gnu.org>
20884
20885 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
20886
208872007-09-17 Jan Djärv <jan.h.d@swipnet.se>
20888
20889 * gtkutil.c (gdpy_def): New variable.
20890 (xg_initialize): Initialize gdpy_def.
20891 (xg_display_close): If no other display exists, set gdpy_def to a
20892 new connection.
20893
208942007-09-16 Jan Djärv <jan.h.d@swipnet.se>
20895
20896 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
20897 when we have no file name for the icon.
20898 (xg_tool_bar_expose_callback): Remove.
20899 (xg_create_tool_bar): Don't connect expose signal to
20900 xg_tool_bar_expose_callback.
20901 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
20902
209032007-09-16 Andreas Schwab <schwab@suse.de>
20904
20905 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
20906 values instead of zapping them.
20907
209082007-09-14 Glenn Morris <rgm@gnu.org>
20909
20910 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
20911 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
20912 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
20913 scope and rename to omfib_buffer for clarity.
20914 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
20915
209162007-09-14 Kenichi Handa <handa@m17n.org>
20917
20918 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
20919
209202007-09-13 Jason Rumney <jasonr@gnu.org>
20921
20922 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
20923
20924 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
20925
20926 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
20927 (mac_term_init): Call here instead, passing rif.
20928
209292007-09-13 Glenn Morris <rgm@gnu.org>
20930
20931 * s/hpux.h: No longer define `static' as nothing.
20932
209332007-09-13 Johan Bockgård <bojohan@gnu.org>
20934
20935 * callint.c (Fcall_interactively): Remove unused var `fun'.
20936
209372007-09-12 Romain Francoise <romain@orebokech.com>
20938
20939 * window.c (prefer_window_split_horizontally, display_buffer):
20940 Revert 2007-09-08 change.
20941
209422007-09-12 Glenn Morris <rgm@gnu.org>
20943
20944 * alloca.c: Remove file.
20945 * Makefile.in (alloca): Do not undef.
20946 (allocaobj, alloca.o): Remove.
20947 (otherobj): Remove allocaobj.
20948 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
20949 * regex.c (C_ALLOCA): Remove all references and code that was only
20950 used when this was defined.
20951 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
20952 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
20953 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
20954
20955 * Makefile.in (SOURCES, unlock, relock): Delete.
20956
20957 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
20958 (menu_grab_callback): All uses changed.
20959
20960 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
20961 (x_reply_selection_request): All uses changed.
20962
209632007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
20964
20965 * lread.c (load_warn_old_style_backquotes): Change message to look
20966 better when it appears in the middle of byte-compiler messages.
20967
209682007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
20969
20970 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
20971
20972 * xterm.c (x_create_terminal): Add comment.
20973
20974 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
20975
209762007-09-10 Richard Stallman <rms@gnu.org>
20977
20978 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
20979
209802007-09-10 Michaël Cadilhac <michael@cadilhac.name>
20981
20982 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
20983 (DEFUN): Document `intspec', use it instead of `prompt'.
20984
20985 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
20986
20987 * data.c (Finteractive_form): If the interactive specification starts
20988 with a `(', use it as a Lisp form.
20989
20990 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
20991 name and file modes.
20992
20993 * callint.c (Fcall_interactively): Comment fixes.
20994
209952007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
20996
20997 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
20998 and compiled functions.
20999
210002007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
21001
21002 * window.c (prefer_window_split_horizontally): New variable.
21003 (display_buffer): Consider splitting window horizontally depending
21004 on prefer_window_split_horizontally.
21005
210062007-09-08 Eli Zaretskii <eliz@gnu.org>
21007
21008 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
21009
210102007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
21011
21012 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
21013
21014 * frame.c (x_set_frame_parameters): Check number is positive before
21015 using XFASTINT.
21016
21017 * window.c (freeze_window_start): Don't presume selected_window holds
21018 a window object.
21019 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
21020
210212007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
21022
21023 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
21024
210252007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
21026
21027 * window.c (Vsplit_window_preferred_function): New var.
21028 (Fdisplay_buffer): Use it.
21029 (syms_of_window): Export, and initialize it.
21030
210312007-09-06 Pixel <pixel@mandriva.com> (tiny change)
21032
21033 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
21034
210352007-09-06 Glenn Morris <rgm@gnu.org>
21036
21037 * gtkutil.c (menu_grab_callback) <cnt>:
21038 * xselect.c (x_reply_selection_request) <cnt>: Move static
21039 variable to file scope.
21040
210412007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
21042
21043 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
21044 consistent values of selected_frame and selected_window.
21045
210462007-09-04 Jason Rumney <jasonr@gnu.org>
21047
21048 * w32console.c (initialize_w32_display): Zero unused hooks.
21049
210502007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
21051
21052 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
21053 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
21054
210552007-09-04 Jason Rumney <jasonr@gnu.org>
21056
21057 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
21058 in w32console.c. Set up input. Remove XXX comments that have been
21059 confirmed as correct.
21060
21061 * s/ms-w32.h (MULTI_KBOARD): Define.
21062
21063 * w32console.c (one_and_only_w32cons): Remove.
21064 (initialize_w32_display): Take terminal argument.
21065
21066 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
21067 initialize_w32_display.
21068 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
21069
21070 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
21071
21072 * keyboard.c (discard_mouse_events): Discard it.
21073 (make_lispy_event): Translate it to a lisp event.
21074 (lispy_wheel_names): Add wheel-left and right events.
21075 (syms_of_keyboard): Enlarge wheel_syms.
21076
21077 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
21078 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
21079
21080 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
21081
21082 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
21083 from WM_MOUSEHWHEEL.
21084 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
21085
21086 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
21087 terminal.
21088
21089 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
21090 keyboard for the terminal.
21091
210922007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
21093
21094 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
21095 (Vresume_tty_hook): Rename from Vresume_tty_functions.
21096 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
21097 and resume-tty-function to resume-tty-hook.
21098 (Fsuspend_tty, Fresume_tty): Use new names.
21099
211002007-09-02 Jan Djärv <jan.h.d@swipnet.se>
21101
21102 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
21103 if it starts with "n:".
21104
211052007-08-31 Jan Djärv <jan.h.d@swipnet.se>
21106
21107 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
21108
211092007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
21110
21111 * frame.h:
21112 * frame.c (Qterm_environment_variable): Remove.
21113 (syms_of_frame): Don't init and staticpro it.
21114
21115 * callproc.c (getenv_internal): Remove special case for $TERM.
21116
21117 * callproc.c (Vinitial_environment): New variable.
21118 (set_initial_environment): Initialize it.
21119 (syms_of_callproc): Declare it.
21120 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
21121 TERM under which a process runs is never related to the TERM in which
21122 Emacs is running.
21123
211242007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
21125
21126 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
21127 * s/darwin.h: ... do it here.
21128
211292007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
21130
21131 * lisp.h (set_initial_environment): Rename from set_global_environment.
21132
21133 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
21134 removed by mistake on the multi-tty branch.
21135
21136 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
21137 (Fmodify_frame_parameters): Return a value.
21138
21139 * image.c (png_load): Comment-out var only used in commented-out code.
21140
21141 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
21142 before passing it to mark_object.
21143
21144 * xfaces.c (internal_resolve_face_name): Return a value.
21145 (internal_resolve_face_name, resolve_face_name_error): Comment out.
21146
21147 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
21148 (x_icon): Comment-out var only used in commented-out code.
21149
211502007-08-29 Romain Francoise <romain@orebokech.com>
21151
21152 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
21153 QUIT hasn't been provided.
21154
211552007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
21156
21157 * callproc.c (child_setup, getenv_internal): Use the
21158 display-environment-variable and term-environment-variable frame params.
21159 (set_initial_environment): Initialise Vprocess_environment.
21160
21161 * config.in: Disable multi-keyboard support on a mac.
21162
21163 * frame.c (Qterm_environment_variable)
21164 (Qdisplay_environment_variable): New variables.
21165 (syms_of_frame): Intern and staticpro them.
21166 (Fmake_terminal_frame): Disable output method test.
21167
21168 * frame.h: Declare them here.
21169
21170 * macfns.c (x_set_mouse_color): Get rif from the frame.
21171 (x_set_tool_bar_lines): Don't use updating_frame.
21172 (mac_window): Add 2 new parameters for consistency with other systems.
21173 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
21174 frame parameters following what is done in X11 and w32. Don't use
21175 FRAME_MAC_DISPLAY_INFO.
21176 (Fx_open_connection, start_hourglass): Remove window-system check.
21177 (x_create_tip_frame): Get the keyboard from the terminal.
21178
21179 * macmenu.c: Reorder includes.
21180 (Fx_popup_menu): Use terminal specific mouse_position_hook.
21181
21182 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
21183 terminal parameter.
21184 (x_clear_frame): Add a frame parameter.
21185 (note_mouse_movement): Get rif from the frame.
21186 (mac_term_init): Initialize the terminal.
21187 (mac_initialize): Make static and move terminal initialization ...
21188 (mac_create_terminal): ... to this new function.
21189
21190 * macterm.h (struct mac_display_info): Add terminal.
21191 (mac_initialize): Delete declaration.
21192
21193 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
21194
21195 * sysdep.c: Comment out text after #endif.
21196
21197 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
21198 is defined. Better initialize ttys in windows. Use terminal
21199 specific mouse_position_hook.
21200
21201 * termhooks.h (union display_info): Add mac_display_info.
21202
21203 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
21204 Set the default minibuffer frame, window_system and the rest of the
21205 frame parameters following what is done in X11.
21206
21207 * w32term.c (w32_initialize): Make static.
21208
21209 * xselect.c (x_handle_selection_clear): Only access
21210 terminal->kboard when MULTI_KBOARD is defined.
21211
21212 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
21213 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
21214
212152007-08-29 Jason Rumney <jasonr@gnu.org>
21216
21217 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
21218 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
21219
21220 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
21221 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
21222
21223 * keyboard.c (restore_kboard_configuration): Only define when
21224 MULTI_KBOARD defined.
21225
21226 * makefile.w32-in: Update dependancies from Makefile.in.
21227 (OBJ1): Add terminal.$(O)
21228
21229 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
21230 Don't define function body.
21231 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
21232
21233 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
21234
21235 * w32.c (request_sigio, unrequest_sigio): Remove.
21236
21237 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
21238 (w32con_clear_frame, w32con_clear_end_of_line)
21239 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
21240 (w32con_delete_glyphs, w32con_set_terminal_window)
21241 (scroll_line, w32_sys_ring_bell): Add frame arg.
21242 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
21243 Add terminal arg.
21244 (PICK_FRAME): Remove.
21245 (w32con_write_glyphs): Use frame specific terminal coding.
21246 (one_and_only_w32cons): New global variable.
21247 (initialize_w32_display): Use it for storing hooks.
21248 (create_w32cons_output): New function.
21249
21250 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
21251 arg a frame.
21252
21253 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
21254 Set window_system.
21255 (x_set_tool_bar_lines): Don't use updating_frame.
21256 (Fx_create_frame): Set terminal and ref count.
21257 (Fx_open_connection): Remove window-system check.
21258
21259 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
21260
21261 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
21262 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
21263 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
21264 Add frame arg.
21265 (x_delete_terminal, w32_create_terminal): New functions.
21266 (w32_term_init): Create a terminal.
21267 (w32_initialize): Move terminal specific initialization to
21268 w32_create_terminal.
21269
21270 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
21271 (w32_clear_rect, w32_clear_area): Use background from frame.
21272 (w32_display_info): Add terminal.
21273 (w32_sys_ring_bell, x_delete_display): Declare here.
21274
21275 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
21276
21277 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
21278
212792007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
21280
21281 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
21282 Fix get_named_tty calls for the controlling tty.
21283
212842007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
21285
194d44e7 21286 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
21287
212882007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
21289
21290 * term.c (tty_insert_glyphs): Add missing first parameter.
21291
212922007-08-29 Károly Lőrentey <karoly@lorentey.hu>
21293
21294 * buffer.c (Fbuffer_list, Fbury_buffer):
21295 Take frame->buried_buffer_list into account.
21296
21297 * cm.c (current_tty): New variable, for cmputc().
21298 (cmputc): Use it.
21299 (cmcheckmagic): Add tty parameter, look up terminal streams there.
21300 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
21301 (cmgoto): Add tty parameter. Pass it on to calccost().
21302 Use emacs_tputs() instead of tputs().
21303
21304 * cm.h (emacs_tputs): New macro to set current_tty, and then call
21305 tputs().
21306 (current_tty): New variable, for cmputc().
21307 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
21308
21309 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
21310 (internal_condition_case, internal_condition_case_1)
21311 (internal_condition_case_2): Don't abort when x_catching_errors.
21312
21313 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
21314 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
21315 prevent crashes caused by bogus longjmps in read_char.
21316
21317 * keymap.h (Fset_keymap_parent): Add EXFUN.
21318
21319 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
21320 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
21321 Remove redundant definition.
21322
21323 * macfns.c (x_set_mouse_color, x_make_gc):
21324 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21325
21326 * w32term.c (x_free_frame_resources):
21327 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21328 (w32_initialize): Use the accessor macros for terminal characteristics.
21329
21330 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
21331 Use the accessor macros for terminal characteristics.
21332 * msdos.c (internal_terminal_init): Use the accessor macros for
21333 terminal characteristics.
21334 (ScreenVisualBell, internal_terminal_init):
21335 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21336
21337 * termopts.h (no_redraw_on_reenter): Declare.
21338
21339 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
21340 (mark_terminals, mark_ttys): Declare.
21341 (Fgarbage_collect): Call them.
21342 (mark_object): Mark buried_buffer_list.
21343
21344 * prefix-args.c: Include stdlib.h for exit.
21345
21346 * syssignal.h: Add comment.
21347
21348 * indent.c: Include stdio.h.
21349
21350 * window.h (Vinitial_window_system): Declare.
21351 (Vwindow_system): Delete declaration.
21352
21353 * fontset.c (Finternal_char_font): Use FRAME_RIF.
21354
21355 * image.c (lookup_image): Don't initialize `c' until the xasserts
21356 have been run.
21357
21358 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
21359 FRAME_FOREGROUND_PIXEL.
21360
21361 * print.c (print_preprocess): Don't lose print_depth levels while
21362 iterating.
21363
21364 * widget.c (update_from_various_frame_slots):
21365 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21366
21367 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
21368 frames.
21369 (window_internal_height): Remove bogus make_number call.
21370 (init_window_once): Call make_terminal_frame with two zero parameters.
21371
21372 * fileio.c (Fread_file_name): Update comment.
21373
21374 * callint.c (Fcall_interactively):
21375 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
21376 Make sure it is correctly unwound.
21377
21378 * xsmfns.c (x_session_close): New function.
21379
21380 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
21381 Delete declarations.
21382
21383 * xterm.h: Remove declaration for x_fully_uncatch_errors.
21384 (x_output): Remove background_pixel and foreground_pixel fields.
21385 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
21386 (x_delete_device, x_session_close): Declare.
21387
21388 * lread.c: Include setjmp.h. Update declaration of `read_char'.
21389 (read_filtered_event): Call `read_char' with a local
21390 `wrong_kboard_jmpbuf'.
21391
21392 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
21393 Don't call single_kboard_state. Use FRAME_RIF.
21394
21395 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
21396 systems.
21397
21398 * lisp.h (set_process_environment): Rename to `set_global_environment'.
21399 (Fframe_with_environment, Fset_input_meta_mode)
21400 (Fset_quit_char): EXFUN.
21401 (x_create_device, tty_output, terminal, tty_display_info): Declare.
21402 (init_sys_modes, reset_sys_modes): Update prototypes.
21403 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
21404
21405 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
21406 Vlocal_key_translation_map, and Vkeyboard_translate_table.
21407 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
21408 Delete declarations.
21409 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
21410 (temporarily_switch_to_single_kboard, tty_read_avail_input):
21411 New declarations.
21412
21413 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
21414 already does that during init_display(). Call syms_of_keymap
21415 before syms_of_keyboard. Call `syms_of_terminal'.
21416 Call set_initial_environment, not set_process_environment.
21417 (shut_down_emacs): Call reset_all_sys_modes() instead of
21418 reset_sys_modes().
21419
21420 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
21421 (internal_resolve_face_name, resolve_face_name_error): New functions.
21422 (resolve_face_name): Protect against loops and errors thrown by Fget.
21423 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
21424 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
21425
21426 * scroll.c: Replace CURTTY() with local variables throughout the
21427 file (where applicable).
21428 (calculate_scrolling, calculate_direct_scrolling)
21429 (scrolling_1, scroll_cost): Use the accessor macros for terminal
21430 characteristics.
21431
21432 * keymap.c (Vfunction_key_map): Remove.
21433 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
21434 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
21435 (Vkey_translation_map): Remove.
21436 (syms_of_keymap): Remove DEFVAR for key-translation-map.
21437 (Fdescribe_buffer_bindings)
21438 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
21439 Update for terminal-local key-translation-map.
21440
21441 * Makefile.in (callproc.o): Update dependencies.
21442 (lisp, shortlisp): Add termdev.elc.
21443 (obj): Add terminal.o.
21444 (terminal.o): Add dependencies.
21445 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
21446 (data.o, fns.o): Add termhooks.h dependency.
21447 (SOME_MACHINE_LISP): Add dnd.elc.
21448 (minibuf.o): Fix typo.
21449 Update dependencies.
21450
21451 * data.c (do_symval_forwarding, store_symval_forwarding)
21452 (find_symbol_value): Use the selected frame's keyboard, not
21453 current_kboard.
21454
21455 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
21456 Vwindow_system.
21457
21458 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
21459 Fmenu_bar_open.
21460 (syms_of_xmenu): Update defsubr.
21461 (mouse_position_for_popup, Fx_popup_menu)
21462 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
21463 (set_frame_menubar, free_frame_menubar)
b97439ce 21464 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
21465 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
21466 an X frame.
21467
21468 * xselect.c (x_own_selection): Abort if not an X frame.
21469 (some_frame_on_display): Check if it is an X frame.
21470 (x_handle_selection_clear): Deal with MULTI_KBOARD.
21471
21472 * coding.c: Include frame.h and termhooks.h.
21473 (terminal_coding, keyboard_coding): Delete.
21474 (Fset_terminal_coding_system_internal)
21475 (Fset_keyboard_coding_system_internal)
21476 (Fkeyboard_coding_system)
21477 (Fterminal_coding_system): Add a terminal parameter.
21478 Get terminal_coding from the terminal.
21479 (init_coding_once): Don't call setup_coding_system here.
21480
21481 * dispextern.h (set_scroll_region, turn_off_insert)
21482 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
21483 (tty_clear_end_of_line, tty_setup_colors)
21484 (delete_tty, updating_frame)
21485 (produce_special_glyphs, produce_glyphs, write_glyphs)
21486 (insert_glyphs): Remove.
21487 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
21488 (tty_turn_off_highlight, get_tty_size): Add declaration.
21489 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
21490
21491 * frame.h (enum output_method): Add output_initial.
21492 (struct x_output): Delete.
21493 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
21494 Access foreground_pixel and background_pixel directly from the frame.
21495 (tty_display): Delete.
21496 (struct frame): Add buried_buffer_list, foreground_pixel,
21497 background_pixel and terminal. Delete kboard.
21498 (union output_data): Add tty.
21499 (FRAME_KBOARD): Get the kboard from the terminal.
21500 (FRAME_INITIAL_P): New macro.
21501 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
21502 (Qterm_environment_variable, Qdisplay_environment_variable)
21503 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
21504 New declarations.
21505
21506 * termchar.h (tty_output, tty_display_info): New structures.
21507 (tty_list): Declare.
21508 (FRAME_TTY, CURTTY): New macros.
21509 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
21510 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
21511 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
21512 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
21513
21514 * callproc.c: Include frame.h and termhooks.h, for terminal
21515 parameters.
21516 (add_env): New function.
21517 (child_setup): Use it.
21518 (child_setup, getenv_internal): Handle the new Vprocess_environment.
21519 (getenv_internal): Fix get_terminal_param call.
21520 (Fgetenv_internal, egetenv): Update doc.
21521 (syms_of_callproc): Initialize Vprocess_environment to nil.
21522 Register and initialize them. Remove obsolete defvars. Update doc
21523 strings.
21524 (child_setup): Handle Vlocal_environment_variables.
21525 (getenv_internal): Add terminal parameter.
21526 Handle Vlocal_environment_variables.
21527 (Fgetenv_internal): Add terminal parameter.
21528 (child_setup, getenv_internal, Fgetenv_internal): Store the local
21529 environment in a frame (not terminal) parameter. Update doc strings.
21530 (set_initial_environment): Rename from set_global_environment.
21531 Store Emacs environment in initial frame parameter.
21532
21533 * xdisp.c (redisplay_internal): Update references to
21534 `previous_terminal_frame'.
21535 (display_mode_line, Fformat_mode_line): Replace calls to
21536 `push_frame_kboard' with `push_kboard'.
21537 (get_glyph_string_clip_rects): Add extra parentheses and
21538 braces to prevent compiler warnings.
21539 (calc_pixel_width_or_height): Add xassert to check that the
21540 frame is alive. Don't call `lookup_image' on a termcap frame.
21541 (message2_nolog, message3_nolog, redisplay_internal)
21542 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
21543 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
21544 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
21545 (Fx_display_pixel_width, Fx_display_pixel_height)
21546 (Fx_display_planes, Fx_display_color_cells)
21547 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
21548 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
21549 (Fx_display_backing_store, Fx_display_visual_class)
21550 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
21551 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
21552
21553 * xfns.c (x_set_foreground_color x_set_background_color)
21554 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
21555 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21556 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
21557 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
21558 terminal that is being deleted.
21559 (Fx_create_frame): Use `store_frame_param' to set `window-system'
21560 frame parameter, and make sure it overrides any user-supplied setting.
21561 (Fx_close_connection, Fx_synchronize): Unify argument names with
21562 the rest of the DEFUNs.
21563
21564 * dispnew.c (Fsend_string_to_terminal): Update call to
21565 `get_tty_terminal'.
21566 (Fredraw_frame, Fsend_string_to_terminal)
21567 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
21568 FRAME_TERMCAP_P and FRAME_TTY.
21569 (window_change_signal): Don't believe width/height values that are
21570 impossibly small.
21571 (Vinitial_window_system): Rename from Vwindow_system.
21572 (termscript, Wcm, rif): Delete.
21573
21574 * termhooks.h (struct terminal): New struct containing the
21575 previously global text display hooks and new members NAME,
21576 DELETED and PARAM_ALIST.
21577 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
21578 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
21579 (FRAME_RIF): New macros.
21580 (get_terminal_param, get_device): New declarations.
21581 (termscript): Delete declaration.
21582
21583 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
21584 (XTflash, x_free_frame_resources, x_scroll_bar_create)
21585 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
21586 FRAME_FOREGROUND_PIXEL.
21587 (x_fully_uncatch_errors): Disable definition.
21588 (x_scroll_bar_expose): Fix reference to foreground pixel.
21589 (XTread_socket): Disable loop on all X displays.
21590 (x_delete_terminal): Don't set terminal->deleted and let
21591 delete_terminal delete the frames on the terminal.
21592 (x_delete_display): Doc update to reflect changes in
21593 delete_terminal.
21594 (x_display_info) <terminal>: Move member earlier in the struct.
21595 (deleting_tty): Remove old variable.
21596 (Fsuspend_tty): Call clear_tty_hooks.
21597 (Fresume_tty, init_tty): Call set_tty_hooks.
21598 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
21599 errors on X frames.
21600 (x_catch_errors_unwind): Abort if x_error_message is NULL.
21601 (handle_one_xevent): Initialize `f' to NULL.
21602 (x_delete_terminal, x_create_terminal): New functions.
21603 (XTset_terminal_modes, XTreset_terminal_modes)
21604 (XTread_socket, x_connection_closed, x_term_init)
21605 (x_term_init, x_delete_display): Add terminal parameter.
21606 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
21607 X connections.
21608
21609 * frame.c: Include termchar.h.
21610 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
21611 (Qwindow_system, Qenvironment, Qterm_environment_variable)
21612 (Qdisplay_environment_variable): New vars.
21613 (Fframep): Deal with output_initial.
21614 (Fframe-live-p): Doc fix.
21615 (Fwindow-system): New function.
21616 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
21617 (make_terminal_frame): Don't create frames on a terminal that is
21618 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21619 (store_frame_param): Check for found_for_frame before calling XFRAME.
21620 (Fmake_terminal_frame): Handle NULL tty names correctly.
21621 (syms_of_frame): Enhance doc string of `default-frame-alist'.
21622 (Fdelete_frame): Remove unused variable `count'. Don't allow other
21623 frames to refer to a deleted frame in their 'environment parameter.
21624 (Fframe_with_environment): New function.
21625 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
21626 (get_future_frame_param): New function.
21627 (Fmake_terminal_frame): Use it.
21628 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
21629
21630 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
21631 * sysdep.c (reset_sys_modes): Update for renames.
21632
21633 * keyboard.c (tty_read_avail_input): New function.
21634 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
21635 (syms_of_keyboard): Defsubr them.
21636 (Fset_input_meta_mode, Fset_quit_char): New functions.
21637 (Fset_input_mode): Split to above functions.
21638 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
21639 parameter. Use it in call to `read_char'.
21640 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
21641 Set wrong_kboard_jmpbuf correctly in recursive calls.
21642 Use current_kboard to access Vkeyboard_translate_table.
21643 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
21644 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
21645 Update longjmp invocations. Remember the original current_kboard,
21646 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
21647 changes it. Comment out unnecessary calls to
21648 `record_single_kboard_state' and `any_kboard_state'.
21649 Update recursive calls.
21650 (wrong_kboard_jmpbuf): Remove global variable.
21651 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
21652 Handle deleted interrupted_kboards correctly; that is a legal
21653 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
21654 and read_char calls. Abort if interrupted_kboard died in read_char.
21655 (any_kboard_state, single_kboard_state)
21656 (push_frame_kboard): Remove function.
21657 (pop_kboard): Switch out of single_kboard mode if the kboard has
21658 been deleted. Remove unused variable. Help debugging by not
21659 changing current_kboard unnecessarily. Set current_kboard to the
21660 kboard of the selected frame when the stored kboard object has
21661 been deleted before pop_kboard.
21662 (temporarily_switch_to_single_kboard): Change first parameter to a
21663 frame pointer. Throw an error when caller wants to change kboards
21664 while in single_kboard mode. Don't push_kboard if we weren't in
21665 single kboard state. Don't pop_kboard if we popped into any
21666 kboard state.
21667 (restore_kboard_configuration): Abort if pop_kboard changed the
21668 kboard in single_kboard mode. Call pop_kboard only after setting
21669 up single_kboard mode.
21670 (Frecursive_edit): Switch to single_kboard mode only in nested
21671 command loops.
21672 (cmd_error, command_loop, command_loop_1, timer_check):
21673 Comment out unnecessary call to `any_kboard_state' and
21674 `record_single_kboard_state'.
21675 (delete_kboard): Exit single_kboard mode if we have just deleted
21676 that kboard. Use FRAME_KBOARD.
21677 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
21678 `fatal_error_signal'.
21679 (record_single_kboard_state): Don't push_kboard if we weren't in
21680 single kboard state. Don't pop_kboard if we popped into any
21681 kboard state.
21682 (push_frame_kboard): Rename to push_kboard.
21683 (kbd_buffer_get_event): Use FRAME_TERMINAL.
21684 (read_avail_input): Read input from all terminals.
21685 (mark_kboards): Also mark Vkeyboard_translate_table.
21686 (kbd_buffer_store_event_hold): Simplify condition.
21687 (read_key_sequence): Reinitialize fkey and keytran at each replay.
21688 (Vkeyboard_translate_table): Move to struct kboard.
21689 (init_kboard): Initialize Vkeyboard_translate_table.
21690 (syms_of_keyboard): Use DEFVAR_KBOARD to define
21691 Vkeyboard_translate_table. Update doc strings. Update docs of
21692 local-function-key-map and function-key-map.
21693
21694 * terminal.c: New file.
21695
21696 * term.c: Include errno.h.
21697 (Vring_bell_function, device_list, initial_device)
21698 (next_device_id, ring_bell, update_begin, update_end)
21699 (set_terminal_window, cursor_to, raw_cursor_to)
21700 (clear_to_end, clear_frame, clear_end_of_line)
21701 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
21702 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
21703 (syms_of_term): Move their initialization to terminal.c.
21704 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
21705 (Ftty_display_color_cells)
21706 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
21707 (clear_tty_hooks, set_tty_hooks)
21708 (init_tty, maybe_fatal): New functions.
21709 (Ftty_type): Return nil if terminal is not on a tty instead of
21710 throwing an error. Doc update.
21711 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
21712 Doc update. Initialize new subrs and variables.
21713 (delete_tty): Use terminal->deleted.
21714 (tty_set_terminal_modes): Rename from set_terminal_modes.
21715 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
21716 (set_scroll_region): Rename to `tty_set_scroll_region'.
21717 (turn_on_insert): Rename to `tty_turn_on_insert'.
21718 (turn_off_insert): Rename to `tty_turn_off_insert'.
21719 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
21720 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
21721 (toggle_highligh): Rename to `tty_toggle_highlight'.
21722 (background_highlight): Rename to `tty_background_highlight'.
21723 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
21724 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
21725 (tty_set_scroll_region, tty_background_highlight)
21726 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
21727 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
21728 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
21729 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
21730 Add static modifier.
21731 (tty_reset_terminal_modes, tty_set_terminal_window)
21732 (tty_set_scroll_region, tty_background_highlight)
21733 (tty_highlight_if_desired, tty_cursor_to)
21734 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
21735 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
21736 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
21737 renames.
21738
217392007-08-28 Jan Djärv <jan.h.d@swipnet.se>
21740
21741 * keyboard.c: Qrtl is new.
21742 (parse_tool_bar_item): Handle :rtl keyword.
21743 (syms_of_keyboard): Intern :rtl keyword.
21744
21745 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
21746
21747 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
21748 so no Lisp code is executed.
21749 (file_for_image, find_rtl_image): New functions.
21750 (xg_get_image_for_pixmap): Use file_for_image.
21751 (update_frame_tool_bar): If direction is RTL, use RTL image if
21752 defined. Use Gtk stock images if defined.
21753
217542007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21755
21756 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
21757 for nonexistent or zero-width glyph in composition glyph.
21758
217592007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
21760
21761 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
21762
21763 * xdisp.c (Finvisible_p): New function.
21764 (syms_of_xdisp): defsubr it.
21765
217662007-08-24 Juanma Barranquero <lekktu@gmail.com>
21767
21768 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
21769 Doc fixes.
21770
217712007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21772
21773 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
21774
217752007-08-24 Martin Rudalics <rudalics@gmx.at>
21776
21777 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
21778 whether decoding has modified buffer contents.
21779
217802007-08-24 Jason Rumney <jasonr@gnu.org>
21781
21782 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
21783 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
21784 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
21785 (init_svg_functions) [HAVE_NTGUI]: New function.
21786 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
21787 (svg_load_image): Use them.
21788 (svg_load_image) [HAVE_NTGUI]: Implement background.
21789
217902007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21791
21792 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
21793 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
21794 (LIBX): Remove @RSVG_LIBS@.
21795 (LIBES): Add $(RSVG_LIBS).
21796
21797 * image.c (svg_load_image): Blend with specified background if exists.
21798 Use IMAGE_BACKGROUND. Add Mac OS Support.
21799
21800 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
21801 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
21802 Remove macros.
21803 [MAC_OSX] (socket_callback): Do nothing.
21804 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
21805 ReceiveNextEvent.
21806 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
21807 socket_callback.
21808 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
21809
218102007-08-22 Glenn Morris <rgm@gnu.org>
21811
21812 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
21813
218142007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
21815
21816 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
21817
21818 * image.c: Add support for SVG images. Some additional comments
21819 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
21820 (svg_image_p): New function to test for SVG image.
21821 (svg_load): New function to load SVG image.
21822 (svg_load_image): New function, helper for svg_load.
21823 (Qsvg): New Lisp_object.
21824 (svg_keyword_index): New enum.
21825 (svg_format): New static `image_keyword' struct.
21826 (svg_type): New static `image_type' struct.
21827 (librsvg/rsvg.h): Include it.
21828
218292007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
21830
21831 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
21832
218332007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
21834
21835 * lread.c (Qold_style_backquotes): New var.
21836 (syms_of_lread): Init and staticpro it.
21837 (load_warn_old_style_backquotes): New fun.
21838 (Fload): Use them to warn about old style backquotes.
21839 (end_of_file_error, Fload): Remove unused vars.
21840
21841 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
21842
21843 * lread.c (Vold_style_backquotes): New var.
21844 (syms_of_lread): Init and export it to Elisp.
21845 (read1): Set it when we find an old-style (back)quote.
21846
218472007-08-22 Jason Rumney <jasonr@gnu.org>
21848
21849 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
21850
218512007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
21852
21853 * puresize.h (BASE_PURESIZE): Increase to 1140000.
21854
218552007-08-19 Richard Stallman <rms@gnu.org>
21856
21857 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
21858
218592007-08-19 Andreas Schwab <schwab@suse.de>
21860
21861 * alloc.c (pure): Round PURESIZE up.
21862
218632007-08-17 Jan Djärv <jan.h.d@swipnet.se>
21864
21865 * xterm.c (handle_one_xevent): Remove check that mouse click is in
21866 active frame.
21867
218682007-08-16 Richard Stallman <rms@gnu.org>
21869
21870 * eval.c (Fcommandp): Add parens to clarify.
21871
21872 * minibuf.c (Fall_completions): Use enum for type of table.
21873
21874 * emacs.c (USAGE2): Improve text.
21875
218762007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
21877
21878 * term.c (tty_default_color_capabilities): Declare static
21879 variables in file scope, to avoid HPUX compiler problem.
21880
218812007-08-13 Jan Djärv <jan.h.d@swipnet.se>
21882
21883 * gtkutil.c (update_frame_tool_bar): Use -1 as index
21884 to gtk_toolbar_insert.
21885
218862007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
21887
21888 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
21889
21890 * insdel.c (reset_var_on_error): New fun.
21891 (signal_before_change, signal_after_change):
21892 Use it to reset (after|before)-change-functions to nil in case of error.
21893 Bind inhibit-modification-hooks to t.
21894 Don't bind (after|before)-change-functions to nil while they run.
21895
218962007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21897
21898 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
21899 filling pixmap with stippled background.
21900
219012007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21902
21903 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
21904 Don't use invisible frame as parent window for repositioning.
21905
219062007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
21907
21908 * print.c (new_backquote_output): Rename from old_backquote_output.
21909 (print): Inverse its logic (according to its name) so as to match the
21910 behavior of new_backquote_flag in lread.c.
21911
219122007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21913
21914 * gmalloc.c (posix_memalign): New function.
21915
21916 * macterm.c (frame_highlight, frame_unhighlight): Don't call
21917 ActivateControl/DeactivateControl here.
21918 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
21919 frame-notice-user-settings is non-nil.
21920 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
21921 for kEventParamFMFontStyle.
21922 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
21923 mac_pass_command_to_system and mac_pass_control_to_system here.
21924 (XTread_socket): Call ActivateControl/DeactivateControl here.
21925 (XTread_socket) [TARGET_API_MAC_CARBON]:
21926 Check mac_pass_command_to_system and mac_pass_control_to_system here.
21927 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
21928 for window repositioning.
21929
219302007-08-08 Glenn Morris <rgm@gnu.org>
21931
21932 * Replace `iff' in doc-strings and comments.
21933
219342007-08-07 Chong Yidong <cyd@stupidchicken.com>
21935
21936 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
21937
219382007-08-07 Martin Rudalics <rudalics@gmx.at>
21939
21940 * fileio.c (Finsert_file_contents): Run format-decode and
21941 after_insert_file_functions on entire buffer when REPLACE is
21942 non-nil and inhibit modification_hooks and point_motion_hooks.
21943 For consistency, run after_insert_file_functions iff something
21944 got inserted. Move signal_after_change and update_compositions
21945 after code running after_insert_file_functions. Make sure that
21946 undo_list doesn't record intermediate steps of the decoding process.
21947
219482007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21949
21950 * emacs.c (main)
21951 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
21952 Call malloc_enable_thread on interactive startup.
21953
21954 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
21955 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
21956 [USE_PTHREAD]: Conditionalize with it.
21957 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
21958 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
21959 New functions.
21960
219612007-08-06 Chong Yidong <cyd@stupidchicken.com>
21962
21963 * xdisp.c (redisplay_window): When restoring original buffer
21964 position, make sure it is still valid.
21965
21966 * image.c (png_load): Ignore png-supplied background color.
21967
219682007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21969
21970 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
21971 Use kCFAbsoluteTimeIntervalSince1970.
21972
21973 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
21974 New variable.
21975 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
21976 event loop should be quit.
21977 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
21978 Quit dialog event loop if quit_dialog_event_loop is set.
21979
21980 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
21981 (Selection): New typedef. Use instead of ScrapRef.
21982 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
21983 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
21984 (mac_clear_selection): Rename from clear_scrap.
21985 (get_flavor_type_from_symbol): New argument SEL and subsume function of
21986 scrap_has_target_type. All uses changed.
21987 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21988 (mac_selection_has_target_p): New functions.
21989 (mac_put_selection_value): Rename from put_scrap_string.
21990 (mac_get_selection_value): Rename from get_scrap_string.
21991 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
21992 (put_scrap_private_timestamp, scrap_has_target_type)
21993 (get_scrap_private_timestamp): Remove functions.
21994 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
21995 (x_own_selection, x_get_local_selection):
21996 Use mac_valid_selection_value_p.
21997 (x_own_selection): Don't use put_scrap_private_timestamp.
21998 Record OWNERSHIP-INFO into Vselection_alist instead.
21999 (x_get_local_selection): Don't check type if request is local.
22000 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
22001 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
22002
220032007-08-04 Jan Djärv <jan.h.d@swipnet.se>
22004
22005 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
22006 add comment explaining why.
22007
220082007-08-03 Richard Stallman <rms@gnu.org>
22009
22010 * fileio.c (Fvisited_file_modtime): Use make_time.
22011
220122007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
22013
22014 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
22015 build.
22016
220172007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
22018
22019 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
22020
220212007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
22022
22023 * puresize.h (BASE_PURESIZE): Increase to 1130000.
22024
220252007-07-30 Richard Stallman <rms@gnu.org>
22026
22027 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
22028
220292007-07-29 Jan Djärv <jan.h.d@swipnet.se>
22030
22031 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
22032
220332007-07-28 Nick Roberts <nickrob@snap.net.nz>
22034
22035 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
22036 remote default-directory.
22037
22038 * buffer.c (mode-line-format): Update doc string.
22039
220402007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22041
22042 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
22043 scroll bar gap.
22044 (x_scroll_bar_create): Set bar->fringe_extended_p.
22045 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
22046 on frame edge. Check fringe background extension. Don't clear
22047 extended fringe background area.
22048
22049 * w32term.h (struct scroll_bar): New member fringe_extended_p.
22050 (w32_fill_area): Enclose multiple statements with do ... while (0).
22051
22052 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
22053 Extend fringe background to scroll bar gap.
22054 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
22055 Set bar->fringe_extended_p.
22056 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
22057 Put leftmost/rightmost scroll bars on frame edge. Check fringe
22058 background extension. Don't clear extended fringe background area.
22059
22060 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
22061 New member fringe_extended_p.
22062
220632007-07-25 Glenn Morris <rgm@gnu.org>
22064
22065 * Relicense all FSF files to GPLv3 or later.
22066
22067 * COPYING: Switch to GPLv3.
22068
220692007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
22070
22071 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
22072
22073 * data.c (Finteractive_form): Check for the presence of an
22074 `interactive-form' symbol property more thoroughly.
22075
22076 * data.c (Finteractive_form): Use an `interactive-form' property if
22077 present, analogous to the function-documentation property.
22078
220792007-07-24 Jason Rumney <jasonr@gnu.org>
22080
22081 * w32fns.c (x_real_positions): Get real position from OS instead of
22082 calculating it.
22083
220842007-07-23 Jason Rumney <jasonr@gnu.org>
22085
22086 * filelock.c (current_lock_owner): Allow for @ sign in username.
22087
220882007-07-22 Nick Roberts <nickrob@snap.net.nz>
22089
22090 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
22091 remote default-directory.
22092
22093 * buffer.c (mode-line-format): Describe above case in doc string.
22094
220952007-07-20 Eli Zaretskii <eliz@gnu.org>
22096
22097 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
22098 Define if not defined.
22099
221002007-07-18 Jason Rumney <jasonr@gnu.org>
22101
22102 * w32proc.c (w32_executable_type): Handle 64 bit executables.
22103
221042007-07-18 Richard Stallman <rms@gnu.org>
22105
22106 * data.c (Fsetq_default): Doc fix.
22107
22108 * eval.c (Fsetq): Doc fix.
22109
221102007-07-18 Juanma Barranquero <lekktu@gmail.com>
22111
22112 * coding.c (Ffind_operation_coding_system):
22113 * eval.c (For, Fand): Doc fixes.
22114 Reported by Johan Bockgård.
22115
221162007-07-18 Jan Djärv <jan.h.d@swipnet.se>
22117
22118 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
22119
22120 * xterm.h: Declare x_ewmh_activate_frame.
22121
22122 * xterm.c (x_ewmh_activate_frame): New function.
22123 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
22124
221252007-07-17 Martin Rudalics <rudalics@gmx.at>
22126
22127 * window.c (Fdisplay_buffer): If largest or LRU window is the
22128 only window, split it even if it is not eligible for splitting.
22129 This restores the original behavior broken by the 2007-07-15
22130 change.
22131
221322007-07-17 Glenn Morris <rgm@gnu.org>
22133
22134 * abbrev.c (abbrev_check_chars): New function.
22135 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
22136 Call abbrev_check_chars to check abbrev characters are word
22137 constituents. Doc fix.
22138
221392007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
22140
22141 * process.c (Fstart_process, Fmake_network_process)
22142 (read_process_output): Fix up last changes.
22143
221442007-07-16 Eli Zaretskii <eliz@gnu.org>
22145
22146 * makefile.w32-in (clean): Don't delete *~.
22147
221482007-07-16 Andreas Schwab <schwab@suse.de>
22149
22150 * window.c (Fdisplay_buffer): Use NILP.
22151 (Fset_window_scroll_bars): Likewise.
22152
221532007-07-15 Martin Rudalics <rudalics@gmx.at>
22154
22155 * window.c (window_min_size_2): New function.
22156 (window_min_size_1, size_window, Fdisplay_buffer)
22157 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
22158 windows without mode- or header-lines when window-min-height is
22159 too small.
22160 (size_window): Reset nodelete_p after testing it, following an
22161 earlier note by Kim F. Storm.
22162 (display_buffer): Do not set split_height_threshold to twice the
22163 value of window_min_height to avoid changing the value of a
22164 customizable variable. Rather explicitly check whether the
22165 height of the window that shall be splitted is at least as large
22166 as split_height_threshold.
22167 (Fwindow_full_width_p): New defun.
22168 (syms_of_window): Defsubr it.
22169
22170 * window.h: Add EXFUN for Fwindow_full_width_p.
22171
221722007-07-14 Jason Rumney <jasonr@gnu.org>
22173
22174 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
22175
221762007-07-14 Richard Stallman <rms@gnu.org>
22177
22178 * eval.c (maybe_call_debugger): New function.
22179 (find_handler_clause): Use maybe_call_debugger.
22180 Call it when the handler says `debug'.
22181 Eliminate DEBUGGER_VALUE_PTR.
22182 (Fsignal): Eliminate debugger_value.
22183 (Qdebug): New variable.
22184 (syms_of_eval): Initialize it.
22185
221862007-07-14 Juanma Barranquero <lekktu@gmail.com>
22187
22188 * eval.c (Fprogn):
22189 * keyboard.c (Ftrack_mouse):
22190 * print.c (Fwith_output_to_temp_buffer):
22191 * window.c (Fsave_window_excursion): Doc fix.
22192
221932007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
22194
22195 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
22196
221972007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
22198
22199 * process.h (struct Lisp_Process): Turn slots infd, outfd,
22200 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
22201 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
22202 read_output_delay, and read_output_skip from Lisp_Objects to ints.
22203 Remove unused encoding_carryover.
22204 * process.c: Adjust all functions accordingly.
22205
222062007-07-12 Richard Stallman <rms@gnu.org>
22207
22208 * term.c: Include unistd.h only if HAVE_UNISTD_H.
22209
222102007-07-11 Jason Rumney <jasonr@gnu.org>
22211
22212 * makefile.w32-in (LIBS): Include OLE32.
22213
22214 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
22215 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
22216
222172007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
22218
22219 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
22220 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
22221 from a Lisp_Object into a bare pointer.
22222 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
22223 Adjust the code correspondingly.
22224
22225 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
22226
22227 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
22228 (term_show_mouse_face): Remove unused var `j'.
22229 (handle_one_term_event): Remove unused vars `i' and `j'.
22230 Don't cast return value of ttyname since it's not necessary.
22231
222322007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
22233
22234 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
22235 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
22236
22237 * fns.c (map_char_table): Use an array of int for `indices' rather than
22238 an array of Lisp_Objects (which are only ever integers anyway).
22239 (Fmap_char_table): Update caller.
22240 * lisp.h: Update prototype.
22241 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
22242 * fontset.c (Ffontset_info):
22243 * casetab.c (set_case_table): Update callers.
22244
22245 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
22246
22247 * keymap.c (struct accessible_keymaps_data)
22248 (struct where_is_internal_data): New structures.
22249 (accessible_keymaps_1, where_is_internal_1): Use them to change
22250 interface to adhere to the one used by map_keymap.
22251 (Faccessible_keymaps, where_is_internal): Use map_keymap.
22252 (accessible_keymaps_char_table, where_is_internal_2): Remove.
22253
22254 * keymap.h (map_keymap_function_t): More informative prototype.
22255
222562007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
22257
22258 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
22259 (looking_at_1): Don't change search_regs and last_thing_searched
22260 if `inhibit-changing-match-data' is non-nil.
22261 (string_match_1, search_buffer, set_search_regs): Likewise.
22262 (syms_of_search): Add Lisp level definition for
22263 `inhibit-changing-match-data' and set it to nil.
22264 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
22265 start and end of the match, instead of using values in search_regs.
22266
222672007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
22268
22269 * minibuf.c (Fcompleting_read): New value `confirm-only'
22270 for `require-match'.
22271
222722007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
22273
22274 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
22275 part of the 2007-06-27 change to syms_of_fileio.
22276
222772007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22278
22279 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
22280 Check WINDOWP before using XWINDOW. Consolidate return statements.
22281
222822007-06-27 Richard Stallman <rms@gnu.org>
22283
22284 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
22285
222862007-06-27 Juanma Barranquero <lekktu@gmail.com>
22287
22288 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
22289
222902007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22291
22292 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
22293 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
22294 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
22295 (_free_internal, memalign): Use them.
22296 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
22297 Initialize to PTHREAD_MUTEX_INITIALIZER.
22298 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
22299 (morecore_nolock): Rename from morecore. All uses changed.
22300 Use only nolock versions of internal allocation functions.
22301 (_malloc_internal_nolock, _realloc_internal_nolock)
22302 (_free_internal_nolock): New functions created from
22303 _malloc_internal, _realloc_internal, and _free_internal.
22304 (_malloc_internal, _realloc_internal, _free_internal): Use them.
22305 Copy hook value to automatic variable before its use.
22306 (memalign): Copy hook value to automatic variable before its use.
22307
223082007-06-26 Kenichi Handa <handa@m17n.org>
22309
22310 * coding.c (Ffind_operation_coding_system): Docstring improved.
22311 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
22312
223132007-06-25 David Kastrup <dak@gnu.org>
22314
22315 * keymap.c (Fcurrent_active_maps): Add `position' argument.
22316 (Fwhere_is_internal): Adjust call to `current-active-maps' to
22317 cater for additional parameter.
22318
22319 * keymap.h: Adjust number of parameters to `current-active-maps'.
22320
22321 * doc.c (Fsubstitute_command_keys): Adjust call of
22322 `current-active-maps'.
22323
223242007-06-25 David Kastrup <dak@gnu.org>
22325
22326 * callint.c (Fcall_interactively): Make the parsing of interactive
22327 specs somewhat more readable.
22328
223292007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22330
22331 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
22332 to scroll bar gap also when bitmap fills fringe. Draw only foreground
22333 if extended background has already been filled.
22334
223352007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22336
22337 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
22338 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
22339
22340 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
22341 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
22342 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
22343 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
22344 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
22345 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
22346 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
22347 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
22348 Run timers during dialog popup.
22349 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
22350
223512007-06-21 Jason Rumney <jasonr@gnu.org>
22352
22353 * image.c (convert_mono_to_color_image): Swap fore and background.
22354
223552007-06-20 Jason Rumney <jasonr@gnu.org>
22356
22357 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
22358 (w32_free_bdf_font): Unmap memory not handle.
22359
223602007-06-20 Sam Steingold <sds@gnu.org>
22361
22362 * gmalloc.c (__morecore): Fix the declaration to comply with the
22363 definition.
22364
223652007-06-20 Juanma Barranquero <lekktu@gmail.com>
22366
22367 * w32term.c (w32_delete_display): Remove leftover declaration.
22368 (w32_define_cursor, w32_initialize): Make static.
22369
22370 * w32.c (_wsa_errlist): Fix typo in error message.
22371 (init_environment): Ignore any environment variable from the
22372 registry having a null value.
22373
223742007-06-20 Glenn Morris <rgm@gnu.org>
22375
22376 * Makefile.in (LIBGIF): Default to -lgif.
22377
223782007-06-17 Jason Rumney <jasonr@gnu.org>
22379
22380 * w32menu.c (add_menu_item): Don't use multibyte string functions on
22381 unicode strings.
22382
223832007-06-16 Juanma Barranquero <lekktu@gmail.com>
22384
22385 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
22386 Fix typo in docstring.
22387
223882007-06-16 Eli Zaretskii <eliz@gnu.org>
22389
22390 * w32menu.c (add_menu_item): Escape `&' characters in menu items
22391 and their keybindings.
22392
223932007-06-15 Chong Yidong <cyd@stupidchicken.com>
22394
22395 * composite.c (update_compositions): Fix last fix.
22396
223972007-06-14 Jason Rumney <jasonr@gnu.org>
22398
22399 * w32.c (get_process_times_fn): New function pointer.
22400 (globals_of_w32): Intialize it if present in kernel32.dll.
22401 (w32_get_internal_run_time): New function.
22402
22403 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
22404
224052007-06-14 Kenichi Handa <handa@etlken.m17n.org>
22406
22407 * composite.c (update_compositions): Check the validness of
22408 compositions.
22409
224102007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22411
22412 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
22413 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
22414
22415 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
22416 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
22417
22418 * macgui.h (USE_MAC_TOOLBAR): New define.
22419
22420 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22421 Return immediately unless popup is activated.
22422
22423 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
22424 background to scroll bar gap.
22425 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
22426 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
22427 scroll bars on frame edge. Check fringe background extension.
22428 Don't clear extended fringe background area.
22429 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
22430 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
22431 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
22432 [USE_MAC_TOOLBAR]: New macros.
22433 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
22434 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
22435 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
22436 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
22437 [USE_MAC_TOOLBAR]: New functions.
22438 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
22439 manually if previous repositioning has failed.
22440 (mac_handle_keyboard_event): Use precomputed event kind.
22441 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
22442 as tool bar item click. Handle mouse movement over tool bar items.
22443
22444 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
22445 toolbar_win_gravity.
22446 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
22447 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
22448 Add externs.
22449
22450 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
22451 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
22452
224532007-06-14 Chong Yidong <cyd@stupidchicken.com>
22454
22455 * image.c (search_image_cache): Remove unused variable.
22456
224572007-06-13 Chong Yidong <cyd@stupidchicken.com>
22458
22459 * xfns.c, xmenu.c: Link to xaw3d if available.
22460
224612007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22462
22463 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
22464 frame_foreground and frame_background.
22465
22466 * image.c (lookup_image): Save frame foreground and background colors.
22467 (search_image_cache): Check if saved and current frame colors match.
22468
224692007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
22470
22471 * regex.c (regex_compile): Remove the `regnum' counter.
22472 Use bufp->re_nsub instead. Add support for \(?N:RE\).
22473
224742007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
22475
22476 * term.c: Include intervals.h to declare Fget_text_property.
22477
224782007-06-10 Jason Rumney <jasonr@gnu.org>
22479
22480 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
22481
224822007-06-08 Juanma Barranquero <lekktu@gmail.com>
22483
22484 * callint.c (Fcall_interactively):
22485 * editfns.c (Fdelete_and_extract_region):
22486 * fileio.c (Fread_file_name):
22487 * fns.c (Fmapconcat):
22488 * keyboard.c (cmd_error_internal):
22489 * keymap.c (Fkey_description):
22490 * lread.c (openp):
22491 * minibuf.c (read_minibuf):
22492 * search.c (wordify):
22493 * sunfns.c (sel_read):
22494 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
22495 * xfns.c (x_default_scroll_bar_color_parameter):
22496 * xmenu.c (menu_help_callback):
22497 * xselect.c (Fx_get_atom_name):
22498 * xterm.c (x_term_init): Use empty_unibyte_string.
22499
225002007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
22501
22502 * alloc.c (init_strings): Initialize canonical empty strings.
22503 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
22504 canonical empty string when the requested size is 0.
22505
22506 * emacs.c (empty_unibyte_string): Rename from empty_string.
22507 (empty_multibyte_string): New canonical empty string.
22508 (syms_of_emacs): Don't initialize empty_string.
22509
22510 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
22511 string, if appropriate.
22512 (empty_unibyte_string, empty_multibyte_string): New externs.
22513 (empty_string): Remove extern.
22514
22515 * lread.c (syms_of_lread): Use empty_unibyte_string.
22516
225172007-06-07 Jason Rumney <jasonr@gnu.org>
22518
22519 * s/ms-w32.h: Don't define HAVE_TZNAME.
22520
22521 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
22522
225232007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22524
22525 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
22526
22527 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
22528 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
22529
22530 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22531 Don't call next handler.
22532 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
22533 Remove argument. Install handler to application.
22534 (set_frame_menubar): Don't change deep_p.
22535 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
22536 FRAME_OUTER_TO_INNER_DIFF_Y.
22537 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
22538 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
22539 [HAVE_DIALOGS]: New macros.
22540 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
22541 Use them.
22542 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
22543
22544 * macselect.c [MAC_OSX] (install_service_handler): Rename from
22545 init_service_handler. All callers changed. Return OSStatus value.
22546
22547 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
22548 All callers changed so as not to call SetPortWindowPort.
22549 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
22550 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
22551 mac_draw_string_common.
22552 (mac_draw_image_string_qd): Likewise.
22553 (mac_draw_string_common): Use them. Add INLINE.
22554 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
22555 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
22556 GetGlobalMouse.
22557 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
22558 and FRAME_OUTER_TO_INNER_DIFF_Y.
22559 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
22560 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
22561 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
22562 repositioning window to mac_handle_window_event.
22563 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
22564 saving window location to mac_handle_window_event
22565 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
22566 (install_menu_target_item_handler): Remove argument in extern.
22567 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
22568 Also accept command events.
22569 (do_keystroke): New function created from XTread_socket.
22570 (init_command_handler): Remove functions.
22571 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
22572 and save window location by kEventWindowShowing and kEventWindowHiding
22573 handlers here. Don't call next handler for window state change and
22574 focus events.
22575 (mac_handle_application_event, mac_handle_keyboard_event)
22576 [TARGET_API_MAC_CARBON]: New functions.
22577 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
22578 kEventWindowShowing and kEventWindowHiding events. Move installation
22579 of mouse, font, text input and menu target item handlers to
22580 install_application_handler.
22581 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
22582 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22583 New function.
22584 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22585 Register it.
22586 (XTread_socket) [TARGET_API_MAC_CARBON]:
22587 Consolidate SendEventToEventTarget calls.
22588 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
22589 Move application activation handler to mac_handle_application_event.
22590 Move keyboard handler to mac_handle_keyboard_event.
22591 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
22592 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
22593 init_command_handler. Call install_application_handler.
22594
22595 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
22596 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
22597
225982007-06-07 Glenn Morris <rgm@gnu.org>
22599
22600 * emacs.c (main): Use `emacs-copyright' in --version output.
22601
226022007-06-06 Chong Yidong <cyd@stupidchicken.com>
22603
22604 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
22605
226062007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22607
22608 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
22609
22610 * macgui.h: Replace WindowPtr with WindowRef.
22611
22612 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22613 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22614 Replace ControlHandle with ControlRef.
22615 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
22616
22617 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22618 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22619 Replace ControlHandle with ControlRef.
22620 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
22621 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
22622
22623 * macterm.h (struct scroll_bar): Rename member control_handle_low
22624 and control_handle_high to control_ref_low and control_ref_high.
22625 All uses changed.
22626 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
22627 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
22628 respectively. All uses changed.
22629 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
22630 (install_window_handler, remove_window_handler): Replace WindowPtr
22631 with WindowRef in externs.
22632
226332007-06-05 Juanma Barranquero <lekktu@gmail.com>
22634
22635 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
22636
226372007-06-03 Nick Roberts <nickrob@snap.net.nz>
22638
22639 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
22640
22641 * frame.c (Fmouse_position, Fmouse_pixel_position):
22642 Condition on HAVE_GPM too.
22643
22644 * term.c (term_mouse_highlight): Remove unused variables.
22645 (Fterm_open_connection): Set gpm_zerobased to 1.
22646 (term_mouse_movement, term_mouse_click, handle_one_term_event):
22647 Use zero based co-ordinates.
22648 (handle_one_term_event): Report a drag as mouse movement too.
22649
22650 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
22651
226522007-06-03 Chong Yidong <cyd@stupidchicken.com>
22653
22654 * image.c (search_image_cache): New function. Require background
22655 color match if background color is unspecified in the image spec.
22656 (uncache_image, lookup_image): Use it.
22657
226582007-06-01 Juanma Barranquero <lekktu@gmail.com>
22659
22660 * window.c (Fshrink_window): Reflow docstring.
22661
226622007-06-02 Chong Yidong <cyd@stupidchicken.com>
22663
22664 * Version 22.1 released.
22665
226662007-06-01 Richard Stallman <rms@gnu.org>
22667
22668 * xfns.c (x_encode_text): Add GCPRO.
22669
226702007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22671
22672 * xfns.c (x_set_name_internal): Save encoded name before
22673 x_encode_text in case string data is relocated.
22674
226752007-05-31 Richard Stallman <rms@gnu.org>
22676
22677 * buffer.c (syms_of_buffer): Doc fix.
22678
226792007-05-30 Nick Roberts <nickrob@snap.net.nz>
22680
22681 * sysdep.c (init_sys_modes): Add rather than replace with
22682 O_NONBLOCK.
22683
22684 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
22685 term_mouse_moveto.
22686
22687 * termhooks.h (term_mouse_moveto): New extern.
22688
22689 * term.c (mouse_face_window): Rename...
22690 (Qmouse_face_window): ...to this.
22691 (term_show_mouse_face, term_clear_mouse_face)
22692 (term_mouse_highlight): Use Qmouse_face_window.
22693 (term_mouse_moveto): New function.
22694 (term_mouse_position): Make it work.
22695 (syms_of_term): Uncomment assignment to mouse_position_hook.
22696 Staticpro Qmouse_face_window.
22697
226982007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22699
22700 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
22701 around current_column call.
22702
227032007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
22704
22705 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
22706 * xdisp.c (next_element_from_buffer):
22707 * window.c (delete_window):
22708 * term.c (term_mouse_highlight):
22709 * msdos.c (getdefdir):
22710 * macterm.c (mac_create_bitmap_from_bitmap_data)
22711 (init_font_name_table):
22712 * fns.c (Fsxhash):
22713 * data.c (Fmake_local_variable):
22714 * ccl.c (ccl_driver): Likewise.
22715
227162007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22717
22718 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
22719 Call mac_wakeup_from_rne on window size change.
22720
227212007-05-25 Chong Yidong <cyd@stupidchicken.com>
22722
22723 * image.c (uncache_image): Fix typo.
22724
227252007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
22726
22727 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
22728
227292007-05-22 Richard Stallman <rms@gnu.org>
22730
22731 * xterm.c (x_connection_closed): Remove NO_RETURN.
22732
227332007-05-22 Martin Rudalics <rudalics@gmx.at>
22734
22735 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
22736
227372007-05-21 Chong Yidong <cyd@stupidchicken.com>
22738
22739 * image.c (uncache_image): New function.
22740 (Fimage_refresh): New function.
22741
227422007-05-20 Jan Djärv <jan.h.d@swipnet.se>
22743
22744 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
22745
227462007-05-20 Nick Roberts <nickrob@snap.net.nz>
22747
22748 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
22749 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
22750
227512007-05-20 Nick Roberts <nickrob@snap.net.nz>
22752
22753 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
22754 conditional on [HAVE_GPM_H].
22755
227562007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
22757
22758 * syntax.c (skip_chars): Update syntax-table only after we checked that
22759 the new location is valid.
22760
227612007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22762
22763 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
22764 mac_get_window_bounds.
22765
227662007-05-20 Nick Roberts <nickrob@snap.net.nz>
22767
22768 * Makefile.in (LIBGPM): Allow it to be set from configure.
22769 If set then link Emacs with it.
22770
22771 * config.in: Regenerate.
22772
22773 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
22774 New externs.
22775
22776 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
22777 Include gpm.h.
22778 (handle_one_term_event, term_gpm): New externs.
22779
22780 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
22781 and allow it to be interrupted by SIGIO.
22782
22783 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
22784 (wait_reading_process_output): Wait on gpm_fd too.
22785 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
22786 (add_gpm_wait_descriptor_called_flag): New variable.
22787 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
22788
22789 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
22790 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
22791 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
22792 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
22793 (make_lispy_event): Add case GPM_CLICK_EVENT.
22794 (read_avail_input): Handle mouse input.
22795
22796 * term.c (write_glyphs_with_face): New function.
22797 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
22798 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
22799 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
22800 (mouse_face_face_id, term_gpm, pos_x, pos_y)
22801 (last_mouse_x, last_mouse_y): New variables.
22802 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
22803 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
22804 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
22805 (Fterm_close_connection): New functions.
22806 (term_init): Initialise mouse_face_window.
22807
228082007-05-19 Chong Yidong <cyd@stupidchicken.com>
22809
22810 * xdisp.c (redisplay_window): If first window line is a
22811 continuation line, recompute the new window start instead of
22812 recentering.
22813
228142007-05-18 Glenn Morris <rgm@gnu.org>
22815
22816 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
22817 Suggested by Alfred M. Szmidt <ams@gnu.org>.
22818
228192007-05-17 Glenn Morris <rgm@gnu.org>
22820
22821 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
22822
228232007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22824
22825 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
22826 dead key repeat and up events.
22827
228282007-05-14 Chong Yidong <cyd@stupidchicken.com>
22829
22830 * image.c (pbm_load): Check image size for monochrome pbm.
22831
228322007-05-13 Chong Yidong <cyd@stupidchicken.com>
22833
22834 * xterm.c (XTread_socket): Revert last change.
22835
228362007-05-12 Chong Yidong <cyd@stupidchicken.com>
22837
22838 * image.c (pbm_load): Correctly check image size for greyscale pbm.
22839
22840 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
22841
228422007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22843
22844 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
22845 mixup (YAILOM).
22846
228472007-05-07 Andreas Schwab <schwab@suse.de>
22848
22849 * keymap.c (Flookup_key): Fix typo in last change.
22850
228512007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22852
22853 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
22854 mapping for unibyte strings.
22855
228562007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22857
22858 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
22859 (Fx_popup_dialog) [MAC_OSX]: Likewise.
22860
228612007-04-29 Richard Stallman <rms@gnu.org>
22862
22863 * insdel.c (replace_range): For undo, record insertion first.
22864
228652007-04-29 Andreas Schwab <schwab@suse.de>
22866
22867 * lisp.h (VECSIZE): Use OFFSETOF.
22868
228692007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22870
22871 * xdisp.c (try_window_reusing_current_matrix): Fix number of
22872 disabled lines.
22873
228742007-04-28 Richard Stallman <rms@gnu.org>
22875
22876 * lread.c (read_escape): In a string, \s is always space.
22877
228782007-04-27 Jan Djärv <jan.h.d@swipnet.se>
22879
22880 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
22881
22882 * gtkutil.c (xg_update_menubar, create_menus): Create empty
22883 submenu for menu bar items.
22884
22885See ChangeLog.10 for earlier changes.
22886
22887;; Local Variables:
22888;; coding: utf-8
22889;; add-log-time-zone-rule: t
aac0c6e3
MR
22890;; End:
22891
e3eb1dae 22892 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
22893
22894 This file is part of GNU Emacs.
22895
22896 GNU Emacs is free software: you can redistribute it and/or modify
22897 it under the terms of the GNU General Public License as published by
22898 the Free Software Foundation, either version 3 of the License, or
22899 (at your option) any later version.
22900
22901 GNU Emacs is distributed in the hope that it will be useful,
22902 but WITHOUT ANY WARRANTY; without even the implied warranty of
22903 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22904 GNU General Public License for more details.
22905
22906 You should have received a copy of the GNU General Public License
22907 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
22908
22909;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40