Fix compilation on Solaris.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
53260a94
DN
12010-11-13 Dan Nicolaescu <dann@ics.uci.edu>
2
ff2e8052
DN
3 Fix compilation on Solaris.
4
5 * sysdep.c: Do not #include <term.h>.
6 (tputs): Add declaration, similar to what cm.c does. (Bug#7178)
7
53260a94
DN
8 * s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore.
9
933e29ff
J
102010-11-13 Jan Djärv <jan.h.d@swipnet.se>
11
12 * xterm.c (set_wm_state): Don't put Atom in cons, call
13 make_fixnum_or_float on them first.
14 (x_term_init): Initialize Xatom_net_supporting_wm_check and
15 Xatom_net_supported correctly.
16
17 * xselect.c (x_send_client_event): Move CHECK_STRING ...
18 (Fx_send_client_event): to here.
19
a048073e
MR
202010-11-13 Martin Rudalics <rudalics@gmx.at>
21
22 * window.c (Fwindow_use_time): New function.
23
0eb025fb
EZ
242010-11-13 Eli Zaretskii <eliz@gnu.org>
25
26 * xdisp.c (set_cursor_from_row): Fix cursor positioning on
27 zero-width characters.
28
29 * .gdbinit (pgx): Adapt to latest changes in `struct glyph'.
30
31 * w32term.c (x_draw_glyphless_glyph_string_foreground): Draw the
32 box before drawing the glyphs inside it.
33
34 * xdisp.c (syms_of_xdisp) <glyphless-char-display>: Doc fix.
35
36 * dispextern.h (enum glyphless_display_method): Rename
37 GLYPHLESS_DISPLAY_HEXA_CODE to GLYPHLESS_DISPLAY_HEX_CODE. All
38 users changed.
39
40 * term.c (append_glyphless_glyph, produce_glyphless_glyph): Fix
41 comments.
42 (produce_glyphless_glyph): Enclose "U+nnnn" and "empty box"
43 whitespace in "[]", to simulate a box. Don't use uninitialized
44 variable `width'.
45
c869cc37
JD
462010-11-11 Julien Danjou <julien@danjou.info>
47
2d9074ba
JD
48 * xsettings.c (init_xsettings): Use already fetch atoms.
49
50 * xsmfns.c (create_client_leader_window): Use SM_CLIENT_ID atom
51 from dpyinfo.
52
53 * xselect.c (Fx_send_client_event): Split and create
54 x_send_client_event.
55
56 * lisp.h: Do not EXFUN Fx_send_client_event.
57
58 * xterm.c (x_set_frame_alpha): Use _NET_WM_WINDOW_OPACITY atom
59 from dpyinfo.
60 (wm_supports): Use atoms from dpyinfo.
61 (do_ewmh_fullscreen): Use atoms from dpyinfo.
62 (x_ewmh_activate_frame): Use atoms from dpyinfo.
63 (xembed_set_info): Use atoms from dpyinfo.
64 (x_term_init): Fetch _XEMBED_INFO, _NET_SUPPORTED,
65 _NET_SUPPORTING_WM_CHECK, _NET_WM_WINDOW_OPACITY and
66 _NET_ACTIVE_WINDOW, XSETTINGS atoms.
67 Get all atoms in one round-trip.
68 (set_wm_state): Use x_send_client_event rather than
69 Fx_send_client_event, using Atom directly.
70 (x_ewmh_activate_frame): Ditto.
71 (x_set_sticky): Pass atoms to set_wm_state.
72 (do_ewmh_fullscreen): Ditto.
73
74
75 * xterm.h (x_display_info): Add Xatom_net_supported,
76 Xatom_net_supporting_wm_check, Xatom_net_active_window,
77 Xatom_net_wm_window_opacity, Xatom_XEMBED_INFO, SM_CLIENT_ID.
78
c869cc37
JD
79 * xfns.c (Fx_show_tip): Fix typo in docstring.
80
1a4236ea
SM
812010-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
82
83 * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
84 it's not negative.
85
3106121c
YM
862010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
87
88 * font.c (font_filter_properties): Add const to array elements of
89 properties args.
90
91 * font.h (font_filter_properties): Likewise.
92
93 * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array
94 elements.
95
96 * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
97
da1fec2b
MA
982010-11-10 Michael Albinus <michael.albinus@gmx.de>
99
100 * dbusbind.c (QCdbus_type_unix_fd): New Lisp object.
101 (XD_BASIC_DBUS_TYPE, xd_symbol_to_dbus_type, xd_signature)
102 (xd_append_arg, xd_retrieve_arg): Support DBUS_TYPE_UNIX_FD.
103 (Fdbus_call_method): Add DBUS_TYPE_UNIX_FD type mapping to doc string.
104 (syms_of_dbusbind): Initialize QCdbus_type_unix_fd).
105
bd6bc222
GM
1062010-11-10 Glenn Morris <rgm@gnu.org>
107
108 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
109
c0098065
EZ
1102010-11-09 Eli Zaretskii <eliz@gnu.org>
111
bd6bc222 112 * xfns.c (x_real_positions): Fix declaration-after-statement problem.
c0098065 113
d607b96b 1142010-11-09 Chong Yidong <cyd@stupidchicken.com>
be3faa80
CY
115
116 * image.c (free_image): Don't garbage the frame here, since this
117 function can be called while redisplaying (Bug#7210).
118 (uncache_image): Garbage the frame here (Bug#6426).
119
d607b96b 1202010-11-09 Jan Djärv <jan.h.d@swipnet.se>
184765cc 121
d607b96b
SM
122 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
123 parent is the root window. Check this after traversing window tree.
184765cc 124
d607b96b 125 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
bd80a886 126
d607b96b 127 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
bd80a886 128
d607b96b
SM
129 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
130 before traversing window tree (Bug#5721).
c2e124a9 131
27f92be7
J
1322010-11-07 Jan Djärv <jan.h.d@swipnet.se>
133
66b16767
J
134 * xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
135
27f92be7
J
136 * xdisp.c (note_mode_line_or_margin_highlight): Initialize
137 Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
138
a971c0a7
EZ
1392010-11-06 Eli Zaretskii <eliz@gnu.org>
140
141 * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
142 adjust width of tool-tip frame to the width of text, excluding the
143 stretch glyph at the beginning of R2L glyph rows.
144
145 * w32fns.c (Fx_show_tip): Likewise.
146
80417b95
JD
1472010-11-06 Jan Djärv <jan.h.d@swipnet.se>
148
149 * nsfont.m: Include termchar for new mouse-highlight.
6dc61cf1 150 (nsfont_draw): Use MOUSE_HL_INFO.
80417b95 151
28118eb6
EZ
1522010-11-05 Eli Zaretskii <eliz@gnu.org>
153
c1fc2d3a 154 Unify mouse-highlight code for all GUI and TTY sessions.
cf482c50
EZ
155
156 * term.c: Remove static mouse_face_* variables. All users
157 changed.
158 (term_show_mouse_face, term_clear_mouse_face)
159 (fast_find_position, term_mouse_highlight): Functions deleted.
160 (tty_draw_row_with_mouse_face): New function.
161 (term_mouse_movement): Call note_mouse_highlight instead of
162 term_mouse_highlight.
163
bbf534ce
EZ
164 * nsterm.m (ns_update_window_begin, ns_update_window_end)
165 (ns_update_end, x_destroy_window, ns_frame_up_to_date)
166 (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
167 (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
168 (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
169 Replace Display_Info with Mouse_HLInfo everywhere where
170 mouse_face_* members were accessed for mouse highlight purposes.
171
172 * xterm.c (x_update_window_begin, x_update_window_end)
173 (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
174 (handle_one_xevent, x_free_frame_resources, x_term_init): Replace
175 Display_Info with Mouse_HLInfo everywhere where mouse_face_*
176 members were accessed for mouse highlight purposes.
177
178 * w32term.c (x_update_window_begin, x_update_window_end)
179 (x_update_end, w32_read_socket, x_free_frame_resources)
180 (w32_initialize_display_info): Replace Display_Info with
181 Mouse_HLInfo everywhere where mouse_face_* members were accessed
182 for mouse highlight purposes.
183
184 * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
185 (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
186 unless the frame is on a window-system.
c1fc2d3a 187 (get_tool_bar_item, handle_tool_bar_click)
7ea692f6
EZ
188 (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
189 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
190 (note_mode_line_or_margin_highlight, note_mouse_highlight)
191 (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
192 Replace Display_Info with Mouse_HLInfo everywhere where
193 mouse_face_* members were accessed for mouse highlight purposes.
c1fc2d3a 194 (coords_in_mouse_face_p): Move prototype out of the
d009ae66
EZ
195 HAVE_WINDOW_SYSTEM conditional.
196 (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
197 HAVE_WINDOW_SYSTEM block.
198 (try_window_id) [HAVE_GPM || MSDOS]: Call
199 x_clear_window_mouse_face.
200 (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
c1fc2d3a
EZ
201 systems. Call tty_draw_row_with_mouse_face for TTY systems.
202 (show_mouse_face): Call draw_row_with_mouse_face, instead of
203 calling draw_glyphs directly.
d009ae66
EZ
204 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
205 (cursor_in_mouse_face_p, rows_from_pos_range)
206 (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
207 (note_mode_line_or_margin_highlight, note_mouse_highlight)
208 (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
209 HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
210 fragments.
211 (note_mouse_highlight): Call popup_activated for MSDOS as well.
212 Clear mouse highlight if pointer is over glyphs whose OBJECT is an
213 integer.
214 (mouse_face_from_buffer_pos): Add parentheses around && within ||.
c1fc2d3a
EZ
215 (x_consider_frame_title, tool_bar_lines_needed): Move
216 prototypes to HAVE_WINDOW_SYSTEM-only part.
217 (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
218 part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
219 (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
220 part.
d009ae66
EZ
221
222 * dispnew.c (mirror_make_current): Set Y coordinate of the
223 mode-line and header-line rows.
c1fc2d3a
EZ
224 (init_display): Setup initial frame's output_data for text
225 terminal frames.
d009ae66 226
c1fc2d3a
EZ
227 * xmenu.c (popup_activated): Don't define on MSDOS, which now has
228 its own definition on msdos.c.
d009ae66
EZ
229
230 * msdos.c (show_mouse_face, clear_mouse_face)
231 (fast_find_position, IT_note_mode_line_highlight)
232 (IT_note_mouse_highlight): Functions deleted.
233 (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
234 instead of IT_note_mouse_highlight.
235 (draw_row_with_mouse_face, popup_activated): New functions.
c1fc2d3a
EZ
236 (dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
237 (IT_update_end, IT_frame_up_to_date, internal_terminal_init)
238 (dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
239 where mouse_face_* members were accessed for mouse highlight
240 purposes.
241
242 * msdos.h (initialize_msdos_display): Add prototype.
243
244 * frame.h (MOUSE_HL_INFO): New macro.
245
246 * lisp.h (Mouse_HLInfo): New data type.
247
248 * xterm.h (struct x_display_info):
249 * w32term.h (struct w32_display_info):
250 * nsterm.h (struct ns_display_info):
251 * termchar.h (struct tty_display_info): Use it instead of
252 mouse_face_* members.
253
254 * dispextern.h (show_mouse_face, clear_mouse_face): Update type of
255 1st argument.
256 (frame_to_window_pixel_xy, note_mouse_highlight)
257 (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
258 (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
259 HAVE_WINDOW_SYSTEM conditional.
260 (draw_row_with_mouse_face): Declare prototype.
261 (tty_draw_row_with_mouse_face): Declare prototype.
262
6e8d7c47
EZ
2632010-11-05 Eli Zaretskii <eliz@gnu.org>
264
265 * term.c (append_glyphless_glyph, produce_glyphless_glyph): Remove
266 unused variables.
267
f31ba3f0
AR
2682010-11-05 Adrian Robert <Adrian.B.Robert@gmail.com>
269
270 * nsterm.m (EmacsView-mouseExited:): Correct error in conditional
271 logic pointed out by Eli Zaretskii.
272
448e17d6
LMI
2732010-11-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
274
0c3a9a9f
GM
275 * coding.c (coding-category-list): Refer to set-coding-system-priority
276 instead of the obsolete set-coding-priority in the doc string.
448e17d6 277
f31ba3f0 278
3fdebbf9 2792010-11-04 Adrian Robert <Adrian.B.Robert@gmail.com>
f31ba3f0
AR
280
281 * nsfont.m (nsfont_draw): Correct previous patch to return
282 correct value.
283 * nsimage.m (EmacsImage-setXBMColor:): Correct previous patch:
284 don't change the method signature, change the return.
285
2862010-11-04 Ismail Donmez <ismail@namtrac.org> (tiny change)
3fdebbf9
AR
287
288 * nsfont.m (nsfont_draw)
289 * nsimage.m (EmacsImage-setXBMColor:)
f31ba3f0 290 * nsterm.m (EmacsView-performDragOperation:): Correct empty return.
3fdebbf9 291
17c0c952
JD
2922010-11-03 Julien Danjou <julien@danjou.info>
293
294 * image.c (gif_load): Add support for transparency and specified
295 :background.
296
b18fad6d
KH
2972010-11-01 Kenichi Handa <handa@m17n.org>
298
299 * dispextern.h (lookup_glyphless_char_display): Extern it.
300
301 * termhooks.h (struct terminal): New member charset_list.
302
303 * coding.c (Fset_terminal_coding_system_internal): Set the
304 `charset_list' member of struct terminal.
305
a8039db1 306 * term.c (produce_glyphs): Handle the case it->what == IT_GLYPHLESS.
b18fad6d
KH
307 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
308
309 * xdisp.c (lookup_glyphless_char_display): Make it non-static.
310 (lookup_glyphless_char_display): Set it->what at the end.
311 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
312 (last_glyphless_glyph_merged_face_id): Make them non-static.
313
a8039db1
JB
314 * w32term.c (x_draw_glyphless_glyph_string_foreground):
315 Fix the arg with_background for font->driver->draw.
65b6b59a 316
a8039db1 3172010-11-01 Kenichi Handa <handa@m17n.org>
0269bd90 318
a8039db1
JB
319 * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
320 Surround chp by parentheses.
0269bd90 321
a8039db1 3222010-11-01 Kenichi Handa <handa@m17n.org>
b2cca856
KH
323
324 Implement various display methods for glyphless characters.
325
326 * xdisp.c (Qglyphless_char, Vglyphless_char_display)
327 (Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space)
328 (Qzero_width): New variables.
329 (THIN_SPACE_WIDTH): New macro.
330 (lookup_glyphless_char_display): New funciton.
331 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
332 (last_glyphless_glyph_merged_face_id): New variables.
333 (get_next_display_element): Check glyphless characters.
334 (redisplay_internal): Initialize last_glyphless_glyph_frame and
335 last_glyphless_glyph_face_id.
336 (fill_glyphless_glyph_string): New function.
337 (BUILD_GLYPHLESS_GLYPH_STRING): New macro.
338 (BUILD_GLYPH_STRINGS): Handle the case GLYPHLESS_GLYPH.
339 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
340 (x_produce_glyphs): If a suitable font is not found, produce a
341 glyphless glyph. Handle the case it->what == IT_GLYPHLESS.
342 (syms_of_xdisp): Intern and staticpro Qglyphless_char,
343 Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space, and
344 Qzero_width.
345 (Vglyphless_char_display): Declare it as a Lisp variable.
346
347 * dispextern.h (enum glyph_type): Add GLYPHLESS_GLYPH.
a8039db1
JB
348 (struct glyph): Change the size of the member "type" to 3.
349 Add glyphless to the union slice and u.
b2cca856
KH
350 (enum display_element_type): Add IT_GLYPHLESS.
351 (enum glyphless_display_method): New enum.
352 (struct it): New member glyphless_method.
353 (Vglyphless_char_display): Extern it.
354
355 * xterm.c (x_draw_glyphless_glyph_string_foreground): New function.
356 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
357
a8039db1 358 * w32term.c (x_draw_glyphless_glyph_string_foreground): New function.
b2cca856
KH
359 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
360
361 * nsterm.m (ns_draw_glyph_string): Handle the case
362 GLYPHLESS_GLYPH (the detail is not yet implemented).
363
c8c59954
GM
3642010-10-31 Glenn Morris <rgm@gnu.org>
365
80696982
GM
366 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
367
c8c59954
GM
368 * frame.c (syms_of_frame) <tool-bar-mode>:
369 Default to nil if !HAVE_WINDOW_SYSTEM. (Bug#7299)
370
46eadc7a
CY
3712010-10-31 Chong Yidong <cyd@stupidchicken.com>
372
373 * xterm.c (x_connection_closed): Print informative error message
374 when aborting on GTK. This requires using shut_down_emacs
375 directly instead of Fkill_emacs.
376
ffe75e6b
EZ
3772010-10-29 Eli Zaretskii <eliz@gnu.org>
378
379 * emacs.c (main): Call syms_of_filelock unconditionally.
380
381 * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
382 clause, but keep part of it conditioned on CLASH_DETECTION.
383
9d794026
GM
3842010-10-29 Glenn Morris <rgm@gnu.org>
385
4f4f2973
GM
386 * nsfns.m (Fx-display-save-under, Fx-open-connection)
387 (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
388 * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
389 * xfns.c (Fxw_color_defined_p, Fx_open_connection):
390 Sync docs between X, W32, NS.
391
9d794026
GM
392 * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
393 * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
394
d46f6bbb
JB
3952010-10-26 Juanma Barranquero <lekktu@gmail.com>
396
397 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
398 otherwise, bootstrapping on Windows fails to compile macroexp.el.
399
2e35f1a2
EZ
4002010-10-26 Eli Zaretskii <eliz@gnu.org>
401
402 * cmds.c (internal_self_insert): Don't insert if argument N is
84b28888 403 zero or negative. (Bug#7281)
2e35f1a2 404
8daaeda6
J
4052010-10-26 Jan Djärv <jan.h.d@swipnet.se>
406
407 * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
408
6a5c2175
GM
4092010-10-25 Glenn Morris <rgm@gnu.org>
410
411 * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
412
7c051dd8
GM
4132010-10-24 Glenn Morris <rgm@gnu.org>
414
415 * w32fns.c (Fx_synchronize, Fx_change_window_property)
416 (Fx_window_property, Fx_file_dialog):
417 * xfns.c (Fx_synchronize, Fx_change_window_property)
418 (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
419
23c261f5
CY
4202010-10-24 Chong Yidong <cyd@stupidchicken.com>
421
422 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
423
d414c713 4242010-10-24 Eli Zaretskii <eliz@gnu.org>
89baa1df
EZ
425
426 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
427
428 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
429 Deprecate use as a boolean flag.
430
947f5e01
JM
4312010-10-24 Jim Meyering <jim@meyering.net>
432
433 * emacs.c (argmatch): Don't treat "--" as "--chdir".
434
65807d73
GM
4352010-10-24 Glenn Morris <rgm@gnu.org>
436
f5f25615
GM
437 * w16select.c (syms_of_win16select) <selection-coding-system>:
438 <next-selection-coding-system>:
439 * w32select.c (syms_of_w32select) <selection-coding-system>:
440 <next-selection-coding-system>:
3646b86d
GM
441 Sync docs with select.el.
442
46710489
GM
443 * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
444 Lisp version.
445
ea883883
GM
446 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
447 Sync doc with the xterm.c version.
448
65807d73
GM
449 * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
450 * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
451
f3d87560
GM
4522010-10-23 Glenn Morris <rgm@gnu.org>
453
66c6abf0 454 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
e1fd756b 455 * frame.c (syms_of_frame) <menu-bar-mode>:
6e82cf1a 456 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
a102db1e 457 <hourglass-delay>: Sync docs with Lisp.
f3d87560 458
7b7e2c18
EZ
4592010-10-23 Eli Zaretskii <eliz@gnu.org>
460
d1d6801e 461 Implement mouse highlight for bidi-reordered lines.
d0010be5
EZ
462
463 * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
464 (mouse_face_from_string_pos): New function, replaces
465 fast_find_string_pos.
466 (note_mouse_highlight): Call it instead of fast_find_string_pos.
d1d6801e
EZ
467 (note_mode_line_or_margin_highlight): Support bidi-reordered
468 strings and R2L glyph rows. Fix comments.
2f3f89b3
EZ
469 (note_mouse_highlight): When bidi reordering is turned on in a
470 buffer, call next-single-property-change and
d1d6801e
EZ
471 previous-single-property-change with last argument nil. Clear
472 mouse highlight when mouse pointer is in a R2L row on the stretch
473 glyph that stands for no text beyond the line end.
1f382a02
EZ
474 (row_containing_pos): Don't return too early when CHARPOS is in a
475 bidi-reordered continued line. Return immediately when the first
476 hit is found in a line that is not continued, or when an exact
477 match for CHARPOS is found.
d1d6801e
EZ
478 (rows_from_pos_range): New function.
479 (mouse_face_from_buffer_pos): Use it instead of calling
480 row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
481 function to support mouse highlight in bidi-reordered lines and
482 not to assume that START_CHARPOS is always in mouse_face_beg_row.
483 If necessary, swap mouse_face_beg_row and mouse_face_end_row so
484 that the former is always above the latter or identical to it.
1554d88e 485 (show_mouse_face): Support drawing highlighted R2L lines.
1b5a721b
EZ
486 (coords_in_mouse_face_p): New function, bidi-aware.
487 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
488 Call it instead of comparing with mouse-face members of dpyinfo.
489 (note_mode_line_or_margin_highlight): Fix confusingly swapped
490 usage of hpos and vpos.
544bbc31 491
dee186b6
J
4922010-10-22 Jan Djärv <jan.h.d@swipnet.se>
493
494 * xrdb.c: Include keyboard.h for MOTIF.
495
496 * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
497 MOTIF (Bug#7263).
498
499 * xfns.c: Include Xm/TextF and Xm/List.
500 (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog): Make
501 ANSI prototypes.
502
5fb59edb
GM
5032010-10-22 Glenn Morris <rgm@gnu.org>
504
505 * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
506 Remove ccl and duplicate mouse.
507
8b78d5e3
CY
5082010-10-21 Chong Yidong <cyd@stupidchicken.com>
509
510 * insdel.c (prepare_to_modify_buffer): Don't set
511 saved-region-selection if modification hooks are disabled.
512
b8a47412
CY
5132010-10-19 Chong Yidong <cyd@stupidchicken.com>
514
515 * cmds.c (Fdelete_char): Doc fix.
516
ca3fa302 5172010-10-19 Ken Brown <kbrown@cornell.edu>
5419963b
KB
518
519 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
520
ca3fa302 5212010-10-19 Kenichi Handa <handa@m17n.org>
31daa5e1
KH
522
523 Fix incorrect font metrics when the same font is opened with
524 different pixelsizes.
525
526 * xftfont.c: Include composite.h.
527 (xftfont_shape): New function.
528 (syms_of_xftfont): Set xftfont_driver.shape.
529
c978536f
JD
5302010-10-18 Julien Danjou <julien@danjou.info>
531
532 * frame.c (Fframe_pointer_visible_p):
533 Add `frame-pointer-visible-p' to get the pointer visibility.
534
4b2d9ec2
LMI
5352010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
536
537 * gnutls.c (emacs_gnutls_read): Return 0 if we get a
538 non-"EAGAIN"-like error to signal to Emacs that the socket should
539 be closed.
540
9cf66cf2
EZ
5412010-10-15 Eli Zaretskii <eliz@gnu.org>
542
c3911ead
EZ
543 * unexcoff.c (make_hdr): Fix prototype according to changes in
544 2010-10-03T13:59:56Z!dann@ics.uci.edu.
545
9cf66cf2
EZ
546 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
547
be98da05
TH
5482010-10-15 Tassilo Horn <tassilo@member.fsf.org>
549
550 * Makefile.in (really-oldXMenu): Fix typo in variable name that
551 made building the X menu fail.
cc98b256 552 (really-oldXMenu): Fix my previous fix.
be98da05 553
220d91b8 5542010-10-14 Damyan Pepper <damyanp@gmail.com>
9fa82824
DP
555
556 Fix handling of font properties on Windows (bug#6303).
557 * font.c (font_filter_properties): New function, refactored from
558 ftfont_filter_properties.
559 * font.h (font_filter_properties): Declare.
560 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
561 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
562 (w32font_filter_properties): New function.
563 (w32font_driver): Add w32font_filter_properties.
564
220d91b8 5652010-10-14 Juanma Barranquero <lekktu@gmail.com>
51e4f4a8 566
c0943d3d 567 * font.c (Ffont_variation_glyphs):
51e4f4a8
JB
568 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
569
24f981c9
JB
5702010-10-14 Juanma Barranquero <lekktu@gmail.com>
571
572 * w32fns.c (w32_wnd_proc, file_dialog_callback):
573 * w32font.c (w32_generic_family):
574 * w32inevt.c (key_event):
575 * w32menu.c (fill_in_menu):
576 * w32proc.c (reader_thread, w32_executable_type, compare_env)
577 (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
578 * w32term.c (w32_read_socket): Make static.
579
850690cc
JB
5802010-10-13 Juanma Barranquero <lekktu@gmail.com>
581
582 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
583 prototypes; all callers changed.
584
5e371708
JB
5852010-10-13 Juanma Barranquero <lekktu@gmail.com>
586
587 * makefile.w32-in (TLIB2): Rename from TLIBW32.
588 (OBJ2): New macro.
589 (WIN32OBJ, FONTOBJ): Remove.
590 (OBJ1): Redistribute object files with OBJ2.
591 (LIBS, $(TEMACS)): Use TLIB2.
592 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
593 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
594
2e288d54
JB
5952010-10-13 Juanma Barranquero <lekktu@gmail.com>
596
597 * emacs.c (Vdynamic_library_alist)
598 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
599 Doc fix.
600
601 * lisp.h (Vdynamic_library_alist): Declare extern.
602
603 * image.c (Vimage_library_alist)
604 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
605 (lookup_image_type): Use Vdynamic_library_alist.
606 (Finit_image_library): Doc fix.
607
aba1381b
DN
6082010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
609
610 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
611 (lispdir): Remove trailing /, update all uses.
612
4c14013d 6132010-10-12 Jan Djärv <jan.h.d@swipnet.se>
a2e35ef5
JD
614
615 * nsterm.m (Qleft): Declare.
616 (ns_right_alternate_modifier): New variable
617 (NSRightAlternateKeyMask): New define.
618 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
619 ns_right_alternate_modifier isn't Qleft.
620 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
621 as emacs modifier for NSRightAlternateKeyMask.
622 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
623
355cdaf3
LMI
6242010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
625
626 * gnutls.c (emacs_gnutls_write): If we're trying to write before
627 gnutls is ready, return EAGAIN as the errno.
628
4c620157
DN
6292010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
630
edfd76ce
DN
631 * vm-limit.c:
632 * unexhp9k800.c:
633 * unexelf.c:
634 * unexaix.c:
635 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
636
a4daeecf
DN
637 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
638 (PROFILING_LDFLAGS): Remove, not needed anymore.
639
2cb72a75 640 * Makefile.in: Use $(...) everywhere instead of ${...}
4cf3ad30
DN
641 (CRT_DIR): Move near potential user.
642 (START_FILE): Move near CRT_DIR, it might use it.
2cb72a75 643
4c620157
DN
644 * sysdep.c (LPASS8): Remove, unused.
645 (emacs_ospeed): Change from being a global to a local in the only
646 user: init_baud_rate.
647
b845653d
LMI
6482010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
649
650 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
bda6d2bd 651 (emacs_gnutls_write): Remove the debuggin fsync call.
b845653d 652 (emacs_gnutls_read): Return -1 if we got an error from
bda6d2bd 653 gnutls_read. This allows us to actually read lots of data from
b845653d 654 the GnuTLS stream.
2e6c74c5
LMI
655 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
656 According to the documentation, this is correct, and it seems to
657 make things work.
b845653d 658
3625b3e2
CY
6592010-10-09 Chong Yidong <cyd@stupidchicken.com>
660
661 * xterm.c (x_draw_relief_rect): Clear corner pixels.
662
8b1c619f
MA
6632010-10-08 Michael Albinus <michael.albinus@gmx.de>
664
665 * keyboard.c: Revert last change; it was not intended to be
666 synchronized with the trunk.
667
93d50df8
KH
6682010-10-08 Kenichi Handa <handa@m17n.org>
669
2b7c9342 670 * coding.c (complement_process_encoding_system): Fix previous change.
5886ec9c 671
4628bef1 6722010-10-08 Michael Albinus <michael.albinus@gmx.de>
a79b0f28
MA
673
674 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
675 (Fdbus_init_bus): ... here. (Bug#7113)
676
4628bef1 6772010-10-08 Glenn Morris <rgm@gnu.org>
7b2bf907
GM
678
679 * buffer.c (before-change-functions, after-change-functions):
680 Three-year overdue doc fix following 2007-08-13 change.
681
4628bef1 6822010-10-08 Kenichi Handa <handa@m17n.org>
1911a33b
KH
683
684 * coding.c (coding_inherit_eol_type): If parent doesn't specify
685 eol-format, inherit from the system's default.
686 (complement_process_encoding_system): Make a new coding system
687 inherit the original eol-format.
688
4628bef1 6892010-10-08 Kenichi Handa <handa@m17n.org>
fcaf8878
KH
690
691 * coding.c (complement_process_encoding_system): New function.
692
693 * coding.h (complement_process_encoding_system): Extern it.
694
695 * callproc.c (Fcall_process): Complement the coding system for
696 encoding arguments.
697 (Fcall_process_region): Complement the coding system for encoding
698 the input to the process.
699
700 * process.c (Fstart_process): Complement the coding system for
701 encoding arguments.
702 (send_process): Complement the coding system for encoding what
703 sent to the process.
704
4628bef1 7052010-10-08 Kenichi Handa <handa@m17n.org>
18acb5ad
KH
706
707 * xfont.c (xfont_open): Fix setting of font->average_width from
708 :avgwidth property (Bug#7123).
709
4628bef1 7102010-10-08 Michael Albinus <michael.albinus@gmx.de>
dec83468
MA
711
712 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
713 is more portable.
714
715 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
716 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
717 has not defined SIGIO.
718
389454fb
CY
7192010-10-08 Chong Yidong <cyd@stupidchicken.com>
720
721 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
722 draw the outermost line using the black relief, for legibility.
723 Omit drawing the four corner pixels.
724
51b403bd
CY
7252010-10-04 Chong Yidong <cyd@stupidchicken.com>
726
727 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
728 (read_key_sequence): Inline echo_prompt.
729 (echo_dash): Add a dash only if key is continued (Bug#7137).
730
3e6ae1a4
DN
7312010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
732
733 Remove O_RDONLY, O_WRONLY definitions, not needed.
734 * unexcoff.c:
735 * lread.c:
736 * fileio.c:
737 * doc.c:
738 * callproc.c:
739 * alloc.c:
740 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
741
c1ae068b
LMI
7422010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
743
744 * gnutls.h (GNUTLS_LOG2): Convenience macro.
745
746 * gnutls.c: Add property list symbol holders.
747 (emacs_gnutls_handshake): Clarify how sockets are passed to
748 GnuTLS.
749 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
750 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
751 and keyfiles to be a list of file names. Default to "NORMAL" for
752 the priority string. Improve logging.
753
e2afe435
GM
7542010-10-03 Glenn Morris <rgm@gnu.org>
755
756 * fileio.c (Vdirectory_sep_char): Remove.
757
dd5ecd6b
DN
7582010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
759
b5437a05
DN
760 * termhooks.h: Remove #ifdef CONSP.
761
4777478a
DN
762 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
763
a3d5088d
DN
764 Include <fcntl.h> unconditionally.
765 * termcap.c:
766 * sysdep.c:
767 * lread.c:
768 * keyboard.c:
769 * filelock.c:
770 * fileio.c:
771 * doc.c:
772 * callproc.c:
773 * alloc.c: Remove include guards for <fcntl.h>, process.c already
774 does it.
775
82719735
DN
776 * process.c: Do not include <sys/wait.h>, syswait.h does it.
777
9de940b5
DN
778 * sysdep.c (flush_pending_output): Remove code, does not do
779 anything on any platform.
780
57507bf8
DN
781 Remove unused code.
782 * sysdep.c (select_alarm, sys_select, read_input_waiting): Remove
783 select emulation, all systems support select.
784 (set_exclusive_use): Remove, the only user is in an #if 0 block.
785 * process.c (create_process): Remove #if 0 code.
786
dd5ecd6b
DN
787 Remove unused arguments for unexec.
788 The third one is never used, and the last two are always passed as zero.
789 * emacs.c (unexec): Add declaration.
790 (Fdump_emacs): Only pass the first two arguments to unexec.
791 Simplify #ifdef.
792 * unexw32.c (unexec):
793 * unexsol.c (unexec):
794 * unexhp9k800.c (unexec):
795 * unexcw.c (unexec): Remove the last 3 arguments, unused.
796 * unexelf.c (unexec): Remove the last 3 arguments, unused.
797 (find_section): Use const.
798 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
799 (unexec_error): Declare it NO_RETURN.
800 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
801 it as an argument, remove data_start and entry_address arguments, unused.
802 (unexec): Remove bss_start, data_start and
803 entry_address arguments.
804 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
805 it as an argument, remove data_start and entry_address arguments, unused.
806 (unexec): Remove bss_start, data_start and
807 entry_address arguments.
808
74f1829d
JB
8092010-10-03 Juanma Barranquero <lekktu@gmail.com>
810
7f467e14
JB
811 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
812
74f1829d
JB
813 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
814 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
815 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
816 Fix typos in docstrings.
817 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
818 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
819
6926550f
CY
8202010-10-03 Chong Yidong <cyd@stupidchicken.com>
821
822 * keyboard.c (command_loop_1): Make sure the mark is really alive
823 before using it (Bug#7044).
824
54b65f7b
JB
8252010-10-02 Juanma Barranquero <lekktu@gmail.com>
826
827 * makefile.w32-in (tags): Rename target to full-tags.
828
383ebd15
EZ
8292010-10-02 Eli Zaretskii <eliz@gnu.org>
830
831 * emacs.c (main): Remove !WINDOWSNT conditional.
832 (Fkill_emacs): Don't mention exemption on MS-Windows.
833
9c524fcb
GM
8342010-10-02 Glenn Morris <rgm@gnu.org>
835
3226d6ca
GM
836 * character.c (Fchar_bytes): Remove obsolete function.
837 (syms_of_character): Remove Schar_bytes.
838
9c524fcb
GM
839 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
840 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
841 in batch-mode.
842 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
843 (kill-emacs-hook): Doc fix.
844
1b217849
LMI
8452010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
846
847 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
848 (parse_region): Reworked to take regions instead of strings, and
849 renamed to reflect that these are the libxml functions.
850
54cc6a83
EZ
8512010-10-01 Eli Zaretskii <eliz@gnu.org>
852
0ebf79de
EZ
853 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
854 screen dimensions in tty->Wcm.
855
54cc6a83
EZ
856 * xdisp.c (set_cursor_from_row): When the row is truncated and
857 point is outside the range of displayed characters, position the
858 cursor inside the scroll margin. (Bug#6349)
859
321401d1
DN
8602010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
861
4cacd822
DN
862 Do not include stdlib.h and string.h, config.h does it.
863 * xfont.c:
864 * w32term.c:
865 * w32reg.c:
866 * w32inevt.c:
867 * w32heap.c:
868 * w32console.c:
869 * w16select.c:
870 * unexsol.c:
871 * term.c:
872 * sound.c:
873 * scroll.c (m):
874 * gtkutil.c:
875 * font.c:
876 * filelock.c:
877 * fileio.c:
878 * dosfns.c:
879 * dbusbind.c:
880 * bidi.c:
881 * callproc.c:
882 * process.c:
883 * msdos.c:
884 * charset.c: Do not include stdlib.h and string.h, config.h does it.
885
0781e7ab
DN
886 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h defines it.
887
9bf58201
DN
888 * process.c: Move #include <pty.h> earlier.
889 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
890 (pty_name): Move definition later.
891
088dcc3e
DN
892 * nsselect.m (syms_of_nsselect):
893 * nsmenu.m (syms_of_nsmenu):
894 * nsfns.m (syms_of_nsfns):
895 * msdos.c (syms_of_msdos):
4cacd822 896
088dcc3e
DN
897 * image.c (syms_of_image):
898 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
899
321401d1
DN
900 * point.h: Remove, unused.
901
73077a9a
EZ
9022010-10-01 Eli Zaretskii <eliz@gnu.org>
903
904 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
905 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
906 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
907
55e572ef
DN
9082010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
909
910 * xml.c (parse_string): Use const.
911
d4b6d95d
LMI
9122010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
913
914 * eval.c (Fbacktrace): Don't overwrite print-level on exit. Also
915 only override Vprint_level if it isn't already bound, and increase
916 the level to 8 to produce more useful backtraces for bug reports.
917
e4b6db12
DN
9182010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
919
920 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
921
1becef93
JB
9222010-09-30 Juanma Barranquero <lekktu@gmail.com>
923
924 * w32console.c (vga_stdcolor_name): Remove unused function;
925 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
926
df7fcaff
LMI
9272010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
928
bac5cef8
LMI
929 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
930 (Fgnutls_boot): Start the handshake.
931 (emacs_gnutls_read): Perform the handshake from the reader loop.
e6059fa2
LMI
932 (Fgnutls_boot): Remove some debugging messages.
933 Change indentation throughout to use the Emacs style.
934 (emacs_gnutls_handshake): Cast the fds to something that's
935 possibly the expected length.
936 (emacs_gnutls_write): Return -1 if we try to write before handshake.
bac5cef8 937
df7fcaff
LMI
938 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
939
940 * process.c (make_process): Set the gnutls_p field to zero by
941 default.
942 (read_process_output): Always call the gnutls_read function if the
943 stream is a gnutls stream.
944 (send_process): Ditto for writes.
945
946 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
947 or write anything until the state is GNUTLS_STAGE_READY.
948 (Fgnutls_boot): Mark the stream as being a gnutls stream.
949
d585695f
EZ
9502010-09-29 Eli Zaretskii <eliz@gnu.org>
951
af7ef32d
EZ
952 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
953 NEUTRAL_DIR.
954 (handle_invisible_prop, iterate_out_of_display_property)
955 (next_element_from_buffer): If bidi_it.first_elt is set, call
956 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
957 (Bug#7128)
958
d585695f
EZ
959 * print.c (print_object): Fix format string and argument types for
960 printing a Lisp_Misc_Marker.
961
962 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
963 (load_overlay_strings, get_overlay_strings_1)
964 (get_overlay_strings, forward_to_next_line_start)
965 (back_to_previous_visible_line_start, reseat, reseat_to_string)
966 (get_next_display_element, next_element_from_string)
967 (next_element_from_c_string, next_element_from_buffer)
968 (move_it_vertically_backward, move_it_by_lines, add_to_log)
969 (message_dolog, message_log_check_duplicate, message2_nolog)
970 (message3, message3_nolog, vmessage, set_message, set_message_1)
971 (hscroll_window_tree, text_outside_line_unchanged_p)
972 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
973 (find_last_unchanged_at_beg_row)
974 (find_first_unchanged_at_end_row, row_containing_pos)
975 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
976 (display_count_lines, x_produce_glyphs, note_mouse_highlight): Use
977 EMACS_INT for buffer and string positions.
978
979 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
980 (row_containing_pos): Adjust prototype.
981
982 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
983 (message2_nolog, set_message): Adjust prototypes.
984
a6f3211f
SM
9852010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
986
987 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
988 (Fgnutls_boot): Use SDATA.
989 (Fgnutls_handshake): Remove unused var `max_log_level'.
990
e0720500
MA
9912010-09-27 Michael Albinus <michael.albinus@gmx.de>
992
11a5af7c 993 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
994 (Bug#7113)
995
d8a4b27a
J
9962010-09-27 Jan Djärv <jan.h.d@swipnet.se>
997
42d3022b
J
998 * xgselect.c (xg_select): Clear file descriptors not set from
999 rfds and wfds.
1000
d8a4b27a
J
1001 * process.c (wait_reading_process_output): Add missing FD_CLR
1002 for write_mask (must mirror connect_wait_mask).
1003
8ed70bf3
LMI
10042010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
1005
1006 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
1007 prefix.
1008 (Fgnutls_boot): Use changed process members. Use log level with a
1009 function parameter to set it. Bring back Emacs-level debugging
1010 messages at log level 1 and 2.
1011
1012 * process.c (make_process): Initialize gnutls_log_level.
1013
1014 * process.h: Add gnutls_log_level and rename x509_cred and
1015 anon_cred to have the gnutls_ prefix for consistency.
1016
1017 * gnutls.h (GNUTLS_LOG): Add convenience macro.
1018
bedf4aab
JB
10192010-09-27 Juanma Barranquero <lekktu@gmail.com>
1020
1021 * w32.c (g_b_init_get_sid_identifier_authority)
1022 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
1023 Remove, not used.
1024 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
1025 (init_winsock): Remove useless assignment.
1026 (open_process_token, get_token_information, lookup_account_sid)
1027 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
1028 (get_security_descriptor_owner, get_security_descriptor_group)
1029 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
1030 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
1031 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
1032 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
1033 (unc_volume_file_attributes, convert_from_time_t)
1034 (create_toolhelp32_snapshot, process32_first, process32_next)
1035 (open_thread_token, impersonate_self, revert_to_self)
1036 (get_process_memory_info, get_process_working_set_size)
1037 (global_memory_status, global_memory_status_ex, socket_to_fd)
1038 (shutdown_handler): Make static.
1039
08609ffd
MA
10402010-09-27 Michael Albinus <michael.albinus@gmx.de>
1041
1042 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
1043 (xd_pending_messages): Functions removed.
1044 (xd_read_queued_messages): Add parameters fd, *data, for_read in
1045 order to be compatible with add_read_fd. Determine bus from data,
1046 and call xd_read_message just for this bus.
1047 (xd_add_watch): Use xd_read_queued_messages as callback function.
1048 Add data.
1049
1050 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
1051
d2e9d0bb
LMI
10522010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
1053
1054 * gnutls.c (gnutls_log_function): Added more debugging.
ec9f09be 1055 (emacs_gnutls_read): Don't infloop while reading.
d2e9d0bb 1056
4be9765d
KH
10572010-09-27 Kenichi Handa <handa@m17n.org>
1058
1059 These changes are to remove restriction on the number of glyphs in
1060 one composition.
1061
1062 * dispextern.h (struct glyph): Change the member "slice" to union.
1063 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
1064 (GLYPH_SLICE_EQUAL_P): Adjusted for the above change.
1065
1066 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
1067 instead of glyph->slice.
1068 (marginal_area_string): Likewise.
1069
1070 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
1071 glyph->u.cmp.
1072 (append_composite_glyph): Likewise.
1073
1074 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
1075 glyph->u.cmp.
1076 (fill_gstring_glyph_string, x_get_glyph_overhangs)
1077 (append_composite_glyph): Likewise.
1078 (fill_image_glyph_string): Use glyph->slice.img instead of
1079 glyph->slice.
1080 (append_glyph, produce_image_glyph, append_stretch_glyph)
1081 (note_mouse_highlight): Likewise.
1082
3fad2ad2
J
10832010-09-26 Jan Djärv <jan.h.d@swipnet.se>
1084
bf05eed6
J
1085 * process.c (add_keyboard_wait_descriptor)
1086 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
82d6e50b
J
1087 (wait_reading_process_output): Don't pass write_mask to select
1088 if SELECT_CANT_DO_WRITE_MASK is defined.
1089 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
bf05eed6 1090
3fad2ad2
J
1091 * process.h (add_read_fd, delete_read_fd, add_write_fd)
1092 (delete_write_fd): Declare.
1093
1094 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
1095 (write_mask): New variable.
1096 (max_input_desc): Renamed from max_keyboard_desc.
1097 (fd_callback_info): New variable.
70e31436
JB
1098 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
1099 New functions.
3fad2ad2
J
1100 (Fmake_network_process): FD_SET write_mask.
1101 (deactivate_process): FD_CLR write_mask.
1102 (wait_reading_process_output): Connecting renamed to Writeok.
70e31436
JB
1103 check_connect removed. check_write is new. Remove references to gpm.
1104 Use Writeok/check_write unconditionally (i.e. no #ifdef
3fad2ad2
J
1105 NON_BLOCKING_CONNECT) instead of Connecting.
1106 Loop over file descriptors and call callbacks in fd_callback_info
1107 if file descriptor is ready for I/O.
1108 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
1109 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
1110 (keyboard_bit_set): Use max_input_desc.
70e31436
JB
1111 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
1112 Remove #ifdef subprocesses. Use max_input_desc.
3fad2ad2
J
1113 (init_process): Initialize write_mask and fd_callback_info.
1114
1115 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
1116
1117 * dbusbind.c: Include process.h.
1118 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
1119 (xd_read_message_1): New functions.
70e31436
JB
1120 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
1121 Handle watch for both read and write.
3fad2ad2
J
1122 (Fdbus_init_bus): Also register xd_toggle_watch.
1123 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1124 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
1125 to dbus_connection_flush.
70e31436 1126 (xd_read_message): Move most of the code to xd_read_message_1.
3fad2ad2
J
1127 Call xd_read_message_1 until status is COMPLETE.
1128
dce4c2ac
DN
11292010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
1130
1131 * term.c: Do not include sys/ioctl.h, not needed.
70e31436
JB
1132 (init_tty): Reorder code to reduce the number of #ifdefs.
1133 No code changes.
dce4c2ac 1134
8af55556
TZ
11352010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
1136
1137 * process.h: Set up GnuTLS support.
1138
1139 * process.c (make_process, Fstart_process)
1140 (read_process_output, send_process): Set up GnuTLS support for
1141 process input/output file descriptors.
1142
1143 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
1144
1145 * gnutls.c: The source code for GnuTLS support in Emacs.
1146
1147 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
1148
1149 * config.in: Set up GnuTLS support.
1150
1151 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
1152 (obj, LIBES): Set up GnuTLS support.
1153
83e245c4
JB
11542010-09-26 Juanma Barranquero <lekktu@gmail.com>
1155
1156 * w32.c (get_emacs_configuration_options): Fix previous change.
1157
d24ec09a
CY
11582010-09-25 Chong Yidong <cyd@stupidchicken.com>
1159
1160 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
1161 alive before using it (Bug#6977).
1162
b7bdc47c
LMI
11632010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
1164
a952d5f3
LMI
1165 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
1166
1167 * dispextern.h: EMACS_INT/int fixup.
1168
1169 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
1170 fixup.
1171
b7bdc47c
LMI
1172 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
1173
41118bd3
EZ
11742010-09-25 Eli Zaretskii <eliz@gnu.org>
1175
2452438f
EZ
1176 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
1177 (Fselect_window, window_scroll_pixel_based)
1178 (window_scroll_line_based, Frecenter, Fset_window_configuration):
1179 Use EMACS_INT for buffer positions.
1180
1181 * textprop.c (validate_interval_range, interval_of)
1182 (property_change_between_p, Fadd_text_properties)
1183 (set_text_properties_1, Fremove_text_properties)
1184 (Fremove_list_of_text_properties, Ftext_property_any)
1185 (Ftext_property_not_all, copy_text_properties)
1186 (text_property_list, extend_property_ranges)
1187 (verify_interval_modification): Use EMACS_INT for buffer
1188 positions.
1189
f877c546
EZ
1190 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
1191 for buffer positions.
1192
1193 * process.c (read_process_output, send_process)
1194 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
1195 and string positions and size.
1196
da43f021
EZ
1197 * print.c (print_object, print_string, strout): Use EMACS_INT for
1198 string indices.
1199
1200 * minibuf.c (string_to_object): Use EMACS_INT for string position
1201 and size.
1202
1203 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
1204
1205 * lread.c <read_from_string_index, read_from_string_index_byte>
1206 <read_from_string_limit, readchar_count>: Define EMACS_INT.
1207 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
1208 buffer positions and string length.
1209
41118bd3
EZ
1210 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
1211 EMACS_INT.
1212 (echo_truncate, adjust_point_for_property, read_char)
1213 (gen_help_event, make_lispy_event, modify_event_symbol)
1214 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
1215 for buffer positions and string length.
1216
1217 * keyboard.h (gen_help_event): Adjust prototype.
1218
1219 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
1220
1221 * commands.h <last_point_position>: Declare EMACS_INT.
1222
1223 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
1224 (truncate_echo_area): Accept EMACS_INT argument.
1225
1226 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
1227
1228 * lisp.h (truncate_echo_area): Adjust prototype.
1229
1230 * composite.c (composition_adjust_point): Return EMACS_INT.
1231
1232 * composite.h (composition_adjust_point): Adjust prototype.
1233
ba3033ee
JB
12342010-09-25 Juanma Barranquero <lekktu@gmail.com>
1235
1236 * process.c (Fmake_network_process): When arg :host is 'local,
1237 use address 127.0.0.1, not name "localhost". (Bug#6781)
1238
4f3a2f8d
EZ
12392010-09-24 Eli Zaretskii <eliz@gnu.org>
1240
5816888b
EZ
1241 * indent.c (Fcurrent_indentation, indented_beyond_p)
1242 (compute_motion): Use EMACS_INT for buffer position variables.
1243
1244 * lisp.h (indented_beyond_p): Adjust prototype.
1245
1246 * buffer.c (overlay_strings): Return EMACS_INT.
1247
1248 * buffer.h (overlay_strings): Adjust prototype.
1249
1250 * region-cache.c (pp_cache): Adjust format to arguments.
1251
1252 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
1253 (call_debugger): Use EMACS_INT for specpdl_size related variables.
1254 (verror): Use EMACS_INT for size of allocated buffer.
1255
ace1712c
EZ
1256 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
1257 positions.
1258
1259 * xdisp.c (redisplay_internal, try_window_id)
1260 (set_cursor_from_row, find_first_unchanged_at_end_row): Use
1261 EMACS_INT for buffer positions.
1262
f5276b75 1263 * dispextern.h (set_cursor_from_row): Adjust prototype.
ace1712c
EZ
1264
1265 * dispnew.c (increment_matrix_positions)
1266 (increment_row_positions, copy_glyph_row_contents)
1267 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
1268 positions.
1269
1270 * dispextern.h (mode_line_string, marginal_area_string)
1271 (increment_matrix_positions, increment_row_positions): Adjust
1272 prototypes.
1273
1274 * data.c (Faref, Faset): Use EMACS_INT for string length and
1275 positions.
1276
1277 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
1278 characters to insert.
1279
1280 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
1281 position and size.
1282
4f3a2f8d
EZ
1283 * syntax.c (scan_words, update_syntax_table)
1284 (prev_char_comend_first, back_comment, skip_chars)
1285 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars): Use
1286 EMACS_INT for buffer and string positions.
1287
1288 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
1289
1290 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
1291 positions.
1292
db063399
LMI
12932010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
1294
f0812d35
LMI
1295 * scroll.c (calculate_scrolling, line_ins_del)
1296 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
1297 conversion.
1298
f5c7fc27
LMI
1299 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
1300 (region_cache_backward, region_cache_forward)
1301 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
1302 conversion.
1303
db063399
LMI
1304 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
1305
1306 * eval.c (verror): Fix EMACS_INT/int conversion.
1307
07914cd0 1308 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
db063399
LMI
1309 (print_preprocess, print_check_string_charset_prop)
1310 (print_object): Fix EMACS_INT/int conversion.
1311
1312 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
1313
e6d4aefa
EZ
13142010-09-24 Eli Zaretskii <eliz@gnu.org>
1315
69481da7
EZ
1316 * callproc.c (Fcall_process): Use EMACS_INT for count of
1317 characters read from the subprocess.
1318
61bfec98
EZ
1319 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
1320 positions.
1321 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
1322 positions.
1323
145582a0
EZ
1324 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
1325 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
1326 length.
1327 (advance_to_char_boundary, Fset_buffer_multibyte)
1328 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
1329 (overlay_touches_p, record_overlay_string, overlay_strings)
1330 (recenter_overlay_lists, fix_start_end_in_overlays)
1331 (modify_overlay, Fmove_overlay, report_overlay_modification)
1332 (evaporate_overlays): Use EMACS_INT for buffer positions.
1333
1334 * lisp.h (fix_start_end_in_overlays, overlay_touches_p): Adjust
1335 prototypes.
1336
446470a9
EZ
1337 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
1338 positions.
1339
e6d4aefa
EZ
1340 * fns.c (Fcompare_strings, Fstring_lessp, concat)
1341 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
1342 (Fsubstring_no_properties, substring_both, Ffillarray)
1343 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
1344 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
1345 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
1346 (Fmd5): Use EMACS_INT for buffer and string positions and length
1347 variables and arguments.
1348
1349 * lisp.h (substring_both): Adjust prototype.
1350
eb652396
JB
13512010-09-24 Juanma Barranquero <lekktu@gmail.com>
1352
1353 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
1354 * w32fns.c (clipboard_sequence_fn): Don't declare.
1355 (globals_of_w32fns): Don't initialize it.
1356
266a86bd 13572010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
fbb3da77
SM
1358
1359 * syntax.c (back_comment): Detect the case where a 1-char comment
1360 starter is also the 2nd char of a 2-char comment ender.
1361
266a86bd 13622010-09-23 Jan Djärv <jan.h.d@swipnet.se>
2b5b82db
J
1363
1364 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
1365
40283062
LMI
13662010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
1367
db063399
LMI
1368 * eval.c (verror): EMACS_INT/int cleanup.
1369
faf8b5bc
LMI
1370 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
1371 unwind_protect more than 2GB worth of functions.
1372
1373 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
1374
40283062
LMI
1375 * lisp.h: Have oblookup take EMACS_INT to allow interning big
1376 string and avoid compiler warnings.
1377 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
1378 all users.
1379
1380 * lread.c (oblookup): EMACS_INT/int cleanup.
1381
1382 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
1383
fe3537c3
EZ
13842010-09-23 Eli Zaretskii <eliz@gnu.org>
1385
1386 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
1387
1388 * lisp.h (clip_to_bounds): Adjust prototype.
1389
1390 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
1391
0350982f
LMI
13922010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
1393
84c9ce05
LMI
1394 * lisp.h: doprnt.c EMACS_INT/int cleanup.
1395
1396 * doprnt.c (doprnt): EMACS_INT/int cleanup.
1397
1398 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
1399 cleanup.
1400
0350982f
LMI
1401 * lisp.h: Change the definition of all marker.c functions that
1402 take and return buffer stuff to be EMACS_INT instead of int.
1403
1404 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
1405 (buf_charpos_to_bytepos, bytepos_to_charpos)
1406 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
1407 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
1408 for all buffer positions.
1409
c50bd0d2
CY
14102010-09-23 Chong Yidong <cyd@stupidchicken.com>
1411
1412 * intervals.c (traverse_intervals, rotate_right, rotate_left)
1413 (split_interval_right, find_interval, next_interval)
1414 (delete_node, delete_interval, interval_deletion_adjustment)
1415 (adjust_intervals_for_deletion, merge_interval_right)
1416 (merge_interval_left, graft_intervals_into_buffer)
1417 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
1418
1419 * intervals.h (traverse_intervals): Update prototype.
1420
14162469
EZ
14212010-09-23 Eli Zaretskii <eliz@gnu.org>
1422
c098fdb8
EZ
1423 * indent.c (compute_motion): Use EMACS_INT for arguments to
1424 region_cache_forward.
1425
1426 * region-cache.c (struct boundary, struct region_cache): Use
1427 EMACS_INT for positions.
1428 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
1429 (delete_cache_boundaries, set_cache_region)
1430 (invalidate_region_cache, know_region_cache)
1431 (region_cache_forward, region_cache_backward, pp_cache): Use
1432 EMACS_INT for buffer positions.
1433
1434 * region-cache.h (know_region_cache, invalidate_region_cache)
1435 (region_cache_forward, region_cache_backward): Adjust prototypes.
1436
1437 * search.c (string_match_1, fast_c_string_match_ignore_case)
1438 (looking_at_1, scan_buffer, scan_newline)
1439 (find_next_newline_no_quit, find_before_next_newline)
1440 (search_command, trivial_regexp_p, search_buffer, simple_search)
1441 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
1442 and string positions and length.
1443
caefdbe7
EZ
1444 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
1445 (find_before_next_newline): Adjust prototypes.
c098fdb8 1446
29cdc13e
EZ
1447 * editfns.c (transpose_markers, update_buffer_properties)
1448 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
1449 (get_pos_property, Fconstrain_to_field)
1450 (Fline_beginning_position, Fline_end_position, Fprevious_char)
1451 (Fchar_after, Fchar_before, Finsert_char)
1452 (Finsert_buffer_substring, Fcompare_buffer_substrings)
1453 (Fsubst_char_in_region, Fformat, Ftranspose_regions): Use
1454 EMACS_INT for buffer and string position variables.
c098fdb8 1455 (Finsert_char): Protect against too large insertions.
29cdc13e
EZ
1456
1457 * lisp.h (clip_to_bounds): Adjust prototype.
1458
e79123aa
EZ
1459 * intervals.c (traverse_intervals, rotate_right, rotate_left)
1460 (balance_an_interval, split_interval_right, split_interval_left)
1461 (find_interval, next_interval, update_interval)
1462 (adjust_intervals_for_insertion, delete_node, delete_interval)
1463 (interval_deletion_adjustment, adjust_intervals_for_deletion)
1464 (offset_intervals, merge_interval_right, merge_interval_left)
1465 (graft_intervals_into_buffer, adjust_for_invis_intang)
1466 (move_if_not_intangible, get_local_map, copy_intervals)
1467 (copy_intervals_to_string, compare_string_intervals)
1468 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
6e48267a 1469 and for interval tree size.
e79123aa
EZ
1470
1471 * intervals.h (traverse_intervals, split_interval_right)
1472 (split_interval_left, find_interval, offset_intervals)
1473 (graft_intervals_into_buffer, copy_intervals)
1474 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
1475 (update_interval): Adjust prototypes.
1476
579c18d0
EZ
1477 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
1478 Use EMACS_INT for buffer position variables and arguments.
1479
1480 * composite.c (get_composition_id, find_composition)
1481 (run_composition_function, compose_text)
1482 (composition_gstring_width, autocmp_chars)
1483 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
1484 for buffer positions and string length variables and arguments.
1485
1486 * composite.h (get_composition_id, find_composition, compose_text)
1487 (composition_gstring_width): Adjust prototypes.
1488
1489 * editfns.c (Fformat): Use EMACS_INT for string size variables.
1490
1491 * xdisp.c (store_mode_line_noprop, display_mode_element): Use
1492 EMACS_INT for string positions.
1493
1494 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
1495 position arguments.
1496
1497 * intervals.h (get_property_and_range): Adjust prototype.
14162469
EZ
1498
1499 * character.c (parse_str_as_multibyte, str_as_multibyte)
1500 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
579c18d0
EZ
1501 (string_count_byte8, string_escape_byte8, c_string_width)
1502 (strwidth, lisp_string_width, multibyte_chars_in_text): Use
1503 EMACS_INT for string length variables and arguments.
14162469
EZ
1504
1505 * character.h (parse_str_as_multibyte, str_as_multibyte)
579c18d0
EZ
1506 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
1507 (c_string_width, strwidth, lisp_string_width): Adjust
14162469
EZ
1508 prototypes.
1509
579c18d0
EZ
1510 * font.c (font_intern_prop): Use EMACS_INT for string length
1511 variables.
1512
1513 * font.c (font_intern_prop): Use EMACS_INT for string length
1514 variables.
1515
14162469
EZ
1516 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
1517 variables.
1518
1519 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
1520 (Fmake_string): Protect against too large strings.
1521 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
1522 (live_misc_p): Use ptrdiff_t instead of int for pointer
1523 differences.
1524 (string_bytes, check_sblock, check_string_free_list)
1525 (allocate_string_data, compact_small_strings, Fmake_string)
1526 (Fmake_bool_vector, make_string, make_unibyte_string)
1527 (make_multibyte_string, make_string_from_bytes)
1528 (make_specified_string_string, Fmake_list, Fmake_vector): Use
1529 EMACS_INT for string length variables and arguments.
1530 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
1531 (Fpurecopy): Use EMACS_INT for string size.
1532 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
1533 for vector size.
1534
1535 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
1536 (make_string_from_bytes, make_specified_string_string)
579c18d0
EZ
1537 (make_pure_string, string_bytes, check_point_in_composition):
1538 Adjust prototypes.
14162469 1539
c8a66ab8
EZ
15402010-09-22 Eli Zaretskii <eliz@gnu.org>
1541
1542 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
1543 (check_translation): Use EMACS_INT for buffer positions and
1544 length.
1545
1546 * undo.c (record_marker_adjustment, record_delete)
1547 (record_change, record_point, record_insert)
1548 (record_property_change, Fprimitive_undo): Use EMACS_INT for
1549 buffer positions.
1550
1551 * lisp.h (record_marker_adjustment, record_delete)
1552 (record_change, record_point, record_insert)
1553 (record_property_change, Fprimitive_undo): Adjust prototypes.
1554
38c54d9d
JB
15552010-09-22 Juanma Barranquero <lekktu@gmail.com>
1556 Eli Zaretskii <eliz@gnu.org>
1557
1558 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
1559
413d18e7
EZ
15602010-09-22 Eli Zaretskii <eliz@gnu.org>
1561
1562 * minibuf.c (Fminibuffer_contents)
1563 (Fminibuffer_contents_no_properties)
1564 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
1565 positions.
1566
1567 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
1568 mark.
1569
1570 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
1571 (allocate_string_data): Accept EMACS_INT for string length.
1572
1573 * editfns.c (Ffield_string, Ffield_string_no_properties)
1574 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
1575 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
1576 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
1577 (Ffield_end): Use EMACS_INT for buffer positions.
1578
1579 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
1580 point with mark.
1581
1582 * lisp.h (allocate_string_data, make_uninit_string)
1583 (make_uninit_multibyte_string, make_buffer_string)
1584 (make_buffer_string_both): Adjust prototypes.
1585
4b9832a6
CY
15862010-09-22 Chong Yidong <cyd@stupidchicken.com>
1587
1588 * xml.c: Switch to GNU indentation.
1589 (make_dom): Change parse tree format to match xml.el.
1590 (Fxml_parse_html_string_internal): Rename from html-parse-string.
1591 (Fxml_parse_string_internal): Rename from xml-parse-string.
1592
86282aab
KH
15932010-09-22 Kenichi Handa <handa@m17n.org>
1594
1595 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
1596 only if we are not at a composition.
1597 (set_iterator_to_next): Give it->end_charpos to
1598 composition_compute_stop_pos.
1599 (set_iterator_to_next, next_element_from_buffer): Likewise.
1600
1601 * dispnew.c (buffer_posn_from_coords): Fix position when the
1602 current display element is a grapheme cluster in bidi-reordered
1603 region.
1604
840b985a
AR
16052010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
1606
1607 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
1608 the regions may overlap.
1609
5bc88f4b
JB
16102010-09-21 Juanma Barranquero <lekktu@gmail.com>
1611
1612 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
1613
92bc9a36
DN
16142010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
1615
d19e096e
DN
1616 * emacs.c: Do not include sys/ioctl.h, not needed.
1617
92bc9a36
DN
1618 * doprnt.c: Do not include stdlib.h, config.h does it.
1619 Move #include before macro definition.
1620
15f844ac
DN
16212010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
1622
48e24408
DN
1623 * Makefile.in (temacs): Link using $(CC) not $(LD).
1624 (LD_FIRSTFLAG): Define using autoconf.
1625 (LD): Remove.
1626
65539506
DN
1627 Remove HAVE_TERMIOS definitions.
1628 * s/usg5-4-common.h (HAVE_TERMIOS):
1629 * s/template.h (HAVE_TERMIOS):
1630 * s/gnu-linux.h (HAVE_TERMIOS):
1631 * s/darwin.h (HAVE_TERMIOS):
1632 * s/cygwin.h (HAVE_TERMIOS):
1633 * s/bsd-common.h (HAVE_TERMIOS):
1634 * s/aix4-2.h (HAVE_TERMIOS):
1635 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
1636 defined on all non-MS platforms.
1637 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
1638
15f844ac
DN
1639 * xterm.c (xt_action_hook): Use const.
1640
7d701334
JB
16412010-09-20 Juanma Barranquero <lekktu@gmail.com>
1642
1643 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
1644 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
1645 (gethostname) [!HAVE_SOCKETS]: Remove.
1646 (SOCK_REPLACE_HANDLE): Remove macro.
1647 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
1648 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
1649 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
1650 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
1651
f3ec267a
EZ
16522010-09-18 Eli Zaretskii <eliz@gnu.org>
1653
1654 * deps.mk (xml.o): Add dependencies.
1655
93acd23d
JB
1656 * xdisp.c (Fcurrent_bidi_paragraph_direction):
1657 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
bea4f10c
EZ
1658
1659 * bidi.c (bidi_paragraph_init): Accept an additional argument
1660 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
1661 search back until a paragraph with a strong directional character
1662 is found, and use that to determine paragraph's base direction.
1663
1664 * dispextern.h (bidi_paragraph_init): Update prototype.
1665
69e847be
EZ
16662010-09-17 Eli Zaretskii <eliz@gnu.org>
1667
1668 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
1669 of w32api >= 3.15. (Bug#6989)
1670
283357a7
LMI
16712010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
1672
1673 * process.c (wait_reading_process_output): Don't message about
1674 accept-process-output unless the time limit really is zero.
1675
4ddb20d6
SM
16762010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
1677
1678 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
1679 int/Lisp_Object mixup).
1680
e24ad6dd
J
16812010-09-17 Jan Djärv <jan.h.d@swipnet.se>
1682
1683 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
1684 not HELP.
1685
fb0cf781
J
16862010-09-17 Stephen Berman <stephen.berman@gmx.net>
1687
1688 * frame.c (Ftool_bar_pixel_width): New function to expose tool
1689 bar's pixel width to Lisp (Bug#7048).
1690
4ddb20d6
SM
16912010-09-14 Juanma Barranquero <lekktu@gmail.com>
1692
1693 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
fb0cf781 1694
318a04c6
J
16952010-09-17 Jan Djärv <jan.h.d@swipnet.se>
1696
1697 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
1698 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
1699
78a21772
KH
17002010-09-17 Kenichi Handa <handa@m17n.org>
1701
1702 * ftfont.c (ftfont_check_otf): Fix previous change.
1703
fa3f6039
KH
17042010-09-14 Kenichi Handa <handa@m17n.org>
1705
1706 * ftfont.c (ftfont_check_otf): Fix the case of checking just
1707 existence of GSUB or GPOS.
1708
2b5491fa
JB
17092010-09-14 Juanma Barranquero <lekktu@gmail.com>
1710
1711 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
1712
c97c655f
LMI
17132010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
1714
2b5491fa 1715 * xml.c (parse_buffer): Renamed to parse_string(), since that's
c97c655f
LMI
1716 what it does.
1717 (parse_string): Return nil when the document can't be parsed.
1718
6664fc59 17192010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5f61a25c
J
1720
1721 * xterm.c (get_current_vm_state): New function.
1722 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
1723 want_fullscreen so set_wm_state calls are few (Bug#7013).
1724 (x_handle_net_wm_state): Move code to get_current_vm_state and
1725 call that function.
1726
6664fc59 17272010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
1728
1729 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
1730
6664fc59 17312010-09-14 Kenichi Handa <handa@m17n.org>
a552b35a
KH
1732
1733 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
1734 we may use designation or locking-shift.
1735
6664fc59 17362010-09-14 Kenichi Handa <handa@m17n.org>
396475b7
KH
1737
1738 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
1739 sequence when the source is multibyte.
1740
1da70e99
AS
17412010-09-14 Andreas Schwab <schwab@linux-m68k.org>
1742
6664fc59
JB
1743 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
1744 Don't make first argument optional. Doc fix.
1da70e99 1745
26632d8d
LMI
17462010-09-14 Leo <sdl.web@gmail.com> (tiny change)
1747
1748 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
1749 parameters for the doc string.
1750
21fa8e37
LMI
17512010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
1752
1753 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
1754
5616cc54
SM
17552010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1756
1757 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
1758 (syms_of_fns): Don't defsubr Sy_or_n_p.
1759 * lisp.h: Don't declare Fy_or_n_p.
1760 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
1761
381408e2
LMI
17622010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
1763
1764 * xml.c (Fxml_parse_buffer): New function to parse XML files.
1765
17662010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
1767
1768 * xml.c: New file.
1769 (Fhtml_parse_buffer): New function to interface to the libxml2
1770 html parsing function.
1771
733946e7
JB
17722010-09-05 Juanma Barranquero <lekktu@gmail.com>
1773
1774 * biditype.h: Regenerate.
1775
7574650a
AS
17762010-09-04 Andreas Schwab <schwab@linux-m68k.org>
1777
1778 * nsimage.m (ns_load_image): Check argument types.
1779
1780 * image.c: Remove all uses of gcpro.
1781 (xpm_load): Check all lisp types.
1782 (pbm_load): Likewise.
1783 (png_load): Likewise.
1784 (jpeg_load): Likewise.
1785 (tiff_load): Likewise.
1786 (gif_load): Likewise.
1787 (imagemagick_load_image): Likewise.
1788 (imagemagick_load): Likewise.
1789 (svg_load): Likewise.
1790 (gs_load): Likewise.
1791
6e6b8e25
EZ
17922010-09-04 Eli Zaretskii <eliz@gnu.org>
1793
1794 * w32uniscribe.c (uniscribe_shape): Update commentary. Don't
1795 try to reorder grapheme clusters, since LGSTRING should always
1796 hold them in the logical order.
1797 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
1798 return glyph codes in the logical order.
1799
dbfe4532
AS
18002010-09-04 Andreas Schwab <schwab@linux-m68k.org>
1801
1802 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
b7d187f8 1803 (imagemagick_load_image): Fix type mismatch.
5e5992c2 1804 (Fimagemagick_types): Likewise. Doc fix.
dbfe4532 1805
6d7cc563
JD
18062010-09-02 Jan Djärv <jan.h.d@swipnet.se>
1807
1808 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
1809
1810 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
1811
1812 * xselect.c: Remove declaration of cut-buffer objects and functions.
1813 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
1814 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
1815 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
1816 (Fx_rotate_cut_buffers_internal): Remove.
1817 (syms_of_xselect): Remove defsubr of above.
1818 Remove intern of QCUT_BUFFERn.
1819
8f4e9110
SM
18202010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
1821
1822 * cmds.c (Vblink_paren_function): Remove.
1823 (internal_self_insert): Make it insert N chars at a time.
1824 Don't call blink-paren-function.
1825 (Fself_insert_command): Adjust accordingly.
1826 (syms_of_cmds): Don't declare blink-paren-function.
1827
d419e1d9
KH
18282010-08-31 Kenichi Handa <handa@m17n.org>
1829
1830 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
1831 characters.
1832
1833 * term.c (encode_terminal_code): Fix the previous change.
5616cc54
SM
1834 (produce_glyphs): Don't set it->char_to_display here.
1835 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
1836 (produce_special_glyphs): Set temp_it.char_to_display before
1837 calling produce_glyphs.
1838
1839 * xdisp.c (get_next_display_element): Set it->char_to_display
1840 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
1841 characters.
1842 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
1843 calling PRODUCE_GLYPHS.
1844 (append_space_for_newline): Save and store it->char_to_display.
1845 Set it->char_to_display before calling PRODUCE_GLYPHS.
1846 (extend_face_to_end_of_line): Set it->char_to_display before
1847 calling PRODUCE_GLYPHS.
1848 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
1849 character to its byte value.
1850 (get_char_glyph_code): New function.
1851 (produce_stretch_glyph): Set it2.char_to_display too before
1852 calling x_produce_glyphs.
1853 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
1854 non-ASCII characters. Don't set it->char_to_display here.
1855 Don't handle unibyte-display-via-language-environment here. For a
2b5491fa 1856 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 1857
b819f760
SM
18582010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
1859
1860 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
1861
07fa68a7
CY
18622010-08-31 Chong Yidong <cyd@stupidchicken.com>
1863
1864 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
1865
cd196f12
SM
18662010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
1867
1868 * marker.c (Fcopy_marker): Make the first arg optional.
1869
49a752bb
KH
18702010-08-30 Kenichi Handa <handa@m17n.org>
1871
1872 * composite.c (composition_update_it): Fix computing of
1873 cmp_it->width.
1874
769ae9e1
KH
18752010-08-29 Kenichi Handa <handa@m17n.org>
1876
9e69cb05 1877 * term.c (encode_terminal_code): Encode byte chars to the
5616cc54 1878 corresponding bytes.
9e69cb05 1879
4520b858
J
18802010-08-29 Jan Djärv <jan.h.d@swipnet.se>
1881
1882 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
1883
fe50eb41
KH
18842010-08-26 Kenichi Handa <handa@m17n.org>
1885
1886 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
1887 on calling composition_compute_stop_pos.
1888
f6aa6ec6
KH
18892010-08-25 Kenichi Handa <handa@m17n.org>
1890
9dfdbc0a
KH
1891 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
1892 :otf.
1893
f6aa6ec6
KH
1894 * composite.c (composition_compute_stop_pos): Don't break
1895 composition at PT.
1896 (composition_reseat_it): Likewise. Fix calculation of character
1897 position starting a composition.
1898 (Fcomposition_get_gstring): Don't limit the number of components
1899 for automatic composition.
1900
ff94e32c
KH
19012010-08-25 Kenichi Handa <handa@m17n.org>
1902
1903 * composite.c (composition_compute_stop_pos): In forward search,
1904 pay attention to the possibility that some character after ENDPOS
1905 will be composed with charactrs before ENDPOS.
1906
1c409d0b
CY
19072010-08-24 Chong Yidong <cyd@stupidchicken.com>
1908
1909 * keyboard.c (command_loop_1): Don't clobber primary selection
1910 during handle-switch-frame (Bug#6872).
1911
0c372655
MA
19122010-08-23 Michael Albinus <michael.albinus@gmx.de>
1913
1914 * dbusbind.c: Accept UNIX domain sockets as bus address.
1915 (Fdbus_close_bus): New function.
1916 (Vdbus_registered_buses): New variable.
1917 (xd_initialize): Implement string as bus address.
1918 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
1919 (Fdbus_get_unique_name, Fdbus_call_method)
1920 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1921 (Fdbus_method_error_internal, Fdbus_send_signal)
1922 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
1923 check. This is done in xd_initialize_bus. Adapt doc string, if
1924 necessary.
1925 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
1926 Vdbus_registered_buses.
1927 (Vdbus_registered_objects_table): Create hash.
1928
7133b7ee
JL
19292010-08-22 Juri Linkov <juri@jurta.org>
1930
1931 * keyboard.c (Fexecute_extended_command): Move reading a command name
1932 with `completing-read' to a new Elisp function `read-extended-command'.
1933 Call it to read a command to `function' (bug#5364, bug#5214).
1934
198a7a97
CY
19352010-08-22 Chong Yidong <cyd@stupidchicken.com>
1936
1937 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
1938
b0126eac 19392010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
1940
1941 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
1942 instead of SAFE_ALLOCA.
1943
b0126eac 19442010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
1945
1946 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
1947 (Bug#6214).
1948
b0126eac 19492010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
1950
1951 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
1952
b0126eac
CY
19532010-08-22 Jan Djärv <jan.h.d@swipnet.se>
1954
1955 * doc.c (Fsnarf_documentation): Initialize skip_file before
1956 build-files test.
1957
692f3ddc 19582010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 1959
692f3ddc
JB
1960 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
1961 New definitions.
b0126eac
CY
1962 (HAVE_TERMIO): Remove.
1963
5f2f0bc1
EZ
19642010-08-22 Eli Zaretskii <eliz@gnu.org>
1965
b613941b
EZ
1966 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
1967
a583bbef
EZ
1968 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
1969 for w32.
1970
1971 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
1972 it's done in nt/config.nt.
1973
1974 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
1975
5f2f0bc1
EZ
1976 * unexcoff.c (report_error, make_hdr, write_segment)
1977 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
1978 Convert argument lists and prototypes to ANSI C.
1979 (make_hdr, write_segment): Remove unused variables.
1980 (unexec): Remove commented-out line. Initialize `new' to shut up
1981 compiler warnings.
1982
a7ebc409
DN
19832010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
1984
1985 Simplify termio code.
1986 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
1987 HAVE_TERMIO code is obsolete.
1988 Replace HAVE_TERMIOS conditionals with !DOS_NT.
1989 * systty.h: Do not define HAVE_TCATTR.
1990 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
1991 Do not define EMACS_HAVE_TTY_PGRP. Only define
1992 EMACS_GET_TTY_PGRP for !DOS_NT.
1993 * sysdep.c: Include sysselect.h unconditionally. Do not include
1994 sys/ioctl.h and termios.h, systty.h does it. Use
1995 HAVE_SYS_UTSNAME_H instead of USG as an include guard.
1996 (init_baud_rate): Remove HAVE_TERMIO code.
1997 (child_setup_tty): Remove HAVE_TERMIO code.
1998 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
1999 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
2000 (new_ltchars, new_tchars): Remove, unused.
2001 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
2002 code. Remove special casing for __mips__, it was a no-op. Remove
2003 HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
2004 (init_sys_modes): Remove HPUX special case.
2005 * process.c: Include stdlib.h unconditionally. Do not include
2006 fcntl.h, systty.h does it. Remove conditional code for
2007 HAVE_SERIAL, it is always true.
2008 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
2009 always true when SIGNALS_VIA_CHARACTERS is true.
2010 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
2011 !WINDOWSNT means HAVE_TERMIOS.
2012 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
2013 conditional, which is true for all HAVE_TERMIOS systems.
2014 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
2015 instead of HAVE_TERMIOS.
2016 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
2017 EMACS_HAVE_TTY_PGRP.
2018 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
2019 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
2020 anyway.
2021
914f049b 20222010-08-21 Eli Zaretskii <eliz@gnu.org>
40629f17
EZ
2023
2024 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
2025 mirroring pixel positions.
2026
d931da8c
DN
20272010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
2028
b5c76d0c
DN
2029 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
2030 write only.
2031 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
2032 malloc_sbrk_used, nothing uses them.
2033
74815588
DN
2034 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
2035 defined, unconditionally defined in lisp.h.
2036
f5817d1c
DN
2037 * term.c: Do not include <termios.h>, systty.h does it.
2038
d931da8c
DN
2039 * s/unixware.h (HAVE_TCATTR):
2040 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
2041 systty.h defines it when HAVE_TERMIOS is defined.
2042
ff2de6d2 20432010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 2044
b43c883c 2045 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 2046 terminals: add one-character offset for R2L lines.
b43c883c 2047
491a1546
EZ
2048 * emacs.c <emacs_version>: Add a comment regarding
2049 msdos/mainmake.v2's dependency on the syntax of this declaration.
2050
2396cbba
EZ
20512010-08-20 Eli Zaretskii <eliz@gnu.org>
2052
2053 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
2054 position for R2L lines by mirroring the pixel position wrt the
2055 text are box. Improve commentary.
2056
7df6150a
AS
20572010-08-20 Andreas Schwab <schwab@linux-m68k.org>
2058
2059 * image.c (imagemagick_clear_image): Remove debugging output.
2060
a2e5caf7
SM
20612010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2062
2063 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
2064 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
2065 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
2066 self-insert-face.
2067 (syms_of_cmds): Initialize the new vars.
2068
20d60baf
JR
20692010-08-19 Jason Rumney <jasonr@gnu.org>
2070
cc477da7
JR
2071 * w32menu.c (set_frame_menubar): Remove call to undefined function.
2072
20d60baf
JR
2073 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
2074
2c0ac867
J
20752010-08-19 Jan Djärv <jan.h.d@swipnet.se>
2076
2077 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
2078
93352106
EZ
20792010-08-18 Eli Zaretskii <eliz@gnu.org>
2080
2081 * xterm.c (x_draw_bar_cursor):
2082 * w32term.c (x_draw_bar_cursor): If the character under cursor is
2083 R2L, draw the bar cursor on its right rather than on its left.
2084
c785836d
SM
20852010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
2086
0193499f
SM
2087 * eval.c (Fdefmacro): Only obey one declaration.
2088
c785836d
SM
2089 * casefiddle.c (casify_region): Setup gl_state.
2090
9cb728a5
J
20912010-08-18 Jan Djärv <jan.h.d@swipnet.se>
2092
2093 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
2094
e1e18511
J
20952010-08-18 Jan Djärv <jan.h.d@swipnet.se>
2096
1d77b63e 2097 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
e1e18511 2098
64cb6c78
J
20992010-08-18 David De La Harpe Golden <david@harpegolden.net>
2100
2101 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
2102 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
2103 QPRIMARY => NXPrimaryPboard.
2104 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
2105 NXPrimaryPboard => QPRIMARY.
2106 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
2107 NXSecondaryPboard = SecondarySelection.
2108 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
2109
0c9b8993
GM
21102010-08-18 Joakim Verona <joakim@verona.se>
2111
2112 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
2113 defined:
2114 (imagemagick_image_p): New function to test for ImageMagic image.
2115 (imagemagick_load): New function to load ImageMagick image.
2116 (imagemagick_load_image): New function, helper for imagemagick_load.
2117 (imagemagick-types): New function.
2118 (Qimagemagick): New Lisp_object.
2119 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 2120
c3554f68
SM
21212010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
2122
2123 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
2124 is a string.
2125
1ff2e434
J
21262010-08-17 Jan Djärv <jan.h.d@swipnet.se>
2127
2128 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
2129 x_set_tool_bar_position handler.
2130
0cc56427
EZ
21312010-08-17 Eli Zaretskii <eliz@gnu.org>
2132
2133 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
2134 x_set_tool_bar_position handler, needed to support changes from
2135 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
2136
e45a249b
JD
21372010-08-16 Jan Djärv <jan.h.d@swipnet.se>
2138
921242c6
J
2139 * nsselect.m: include keyboard.h for QPRIMARY, remove its
2140 declaration (Bug#6863).
573d150b 2141 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 2142
e45a249b
JD
2143 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
2144
2145 * keyboard.h (QPRIMARY): Declare (Bug#6864).
2146
7c23dd44
CY
21472010-08-16 Chong Yidong <cyd@stupidchicken.com>
2148
2149 * keyboard.c (command_loop_1): Avoid setting selection twice,
2150 since it's done in deactivate-mark as well.
2151 (Vselect_active_regions): Change default to t. Replace `lazy'
2152 with non-default value `only', meaning only set PRIMARY for
2153 temporarily active regions.
2154
2155 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
2156 select-active-regions.
2157
0005830c
J
21582010-08-15 Jan Djärv <jan.h.d@swipnet.se>
2159
2160 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
2161 isn't a string.
2162
603dfc72
AS
21632010-08-15 Andreas Schwab <schwab@linux-m68k.org>
2164
2165 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
2166
c25ce9d0
J
21672010-08-15 Jan Djärv <jan.h.d@swipnet.se>
2168
c3554f68
SM
2169 * keyboard.c (parse_tool_bar_item): malloc buf.
2170 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
2171 new_lbl (Bug#6855).
c25ce9d0 2172
5872c762
EZ
21732010-08-14 Eli Zaretskii <eliz@gnu.org>
2174
b236615c
EZ
2175 * xterm.c (x_draw_stretch_glyph_string):
2176 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
2177 the cursor on the right edge of the stretch glyph.
2178
c3554f68
SM
2179 * xdisp.c (window_box_right_offset, window_box_right):
2180 Fix commentary.
b236615c 2181
5872c762
EZ
2182 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
2183 direction when point is inside a run of whitespace characters.
2184
2185 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
2186
e66f9a1b
JR
21872010-08-14 Jason Rumney <jasonr@gnu.org>
2188
2189 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
2190
79d6f59e
CY
21912010-08-14 Chong Yidong <cyd@stupidchicken.com>
2192
2193 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
2194
1c9b4129
JR
21952010-08-13 Jason Rumney <jasonr@gnu.org>
2196
2197 * w32menu.c (simple_dialog_show): Use unicode message box if available.
2198 (MessageBoxW_Proc): New function typedef.
2199 (unicode-message-box): New function pointer.
2200 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
2201
2b4e6277
J
22022010-08-13 Jan Djärv <jan.h.d@swipnet.se>
2203
2204 * frame.h (Qtool_bar_position): Declare.
2205
2206 * xfns.c (Fx_create_frame): Call x_default_parameter for
2207 Qtool_bar_position.
2208
94c97d85
EZ
22092010-08-13 Eli Zaretskii <eliz@gnu.org>
2210
8ee81892
EZ
2211 * unexcoff.c: Remove the parts used when "emacs" is not defined.
2212 (report_error, report_error_1): Ditto.
2213 (write_segment): Remove "#if 0" unused code.
2214 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
2215 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
2216 (start_of_text): Remove unused function (was used only if NO_REMAP
2217 was NOT defined).
2218
891ef8f7
EZ
2219 * msdos.c (IT_set_face): Fix format string to match argument
2220 types.
2221 (IT_write_glyphs, IT_note_mode_line_highlight)
2222 (IT_set_frame_parameters): Remove unused variables.
2223 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
2224 (IT_set_terminal_modes): Disambiguate expression in if clause.
2225 (Fmsdos_remember_default_colors): Return Qnil.
2226 (IT_set_frame_parameters): Add parens to disambiguate boolean
2227 expression for logging the cursor type to termscript.
2228 (keyboard_layout_list, keypad_translate_map)
2229 (grey_key_translate_map): Add braces in inner initializers.
2230 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
2231 (dos_rawgetc): Remove unused label.
2232 (XMenuActivate): Add braces to remove ambiguous `else'.
2233 (dos_ttraw): Always return a value.
2234 (spawnve): Declare.
2235 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
2236
2237 * dosfns.h (x_set_title): Declare.
2238
2239 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
2240 Remove unused variables.
2241
2242 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
2243 variables.
2244 (init_dosfns): Declare get_lim_data.
2245 (system_process_attributes): Declare Fget_internal_run_time.
2246
38e41e0e
EZ
2247 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
2248 list to be consistent with menu.h.
2249
94c97d85
EZ
2250 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
2251 warnings due to mixing of "char *" and "const char *".
2252
c5683ceb
SM
22532010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
2254
2255 Introduce a new comment style "c" flag.
2256 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
2257 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
2258 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
2259 (syntax_prefix_flag_p): New function.
2260 (Fstring_to_syntax): Understand new "c" flag.
2261 (Finternal_describe_syntax_value): Recognize new flag; use the
2262 SYNTAX_FLAGS_* macros.
2263 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
2264 comment style to accomodate the new styles.
2265 (back_comment, forw_comment, Fforward_comment, scan_lists)
2266 (scan_sexps_forward): Update code to obey the new comment style flag.
2267
2268 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
2269
2270 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
2271
7aee76f4
J
22722010-08-11 Jan Djärv <jan.h.d@swipnet.se>
2273
3a46642b
J
2274 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
2275 first.
94dff98f 2276 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
2277
2278 * gtkutil.h (xg_check_special_colors): Declare.
2279
2280 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
2281 (xg_create_frame_widgets): Connect theme name changes to
2282 style_changed_cb.
2283
42ca4633
J
2284 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
2285 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
2286 (x_term_init): Use char[] display_opt and name_opt instead of
93acd23d 2287 string literal. file is const char*.
42ca4633
J
2288
2289 * xsmfns.c (NOSPLASH_OPT): Change to char[].
2290 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
2291 props. Free them at the end.
2292
2293 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
2294
c5683ceb
SM
2295 * xrdb.c (get_system_app): Make path const and use char *p for
2296 non-const char.
42ca4633
J
2297
2298 * xmenu.c (Fx_popup_dialog): error_name is const char*.
93acd23d 2299 (xmenu_show): error parameter is const char **. pane_string is const
42ca4633
J
2300 char *.
2301 (button_names): Is const char *.
2302 (xdialog_show): error_name and pane_string is const.
2303
2304 * process.h (synch_process_death): Is const char*.
2305
2306 * w32menu.c (w32_menu_show):
2307 * nsmenu.m (ns_menu_show): error parameter is const char **.
2308
2309 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
2310 is const char **.
2311
2312 * menu.c (Fx_popup_menu): error_name is const.
2313
2314 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
2315 with unsigned char and XtPointer with void *.
2316
2317 * gtkutil.h: Replace widget_value with struct _widget_value.
2318 (enum button_type, struct _widget_value): Remove and use the one from
2319 keyboard.h.
2320
2321 * gtkutil.c (get_utf8_string): Always return an allocated string.
2322 Parameter is const.
2323 (create_dialog, xg_create_one_menuitem, create_menus)
2324 (xg_item_label_same_p, xg_update_menu_item): Free result from
2325 get_utf8_string.
2326 (xg_separator_p, xg_item_label_same_p): label is const.
2327
2328 * font.h (font_open_by_name): Make name const.
2329
2330 * font.c (font_open_by_name): Make name const.
2331
2332 * floatfns.c (matherr): Use a const char* variable for x->name.
2333
2334 * emacs.c (main): Pass char[] to putenv instead of literal.
2335
2336 * callproc.c (synch_process_death): Make const.
2337 (Fcall_process): Make signame const.
2338
9c5bd55a
J
2339 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
2340 (addDisplayItemWithImage): Use const char*.
2341
2342 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
2343 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
2344
2345 * nsfont.m (ns_descriptor_to_entity): Use const char*.
2346
2347 * keyboard.h (_widget_value): name, value and key are const char*.
2348
7aee76f4
J
2349 * unexmacosx.c (unexec_error): Use const char *.
2350
09d93395
DN
23512010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
2352
2353 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 2354 (font_parse_name, font_open_by_name):
09d93395 2355 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 2356 (font_parse_name, font_open_by_name): Remove const.
09d93395 2357
671d409f
AS
23582010-08-09 Andreas Schwab <schwab@linux-m68k.org>
2359
2360 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
2361 definition.
2362
2363 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
2364 * m/amdx86-64.h: Likewise.
2365 * m/arm.h: Likewise.
2366 * m/hp800.h: Likewise.
2367 * m/ia64.h: Likewise.
2368 * m/ibmrs6000.h: Likewise.
2369 * m/ibms390.h: Likewise.
2370 * m/intel386.h: Likewise.
2371 * m/iris4d.h: Likewise.
2372 * m/m68k.h: Likewise.
2373 * m/macppc.h: Likewise.
2374 * m/mips.h: Likewise.
2375 * m/sh3.h: Likewise.
2376 * m/sparc.h: Likewise.
2377 * m/template.h: Likewise.
2378 * m/vax.h: Likewise.
2379 * m/xtensa.h: Likewise.
2380 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
2381 WORDS_BIG_ENDIAN.
2382 * lisp.h: Likewise.
2383 * md5.c: Likewise.
2384 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
2385
8ea90aa3
DN
23862010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
2387
2388 Use const char* instead of char*.
2389 Reduce the number of warnings with -Wwrite-strings.
2390 * xrdb.c (get_environ_db, get_system_name):
2391 * unexelf.c (find_section):
2392 * term.c (string_cost, string_cost_one_line, per_line_cost)
2393 (get_named_tty, init_tty):
2394 * sysdep.c (sys_subshell):
2395 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
2396 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
2397 * search.c (Freplace_match):
2398 * process.c (Fmake_network_process, send_process, init_process):
2399 * lread.c (Fload, init_lread):
2400 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
2401 * keyboard.c (parse_tool_bar_item, struct event_head):
2402 * gtkutil.h (xg_get_font_name):
2403 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
2404 (make_widget_for_menu_item, make_menu_item, create_menus)
2405 (xg_make_tool_item):
2406 * font.c (parse_matrix, font_parse_name):
2407 * floatfns.c (rounding_driver, float_error_fn_name):
2408 * filelock.c (get_boot_time_1, lock_file_1):
2409 * fileio.c (barf_or_query_if_file_exists, check_writable):
2410 * editfns.c (get_system_name, get_operating_system_release)
2411 (Fencode_time, Fset_time_zone_rule):
2412 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
2413 * buffer.c (defvar_per_buffer): Use const.
2414
7815fe19 24152010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 2416
692f3ddc 2417 * charset.c: Include <stdlib.h>.
7a84eee5
KH
2418 (struct charset_sort_data): New struct.
2419 (charset_compare): New function.
692f3ddc 2420 (Fsort_charsets): New function.
7a84eee5
KH
2421 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
2422
2423 * coding.c (decode_coding_iso_2022): Fix checking of dimension
2424 number in CTEXT extended segment.
2425
7815fe19 24262010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
2427
2428 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
2429 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
2430
7815fe19 24312010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
2432
2433 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
2434 (Fhash_table_size): Fix typos in docstrings.
2435 (Fmake_hash_table): Doc fix.
2436
7815fe19 24372010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
2438
2439 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
2440 Doc fix (bug#5625).
2441
7815fe19 24422010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
2443
2444 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
2445 the MSDOS definition.
2446
1b6d8cf0
DN
24472010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
2448
675e2c69
DN
2449 Use const char* instead of char*.
2450 * xterm.c (x_create_toolkit_scroll_bar):
2451 * xfont.c (xfont_list_pattern):
2452 * xfns.c (x_default_scroll_bar_color_parameter)
2453 (xic_create_fontsetname, x_default_font_parameter)
2454 (x_screen_planes):
2455 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
2456 (store_mode_line_string, decode_mode_spec, display_string):
2457 * menu.c (digest_single_submenu):
2458 * keymap.h (initial_define_key, initial_define_lispy_key):
2459 * keymap.c (initial_define_key, initial_define_lispy_key):
2460 * image.c (image_error, image_keyword):
2461 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
2462 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
2463 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
2464 (ftfont_list, ftfont_match):
2465 * frame.c (frame_parm_table):
2466 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
2467 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
2468 (font_add_log, font_deferred_log):
2469 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
2470 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
2471 (font_add_log, font_deferred_log):
2472 * emacs.c (argmatch):
2473 * dispextern.h (struct it):
2474 * coding.c (ENCODE_DESIGNATION):
2475 * charset.c (define_charset_internal): Use const.
2476
25717ca1
DN
2477 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
2478
c5683ceb
SM
2479 * xrdb.c: Remove include guard.
2480 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
2481 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
2482 realloc->xrealloc instead of using #defines.
2483
efb41e21
EZ
24842010-08-08 Eli Zaretskii <eliz@gnu.org>
2485
cd21226d 2486 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
2487 * editfns.c (Fline_beginning_position, Fline_end_position):
2488 State in the doc strings that start and end of line are in the
2489 logical order.
cd21226d 2490
efb41e21
EZ
2491 * xdisp.c (display_line): Move the handling of overlay arrow after
2492 the call to find_row_edges. (Bug#6699)
2493
746812d9
CY
24942010-08-07 Chong Yidong <cyd@stupidchicken.com>
2495
2496 * keyboard.c (command_loop_1):
2497 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
2498
9852377f
CY
24992010-08-07 Chong Yidong <cyd@stupidchicken.com>
2500
2501 * insdel.c (prepare_to_modify_buffer): Save active region text to
2502 Vsaved_region_selection.
2503
2504 * xselect.c (QPRIMARY): Move to keyboard.c.
2505
2506 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
2507 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
2508 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 2509
0e9c8657
JB
25102010-08-07 Juanma Barranquero <lekktu@gmail.com>
2511
2512 * alloc.c (lisp_malloc):
2513 * buffer.c (set_buffer_internal, set_buffer_internal_1):
2514 * charset.h (emacs_mule_charset):
2515 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
2516 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
2517 (bitch_at_user):
2518 * lisp.h (Fcheck_coding_system, Fget_text_property)
2519 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
2520 Remove duplicate declarations.
2521
648801d1
DN
25222010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
2523
32bc6709
DN
2524 * process.c: Simplify include logic.
2525
3ef1d108
DN
2526 * keyboard.h (quit_char): Add declaration.
2527 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
2528 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
2529 Add declarations.
3ef1d108
DN
2530 * sysdep.c:
2531 * w32.c: Remove the above declarations.
2532
97ec208f
DN
2533 Remove extern declarations in .c files, .h files have them.
2534 * xterm.c:
2535 * xdisp.c:
97ec208f
DN
2536 * msdos.c:
2537 * image.c:
2538 * gtkutil.c:
2539 * fileio.c:
2540 * eval.c: Remove declarations.
2541
94eed851
DN
2542 * frame.c (frame_params): Make const.
2543
36e053eb
DN
2544 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
2545
0e843971
DN
2546 * emacs.c (emacs_copyright, emacs_version): Make static.
2547 (Vinitial_window_system, Vauto_save_list_file_name)
2548 (Vinhibit_redisplay): Remove declarations.
2549 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
2550 for AIX.
2551
648801d1
DN
2552 Use const for some arrays and functions.
2553 * xterm.h (xg_set_icon_from_xpm_data):
2554 * xfns.c (xg_set_icon_from_xpm_data):
2555 * term.c (fkeys):
2556 * keyboard.c (lispy_accent_keys, lispy_function_keys)
2557 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
2558 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
2559 (frame.c frame_parms):
2560 * emacs-icon.h (gnu_xpm_bits):
2561 * callint.c (callint_argfuns): Use const.
2562
8646d999
J
25632010-08-06 Jan Djärv <jan.h.d@swipnet.se>
2564
2565 * sysdep.c: Move include term.h last of includes (Bug#6812).
2566
cb4545ad
EZ
25672010-08-06 Eli Zaretskii <eliz@gnu.org>
2568
2569 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
2570
2571 * msdos.c (IT_display_cursor): Log cursor position on termscript.
2572
2573 * .gdbinit (pgx): Display the avoid_cursor_p flag.
2574
da7e2be6
JB
25752010-08-06 Juanma Barranquero <lekktu@gmail.com>
2576
2577 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
2578
3d608a86
J
25792010-08-06 Jan Djärv <jan.h.d@swipnet.se>
2580
7908fb60
J
2581 * xterm.h (x_get_focus_frame): Declare.
2582
2583 * keyboard.h (poll_for_input_1): Unconditionally declare.
2584
4094bf36
J
2585 * nsterm.h (x_set_menu_bar_lines): Declare.
2586
2587 * window.c: Don't include menu.h, it depends on lots of other .h-files.
2588
3d608a86
J
2589 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
2590
2591 * window.c: Include menu.h.
2592
2593 * unexmacosx.c (print_region_list, print_regions)
2594 (build_region_list, find_emacs_zone_regions)
2595 (unexec_regions_merge, read_load_commands, dump_it)
2596 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
2597
2598 * term.c: Check HAVE_SYS_IOCTL_H.
2599
686b968e 2600 * sysdep.c: Check HAVE_TERM_H.
3d608a86 2601
686b968e 2602 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
2603
2604 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
2605 (ns_ring_bell, ns_defined_color, hide_hourglass)
2606 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
2607 Convert to ANSI C prototypes.
2608 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
2609 before code.
2610
2611 * nsterm.h : Include sysselect.h.
2612 (x_sync, x_get_focus_frame, x_set_mouse_position)
2613 (x_set_mouse_pixel_position, x_make_frame_visible)
2614 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
2615 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
2616 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
2617 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 2618 Declare.
3d608a86
J
2619
2620 * nsmenu.m (popup_activated, name_is_separator)
2621 (syms_of_nsmenu): Convert to ANSI C prototypes.
2622 (runMenuAt): Prototypes and move declarations before code.
2623
2624 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
2625
2626 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
2627 prototypes.
2628
2629 * nsfns.m (have_menus_p, ns_display_info_for_name)
2630 (x_set_cursor_type, ns_appkit_version_str)
2631 (ns_appkit_version_int, ns_do_applescript)
2632 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
2633 (syms_of_nsfns): Convert to ANSI C prototypes.
2634
2635 * menu.h (x_set_menu_bar_line): Declare.
2636 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
2637
2638 * lisp.h (fmod_float): Declare.
2639
2640 * image.c (xpm_scan, xpm_make_color_table_v)
2641 (xpm_put_color_table_v, xpm_get_color_table_v)
2642 (xpm_make_color_table_h, xpm_put_color_table_h)
2643 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
2644 (xpm_load): Convert to ANSI C prototypes.
2645
2646 * emacs.c: Include nsterm.h if HAVE_NS.
2647
2648 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
2649
fce70521
DN
26502010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
2651
2652 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
2653 subprocesses, only MSDOS does not define HAVE_SOCKETS.
2654 (socket_options): Use const char* for name.
2655
a11889ab
JB
26562010-08-06 Juanma Barranquero <lekktu@gmail.com>
2657
2658 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
2659
2660 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
2661 Don't declare xmalloc_widget_value and digest_single_submenu.
2662
2663 * w32font.c (Qlatin): Remove declaration.
2664
2665 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
2666
c95b508f 2667 * dired.c (compile_pattern): Restore declaration.
a11889ab 2668
6254cdda
DN
26692010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
2670
04bab72c
DN
2671 Remove extern declarations in .c files, .h files have them.
2672 * data.c:
2673 * dired.c:
2674 * editfns.c:
2675 * filelock.c:
2676 * fns.c:
2677 * font.c:
2678 * fontset.c:
2679 * frame.c:
2680 * fringe.c:
2681 * ftfont.c:
2682 * gtkutil.c:
2683 * indent.c:
2684 * keyboard.c:
2685 * keymap.c:
2686 * lread.c:
2687 * menu.c:
2688 * print.c:
2689 * search.c:
2690 * sound.c:
2691 * window.c:
2692 * xdisp.c:
2693 * xfaces.c:
2694 * xfns.c:
2695 * xfont.c:
2696 * xftfont.c:
2697 * xmenu.c:
2698 * xterm.c: Remove declarations.
2699
dff94ed5
DN
2700 Cleanup syssignal.h.
2701 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
2702 (main_thread): Move down to remove #ifdef.
2703 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
2704 Remove conditional definition following unconditional ones.
2705
99f3388e
DN
2706 * lisp.h: Remove HAVE_SHM code, unused.
2707 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
2708 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
2709 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
2710 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
2711 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
2712 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
2713 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
2714 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
2715 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
2716 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
2717 (Qwindow_scroll_functions, Vafter_load_alist)
2718 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
2719 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
2720 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
2721 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
2722 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
2723 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
2724 (initial_argv, last_nonmenu_event, load_in_progress)
2725 (noninteractive_need_newline, scroll_margin): Add declarations.
2726
2727 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
2728 declarations, menu.h has them.
2729 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
2730 (Vinput_method_function, Qinput_method_function)
2731 (Qevent_symbol_element_mask, last_event_timestamp):
2732 * dispextern.h (Voverflow_newline_into_fringe):
2733 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
2734 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
2735 (syms_of_w32font, syms_of_nsfont):
2736 * fontset.h (find_font_encoding, Qlatin):
2737 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
2738 (Vtool_bar_mode, set_frame_menubar):
2739 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
2740 * xterm.h (Qx_gtk_map_stock):
2741 * keymap.h (meta_prefix_char): Add declarations.
2742
9f5dd6f2
DN
2743 * term.c: Remove dead code.
2744
6254cdda
DN
2745 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
2746 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
2747 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
2748 which is what was there before BSD_PGRPS was removed.
2749
29cf3e20
EZ
27502010-08-05 Eli Zaretskii <eliz@gnu.org>
2751
2752 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
2753
2754 * unexcoff.c: Renamed from unexec.c.
2755
aaa0a19a
SM
27562010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
2757
2758 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
2759
8d1d9587
JB
27602010-08-03 Johan Bockgård <bojohan@gnu.org>
2761
2762 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 2763 (Bug#6744)
8d1d9587 2764
9a747ba6
JD
27652010-08-02 Jan Djärv <jan.h.d@swipnet.se>
2766
4d464ae4
JD
2767 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
2768 to TRUE if depth of screen is < 16.
2769
ac01763e
JD
2770 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
2771 USE_GTK_TOOLTIP.
e0d62a9b
JB
2772 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
2773 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 2774 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
2775 USE_GTK_TOOLTIP.
2776 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
2777
2778 * xterm.h (USE_GTK_TOOLTIP): New define.
2779 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
2780
9a747ba6
JD
2781 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
2782 to Control-D (Bug#6771).
2783
7b0815ba
JB
27842010-08-02 Juanma Barranquero <lekktu@gmail.com>
2785
2786 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
2787 Wording by Drew Adams <drew.adams@oracle.com>.
2788
aa1859f5
J
27892010-08-01 Jan Djärv <jan.h.d@swipnet.se>
2790
2791 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
2792 ttip_lbl.
2793
2794 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
2795 calling gtk_widget_queue_draw.
2796 (x_free_frame_resources): Call xg_free_frame_widgets.
2797
2798 * xfns.c (x_gtk_use_system_tooltips): New variable.
2799 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
2800 new gtkutil tooltip functions to show the tooltip.
2801 (Fx_hide_tip): Call xg_hide_tooltip.
2802 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
2803
2804 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
2805 (xg_show_tooltip, xg_hide_tooltip): Declare.
2806
2807 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
2808 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
2809 New functions.
aa1859f5
J
2810 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
2811 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
2812 Remove code that is commented out.
2813
76417ef4
SM
28142010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
2815
2816 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
2817
16041401
CY
28182010-07-31 Chong Yidong <cyd@stupidchicken.com>
2819
2820 * xselect.c (x_own_selection): Use list4.
2821
2c09a58f
DN
28222010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
2823
2824 * buffer.c (Qwindow): Do not define, already defined in data.c.
2825 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
2826
59df9fdd 28272010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 2828
59df9fdd
JB
2829 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
2830 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
2831 * config.in: Undef HAVE_DIRENT_H.
1c97e857 2832 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 2833 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 2834
1b231651
DN
28352010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
2836
2837 Rename s/usg5-4.h -> s/usg5-4-common.h.
2838 * s/usg5-4.h: Rename file to ...
2839 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
2840 * s/unixware.h:
2841 * s/sol2-6.h:
2842 * s/irix6-5.h: Update includes accordingly.
2843
bfeabdc3
JD
28442010-07-29 Jan Djärv <jan.h.d@swipnet.se>
2845
2ebf1083
J
2846 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
2847
bfeabdc3 2848 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
2849 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
2850 Remove toolbar_height.
2851 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
2852 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
2853 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
2854 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
2855
2856 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
2857
2858 * xfns.c (x_set_tool_bar_position): New function.
2859 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
2860 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 2861 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
2862
2863 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
2864 and FRAME_TOOLBAR_LEFT_WIDTH.
2865
2866 * gtkutil.h (xg_change_toolbar_position): Declare.
2867
2868 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
2869 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
2870 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
2871 (xg_create_frame_widgets): Create a hobox for placing widgets
2872 vertically. Use gtk_box_pack_start.
2873 (xg_height_or_width_changed): Renamed from xg_height_changed.
2874 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
2875 (xg_update_frame_menubar, free_frame_menubar): Change to
2876 xg_height_or_width_changed.
2877 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
2878 size correctly. Remove hardcoded 4, instead use handlebox size -
2879 toolbar size.
2880 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 2881 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
2882 (xg_pack_tool_bar): POS is a new parameter.
2883 Set orientation of tool bar based on pos.
2884 Only make handlebox_widget if NULL.
2885 Check if tool bar goes to vbox or hbox depending on pos.
2886 (xg_update_tool_bar_sizes): New function.
686b968e 2887 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
2888 height, call xg_update_tool_bar_sizes instead.
2889 (free_frame_tool_bar): Remove from hbox or vbox depending on
2890 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
2891 (xg_change_toolbar_position): New function.
2892
2893 * frame.h (struct frame): Add tool_bar_position.
2894 (Qbottom): Declare.
2895
2896 * frame.c (Qtool_bar_position): New variable.
2897 (make_frame): Set tool_bar_position to Qtop.
2898 (frame_parms): Add tool-bar-position.
2899 (x_report_frame_params): Store tool_bar_position.
2900 (x_set_fringe_width): Reset wm size hint after fringe changes.
2901
26469a38
DN
29022010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
2903
2904 Make lisp_time_argument declaration work on all systems.
2905 * lisp.h (lisp_time_argument): Move declaration ...
2906 * systime.h (lisp_time_argument): ... here
2907 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
2908
8848b728
JD
29092010-07-29 Jan Djärv <jan.h.d@swipnet.se>
2910
2911 * vm-limit.c (POINTER): Add typedef for it.
2912 (start_of_data): Change return type from POINTER to char *.
2913
2914 * frame.h (Qtty_color_mode): Move declaration out of ifdef
2915 HAVE_WINDOW_SYSTEM.
2916
76fd1ee9
DN
29172010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
2918
0441987e
DN
2919 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
2920 Remove reference to __osf__, unused.
2921
56a000c7
DN
2922 * mem-limits.h: Remove duplicated includes.
2923 (NULL): Remove definition, unused.
2924 (POINTER): Remove definition.
2925 (start_of_data): Use char* in prototype, as the function
2926 definition does.
2927
e6cba650
DN
2928 Remove extern declarations from .c files, and them to .h files.
2929 * keyboard.h (Qhelp_echo, waiting_for_input)
2930 (input_available_clear_time, ignore_mouse_drag_p)
2931 (Vdouble_click_time, real_this_command, Vthis_original_command):
2932 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
2933 (Voverriding_local_map_menu_flag):
2934 * lisp.h (Qinteractive_form, use_file_dialog)
2935 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
2936 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
2937 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
2938 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
2939 (Qfunction, debug_on_next_call, Qfield)
2940 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
2941 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
2942 (Qfile_directory_p, Qinsert_file_contents)
2943 (Qcompletion_ignore_case, Qcompletion_ignore_case)
2944 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
2945 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
2946 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
2947 (Qminibuffer_prompt)
2948 (Vtemporary_file_directory,char_ins_del_vector, Qface):
2949 * xterm.h (gray_bitmap_width, gray_bitmap_height)
2950 (gray_bitmap_bits, xic_create_fontsetname):
2951 * coding.h (Vtranslation_table_for_input): Add extern declarations.
2952
2953 * xsmfns.c (Vuser_login_name):
2954 * xrdb.c (Vdouble_click_time):
2955 * xfaces.c (xic_create_fontsetname):
2956 * w32select.c (waiting_for_input):
2957 * print.c (minibuffer_auto_raise):
2958 * msdos.c (Qhelp_echo):
2959 * macros.c (real_this_command):
2960 * keymap.c (Voverriding_local_map):
2961 * xterm.c (poll_for_input_1, gray_bitmap_width)
2962 (gray_bitmap_height, gray_bitmap_bits;
2963 * xmenu.c ( Voverriding_local_map)
2964 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
2965 (use_file_dialog, Xt_app_con):
2966 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
2967 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
2968 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
2969 (Qtool_bar_lines, ignore_mouse_drag_p):
2970 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
2971 (Qrear_nonsticky, nconc2):
2972 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
2973 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
2974 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
2975 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
2976 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
2977 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
2978 (gc_in_progress):
2979 * doc.c (Voverriding_local_map, Qremap):
2980 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
2981 (Vcompletion_regexp_list):
2982 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
2983 (Qcompletion_ignore_case):
2984 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
2985 (Vhistory_length, Vthis_original_command, real_this_command)
2986 (Qface, Qminibuffer_prompt, history_delete_duplicates):
2987 * image.c (Qrisky_local_variable):
2988 * fontset.c (QCname):
2989 * fns.c (minibuffer_auto_raise, QCname):
2990 * dispnew.c (char_ins_del_cost):
2991 * composite.c (font_fill_lglyph_metrics):
2992 * cmds.c (Qface, Vtranslation_table_for_input):
2993 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
2994 * ccl.c (charset_unicode):
2995 * callproc.c (Vtemporary_file_directory):
2996 * buffer.c (emacs_strerror): Remove extern declarations.
2997
2998 * data.c (Qwindow): Make non-static, used from other files too.
2999 * frame.c (validate_x_resource_name): Remove shadow definition for i.
3000
76fd1ee9
DN
3001 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
3002 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
3003 * s/usg5-4.h (COFF):
3004 * s/template.h:
3005 * s/msdos.h (COFF, NO_REMAP):
3006 * s/ms-w32.h (NO_REMAP):
3007 * s/hpux10-20.h (NO_REMAP):
3008 * m/sparc.h (SEGMENT_MASK):
3009 * m/m68k.h (NO_REMAP):
3010 * m/intel386.h (SEGMENT_MASK):
3011 * m/arm.h (NO_REMAP):
3012 * m/alpha.h (COFF):
3013 * m/template.h: Remove references to unused defines.
3014
8a52f00a
JD
30152010-07-28 Jan Djärv <jan.h.d@swipnet.se>
3016
3017 * xsettings.c (Ftool_bar_get_system_style): Also check for
3018 Qtext_image_horiz.
3019
3020 * xdisp.c (Qtext_image_horiz): Define.
3021 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 3022 to documentation of tool-bar-style.
8a52f00a
JD
3023
3024 * lisp.h (Qtext_image_horiz): Declare.
3025
3026 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
3027 style text_image_horiz.
3028
89dc303e
DN
30292010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
3030
60799703
DN
3031 * emacs.c (Fkill_emacs): Remove return statement.
3032
37254dc1
DN
3033 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
3034 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
3035 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
3036 local extern declarations.
3037
71c7345a
DN
3038 * xmenu.c: Do not included lwlib.h, not needed.
3039
6ba577cb
DN
3040 * m/iris4d.h (XUINT, XSET): Remove, not needed.
3041
fdb183d6
DN
3042 * process.c: Move definitions earlier to minimize #ifdefs.
3043
3044 * xterm.h (x_get_customization_string, x_load_resources)
3045 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
3046 (x_check_errors, x_property_data_to_lisp, defined_color)
3047 (xic_set_xfontset, x_defined_color): Use const.
3048
3049 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
3050 (x_text_icon, x_check_errors, x_connection_closed): Use const.
3051
3052 * xselect.c (selection_data_to_lisp_data)
3053 (x_property_data_to_lisp):
3054 * xrdb.c (x_get_string_resource, file_p)
3055 (x_get_customization_string, magic_file_p, search_magic_path)
3056 (get_system_app, get_user_app, x_load_resources, x_get_resource)
3057 (x_get_string_resource): Use const.
3058
3059 * xfns.c: Include xlwmenu.h when USE_LUCID.
3060 (x_defined_color, xic_set_xfontset): Use const.
3061 (Fx_hide_tip): Remove local extern declaration.
3062
3063 * xfaces.c (Qmouse_face): Remove declaration.
3064 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 3065 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
3066
3067 * xdisp.c (do_mouse_tracking): Remove declaration.
3068 (add_to_log): Use const.
3069
3070 * minibuf.c (Qmouse_face): Remove declaration.
3071
3072 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
3073
3074 * keyboard.h (do_mouse_tracking): Add declaration.
3075
3076 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
3077 (QCdata, QCtype, Qcenter): Remove declarations.
3078
3079 * frame.c (x_get_resource_string, x_get_string_resource)
3080 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
3081 (x_default_parameter): Use const.
3082
3083 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
3084 (QCheight, QCsize, QCname): Remove declarations.
3085
3086 * emacs.c (main): Remove local extern declaration.
3087
3088 * editfns.c (region_limit, syms_of_editfns): Remove local extern
3089 declarations.
3090
3091 * dispnew.c: Remove duplicate #include <unistd.h>.
3092 (update_window, update_frame_1, init_display): Remove local extern
3093 declarations.
3094
3095 * dispextern.h (add_to_log): Remove declaration.
3096 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
3097 (x_frame_get_and_record_arg, x_default_parameter): Add const.
3098
3099 * dired.c (scmp): Add const.
3100 (directory_files_internal): Remove local extern declaration.
3101
3102 * data.c (Finteractive_form): Use const.
3103
3104 * composite.c (syms_of_composite): Remove local extern declarations.
3105
3106 * charset.c (add_to_log): Remove declaration.
3107
3108 * character.c (strwidth, parse_str_to_multibyte): Add const.
3109
3110 * character.h (strwidth, parse_str_to_multibyte): Likewise.
3111
3112 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
3113
89dc303e 3114 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
3115 (Lisp_Subr): Make doc and intspec constant.
3116 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
3117 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
3118 (QCheight, QCsize, QCname, QCwidth, QCforeground)
3119 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
3120 (display_arg): Add declarations.
89dc303e 3121
0ed082fe 31222010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
3123
3124 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
3125
0ed082fe
JB
3126 * window.c (Fwindow_height): Doc fix (bug#6518).
3127
31282010-07-27 Juanma Barranquero <lekktu@gmail.com>
3129
3130 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
3131
ccaf0336
DN
31322010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
3133
977105dc
DN
3134 * keyboard.c (Ftop_level, Fexit_recursive_edit)
3135 (Fabort_recursive_edit): Remove return statements in NO_RETURN
3136 functions.
3137
f5ada890
DN
3138 * frame.h (Qtty_color_mode): Add declaration.
3139
ccaf0336
DN
3140 * lisp.h (Ftop_level, Fexit_recursive_edit)
3141 (Fabort_recursive_edit): Mark as NO_RETURN.
3142
dfe3c90f
KH
31432010-07-26 Kenichi Handa <handa@m17n.org>
3144
3145 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 3146 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 3147
7d383292
JB
31482010-07-26 Juanma Barranquero <lekktu@gmail.com>
3149
3150 * lread.c (unreadpure, mapatoms_1): Make static.
3151
da31e629
JB
31522010-07-25 Juanma Barranquero <lekktu@gmail.com>
3153
3154 * terminfo.c (tparam): Fix prototype of tparm.
3155
7bfa6d77
AS
31562010-07-25 Andreas Schwab <schwab@linux-m68k.org>
3157
dcc19aac
AS
3158 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
3159 find start of text segment.
3160 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
3161 is defined.
3162
7bfa6d77
AS
3163 * callproc.c (set_initial_environment): Avoid unbalanced braces.
3164
63f9a672
KB
31652010-07-25 Ken Brown <kbrown@cornell.edu>
3166
3167 * vm-limit.c (check_memory_limits): Fix previous change;
3168 accidentally reverted an earlier change.
3169
24933075
KB
31702010-07-25 Ken Brown <kbrown@cornell.edu>
3171
3172 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
3173 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
3174
361358ea
JB
31752010-07-25 Juanma Barranquero <lekktu@gmail.com>
3176
3177 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
3178 * dired.c (opendir, readdir): Fix prototypes.
3179 * editfns.c (w32_get_internal_run_time): Fix prototypes.
3180 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
3181 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
3182 (telldir): Remove declaration.
3183 * ralloc.c (real_morecore, __morecore): Fix prototypes.
3184 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
3185 * syssignal.h (strsignal): Fix prototype.
3186 * term.c (tparam): Fix prototype.
3187 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
3188 (term_get_fkeys): Set inside "#ifndef DOS_NT".
3189 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
3190 and __morecore.
3191 * w32gui.h (XParseGeometry): Fix prototype.
3192 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
3193 * w32term.c (my_set_focus): Declare inside #if 0.
3194 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
3195 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
3196 (drain_message_queue, get_next_msg, post_msg, parse_button)
3197 (ClipboardSequence_Proc): Fix prototypes.
3198 (wait_for_sync): Remove declaration.
3199
630b9592
JB
32002010-07-24 Juanma Barranquero <lekktu@gmail.com>
3201
3202 * w32fns.c (w32_to_x_color): Remove, unused.
3203
6a0d6611
AS
32042010-07-24 Andreas Schwab <schwab@linux-m68k.org>
3205
3206 * lisp.h: Remove leftover P_.
3207
4e8608ff
DN
32082010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
3209
3210 * ecrt0.c, unexalpha.c: Remove files, unused.
3211
c8197983
AS
32122010-07-24 Andreas Schwab <schwab@linux-m68k.org>
3213
3214 * cmds.c (internal_self_insert): Make static.
3215 * lisp.h (internal_self_insert): Remove declaration.
3216
97b372d7
JB
32172010-07-23 Juanma Barranquero <lekktu@gmail.com>
3218
33ac0414
JB
3219 * alloc.c (free_float):
3220 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
3221 * frame.c (delete_frame_handler):
3222 * ralloc.c (reorder_bloc):
3223 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
3224 Remove unused static functions.
3225
94da8397
JB
3226 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
3227 it is called only from NS code.
3228
2e6c8532
JB
3229 * w32term.c (my_set_focus): #ifdef away; it is called only from
3230 "#ifdef 0" code.
3231
97b372d7
JB
3232 * w32fns.c (x_edge_detection):
3233 * xfaces.c (may_use_scalable_font_p):
3234 Remove obsolete static declarations.
3235
7c3320d8
JB
32362010-07-20 Juanma Barranquero <lekktu@gmail.com>
3237
3238 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
3239 (emacs_blocked_realloc, uninterrupt_malloc):
3240 * fringe.c (w32_reset_fringes):
3241 * image.c (convert_mono_to_color_image, lookup_rgb_color)
3242 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
3243 * sound.c (be2hs, do_play_sound):
3244 * vm-limit.c (get_lim_data, ret_lim_data):
3245 * w32term.c (x_free_frame_resources):
3246 * xfaces.c (x_create_gc, x_free_gc):
3247 Convert definitions to standard C.
3248
d5273788
SM
32492010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
3250
3251 * eval.c (Feval, Ffuncall): Use the new names.
3252
3253 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
3254 (DEFUN): Add braces around the union initialisation and use ## to
3255 specify the right union alternative and avoid a cast.
3256
8d16a259
JB
32572010-07-18 Juanma Barranquero <lekktu@gmail.com>
3258
3259 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
3260
3b8eff32
CY
32612010-07-17 Chong Yidong <cyd@stupidchicken.com>
3262
3263 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
3264
499322ce
J
32652010-07-17 Jan Djärv <jan.h.d@swipnet.se>
3266
3267 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
3268 is related to the menu bar (Bug#6499).
a628ad9d 3269 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 3270
f6003da5 32712010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
3272
3273 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
3274
3275 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
3276
3277 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
3278 i.e. don't put back ButtonRelease (Bug#6608).
3279
3280 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
3281 instead of Window. Call xg_event_is_for_menubar when
3282 USE_GTK (Bug#6499).
3283
3284 * gtkutil.h (xg_event_is_for_menubar): Declare.
3285
3286 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
3287
f6003da5 32882010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
3289
3290 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
3291 when it's the same as the old foreground. (Bug#6609)
3292
23243f29
J
32932010-07-16 Jan Djärv <jan.h.d@swipnet.se>
3294
3295 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
3296 widget is non-null (Bug#6645).
3297
2b23d2a6
AS
32982010-07-15 Andreas Schwab <schwab@linux-m68k.org>
3299
01b564ff
AS
3300 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
3301 Convert old-style definition.
3302
2b23d2a6
AS
3303 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
3304 timestamp argument.
3305
c4affd2c
EZ
33062010-07-15 Eli Zaretskii <eliz@gnu.org>
3307
3308 * fringe.c (update_window_fringes): Restore mistakenly reverted
3309 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
3310
cf28cebc
J
33112010-07-14 Jan Djärv <jan.h.d@swipnet.se>
3312
3313 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
3314 (SET_SAVED_KEY_EVENT): Remove (not used).
3315 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
3316 remove size parameter.
3317 (handle_one_xevent): Check popup_activated () for menu for Xt also.
3318 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
3319 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
3320 ButtonRelease.
6b2c4bd9
J
3321 (x_set_window_size_1): scroll_bar_actual_width is always
3322 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
3323
3324 * xdisp.c (pending_menu_activation): Remove extern declaration.
3325 (prepare_menu_bars): Remove setting of pending_menu_activation.
3326
3327 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
3328 (x_activate_menubar): Set popup_activated_flag for Xt also.
3329 Remove setting of pending_menu_activation.
cf28cebc
J
3330 (set_frame_menubar): Remove check of pending_menu_activation.
3331 Declare menubar_size before code. Correct spelling in comment.
3332
f6c1c771
KH
33332010-07-14 Kenichi Handa <handa@m17n.org>
3334
3335 * font.c (font_open_entity): Cancel previous change.
3336 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
3337
20477505
EZ
33382010-07-13 Eli Zaretskii <eliz@gnu.org>
3339
77defa9a
EZ
3340 Remove subprocesses #ifdefs.
3341 * process.c <inhibit_sentinels>: Move to the common part.
3342 (Fwaiting_for_user_input_p): Move to the common part; return nil
3343 if async subprocesses aren't supported.
3344 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
3345 MS-DOS. Remove "#ifdef subprocesses".
3346 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
3347 (gettimeofday): Remove "#ifdef subprocesses".
3348 (wait_without_blocking): Remove function.
3349 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
3350 Remove "#ifdef subprocesses".
3351 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
3352 compiled on MS-DOS.
3353 * callproc.c (Fcall_process) [!MSDOS]: Don't call
3354 wait_for_termination on MS-DOS.
3355 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
3356 initialization of inhibit_sentinels.
3357 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
3358 subprocesses" conditional.
3359 * callproc.c (Fcall_process) [!subprocesses]: Don't call
3360 wait_for_termination, since `buffer' cannot be an integer when
3361 async subprocesses are not supported
3362 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
3363 for ifdefing away the call to Fprocess_status.
3364
20477505
EZ
3365 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
3366 away the entire body of the function.
3367
b3ffc17c
DN
33682010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
3369
01faa934
DN
3370 Remove subprocesses #ifdefs from term.c.
3371 * process.c (add_keyboard_wait_descriptor)
3372 (delete_keyboard_wait_descriptor): Move to common section, do
3373 nothing when subprocesses is not defined.
a628ad9d
JB
3374 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
3375 Remove subprocesses #ifdefs.
01faa934 3376
b3ffc17c
DN
3377 Convert maybe_fatal to standard C.
3378 * lisp.h (verror): Declare.
3379 * eval.c (verror): New function containing the code from ...
3380 (error): ... this. Call verror.
3381 * term.c (vfatal): New function containing the code from ...
3382 (fatal): ... this. Call vfatal.
3383 (maybe_fatal): Convert to standard C, use variable number of
3384 arguments. Declare as non-return.
3385 (init_tty): Fix maybe_fatal call.
3386
0521f580
DN
33872010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
3388
3389 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
3390 (_scroll_bar_note_movement): Convert definitions to standard C.
3391 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
3392 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
3393
ebd15611
DN
33942010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
3395
3396 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
3397 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
3398 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
3399 (xaw_jump_callback, xaw_scroll_callback)
3400 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
3401 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
3402 definitions to standard C.
3403 * xmenu.c (menubar_id_to_frame, popup_get_selection)
3404 (popup_activate_callback, popup_deactivate_callback)
3405 (menu_highlight_callback, menubar_selection_callback)
3406 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
3407 (free_frame_menubar, popup_selection_callback, as)
3408 (create_and_show_popup_menu, dialog_selection_callback)
3409 (create_and_show_dialog):
3410 * xfns.c (hack_wm_protocols, x_window):
3411 * xfaces.c (x_update_menu_appearance):
3412 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
3413 (char_to_pixel_size, round_size_to_char, get_wm_shell)
3414 (set_frame_size, update_wm_hints, setup_frame_gcs)
3415 (update_various_frame_slots, update_from_various_frame_slots)
3416 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
3417 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
3418 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
3419
de06a2dd
AS
34202010-07-12 Andreas Schwab <schwab@linux-m68k.org>
3421
a628ad9d 3422 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 3423
fc549af9
EZ
34242010-07-12 Eli Zaretskii <eliz@gnu.org>
3425
3426 * process.c (setup_process_coding_systems): Move to the part
3427 shared by non-subprocesses systems, and make its body empty when
3428 subprocesses is not defined.
3429 (close_process_descs): Move to the part shared by non-subprocesses
3430 systems.
1408902e
EZ
3431 (wait_reading_process_output) [!subprocesses]: Convert arg list to
3432 ANSI C.
fc549af9 3433
d5a3eaaf
AS
34342010-07-12 Andreas Schwab <schwab@linux-m68k.org>
3435
3436 * editfns.c (transpose_markers): Convert old-style definition.
3437 * emacs.c (abort, shut_down_emacs, fixup_locale)
3438 (synchronize_system_time_locale)
3439 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
3440 * floatfns.c (extract_float, matherr, init_floatfns)
3441 (syms_of_floatfns): Likewise.
3442 * fns.c (make_hash_table): Likewise.
3443 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
3444 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
3445 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
3446 (ftfont_variation_glyphs): Likewise.
3447 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
3448 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
3449 * lread.c (read_filtered_event): Likewise.
3450 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
3451 * process.c (wait_reading_process_output): Likewise.
3452 * scroll.c (do_line_insertion_deletion_costs): Likewise.
3453 * search.c (search_buffer, boyer_moore): Likewise.
3454 * syntax.c (scan_sexps_forward): Likewise.
3455 * xdisp.c (try_scrolling): Likewise.
3456 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
3457 (face_at_string_position): Likewise.
3458 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
3459 * xselect.c (x_get_window_property, receive_incremental_selection)
3460 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
3461 Likewise.
3462 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
3463
6f704c76
DN
34642010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
3465
ded80a25
DN
3466 * callproc.c (child_setup): Remove subprocesses conditional.
3467 Remove code dealing with SET_EMACS_PRIORITY, unused.
3468
49d937f4 3469 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
3470 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
3471
3472 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
3473 (__do_global_dtors, __main): Use void in definition.
3474 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
3475 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
3476 the only users from ...
3477 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
3478 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
3479 (HAVE_VOLATILE): Remove, unused.
3480
6f704c76
DN
3481 Convert more function definitions to standard C.
3482 * xdisp.c (window_box_edges, handle_single_display_spec)
3483 (display_string): Convert definition to standard C.
3484 * scroll.c (do_direct_scrolling, scrolling_1):
3485 * dispnew.c (allocate_matrices_for_frame_redisplay)
3486 (mirrored_line_dance):
3487 * coding.c (code_convert_string):
3488 * charset.c (map_charset_chars):
3489 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
3490 (Fregister_ccl_program, Fregister_code_conversion_map):
3491 * keyboard.c (kbd_buffer_nr_stored): Likewise.
3492 (head_table): Make static and const.
3493
e6cfa7c3
AS
34942010-07-12 Andreas Schwab <schwab@linux-m68k.org>
3495
3496 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
3497 (PROFILING_LDFLAGS): Set from substitution.
3498 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
3499 CFLAGS last.
3500
892dd565
KH
35012010-07-12 Kenichi Handa <handa@m17n.org>
3502
6f2cdcd1
KH
3503 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
3504 (shortlisp): Likewise.
3505
892dd565
KH
3506 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
3507
3508 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
3509 of FONT_ENTITY_INDEX.
3510 (Ffont_get): If KEY is :otf and the font-object doesn't have the
3511 property, get the property value dynamically.
3512 (Ffont_put): Accept font-entity and font-object too.
3513 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
3514 return value changed.
3515 (syms_of_font): Adjusted for the above change.
3516
ae96d47a
AS
35172010-07-11 Andreas Schwab <schwab@linux-m68k.org>
3518
c8fc18ee
AS
3519 * blockinput.h: Remove obsolete comment.
3520
89887d67
AS
3521 * lisp.h: Include <stddef.h>.
3522 (OFFSETOF): Don't define.
3523 (VECSIZE): Use offsetof instead of OFFSETOF.
3524 (PSEUDOVECSIZE): Likewise.
3525 * process.c (conv_sockaddr_to_lisp): Likewise.
3526 * alloc.c: Don't include <stddef.h>.
3527 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
3528
ae96d47a
AS
3529 * process.c: Remove obsolete comment.
3530
635c0aa1
CY
35312010-07-11 Chong Yidong <cyd@stupidchicken.com>
3532
3533 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
3534
a64df650
AS
35352010-07-11 Andreas Schwab <schwab@linux-m68k.org>
3536
8966b757
AS
3537 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
3538 index, rindex.
3539 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
3540 * editfns.c (Fuser_full_name, Fformat): Likewise.
3541 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
3542 * fileio.c (Ffile_symlink_p): Likewise.
3543 * filelock.c (current_lock_owner): Likewise.
3544 * font.c (font_parse_name, font_parse_family_registry): Likewise.
3545 * fontset.c (fontset_pattern_regexp): Likewise.
3546 * lread.c (read1): Likewise.
3547 * sysdep.c (init_system_name): Likewise.
3548 * xfns.c (select_visual): Likewise.
3549 * s/hpux10-20.h (index, rindex): Don't define.
3550 * s/ms-w32.h (index): Likewise.
3551 * s/usg5-4.h: Likewise.
3552
cf237e27
AS
3553 * callproc.c (relocate_fd): Use F_DUPFD if defined.
3554
a8fe7202
AS
3555 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
3556 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
3557 (egetenv): Likewise.
3558 * doprnt.c (doprnt): Likewise.
3559 * editfns.c (set_time_zone_rule, format2): Likewise.
3560 * emacs.c (decode_env_path): Likewise.
3561 * eval.c (signal_error, error): Likewise.
3562 * insdel.c (replace_range_2): Likewise.
3563 * keyboard.c (cmd_error_internal): Likewise.
3564 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
3565 * print.c (write_string, write_string_1, print_error_message):
3566 Likewise.
3567 * vm-limit.c (warn_function, memory_warnings): Likewise.
3568 * xdisp.c (message1, message1_nolog, message_with_string)
3569 (vmessage, message, message_nolog): Likewise.
3570 * emacs.c: Remove duplicate declaration.
3571 * keyboard.h: Likewise.
3572 * lisp.h: Update prototypes.
3573
bb8e180f
AS
3574 * eval.c: Fix indentation problem.
3575
83380e65
AS
3576 * keyboard.c: Include "process.h"
3577
a64df650
AS
3578 * eval.c: Remove obsolete noinline declaration.
3579 * fns.c: Likewise.
3580
6a8033e1
KR
35812010-07-11 Ken Raeburn <raeburn@raeburn.org>
3582
3583 * doprnt.c (doprnt): Take a va_list argument instead of count and
3584 pointer.
3585 * eval.c (error): Change to a standard-C variadic function.
3586 * xdisp.c (vmessage): Renamed from message, made static, and
3587 changed to take a va_list argument.
3588 (message): New variadic wrapper.
3589 (message_nolog): Now a variadic function, calling vmessage.
3590 * lisp.h: Include stdarg.h for va_list.
3591 (doprnt, error, message, message_nolog): Decls updated.
3592
462aa963
EZ
35932010-07-11 Eli Zaretskii <eliz@gnu.org>
3594
3595 * process.c (syms_of_process) <delete-exited-processes>: Define
3596 even if !subprocesses.
3597 (delete_exited_processes): Ditto.
3598
3599 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
3600 (delete_exited_processes): Don't define.
3601
48104462
CY
36022010-07-10 Chong Yidong <cyd@stupidchicken.com>
3603
3604 * frame.c (make_frame): Initialize menu_bar_lines and
3605 tool_bar_lines members.
3606 (make_initial_frame, make_terminal_frame): Initialize
3607 menu_bar_lines using value of menu-bar-mode.
3608
3609 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
3610
f388c88a
EZ
36112010-07-10 Eli Zaretskii <eliz@gnu.org>
3612
3613 * process.c: Reshuffle #include's. Condition some of the global
3614 and static variables on `subprocesses'.
3615 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
3616 Leave only one implementation.
3617 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
3618 (kill_buffer_processes, Flist_system_processes)
3619 (Fprocess_attributes, init_process, syms_of_process): Unify the
3620 implementations for with subprocesses and without them.
3621
723f5a07
J
36222010-07-09 Jan Djärv <jan.h.d@swipnet.se>
3623
3624 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
3625 correct size for Motif.
3626 (free_frame_menubar): Call x_set_window_size to update frame size.
3627
3628 * xfns.c (x_window): Set borderWidth to 0 for pane and
3629 EmacsFrame. Frame size calculation is wrong otherwise.
3630
2536a4b7
MA
36312010-07-09 Michael Albinus <michael.albinus@gmx.de>
3632
3633 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
3634 allows to suppress errors when polling in Emacs' main loop.
3635 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
3636 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
3637 (Fdbus_method_error_internal, Fdbus_send_signal)
3638 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
3639 (Fdbus_register_method): Use it. (Bug#6579)
3640
5842a27b
DN
36412010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
3642
3643 * alloc.c: Convert DEFUNs to standard C.
3644 * buffer.c:
3645 * bytecode.c:
3646 * callint.c:
3647 * callproc.c:
3648 * casefiddle.c:
3649 * casetab.c:
3650 * category.c:
3651 * character.c:
3652 * charset.c:
3653 * chartab.c:
3654 * cmds.c:
3655 * coding.c:
3656 * composite.c:
3657 * data.c:
3658 * dbusbind.c:
3659 * dired.c:
3660 * dispnew.c:
3661 * doc.c:
3662 * dosfns.c:
3663 * editfns.c:
3664 * emacs.c:
3665 * eval.c:
3666 * fileio.c:
3667 * filelock.c:
3668 * floatfns.c:
3669 * fns.c:
3670 * font.c:
3671 * fontset.c:
3672 * frame.c:
3673 * fringe.c:
3674 * image.c:
3675 * indent.c:
3676 * insdel.c:
3677 * keyboard.c:
3678 * keymap.c:
3679 * lread.c:
3680 * macros.c:
3681 * marker.c:
3682 * menu.c:
3683 * minibuf.c:
3684 * msdos.c:
3685 * nsfns.m:
3686 * nsmenu.m:
3687 * nsselect.m:
3688 * print.c:
3689 * process.c:
3690 * search.c:
3691 * sound.c:
3692 * syntax.c:
3693 * term.c:
3694 * terminal.c:
3695 * textprop.c:
3696 * undo.c:
3697 * w16select.c:
3698 * w32console.c:
3699 * w32fns.c:
3700 * w32font.c:
3701 * w32menu.c:
3702 * w32proc.c:
3703 * w32select.c:
3704 * window.c:
3705 * xdisp.c:
3706 * xfaces.c:
3707 * xfns.c:
3708 * xmenu.c:
3709 * xselect.c:
3710 * xsettings.c:
3711 * xsmfns.c: Likewise.
3712
d568829b
EZ
37132010-07-08 Eli Zaretskii <eliz@gnu.org>
3714
3715 * process.c (kbd_is_on_hold, hold_keyboard_input)
3716 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
3717
52214050
J
37182010-07-08 Jan Djärv <jan.h.d@swipnet.se>
3719
3720 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
3721 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
3722 unless USE_LUCID.
3723
313d9eb2
DN
37242010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
3725
a628ad9d
JB
3726 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
3727 declaration.
d8825aa3 3728
295d0d8f
DN
3729 Clean up include guards.
3730 * tparam.c: Remove include guards for config.h, string.h and code
3731 that assumes #ifndef emacs.
3732 * termcap.c:
3733 * unexalpha.c:
3734 * sysdep.c:
3735 * filemode.c:
3736 * filelock.c:
3737 * bidi.c: Likewise.
3738
49d9e6b0
DN
3739 Remove prefix-args.c
3740 * prefix-args.c: Remove file.
3741 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
3742 * Makefile.in (temacs${EXEEXT}): Remove references to
3743 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
3744 (mostlyclean): Remove reference to prefix-args.
3745 (prefix-args): Remove.
3746
313d9eb2
DN
3747 Simplify cstart_of_data, start_of_code and related code.
3748 * mem-limits.h: Remove !emacs and _LIBC conditional code.
3749 (start_of_data): Merge into start_of_data function.
3750 * sysdep.c (start_of_text): Remove. Move simplified versions of
3751 it in the only users: unexaix.c and unexec.c.
3752 (read_input_waiting): Remove local declaration of quit_char.
3753 (start, etext): Remove declarations.
3754 (start_of_data): Merge with the version in mem-limits.h and move
3755 to vm-limits.c.
3756 * vm-limit.c (start_of_data): Merged and simplified version of the
3757 code formerly in mem-limits.h and sysdep.c.
3758 * unexec.c (start): New declaration, moved from sysdep.c.
3759 (start_of_text): Simplified version of the code formerly in sysdep.c.
3760 * unexaix.c (start_of_text): Simplified version of the code
3761 formerly in sysdep.c.
3762 * m/alpha.h (HAVE_TEXT_START): Remove.
3763 (TEXT_START): Move ...
3764 * unexalpha.c (TEXT_START): ... here.
3765 * s/hpux10-20.h (TEXT_START): Remove.
3766 * s/darwin.h (TEXT_START):
3767 * m/mips.h (TEXT_START):
3768 * m/macppc.h (HAVE_TEXT_START):
3769 * m/m68k.h (TEXT_START):
3770 * m/iris4d.h (TEXT_START):
3771 * m/intel386.h (TEXT_START):
3772 * m/ibmrs6000.h (TEXT_START):
3773 * m/ia64.h (HAVE_TEXT_START):
3774 * s/msdos.h (TEXT_START): Likewise.
3775
72af86bd
AS
37762010-07-07 Andreas Schwab <schwab@linux-m68k.org>
3777
3778 * alloc.c (overrun_check_malloc, overrun_check_realloc)
3779 (overrun_check_free, xstrdup, allocate_string)
3780 (allocate_string_data, compact_small_strings, Fmake_string)
3781 (make_unibyte_string, make_multibyte_string)
3782 (make_string_from_bytes, make_specified_string, make_float)
3783 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
3784 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
3785 memcpy, memmove, memset, memcmp.
3786 * atimer.c (start_atimer, set_alarm): Likewise.
3787 * buffer.c (clone_per_buffer_values, report_overlay_modification)
3788 (mmap_realloc, init_buffer_once): Likewise.
3789 * callint.c (Fcall_interactively): Likewise.
3790 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
3791 (getenv_internal_1): Likewise.
3792 * casefiddle.c (casify_object): Likewise.
3793 * ccl.c (ccl_driver): Likewise.
3794 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
3795 * charset.c (load_charset_map_from_file)
3796 (load_charset_map_from_file, load_charset_map_from_vector)
3797 (Fdefine_charset_internal): Likewise.
3798 * cm.c (Wcm_clear): Likewise.
3799 * coding.c (decode_eol, decode_coding_object)
3800 (Fset_coding_system_priority, make_subsidiaries): Likewise.
3801 * data.c (Faset): Likewise.
3802 * dired.c (directory_files_internal, file_name_completion_stat):
3803 Likewise.
3804 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
3805 (clear_glyph_row, copy_row_except_pointers)
3806 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
3807 (save_current_matrix, restore_current_matrix)
3808 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
3809 (mirror_line_dance, scrolling_window): Likewise.
3810 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
3811 Likewise.
3812 * doprnt.c (doprnt): Likewise.
3813 * editfns.c (Fuser_full_name, make_buffer_string_both)
3814 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
3815 * emacs.c (sort_args): Likewise.
3816 * eval.c (Fapply, Ffuncall): Likewise.
3817 * fileio.c (Ffile_name_directory, make_temp_name)
3818 (Fexpand_file_name, search_embedded_absfilename)
3819 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
3820 (auto_save_error): Likewise.
3821 * fns.c (Fstring_equal, Fcopy_sequence, concat)
3822 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
3823 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
3824 (Fmake_hash_table): Likewise.
3825 * fringe.c (Fdefine_fringe_bitmap): Likewise.
3826 * ftfont.c (ftfont_text_extents): Likewise.
3827 * getloadavg.c (getloadavg): Likewise.
3828 * image.c (define_image_type, make_image, make_image_cache)
3829 (x_create_x_image_and_pixmap, xbm_image_p)
3830 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
3831 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
3832 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
3833 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
3834 (tiff_image_p, tiff_read_from_memory, gif_image_p)
3835 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
3836 Likewise.
3837 * indent.c (scan_for_column, compute_motion): Likewise.
3838 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
3839 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
3840 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
3841 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
3842 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
3843 (store_user_signal_events, menu_bar_items, tool_bar_items)
3844 (process_tool_bar_item, append_tool_bar_item)
3845 (read_char_minibuf_menu_prompt, read_key_sequence)
3846 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
3847 Likewise.
3848 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
3849 Likewise.
3850 * lisp.h (STRING_COPYIN): Likewise.
3851 * lread.c (Fload, read1, oblookup): Likewise.
3852 * msdos.c (Frecent_doskeys): Likewise.
3853 * nsfns.m (Fx_create_frame): Likewise.
3854 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
3855 Likewise.
3856 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
3857 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
3858 Likewise.
3859 * nsmenu.m (ns_update_menubar): Likewise.
3860 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
3861 * print.c (print_unwind, printchar, strout, print_string)
3862 (print_error_message): Likewise.
3863 * process.c (conv_lisp_to_sockaddr, set_socket_option)
3864 (Fmake_network_process, Fnetwork_interface_list)
3865 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
3866 (init_process): Likewise.
3867 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
3868 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
3869 Likewise.
3870 * scroll.c (do_scrolling, do_direct_scrolling)
3871 (scrolling_max_lines_saved): Likewise.
3872 * search.c (search_buffer, wordify, Freplace_match): Likewise.
3873 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
3874 * syntax.c (skip_chars, skip_syntaxes): Likewise.
3875 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
3876 (emacs_set_tty): Likewise.
3877 * term.c (encode_terminal_code, calculate_costs)
3878 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
3879 Likewise.
3880 * termcap.c (tgetst1, gobble_line): Likewise.
3881 * termhooks.h (EVENT_INIT): Likewise.
3882 * tparam.c (tparam1): Likewise.
3883 * unexalpha.c (unexec): Likewise.
3884 * unexec.c (write_segment): Likewise.
3885 * unexmacosx.c (unexec_write_zero): Likewise.
3886 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
3887 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
3888 * w32font.c (w32font_list_family, w32font_text_extents)
3889 (w32font_list_internal, w32font_match_internal)
3890 (w32font_open_internal, compute_metrics, Fx_select_font):
3891 Likewise.
3892 * w32menu.c (set_frame_menubar, add_menu_item)
3893 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
3894 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
3895 * w32uniscribe.c (uniscribe_list_family): Likewise.
3896 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
3897 * window.c (make_window, replace_window, set_window_buffer)
3898 (Fsplit_window): Likewise.
3899 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
3900 (add_to_log, message3, x_consider_frame_title)
3901 (append_space_for_newline, extend_face_to_end_of_line)
3902 (decode_mode_spec_coding, init_glyph_string): Likewise.
3903 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
3904 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
3905 (face_attr_equal_p, make_realized_face, make_face_cache)
3906 (free_realized_faces, lookup_named_face, smaller_face)
3907 (face_with_height, lookup_derived_face)
3908 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
3909 (Finternal_set_font_selection_order, realize_default_face)
3910 (compute_char_face, face_at_buffer_position)
3911 (face_for_overlay_string, face_at_string_position, merge_faces):
3912 Likewise.
3913 * xfns.c (xic_create_fontsetname, Fx_create_frame)
3914 (Fx_window_property, x_create_tip_frame)
3915 (Fx_backspace_delete_keys_p): Likewise.
3916 * xfont.c (xfont_list, xfont_match, xfont_list_family)
3917 (xfont_text_extents): Likewise.
3918 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
3919 * xrdb.c (magic_file_p, x_get_resource): Likewise.
3920 * xselect.c (x_queue_event, x_get_window_property)
3921 (receive_incremental_selection): Likewise.
3922 * xsmfns.c (x_session_check_input): Likewise.
3923 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
3924 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
3925 Likewise.
3926 * character.h (BCOPY_SHORT): Removed.
3927 * config.in: Regenerate.
3928 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
3929 * emacs.c (main) [PROFILING]: Don't declare
3930 dump_opcode_frequencies.
3931 * lisp.h (safe_bcopy): Remove declaration.
3932 (memset) [!HAVE_MEMSET]: Declare.
3933 (memcpy) [!HAVE_MEMCPY]: Likewise.
3934 (memmove) [!HAVE_MEMMOVE]: Likewise.
3935 (memcmp) [!HAVE_MEMCMP]: Likewise.
3936 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
3937 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
3938 Don't define.
3939 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
3940 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
3941 (BCOPY_DOWNWARD_SAFE): Don't define.
3942 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
3943 (memcpy) [!HAVE_MEMCPY]: Define.
3944 (memmove) [!HAVE_MEMMOVE]: Define.
3945 (memcmp) [!HAVE_MEMCMP]: Define.
3946
cb768704
J
39472010-07-07 Jan Djärv <jan.h.d@swipnet.se>
3948
3949 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
3950 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
3951 New functions.
cb768704
J
3952 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
3953 select on empty input mask.
3954 (init_process): Initialize kbd_is_on_hold to 0.
3955
3956 * process.h (hold_keyboard_input, unhold_keyboard_input)
3957 (kbd_on_hold_p): Declare.
3958
3959 * keyboard.c (input_available_signal): Declare.
3960 (kbd_buffer_nr_stored): New function.
3961 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
3962 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
3963 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
3964 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
3965 (tty_read_avail_input): If input is on hold, return.
3966 Don't read more that free slots in kbd_buffer (Bug#6571).
3967
3a8ce822
EZ
39682010-07-07 Eli Zaretskii <eliz@gnu.org>
3969
3970 * msdos.h:
3971 * msdos.c:
3972 * dosfns.c:
3973 * w16select.c: Convert function definitions to ANSI C.
3974
a628ad9d
JB
3975 * msdos.h (ctrl_break_func, install_ctrl_break_check):
3976 Remove unused prototypes.
3a8ce822 3977
cf84bb53
JB
39782010-07-07 Juanma Barranquero <lekktu@gmail.com>
3979
3980 * coding.c, sysdep.c: Convert some more functions to standard C.
3981
1a4990fb
JB
39822010-07-07 Juanma Barranquero <lekktu@gmail.com>
3983
3984 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
3985 (encode_coding_object): Use SPECPDL_INDEX.
3986 (syms_of_coding): Use DOS_NT.
3987
c0f2f16b
DN
39882010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
3989
48fb6855
DN
3990 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
3991
c0f2f16b
DN
3992 Make the function member of Lisp_Subr use standard C prototypes.
3993 * lisp.h (struct Lisp_Subr): Use a union for the function member.
3994 (DECL_ALIGN): Add a cast for the function.
3995 * eval.c (Feval, Ffuncall): Use the proper type for each type
3996 function call.
3997
67aecef9
CY
39982010-07-06 Chong Yidong <cyd@stupidchicken.com>
3999
4000 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
4001 fringe face id, so face-remapping-alist works (Bug#6091).
4002
b56ceb92
JB
40032010-07-06 Juanma Barranquero <lekktu@gmail.com>
4004
4005 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
4006 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
4007 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
4008
7af07b96
AS
40092010-07-06 Andreas Schwab <schwab@linux-m68k.org>
4010
4011 * xterm.c (x_get_keysym_name): Change type of parameter to int.
4012 * lisp.h: Declare x_get_keysym_name.
4013 * keyboard.c (modify_event_symbol): Don't declare
4014 x_get_keysym_name here.
4015
69e24e34
DN
40162010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
4017
4018 * ecrt0.c: Revert conversion to standard C.
4019
d3da34e0 40202010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
4021
4022 * vm-limit.c (memory_warnings):
4023 * keyboard.c (modify_event_symbol):
4024 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
4025 (round2, emacs_rint):
4026 * process.c (send_process, old_sigpipe): Convert function
4027 definitions and declarations to standard C.
4028
40292010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
4030
4031 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
4032 * xdisp.c: Convert function definitions to standard C.
4033
4034 * cm.c (cmputc): Arg C is now int, not char.
4035 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
4036
00be444c
J
40372010-07-05 James Cloos <cloos@jhcloos.com>
4038
4039 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
4040
4041 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
4042 _NET_WM_ICON_NAME atoms.
4043
4044 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
4045 and _NET_WM_ICON_NAME properties, too, matching what is
4046 done in the Gtk+ case.
4047
e4c8d29a
J
40482010-07-05 Jan Djärv <jan.h.d@swipnet.se>
4049
ff919460
J
4050 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
4051
e4c8d29a
J
4052 * xsmfns.c (SSDATA): New macro.
4053 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
4054 passed to strlen/strcpy/strcat.
4055 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
70e31436 4056 7:th arg to XChangeProperty to (unsigned char *).
e4c8d29a
J
4057
4058 * xsettings.c (something_changedCB, parse_settings)
4059 (apply_xft_settings): Reformat prototype.
4060 (something_changedCB, init_gconf): Remove unused variable i.
4061 (read_settings): Remove unused variable long_len.
4062
4063 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
4064 (xg_get_image_for_pixmap, create_dialog)
4065 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
4066 (menuitem_highlight_callback, make_menu_item)
4067 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
4068 (xg_create_scroll_bar, xg_update_scrollbar_pos)
4069 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
4070 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
4071 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
4072 (xg_tool_bar_item_expose_callback): Reformat prototype.
4073 (xg_update_menubar): GList *group => GSList *group.
4074 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
4075 before use.
4076 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
4077 to GTK_IMAGE (wimage).
4078
dd4c5104
DN
40792010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
4080
898b4c5c
DN
4081 * atimer.c: Use "" instead of <> for local includes for
4082 consistency with the rest of the code.
4083
dd4c5104
DN
4084 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
4085 * xrdb.c (get_system_name):
4086 * window.c (shrink_windows):
4087 * syntax.c (forw_comment):
4088 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
4089 (ins_del_costs):
4090 * mem-limits.h (start_of_data):
4091 * lread.c (readevalloop):
4092 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
4093 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
4094 * frame.c (x_get_focus_frame):
4095 * floatfns.c (fmod_float):
4096 * fileio.c (choose_write_coding_system):
4097 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
4098 (malloc_initialize_hook, sort_args, synchronize_locale):
4099 * doprnt.c (doprnt):
4100 * dired.c (compile_pattern):
4101 * data.c (fmod_float):
4102 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
4103 (map_char_table_for_charset):
4104 * charset.c (define_charset_internal):
4105 * alloc.c (Fgarbage_collect): Convert declarations or definitions
4106 to standard C.
4107
9a39b306 41082010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 4109 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
4110
4111 * lread.c (read1): Fix up last change to not mess up `c'.
4112
e6cb2cbb
JB
41132010-07-04 Juanma Barranquero <lekktu@gmail.com>
4114
4115 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
4116
438105ed
JB
41172010-07-04 Juanma Barranquero <lekktu@gmail.com>
4118
4119 Fix prototypes.
4120
e5447b22 4121 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 4122 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
4123 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
4124 arg, as required by internal_condition_case_1.
dcc7404b 4125 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
4126 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
4127 (analyse_first): Fix "const const".
e5447b22 4128 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 4129 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 4130 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 4131
971de7fb
DN
41322010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
4133
4134 * alloc.c: Convert function definitions to standard C.
4135 * atimer.c:
4136 * bidi.c:
4137 * bytecode.c:
4138 * callint.c:
4139 * callproc.c:
4140 * casefiddle.c:
4141 * casetab.c:
4142 * category.c:
4143 * ccl.c:
4144 * character.c:
4145 * charset.c:
4146 * chartab.c:
4147 * cmds.c:
4148 * coding.c:
4149 * composite.c:
4150 * data.c:
4151 * dbusbind.c:
4152 * dired.c:
4153 * dispnew.c:
4154 * doc.c:
4155 * doprnt.c:
4156 * ecrt0.c:
4157 * editfns.c:
4158 * fileio.c:
4159 * filelock.c:
4160 * filemode.c:
4161 * fns.c:
4162 * font.c:
4163 * fontset.c:
4164 * frame.c:
4165 * fringe.c:
4166 * ftfont.c:
4167 * ftxfont.c:
4168 * gtkutil.c:
4169 * indent.c:
4170 * insdel.c:
4171 * intervals.c:
4172 * keymap.c:
4173 * lread.c:
4174 * macros.c:
4175 * marker.c:
4176 * md5.c:
4177 * menu.c:
4178 * minibuf.c:
4179 * prefix-args.c:
4180 * print.c:
4181 * ralloc.c:
4182 * regex.c:
4183 * region-cache.c:
4184 * scroll.c:
4185 * search.c:
4186 * sound.c:
4187 * strftime.c:
4188 * syntax.c:
4189 * sysdep.c:
4190 * termcap.c:
4191 * terminal.c:
4192 * terminfo.c:
4193 * textprop.c:
4194 * tparam.c:
4195 * undo.c:
4196 * unexelf.c:
4197 * window.c:
4198 * xfaces.c:
4199 * xfns.c:
4200 * xfont.c:
4201 * xftfont.c:
4202 * xgselect.c:
4203 * xmenu.c:
4204 * xrdb.c:
4205 * xselect.c:
4206 * xsettings.c:
4207 * xsmfns.c:
4208 * xterm.c: Likewise.
4209
ae492bec
EZ
42102010-07-03 Eli Zaretskii <eliz@gnu.org>
4211
76ea4cc9
EZ
4212 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
4213 frames other than the initial one. Fix reversal of colors when
4214 `reverse' is specified in the frame parameters. Call
4215 update_face_from_frame_parameter instead of
4216 internal-set-lisp-face-attribute. Initialize screen colors from
4217 initial_screen_colors[] when f->default_face_done_p is zero,
4218 instead of depending on being called with default-frame-alist as
4219 the alist argument.
4220
4221 * xfaces.c (update_face_from_frame_parameter): Move out of
4222 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
4223 with HAVE_WINDOW_SYSTEM.
4224
1e6255ae
EZ
4225 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
4226 to menu-bar-mode, if not set in the frame parameters or in
4227 default-frame-alist.
4228
ae492bec
EZ
4229 * w32console.c (sys_tputs): Adjust argument list to prototype in
4230 term.c.
4231
3a35a84c
JB
42322010-07-03 Juanma Barranquero <lekktu@gmail.com>
4233
4234 * lisp.h (memory_warnings): Fix prototype.
4235
4236 * cm.h (evalcost): Fix prototype.
4237
4238 * cm.c (evalcost): Fix arg type.
4239
c532d349
DN
42402010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
4241
4242 * term.c (term_clear_mouse_face, Fidentity):
4243 * syssignal.h (signal_handler_t):
4244 * lisp.h (memory_warnings):
4245 * coding.h (preferred_coding_system):
4246 * cm.h (evalcost):
4247 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
4248
c0b36d46
EZ
42492010-07-02 Eli Zaretskii <eliz@gnu.org>
4250
4251 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
4252 from prototypes.
4253
4254 * msdos.h (load_pixmap): Don't define away.
4255
383e0970
J
42562010-07-02 Jan Djärv <jan.h.d@swipnet.se>
4257
f57e2426
J
4258 * lisp.h:
4259 * atimer.h: Remove define for P_.
4260
4261 * alloc.c: Remove __P and P_ from .c and .m files.
4262 * atimer.c:
4263 * buffer.c:
4264 * callint.c:
4265 * category.c:
4266 * charset.c:
4267 * chartab.c:
4268 * cm.c:
4269 * coding.c:
4270 * composite.c:
4271 * data.c:
4272 * dired.c:
4273 * dispnew.c:
4274 * doc.c:
4275 * editfns.c:
4276 * emacs.c:
4277 * eval.c:
4278 * fileio.c:
4279 * filelock.c:
4280 * fns.c:
4281 * font.c:
4282 * fontset.c:
4283 * frame.c:
4284 * ftfont.c:
4285 * ftxfont.c:
4286 * gmalloc.c:
4287 * gtkutil.c:
4288 * image.c:
4289 * indent.c:
4290 * intervals.c:
4291 * keyboard.c:
4292 * keymap.c:
4293 * lread.c:
4294 * marker.c:
4295 * menu.c:
4296 * minibuf.c:
4297 * print.c:
4298 * process.c:
4299 * scroll.c:
4300 * search.c:
4301 * sound.c:
4302 * strftime.c:
4303 * syntax.c:
4304 * sysdep.c:
4305 * term.c:
4306 * terminal.c:
4307 * textprop.c:
4308 * unexalpha.c:
4309 * w32console.c:
4310 * w32fns.c:
4311 * w32font.c:
4312 * w32menu.c:
4313 * w32term.c:
4314 * w32uniscribe.c:
4315 * window.c:
4316 * xdisp.c:
4317 * xfaces.c:
4318 * xfns.c:
4319 * xfont.c:
4320 * xftfont.c:
4321 * xmenu.c:
4322 * xselect.c:
4323 * xterm.c: Likewise.
4324
383e0970 4325 Remove P_ and __P macros.
f57e2426
J
4326 * atimer.h: Remove P_ and __P macros.
4327 * buffer.h:
383e0970
J
4328 * category.h:
4329 * ccl.h:
4330 * character.h:
4331 * charset.h:
4332 * cm.h:
4333 * coding.h:
4334 * composite.h:
4335 * dispextern.h:
4336 * disptab.h:
9e892c8d 4337 * dosfns.h:
383e0970
J
4338 * font.h:
4339 * fontset.h:
4340 * frame.h:
4341 * gtkutil.h:
4342 * indent.h:
4343 * intervals.h:
4344 * keyboard.h:
4345 * keymap.h:
4346 * lisp.h:
4347 * macros.h:
4348 * md5.h:
4349 * menu.h:
4350 * msdos.h:
4351 * nsterm.h:
4352 * puresize.h:
4353 * region-cache.h:
4354 * syntax.h:
4355 * syssignal.h:
4356 * systime.h:
4357 * termhooks.h:
9e892c8d 4358 * w32font.h:
383e0970
J
4359 * w32term.h:
4360 * widget.h:
4361 * window.h:
4362 * xgselect.h:
4363 * xsettings.h:
4364 * xterm.h: Likewise.
4365
98601119
DN
43662010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
4367
d9170db5
DN
4368 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
4369
98601119
DN
4370 Cleanup old code.
4371 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
4372 * syssignal.h: Remove code for Lynx, not supported anymore.
4373 * vm-limit.c: Remove unused code the depends on emacs not being
4374 defined and NO_LIM_DATA being defined.
4375 * mem-limits.h: Remove dead code.
4376
1f984e12
J
43772010-07-01 Jan Djärv <jan.h.d@swipnet.se>
4378
c49d071a
J
4379 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
4380
9d5405ec
J
4381 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
4382 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
4383
7a18115b
J
4384 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
4385 parameters, they are already absolute.
4386
a628ad9d
JB
4387 * nsterm.m (x_set_window_size, initFrameFromEmacs):
4388 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 4389
a628ad9d 4390 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 4391
a628ad9d
JB
4392 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
4393 Update FRAME_TOOLBAR_HEIGHT.
581a8100 4394
a628ad9d
JB
4395 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
4396 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 4397
c1ef4455
CY
43982010-06-30 Chong Yidong <cyd@stupidchicken.com>
4399
4400 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
4401 check default-frame-alist.
4402
ce8f5a9a
AS
44032010-06-30 Andreas Schwab <schwab@linux-m68k.org>
4404
4405 * process.c (create_process): Avoid using invalid file descriptors.
4406
4407 * callproc.c (child_setup): Avoid closing a file descriptor twice.
4408
bf935339
J
44092010-06-30 Jan Djärv <jan.h.d@swipnet.se>
4410
4411 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
4412 Improve documentation. Return font regardless of use_system_font.
4413 (syms_of_xsettings): Improve documentation for font-use-system-font.
4414
7c33a057
CY
44152010-07-10 Chong Yidong <cyd@stupidchicken.com>
4416
2ec1b5ee
CY
4417 * xfaces.c (realize_face): Garbage the frame if a face is removed
4418 (Bug#6593).
4419
44202010-07-05 Andreas Schwab <schwab@linux-m68k.org>
4421
4422 * keyboard.c: Remove duplicate <setjmp.h>.
4423 (read_key_sequence): Remove volatile qualifiers.
4424
44252010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4426
4427 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
4428 (struct glyph_row): New members left_fringe_offset and
4429 right_fringe_offset.
4430
4431 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
4432 specially.
4433 * w32term.c (w32_draw_fringe_bitmap): Likewise.
4434 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
4435
4436 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 4437 Take account of bitmap offset.
2ec1b5ee
CY
4438 (draw_window_fringes): Take account of window vscroll.
4439 (update_window_fringes): Likewise. Extend top-aligned top indicator
4440 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
4441 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
4442 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
4443
44442010-07-04 Juanma Barranquero <lekktu@gmail.com>
4445
4446 * w32fns.c (Qtooltip): Declare.
4447 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
4448
44492010-07-03 Jan Djärv <jan.h.d@swipnet.se>
4450
4451 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
4452 grab on just Press (Bug#6499).
4453
44542010-07-02 Chong Yidong <cyd@stupidchicken.com>
4455
4456 * frame.c (Qtooltip): New var.
4457 (delete_frame): Use it. Fix faulty if statement. Don't update
4458 mode line for tooltip frames. Suggested by Martin Rudalics.
4459
4460 * xfns.c (x_create_tip_frame):
4461 * w32fns.c (x_create_tip_frame): Use it.
4462
44632010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
4464
4465 * xftfont.c (xftfont_open): Check font width one by one also when
4466 spacing is dual.
4467
4468 * ftfont.c (ftfont_open): Ditto.
4469
6259c2ec
GM
44702010-06-30 Glenn Morris <rgm@gnu.org>
4471
a46007e9
GM
4472 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
4473
6259c2ec
GM
4474 * Makefile.in (CANNOT_DUMP): Update for configure name change.
4475
4476 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
4477 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
4478 * s/darwin.h (SYSTEM_MALLOC):
4479 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
4480
5d1d3d04
J
44812010-06-29 Jan Djärv <jan.h.d@swipnet.se>
4482
4483 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
4484 (ns_get_screen): Don't assign integer to f.
4485 (Fx_display_color_cells): Declarations before statements.
4486
e547b051
J
44872010-06-28 Jan Djärv <jan.h.d@swipnet.se>
4488
5fc8e5bc
J
4489 * xfns.c (x_default_font_parameter): Remove got_from_system
4490 (Bug#6526).
4491
e547b051
J
4492 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
4493 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
4494 defines based on what configure finds.
4495
4496 * xterm.c (XTflash): Use gtk_widget_get_window.
4497 (xg_scroll_callback): Use gtk_adjustment_get_upper and
4498 gtk_adjustment_get_page_size.
4499 (handle_one_xevent): Use gtk_widget_get_mapped.
4500 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
4501 messages.
4502
4503 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
4504
4505 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
4506 HAVE_GTK_FILE_SELECTION_NEW.
4507
4508 * gtkutil.c (xg_display_open, xg_display_close): Remove
4509 HAVE_GTK_MULTIDISPLAY, it is always defined.
4510 (xg_display_open): Return type is void.
4511 (gtk_widget_set_has_window)
4512 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
4513 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
4514 (gtk_adjustment_set_page_increment)
4515 (gtk_adjustment_get_step_increment): #define these if not found
4516 by configure.
4517 (remove_submenu): New define based on Gtk+ version.
4518 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
4519 gtk_widget_get_window.
4520 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
4521 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
4522 (create_dialog): Use gtk_dialog_get_action_area and
4523 gtk_dialog_get_content_area.
4524 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
4525 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
4526 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
4527 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
4528 g_object_ref and g_object_unref.
4529 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
4530 gtk_widget_get_sensitive.
4531 (xg_update_submenu): Use remove_submenu.
4532 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
4533 properties instead to get old x and y position.
4534 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
4535 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 4536 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
4537 (xg_get_tool_bar_widgets): New function.
4538 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
4539 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
4540 (toolbar_set_orientation): New #define based on if configure
4541 finds gtk_orientable_set_orientation.
4542 (xg_create_tool_bar): Call toolbar_set_orientation.
4543 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
4544 instead of gtk_box_pack_start_defaults.
4545
b9229673
CY
45462010-06-28 Chong Yidong <cyd@stupidchicken.com>
4547
4548 * cmds.c (Fdelete_backward_char): Move into Lisp.
4549
bbc803b0
DN
45502010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
4551
4552 * s/freebsd.h (BSD4_2): Remove redundant definition.
4553 bsd-common.h defines it already.
4554
6431f2e6
CY
45552010-06-27 Chong Yidong <cyd@stupidchicken.com>
4556
4557 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
4558 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
4559 tool-bar-mode, which are now set using these X resources at
4560 startup, to determine the defaults (Bug#2249).
4561
4562 * w32fns.c (Fx_create_frame):
4563 * nsfns.m (Fx_create_frame): Likewise.
4564
4565 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
4566
8c079ebb
JB
45672010-06-24 Juanma Barranquero <lekktu@gmail.com>
4568
4569 * gtkutil.c (xg_update_scrollbar_pos):
4570 Avoid C99 mid-block variable declaration.
4571
e9b7ab96
JD
45722010-06-22 Jan Djärv <jan.h.d@swipnet.se>
4573
bc869eca
JD
4574 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
4575
2b7e356a 4576 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
4577
4578 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
4579 if height is less than scroll bar min size.
4580 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
4581
e9b7ab96
JD
4582 * xfns.c (x_default_font_parameter): Try to open font from system
4583 before using it (bug#6478). Rename got_from_gconf to got_from_system.
4584
a628ad9d 45852010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
4586
4587 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
4588
70c4cfbb
EZ
45892010-06-20 Eli Zaretskii <eliz@gnu.org>
4590
4591 * xdisp.c (try_scrolling): When scroll-conservatively is set to
4592 most-positive-fixnum, be extra accurate when scrolling window
4593 start, to avoid missing the cursor line.
4594
ad5a12b5
EZ
45952010-06-19 Eli Zaretskii <eliz@gnu.org>
4596
4597 * xdisp.c (try_scrolling): Compute the limit for searching point
4598 in forward scroll from scroll_max, instead of an arbitrary limit
4599 of 10 screen lines. See
4600 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
4601 and
4602 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
4603 for details.
4604
2a64315a 46052010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
4606
4607 * editfns.c (Fbyte_to_string): Pacify compiler.
4608
288cf4e9
SM
46092010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
4610
4611 * lread.c (read1): Phase out old-style backquotes a bit more.
4612
6e6e5760
EZ
46132010-06-12 Eli Zaretskii <eliz@gnu.org>
4614
cbc4fd20
EZ
4615 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
4616 bidimirror.h.
4617
4618 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
4619
317fbf33
EZ
4620 * bidi.c (bidi_initialize): Remove explicit initialization of
4621 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 4622 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 4623 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
4624
4625 * biditype.h: New file.
4626
cbc4fd20
EZ
4627 * bidimirror.h: New file.
4628
6e6e5760
EZ
4629 * window.c (syms_of_window): Doc fix (bug#6409).
4630
4176cba2
RF
46312010-06-12 Romain Francoise <romain@orebokech.com>
4632
4633 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
4634 ediff-hook.
4635
cb4bfcb5
GM
46362010-06-10 Glenn Morris <rgm@gnu.org>
4637
64c60c2f
GM
4638 * editfns.c (Fbyte_to_string): Pacify compiler.
4639
cb4bfcb5
GM
4640 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
4641
2ec1b5ee
CY
46422010-06-26 Andreas Schwab <schwab@linux-m68k.org>
4643
4644 * alloc.c (Fmake_byte_code): Don't access undefined argument
4645 (Bug#6517).
4646
46472010-06-25 Chong Yidong <cyd@stupidchicken.com>
4648
4649 * xdisp.c (next_element_from_image): Ensure that after-strings are
4650 read the next time we hit handle_stop (Bug#1336).
4651
46522010-06-23 Andreas Schwab <schwab@linux-m68k.org>
4653
4654 * lread.c (read1): Signal error if #s is not followed by paren.
4655
46562010-06-19 Chong Yidong <cyd@stupidchicken.com>
4657
4658 * image.c (free_image): Mark frame as garbaged (Bug#6426).
4659
4660 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
4661
46622010-06-15 Glenn Morris <rgm@gnu.org>
4663
4664 * editfns.c (Fbyte_to_string): Pacify compiler.
4665
e454a4a3
SM
46662010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
4667
4668 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
4669 Check `object's type before accessing its guts.
4670
c1b1acc2
DN
46712010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
4672
4673 * s/usg5-4.h: Fix previous change.
4674 Suggested by Lawrence Mitchell <wence@gmx.li>
4675
657d4c0b
AS
46762010-06-08 Andreas Schwab <schwab@linux-m68k.org>
4677
4678 * minibuf.c (Fall_completions): Add more checks.
4679
9b27fd9f
JB
46802010-06-08 Juanma Barranquero <lekktu@gmail.com>
4681
4682 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
4683
a99ebb40
DN
46842010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
4685
d7c5d87d
DN
4686 * lread.c (X_OK): Remove, unused.
4687
0263a941
DN
4688 * dispnew.c: Remove obsolete comment.
4689
a99ebb40
DN
4690 Remove INCLUDED_FCNTL.
4691 * xterm.c (INCLUDED_FCNTL):
4692 * callproc.c (INCLUDED_FCNTL):
4693 * alloc.c (INCLUDED_FCNTL):
4694 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
4695 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
4696
13b5221f
MR
46972010-06-07 Martin Rudalics <rudalics@gmx.at>
4698
4699 * window.c (Fselect_window): Move `record_buffer' up to the
4700 beginning of this function, so the buffer gets recorded
4701 even if the selected window does not change.
4702 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
4703
5220357f
JB
47042010-06-07 Juanma Barranquero <lekktu@gmail.com>
4705
4706 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
4707 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
4708
3085237c
DN
47092010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
4710
4711 Remove BSTRING related code, all platforms define it.
4712 * s/usg5-4.h (BSTRING): Remove definition.
4713 * s/template.h (BSTRING):
4714 * s/msdos.h (BSTRING):
4715 * s/ms-w32.h (BSTRING):
4716 * s/hpux10-20.h (BSTRING):
4717 * s/gnu-linux.h (BSTRING):
4718 * s/darwin.h (BSTRING):
4719 * s/cygwin.h (BSTRING):
4720 * s/bsd-common.h (BSTRING):
4721 * s/aix4-2.h (BSTRING): Likewise.
4722 * sysdep.c: Remove code depending on BSTRING not being defined.
4723
409f2919
JB
47242010-06-05 Juanma Barranquero <lekktu@gmail.com>
4725
4726 Remove obsolete macro BASE_LEADING_CODE_P.
4727 * character.h (BASE_LEADING_CODE_P): Remove.
4728 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
4729 * buffer.c (Fset_buffer_multibyte):
4730 * indent.c (scan_for_column, compute_motion):
4731 * insdel.c (count_combining_before, count_combining_after):
4732 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
4733
087fc47a
JB
47342010-06-04 Juanma Barranquero <lekktu@gmail.com>
4735
4736 Turn `directory-sep-char' into a noop.
4737
4738 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
4739 (DIRECTORY_SEP): Define unconditionally.
4740
4741 * s/ms-w32.h (DIRECTORY_SEP): Remove.
4742
4743 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
4744 call dostounix_filename directly.
4745
4746 * fileio.c (CORRECT_DIR_SEPS): Remove.
4747 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
4748 (Fsubstitute_in_file_name): Use dostounix_filename instead.
4749 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
4750 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
4751
4752 * w32proc.c (CORRECT_DIR_SEPS): Remove.
4753 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
4754
0eb7675e
AS
47552010-06-03 Andreas Schwab <schwab@linux-m68k.org>
4756
a628ad9d
JB
4757 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
4758 (Bug#6346)
0eb7675e 4759
78edd3b7
JB
47602010-06-03 Juanma Barranquero <lekktu@gmail.com>
4761
4762 * ccl.c (Fccl_program_p): Fix typo in docstring.
4763
eb697db5
DN
47642010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
4765
4766 Move UNEXEC definition to autoconf.
4767 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
4768 * s/sol2-10.h (UNEXEC):
4769 * s/irix6-5.h (UNEXEC):
4770 * s/hpux10-20.h (UNEXEC):
4771 * s/gnu-linux.h (UNEXEC):
4772 * s/darwin.h (UNEXEC):
4773 * s/cygwin.h (UNEXEC):
4774 * s/bsd-common.h (UNEXEC):
4775 * s/aix4-2.h (UNEXEC):
4776 * m/alpha.h (UNEXEC): Likewise.
4777 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
4778
aa3830c4
JB
47792010-06-03 Juanma Barranquero <lekktu@gmail.com>
4780
4781 Remove obsolete pre-unicode2 macros.
4782 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
4783 * composite.c (composition_reseat_it):
4784 * data.c (Faset):
4785 * fns.c (Ffillarray):
4786 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
4787 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
4788
d234d13e
JL
47892010-06-03 Juri Linkov <juri@jurta.org>
4790
4791 * buffer.c (Fother_buffer): Add CHECK_FRAME.
4792 (Fswitch_to_buffer): Remove unused variable `err'.
4793
0d4bcf4d
GM
47942010-06-03 Glenn Morris <rgm@gnu.org>
4795
e23dc1e2
GM
4796 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
4797
05b09564
GM
4798 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
4799 now that AH_BOTTOM does it.
4800
824e2978
GM
4801 * m/hp800.h (HAVE_ALLOCA):
4802 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
4803
0d4bcf4d
GM
4804 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
4805 Remove NOT_C_CODE tests, it is always true now.
4806
c55d2abf
DN
48072010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
4808
08a494a3
DN
4809 Fix config.h includes.
4810 * xsettings.c:
4811 * xgselect.c:
4812 * nsterm.m:
4813 * nsselect.m:
4814 * nsimage.m:
4815 * nsfont.m:
4816 * nsfns.m:
4817 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
4818 other files do.
4819
75934b1d
DN
4820 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
4821
9f32a766
DN
4822 * s/sol2-6.h: Remove obsolete comments.
4823
c55d2abf
DN
4824 Remove unnecessary alloca.h includes.
4825 * keymap.c: Do not include alloca.h, config.h does that.
4826 * sysdep.c: Likewise. Do not define fwrite, not used.
4827
06ac62b4
SM
48282010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
4829
4830 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
4831 the HAVE_TERMIO where it belongs (bug#6149).
4832
1ab8293c
SM
48332010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
4834
4835 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
4836 of bug#6305).
4837
6dcfd253
EZ
48382010-05-30 Eli Zaretskii <eliz@gnu.org>
4839
4840 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
4841 state is always cached (bug#6306).
4842
6d26bbb2
EZ
48432010-05-29 Eli Zaretskii <eliz@gnu.org>
4844
06fa4a23
EZ
4845 Fix cursor motion in bidi-reordered continued lines.
4846 * xdisp.c (try_cursor_movement): Backup to non-continuation line
4847 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
4848 over continuation lines in bidi-reordered buffers. Return
4849 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
4850 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
4851
f5783df3
MA
48522010-05-28 Michael Albinus <michael.albinus@gmx.de>
4853
4854 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
4855
7d56b2dd
KH
48562010-05-28 Kenichi Handa <handa@m17n.org>
4857
4858 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
4859 Don't sheck SPEC if it is nil.
4860 (font_list_entities): Call font_delete_unmatched if
b925d231 4861 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 4862
e58d4ff7
GM
48632010-05-28 Glenn Morris <rgm@gnu.org>
4864
4865 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
4866
f1a5d776
CY
48672010-05-27 Chong Yidong <cyd@stupidchicken.com>
4868
4869 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
4870 whether to trash.
4871 (internal_delete_file, Frename_file): Callers changed.
4872 (delete_by_moving_to_trash): Doc fix.
4873 (Fdelete_directory_internal): Don't move to trash.
4874
4875 * callproc.c (delete_temp_file):
4876 * buffer.c (Fkill_buffer): Callers changed.
4877
4878 * lisp.h: Update prototype.
4879
f44a59e6
CY
48802010-05-27 Chong Yidong <cyd@stupidchicken.com>
4881
4882 * xdisp.c (redisplay_window): After redisplay, check if point is
4883 still valid before setting it (Bug#6177).
4884
81ac4f35
GM
48852010-05-27 Glenn Morris <rgm@gnu.org>
4886
4887 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
4888 Convert comments to Makefile format.
4889
4890 * Makefile.in (bootstrap-clean): No more Makefile.c.
4891
ccd89fb3
GM
48922010-05-26 Glenn Morris <rgm@gnu.org>
4893
90278cb6
GM
4894 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
4895 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
4896
ccd89fb3
GM
4897 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
4898 Remove.
4899 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4900
b7050583
KH
49012010-05-26 Kenichi Handa <handa@m17n.org>
4902
4903 * composite.c (composition_compute_stop_pos): Fix condition for
4904 backward scanning.
4905
e5458003
GM
49062010-05-25 Glenn Morris <rgm@gnu.org>
4907
c345fe90
GM
4908 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
4909 Move before TEMACS_LDFLAGS.
4910 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4911 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4912
2e0689ab
GM
4913 * Makefile.in (NOT_C_CODE): No longer define.
4914 (config.h): No longer include.
4915
8009a5e8
GM
4916 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
4917 variables it may reference.
4918
e5458003
GM
4919 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
4920 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
4921
10f72a37
KH
49222010-05-25 Kenichi Handa <handa@m17n.org>
4923
4924 * dispextern.h (struct composition_it): New members rule_idx and
4925 charpos.
4926
4927 * xdisp.c (set_iterator_to_next): While scanning backward, assume
4928 that the character positions of IT point the last character of the
4929 current grapheme cluster.
4930 (next_element_from_composition): Don't change character positions
4931 of IT.
4932 (append_composite_glyph): Set glyph->charpos to
4933 it->cmp_it.charpos.
4934
4935 * composite.c (autocmp_chars): Change the first argument to RULE,
4936 and try composition with RULE only.
4937 (composition_compute_stop_pos): Record the index number of the
4938 composition rule in CMP_IT->rule_idx.
4939 (composition_reseat_it): Call autocmp_chars repeatedly until the
4940 correct rule of the composition is found.
4941 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
4942 is at the last character of the current grapheme cluster when
4943 CMP_IT->reversed_p is nonzero.
4944
171eda53 49452010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 4946
171eda53
SM
4947 * editfns.c (Fbyte_to_string): New function.
4948
66a9f7f4
SM
49492010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
4950
4951 * process.c (Fmake_network_process): Set :host to nil if it's not used.
4952 Suggested by Masatake YAMATO <yamato@redhat.com>.
4953
d8c315d1
EZ
49542010-05-23 Eli Zaretskii <eliz@gnu.org>
4955
171eda53 4956 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 4957
f5b416d2 49582010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
4959
4960 * s/netbsd.h: If terminfo is found, use it in preference to
4961 termcap. (Bug#6190) [Backport from trunk]
4962
0416466c
EZ
49632010-05-19 Eli Zaretskii <eliz@gnu.org>
4964
11117830 4965 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
4966
4967 * dispextern.h (struct glyph_row): New members minpos and maxpos.
4968 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
4969 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
4970 and maxpos members instead of start.pos and end.pos, respectively.
4971
4972 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
4973 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
4974 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
4975 (try_window_reusing_current_matrix, try_window_id):
4976 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
4977 (init_from_display_pos, init_iterator): Use EMACS_INT for
4978 character and byte positions.
66a9f7f4 4979 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
4980 arguments for minimum and maximum buffer positions seen by
4981 display_line for this row. Don't use iterator to find the
4982 position following the maximum one; instead, increment the
11117830
EZ
4983 position found by display_line directly. Fix logic; eol_pos
4984 should be tested before the rest. Handle the case of characters
4985 delivered from display vector (bug#6036). Fix tests related to
4986 it->method. Handle the truncated_on_right_p rows.
4987 (RECORD_MAX_MIN_POS): New macro.
4988 (display_line): Use it to record the minimum and maximum buffer
4989 positions for glyphs in the row being assembled. Record the
4990 position of the newline that terminates the line. If word wrap is
4991 in effect, restore minimum and maximum positions seen up to the
4992 wrap point, when iterator returns to it.
4993 (try_window_reusing_current_matrix): Give up if in bidi-reordered
4994 row and cursor not already at point. Restore original pre-bidi
4995 code for unidirectional buffers.
d36fe237
EZ
4996
4997 * dispnew.c (increment_row_positions, check_matrix_invariants):
4998 Increment and check row->start.pos and row->end.pos, in addition
4999 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
5000
11117830
EZ
5001 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
5002 Display truncated_on_left_p and truncated_on_right_p flags.
5003 Formatting fixes.
5004 (pmtxrows): Display the ordinal number of each row. Don't display
5005 rows beyond the last one.
5006
5007 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
5008 it is not copied by bidi_copy_it.
5009
6e83d800
EZ
50102010-05-22 Eli Zaretskii <eliz@gnu.org>
5011
5012 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
5013 (Bug#6237)
5014
110683ad
CY
50152010-05-22 Chong Yidong <cyd@stupidchicken.com>
5016
5017 * image.c (Fimage_flush): Rename from image-refresh.
5018
98fe5161
CY
50192010-05-21 Chong Yidong <cyd@stupidchicken.com>
5020
5021 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
5022 just one window.
5023
5024 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
5025 (clear_image_cache): If the number of cached images is unusually
5026 large, decrease the cache eviction delay (Bug#6230).
5027
e8752c66
GM
50282010-05-21 Glenn Morris <rgm@gnu.org>
5029
66dbf213
GM
5030 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
5031 Move these rules to ns.mk.
5032 * ns.mk: New file.
5033
04384b2d
GM
5034 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
5035
e8752c66
GM
5036 * Makefile.in (CANNOT_DUMP): New, set by configure.
5037 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
5038
2e2bbddb
JL
50392010-05-20 Juri Linkov <juri@jurta.org>
5040
5041 * fileio.c (Fdelete_file): Change interative spec to use
5042 `read-file-name' like in `find-file-read-args' where the default
5043 value is `default-directory' instead of `buffer-file-name'.
5044 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
5045
31c4aaf6
KR
50462010-05-20 Kevin Ryde <user42@zip.com.au>
5047
5048 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
5049 (Voverriding_terminal_local_map, Vsystem_key_alist)
5050 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
5051
9d5cf9b6
GM
50522010-05-20 Glenn Morris <rgm@gnu.org>
5053
5054 * Makefile.in (DEPDIR): New constant.
5055 (DEPFLAGS): Set with configure, not cpp.
5056 (MKDEPDIR): New, set by configure.
5057 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
5058 (clean): Use $DEPDIR.
5059 (deps_frag): Include from configure.
5060 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
5061 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
5062
ead6f8f5
EZ
5063 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
5064 reallocation of the cache. (Bug#6210)
5065
7f34aec3
GM
50662010-05-19 Glenn Morris <rgm@gnu.org>
5067
d494e8f2
GM
5068 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
5069
c1d0dcfd
GM
5070 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
5071 (GNULIB_VAR): Remove.
5072 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
5073
5074 * m/ibms390x.h (LINKER):
5075 * m/macppc.h (LINKER) [GNU_LINUX]:
5076 * s/aix4-2.h (ORDINARY_LINK):
5077 * s/cygwin.h (LINKER):
5078 * s/darwin.h (ORDINARY_LINK):
5079 * s/gnu.h (ORDINARY_LINK):
5080 * s/netbsd.h (LINKER):
5081 * s/usg5-4.h (ORDINARY_LINK):
5082 Move to configure.
5083
7f34aec3
GM
5084 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
5085
754790b6
CY
50862010-05-18 Chong Yidong <cyd@stupidchicken.com>
5087
5088 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
5089 prevent stack overflow if number of arguments is too large
5090 (Bug#6214).
5091
161e44d1
JB
50922010-05-18 Juanma Barranquero <lekktu@gmail.com>
5093
5094 * charset.c (load_charset_map_from_file): Don't call close after fclose.
5095
be4ff9da
GM
50962010-05-18 Glenn Morris <rgm@gnu.org>
5097
9539dc5d
GM
5098 * s/gnu-linux.h: Combine two conditionals.
5099
5100 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
5101 $(POST_ALLOC_OBJ).
5102
40dc6bf4
GM
5103 * Makefile.in (RALLOC_OBJ): New, set by configure.
5104 (rallocobj): Replace with the previous variable.
5105 (otherobj): Use $RALLOC_OBJ.
5106
5107 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
5108 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
5109
be4ff9da
GM
5110 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
5111 (gmallocobj, vmlimitobj): Replace with previous two variables.
5112 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
5113
16455a85
GM
51142010-05-17 Glenn Morris <rgm@gnu.org>
5115
5116 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
5117 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
5118
5fdb7468
GM
51192010-05-16 Glenn Morris <rgm@gnu.org>
5120
7ca1f3f9
GM
5121 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
5122
7541dad5
GM
5123 * Makefile.in (clean): Get rid of HAVE_NS conditional.
5124
da53fab9
GM
5125 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
5126 trailing "/".
5127
b02a6645
GM
5128 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
5129 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
5130
8877ca0f
GM
5131 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
5132 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
5133 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
5134 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
5135 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
5136
5fdb7468
GM
5137 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
5138 Remove ${STARTFLAGS}, nothing ever sets it.
5139
95adb4b1
DN
51402010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
5141
5142 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
5143
676b6304
GM
51442010-05-16 Glenn Morris <rgm@gnu.org>
5145
9beab9ce
GM
5146 * Makefile.in (LIBX_BASE): Always define.
5147
8a95f0e7
GM
5148 * Makefile.in (LIBX_OTHER): Move out of cpp section.
5149
676b6304
GM
5150 * Makefile.in (LIBXT): Always define.
5151
6e546d18
GM
51522010-05-15 Glenn Morris <rgm@gnu.org>
5153
4235ca47 5154 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 5155
6e546d18
GM
5156 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
5157 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
5158
8c5ff6dd
KR
51592010-05-15 Ken Raeburn <raeburn@raeburn.org>
5160
560bb7ae 5161 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
5162 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
5163
8b4eb796
KR
5164 * emacs.c (main): Initialize initial-environment and
5165 process-environment before generating from env, not after.
5166
8c5ff6dd
KR
5167 Handle --version reasonably in CANNOT_DUMP configuration.
5168 * emacs.c (emacs_version, emacs_copyright): New string variables.
5169 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
5170 (syms_of_emacs): Defvar them, and initialize them from the C
5171 string variables.
5172 (main): If initialization hasn't been done, print initial version
5173 info from the C strings, instead of starting an interactive session.
5174
dbd3f723
EZ
51752010-05-15 Eli Zaretskii <eliz@gnu.org>
5176
d20e1419
EZ
5177 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
5178 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
5179 (bidi_paragraph_init): Remove redundant assertion that we are at
5180 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
5181
5182 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
5183 (syms_of_xdisp): Defsubr it.
5184
d36fe237
EZ
5185 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
5186
dbd3f723
EZ
5187 * Makefile.in: Fix MSDOS-related comments.
5188
02be533b
GM
51892010-05-15 Glenn Morris <rgm@gnu.org>
5190
1a82cca9
GM
5191 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
5192 (really-lwlib, really-oldXMenu): Always define.
5193 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
5194
3df7b338
GM
5195 * Makefile.in: Simplify cpp conditional.
5196
2b5f541b
GM
5197 * Makefile.in (${ns_appdir}): Simplify using umask.
5198
02be533b
GM
5199 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
5200
4e2db1fe
SM
52012010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
5202
5203 * eval.c (specbind): Remove left-over duplicate test.
5204 Disallow let-binding frame-local vars. Add comment.
5205
4b292a22
EZ
52062010-05-14 Eli Zaretskii <eliz@gnu.org>
5207
2fe72643 5208 Make the cache of bidi iterator states dynamically allocated.
1edbd309 5209 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
5210 (bidi_init_it): Call it.
5211 (bidi_cache_iterator_state): Enlarge the cache if needed.
5212
4e2db1fe 5213 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
5214 bidi_get_next_char_visually. All callers changed.
5215
82ebc97b
KH
52162010-05-14 Kenichi Handa <handa@m17n.org>
5217
5218 * dispextern.h (struct composition_it): New member reversed_p.
5219
5220 * composite.c (composition_compute_stop_pos): Search backward if
5221 ENDPOS < CHARPOS.
5222 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
5223 Set CMP_IT->reversed_p.
b4b6e17e 5224 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 5225
4e2db1fe
SM
5226 * xdisp.c (set_iterator_to_next):
5227 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
5228 scanning backward. Call composition_compute_stop_pos if scan
5229 direction is changed.
5230 (next_element_from_buffer): Call composition_compute_stop_pos with
5231 negative ENDPOS if we are scanning backward.
5232 (next_element_from_composition): Pay attention to
5233 IT->cmp_it.reversed_p.
5234
0e5d7800
KH
52352010-05-14 Kenichi Handa <handa@m17n.org>
5236
560bb7ae 5237 * font.c (font_range): Return the range for the font found at first.
0e5d7800 5238
cb027b32
GM
52392010-05-14 Glenn Morris <rgm@gnu.org>
5240
177b0288
GM
5241 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
5242
fbc00890
GM
5243 * Makefile.in (mktime, X11, register): Move undefs to configure.
5244
f14d1dfd
GM
5245 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
5246 (MSDOS_X_OBJ): New variable.
5247 (MSDOS_SUPPORT_REAL): New constant.
5248 (MSDOS_SUPPORT): Set as a variable, not with cpp.
5249 (obj): Use MSDOS_X_OBJ.
5250 (lisp): Use MSDOS_SUPPORT as a variable.
5251
11842bd8
GM
5252 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
5253 (GPM_MOUSE_SUPPORT): Now it's a constant.
5254 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
5255 not cpp.
5256
489d31a4 5257 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 5258 (ns_appresdir): Remove, unused.
e20f1f07 5259
489d31a4
GM
5260 * Makefile.in (SHELL): Move outside cpp section.
5261
cb027b32
GM
5262 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
5263
5a903aa9
GM
52642010-05-13 Glenn Morris <rgm@gnu.org>
5265
3369c79f
GM
5266 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
5267 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
5268
d5e982a6
GM
5269 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
5270 HAVE_WINDOW_SYSTEM must be too.
5271
6192e163
GM
5272 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
5273 (lisp): Remove WINNT_SUPPORT.
5274
472c5d6b
GM
5275 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
5276 Let configure set these variables (to empty) in this case as well.
5277
0116466b
GM
5278 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
5279 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
5280
5a903aa9
GM
5281 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
5282 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
5283 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
5284 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
5285 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 5286 the values output by configure.
5a903aa9
GM
5287 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
5288
1a0d7c06
GM
52892010-05-12 Glenn Morris <rgm@gnu.org>
5290
b5457f14
GM
5291 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
5292 (LINKER_WAS_SPECIFIED): Remove.
5293
1a0d7c06
GM
5294 * Makefile.in (LIB_GCC): Set using configure, not cpp.
5295 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
5296 * m/arm.h (LIB_GCC) [GNU_LINUX]:
5297 * s/cygwin.h (LIB_GCC):
5298 * s/freebsd.h (LIB_GCC):
5299 * s/gnu-linux.h (LIB_GCC):
5300 * s/msdos.h (LIB_GCC):
5301 * s/netbsd.h (LIB_GCC):
5302 Move to configure.
5303
3ffd4615 53042010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
5305
5306 * ftfont.c: Fix incorrect parentheses of #if condition for
5307 definining M17N_FLT_USE_NEW_FEATURE.
5308
acddf8ae
GM
53092010-05-11 Glenn Morris <rgm@gnu.org>
5310
5311 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
5312 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
5313
ae5e04fa
EZ
53142010-05-10 Eli Zaretskii <eliz@gnu.org>
5315
5316 * xdisp.c (init_iterator): Don't turn on bidi reordering in
5317 unibyte buffers. See
5318 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
5319
7490175b
GM
53202010-05-10 Glenn Morris <rgm@gnu.org>
5321
97efb629
GM
5322 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
5323 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
5324 (LIBES): Use LIBS_SYSTEM as a variable.
5325 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
5326 * s/aix4-2.h (LIBS_SYSTEM):
5327 * s/freebsd.h (LIBS_SYSTEM):
5328 * s/hpux10-20.h (LIBS_SYSTEM):
5329 * s/sol2-6.h (LIBS_SYSTEM):
5330 * s/unixware.h (LIBS_SYSTEM):
5331 Move to configure.
5332
7490175b
GM
5333 * s/aix4-2.h (MAIL_USE_LOCKF):
5334 * s/bsd-common.h (MAIL_USE_FLOCK):
5335 * s/darwin.h (MAIL_USE_FLOCK):
5336 * s/gnu-linux.h (MAIL_USE_FLOCK):
5337 * s/irix6-5.h (MAIL_USE_FLOCK):
5338 * s/template.h (MAIL_USE_FLOCK):
5339 Move to configure.
5340
0235128c 53412010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
5342
5343 * Version 23.2 released.
5344
0235128c 53452010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
5346
5347 * composite.c (autocmp_chars): Save point as marker before calling
5348 auto-composition-function (Bug#5984).
5349
5350 * lisp.h (restore_point_unwind): Add prototype.
5351
5352 * fileio.c (restore_point_unwind): Remove static attribute.
5353
0235128c 53542010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
5355
5356 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
5357 new feature of libotf and m17n-flt.
0235128c
SM
5358 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
5359 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
5360 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
5361 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
5362 that OUT is NULL. Use OTF_drive_gsub_with_log and
5363 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
5364 OTF_drive_gpos.
5365 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
5366 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
5367 Setup mflt_enable_new_feature and mflt_try_otf.
5368
4721152c
J
53692010-05-08 Jan Djärv <jan.h.d@swipnet.se>
5370
5371 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
5372
5373 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
5374 box and toolbar (Bug #6139).
5375 (xg_create_tool_bar): Remove comment (Bug #6139).
5376 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
5377 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
5378
ee0a16cf
JB
53792010-05-08 Juanma Barranquero <lekktu@gmail.com>
5380
5381 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
5382 Update dependencies.
5383
96d79611
EZ
53842010-05-08 Eli Zaretskii <eliz@gnu.org>
5385
5386 * fringe.c (update_window_fringes): Set up truncation bitmaps for
5387 R2L lines.
5388
40c17879
GM
53892010-05-08 Glenn Morris <rgm@gnu.org>
5390
7b42b29f
GM
5391 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
5392
40c17879
GM
5393 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
5394 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
5395 (termcapobj): Replace with TERMCAP_OBJ.
5396 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
5397 (LIBES): Use LIBS_TERMCAP as a variable.
5398
5399 * s/freebsd.h (osreldate.h): No longer include, since this file
5400 does not use __FreeBSD_version any more.
5401
5402 * s/aix4-2.h (TERMINFO):
5403 * s/cygwin.h (TERMINFO):
5404 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
5405 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
5406 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
5407 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
5408 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
5409 * s/irix6-5.h (TERMINFO):
5410 * s/netbsd.h (LIBS_TERMCAP):
5411 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
5412 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
5413 * s/usg5-4.h (TERMINFO):
5414 Move to configure.
5415
94b612ad
SM
54162010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
5417
5418 * eval.c (unbind_to): Don't unbind a local binding into the global
5419 binding when the local binding disappeared. Inversely, don't unbind
5420 a global binding into a newly created local binding.
5421 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
5422 can specify the frame to use, when applicable. Adjust callers.
5423
15e12598 54242010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 5425 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
5426
5427 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
5428
f724825e
EZ
54292010-05-07 Eli Zaretskii <eliz@gnu.org>
5430
5cba3209
EZ
5431 * w32fns.c: Include w32.h.
5432 (Fw32_shell_execute): Decode the error message before passing it
5433 to `error'. (Bug#6126)
5434
d16bdfc3
EZ
5435 * msdos.c (dos_set_window_size):
5436 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
5437 instead of `XSYMBOL (foo)->value'.
5438
59d93e87
EZ
54392010-05-07 Eli Zaretskii <eliz@gnu.org>
5440
9fdec8bc
EZ
5441 Fix the MS-DOS build, broken by autoconfiscation.
5442
5443 * Makefile.in: Don't use Make-style comments past the "start of
5444 cpp stuff" line.
5445 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
5446
5447 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
5448 edited directly by msdos/sed1v2.inp).
f724825e 5449
2f86b22b
GM
54502010-05-07 Glenn Morris <rgm@gnu.org>
5451
5452 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
5453 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
5454 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
5455 move out of cpp section.
5456 * s/freebsd.h (LD_SWITCH_SYSTEM):
5457 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
5458 * s/netbsd.h (LD_SWITCH_SYSTEM):
5459 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
5460
49ebbd65
DN
54612010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
5462
5463 Define LIB_STANDARD and START_FILES using autoconf.
5464 * s/usg5-4.h (LIB_STANDARD):
5465 * s/netbsd.h (START_FILES):
5466 * s/irix6-5.h (LIB_STANDARD):
5467 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
5468 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
5469 * s/freebsd.h (START_FILES):
5470 * s/darwin.h (START_FILES):
5471 * s/cygwin.h (START_FILES):
5472 * s/aix4-2.h (LIB_STANDARD):
5473 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
5474 * Makefile.in (STARTFILES): Rename to START_FILES, define using
5475 autoconf, not cpp.
5476
d43c06d6
DN
54772010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
5478
28823648
DN
5479 Remove NEED_BSDTTY and NEED_UNISTD_H.
5480 * s/hpux10-20.h (NEED_BSDTTY): Remove.
5481 * s/aix4-2.h (NEED_UNISTD_H): Remove.
5482 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
5483 <sys/ptyio.h> and <unistd.h>.
5484
aca00430
DN
5485 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
5486
d43c06d6
DN
5487 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
5488 * s/gnu.h (START_FILES): Remove empty definition.
5489
3e56b11d
JD
54902010-05-06 Jan Djärv <jan.h.d@swipnet.se>
5491
5492 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
5493
e3cf0cde
GM
54942010-05-06 Glenn Morris <rgm@gnu.org>
5495
5496 * Makefile.in (CPP, LN_S): Remove unused variables.
5497
774b9a60
SM
54982010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
5499
5500 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
5501
4ab92842
LM
55022010-05-05 Lawrence Mitchell <wence@gmx.li>
5503
5504 * m/sparc.h: Fix typo in earlier change.
5505
178f2507
SM
55062010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
5507
5508 Misc tweaks.
5509 * eval.c (Fdefvaralias): Remove unintended nested if.
5510 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
5511
80f00217 55122010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
5513
5514 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
5515
ef03a4e6
DN
55162010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
5517
58eb6cf0
DN
5518 Remove BSD_PGRPS.
5519 * s/bsd-common.h (BSD_PGRPS): Remove undef.
5520 * s/gnu-linux.h (BSD_PGRPS): Remove.
5521 * term.c (dissociate_if_controlling_tty):
5522 * sysdep.c (narrow_foreground_group, widen_foreground_group)
5523 (init_sys_modes, reset_sys_modes):
5524 * emacs.c (main):
5525 * callproc.c (Fcall_process, child_setup): Remove code depending
5526 on BSD_PGRPS.
5527
ef03a4e6
DN
5528 Remove POSIX_SIGNALS.
5529 * s/usg5-4.h (POSIX_SIGNALS):
5530 * s/netbsd.h (POSIX_SIGNALS):
5531 * s/msdos.h (POSIX_SIGNALS):
5532 * s/ms-w32.h (POSIX_SIGNALS):
5533 * s/hpux11.h (POSIX_SIGNALS):
5534 * s/gnu.h (POSIX_SIGNALS):
5535 * s/gnu-linux.h (POSIX_SIGNALS):
5536 * s/freebsd.h (POSIX_SIGNALS):
5537 * s/darwin.h (POSIX_SIGNALS):
5538 * s/cygwin.h (POSIX_SIGNALS):
5539 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
5540 * s/unixware.h:
5541 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
5542 * process.c (create_process):
5543 * syssignal.h:
5544 * sysdep.c (wait_for_termination, init_signals):
5545 * process.c (create_process):
5546 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
5547 remove all code that assumes the contrary.
5548
49628785
GM
55492010-05-04 Glenn Morris <rgm@gnu.org>
5550
27a2cdfc
GM
5551 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
5552 variable.
5553 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
5554 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
5555 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
5556 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
5557 LD_SWITCH_SYSTEM_tmp.
5558 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
5559 New variables, set by configure.
5560
eb21eab5
GM
5561 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
5562 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
5563 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
5564 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
5565 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
5566
49628785
GM
5567 * s/aix4-2.h (C_SWITCH_SYSTEM):
5568 * m/alpha.h (C_SWITCH_MACHINE):
5569 Move to configure.in.
5570 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
5571 New variables, set by configure.
5572 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
5573 $c_switch_machine and $c_switch_system.
5574
7dff330b
DN
55752010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
5576
5577 * s/hpux10-20.h (LIB_STANDARD): New definition.
5578 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
5579 on it, not used anymore.
5580
53967e09
CY
55812010-05-03 Chong Yidong <cyd@stupidchicken.com>
5582
5583 * eval.c (internal_condition_case_n): Rename from
5584 internal_condition_case_2.
5585 (internal_condition_case_2): New function.
5586
5587 * xdisp.c (safe_call): Use internal_condition_case_n.
5588
5589 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
5590 (internal_delete_file, Frename_file): Callers changed.
5591
5592 * buffer.c (Fkill_buffer):
5593 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
5594
5595 * lisp.h: Update prototypes.
5596
3dee6fdb
GM
55972010-05-03 Glenn Morris <rgm@gnu.org>
5598
5599 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
5600 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
5601 (LIBXT): Set with configure, not cpp.
5602 (LIBX): Remove.
5603 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
5604
a101e0fb
DN
56052010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
5606
5607 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
5608 The FreeBSD is not needed, the default works, Solaris version is
5609 not needed, and the remaining case is not supported by configure.
5610
f63d0028
JD
56112010-05-02 Jan Djärv <jan.h.d@swipnet.se>
5612
5613 * xsmfns.c (CHDIR_OPT): New define.
5614 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
5615 restarting emacs.
5616
5617 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
5618 shut_down_emacs.
5619
5620 * emacs.c (USAGE1): Mention --chdir.
5621 (main): Handle --chdir.
5622 (standard_args): Add --chdir.
5623 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
5624 #5552).
5625
e4814a9f
DN
56262010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
5627
cd03c74a
DN
5628 Remove LD_SWITCH_MACHINE.
5629 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
5630 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
5631
c3a398a1
DN
5632 Clean up IRIX code.
5633 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
5634 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
5635
87e7285c
DN
5636 Clean up AIX code.
5637 * m/ibmrs6000.inp: Remove file, unused.
5638 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
5639 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
5640 definition ...
5641 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
5642
80f00217
JB
5643 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
5644 unused.
e4814a9f 5645
59ca28de
EZ
56462010-05-01 Eli Zaretskii <eliz@gnu.org>
5647
197daef4
EZ
5648 Emulate POSIX_SIGNALS on MS-Windows.
5649
5650 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
5651 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
5652
5653 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
5654 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
5655 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
5656
80f00217
JB
5657 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
5658 New stubs.
197daef4 5659
af7c7572
EZ
5660 Miscellaneous fixes of bidi display.
5661
59ca28de
EZ
5662 * xdisp.c (find_row_end): New function, refactored from display_line.
5663 (display_line): Use it.
017ea819
EZ
5664 (extend_face_to_end_of_line): In almost-filled rows, extend only
5665 if the row is R2L and not continued.
166e930d 5666 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 5667 Preserve overlay and string info in row->end.
166e930d
EZ
5668 (insert_left_trunc_glyphs): Support addition of left truncation
5669 glyphs to R2L rows.
b47e0dcf 5670 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
5671 glyph between adjacent windows. Fix a crash when a display string
5672 is continued to the next line. Don't return zero if cursor was
5673 found by `cursor' property of a display string.
b47e0dcf
EZ
5674 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
5675 test for that explicitly.
59ca28de 5676
7acac9f4
GM
56772010-05-01 Glenn Morris <rgm@gnu.org>
5678
5679 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
5680 for clarity.
5681 (OTHER_OBJ): Remove.
5682 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
5683 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
5684
45841e65
KK
56852010-05-01 Karel Klíč <kklic@redhat.com>
5686
5687 * fileio.c (Ffile_selinux_context): Context functions may return null.
5688
afc61943
DN
56892010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
5690
80f00217 5691 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 5692
5a1bb006
GM
56932010-04-30 Glenn Morris <rgm@gnu.org>
5694
5695 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
5696 (OTHER_OBJ): Define as a separate variable, for clarity.
5697
210af043
J
56982010-04-30 Jan Djärv <jan.h.d@swipnet.se>
5699
5700 * xsettings.c: include limits.h and update file comment.
5701
0a7df391
GM
57022010-04-30 Glenn Morris <rgm@gnu.org>
5703
d5096f16
GM
5704 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
5705 Set with configure, not cpp.
5706 (LIBW): Remove, replace with $TOOLKIT_LIBW.
5707
7eb1ac33
GM
5708 * Makefile.in (mallocobj): Remove.
5709 (otherobj): Simplify using @OTHER_OBJ@.
5710
517d086b
GM
5711 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
5712 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
5713 Don't bother making nsgui.h dependency platform-specific.
5714
0a7df391
GM
5715 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
5716
d6d23852
SM
57172010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
5718
d2630aef
SM
5719 * process.c (read_process_output, exec_sentinel): Don't burp if the
5720 sentinel/filter kills the current buffer (bug#6060).
5721
f9dddf52 5722 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
5723 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
5724 Remove unused var `args'.
5725 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
5726 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
5727 * doc.c (store_function_docstring): Use XSETCAR.
5728
f1e3642a
GM
57292010-04-28 Glenn Morris <rgm@gnu.org>
5730
faf535f8
GM
5731 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
5732 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
5733
c40f9449
GM
5734 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
5735
658f86ca
GM
5736 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
5737 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
5738
bc0b5f61
GM
5739 * Makefile.in (FONT_OBJ): New, set by configure.
5740 (FONT_DRIVERS): Use $FONT_OBJ.
5741
294c50a0
GM
5742 * Makefile.in (LIBXMU): Set with configure, not cpp.
5743 * s/aix4-2.h (LIBXMU):
5744 * s/hpux10-20.h (LIBXMU):
5745 Remove definition, now set in configure.
5746
e6ec4e99
GM
5747 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
5748
f1e3642a
GM
5749 * m/amdx86-64.h [i386]: Move this test to configure.in.
5750
c6ea2936
GM
57512010-04-27 Glenn Morris <rgm@gnu.org>
5752
8fdac2c3
GM
5753 * Makefile.in (LIBXTR6): Set with configure, not cpp.
5754 * s/unixware.h (NEED_LIBW): Remove definition.
5755
986fb647
GM
5756 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
5757 (TOOLKIT_LIBW): New, set by configure.
5758 (@X_TOOLKIT_TYPE@): No longer define it.
5759
c6ea2936
GM
5760 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
5761 (MOTIF_LIBW): Set with configure, not cpp.
5762 * s/aix4-2.h (LIB_MOTIF):
5763 * s/gnu-linux.h (LIB_MOTIF):
5764 * s/unixware.h (LIB_MOTIF): Move to configure.in.
5765
aaa36002
DN
57662010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
5767
5768 Reduce CPP usage.
5769 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
5770 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
5771 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
5772 definitions and undefs. Inline definitions in the only user.
5773 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 5774
b678dd8b
GM
57752010-04-27 Glenn Morris <rgm@gnu.org>
5776
76cda504
GM
5777 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
5778 since the defaults (set by the system file) are fine in most cases.
5779 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
5780 * m/ibms390x.h (START_FILES, LIB_STANDARD):
5781 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
5782 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
5783 Remove definitions, since they are set correctly in s/gnu-linux.h.
5784 * s/freebsd.h (START_FILES, LIB_STANDARD):
5785 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
5786 * s/hpux10-20.h (START_FILES):
5787 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
5788 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
5789
b678dd8b
GM
5790 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
5791 (MOTIF_LIBW): Use $LIBXP.
5792 (otherobj): Use $WIDGET_OBJ.
5793
9452ded1
DN
57942010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
5795
7e10844c
DN
5796 * Makefile.in (LIBS_MACHINE): Remove, unused.
5797
9452ded1
DN
5798 Use autoconf instead of cpp for LIB_MATH.
5799 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
5800 * s/cygwin.h (LIB_MATH): Likewise.
5801 * Makefile.in (LIB_MATH): Do not define with cpp.
5802 (LIBES): Use autoconf for LIB_MATH.
5803
fcebfc6a
KH
58042010-04-26 Kenichi Handa <handa@m17n.org>
5805
5806 * composite.c (Ffind_composition_internal): Fix the return value
5807 for an automatic composition.
5808
39e2ad1b
DN
58092010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
5810
5811 Remove all NO_ARG_ARRAY uses.
5812 * fns.c (concat2, concat3, nconc2):
5813 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
5814 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
5815 * m/xtensa.h (NO_ARG_ARRAY):
5816 * m/template.h (NO_ARG_ARRAY):
5817 * m/sparc.h (NO_ARG_ARRAY):
5818 * m/sh3.h (NO_ARG_ARRAY):
5819 * m/mips.h (NO_ARG_ARRAY):
5820 * m/macppc.h (NO_ARG_ARRAY):
5821 * m/iris4d.h (NO_ARG_ARRAY):
5822 * m/intel386.h (NO_ARG_ARRAY):
5823 * m/ibms390x.h (NO_ARG_ARRAY):
5824 * m/ibms390.h (NO_ARG_ARRAY):
5825 * m/ibmrs6000.h (NO_ARG_ARRAY):
5826 * m/ia64.h (NO_ARG_ARRAY):
5827 * m/hp800.h (NO_ARG_ARRAY):
5828 * m/arm.h (NO_ARG_ARRAY):
5829 * m/amdx86-64.h (NO_ARG_ARRAY):
5830 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
5831
adf4f59c
EZ
58322010-04-25 Eli Zaretskii <eliz@gnu.org>
5833
6bdf5d65
EZ
5834 * xdisp.c (display_line): Don't assume 2nd call to
5835 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
5836 (iterate_out_of_display_property): New function, body from pop_it.
5837 (pop_it): Use it.
adf4f59c 5838
dfbbda83
GM
58392010-04-24 Glenn Morris <rgm@gnu.org>
5840
5841 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
5842 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
5843 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
5844 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
5845
2d4018aa
EZ
58462010-04-24 Eli Zaretskii <eliz@gnu.org>
5847
a49884a6
EZ
5848 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
5849 use `get_next_display_element' and `set_iterator_to_next' to
5850 advance to the next character, when looking for the character that
5851 begins the next row.
5852
76db6fcc 5853 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
5854 definition of "struct Lisp_Symbol".
5855
70eab5c1
GM
58562010-04-24 Glenn Morris <rgm@gnu.org>
5857
5858 * Makefile.in (CRT_DIR): New variable, set by configure.
5859 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
5860 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
5861
1ad4cc3d
DN
58622010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
5863
e769f484
DN
5864 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
5865
4196ff33
DN
5866 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
5867
879b0ee4
DN
5868 Remove redundant flags.
5869 * s/freebsd.h (C_SWITCH_SYSTEM):
5870 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
5871 * s/netbsd.h (C_SWITCH_SYSTEM):
5872 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
5873 of these.
5874
03cbbcb8
DN
5875 Simplify m/intel386.h.
5876 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
5877 user: ecrt0.c.
5878 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
5879 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
5880 the only user: s/unixware.h.
5881 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
5882 from m/intel386.h.
5883 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
5884 moved here from m/intel386.h.
5885
1ad4cc3d
DN
5886 * m/mips.h: Remove #if 0 code.
5887
8785b888
EZ
58882010-04-23 Eli Zaretskii <eliz@gnu.org>
5889
728588cc
EZ
5890 Fix display of composed characters from L2R scripts in bidi buffers.
5891 * xdisp.c (set_iterator_to_next, next_element_from_composition):
5892 After advancing IT past the composition, resync the bidi iterator
5893 with IT's position. (Bug#5977)
5894
a63f80b4
DN
58952010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
5896
5897 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
5898 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
5899
ff5dec5c
SM
59002010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
5901
5902 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
5903
8785b888
EZ
59042010-04-23 Eli Zaretskii <eliz@gnu.org>
5905
58ccf243 5906 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
5907 * xdisp.c (pop_it): When the stack is popped after displaying
5908 from a string, bidi-iterate to exit from the text portion covered
5909 by the `display' property or overlay. (Bug#5988, bug#5920)
5910
feeb1604
DN
59112010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
5912
8e324eb6
DN
5913 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
5914 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
5915
809fcaba
DN
5916 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
5917 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
5918
ed710380
DN
5919 Simplify STARTFILES definition.
5920 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
5921 relying on Makefile.in to define it.
5922 * s/cygwin.h (START_FILES): Likewise.
5923 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
5924
feeb1604
DN
5925 Clean up Solaris code.
5926 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
5927 (LIB_MOTIF): Remove, configure takes care of this.
5928 (NOT_USING_MOTIF): Remove, unused.
5929 * xrdb.c: Remove #if 0-ed #include.
5930 (SYSV): Remove conditional for old SysV.
5931 * sysdep.c (closedir): Remove conditional code for Solaris,
5932 Solaris has closedir.
5933
a0d0b563
JD
59342010-04-22 Jan Djärv <jan.h.d@swipnet.se>
5935
5936 * xsettings.c (read_and_apply_settings): Check if current_font is
5937 NULL before strcmp (Bug#6001).
5938
56bae7c7
DN
59392010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
5940
5941 Clean up HP-UX files.
5942 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
5943 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
5944 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
5945 * s/hpux10-20.h: ... to the only user, here.
5946
372b7a95
EZ
59472010-04-21 Eli Zaretskii <eliz@gnu.org>
5948
5949 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
5950 use buffer-local values of paragraph-start and paragraph-separate.
5951 <paragraph_start_re, paragraph_separate_re>: Rename from
5952 fallback_paragraph_start_re and fallback_paragraph_separate_re.
5953 (Bug#5992)
5954
f904c0f9
JD
59552010-04-21 Jan Djärv <jan.h.d@swipnet.se>
5956
5957 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
5958 current_tool_bar_style are new.
5959 (store_config_changed_event): Rename from store_font_changed_event.
5960 (XSETTINGS_TOOL_BAR_STYLE): New define.
5961 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
5962 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
5963 HAVE_XFT.
5964 (something_changedCB): store_font_changed_event is now
c4cc8b9a 5965 store_config_changed_event.
f904c0f9
JD
5966 (parse_settings): Rename from parse_xft_settings. Read
5967 non-xft xsettings outside #ifdef HAVE_XFT.
5968 (read_settings): Renamed from read_xft_settings.
5969 (apply_xft_settings): Take current settings as parameter. Do not
5970 call read_(xft)_settings.
5971 (read_and_apply_settings): New function.
5972 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
5973 read_and_apply_settings if there are settings to be read.
5974 (init_xsettings): Renamed from init_xfd_settings.
5975 Call read_and_apply_settings unconditionally.
5976 (xsettings_initialize): Call init_xsettings.
5977 (Ftool_bar_get_system_style): New function.
5978 (syms_of_xsettings): Define Qmonospace_font_name and
5979 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 5980 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 5981 dynamic-setting.
31a01b90 5982 Move misplaced HAVE_GCONF
f904c0f9
JD
5983
5984 * xsettings.h (Ftool_bar_get_system_style): Declare.
5985
5986 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
5987 Qtext, Qboth, Qboth_horiz are new.
5988 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
5989 Vtool_bar_style, tool_bar_max_label_size.
5990
5991 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
5992
5993 * keyboard.c: QClabel is new.
5994 (parse_tool_bar_item): Take out QClabel from tool bar items.
5995 Try to construct a label if ther is no QClabel.
5996 (syms_of_keyboard): Intern :label as QClabel.
5997
5998 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
5999 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
6000 New.
6001
6002 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
6003 dynamic-setting.el.
6004
6005 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
6006 (xg_make_tool_item, xg_show_toolbar_item): New function.
6007 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
6008 Call xg_make_tool_item to make a tool bar item.
6009 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
6010
6011 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
6012 into account for toolbars.
6013
c632dfda
JD
60142010-04-21 Jan Djärv <jan.h.d@swipnet.se>
6015
6016 * data.c (make_blv): Declarations before code (Bug#5993).
6017
10efe302
GM
60182010-04-21 Glenn Morris <rgm@gnu.org>
6019
6020 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
6021 Define using autoconf, not cpp.
6022 (LIBXSM): New variable, set by autoconf.
6023 (LIBXT): Use $LIBXSM.
6024
4285ac5a
DN
60252010-04-21 Dan Nicolaescu <local_user@dannlt>
6026
3ec759e7
DN
6027 Remove NOMULTIPLEJOBS, unused.
6028 * s/template.h (NOMULTIPLEJOBS):
6029 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
6030
4285ac5a
DN
6031 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
6032 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
6033 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
6034 detects -znocombreloc and passes it to the linker
6035 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
6036
2807228d
GM
60372010-04-21 Glenn Morris <rgm@gnu.org>
6038
6039 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
6040
574c05e2
KK
60412010-04-21 Karel Klíč <kklic@redhat.com>
6042
6043 * Makefile.in (LIBSELINUX_LIBS): New.
6044 (LIBES): Add $LIBSELINUX_LIBS.
6045 * eval.c, lisp.h (call7): New function.
6046 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
6047 (Ffile_selinux_context, Fset_file_selinux_context):
6048 New functions.
6049 (Fcopy_file): New parameter preserve-selinux-context.
6050 (Frename_file): Preserve selinux context when renaming by copy-file.
6051
91eac4bb 60522010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 6053 Eli Zaretskii <eliz@gnu.org>
91eac4bb 6054
50426a04
JB
6055 Don't depend on cm.c or termcap.c on Windows, use stubs.
6056 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
6057 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
6058 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
6059 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
6060 (sys_tputs, sys_tgetstr): New stubs.
6061 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
6062 (tputs, tgetstr): New; define to sys_*.
91eac4bb 6063
938efb77
JB
60642010-04-20 Juanma Barranquero <lekktu@gmail.com>
6065
6066 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
6067
b4bf28b7
SM
60682010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
6069
8b1e1112
SM
6070 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
6071 Just signal a warning rather than an error when inside a let.
6072 (Fmake_variable_frame_local): Add the same test.
6073
933ac235
SM
6074 * font.c (syms_of_font): Make the style table vars read-only.
6075
b4bf28b7
SM
6076 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
6077 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
6078
6079 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
6080
93d68d0c
EZ
60812010-04-20 Eli Zaretskii <eliz@gnu.org>
6082
6083 Fix R2L paragraph display on TTY.
6084
6085 * xdisp.c (unproduce_glyphs): New function.
6086 (display_line): Use it when produced glyphs are discarded from R2L
6087 glyph rows.
6088 (append_composite_glyph): In R2L rows, prepend the glyph rather
6089 than appending it.
6090
6091 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
6092 rather than append it. Set up the resolved_level and bidi_type
6093 attributes of the appended glyph.
283ccc18
EZ
6094 (produce_special_glyphs): Mirror the backslash continuation
6095 character in R2L lines.
93d68d0c 6096
283ccc18 6097 Implement display of R2L paragraphs in GUI sessions.
26cdf528 6098
283ccc18
EZ
6099 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
6100 append_stretch_glyph.
6101 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
6102 off-by-one error in computing x at end of text in the row.
6103 (append_stretch_glyph): In reversed row, prepend the glyph rather
6104 than append it. Set resolved_level and bidi_type of the glyph.
6105 (extend_face_to_end_of_line): If the row is reversed, prepend a
6106 stretch glyph whose width is such that the rightmost glyph will be
6107 drawn at the right margin of the window. Fix off-by-one error on
6108 TTY frames in testing whether a line needs face extension. Fix
6109 face extension at ZV. If this is the last glyph row, use
6110 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
6111 region face.
6112 (set_cursor_from_row, display_line): Use
26cdf528
EZ
6113 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
6114 row->continuation_lines_width.
283ccc18
EZ
6115 (next_element_from_buffer): Don't call bidi_paragraph_init if we
6116 are at ZV. Fixes a crash when reseated to ZV by
6117 try_window_reusing_current_matrix.
45903529
EZ
6118 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
6119 which happens with R2L glyph rows. Fixes a crash when inserting a
6120 character at end of an R2L line.
283ccc18
EZ
6121 (set_cursor_from_row): Don't be fooled by truncated rows: don't
6122 treat them as having zero-width characters. Improve comments.
6123 Don't reverse pos_before and pos_after for reversed glyph rows.
6124 Set cursor.x to negative value when the cursor might be on the
6125 left fringe.
6126 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
6127 left fringe, not the right one.
f951a506
EZ
6128 (notice_overwritten_cursor, draw_phys_cursor_glyph)
6129 (erase_phys_cursor): For reversed cursor_row, support cursor on
6130 the left fringe.
6131
283ccc18
EZ
6132 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
6133 of continuation indicators on the fringes.
6134 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
6135 left fringe.
6136
f951a506
EZ
6137 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
6138 draw cursor on the left fringe.
6139
6140 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
6141 cursor on the left fringe.
6142
f951a506
EZ
6143 * dispnew.c (update_text_area): Handle reversed desired rows when
6144 the cursor is on the left fringe.
6145 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
6146 below, not by 0, for when the cursor is on the left fringe.
6147
3bb49aaf
JD
61482010-04-20 Jan Djärv <jan.h.d@swipnet.se>
6149
6150 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
6151 widget is a scrollbar.
6152
c0be27fd
KH
61532010-04-20 Kenichi Handa <handa@m17n.org>
6154
6155 * charset.c (char_charset): Consider Vcharset_non_preferred_head
6156 only when the arg CHARSET_LIST is nil.
6157
ce5b453a
SM
61582010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
6159
6160 Make variable forwarding explicit rather the using special values.
6161 Basically, this makes the structure of buffer-local values and object
6162 forwarding explicit in the type of Lisp_Symbols rather than use
6163 special Lisp_Objects for that. This tends to lead to slightly more
6164 verbose code, but is more C-like, simpler, and makes it easier to make
6165 sure we handled all cases, among other things by letting the compiler
6166 help us check it.
6167 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
6168 Removing forwarding objects.
6169 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
6170 (struct Lisp_Symbol): Make the various forms of variable-forwarding
6171 explicit rather than hiding them inside Lisp_Object "values".
6172 (XFWDTYPE): New macro.
6173 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
6174 (XBUFFER_LOCAL_VALUE): Remove.
6175 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
6176 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
6177 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
6178 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
6179 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
6180 Remove the Lisp_Misc_* header.
6181 (struct Lisp_Buffer_Local_Value): Redefine.
6182 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
6183 (struct Lisp_Misc_Any): Add filler to get the right size.
6184 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
6185 Lisp_Intfwd.
6186 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
6187 (DEFVAR_KBOARD): Allocate a forwarding object.
6188 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
6189 (let_shadows_global_binding_p): New function.
6190 (union Lisp_Val_Fwd): New type.
6191 (make_blv): New function.
6192 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
6193 (store_symval_forwarding, swap_in_global_binding, Fboundp)
6194 (swap_in_symval_forwarding, find_symbol_value, Fset)
6195 (let_shadows_buffer_binding_p, set_internal, default_value)
6196 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
6197 (Fkill_local_variable, Fmake_variable_frame_local)
6198 (Flocal_variable_p, Flocal_variable_if_set_p)
6199 (Fvariable_binding_locus):
6200 * xdisp.c (select_frame_for_redisplay):
6201 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
6202 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
6203 * frame.c (store_frame_param):
6204 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
6205 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
6206 value structure.
6207 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
6208 (clone_per_buffer_values): Only adjust markers into the current buffer.
6209 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
6210 (Fbuffer_local_value, set_buffer_internal_1)
6211 (swap_out_buffer_local_variables):
6212 Adapt to the new symbol value structure.
6213 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
6214 (defvar_per_buffer): Take a new arg for the fwd object.
6215 (buffer_lisp_local_variables): Return a proper alist (different fix
6216 for bug#4138).
6217 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
6218 (Fgarbage_collect): Don't handle buffer_defaults specially.
6219 (mark_object): Handle new symbol value structure rather than the old
6220 special Lisp_Misc_* objects.
6221 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
6222 * term.c (set_tty_color_mode):
6223 * bidi.c (bidi_initialize): Don't access the ->value field directly.
6224 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
6225 a buffer_local_flags.
6226 * print.c (print_object): Get rid of impossible forwarding objects.
6227
fd3998ff
EZ
62282010-04-19 Eli Zaretskii <eliz@gnu.org>
6229
6230 * bidi.c (bidi_get_type, bidi_get_category)
6231 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
6232 (bidi_type_of_next_char, bidi_level_of_next_char):
6233 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 6234
e42cd1a7
JB
62352010-04-19 Juanma Barranquero <lekktu@gmail.com>
6236
6237 * dired.c (Ffile_attributes): Fix typo in docstring.
6238
6e104790 62392010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
6240
6241 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
6242 NSInteger (Bug#5811).
6243
6e104790 62442010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
6245
6246 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
6247 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
6248
6e104790 62492010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
6250
6251 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
6252
6e104790
SM
62532010-04-19 Chong Yidong <cyd@stupidchicken.com>
6254
6255 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
6256 terminal frames (Bug#5837).
6257
37dcfea0
EZ
62582010-04-19 Eli Zaretskii <eliz@gnu.org>
6259
d1da276f
EZ
6260 * .gdbinit (xsubchartable): New command.
6261
37dcfea0
EZ
62622010-04-19 Eli Zaretskii <eliz@gnu.org>
6263
6264 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 6265 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
6266 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
6267 and
6268 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
6269
e9515805
SM
62702010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
6271
6272 * alloc.c (Fpurecopy): Hash-cons if requested.
6273 (syms_of_alloc): Update purify-flag docstring.
6274
22aa44a8
JD
62752010-04-18 Jan Djärv <jan.h.d@swipnet.se>
6276
6277 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
6278 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
6279
ebb5722e
EZ
62802010-04-17 Eli Zaretskii <eliz@gnu.org>
6281
6282 Fix a crash when an NSM character is inserted at BEGV.
6283
6284 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
6285 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
6286 NEUTRAL_B or UNKNOWN_BT.
6287
0f4442ef
EZ
62882010-04-16 Eli Zaretskii <eliz@gnu.org>
6289
6290 * xdisp.c (set_cursor_from_row): Don't consider possibility of
6291 other rows with cursor unless they are different from this row and
6292 this row is part of a continued line. (Bug#5943)
6293
7d4e45f8
DN
62942010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
6295
6296 * s/freebsd.h: Restore osreldate.h include.
6297 Suggested by Naohiro Aota.
6298
5ba5ec85
J
62992010-04-16 Jan Djärv <jan.h.d@swipnet.se>
6300
6301 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
6302
20af301d
CY
63032010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
6304
6305 * s/cygwin.h: Avoid linking against static libgcc.
6306
a4b000fb
JL
63072010-04-15 Juri Linkov <juri@jurta.org>
6308
6309 * window.c: Add Qscroll_command.
6310 Remove Vscroll_preserve_screen_position_commands.
6311 (window_scroll_pixel_based, window_scroll_line_based): Check the
6312 `scroll-command' property on the last command instead of searching
6313 the last command in Vscroll_preserve_screen_position_commands.
6314 (syms_of_window): Initialize and staticpro `Qscroll_command'.
6315 Put Qscroll_command property on Qscroll_up and Qscroll_down.
6316 (scroll-preserve-screen-position): Doc fix.
6317 (Vscroll_preserve_screen_position_commands): Remove variable.
6318
bc319ba4
DN
63192010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
6320
6bb24457
DN
6321 * xdisp.c (message): Do not use NO_ARG_ARRAY.
6322
19d4c244
DN
63232010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
6324
6325 Reduce cpp use in Makefile.in.
6326 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
6327 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
6328 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
6329 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
6330 (CRT0_COMPILE): Remove, inline it in the only user.
6331
32129746
JL
63322010-04-14 Juri Linkov <juri@jurta.org>
6333
6334 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
6335 `scroll-up-command' and `M-v' from `scroll-down' to
6336 `scroll-down-command'.
6337
9013a7f8
JL
63382010-04-14 Juri Linkov <juri@jurta.org>
6339
6340 * window.c (Vscroll_preserve_screen_position_commands): New variable
6341 with the default value as the list of Qscroll_down and Qscroll_up.
6342 (window_scroll_pixel_based, window_scroll_line_based): Search the
6343 last command in the list Vscroll_preserve_screen_position_commands
6344 instead of comparing with Qscroll_up and Qscroll_down.
6345
4bef8d26
JD
63462010-04-13 Jan Djärv <jan.h.d@swipnet.se>
6347
92848133
JD
6348 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
6349 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
6350 does that.
6351
4bef8d26
JD
6352 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
6353 to zero.
6354
58b963f7
SM
63552010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
6356
84164a0d
SM
6357 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
6358
2b0a91e7
SM
6359 Try to solve the problem of spurious EOF chars in long lines of text
6360 sent to interactive subprocesses.
6361 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
6362 (system_process_attributes): Remove unused var `ttotal'.
6363 * process.c (send_process): Don't bother breaking long line with EOF
6364 chars when talking to ttys any more.
6365 (wait_reading_process_output): Output a warning when called in such
6366 a way that it could block without being interruptible.
6367
58b963f7
SM
6368 Try to detect file modification within the same second.
6369 * buffer.h (struct buffer): New field modtime_size.
6370 * buffer.c (reset_buffer): Initialize it.
6371 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
6372 (Fverify_visited_file_modtime): Check it.
6373 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
6374 (Fset_visited_file_modtime): Set (or clear) it.
6375
01f5787b
SM
63762010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
6377
6378 * process.c (status_notify): Remove unused var `ro'.
6379
83725342
JD
63802010-04-12 Jan Djärv <jan.h.d@swipnet.se>
6381
6382 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
6383 more than one visual (Bug#5938).
6384
b9465836
DN
63852010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
6386
50426a04
JB
6387 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
6388 Undefine.
b9465836 6389
8d9c8ece
DN
63902010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
6391
b1f52161
DN
6392 Remove C_SWITCH_SYSTEM_TEMACS.
6393 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
6394 (malloc, realloc, free): Use emacs, not temacs for conditional
6395 definition.
6396
6397 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
6398 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
6399
8d9c8ece
DN
6400 Use autoconf, not cpp for some variables.
6401 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
6402 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
6403 (ALL_CFLAGS): Use them as make variables.
6404 (really-lwlib, really-oldXMenu): Do not pass them.
6405
1ecb2d3f
JD
64062010-04-11 Jan Djärv <jan.h.d@swipnet.se>
6407
6408 * xmenu.c (apply_systemfont_to_dialog): New.
6409 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
6410
3a4fa2f2
SM
64112010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
6412
97e53006
SM
6413 * process.c (exec_sentinel): Preserve current-buffer.
6414
3a4fa2f2
SM
6415 * process.c (read_process_output): Move the save-current-buffer to
6416 apply to both the filter and the non-filter branches.
6417
88df7221
DN
64182010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
6419
6420 * s/msdos.h (UNEXEC): New definition.
6421
5634ff85
YM
64222010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6423
6eff5c3d
YM
6424 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
6425 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
6426
6427 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
6428 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
6429 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
6430 TRY_WINDOW_CHECK_MARGINS.
6431
6432 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
6433 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
6434 width only when it is for padding.
5634ff85 6435
b13aef54
J
64362010-04-09 Jan Djärv <jan.h.d@swipnet.se>
6437
6438 * xfns.c (Fx_show_tip): Call try_window in a loop until
6439 fonts_changed_p is zero (Bug#2423).
6440
21d28484
EZ
64412010-04-08 Eli Zaretskii <eliz@gnu.org>
6442
6443 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
6444 the end of TEXT_AREA. (Bug#5856)
6445
0269ef77
JD
64462010-04-08 Jan Djärv <jan.h.d@swipnet.se>
6447
6448 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
6449 HAVE_GCONF.
6450
5930fe97
EZ
64512010-04-08 Eli Zaretskii <eliz@gnu.org>
6452
6453 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
6454 prev.orig_type, for resolving type of NSM. (Bug#5858)
6455
99852628
JD
64562010-04-08 Jan Djärv <jan.h.d@swipnet.se>
6457
6458 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
6459 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
6460 in current_font.
6461 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
6462 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
6463 New functions.
6464 (syms_of_xsettings): Initialize current_font.
6465 defsubr Sfont_get_system_normal_font.
99852628 6466
686b968e
JB
6467 * xsettings.h (Ffont_get_system_normal_font)
6468 (xsettings_get_system_normal_font): Declare.
99852628
JD
6469
6470 * xfns.c (extern xlwmenu_default_font): Remove.
6471 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
6472 to xlwmenu.c.
6473
6474 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
6475 menu items in UTF-8.
6476
6477 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
6478 (apply_systemfont_to_menu): New function.
6479 (set_frame_menubar, create_and_show_popup_menu): Call
6480 apply_systemfont_to_menu.
6481
7fc874c4
J
64822010-04-07 Jan Djärv <jan.h.d@swipnet.se>
6483
6484 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
6485 FRAME_LINE_TO_PIXEL_Y.
6486
6487 * xterm.c (x_set_window_size_1): Don't add border_width/height to
6488 pixelwidth/height.
6489
863bf481
DN
64902010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
6491
5e5a3b92
DN
6492 Simplify code for HP machines.
6493 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
6494 for GNU_LINUX, not needed.
6495 (UNEXEC, NEED_BSDTTY): Move definitions...
6496 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
6497
863bf481
DN
6498 * m/iris4d.h (UNEXEC): Move definition ...
6499 * s/irix6-5.h (UNEXEC): ... here.
6500
3e6bec3b
JD
65012010-04-04 Jan Djärv <jan.h.d@swipnet.se>
6502
6503 * xfns.c (set_machine_and_pid_properties): New function.
6504 (Fx_create_frame): Call set_machine_and_pid_properties.
6505
2912322b
SM
65062010-04-03 Eli Zaretskii <eliz@gnu.org>
6507
1502b819
EZ
6508 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
6509 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
6510 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
6511
2912322b
SM
6512 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
6513 in this function. (Bug#5703)
6514
65152010-04-03 Chong Yidong <cyd@stupidchicken.com>
6516
6517 * nsterm.h: Fix last change.
6518
c435b432
DN
65192010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
6520
a568f507
DN
6521 * m/intel386.h (NO_REMAP): Move definition ...
6522 * s/msdos.h (NO_REMAP): ... here.
6523
4cd9f6c2
DN
6524 * m/vax.h (CRT0_DUMMIES): Remove, unused.
6525
c435b432
DN
6526 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
6527 used on those platforms.
6528
42a2c622
DN
65292010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
6530
6531 Remove extern errno declarations.
6532 * xterm.c:
6533 * xrdb.c:
6534 * w32term.c:
6535 * unexec.c:
6536 * unexaix.c:
6537 * sysdep.c:
6538 * process.c:
6539 * lread.c:
6540 * keyboard.c:
6541 * floatfns.c:
6542 * filelock.c:
6543 * fileio.c:
6544 * emacs.c (main):
6545 * ecrt0.c:
6546 * dispnew.c:
6547 * callproc.c:
6548 * buffer.c: Remove errno extern declarations.
6549 * s/netbsd.h (NEED_ERRNO): Remove.
6550
8224f93d
DN
65512010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
6552
6553 Remove all uses of LIBX11_SYSTEM.
6554 * Makefile.in (LIBX11_SYSTEM): Remove.
6555 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
6556 instead.
6557
814062c7
EZ
65582010-04-01 Eli Zaretskii <eliz@gnu.org>
6559
ed68db4d
EZ
6560 Remove support for DJGPP v1.x (bug#5813).
6561
6562 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
6563 * s/msdos.h:
6564 * unexec.c (make_hdr, copy_text_and_data):
6565 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 6566 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
6567 (IT_set_terminal_modes, __write, _rename, gethostname)
6568 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
6569 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
6570 the value of __DJGPP__.
ed68db4d
EZ
6571 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
6572 compatibility code.
8224f93d
DN
6573 * lread.c:
6574 * gmalloc.c (memalign):
6575 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
6576 * emacs.c (main):
6577 * dosfns.c (init_dosfns):
ed68db4d
EZ
6578 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
6579
52f4d8d5
EZ
65802010-04-01 Eli Zaretskii <eliz@gnu.org>
6581
814062c7
EZ
6582 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
6583 string with `cursor' property comes from an `after-string'
6584 overlay. (Bug#5816)
6585
0dc2e11d
GM
65862010-04-01 Glenn Morris <rgm@gnu.org>
6587
6588 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
6589 Define as Makefile variables.
6590 (LIBX): Use above variables rather than directly using autoconf.
6591
1d29df59
DN
65922010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
6593
6594 Clean up BSD_SYSTEM use.
6595 * xterm.c:
6596 * process.c:
6597 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
6598 for including <sys/ioctl.h>.
6599 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
6600 code is only used for MSDOS.
6601
1546c559
JL
66022010-03-31 Juri Linkov <juri@jurta.org>
6603
6604 * image.c: Add `Qextension_data'.
6605 (syms_of_image): Initialize and staticpro `Qextension_data'.
6606 (Fimage_metadata): Rename from `Fimage_extension_data'.
6607 (gif_load): Put GIF extension data to the property
6608 `Qextension_data'.
6609
6521c534
CY
66102010-03-31 Chong Yidong <cyd@stupidchicken.com>
6611
6612 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
6613 * nsterm.h: Fix prototype.
6614
52c30783
EZ
66152010-03-31 Eli Zaretskii <eliz@gnu.org>
6616
6617 * xdisp.c (highlight_trailing_whitespace): Support highlight of
6618 trailing whitespace in right-to-left rows.
6619
855a0da7
SM
66202010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
6621
6622 Get rid of the direct_output optimizations.
6623 * keyboard.c (nonundocount): Remove extern declaration.
6624 (command_loop_1): Remove brittle optimisation for cheap and
6625 common operations.
6626 * xdisp.c (redisplay_internal): Don't bother checking
6627 redisplay_performed_directly_p any more.
6628 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
6629 any more.
6630 * dispnew.c (redisplay_performed_directly_p)
6631 (direct_output_for_insert, direct_output_forward_char):
6632 * dispextern.h (redisplay_performed_directly_p)
6633 (direct_output_for_insert, direct_output_forward_char): Remove.
6634 * cmds.c (nonundocount): Make it static.
6635
85738751 66362010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
6637
6638 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
6639
85738751 66402010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
6641
6642 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
6643 invisible (Bug#5766).
6644
85738751 66452010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 6646
855a0da7
SM
6647 * xdisp.c (x_consider_frame_title, update_window_cursor):
6648 Remove HAVE_NS conditionals.
194d44e7 6649 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
6650
6651 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
6652 filename for the title.
6653 (ns_set_doc_edited): Do nothing if the selected window is a
6654 minibuffer window.
6655
6656 * nsterm.h: Add prototypes for ns_set_name_as_filename and
6657 ns_set_doc_edited.
6658
6659 * nsterm.m: Remove unneeded prototype.
6660
85738751 66612010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
6662
6663 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
6664 in the DOC file. (Bug#5336)
6665
85738751 66662010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
6667
6668 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
6669
75d1428c
SM
66702010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
6671
6672 * window.c (keys_of_window): Remove redundant/overridden bindings.
6673
82043cfb
EZ
66742010-03-30 Eli Zaretskii <eliz@gnu.org>
6675
6676 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
6677 Restore original behavior when the iterator is not bidi_p.
6678
b5dd0ae7
DN
66792010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
6680
6681 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
6682
bd924a5d
EZ
66832010-03-30 Eli Zaretskii <eliz@gnu.org>
6684
6685 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
6686 are outside the range of cached character positions.
6687
3580374b
JB
66882010-03-30 Juanma Barranquero <lekktu@gmail.com>
6689
6690 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
6691
a7b02820
EZ
66922010-03-30 Eli Zaretskii <eliz@gnu.org>
6693
6694 Initial support for bidirectional editing.
6695
6696 * Makefile.in (obj): Include bidi.o.
6697 (bidi.o): New target.
6698
6699 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
6700 ($(BLD)/bidi.$(O)): New target.
6701
6702 * bidi.c: New file.
6703
6704 * buffer.h (struct buffer): New members bidi_display_reordering
6705 and bidi_paragraph_direction.
6706
6707 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
6708 and bidi_paragraph_direction.
6709 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
6710 and bidi-paragraph-direction.
6711 (Fbuffer_swap_text): Swap the values of
6712 bidi_display_reordering and bidi_paragraph_direction.
6713
6714 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
6715 (bidi_type_t, bidi_dir_t): New types.
6716 (bidi_saved_info, bidi_stack, bidi_it): New structures.
6717 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
6718 prev_stop, base_level_stop, and eol_pos.
6719 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
6720 (IT_STACK_SIZE): Enlarge to 5.
6721 (struct glyph_row): New member reversed_p.
6722 <string_buffer_position>: Update prototype.
6723 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
6724 glyph_row if bidi_it.paragraph_dir == R2L.
6725 (struct glyph): New members resolved_level and bidi_type.
6726
6727 * dispnew.c (direct_output_forward_char): Give up if we need bidi
6728 processing or buffer's direction is right-to-left.
6729 (prepare_desired_row): Preserve the reversed_p flag.
6730 (row_equal_p): Compare the reversed_p attributes as well.
6731
6732 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
6733 bidi_init_it and set it->paragraph_embedding from the current
6734 buffer's value of bidi_paragraph_direction.
6735 (reseat_1): Initialize bidi_it.first_elt.
6736 (set_iterator_to_next, next_element_from_buffer): Use the value of
6737 paragraph_embedding to determine the paragraph direction.
6738 (set_iterator_to_next): Under bidi reordering, call
6739 bidi_get_next_char_visually. Call bidi_paragraph_init if the
6740 new_paragraph flag is set in the bidi iterator.
6741 (next_element_from_buffer): If bidi_it.first_elt is set,
6742 initialize paragraph direction and find the first character to
6743 display in the visual order. If reseated to a middle of a line,
6744 prime the bidi iterator starting at the line's beginning. Handle
6745 the situation where we overstepped stop_charpos due to
6746 non-linearity of the bidi iteration. Likewise for when we back up
6747 beyond the previous stop_charpos. When moving across stop_charpos,
6748 record it in prev_stop.
6749 (display_line): Set row->end and it->start for the next row to the
6750 next character in logical order. Always extend reversed_p rows to
6751 the end of line, even if they end at ZV. Copy the reversed_p flag
6752 to the next glyph row. Keep calling set_cursor_from_row for
6753 bidi-reordered rows even if we already have a possible candidate
6754 for cursor position. Set row_end after all the row's glyphs have
6755 been produced, by looping over the glyphs. Record the position
6756 after EOL in it->eol_pos, and use it to set end_pos of the last
6757 row produced for a continued line.
6758 <Qright_to_left, Qleft_to_right>: New variables.
6759 (syms_of_xdisp): Initialize and staticpro them.
6760 (string_buffer_position_lim): New function.
6761 (string_buffer_position): Most of code moved to
6762 string_buffer_position_lim. Last argument and return value are
6763 now EMACS_INT; all callers changed.
6764 (set_cursor_from_row): Rewritten to support bidirectional text and
6765 reversed glyph rows.
6766 (text_outside_line_unchanged_p, try_window_id): Disable
6767 optimizations if we are reordering bidirectional text and the
6768 paragraph direction can be affected by the change.
6769 (append_glyph, append_composite_glyph)
6770 (produce_image_glyph, append_stretch_glyph): Set the
6771 resolved_level and bidi_type members of each glyph.
6772 (append_glyph): If the glyph row is reversed, prepend the glyph
6773 rather than appending it.
6774 (handle_stop_backwards): New function.
6775 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
6776 (reseat): call handle_stop_backwards to recompute prev_stop and
6777 base_level_stop for the new position.
6778 (handle_invisible_prop): Under bidi iteration, skip invisible text
6779 using bidi_get_next_char_visually. If we are `reseat'ed, init the
6780 paragraph direction. Update IT->prev_stop after skipping
6781 invisible text.
6782 (move_it_in_display_line_to): New variables prev_method
6783 and prev_pos. Compare for strict equality in
6784 BUFFER_POS_REACHED_P.
6785 (try_cursor_movement): Examine all the candidate rows that occlude
6786 point, to return the best match. If rows are bidi-reordered
6787 and point moved backwards, back up to the row that is not a
6788 continuation line, and start looking for a suitable row from
6789 there.
6790
6791 * term.c (append_glyph): Reverse glyphs by pre-pending them,
6792 rather than appending, if the glyph_row's reversed_p flag is set.
6793 Set the resolved_level and bidi_type members of each glyph.
6794
6795 * .gdbinit (pbiditype): New command.
6796 (pgx): Use it to display bidi level and type of the glyph.
6797 (pitx): Display some bidi information about the iterator.
6798 (prowlims, pmtxrows): New commands.
6799
32a8894e
DN
68002010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
6801
6802 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
6803 * s/usg5-4.h (LIBS_DEBUG):
6804 * s/irix6-5.h (C_DEBUG_SWITCH):
6805 * s/gnu-linux.h (LIBS_DEBUG):
6806 * s/darwin.h (LIBS_DEBUG):
6807 * s/bsd-common.h (LIBS_DEBUG):
6808 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
6809 * m/iris4d.h (LIBS_DEBUG):
6810 * m/hp800.h (LIBS_DEBUG): Remove definitions.
6811
6812 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
6813 (LIBS_DEBUG): Remove definition.
6814
649dbf36
CY
68152010-03-27 Chong Yidong <cyd@stupidchicken.com>
6816
6817 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
6818 Windows.
6819
cad4261f
YM
68202010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6821
6822 * process.c (Fmake_network_process): Don't call turn_on_atimers around
6823 `connect' (Bug#5723).
6824
cd591dbc
HE
68252010-03-25 Helmut Eller <eller.helmut@gmail.com>
6826
6827 * process.c (Fmake_network_process): Call `select' for interrupted
6828 `connect' rather than creating new socket (Bug#5173).
6829
e867cb5d 68302010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
6831
6832 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
6833
6834 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
6835
6836 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
6837
e867cb5d 68382010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
6839
6840 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
6841 XLoadQueryFont.
6842
e867cb5d 68432010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
6844
6845 * coding.c (decode_coding_ccl): Fix previous change for the
6846 multibyte case.
fb608df3
KH
6847 (encode_coding_ccl): Don't setup ccl program here. Fix for the
6848 case that the output buffer is fullfilled.
6849 (encode_coding): Setup ccl program here.
fbdc1721 6850
5845f0ed
DN
68512010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
6852
814fb708
DN
6853 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
6854
5845f0ed
DN
6855 Simplify LIBS_MACHINE definitions.
6856 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
6857 * m/iris4d.h (LIBS_MACHINE): Likewise.
6858 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
6859 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 6860 * s/netbsd.h: Remove commented out code.
5845f0ed 6861
b7064064
DN
68622010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
6863
df7734b2
DN
6864 Remove dead code dealing with POSIX_SIGNALS.
6865 * atimer.c (set_alarm): Remove dead code, all USG systems define
6866 POSIX_SIGNALS.
6867 * data.c (arith_error): Likewise.
6868 * keyboard.c (input_available_signal, handle_user_signal)
6869 (interrupt_signal): Likewise.
6870 * process.c (sigchld_handler): Likewise.
6871 (create_process): Remove if 0 code. Remove HPUX conditional when
6872 !defined (POSIX_SIGNALS), it cannot be true.
6873 * syssignal.h: Remove USG5_4 and USG conditionals when
6874 !POSIX_SIGNALS, they cannot be true.
6875
b7064064
DN
6876 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
6877 NO_SOCK_SIGIO, not used anymore.
6878
55da5ee3
DN
68792010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
6880
0be96e3a
DN
6881 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
6882 support vax on BSDs.
6883
55da5ee3
DN
6884 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
6885 * s/aix4-2.h (ORDINARY_LINK): ... here.
6886
c0282183
AS
68872010-03-21 Andreas Schwab <schwab@linux-m68k.org>
6888
82c3d67a
AS
6889 * Makefile.in (abs_builddir): Define.
6890 (bootstrap_exe): Use it.
6891 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 6892
3613edce
SM
68932010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
6894
6895 * Makefile.in (bootstrap_exe): Use an absolute name.
6896
7f110ddc
DN
68972010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
6898
22e87574
DN
6899 Remove support for old GNU/Linux using libc version 5.
6900 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
6901 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
6902
05a670e6
DN
6903 Consolidate redundant definitions in s/bsd-common.h.
6904 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6905 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6906 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
6907 doing it in all files that include this one.
6908 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6909 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6910 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6911 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6912 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6913 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6914 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6915 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6916 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6917
2968f561
DN
6918 Consolidate redundant definitions.
6919 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
6920 it's undefined in all files that include this one.
6921 (POSIX_SIGNALS): Define here instead of doing it in all files that
6922 include this one.
6923 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6924 (POSIX_SIGNALS): Do not define.
6925 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6926 (POSIX_SIGNALS): Do not define.
6927 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6928 (POSIX_SIGNALS): Do not define.
6929
15d25dc0
DN
6930 Remove support for old UNIX System V systems.
6931 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
6932 * s/usg-5-4-2.h: Remove.
6933
07e339e4
DN
6934 Remove support for Solaris on PPC and for old versions.
6935 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
6936 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
6937 that cancel each other.
6938 * s/sol2-3.h:
6939 * s/sol2-4.h:
6940 * s/sol2-5.h: Remove.
6941 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
6942 (NO_REMAP): Remove, unused.
6943 (UNEXEC): Move definition ...
6944 * s/aix4-2.h (UNEXEC): ... here.
6945
7f110ddc
DN
6946 * s/openbsd.h: Remove support for non-ELF and for systems that do
6947 not support shared libraries.
6948 * s/netbsd.h:
6949 * s/freebsd.h: Likewise.
6950
605f35cd
DN
69512010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
6952
6953 Remove non-working support for lynxos 3.0.
6954 * s/lynxos.h: Remove file.
6955
6956 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
6957 COFF_BSD_SYMBOLS, nothing defines it anymore.
6958
aed71cf4
DN
69592010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
6960
6961 Remove obsolete uses of HAVE_SHM.
6962 * emacs.c (standard_args):
6963 (Fdump_emacs):
6964 (syms_of_emacs): Remove code depending on HAVE_SHM.
6965
6966 * alloc.c: Remove HAVE_SHM dependent definition.
6967
6968 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
6969
aded53ff
GM
69702010-03-18 Glenn Morris <rgm@gnu.org>
6971
17284745
GM
6972 * emacs.c (USAGE4): Hard-code bug address.
6973 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
6974 (bug_reporting_address): Remove.
6975 (main): Don't call bug_reporting_address.
6976
aded53ff
GM
6977 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
6978 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
6979
303500aa
CY
69802010-03-15 Chong Yidong <cyd@stupidchicken.com>
6981
6982 * xfns.c (Fx_create_frame):
6983 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
6984 on left.
6985
cef3058f
CY
69862010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
6987
6988 * editfns.c (Fformat): Account for string precision when computing
6989 field width (Bug#5710).
6990
a647d59d
CY
69912010-03-12 Chong Yidong <cyd@stupidchicken.com>
6992
4fa42018
CY
6993 * xfns.c (Fx_create_frame): Set default to Qright.
6994
a647d59d
CY
6995 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
6996 all window systems.
6997
6da23aaa
EZ
69982010-03-12 Eli Zaretskii <eliz@gnu.org>
6999
a96f6398 7000 These changes remove termcap.c from the build on Posix platforms.
83d02def 7001 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
7002 (MSDOS_OBJ): ...to here.
7003 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
7004 now identical to when LIBS_TERMCAP is defined.
7005
7006 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
7007
7008 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
7009
a96f6398 7010 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 7011
288f9fc0
CY
70122010-03-10 Chong Yidong <cyd@stupidchicken.com>
7013
7014 * Branch for 23.2.
7015
d48cd3f4
SM
70162010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
7017
7018 Cleanup setup of gl_state in various parts of the code.
7019 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
7020 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
7021 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
7022 (skip_chars):
7023 * regex.c (regex_compile): Use it.
7024 (re_compile_pattern): Don't set gl_state.current_syntax_table since
7025 it's now set in regex_compile when/if we need it.
7026
618db430
SM
70272010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
7028
c0335e02
SM
7029 Make it possible to C-g in a tight bytecode loop again (bug#5680).
7030 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
7031 (QUIT): Use it to consolidate code and remove redundancy.
7032 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
7033
254c06a8
SM
7034 * regex.c (regex_compile): Setup gl_state as well.
7035
618db430
SM
7036 * syntax.c (skip_chars): Setup gl_state (bug#3823).
7037 (in_classes): Use CONSP before XCAR/XCDR.
7038
233f0c9f
CY
70392010-03-03 Chong Yidong <cyd@stupidchicken.com>
7040
7041 * keymap.c (Fwhere_is_internal): Use Fequal to compare
7042 definitions, so that keyboard macros are correctly handled
7043 (Bug#5481).
7044
75f80e63
EZ
70452010-03-02 Eli Zaretskii <eliz@gnu.org>
7046
7047 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
7048 text that could be relocated inside the call to emacs_mule_char.
7049 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
7050 (CODING_DECODE_CHAR): Add a comment describing its purpose.
7051
dcfb9bc4
KH
70522010-03-02 Kenichi Handa <handa@m17n.org>
7053
fc9a17bc
KH
7054 * character.c (parse_str_as_multibyte): Fix handling of the
7055 multibyte form of raw-bytes.
7056 (str_as_multibyte): Likewise.
7057
dcfb9bc4
KH
7058 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
7059 form of raw-bytes.
7060
412c01b6
CY
70612010-02-28 Chong Yidong <cyd@stupidchicken.com>
7062
7063 * charset.c (load_charset_map_from_file)
7064 (load_charset_map_from_vector): Zero out allocated
7065 charset_map_entries before using them.
7066
df7e1ea0
AS
70672010-02-27 Andreas Schwab <schwab@linux-m68k.org>
7068
7069 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
7070
fe69a722
CY
70712010-02-27 Chong Yidong <cyd@stupidchicken.com>
7072
4ed28cf4
CY
7073 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
7074 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 7075
7379cfce
KH
70762010-02-26 Kenichi Handa <handa@m17n.org>
7077
f88cc4d6
KH
7078 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
7079
7379cfce
KH
7080 * xdisp.c (reseat_to_string): Fix previous change.
7081
cf2fdcfb
CY
70822010-02-26 David Reitter <david.reitter@gmail.com>
7083
7084 * nsfont.m (nsfont_draw): ns_antialias_text should be a
7085 Lisp_Object (Bug#4736).
7086
cc6c7c75
KH
70872010-02-25 Kenichi Handa <handa@m17n.org>
7088
7089 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
7090
32e737d7
JD
70912010-02-24 Jan Djärv <jan.h.d@swipnet.se>
7092
7093 * xterm.c (XTflash): Move declarations before statements.
7094
7095 * gtkutil.c (xg_get_gdk_display): Remove (unused).
7096 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
7097 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
7098 (xg_create_tool_bar): Remove unused variables.
7099 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 7100 (xg_create_frame_widgets): Remove variable grav.
32e737d7 7101
676cae9f
CY
71022010-02-21 Chong Yidong <cyd@stupidchicken.com>
7103
7104 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
7105
886cc2b8
SM
71062010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
7107
7108 * term.c (fatal): Add a final \n if needed (bug#5596).
7109
ddb2d8e2
CY
71102010-02-18 Chong Yidong <cyd@stupidchicken.com>
7111
7112 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
7113
2a4f8d3d
GM
71142010-02-18 Glenn Morris <rgm@gnu.org>
7115
7116 * callint.c (Finteractive): Doc fix.
7117
ebaf11b6
KH
71182010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
7119
886cc2b8
SM
7120 * coding.c (record_conversion_result):
7121 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
7122 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
7123 memory allocation error.
7124
d0396581
KH
71252010-02-17 Kenichi Handa <handa@m17n.org>
7126
886cc2b8
SM
7127 * coding.c (decode_coding_ccl): Don't setup ccl program here.
7128 Fix for the case that the output buffer is fullfilled.
d0396581
KH
7129 (decode_coding): Setup ccl program here. Keep looping when the
7130 decoder stopped because the output buffer is
7131 fullfilled (bug#5534).
7132
7133 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
7134
98599f74
JD
71352010-02-13 Jan Djärv <jan.h.d@swipnet.se>
7136
471e4f04 7137 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 7138 bug #5571.
886cc2b8 7139 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 7140 overdrawn.
98599f74 7141
182659ae
JD
71422010-02-10 Jan Djärv <jan.h.d@swipnet.se>
7143
7144 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
7145 doing_interact here.
7146 (ice_connection_closed): New function.
7147 (x_session_check_input, smc_die_CB, ice_io_error_handler)
7148 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
7149 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
7150 returns I/O error.
7151 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
7152 bug #5512.
7153
9be32c4e 71542010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
7155
7156 * nsfont.m (nsfont_open): The system's value for the font descent
7157 is negative, so round it down to avoid clipping.
7158
a2f3eb19
CY
71592010-02-06 Chong Yidong <cyd@stupidchicken.com>
7160
7161 * charset.c (load_charset_map_from_file)
7162 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 7163 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 7164
3088147c
CY
71652010-02-05 Chong Yidong <cyd@stupidchicken.com>
7166
7167 * charset.c (load_charset_map_from_file): Allocate large
7168 charset_map_entries structure on the heap rather than the stack.
7169 (Bug#5526).
7170
b57d9029
KH
71712010-01-31 Kenichi Handa <handa@m17n.org>
7172
7173 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 7174 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 7175
c67d885b
CY
71762010-01-31 Chong Yidong <cyd@stupidchicken.com>
7177
7178 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
7179 <deactivated@gmail.com> (Bug#3605).
7180
8fab2362
CY
71812010-01-31 David De La Harpe Golden <david@harpegolden.net>
7182
7183 * fileio.c (Frename_file): Correctly rename symlinks to
7184 directories (Bug#5496).
7185
cb2a62f2
CY
71862010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
7187
7188 * nsterm.m (ns_ring_bell): Handle visible bell like X.
7189
944c7a26
AS
71902010-01-30 Andreas Schwab <schwab@linux-m68k.org>
7191
7192 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
7193
c024ac08
CY
71942010-01-29 Chong Yidong <cyd@stupidchicken.com>
7195
7196 * frame.c (DEFAULT_ROWS): Change default to 35.
7197
7198 * xfns.c (x_default_font_parameter): Change default XFT font to
7199 monospace-10 (Bug#3643).
7200
af93af83
EZ
72012010-01-29 Eli Zaretskii <eliz@gnu.org>
7202
7203 * w32inevt.c (key_event): Remove unnecessary comparison of
7204 event->uChar.AsciiChar with 128.
7205
ca0eb708
CY
72062010-01-28 Chong Yidong <cyd@stupidchicken.com>
7207
b242dbfc
CY
7208 * fileio.c (Frename_file): Fix last change (Bug#5487).
7209
ca0eb708
CY
7210 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
7211
7212 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
7213
45d45af5
JD
72142010-01-28 Jan Djärv <jan.h.d@swipnet.se>
7215
7216 * xfns.c (Fx_create_frame): Remove window size matching code from
7217 2010-01-15.
a73f9c9d 7218 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 7219
7e233730
JR
72202010-01-27 Jason Rumney <jasonr@gnu.org>
7221
7222 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 7223 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 7224
86e893e3
KH
72252010-01-27 Kenichi Handa <handa@m17n.org>
7226
7227 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 7228 pattern string (Bug#4209).
86e893e3 7229
8719abec
CY
72302010-01-27 David De La Harpe Golden <david@harpegolden.net>
7231
7232 * fileio.c (Frename_file): Call copy-directory and
7233 delete-directory for directories, in order to handle cross-device
7234 renaming (Bug#3353).
7235
844794c8
JD
72362010-01-25 Jan Djärv <jan.h.d@swipnet.se>
7237
aa3e13b5 7238 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 7239 sizes 24 and 10. Bug #3643.
844794c8 7240
bd4b5750
SM
72412010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
7242
8dc1adf6 7243 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
7244 * keymap.c (shadow_lookup): Add `remap' arg.
7245 (describe_map, describe_vector): Update calls to shadow_lookup.
7246 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
7247 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
7248 perform remapping during shadow_lookup check of remapped_sequences.
7249
285d07e2
CY
72502010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
7251
7252 * image.c (png_load): Use png_sig_cmp instead of the obsolete
7253 png_check_sig, which has been removed in libpng 1.4.
7254
c6d09b8d
CY
72552010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
7256
7257 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
7258 lacks this header file).
7259
3d782998
YM
72602010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7261
7262 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
7263 as in Emacs 22.
7264
2aff7c53
YM
72652010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7266
7267 * lisp.h (make_pure_string): String pointer arg now points to const.
7268
7269 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
7270 args now point to const.
7271
74327f7a
EZ
72722010-01-22 Eli Zaretskii <eliz@gnu.org>
7273
7274 * lread.c (Fload): Don't treat files without .elc extension as
7275 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
7276 them. (bug#5303)
7277
4d1e6632
KH
72782010-01-20 Kenichi Handa <handa@m17n.org>
7279
7280 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
7281 treat the source as actual byte sequence.
7282
1fdede8f
AM
72832010-01-19 Alan Mackenzie <acm@muc.de>
7284
7285 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 7286 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
7287 `signal_after_change_p' to `coherent_change_p', and make the
7288 invocation of `modify_region' conditional on it.
7289
67477f30
JD
72902010-01-19 Jan Djärv <jan.h.d@swipnet.se>
7291
7292 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
7293 for debug purpose.
7294 (syms_of_xsettings): Declare xft-settings.
7295
244b023e
CY
72962010-01-18 Chong Yidong <cyd@stupidchicken.com>
7297
7298 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
7299
617364fe
CY
73002010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
7301
7302 * xterm.c (event_handler_gdk): Block input (Bug#5037).
7303
4fe22cdf
CY
73042010-01-16 Chong Yidong <cyd@stupidchicken.com>
7305
7306 * emacs.c (standard_args): Adjust arg priorities to reflect how
7307 they are processed in startup.el.
7308
e118d2be
AS
73092010-01-16 Andreas Schwab <schwab@linux-m68k.org>
7310
7311 * Makefile.in (lisp, shortlisp): Update.
7312
523ae620
SM
73132010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
7314
7315 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
7316 code, link the new kboard into all_kboard before running Lisp code,
7317 and protect the new terminal with GCPRO (Bug#5365).
7318 (x_term_init): Remove unused var `atom'.
7319 (x_delete_display, x_delete_terminal): Remove unused var `i'.
7320
f0d13888
JD
73212010-01-15 Jan Djärv <jan.h.d@swipnet.se>
7322
7323 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
7324 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
7325 to find out usable size of the desktop. Don't make frames larger than
ac146f82 7326 this. Bug #3643.
f0d13888 7327
cc320f07
KH
73282010-01-15 Kenichi Handa <handa@m17n.org>
7329
7330 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
7331
7ffdf101
CY
73322010-01-15 Chong Yidong <cyd@stupidchicken.com>
7333
7334 * nsterm.m (Qnone): Define.
7335
7336 * nsfns.m (Qnone): Move definition to nsterm.m.
7337
d12bd917
KH
73382010-01-14 Kenichi Handa <handa@m17n.org>
7339
7340 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
7341 systems.
7342
d9a7c140
KH
73432010-01-14 Kenichi Handa <handa@m17n.org>
7344
7345 Make auto-composition work on all buffers even if they are
7346 fundamental mode.
7347
7348 * composite.c (Vauto_composition_mode): New variable.
7349 (composition_compute_stop_pos): Check Vauto_composition_mode
7350 instead of Vauto_composition_function.
7351 (composition_adjust_point, Ffind_composition_internal): Likewise.
7352 (syms_of_composite): Declare Lisp variable
7353 "auto-composition-mode" here.
7354
63286bb2
CY
73552010-01-13 Chong Yidong <cyd@stupidchicken.com>
7356
7357 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
7358 during call to vendor-specific-keysyms (Bug#5365).
7359
c2623ee7
YM
73602010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7361
7362 * keyboard.c (input_available_signal) [SYNC_INPUT]:
7363 Call SIGNAL_THREAD_CHECK (Bug#5333).
7364
7365 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
7366 Call SIGNAL_THREAD_CHECK.
7367
0b5397c2
SM
73682010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
7369
7370 Try to fix bug#5314. This is probably not the final word, tho.
7371 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
7372 recent-auto-save-p as a side-effect.
7373 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
7374 * buffer.c (Fkill_buffer, reset_buffer):
7375 * editfns.c (Fsubst_char_in_region):
7376 * fileio.c (Finsert_file_contents, Fdo_auto_save)
7377 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
7378
dc954cb2
KH
73792010-01-13 Kenichi Handa <handa@m17n.org>
7380
7381 Display buffer name, etc. in mode line by composing correctly.
7382
7383 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
7384 STRING is not nil.
0b5397c2 7385 (display_mode_element): Adjust for the change of
dc954cb2
KH
7386 decode_mode_spec and display_line.
7387 (decode_mode_spec): Change arg MULTIBYTE to STRING.
7388 (display_string): Handle the case that STRING is non-null and
7389 LISP_STRING is not nil.
7390
0b5397c2
SM
7391 * xterm.c (x_draw_composite_glyph_string_foreground):
7392 Pay attention to s->face->overstrike.
dc954cb2
KH
7393
7394 * composite.c (composition_reseat_it): Don't check PT if STRING is
7395 non nil.
7396
4a00eaca
YM
73972010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7398
7399 * keyboard.c (read_char): Don't apply previous change when current
7400 buffer is unchanged by command execution.
7401
60abb287
JD
74022010-01-12 Jan Djärv <jan.h.d@swipnet.se>
7403
7404 * keyboard.c (read_char): Return after executing from special map.
7405
893db5bc
GM
74062010-01-12 Glenn Morris <rgm@gnu.org>
7407
7408 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
7409 bug-gnu-emacs rather than emacs-pretest-bug.
7410
4d03ece0
CY
74112010-01-11 Chong Yidong <cyd@stupidchicken.com>
7412
7413 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
7414 initializing the Lisp variables that depend on them.
7415
1df47e38
YM
74162010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7417
7418 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
7419 Clear areas that will not be updated after change of menu bar lines.
7420 Clear the menu bar window's current matrix when the window gets empty.
7421
2f1c6384
CY
74222010-01-09 Chong Yidong <cyd@stupidchicken.com>
7423
e398c61c
CY
7424 * intervals.h, textprop.c (extend_property_ranges): Return value
7425 and args changed. Discard properties that begin at or after the
7426 new end (Bug#5306).
7427
7428 * editfns.c (Fformat): Caller changed.
7429
e5a29a10
CY
7430 * nsterm.m (ns_set_default_prefs): Delete function.
7431 (syms_of_nsterm): Initialize ns_command_modifier,
7432 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
7433 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
7434
2f1c6384
CY
7435 * xdisp.c (pos_visible_p): Check for invisible text at the correct
7436 position (Bug#4040).
7437
d427a9fa
EZ
74382010-01-09 Eli Zaretskii <eliz@gnu.org>
7439
7440 * editfns.c (Ffloat_time): Doc fix.
7441
21b9df2f
JD
74422010-01-09 Jan Djärv <jan.h.d@swipnet.se>
7443
7444 * xfns.c (Fx_create_frame): Don't create frame larger than display
7445 by default bug#3643.
7446
4b00d3b1
YM
74472010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7448
7449 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
7450 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
7451 windows above internal border.
7452
7453 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
7454 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
7455 windows above internal border.
7456
7457 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
7458 tool bar windows specially.
7459
7460 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
7461
7462 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
7463 specially.
7464 (XTflash): Take account of menu bar height.
7465
7466 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
7467 specially.
7468
5075d853
JD
74692010-01-08 Jan Djärv <jan.h.d@swipnet.se>
7470
ac146f82 7471 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
7472 also be true before we can return early (bug #5339).
7473
474217c8
CY
74742010-01-06 David Reitter <david.reitter@gmail.com>
7475
7476 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
7477 (Fns_display_usable_bounds): Rewrite, computing bounds properly
7478 (Bug#3233).
7479
c0e6d47d
JD
74802010-01-06 Jan Djärv <jan.h.d@swipnet.se>
7481
d0cf45b7
JD
7482 * font.c (font_open_entity): Enable chache and call cached_font_ok
7483 for the driver if defined.
7484 (QCuser_spec): New symbol.
7485 (font_spec_from_name): Save name as user-spec.
7486 (font_load_for_lface): Keep user-spec instead of name.
7487 (font_open_by_name): Save name as user-spec.
7488 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 7489 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
7490
7491 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
7492 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
7493 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
7494
7495 * font.h (struct font_driver): Add cached_font_ok.
7496
c0e6d47d
JD
7497 * xterm.c (x_clear_frame): Queue draw for scroll bars.
7498
7c583cd8
JD
74992010-01-05 Jan Djärv <jan.h.d@swipnet.se>
7500
7501 * xterm.c (x_new_font): Move code for setting rows/cols before
7502 resizing ...
ac146f82 7503 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
7504
7505 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
7506 (xg_frame_resized, xg_frame_set_char_size):
7507 Call xg_clear_under_internal_border.
7c583cd8 7508 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 7509
03f77f0a
CY
75102010-01-05 Chong Yidong <cyd@stupidchicken.com>
7511
7512 * keyboard.c (read_key_sequence): Catch keyboard switch after
7513 making a new tty frame (Bug#5095).
7514
2a1ef5be
KH
75152010-01-05 Kenichi Handa <handa@m17n.org>
7516
7517 * fontset.c (fontset_find_font): Fix getting the frame pointer.
7518
e3eb1dae
SM
75192010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
7520
7521 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
7522 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
7523 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
7524
777013f2
MA
75252010-01-03 Michael Albinus <michael.albinus@gmx.de>
7526
7527 * dbusbind.c (xd_add_watch): Improve debug message.
7528 (xd_remove_watch): Improve debug message. If DATA is the session
7529 bus, unset D-Bus session environment.
7530 (Fdbus_init_bus): Pass the bus as argument to
7531 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 7532
8932b1c2
CY
75332010-01-01 Chong Yidong <cyd@stupidchicken.com>
7534
87231e2c
CY
7535 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
7536
4801c5fa
CY
7537 * lread.c (syms_of_lread): Make it clearer that these are the
7538 names of loaded files (Bug#5068).
7539
8932b1c2
CY
7540 * eval.c (run_hook_with_args): Handle the case where the global
7541 value has the obsolete single-function form (Bug#5026).
7542
11e3c684
CY
75432009-12-27 Chong Yidong <cyd@stupidchicken.com>
7544
7545 * minibuf.c (Fall_completions): Minor optimization.
7546
5b28ce35
EZ
75472009-12-26 Eli Zaretskii <eliz@gnu.org>
7548
5ce6e4f4
JB
7549 * .gdbinit (pgx): Fix display of composite glyphs.
7550 Display cmp.from and cmp.to as well.
7551 (pitx): Fix last change.
5b28ce35 7552
bcffff46
KH
75532009-12-25 Kenichi Handa <handa@m17n.org>
7554
7555 * composite.h (composition_adjust_point): Update prototype.
7556
7557 * composite.c (composition_reseat_it): Don't make a composition
7558 spanning over point.
7559 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
7560 composable characters.
7561 (composition_adjust_point): New arg NEW_PT. Callers changed.
7562
7563 * keyboard.c (command_loop_1): Force redisplay if the last point
7564 was within a composition.
7565 (adjust_point_for_property): Don't adjust point for automatic
7566 composition when called after buffer modification.
7567
3f670e9a
EZ
75682009-12-19 Eli Zaretskii <eliz@gnu.org>
7569
5ce6e4f4
JB
7570 * .gdbinit (pitx): Don't use enum names, use their values.
7571 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
7572 (pgx): Don't use enum names, use their values.
7573 (pitmethod): New helper command.
7574 (pitx): Use it to display iteration method.
7575 (pgrowit): New command.
7576
ad903955
EZ
7577 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
7578
3f670e9a
EZ
7579 Update dependencies in Makefile.in.
7580
7581 * Makefile.in (alloc.o): Depend on termhooks.h.
7582 (atimer.o): Depend on blockinput.h.
7583 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
7584 and frame.h.
7585 (callint.o): Depend on systime.h, coding.h, and composite.h.
7586 (callproc.o): Depend on buffer.h.
7587 (casefiddle.o): Don't depend on charset.h.
7588 (casetab.o): Depend on character.h.
7589 (ccl.o): Depend on composite.h.
7590 (chartab.o): Depend on ccl.h.
7591 (cm.o): Depend on dispextern.h.
7592 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
7593 (coding.o): Don't depend on $(INTERVALS_H).
7594 (composite.o): Don't depend on dispextern.h explicitly (it's in
7595 $(INTERVALS_H)). Depend on ccl.h.
7596 (data.o): Depend on systime.h, coding.h, composite.h,
7597 dispextern.h, font.h, and ccl.h.
7598 (dired.o): Depend on composite.h.
7599 (dispnew.o): Depend on coding.h. Don't depend explicitly on
7600 composite.h (it's in $(INTERVALS_H)).
7601 (doc.o): Depend on systime.h, coding.h, and composite.h.
7602 (editfns.o): Don't depend explicitly on dispextern.h.
7603 (emacs.o): Depend on frame.h and coding.h.
7604 (eval.o): Depend on coding.h, composite.h, and xterm.h.
7605 (fileio.o): Depend on frame.h and commands.h. Don't depend
7606 explicitly on dispextern.h.
7607 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
7608 composite.h.
7609 (fns.o): Don't depend on termhooks.h.
7610 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
7611 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
7612 coding.h, $(INTERVALS_H), window.h, xterm.h.
7613 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
7614 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
7615 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
7616 fontset.h, ccl.h, and ftfont.h.
7617 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
7618 (gtkutil.o): Depend on dispextern.h and composite.h.
7619 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
7620 termhooks.h, and ccl.h.
7621 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
7622 (intervals.o): Depend on systime.h and coding.h.
7623 (keyboard.o): Depend on composite.h and coding.h.
7624 (keymap.o): Depend on coding.h and frame.h.
7625 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
7626 (macros.o): Depend on systime.h, coding.h, and composite.h.
7627 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
7628 and atimer.h.
7629 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
7630 dispextern.h explicitly.
0b5397c2
SM
7631 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
7632 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
7633 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
7634 (regex.o): Don't depend on charset.h.
7635 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
7636 (search.o): Don't depend explicitly on composite.h.
7637 (sound.o): Depend on atimer.h and systime.h.
7638 (syntax.o): Don't depend explicitly on composite.h.
7639 (sysdep.o): Depend on coding.h and composite.h.
7640 (term.o): Depend on xterm.h and buffer.h.
7641 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
7642 (textprop.o): Don't depend on dispextern.h explicitly.
7643 (undo.o): Depend on dispextern.h.
7644 (window.o): Depend on coding.h and termhooks.h. Don't depend on
7645 dispextern.h and composite.h explicitly.
7646 (xdisp.o): Depend on ccl.h.
7647 (xfaces.o): Depend on coding.h and ccl.h.
7648 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
7649 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
7650 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
7651 ftfont.h.
7652 (xgselect.o): New dependency.
7653 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
7654 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
7655 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
7656 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
7657 (xsmfns.o): Depend on frame.h and dispextern.h.
7658 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
7659 sysselect.h.
7660
7a6f7fea
AS
76612009-12-19 Andreas Schwab <schwab@linux-m68k.org>
7662
7663 * font.c (Fclear_font_cache): Pass correct cache argument to
7664 font_clear_cache.
7665
f4c21026
AS
76662009-12-16 Andreas Schwab <schwab@linux-m68k.org>
7667
7668 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
7669 twice.
7670
f7ab0997
CY
76712009-12-15 Chong Yidong <cyd@stupidchicken.com>
7672
7673 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
7674 calling file-remote-p. Reported by Jim Meyering.
7675
fa8e045a
MA
76762009-12-15 Michael Albinus <michael.albinus@gmx.de>
7677
7678 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 7679 avoid compiler warnings. (Bug #5217)
fa8e045a 7680
a63dba42
KH
76812009-12-14 Kenichi Handa <handa@m17n.org>
7682
7683 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
7684 in 8-bit encoding.
7685
5ce6e4f4 76862009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
7687
7688 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
7689 tooltip windows.
7690
223e5fc6
JD
76912009-12-13 Jan Djärv <jan.h.d@swipnet.se>
7692
36acb2a7
JD
7693 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
7694 Xatom_net_window_type.
7695
7696 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
7697 Xatom_net_window_type.
7698
b8f00677
JD
7699 * xterm.c (my_log_handler): New function.
7700 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 7701 so we can filter out buggy messages. (Bug #5120).
b8f00677 7702
e5f0bc9a
JD
7703 * xterm.c (xg_scroll_callback): Parameter list changed,
7704 use parameter GtkScrollType to determine scroll/line/page.
7705 Only allow dragging if a button < 4 is grabbed (bug #5177).
7706 (xg_end_scroll_callback): New function.
7707 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
7708 xg_create_scroll_bar.
7709
7710 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
7711 (scroll_end_callback): Remove.
7712 (xg_create_scroll_bar): Add parameter end_callback, bind it to
7713 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 7714 bug #5177.
e5f0bc9a
JD
7715 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
7716 bug #5177.
7717
7718 * gtkutil.h (XG_LAST_SB_DATA): Remove.
7719 (xg_create_scroll_bar): Add GCallback end_callback.
7720
223e5fc6
JD
7721 * xftfont.c (QClcdfilter): New variable.
7722 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
7723 (syms_of_xftfont): Initialize QClcdfilter.
7724
3c055b77
JD
77252009-12-12 Jan Djärv <jan.h.d@swipnet.se>
7726
7727 * xsettings.c (struct xsettings): Add member seen.
7728 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 7729 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
7730 (apply_xft_settings): Only update Xft settings with what member seen
7731 indicates as new.
7732
05fe33ff
EZ
77332009-12-12 Eli Zaretskii <eliz@gnu.org>
7734
c4cc8b9a 7735 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
7736 (struct glyph): Use EMACS_INT for charpos.
7737 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
7738 region_beg_charpos, region_end_charpos,
7739 redisplay_end_trigger_charpos, and also for
7740 iterator_stack_entry.end_charpos and
7741 iterator_stack_entry.stop_charpos.
7742
e8d7886a
JD
77432009-12-12 Jan Djärv <jan.h.d@swipnet.se>
7744
5ce6e4f4 7745 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
7746 (xg_create_scroll_bar): Call scroll_end_callback on button release
7747 event (bug #5177).
7748 (xg_event_is_for_scrollbar): != replaced with ==.
7749
d0db2ec8
KH
77502009-12-12 Kenichi Handa <handa@m17n.org>
7751
7752 * ftfont.c (struct ftfont_info): New member matrix.
7753 (ftfont_open): Setup xftfont_info->matrix.
7754 (MFLTFontFT): New member matrix.
7755 (FLOOR, CEIL, ROUND): New macros.
7756 (ftfont_get_metrics): Handle matrix transformation.
7757 (ftfont_shape_by_flt): New arg matrix. Callers changed.
7758
7759 * xftfont.c (struct xftfont_info): New member matrix.
7760 (xftfont_open): Setup xftfont_info->matrix.
7761
77622009-12-10 Kenichi Handa <handa@m17n.org>
7763
7764 * xdisp.c (append_space_for_newline): Consider face-remapping.
7765
2cc7b62f
AS
77662009-12-09 Andreas Schwab <schwab@linux-m68k.org>
7767
b87dd913
AS
7768 * xsettings.c: Include "keyboard.h".
7769
eba5eb94
AS
7770 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
7771
2cc7b62f
AS
7772 Fix implicit function declarations.
7773 * cmds.c: Include "frame.h".
7774 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
7775 * frame.h: Move declaration of delete_frame outside of
7776 HAVE_WINDOW_SYSTEM.
7777
a4ef73c8
CY
77782009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
7779
7780 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
7781
7782 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
7783 GTK builds.
7784
944a300c
AS
77852009-12-07 Andreas Schwab <schwab@linux-m68k.org>
7786
7787 * unexelf.c (unexec): Don't search for .data twice.
7788
022eef62
CY
77892009-12-05 Chong Yidong <cyd@stupidchicken.com>
7790
426ac949
CY
7791 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
7792 if push failed.
7793 (handle_line_prefix): Set avoid_cursor_p here. Check return value
7794 of push_display_prop (Bug#5000).
7795
022eef62
CY
7796 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
7797 value of font_list_entities (Bug#5085).
7798
be95bee9
JB
77992009-12-04 Juanma Barranquero <lekktu@gmail.com>
7800
7801 Fix `string-to-number' to deal consistently with integers and floats.
7802 * lread.c (isfloat_string): New argument ignore_trailing to accept all
7803 trailing characters, not just whitespace.
7804 (read1): Pass new arg 0 to keep old behavior.
7805 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
7806 trailing chars, as it is already done for integers. Doc fixes.
7807 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
7808
24c2d7ce
EZ
78092009-12-04 Eli Zaretskii <eliz@gnu.org>
7810
0b5397c2
SM
7811 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
7812 Delete unused enumeration value.
24c2d7ce 7813
7e694795
EZ
78142009-12-03 Eli Zaretskii <eliz@gnu.org>
7815
7816 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
7817
84b31826
SM
78182009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
7819
7820 * process.c (Fmake_network_process): Fix up the tests for
7821 "connectionless socket", so they DTRT for seqpacket sockets as well.
7822
f00c449b
SM
78232009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
7824
7825 * process.c (Qseqpacket): New symbol.
7826 (HAVE_SEQPACKET): New macro.
7827 (Fmake_network_process): Accept new :type `seqpacket'.
7828 (init_process): Add `seqpacket' feature when applicable.
7829 (syms_of_process): Initialize Qseqpacket.
7830
8096a0ff
YM
78312009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7832
7833 * font.c (font_load_for_lface, font_open_by_name): Don't store name
7834 if entity is Qnil.
7835
3e0de07f
SM
78362009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
7837
7838 * print.c (print_preprocess): Preprocess the key_and_value table of
7839 hashtables, even tho they're "hidden" (bug#5082).
7840
abeafb2a
JD
78412009-11-29 Jan Djärv <jan.h.d@swipnet.se>
7842
7843 * frame.c (frame_make_pointer_invisible)
7844 (frame_make_pointer_visible): Declare f before statements.
7845
4bf47195
EZ
78462009-11-28 Eli Zaretskii <eliz@gnu.org>
7847
7848 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
7849 omitted dependencies on lisp.h.
7850
c525b3f2
JD
78512009-11-27 Jan Djärv <jan.h.d@swipnet.se>
7852
ece2d4ed
JD
7853 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
7854 is NULL.
7855
7856 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
7857
7858 * frame.c (frame_make_pointer_invisible)
3e0de07f 7859 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
7860 frame.
7861
c525b3f2
JD
7862 * search.c (simple_search): Remove warning by making *p const.
7863
2f00e299
DN
78642009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
7865
7866 * xdisp.c (power_letter): Remove duplicate const.
7867
084b049b
JD
78682009-11-25 Jan Djärv <jan.h.d@swipnet.se>
7869
a1fadc6f
JD
7870 * term.c (delete_tty): Remove check for last terminal (bug#4970).
7871
5ce6e4f4 7872 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
7873 defaults (bug #5025).
7874
28259cac
SM
78752009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
7876
7877 * insdel.c (adjust_markers_for_delete): Move it in the
7878 right direction! (bug#4803)
7879
e8e14166
YM
78802009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7881
7882 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
7883
7884 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
7885
86677b58
GM
78862009-11-24 Glenn Morris <rgm@gnu.org>
7887
7888 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
7889
581e51e8
JD
78902009-11-23 Jan Djärv <jan.h.d@swipnet.se>
7891
cfc86c7a
JD
7892 * Makefile.in: Must create deps for ecrt0.o in its rule.
7893
581e51e8
JD
7894 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
7895 because that is what Gtk+ font dialog understands.
7896
7897 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
7898 of Fcopy_sequence.
7899 (font_open_by_name): Put name given into QCname for font-object returned.
7900
7901 * frame.c (x_set_font): Save original font name as frame parameter
7902 font-parameter.
7903
7904 * xsettings.c (set_default_xft_settings): New function.
7905 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
7906 is found.
7907
8b264ecb
AS
79082009-11-22 Andreas Schwab <schwab@linux-m68k.org>
7909
7910 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
7911 searching backwards through multibyte buffer.
7912
872870b2
JD
79132009-11-21 Jan Djärv <jan.h.d@swipnet.se>
7914
7915 * xterm.c: #include xgselect.h.
7916 (x_initialize): Call xgselect_initialize.
7917
7918 * xsettings.c (something_changedCB): C++ comments => C comments.
7919 (init_gconf): Do not deal with any GLib file descriptors, xg_select
7920 does that now.
7921
7922 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
7923 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
7924 (scroll_bar_button_cb): Remove.
5ce6e4f4 7925 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
7926 event.
7927 (xg_create_scroll_bar): Don't bind button-press-event and
7928 button-release-event.
7929
7930 * process.c: Include xgselect.h if defined (USE_GTK) ||
7931 defined (HAVE_GCONF).
7932 (wait_reading_process_output): Call xg_select for the same condition.
7933
7934 * xgselect.c (xg_select): New function to better integrate with
7935 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
7936
7937 * xgselect.h: New file, declare xg_select, xgselect_initialize.
7938
7939 * Makefile.in (XOBJ): Add xgselect.o.
7940
62a6e103
AS
79412009-11-21 Andreas Schwab <schwab@linux-m68k.org>
7942
0b5397c2
SM
7943 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
7944 Remove ignored second argument. All callers changed.
62a6e103
AS
7945 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
7946 (RE_STRING_CHAR_AND_LENGTH): Likewise.
7947 * xdisp.c (string_char_and_length): Likewise.
7948
b0ca0f33
DN
79492009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
7950
7951 * xterm.c (x_new_font):
7952 * print.c (print_object):
7953 * cmds.c (Fself_insert_command): Move declarations before statements.
7954
dd5a6279
CY
79552009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
7956
7957 * s/cygwin.h: Remove unneeded linker flags.
7958
4a8e097d
JD
79592009-11-20 Jan Djärv <jan.h.d@swipnet.se>
7960
0d1d0d26
JD
7961 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
7962
7963 * xsettings.h: Declare xsettings_get_system_font.
7964
7965 * xsettings.c (xsettings_get_system_font): New function.
7966 (init_gconf): No use initiating gconf unless we have Xft also.
7967 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
7968 HAVE_GCONF.
7969
4a8e097d
JD
7970 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
7971 add a blank entry so it doesn't collapse into nothing.
7972
8ab1650e
SM
79732009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
7974
7975 * lread.c (Funintern): Comment out last change.
7976
82c602f0
RS
79772009-11-19 Richard Stallman <rms@gnu.org>
7978
7979 * lread.c (Funintern): Error if symbol is t or nil.
7980
87e32266
SM
79812009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
7982
7983 * insdel.c (make_gap_larger): Don't make as many assumptions about the
7984 representation of Lisp integers.
7985 Reported by MJ Chan <mjchan.inbox@gmail.com>.
7986
1b9ac145
AS
79872009-11-17 Andreas Schwab <schwab@linux-m68k.org>
7988
7989 * lisp.h: Remove declaration of Ffont_get_system_font.
7990 * xfns.c: Move include of "xsettings.h".
7991 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
7992
dfb3c4c6
JD
79932009-11-17 Jan Djärv <jan.h.d@swipnet.se>
7994
87e32266
SM
7995 * xsettings.c (something_changedCB, Ffont_get_system_font):
7996 Check use_system_font.
dfb3c4c6
JD
7997 (syms_of_xsettings): DEFVAR font-use-system-font.
7998
9370c1d8
AS
79992009-11-17 Andreas Schwab <schwab@linux-m68k.org>
8000
25fe851a
AS
8001 * xfns.c (x_default_font_parameter): Remove dead assignment.
8002
9370c1d8
AS
8003 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
8004
637fa988
JD
80052009-11-17 Jan Djärv <jan.h.d@swipnet.se>
8006
87e32266 8007 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 8008 not have FC_LCD_*. #define them if not there.
a6eb20d8 8009
87e32266 8010 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 8011
637fa988
JD
8012 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
8013
8014 * xterm.c (handle_one_xevent): Call xft_settings_event for
8015 ClientMessage, PropertyNotify and DestroyNotify.
8016 (x_term_init): If we have XFT, get DPI from Xft.dpi.
8017 Call xsettings_initialize.
8018
8019 * xftfont.c (xftfont_fix_match): New function.
8020 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
8021 Call xftfont_fix_match after XftFontMatch.
8022
8023 * xfont.c (xfont_driver): Initialize all members.
8024
87e32266
SM
8025 * xfns.c (x_default_font_parameter):
8026 Try font from Ffont_get_system_font.
637fa988
JD
8027 Do not get font from x_default_parameter if we got one from
8028 Ffont_get_system_font.
87e32266 8029 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
8030
8031 * w32font.c (w32font_driver): Initialize all members.
8032
8033 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
8034
8035 * lisp.h: Declare syms_of_xsettings.
8036
87e32266
SM
8037 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
8038 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
8039
8040 * ftfont.c (ftfont_filter_properties): New function.
8041
8042 * frame.c (x_set_font): Remove unused variable lval.
8043
87e32266 8044 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
8045
8046 * font.c (font_put_extra): Don't return if val is nil, it means
8047 boolean option is off.
8048 (font_parse_fcname): Collect all extra properties in extra_props
8049 and call filter_properties for all drivers with extra_props and
8050 font as parameter.
87e32266
SM
8051 (font_open_entity): Do not use cache, it does not pick up new
8052 fontconfig settings like hinting.
637fa988
JD
8053 (font_load_for_lface): If spec had a name in it, store it in entity.
8054
a73f9c9d 8055 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
8056
8057 * config.in: HAVE_GCONF is new.
8058
8059 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
8060 xsettings.o is new.
8061
5a942932
KH
80622009-11-17 Kenichi Handa <handa@m17n.org>
8063
8064 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
8065 back to the default font in case that no suitable font is found.
8066
b7c7a4d1
SM
80672009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
8068
8069 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
8070 Suggested by Chad Brown <yandros@mit.edu>.
8071 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
8072
072f1e39
JD
80732009-11-16 Jan Djärv <jan.h.d@swipnet.se>
8074
8075 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
8076
5d1e70a2
AS
80772009-11-14 Andreas Schwab <schwab@linux-m68k.org>
8078
87e32266 8079 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 8080
a53cfbe5
JD
80812009-11-14 Jan Djärv <jan.h.d@swipnet.se>
8082
473a99b7
JD
8083 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
8084 has a parent.
8085
a53cfbe5 8086 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 8087 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
8088
8089 * config.in: Generated (AUTO_DEPEND).
8090
f04bb9b2
MA
80912009-11-13 Michael Albinus <michael.albinus@gmx.de>
8092
b7c7a4d1 8093 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
8094 Vdbus_registered_functions_table, because it contains also
8095 properties. Fix docstring.
b7c7a4d1 8096 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 8097
8f11f7ec
SM
80982009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
8099
8100 * alloc.c (mark_object): Don't reprocess marked strings.
8101 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
8102 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
8103
8a605fe8
KH
81042009-11-13 Kenichi Handa <handa@m17n.org>
8105
8f11f7ec 8106 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
8107 semantics of Vword_combining_categories.
8108 (Vword_combining_categories): Describe the slight change of the
8109 semantics.
8110
241c4680
EZ
81112009-11-13 Eli Zaretskii <eliz@gnu.org>
8112
8113 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
8114
8115 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
8116
5d58e44c
SM
81172009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
8118
8119 * xdisp.c (syms_of_xdisp): Fix typo in last change.
8120
5e13f9d3
JB
81212009-11-12 Juanma Barranquero <lekktu@gmail.com>
8122
8123 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
8124
cf54c754
DR
81252009-11-11 David Reitter <david.reitter@gmail.com>
8126
8127 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
8128 variables to fix 2009-11-09 change.
8129
a4ada374
DN
81302009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
8131
91433552
DN
8132 * process.c (ifflag_def): Make flag_sym constant.
8133 (Fnetwork_interface_info): Use a constant pointer.
8134 (ifflag_table):
8135 * xfns.c (cursor_bits):
8136 * xdisp.c (power_letter):
8137 * termcap.c (speeds, esctab):
8138 * sysdep.c (baud_convert):
8139 * keyboard.c (lispy_accent_codes, modifier_names):
8140 * image.c (xbm_format, xpm_format, pbm_format, png_format)
8141 (jpeg_format, tiff_format, gif_format, svg_format)
8142 (interlace_start, interlace_increment, gs_format):
8143 * gtkutil.c (separator_names):
8144 * fringe.c (swap_nibble):
8145 * fns.c (base64_value_to_char, base64_char_to_value):
8146 * fileio.c (make_temp_name_tbl):
8147 * coding.c (suffixes): Make constant.
8148
f4265f6c
DN
8149 * frame.c (make_initial_frame):
8150 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
8151 build_string.
8152 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
8153
04420943
DN
8154 * s/freebsd.h:
8155 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
8156
0a5d24ae
DN
8157 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
8158 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
8159
a4ada374
DN
8160 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
8161 * xterm.c (syms_of_xterm):
8162 * xfaces.c (syms_of_xfaces):
8163 * xdisp.c (syms_of_xdisp):
8164 * lread.c (syms_of_lread):
8165 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
8166 build_string.
91433552 8167
a4ada374
DN
8168 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
8169
af98fc7f
SM
81702009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
8171
8ab1650e 8172 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 8173
e90292a9
JD
81742009-11-10 Jan Djärv <jan.h.d@swipnet.se>
8175
8176 * keyboard.h: Declare timer_check.
8177
8178 * keyboard.c (timer_check_2): New function that does what the old
8179 timer_check did.
8180 (timer_check): Call timer_check_2 until -1 or a non-zero time is
8181 returned, i.e. don't return -1 with timers pending.
8182
8183 * process.c: Remove extern declaration of timer_check.
8184
8185 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
8186 even if timer_check returned -1.
8187
af98fc7f
SM
8188 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
8189 xg_dialog_data.
e90292a9
JD
8190 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
8191 the event loop.
8192 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
8193 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
8194 Destroy the dialog after xg_dialog_run.
8195
045b83c0
SM
81962009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
8197
8198 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
8199
1fb99a3a
JD
82002009-11-10 Jan Djärv <jan.h.d@swipnet.se>
8201
8202 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
8203
04e452cb
JB
82042009-11-09 Juanma Barranquero <lekktu@gmail.com>
8205
8206 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
8207
ef7417fd
SM
82082009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
8209
8210 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
8211 w32menu.c, and nsmenu.m.
8212 Simplify the obsolete case where position is nil.
8213 (cleanup_popup_menu): New function, moved from nsmenu.m.
8214 (struct skp): Remove slot `notreal'.
8215 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
8216 adjust callers.
8217 (single_menu_item): Adjust call to parse_menu_item.
8218 (syms_of_menu): Defsubr x-popup-menu.
8219 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
8220 (keymap_panes): Don't export any more.
8221 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
8222 (xmenu_show): Declare.
8223 * keyboard.c (parse_menu_item): Remove arg `notreal'.
8224 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
8225 * keyboard.h (parse_menu_item): Update declaration.
8226 * xmenu.c (Fx_popup_menu): Remove.
8227 (syms_of_xmenu): Don't defsubr x-popup-menu.
8228 * w32menu.c (Fx_popup_menu): Remove.
8229 (syms_of_w32menu): Don't defsubr x-popup-menu.
8230 * nsmenu.m (cleanup_popup_menu): Remove.
8231 (ns_menu_show): Rename from ns_popup_menu and remove all the code
8232 moved to menu.c's Fx_popup_menu.
8233 (Fx_popup_menu): Remove.
8234 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
8235 menu_items (it's done in menu.c already).
8236
424d6179
SM
82372009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
8238
8239 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
8240 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
8241
c0df13a6 82422009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
8243
8244 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 8245 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
8246 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
8247 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
8248
2de9f71c
SM
82492009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
8250
8251 Let integers use up 2 tags to give them one extra bit and thus double
8252 their range.
8253 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
8254 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
8255 New macros.
8256 (enum Lisp_Type): Use them. Give explicit values.
8257 (Lisp_Type_Limit): Remove.
8258 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
8259 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
8260 Pay attention to USE_2_TAGS_FOR_INTS.
8261 (INTEGERP): Use LISP_INT_TAG_P.
8262 * fns.c (internal_equal): Simplify the default case.
8263 (sxhash): Use case_Lisp_Int.
8264 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
8265 any more.
8266 (Ftype_of): Use case_Lisp_Int.
8267 (store_symval_forwarding): Take into account the fact that Ints can
8268 now have more than one tag.
8269 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 8270 (buffer_slot_type_mismatch):
2de9f71c
SM
8271 * xfaces.c (face_attr_equal_p):
8272 * print.c (print_object):
8273 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
8274 Use case_Lisp_Int.
8275
323637a2
EZ
82762009-11-06 Eli Zaretskii <eliz@gnu.org>
8277
7ac65b38
EZ
8278 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
8279
323637a2
EZ
8280 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
8281 warning.
8282
e511451f
JD
82832009-11-06 Jan Djärv <jan.h.d@swipnet.se>
8284
8285 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
8286
8287 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
8288
8289 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
8290 ButtonPressRelease and MotionNotify (bug#4870).
8291
5e2327cf
DN
82922009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
8293
5adc433e
DN
8294 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
8295
d67b4f80
DN
8296 * xterm.c (syms_of_xterm):
8297 * xselect.c (syms_of_xselect):
8298 * xmenu.c (syms_of_xmenu):
8299 * xfns.c (syms_of_xfns):
8300 * xfaces.c (syms_of_xfaces):
8301 * xdisp.c (syms_of_xdisp):
8302 * window.c (syms_of_window):
8303 * w32fns.c (syms_of_w32fns):
8304 * undo.c (syms_of_undo):
8305 * textprop.c (syms_of_textprop):
8306 * terminal.c (syms_of_terminal):
8307 * syntax.c (syms_of_syntax):
8308 * sound.c (syms_of_sound):
8309 * search.c (syms_of_search):
8310 * print.c (syms_of_print):
8311 * minibuf.c (syms_of_minibuf):
8312 * macros.c (syms_of_macros):
8313 * keymap.c (syms_of_keymap, initial_define_key)
8314 (initial_define_lispy_key):
8315 * keyboard.c (syms_of_keyboard):
8316 * insdel.c (syms_of_insdel):
8317 * image.c (syms_of_image):
8318 * fringe.c (syms_of_fringe):
8319 * frame.c (syms_of_frame):
8320 * fontset.c (syms_of_fontset):
8321 * fns.c (syms_of_fns):
8322 * fns.c (syms_of_fns):
8323 * fileio.c (syms_of_fileio):
8324 * fileio.c (syms_of_fileio):
8325 * eval.c (syms_of_eval):
8326 * doc.c (syms_of_doc):
8327 * dispnew.c (syms_of_display):
8328 * dired.c (syms_of_dired):
8329 * dbusbind.c (syms_of_dbusbind):
8330 * data.c (syms_of_data):
8331 * composite.c (syms_of_composite):
8332 * coding.c (syms_of_coding):
8333 * cmds.c (syms_of_cmds):
8334 * charset.c (define_charset_internal, syms_of_character):
8335 * ccl.c (syms_of_ccl):
8336 * category.c (syms_of_category, init_category_once):
8337 * casetab.c (syms_of_casetab):
8338 * casefiddle.c (syms_of_casefiddle):
8339 * callint.c (syms_of_callint):
8340 * bytecode.c (syms_of_bytecode):
8341 * buffer.c (keys_of_buffer, syms_of_buffer):
8342 * alloc.c (syms_of_alloc):
8343 * process.c (syms_of_process, init_process):
8344 * lread.c (syms_of_lread, init_obarray):
8345 * font.c (build_style_table):
8346 * emacs.c (syms_of_emacs, main): Replace calls to intern with
8347 intern_c_string, calls to make_pure_string with
8348 make_pure_c_string. Use pure_cons instead of Fcons.
8349
5e2327cf
DN
8350 * process.c (socket_options): Make it const.
8351 (set_socket_option, init_process): Use a const pointer.
8352
8353 * lread.c (intern_c_string): New function.
8354 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
8355 (defvar_int): Uset it. Make the name const char*.
8356
8357 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
8358 (defvar_int): Update prototypes.
8359 (DEFUN, EXFUN): Support for prototypes is now required.
8360 (intern_c_string): New prototype.
8361 (struct Lisp_Subr): Make symbol_name constant.
8362
8363 * font.c (struct table_entry): Remove unused member. Make NAMES
8364 constant.
8365 (weight_table, slant_table, width_table): Make constant.
8366
8367 * emacs.c (struct standard_args): Make name and longname constant.
8368
8369 * character.h (DEFSYM): Use intern_c_string.
8370
a56eaaef
DN
83712009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
8372
8373 * alloc.c (make_pure_c_string): New function.
8374
8375 * eval.c (Fautoload): Purecopy all arguments.
8376
f6a07420
KH
83772009-11-05 Kenichi Handa <handa@m17n.org>
8378
8379 * fileio.c (Finsert_file_contents): Be sure set coding-system of
8380 the buffer in case of replace.
8381
5d28d4b1
DN
83822009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
8383
8384 * puresize.h (BASE_PURESIZE): Increase to 1620000.
8385
b349d111
SM
83862009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
8387
d528b1ce
SM
8388 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
8389 when applicable (bug#4851).
8390
b349d111
SM
8391 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
8392 (P_): Support for prototypes is now required.
8393
c38eb027
CY
83942009-10-31 Chong Yidong <cyd@stupidchicken.com>
8395
8396 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
8397 (Bug#4827).
8398
0405f8d9
EZ
83992009-10-30 Eli Zaretskii <eliz@gnu.org>
8400
d528b1ce 8401 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 8402
ca0a881a
DN
84032009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
8404
8405 * puresize.h (BASE_PURESIZE): Increase to 1470000.
8406
d528b1ce
SM
8407 * lread.c (Fload): Purecopy the file name when building
8408 Vpreloaded_file_list.
ca0a881a 8409
47e0e0e4
JR
84102009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
8411
8412 * w32fns.c (syms_of_w32fns): Change default value of
8413 w32-scroll-lock-modifier to nil. (Bug#2827)
8414
057bce6f
JB
84152009-10-26 Juanma Barranquero <lekktu@gmail.com>
8416
782a943e 8417 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 8418
242bc74c
AS
84192009-10-26 Andreas Schwab <schwab@redhat.com>
8420
8421 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
8422
522d013a
JB
84232009-10-26 Juanma Barranquero <lekktu@gmail.com>
8424
8425 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
8426 For delta < 0, skip check that only makes sense when the mini-window
8427 is going to be enlarged. (Bug#4534)
8428
18060980
CY
84292009-10-25 Chong Yidong <cyd@stupidchicken.com>
8430
8431 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
8432 string in menu maps (Bug#4471).
8433
fec8f0fe
CY
84342009-10-24 Chong Yidong <cyd@stupidchicken.com>
8435
8436 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
8437 FRAME_NS_VIEW on terminal frames (Bug#4765).
8438
10d66ec0
AS
84392009-10-24 Andreas Schwab <schwab@linux-m68k.org>
8440
1cae01f7
AS
8441 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
8442 DBUS_TYPE_UINTnn separately to get proper sign extension.
8443
58a12889
AS
8444 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
8445 can properly handle unsigned types.
d528b1ce 8446 (make_uid, make_gid): Remove.
58a12889 8447
987c9327
AS
8448 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
8449 types again.
8450
522d013a 8451 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
8452 (system_process_attributes): Likewise.
8453
905a9ed3
DN
84542009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
8455
8456 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
8457
8458 * eval.c (Fautoload): Purecopy the filename. Simplify.
8459
8460 * category.c (Fdefine_category): Purecopy docstring.
8461
a599b3e8
AS
84622009-10-23 Andreas Schwab <schwab@linux-m68k.org>
8463
7b792fc9
AS
8464 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
8465
a599b3e8
AS
8466 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
8467
b35ac83e
CY
84682009-10-23 Chong Yidong <cyd@stupidchicken.com>
8469
8470 * window.c (Fwindow_edges, Fwindow_pixel_edges)
8471 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
8472 (Bug#4775).
8473
e8903e00
SM
84742009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
8475
8476 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
8477 (init_fileio_once):
8478 * lisp.h (init_fileio_once): Remove.
8479 * emacs.c (main): Don't call init_fileio_once.
8480
8f43cbf3
DN
84812009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
8482
8483 * puresize.h (BASE_PURESIZE): Increase to 1430000.
8484
26898943
AS
84852009-10-21 Andreas Schwab <schwab@linux-m68k.org>
8486
8487 * doprnt.c (doprnt): Fix overflow check.
8488
5c646d5a
JD
84892009-10-21 Jan Djärv <jan.h.d@swipnet.se>
8490
3132a7ea
JD
8491 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
8492
5c646d5a
JD
8493 * xterm.h (x_wait_for_event): Declare it.
8494
8495 * xterm.c (pending_event_wait): New variable.
8496 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
8497 see pending_event_wait.eventtype.
8498 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
8499 (x_new_font): Call change_frame_size with new rows/columns before we
8500 try to resize the frame.
5c646d5a 8501 (x_wait_for_event): New function.
d528b1ce
SM
8502 (x_set_window_size_1): Don't change gravity unless change_gravity
8503 is set.
5c646d5a
JD
8504 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
8505 don't change frame size, instead wait for the ConfigureNotify.
8506 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
8507 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
8508 (x_initialize): Initialize pending_event_wait.
8509
8510 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
8511 size.
8512
8513 * widget.c (EmacsFrameSetValues): Add comment.
8514 (EmacsFrameSetCharSize): Just call x_set_window_size.
8515
8516 * gtkutil.c (xg_frame_set_char_size): Flush events and call
8517 x_wait_for_event.
d528b1ce 8518 (flush_and_sync): Remove again.
5c646d5a
JD
8519 (xg_get_font_name): Suggest monospace if no previous font is known.
8520
e9c1637d
SM
85212009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
8522
8523 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 8524 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 8525
5a72cccb
YM
85262009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8527
8528 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
8529 processing pending events when event is filtered for input method.
ab04798f 8530 (Bug#3681)
5a72cccb 8531
2629aa37
JB
85322009-10-20 Juanma Barranquero <lekktu@gmail.com>
8533
8534 * fns.c: Add #endif accidentally removed in previous change.
8535
c3417a74
DN
85362009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
8537
8538 * fns.c: Remove code for unsupported system: MAC_OS.
8539 * image.c: Likewise. Include setjmp.h.
8540
9685cef2
JD
85412009-10-19 Jan Djärv <jan.h.d@swipnet.se>
8542
8543 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
8544 pixel -1 (bug #4742).
8545
d7306fe6
DN
85462009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
8547
019d2c4c
DN
8548 * process.c (create_pty): Remove conditionals for no longer
8549 supported systems: UNIPLUS and RTU.
8550
ee6bacd4
DN
8551 * xterm.c:
8552 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
8553
d7306fe6
DN
8554 * alloc.c: Do not define struct catchtag.
8555 * eval.c: Move struct catchtag definition ...
8556 * lisp.h: ... here.
8557
8558 * image.c: Move png.h #include earlier to avoid warnings.
8559
8560 * xterm.c:
8561 * xsmfns.c:
8562 * xselect.c:
8563 * xrdb.c:
8564 * xmenu.c:
8565 * xftfont.c:
8566 * xfont.c:
8567 * xfns.c:
8568 * xfaces.c:
8569 * xdisp.c:
8570 * window.c:
8571 * widget.c:
8572 * w32xfns.c:
8573 * w32uniscribe.c:
8574 * w32term.c:
8575 * w32select.c:
8576 * w32reg.c:
8577 * w32proc.c:
8578 * w32menu.c:
8579 * w32inevt.c:
8580 * w32heap.c:
8581 * w32font.c:
8582 * w32fns.c:
8583 * w32console.c:
8584 * w32.c:
8585 * w16select.c:
8586 * vm-limit.c:
8587 * unexsol.c:
8588 * unexec.c:
8589 * unexcw.c:
8590 * unexaix.c:
8591 * undo.c:
8592 * tparam.c:
8593 * textprop.c:
8594 * terminfo.c:
8595 * terminal.c:
8596 * termcap.c:
8597 * term.c:
8598 * syntax.c:
8599 * sound.c:
8600 * sheap.c:
8601 * search.c:
8602 * scroll.c:
8603 * region-cache.c:
8604 * regex.c:
8605 * ralloc.c:
8606 * process.c:
8607 * print.c:
b024548b
DN
8608 * nsterm.m:
8609 * nsselect.m:
8610 * nsmenu.m:
8611 * nsimage.m:
8612 * nsfont.m:
8613 * nsfns.m:
d7306fe6
DN
8614 * msdos.c:
8615 * minibuf.c:
8616 * menu.c:
8617 * marker.c:
8618 * macros.c:
8619 * keymap.c:
8620 * keyboard.c:
8621 * intervals.c:
8622 * insdel.c:
8623 * indent.c:
8624 * gtkutil.c:
8625 * ftxfont.c:
8626 * ftfont.c:
8627 * fringe.c:
8628 * frame.c:
8629 * fontset.c:
8630 * font.c:
8631 * fns.c:
8632 * floatfns.c:
8633 * filelock.c:
8634 * fileio.c:
8635 * emacs.c:
8636 * editfns.c:
8637 * dosfns.c:
8638 * doprnt.c:
8639 * doc.c:
8640 * dispnew.c:
8641 * dired.c:
8642 * dbusbind.c:
8643 * data.c:
8644 * composite.c:
8645 * coding.c:
8646 * cmds.c:
8647 * cm.c:
8648 * chartab.c:
8649 * charset.c:
8650 * character.c:
8651 * ccl.c:
8652 * category.c:
8653 * casetab.c:
8654 * casefiddle.c:
8655 * callproc.c:
8656 * callint.c:
8657 * bytecode.c:
8658 * buffer.c:
8659 * atimer.c: Include setjmp.h. (Bug#4643)
8660
fd5f21e6
SM
86612009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
8662
4c0354d7
SM
8663 Remove leftover table unibyte_to_multibyte_table.
8664 * character.c (unibyte_to_multibyte_table): Remove.
8665 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
8666 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
8667 * character.h (UNIBYTE_TO_CHAR): New macro.
8668 (MAKE_CHAR_MULTIBYTE): Use it.
8669 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
8670 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
8671 (message_dolog, set_message_1):
8672 * search.c (Freplace_match):
8673 * editfns.c (Fcompare_buffer_substrings):
8674 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
8675 (concat):
8676 * insdel.c (copy_text, count_size_as_multibyte):
8677 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
8678 * term.c (produce_glyphs):
8679 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
8680 * regex.c (RE_CHAR_TO_MULTIBYTE):
8681 * cmds.c (internal_self_insert):
8682 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
8683
fd5f21e6
SM
8684 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
8685
4418646e
DN
86862009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
8687
8688 * puresize.h (BASE_PURESIZE): Increase to 1310000.
8689
35f5c1d2
JB
86902009-10-16 Juanma Barranquero <lekktu@gmail.com>
8691
8692 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
8693
a0cd8f6b
AR
86942009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8695
8696 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
8697 still needed under Tiger.
8698
8699 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
8700
8701 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
8702 __Apple__.
8703
8704 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
8705
01a8d3fa
KH
87062009-10-15 Kenichi Handa <handa@m17n.org>
8707
8708 * print.c (print_object): Escape a symbol like "2E10" too.
8709
bf6c75c9 87102009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
8711
8712 Cleanups and changes for 64-bit compile under Snow Leopard.
8713 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
8714
8715 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
8716
c5959062 8717 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
8718 (ns_findfonts, nsfont_list_family): Use long format in printf, and
8719 cast argument.
8720 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 8721 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
8722
8723 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
8724
8725 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
8726 where appropriate.
8727
8728 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
8729 where appropriate.
6e4780c5
JB
8730 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
8731 Use stringWithUTF8String.
bf6c75c9
AR
8732 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
8733
6e4780c5
JB
8734 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
8735 Add formal protocol mention to inheritance.
bf6c75c9
AR
8736 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
8737
6e4780c5
JB
8738 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
8739 Fix printf format.
bf6c75c9
AR
8740 (ns_query_color): Use CGFloat where appropriate.
8741 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 8742 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
8743 argument.
8744
3d87f118
AR
8745 * config.in (NS_HAVE_NSINTEGER): Drop.
8746
a95c8102
AR
8747 * dbusbind.c (dbus-method-return-internal)
8748 (dbus-method-error-internal): Use long format in printf, and cast
8749 argument.
8750
8751 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
8752 in printf, and cast argument.
8753
6873acca 8754 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
8755 cast argument.
8756
9ec6f100
GM
87572009-10-11 Glenn Morris <rgm@gnu.org>
8758
8759 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
8760
5be883cd
JD
87612009-10-08 Jan Djärv <jan.h.d@swipnet.se>
8762
8763 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
8764 menu bar with a small width so it doesn't enlarge the frame.
8765
d7a39b51
JB
87662009-10-08 Juanma Barranquero <lekktu@gmail.com>
8767
8768 * fontset.c (Fset_fontset_font): Fix typos in error messages.
8769
0c2b6f8e
GM
87702009-10-06 Glenn Morris <rgm@gnu.org>
8771
8772 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
8773 SOME_MACHINE_LISP (this enters indirectly via DOC).
8774
e02131a2
EZ
87752009-10-05 Eli Zaretskii <eliz@gnu.org>
8776
8777 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
8778
b4744254
EZ
87792009-10-04 Eli Zaretskii <eliz@gnu.org>
8780
8781 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
8782 Doc fix.
8783
dbf64827
JB
87842009-10-03 Martin Rudalics <rudalics@gmx.at>
8785
8786 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
8787
e9a0aef8
MA
87882009-10-02 Michael Albinus <michael.albinus@gmx.de>
8789
d528b1ce 8790 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
8791 used anymore outside fileio.c.
8792
8793 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
8794
64eb2b56
JB
87952009-10-01 Juanma Barranquero <lekktu@gmail.com>
8796
8797 * lisp.h (Qdelete_directory_internal):
8798 Declare, instead of Qdelete_directory.
8799
8800 * w32fns.c (Fsystem_move_file_to_trash): Use it.
8801
9d28c33e
SM
88022009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
8803
8804 * eval.c (Fcalled_interactively_p): Add `kind' argument.
8805
9d8f3bd9
MA
88062009-10-01 Michael Albinus <michael.albinus@gmx.de>
8807
9d28c33e 8808 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
8809 Fdelete_directory. It is not a command anymore. It has no file
8810 name handler.
8811
9694740b
SM
88122009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
8813
8814 * xdisp.c (get_next_display_element): Use an enum in last change.
8815
748e162f
KH
88162009-09-28 Kenichi Handa <handa@m17n.org>
8817
9694740b 8818 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
8819 unibyte_display_via_language_environment in handling
8820 Vnobreak_char_display.
8821
17efd58d
AR
88222009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8823
8824 * nsterm.h (ns_app_name): New extern variable.
8825
8826 * nsterm.m (ns_app_name): New variable.
8827 (ns_term_init): Set and use it.
8828 (ns_term_shutdown): Use it.
8829
8830 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
8831 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
8832
8833 * nsfns.m (ns_set_name_iconic, ns_set_name)
8834 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
8835 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
8836
9694740b
SM
8837 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
8838 Remove double-casting in client_data comparison.
31c2d412 8839
3208cb35
YM
88402009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8841
8842 * keyboard.c (make_lispy_event): Remember last wheel direction.
8843 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
8844
b7d552d6
GM
88452009-09-26 Glenn Morris <rgm@gnu.org>
8846
8847 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
8848 internal.elc. Add term/pc-win.elc.
8849 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
8850 term/x-win.elc.
8851 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
8852 term/w32-win.elc.
8853 (NS_SUPPORT): New.
8854 (lisp): Add NS_SUPPORT.
8855 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
8856
4ff670a8
DR
88572009-09-25 David Reitter <david.reitter@gmail.com>
8858
8859 * nsmenu.m (EmacsMenu-clear): Recognize application menu
8860 on Mac OS X 10.6+ (bug#4513).
8861
feabfb6c
JB
88622009-09-24 Juanma Barranquero <lekktu@gmail.com>
8863
8864 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
8865 some parts of Emacs code (like font selection) don't grok them.
8866 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 8867
de59072a
AS
88682009-09-24 Andreas Schwab <schwab@redhat.com>
8869
8870 * coding.c (decode_coding_iso_2022): Fix operator precedence.
8871
a489517b
JB
88722009-09-24 Juanma Barranquero <lekktu@gmail.com>
8873
8874 * dired.c (Fdirectory_files): Fix typo in docstring.
8875
0592970c
AR
88762009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8877
8878 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
8879 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
8880 (EmacsScroller-setPosition:portion:whole:): Remove -display call
8881 under GNUstep.
8882 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
8883
8884 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
8885 glyph advancement.
8886
48e8a88b
AR
88872009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8888
8889 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 8890 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
8891
8892 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
8893 deleted (bug #4492).
8894
e14f0a78
AR
8895 * nsfont.m (Vns_reg_to_script): New lisp variable.
8896 (syms_of_nsfont): Declare it.
8897 (ns_registry_to_script): New function.
8898 (ns_get_req_script): Call it.
8899 (ns_findfonts): Don't give up on non-unicode registry.
8900
8901 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
8902
5b650faa
SM
89032009-09-20 Tom Tromey <tromey@redhat.com>
8904
8905 * eval.c (find_handler_clause): Make stack-trace-on-error work in
8906 batch mode (bug#4228).
8907
a489517b 89082009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
8909
8910 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 8911 carefully. (Bug #4339)
0bae4e09 8912
fcfe06f3
CY
89132009-09-18 Chong Yidong <cyd@stupidchicken.com>
8914
d798ba87 8915 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 8916
31642728
AR
89172009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
8918
8919 * emacs.c (inhibit_x_resources): Update doc string for NS.
8920 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 8921 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
8922
8923 * nsterm.h (ns_no_defaults): Remove.
8924
8925 * nsterm.m (ns_no_defaults): Remove.
8926 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
8927 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
8928 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
8929 don't update the NSWindow itself.
8930 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 8931 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
8932
8933 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
8934 ns_use_qd_smoothing.
8935
8936 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
8937 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 8938 (x-close-connection): Drop PSFlush() under OS X.
a489517b 8939 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 8940
8686ac71
JB
89412009-09-17 Juanma Barranquero <lekktu@gmail.com>
8942
8943 * emacs.c (inhibit_x_resources): New variable.
8944 (main) [HAVE_NS]: Don't process --quick command line option.
8945 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
8946
8947 * lisp.h (inhibit_x_resources): Declare it extern.
8948
8949 * w32reg.c (x_get_string_resource):
8950 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
8951
e227ba05
EZ
89522009-09-17 Eli Zaretskii <eliz@gnu.org>
8953
362654a6
JB
8954 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
8955 Add lisp/term/internal.elc.
e227ba05 8956
742d40e8
SM
89572009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
8958
8959 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
8960 (bug#4461).
8961
005bd5a2
DN
89622009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
8963
8964 * puresize.h (BASE_PURESIZE): Increase to 1290000.
8965
8966 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
8967 (OBJECTS_MACHINE): Remove, unused.
8968
f9af9719
SM
89692009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
8970
8971 * frame.c (x_get_resource_string): Remove unused.
8972
0307c7d2
JD
89732009-09-15 Jan Djärv <jan.h.d@swipnet.se>
8974
8975 * xterm.c (x_new_font): Call change_frame_size before calling
8976 x_set_window_size, in case frame size won't change.
8977
8978 * frame.c (x_set_font): Remove dead code.
8979
428b13d6
SM
89802009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
8981
8982 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
8983
5766c380
SM
89842009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8985
8986 * lread.c (Fload): Don't output a message after loading an obsolete
8987 package any more (done in Lisp now).
8988
2fd0161b
CY
89892009-09-12 Chong Yidong <cyd@stupidchicken.com>
8990
8991 * fns.c (syms_of_fns): Doc fix (Bug#4227).
8992
bc5e75b6
SM
89932009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8994
8995 * keymap.c (Fwhere_is_internal): Use nconc2.
8996
c31c985e
AM
89972009-09-11 Alan Mackenzie <acm@muc.de>
8998
8999 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
9000 batch mode.
9001
78012bd2
AS
90022009-09-11 Andreas Schwab <schwab@linux-m68k.org>
9003
9004 * xdisp.c (display_mode_element): Detect cycles.
9005
9d889332
SM
90062009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
9007
9008 * keymap.c (where_is_internal): Don't erroneously return nil right after
9009 filling the cache.
9010 (where_is_internal_1): Fix up typo.
9011
7ab5d780
GM
90122009-09-11 Glenn Morris <rgm@gnu.org>
9013
9014 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
9015 share a common doc-string.
9016
5238a749
SM
90172009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
9018
66d77eda
SM
9019 * keymap.c (get_keymap): Return the actual keymap symbol rather than
9020 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
9021
5238a749
SM
9022 * keymap.c (QCadvertised_binding): New constant.
9023 (syms_of_keymap): Initialize it.
9024 (Fwhere_is_internal): Try and use bindings from :advertised-binding
9025 if applicable.
9026
19f48442
SM
90272009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
9028
50d4ba39
SM
9029 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
9030 (parse_menu_item): Streamline since bindings are recomputed all the
9031 time anyway. Don't bother checking Vdefine_key_rebound_commands any
9032 more and don't support lmenu's menu-alias any more either.
9033
a88a5372
SM
9034 * keymap.c (where_is_internal_data): Make noindirect a boolean.
9035 (where_is_internal): Strip it down to only traverse the keymaps.
9036 Move the cache handling from Fwhere_is_internal to here.
9037 (Fwhere_is_internal): Move the handling of remapping and the choice of
9038 the best binding from where_is_internal to here.
9039 Unify the cached/noncached paths, so remapping is also handled
9040 correctly when the cache is used, and so the cache can be used to
9041 speed up remap-handling when applicable.
9042 Give preference to non-remapped bindings.
9043 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
9044 non-remapped bindings.
9045 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
9046 command remapping.
9047
19f48442
SM
9048 * xdisp.c (display_mode_element): Move list length limit from 50 to
9049 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
9050
599498c3 90512009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
9052
9053 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
9054
f9b7b5ac
SM
90552009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
9056
a53af587
JB
9057 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
9058 (Bug#4334)
9059
f9b7b5ac
SM
9060 * keymap.c (where_is_internal): Filter out shadowed remappings.
9061 Assume that where_is_internal returns unshadowed bindings to simplify
9062 the code and get rid of the gotos. Use ASIZE.
9063
04f4b72d
JD
90642009-09-04 Jan Djärv <jan.h.d@swipnet.se>
9065
4da146f2
JD
9066 * xterm.c (x_focus_changed): If we get a focusout and pointer
9067 is invisible, make it visible.
9068
04f4b72d
JD
9069 * xterm.h: Remove condition for declaration of
9070 x_*_window_to_frame.
9071
7cef7ce3
SM
90722009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
9073
9074 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
9075 initial terminal as well.
9076
a54fa5b7
JD
90772009-09-02 Jan Djärv <jan.h.d@swipnet.se>
9078
9079 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 9080 x_menubar_window_to_frame.
a54fa5b7 9081
50426a04 9082 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
9083 (XTmouse_position): Do not return valid positions
9084 for clicks in the menubar and the toolbar for Gtk+.
9085
9086 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
9087 if the widget for the event has the same top level as a frame,
9088 return the frame.
9089 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
9090 internal windows, bug #4122.
9091 (x_non_menubar_window_to_frame): Remove.
9092
5a021dd0
GM
90932009-09-02 Glenn Morris <rgm@gnu.org>
9094
9095 * buffer.c (default-major-mode): Move most of the doc from here...
9096 (major-mode): ... to here.
9097
548fe2f3
NR
90982009-08-30 Nick Roberts <nickrob@snap.net.nz>
9099
9100 * process.c (wait_reading_process_output): Keep the descriptor
9101 when pty is used by a non-child process, e.g., in I/O buffer of
9102 GDB this allows inferior to be restarted.
9103
e0840eef
EZ
91042009-08-29 Eli Zaretskii <eliz@gnu.org>
9105
9106 * xdisp.c (redisplay_internal): Remove redundant test and collapse
9107 both branches into one.
9108
82e98df4
SM
91092009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
9110
9111 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
9112 (main): Use enable-multibyte-characters rather than
9113 default-enable-multibyte-characters. Output a warning message when
9114 running a unibyte session.
9115
890617cb
YM
91162009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9117
9118 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
9119 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
9120 (copy_data_segment): Also copy __program_vars section.
9121 (copy_dyld_info) [LC_DYLD_INFO]: New function.
9122 (dump_it) [LC_DYLD_INFO]: Use it.
9123
9124 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
9125
e7adeadc
EZ
91262009-08-28 Eli Zaretskii <eliz@gnu.org>
9127
9128 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
9129 $(SRC)/buildobj.h.
9130 (buildobj.h): Renamed from $(SRC)/buildobj.h.
9131 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
9132 $(SRC)/buildobj.h.
9133 (clean): Add buildobj.h.
9134
3ed8bbdc
TZ
91352009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
9136
9137 * print.c (print_object): Set escapeflag to 1 when printing
9138 hashtable keys and values.
9139
155a6764
SM
91402009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
9141
9142 * lread.c (read_integer): Use doubles (and potentially return a float
9143 number) as we do in string-to-number.
9144 (read1): Use strtol to read integers, signal errors on strtol's
9145 overflow and use floats if strtol's output is too large for
9146 Elisp integers.
9147
877610de
EZ
91482009-08-27 Eli Zaretskii <eliz@gnu.org>
9149
9150 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
9151 (make-buildobj-SH): Fix last change.
9152 (SRC): Move to before where it's first used.
9153
ef73e7be
KH
91542009-08-27 Kenichi Handa <handa@m17n.org>
9155
550c8289
KH
9156 * process.c (send_process): Use encode_coding_object instead of
9157 encode_coding_string to perform eol-conversion even if the string
9158 is unibyte.
9159
60afa08d
KH
9160 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
9161 character.
9162
ef73e7be 9163 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 9164 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 9165
7b3a82d7
DN
91662009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
9167
5654bf63
DN
9168 * callproc.c (Fcall_process): Remove always true #if.
9169
7b3a82d7
DN
9170 * lisp.h: Replace #if 0 code for checking with text pointing to
9171 the --enable-checking configure flag.
9172
9173 * emacs.c (main): Mention the --enable-profiling configure flag
9174 instead of using CFLAGS.
9175
878bde49
KR
91762009-08-26 Ken Raeburn <raeburn@raeburn.org>
9177
9178 * Makefile.in (buildobj.h): New target.
9179 (doc.o): Depend on it.
9180 (temacs${EXEEXT}): Don't generate buildobj.lst.
9181 (mostlyclean): Delete buildobj.h, not buildobj.lst.
9182 * makefile.w32-in ($(SRC)/buildobj.h): New target.
9183 ($(BLD)/doc.$(O)): Depend on it.
9184 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
9185 provided by Eli Zaretskii.)
9186 ($(TEMACS)): Don't generate buildobj.lst.
9187 * doc.c: Include buildobj.h.
9188 (buildobj): New static variable.
9189 (Fsnarf_documentation): Use it, instead of opening and reading
9190 buildobj.lst.
9191
1574224c
MA
91922009-08-25 Michael Albinus <michael.albinus@gmx.de>
9193
9194 * dbusbind.c (Fdbus_call_method)
9195 (Fdbus_call_method_asynchronously): Use English numeric format for
9196 timeout values in doc string.
9197
d9da2f45
KH
91982009-08-25 Kenichi Handa <handa@m17n.org>
9199
ef73e7be
KH
9200 * alloc.c (mark_char_table): New function.
9201 (mark_object): Use mark_char_table for a char-table.
9202
d9da2f45
KH
9203 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
9204 (CHAR_TABLE_REF): Use it.
9205
c8edcc01
KR
92062009-08-23 Ken Raeburn <raeburn@raeburn.org>
9207
9208 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
9209 before invoking the newly build emacs to check for load-path
9210 shadowing.
9211
7763401b
GM
92122009-08-22 Glenn Morris <rgm@gnu.org>
9213
9214 * Makefile.in (bootstrap_exe): New variable.
9215 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
9216 Use ${bootstrap_exe}.
9217
729eadda
EZ
92182009-08-22 Eli Zaretskii <eliz@gnu.org>
9219
9220 * coding.h (encode_coding_string): Don't encode unibyte strings.
9221 (Bug#4047)
9222
eb4c6ace
MA
92232009-08-22 Michael Albinus <michael.albinus@gmx.de>
9224
9225 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
9226
9227 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
9228 intended as hotfix only.
9229 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
9230
36e34d1b
AR
92312009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9232
9233 * nsterm.m (ns_get_color): Update documentation properly for last
9234 change, and clean up loose ends in the code left by it. Fix
9235 longstanding bug with 16-bit hex parsing, and add support for
9236 yet another X11 format (rgb:r/g/b) for compatibility.
9237 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
9238 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
9239
f983eb8a
SM
92402009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
9241
9242 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
9243
3f56d3c6
MA
92442009-08-20 Michael Albinus <michael.albinus@gmx.de>
9245
9246 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
9247 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
9248 (xd_initialize, xd_pending_messages): Check, whether
9249 $DBUS_SESSION_BUS_ADDRESS is set.
9250
fb641d68
YM
92512009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9252
9253 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
9254
9255 * nsterm.m (ns_get_color): Remove incompatible color formats again.
9256
cf59a374
GM
92572009-08-20 Glenn Morris <rgm@gnu.org>
9258
9259 * emacs.c (system-type): Doc fix.
9260
1373f3be
SM
92612009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
9262
9263 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
9264 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
9265
058ed861
MA
92662009-08-18 Michael Albinus <michael.albinus@gmx.de>
9267
1373f3be
SM
9268 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
9269 New functions.
058ed861
MA
9270 (xd_initialize): Revert change from 2009-08-16.
9271
563a866e 92722009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
9273
9274 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 9275 font-group vector, return nil.
5fc05db0 9276
e42bdf01
CY
92772009-08-17 Chong Yidong <cyd@stupidchicken.com>
9278
9279 * process.c (status_notify): Don't perform redisplay.
9280 (Fdelete_process, list_processes_1, process_send_signal):
9281 Expliticly perform redisplay.
9282 (wait_reading_process_output): Always check process status, but
9283 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
9284
4230ab74
KR
92852009-08-17 Ken Raeburn <raeburn@raeburn.org>
9286
1373f3be 9287 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
9288 (XFLOAT_INIT): New macro for storing a float value.
9289 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
9290 * fns.c (sxhash): Copy out the value of a float in order to
9291 examine its bytes.
9292 * dbusbind.c (xd_append_arg): Likewise.
9293
4230ab74
KR
9294 * emacs.c (main): Don't call syms_of_data twice.
9295
a0645cdd
MA
92962009-08-16 Michael Albinus <michael.albinus@gmx.de>
9297
9298 * dbusbind.c (xd_initialize): Add connection file descriptor to
9299 input_wait_mask, in order to let select() detect, whether a new
9300 message has been arrived.
ca4f31ea 9301 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 9302
485db0ba
MA
93032009-08-15 Michael Albinus <michael.albinus@gmx.de>
9304
1373f3be
SM
9305 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
9306 New functions.
485db0ba
MA
9307
9308 * lisp.h (xd_pending_messages): Declare.
9309
9310 * keyboard.c (readable_events): Call xd_pending_messages.
9311
b5b98ff4
CY
93122009-08-15 Chong Yidong <cyd@stupidchicken.com>
9313
1373f3be 9314 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 9315
f8354c6e
CY
9316 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
9317
b5b98ff4
CY
9318 * buffer.c (set_buffer_internal_1)
9319 (swap_out_buffer_local_variables): Check for unbound local
9320 variables (Bug#4138).
9321
8b9fc636
EZ
93222009-08-14 Eli Zaretskii <eliz@gnu.org>
9323
9324 * process.c (create_pty): Fix last change.
9325
ce959360
CY
93262009-08-13 Chong Yidong <cyd@stupidchicken.com>
9327
9328 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
9329 (xbm_load_image): Caller changed.
64b807c9 9330 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 9331
c7baf7e9
NR
93322009-08-13 Nick Roberts <nickrob@snap.net.nz>
9333
9334 * process.c (create_pty): New function.
9335 (Fstart_process): Use it to allow Emacs to just associate a pty
9336 with the buffer. See associated change in gdb-mi.el.
9337 (list_processes_1): Deal with no program name.
9338 (start_process_unwind): Use pid == -2 to mean no process.
9339
1ac9108a
SM
93402009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
9341
9342 * cmds.c (nonundocount): New global variable.
9343 (keys_of_cmds): Initialize it.
9344 (Fself_insert_command): Use it to combine upto 20 sequential chars
9345 into a single undo entry, just like the Qself_insert_command code in
9346 keyboard.c does.
9347 Call frame_make_pointer_invisible, also like the Qself_insert_command
9348 code in keyboard.c does.
9349 * keyboard.c (command_loop_1): Use the new global nonundocount rather
9350 than its own local replacement for it.
9351
e267324c
KR
93522009-08-10 Ken Raeburn <raeburn@raeburn.org>
9353
1ac9108a 9354 * fns.c (concat): Don't re-set string length to its current value.
77437343 9355
1ac9108a
SM
9356 * coding.h (decode_coding_string, encode_coding_string):
9357 Use SBYTES macro.
f0bed503 9358
1ac9108a 9359 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
9360 (doprnt): Merge with doprnt1, discarding lispstrings code.
9361 * lisp.h (doprnt_lisp): Don't declare.
9362
416e006d
JL
93632009-08-07 Juri Linkov <juri@jurta.org>
9364
9365 * puresize.h (BASE_PURESIZE): Increase to 1270000.
9366
6f7d5780
DN
93672009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
9368
9369 * print.c (syms_of_print): Undo previous change.
9370
f19a0f5b
TZ
93712009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
9372
9373 * lread.c (read1, syms_of_lread): Read hashtables back from the
9374 readable format.
9375
9376 * print.c (print_preprocess, print_object): Print hashtables fully
9377 and readably.
9378 (syms_of_print): Provide 'hashtable-print-readable.
9379
b9173dc2
AR
93802009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9381
9382 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
9383 no family set.
9384 (nsfont_open): Handle case when entity has no family.
9385
1586503c
AR
93862009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9387
9388 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
9389 element, not a list, for match case.
9390
087048cd
KH
93912009-07-28 Kenichi Handa <handa@m17n.org>
9392
9393 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
9394 rigidly.
9395
9396 * xfont.c (xfont_list_pattern): Don't ignore the return value of
9397 font_parse_xlfd. Check font properties more rigidly.
9398
780c2506
DN
93992009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
9400
31fd7c5c
JB
9401 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
9402 bsd-common.h.
780c2506 9403
a8c0cc18
KH
94042009-07-27 Kenichi Handa <handa@m17n.org>
9405
9406 * xfaces.c (face_with_height): Call font_clear_prop.
9407
4fbe2306
CY
94082009-07-26 Chong Yidong <cyd@stupidchicken.com>
9409
111d9af3
CY
9410 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
9411
9412 * xterm.c (x_term_init): Use Qx.
9413
4fbe2306
CY
9414 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
9415
1ac9108a 9416 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
9417 (ns_get_color): Revert 2009-07-16 change.
9418
beb0b7f9
EZ
94192009-07-25 Eli Zaretskii <eliz@gnu.org>
9420
9421 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 9422 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 9423
2baf5e76
KR
94242009-07-25 Ken Raeburn <raeburn@raeburn.org>
9425
1ac9108a
SM
9426 * coding.h (decode_coding_string, encode_coding_string):
9427 Use SCHARS macro.
8890e5f5 9428
2baf5e76 9429 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 9430 (load_depth): Delete.
2baf5e76
KR
9431 (Qload_in_progress): New variable.
9432 (load_unwind): Don't reference load_depth or load_in_progress.
9433 (Fload): Likewise; specbind Qload_in_progress instead.
9434 (init_lread): Don't initialize load_depth.
9435 (syms_of_lread): Initialize and protect Qload_in_progress.
9436
1395c6f5
AR
94372009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9438
9439 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
9440
4e2f36cf
AR
94412009-07-23 Yavor Doganov <yavor@gnu.org>
9442
9443 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
9444
5dd9a6f7
AR
94452009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
9446
9447 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
9448 Bugs 3792, 3720, 2402.
9449 (ns_lookup_indexed_color): Check for bad index.
9450 (ns_index_color): Init unused slot to 0.
9451 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
9452 Bug 3714, possibly 3082.
5dd9a6f7 9453
c902b920
JR
94542009-07-22 Jason Rumney <jasonr@gnu.org>
9455
1ac9108a
SM
9456 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
9457 Position IME window at cursor (Bug#2570).
c902b920
JR
9458 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
9459 (globals_of_w32fns): Dynamically load functions required above.
9460
9461 * w32term.c (w32_draw_window_cursor): Send message to reposition
9462 any IME window.
9463
090101cf
CY
94642009-07-21 Chong Yidong <cyd@stupidchicken.com>
9465
9466 * fileio.c: Revert 2009-07-16 changes.
9467 (Vauto_save_include_big_deletions): New variable.
9468 (Fdo_auto_save): Disable auto-save only if
9469 auto-save-include-big-deletions is nil.
9470
e6583e3d
CY
94712009-07-21 Chong Yidong <cyd@stupidchicken.com>
9472
9473 * xdisp.c (move_it_to): For continued lines ending in a tab, take
9474 the overflowed pixels into account (Bug#3879).
9475
ece435a5
KR
94762009-07-21 Ken Raeburn <raeburn@raeburn.org>
9477
9478 * lread.c (load_depth): New variable.
9479 (Fload, load_unwind, init_lread): Set it to the load recursion
9480 depth; set load_in_progress as a simple boolean based on the
9481 current load_depth. (Bug#3892)
9482
40b2d973
AR
94832009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9484
9485 * nsfont.m (ns_has_attribute): Remove.
9486 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
9487
10be7e0d
JL
94882009-07-18 Juri Linkov <juri@jurta.org>
9489
9490 * process.c (Fset_process_query_on_exit_flag): Mention killing
9491 a buffer in docstring.
9492
fa055055
KH
94932009-07-17 Kenichi Handa <handa@m17n.org>
9494
9495 * casetab.c (shuffle): Fix the logic of setting up the cycle.
9496
042f7b69
YM
94972009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9498
9499 * nsfns.m (Fns_set_alpha): Remove function.
9500 (syms_of_nsfns): Don't defsubr it.
9501
9502 * nsterm.m (ns_get_color): Remove incompatible color formats.
9503 (ns_color_to_lisp): Generate #rrggbb color format string.
9504
4be941e3
RS
95052009-07-16 Richard Stallman <rms@gnu.org>
9506
9507 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
9508 (Fset_buffer_auto_saved): Handle save_length = -2.
9509
4e6b227d
CY
95102009-07-16 Chong Yidong <cyd@stupidchicken.com>
9511
9512 * xterm.c (Qx_gtk_map_stock): New var.
9513
9514 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
9515 of calling intern each time.
9516
a1856973
YM
95172009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9518
9519 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
9520 does tiling.
9521
9522 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
9523
497e54d8
KH
95242009-07-14 Kenichi Handa <handa@m17n.org>
9525
72d36834
KH
9526 * font.c (font_vconcat_entity_vectors): New function.
9527 (struct font_sort_data): New member font_driver_preference.
9528 (font_compare): Check font_driver_preference.
9529 (font_sort_entities): The format of the first argument changed.
9530 (font_delete_unmatched): Likewise.
9531 (font_list_entities): The return type changed.
9532 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
9533 (font_find_for_lface): Adjuste for the above changes.
9534 Don't suppress the checking of C even if the repertory supports it.
9535 (Flist_fonts): Adjust for the above changes.
72d36834 9536
1ac9108a
SM
9537 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
9538 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
9539 Reject a font who has adstyle property that is different from a
9540 langname derived from registry property.
1ac9108a 9541 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 9542
b6046155
EZ
95432009-07-13 Eli Zaretskii <eliz@gnu.org>
9544
9545 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
9546 local copy of dirfilename.
9547
fb6b6049
KH
95482009-07-13 Kenichi Handa <handa@m17n.org>
9549
e2402a5e
KH
9550 * chartab.c (sub_char_table_ref_and_range): Fix the range check
9551 against max_char.
9552
fb6b6049
KH
9553 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
9554 calling XSYMBOL (sym).
9555
65156807
EZ
95562009-07-11 Eli Zaretskii <eliz@gnu.org>
9557
1ac9108a
SM
9558 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
9559 New function.
9560 (directory_files_internal) [WINDOWSNT]:
9561 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
9562 the filesystem of the directory is fast or slow.
9563
9564 * w32.c (logon_network_drive): Don't assume PATH is an absolute
9565 file name.
9566 (is_slow_fs): New function.
9567 (stat): Use it to determine whether to issue more system calls to
9568 get accurate file attributes, when w32-get-true-file-attributes is
9569 `local'.
9570
e0ab5fcf
JD
95712009-07-10 Jan Djärv <jan.h.d@swipnet.se>
9572
9573 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 9574 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
9575 parameter font-parameter as default to the font dialog.
9576
784ceded
KH
95772009-07-10 Kenichi Handa <handa@m17n.org>
9578
9579 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
9580
fb8edc0b
EZ
95812009-07-09 Eli Zaretskii <eliz@gnu.org>
9582
1ac9108a 9583 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 9584
fb8edc0b
EZ
9585 * w32.c (stat): Treat UNC file names as residing on remote
9586 drives. (Bug#3542)
9587
635c75b1
KH
95882009-07-09 Kenichi Handa <handa@m17n.org>
9589
9590 * fontset.c (fontset_find_font): Fix previous change.
9591
c1d5ce94
MA
95922009-07-08 Michael Albinus <michael.albinus@gmx.de>
9593
9594 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
9595 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
9596 error flag.
9597
edb61b39
KH
95982009-07-08 Kenichi Handa <handa@m17n.org>
9599
374bf7e4
KH
9600 * fontset.c (fontset_find_font): Fix the logic of handling
9601 charset_matched.
9602 (font_for_char): Delete unused var.
9603 (generate_ascii_font_name): Delete it.
9604
edb61b39
KH
9605 * coding.h (JIS_TO_SJIS2): Fix the code range check.
9606
9607 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
9608 (encode_coding_sjis): Fix the code range check.
9609
0f3f018c
CY
96102009-07-07 Chong Yidong <cyd@stupidchicken.com>
9611
9612 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
9613 (Fexpand_file_name): Copy string data properly (Bug#3772).
9614
fcaf6f3a
JD
96152009-07-07 Jan Djärv <jan.h.d@swipnet.se>
9616
9617 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
9618 first MapNotify.
9619
6809ca75
KH
96202009-07-07 Kenichi Handa <handa@m17n.org>
9621
9622 * character.h (unibyte_has_multibyte_table): Delete extern.
9623 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
9624
9625 * charset.c (Fset_charset_priority): Update charset_unibyte.
9626 (syms_of_charset): Initialize charset_unibyte.
9627
9628 * character.c (unibyte_has_multibyte_table): Delete it.
9629 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
9630 charset_unibyte.
9631 (multibyte_char_to_unibyte_safe): Likewise.
9632 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
9633
1ac9108a 9634 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
9635 (x_produce_glyphs): Likewise.
9636
9637 * .gdbinit (xcharset): Fix the treating $arg0.
9638
ad9e2d54
EZ
96392009-07-04 Eli Zaretskii <eliz@gnu.org>
9640
9641 Emulation of `getloadavg' on MS-Windows.
50426a04 9642 * w32.c: Include float.h.
ad9e2d54
EZ
9643 (g_b_init_get_native_system_info, g_b_init_get_system_times)
9644 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
9645 (get_native_system_info, get_system_times): New functions.
9646 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
9647 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
9648 (globals_of_w32): Initialize g_b_init_get_native_system_info,
9649 g_b_init_get_system_times, and num_of_processors.
9650
0a3472c7
JR
96512009-07-03 Jason Rumney <jasonr@gnu.org>
9652
9653 * w32term.c (w32_initialize): Use standard types.
9654
80904120
EZ
96552009-07-03 Eli Zaretskii <eliz@gnu.org>
9656
9657 * dired.c (Ffile_attributes): Decode user and group names by the
9658 locale's encoding. (Bug#3443)
9659
6978862d
DN
96602009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
9661
f8d23104
DN
9662 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
9663 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
9664
9665 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
9666
9667 * term.c (init_tty): Remove spurious #ifdef.
9668
6978862d
DN
9669 * m/mips.h: Mention this file is also used for netbsd.
9670 * m/pmax.h: Remove file.
9671
e044e4fc
JD
96722009-07-03 Jan Djärv <jan.h.d@swipnet.se>
9673
9674 * xterm.h (struct x_display_info): Add invisible_cursor.
9675 (struct x_output): Add current_cursor.
9676
9677 * xterm.c (XTtoggle_invisible_pointer): New function.
9678 (x_define_frame_cursor): Don't define cursor if invisible or the
9679 same as before. Set current_cursor.
9680 (x_create_terminal): Set toggle_invisible_pointer_hook.
9681
9682 * xfns.c (make_invisible_cursor): New function.
9683 (x_set_mouse_color): Call make_invisible_cursor.
9684 Set current_cursor.
9685 (x_window): Set current_cursor.
9686
9687 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
9688
9689 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
9690 inserting a character.
9691 (read_avail_input): Call frame_make_pointer_visible.
9692
9693 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
9694 (frame_make_pointer_invisible, frame_make_pointer_visible):
9695 New functions.
e044e4fc
JD
9696 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
9697
9698 * frame.h: Declare frame_make_pointer_invisible and
9699 frame_make_pointer_visible.
9700 (struct frame): Add pointer_invisible.
9701
574c8efa
JD
97022009-07-02 Jan Djärv <jan.h.d@swipnet.se>
9703
7b507248
JD
9704 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
9705 frame isn't visible.
9706 (xg_frame_resized): If width/height is -1, get size of window
9707 from X server.
9708
9709 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
9710 for MapNotify.
9711
835bdaa7 9712 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 9713 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 9714 (flush_and_sync): Reintroduce.
574c8efa 9715
3f1c6666 97162009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 9717
31fd7c5c 9718 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
9719
9720 * xterm.c (x_handle_net_wm_state): Also look for sticky.
9721 (x_term_init): Initialize Xatom_net_wm_state_sticky.
9722
9723 * frame.h: Declare Qsticky.
9724
cad9ef74
JD
9725 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
9726
9727 * nsfns.m (ns_frame_parm_handlers): Ditto.
9728
9729 * frame.c: Declare Qsticky.
9730 (frame_parms): Add sticky.
9731
9732 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
9733
9734 * xterm.h: Declare x_set_sticky.
9735
9736 * xterm.c (x_set_sticky): New function.
9737
69b16610
JD
9738 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
9739 (xg_tool_bar_menu_proxy): Attach enter/leave events to
9740 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
9741
9742 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
9743
9744 * frame.c: Qmaximized is new.
9745 (x_set_frame_parameters): Do not handle fullscreen specially.
9746 Only set width and height if explicitly set.
9747 (x_set_fullscreen): Handle Qmaximized.
9748 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
9749 (syms_of_frame): Initialize Qmaximized.
9750
1ac9108a
SM
9751 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
9752 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
9753
9754 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
9755 for Expose event. Add call to x_check_fullscreen for MapNotify event.
9756 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
9757 set gravity to NorthWestGravity when USE_GTK.
9758 (set_wm_state): New function.
31fd7c5c 9759 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
9760 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
9761 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 9762 or the case when no window manager is running. That means remove calls
3f1c6666
JD
9763 to x_real_positions and x_fullscreen_adjust.
9764
9765 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
9766 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
9767 flush_and_sync.
9768 (xg_height_changed): New function.
9769 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
9770 and gtk_window_set_policy. Set frame gravity after parsing the
9771 geometry string.
3f1c6666
JD
9772 (xg_update_frame_menubar, free_frame_menubar)
9773 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
9774 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
9775 Remove calls to xg_frame_set_char_size.
9776
fd503d99
KH
97772009-07-01 Kenichi Handa <handa@m17n.org>
9778
9779 * keyboard.c (decode_keyboard_code): New function.
9780 (tty_read_avail_input): Decode the input bytes if necessary.
9781
1ac9108a
SM
9782 * coding.c (setup_coding_system):
9783 Initialize coding->carryover_bytes to 0.
fd503d99
KH
9784 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
9785 use Qno_conversion.
9786
24ed93fb
YM
97872009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9788
9789 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
9790
99061dfc
CY
97912009-06-30 Chong Yidong <cyd@stupidchicken.com>
9792
1ac9108a 9793 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 9794
ff90fbde
JR
97952009-06-30 Jason Rumney <jasonr@gnu.org>
9796
9797 * w32term.c (w32_initialize): Use GetModuleHandle for library that
9798 is already loaded.
9799 Set user model ID if supported (bug#1849).
9800
5f445726
JM
98012009-06-29 Jim Meyering <meyering@redhat.com>
9802
9803 Remove useless if-before-xfree test.
9804 * nsfont.m (nsfont_close): Remove useless test.
9805 * term.c (delete_tty): Likewise.
9806 * w32.c (system_process_attributes): Likewise.
9807 * w32font.c (w32font_close): Likewise.
9808 * xfaces.c (x_free_gc): Likewise.
9809 * xselect.c (buffer): Likewise.
9810
b9607587
AS
98112009-06-28 Andreas Schwab <schwab@linux-m68k.org>
9812
9813 * process.c (send_process): Keep decoded string in a local
9814 variable and protect it from GC. (Bug#3521)
9815
89ba96f4
EZ
98162009-06-28 Eli Zaretskii <eliz@gnu.org>
9817
9818 * term.c (create_tty_output) [MSDOS]: #ifdef away.
9819 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
9820
098a1589
CY
98212009-06-28 Chong Yidong <cyd@stupidchicken.com>
9822
485422be
CY
9823 * xdisp.c (start_display, handle_face_prop)
9824 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
9825 (redisplay_window, try_window_id, produce_image_glyph):
9826 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 9827
098a1589
CY
9828 * xterm.c (x_update_window_begin, x_new_focus_frame)
9829 (x_scroll_bar_handle_click, handle_one_xevent)
9830 (handle_one_xevent, XTread_socket, x_focus_on_frame)
9831 (x_make_frame_visible, x_make_frame_invisible)
9832 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
9833 code chunks that are now obsolete.
9834
78c38319
MA
98352009-06-28 Michael Albinus <michael.albinus@gmx.de>
9836
9837 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
9838 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
9839 for hours, when optimzation is enabled.
9840 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
9841 (xd_read_message): Make them static.
9842
4189ed40
CY
98432009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
9844
9845 * term.c (turn_on_face): Allow simultaneously bold and dim
9846 terminal faces (Bug#3530).
9847
cd9b5e16
CY
98482009-06-27 Chong Yidong <cyd@stupidchicken.com>
9849
4e23bedb
CY
9850 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
9851
cd9b5e16
CY
9852 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
9853 truncation glyphs (Bug#3686).
9854
07cc3c35
GM
98552009-06-27 Glenn Morris <rgm@gnu.org>
9856
9857 * m/pmax.h: Restore file, with only netbsd portions.
9858
31fd7c5c 98592009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 9860
cd9b5e16 9861 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 9862
42d4a64f
KH
98632009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
9864
9865 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
9866 the arg FORCE_SYMBOL.
9867
930fe55b 98682009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
9869
9870 * fontset.c (fontset_find_font): When a usable rfont_def is found
9871 in a fallback font-group, make it the first element of the group.
9872
57ebc3fd
CY
98732009-06-24 Chong Yidong <cyd@stupidchicken.com>
9874
9875 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
9876
f084f942
KH
98772009-06-24 Kenichi Handa <handa@m17n.org>
9878
9879 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
9880 set for C.
9881 (fontset_font): Record the availability of a font for C both in
9882 the realized fontsets of the current one and the default one.
9883
2f686c87
DN
98842009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
9885
9886 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
9887 conditional, it is always defined on AIX.
9888
666e158e
MB
98892009-06-23 Miles Bader <miles@gnu.org>
9890
9891 * window.c (Vrecenter_redisplay): New variable.
9892 (syms_of_window): Initialize it.
9893 (Qtty): New extern declaration.
9894 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
9895
c6da7cd2
JM
98962009-06-23 Jim Meyering <meyering@redhat.com>
9897
1ac9108a
SM
9898 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
9899 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 9900 pointer dereferences are guaranteed to be valid.
c6da7cd2 9901
678dca3d
KH
99022009-06-23 Kenichi Handa <handa@m17n.org>
9903
74d75424
KH
9904 * emacs.c (main): Call init_font ().
9905
9906 * font.h (Vfont_log): Extern it.
9907 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
9908
9909 * font.c (font_sort_entities, font_list_entities)
9910 (font_matching_entity, font_open_entity)
9911 (font_close_object): Change font_add_log to FONT_ADD_LOG.
9912 (Vfont_log): Delete static.
9913 (font_log_env_checked): Delete this variable.
9914 (font_add_log): Don't check font_log_env_checked.
9915 (font_deferred_log): Check Vfont_log.
9916 (init_font): New function.
9917
678dca3d
KH
9918 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
9919
9920 * w32font.c: Change font_add_log to FONT_ADD_LOG.
9921
9922 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
9923
9924 * xfont.c: Change font_add_log to FONT_ADD_LOG.
9925
9926 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
9927 (face_for_char): Don't call font_deferred_log here.
9928 (font_for_char): Likewise.
9929
8a668709
CY
99302009-06-22 Chong Yidong <cyd@stupidchicken.com>
9931
9a01ee33
CY
9932 * w32term.c (x_draw_glyph_string): Use the glyph string's width
9933 rather than its background_width for drawing the overline and
9934 underline (Bug#489).
9935
9936 * xterm.c (x_draw_glyph_string): Use the glyph string's width
9937 rather than its background_width for drawing the overline and
9938 underline (Bug#489).
ec7c9926
CY
9939 (xg_default_icon_file): New variable.
9940 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
9941 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 9942
8a668709
CY
9943 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
9944 (load_overlay_strings): Remove externs.
9945 (fast_find_position): Function deleted.
9946 (mouse_face_from_buffer_pos): New function, based on
9947 fast_find_position. Correctly handle before-strings,
9948 display-strings, and after-strings (Bug#1220).
9949 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
9950
4d4c02d8
CY
99512009-06-21 Chong Yidong <cyd@stupidchicken.com>
9952
1ac9108a 9953 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
9954 (move_it_in_display_line_to, move_it_in_display_line_to)
9955 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
9956
70243478
CY
99572009-06-21 Chong Yidong <cyd@stupidchicken.com>
9958
9959 * Branch for 23.1.
9960
13087e59
JR
99612009-06-21 Jason Rumney <jasonr@gnu.org>
9962
9963 * w32term.c (keyboard_codepage): New static variable.
9964 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
9965 (w32_read_socket) [WM_CHAR]: Use it to decode character
9966 input (bug#3237).
9967 (w32_initialize): Initialize it.
9968 (codepage_for_locale): New function.
9969
4735b74e
KR
99702009-06-20 Ken Raeburn <raeburn@raeburn.org>
9971
9972 * process.c (status_message): Pass Faset index argument as a lisp
9973 object, so as to work with USE_LISP_UNION_TYPE.
9974
0e727afa
YM
99752009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9976
9977 * coding.c (Ffind_coding_systems_region_internal):
9978 Cache checked characters.
9979
cf299835
KH
99802009-06-18 Kenichi Handa <handa@m17n.org>
9981
1ac9108a 9982 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 9983
90f20d94
AS
99842009-06-18 Andreas Schwab <aschwab@redhat.com>
9985
9986 * xdisp.c (redisplay_internal): Check that the frame is still
9987 live after redisplay of its windows.
9988 (redisplay_windows): Check that the window is still live.
9989
7f1faf1c
KH
99902009-06-17 Andreas Schwab <schwab@linux-m68k.org>
9991
9992 * coding.c (detect_coding_utf_16): Fix previous change.
9993
cc13543e
KH
99942009-06-16 Kenichi Handa <handa@m17n.org>
9995
9996 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
9997 UTF-16 by checking the dispersion of Eth and Oth bytes.
9998
977b85f4
AS
99992009-06-15 Andreas Schwab <schwab@linux-m68k.org>
10000
10001 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
10002
66bd43d1
KH
100032009-06-15 Kenichi Handa <handa@m17n.org>
10004
10005 * process.c (status_message): Fix previous change. Be sure to
10006 decode a localized string.
10007
cb5ca9c5
YM
100082009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10009
10010 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
10011 add comment explaining why.
10012
ec7709ba 100132009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 10014
ec7709ba 10015 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 10016
4b7f335c
AR
100172009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
10018
10019 * nsfont.m (ns_attribute_value): Remove.
10020 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
10021 (ns_has_attribute): Shrink the normal range.
10022 (ns_findfonts): Don't worry about requested spec in determining
10023 need for synthItal.
e41820ee 10024 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 10025
73b26103
SZ
100262009-06-14 Seiji Zenitani <zenitani@mac.com>
10027
10028 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
10029
5753e4da
KH
100302009-06-11 Kenichi Handa <handa@m17n.org>
10031
10032 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
10033 overhang for the static composition case.
10034
3561b671
KH
100352009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10036
5753e4da
KH
10037 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
10038 overhang for the automatic composition case.
10039
3561b671
KH
10040 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
10041 composition case.
10042
852bbd41
CY
100432009-06-10 Chong Yidong <cyd@stupidchicken.com>
10044
10045 * xdisp.c (get_next_display_element): When handling wrap-prefix
10046 and line-prefix, treat \n as a control character (bug#3502).
10047
9903d1e6
KH
100482009-06-10 Kenichi Handa <handa@m17n.org>
10049
10050 * font.c (font_parse_family_registry): Fix for one-char foundry.
10051 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
10052
0bcbaaaa
CY
100532009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
10054
10055 * process.c (status_message): Fix handling of multibyte signal
10056 string (Bug#3499).
10057
40aa3f13
JM
100582009-06-09 Jim Meyering <meyering@redhat.com>
10059
1f80c7e2
CY
10060 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
10061 color name is missing.
40aa3f13 10062
72d51285
KH
100632009-06-09 Kenichi Handa <handa@m17n.org>
10064
10065 * charset.c (Fmap_charset_chars): In docstring, state clearly that
10066 FROM-CODE and TO-CODE are codepoints of CHARSET.
10067
c1d04d84
AR
100682009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
10069
10070 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
10071
100722009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
10073
10074 Changes to support :script/:lang/:otf in NS font driver.
10075 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
10076 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
10077 indicate not part of font driver interface, and change callers.
10078 (ns_get_family): Remove pointless null check.
10079 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
10080 ns_spec_to_descriptor, ns_descriptor_to_entity.
10081 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
10082 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
10083 (ns_spec_to_descriptor, ns_descriptor_to_entity)
10084 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
10085 (ns_get_req_script, ns_accumulate_script_ranges)
10086 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
10087 New functions.
10088 (nsfont_list, nsfont_match): Use ns_findfonts.
10089 (nsfont_open): Use font descriptor instead of traits.
10090 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
10091 (dump_glyphstring): Rename to ns_dump_glyphstring.
10092
c7eb9816
AR
10093 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
10094
c1d04d84
AR
10095 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
10096
10097 * fontset.c (fontset_from_font): Remove NS-specific code.
10098
ec7709ba 100992009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
10100
10101 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
10102 nonactive windows.
10103
31fd7c5c 101042009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 10105
1ac9108a 10106 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 10107
68852c13 101082009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
10109
10110 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
10111
6756cd1d
CY
101122009-06-07 Chong Yidong <cyd@stupidchicken.com>
10113
10114 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
10115 account for the overflowing of newlines into the last glyph on the
10116 display line (Bug#3482).
10117
28bf482a
DR
101182009-06-05 David Reitter <david.reitter@gmail.com>
10119
ec7709ba
JB
10120 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
10121 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
10122 Fns_selection_exists_p, Fns_selection_owner_p.
10123
fdb55376
JR
101242009-06-03 Jason Rumney <jasonr@gnu.org>
10125
10126 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
10127 available. (Bug#3379)
10128
05129fbe
KH
101292009-05-29 Kenichi Handa <handa@m17n.org>
10130
1ac9108a
SM
10131 * coding.c (get_translation_table):
10132 Check Venable_character_translation.
05129fbe 10133
ec7709ba 101342009-05-26 David Reitter <david.reitter@gmail.com>
15891144 10135
ec7709ba
JB
10136 * nsterm.m (ns_raise_frame): Only raise frame if visible.
10137 (x_make_frame_visible): Move frame to front rather than calling
15891144 10138 ns_raise_frame().
ec7709ba 10139 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 10140 isn't key window.
ec7709ba 10141 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
10142 drawRect may be called by NSView even if the frame is hidden.
10143
ec7709ba
JB
10144 * nsfns.m (Fx_create_frame): Follow other ports in
10145 determining visibility; default to t. Ensure async_visible is set.
15891144 10146
21f73755
EZ
101472009-05-23 Eli Zaretskii <eliz@gnu.org>
10148
10149 * dired.c (Ffile_attributes): Doc fix.
10150
34001e41
CY
101512009-05-22 Chong Yidong <cyd@stupidchicken.com>
10152
10153 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
10154
46306a17
SM
101552009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
10156
10157 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
10158 and xfont_scratch_props.
10159 (syms_of_xfont): Do it here instead.
10160 (xfont_find_ccl_program): Delete, unused.
10161 (xfont_open): Delete unused var `i'.
10162
ef6e0694
KH
101632009-05-21 Kenichi Handa <handa@m17n.org>
10164
10165 * fontset.c (Qlatin): Don't make it static.
10166
46306a17
SM
10167 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
10168 New functions.
ef6e0694
KH
10169 (xfont_scripts_cache, xfont_scratch_props): New variables.
10170 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
10171 (xfont_list_pattern): Argument changed. Callers changed.
10172 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
10173 (xfont_list): Don't reject a font spec with :script property.
10174 (xfont_has_char): Fix setting of encoding.
10175 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
10176 xfont_scratch_props.
10177
101782009-05-19 Kenichi Handa <handa@m17n.org>
10179
46306a17 10180 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
10181 Callers changed.
10182
101832009-05-18 Kenichi Handa <handa@m17n.org>
10184
10185 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
10186
ac71ced7
SM
101872009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
10188
10189 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
10190 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
10191
1c6d1051
YM
101922009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10193
10194 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
10195 (x_delete_terminal): Dissociate resource database from display and
10196 then call XrmDestroyDatabase before closing display.
10197
9b9b779c
AR
101982009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
10199
10200 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
10201 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
10202 whether selected frame is viable before raising it (based on patch
10203 by David Reitter), and improve commentary.
10204 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 10205
cccd42d5
KH
102062009-05-15 Kenichi Handa <handa@m17n.org>
10207
10208 * font.c (Ffont_spec): Check arguments.
10209
337fbd17
CY
102102009-05-14 Chong Yidong <cyd@stupidchicken.com>
10211
10212 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
10213 weight when testing attributes (Bug#3282).
10214
47a6002f
JD
102152009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10216
10217 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
10218 what we expect to get in the next ConfigureNotify event.
10219
9cb363db
YM
10220 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
10221 before Xft one (Bug#1696).
10222
b9126609
CY
102232009-05-07 David Reitter <david.reitter@gmail.com>
10224
10225 * nsfns.m (Fx_display_planes): Compute bitplanes using
10226 NSBitsPerPixelFromDepth (Bug#3207).
10227
27a69fd9
CY
102282009-05-10 Chong Yidong <cyd@stupidchicken.com>
10229
10230 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
10231
00f37552
TTN
102322009-05-10 Ulrich Mueller <ulm@gentoo.org>
10233
10234 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
10235
2d82a920
DR
102362009-05-07 David Reitter <david.reitter@gmail.com>
10237
ec7709ba
JB
10238 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
10239 Respect mouse face background.
2d82a920 10240
46b0d52d
DR
102412009-05-07 David Reitter <david.reitter@gmail.com>
10242
ec7709ba
JB
10243 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
10244 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
10245 in ns_update_begin and ns_update_end.
10246
ce1b23bb
SM
102472009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
10248
5996e1b7
SM
10249 * nsfns.m (ns_get_screen): Rewrite.
10250 Don't presume selected-frame is of type `ns'.
10251
ba98e3a0
SM
10252 * font.c (font_update_drivers): Sanity fallback to avoid disabling
10253 all drivers.
10254
ce1b23bb
SM
10255 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
10256
bcda200f
YM
102572009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10258
10259 * keyboard.h (add_user_signal): Fix typo in extern.
10260
10261 * lisp.h (add_user_signal): Remove extern.
10262
10263 * unexelf.c (unexec): Consider a section to precede the .bss section
10264 if its addresses overlap that of .bss.
10265 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
10266 instead of dumping process.
10267
864660a2
SM
102682009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
10269
10270 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
10271
50da4e56
SM
102722009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
10273
10274 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
10275
51520a1a
DN
102762009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
10277
10278 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
10279 any statements.
10280
409ea3a1
AS
102812009-05-02 Andreas Schwab <schwab@linux-m68k.org>
10282
59c4c60f
AS
10283 * process.c (read_process_output): Make sure the current buffer is
10284 always restored.
10285
409ea3a1
AS
10286 * coding.c (record_conversion_result): Don't modify
10287 Vlast_code_conversion_error for successful result.
10288 (alloc_destination): Don't clobber conversion result. (Bug#1650)
10289
56f00ed2
KH
102902009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10291
10292 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 10293 (load_charset_map): Remove unnecessary code.
56f00ed2 10294
4491c9d2
DR
102952009-04-30 David Reitter <david.reitter@gmail.com>
10296
35f5b128 10297 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
10298 through f24.
10299
6970f632
CY
103002009-04-30 Chong Yidong <cyd@stupidchicken.com>
10301
10302 * xfaces.c (face_at_buffer_position): New arg base_face_id.
10303
10304 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
10305 face_at_buffer_position.
10306 (face_before_or_after_it_pos, get_next_display_element)
10307 (note_mouse_highlight): Update face_at_buffer_position call.
10308
10309 * term.c (term_mouse_highlight):
10310 * msdos.c (IT_note_mouse_highlight):
10311 * fontset.c (Finternal_char_font):
35f5b128 10312 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
10313
10314 * dispextern.h (face_at_buffer_position): Update prototype.
10315
0c616f63
KH
103162009-04-30 Kenichi Handa <handa@m17n.org>
10317
35f5b128 10318 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 10319
ad3aaf33
AS
103202009-04-29 Andreas Schwab <schwab@linux-m68k.org>
10321
10322 * callproc.c (Fcall_process): Fix GC protection. Make sure
10323 current buffer is always restored.
10324
c3c963a0
YM
103252009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10326
10327 * atimer.c (init_atimer): Also clear stopped_atimers.
10328
10329 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
10330
7e3386cb
YM
10331 * process.c (create_process): Clean up merger residues of
10332 2008-07-17 change.
10333
91f68422
CY
103342009-04-29 Ulrich Mueller <ulm@gentoo.org>
10335
10336 * lread.c (Vread_circle): New variable.
10337 (read1): Disable recursive read if Vread_circle is nil.
10338
24b34550
KH
103392009-04-29 Kenichi Handa <handa@m17n.org>
10340
10341 * fontset.h (set_default_ascii_font): Delete extern.
10342
10343 * fontset.c (set_default_ascii_font): Delete this unused function.
10344
10345 * frame.c (x_set_font): When ARG is a font-object, check if the
10346 font-object matches with the ASCII font-spec of the frame's
9c358bda 10347 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 10348
77bf07e1
AS
103492009-04-28 Andreas Schwab <schwab@linux-m68k.org>
10350
10351 * fns.c (Flocale_info): Protect vector from GC during decoding.
10352
10353 * process.c (Fstart_process): Protect argv strings from GC during
10354 encoding.
10355
2c55aacf
AS
103562009-04-27 Andreas Schwab <schwab@linux-m68k.org>
10357
10358 * sysdep.c: Include <ctype.h>.
10359
b892d3c9
DR
103602009-04-27 David Reitter <david.reitter@gmail.com>
10361
35f5b128 10362 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
10363 Remove commented-out code.
10364
9d0644c4
JB
103652009-04-26 Johan Bockgård <bojohan@gnu.org>
10366
10367 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
10368
b7053016
JR
103692009-04-25 Jason Rumney <jasonr@gnu.org>
10370
10371 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
10372
4e8231f3
YM
103732009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10374
10375 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
10376 Swap bytes in short integer if fringe bitmap width > 8.
10377
493dcf2c
KH
103782009-04-23 Kenichi Handa <handa@m17n.org>
10379
10380 * xfaces.c (Fx_list_fonts): If a font size is specified in
10381 PATTERN, set it in returned scalable fonts.
10382
401e9e57
CY
103832009-04-22 Chong Yidong <cyd@stupidchicken.com>
10384
708e05dc
CY
10385 * keyboard.c (Fset_input_meta_mode): Doc fix.
10386
10387 * dispnew.c (Fsend_string_to_terminal): Doc fix.
10388
1ac9108a 10389 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
10390
10391 * coding.c (Fterminal_coding_system): Doc fix.
10392
10393 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
10394 (Fx_display_pixel_height, Fx_display_planes)
10395 (Fx_display_color_cells, Fx_server_max_request_size)
10396 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
10397 (Fx_display_mm_height, Fx_display_mm_width)
10398 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
10399 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
10400 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
10401 (check_x_display_info): Handle terminal objects instead of
10402 terminal ids.
10403
401e9e57
CY
10404 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
10405 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
10406 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
10407 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 10408
df80c7f0
KH
104092009-04-21 Kenichi Handa <handa@m17n.org>
10410
5a8f12af 10411 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 10412 (font_score): Check AVGWIDTH too.
908567ef 10413
df80c7f0
KH
10414 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
10415 worst case.
1ac9108a
SM
10416 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
10417 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 10418
705af33f
JR
104192009-04-19 Jason Rumney <jasonr@gnu.org>
10420
10421 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 10422 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
10423
10424 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
10425 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
10426 get_phys_cursor_geometry.
10427
b71ac3dd 10428 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
10429 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
10430 using get_phys_cursor_geometry.
10431
10432 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
10433 correctly calculated.
10434
dc2933eb
JD
104352009-04-19 Jan Djärv <jan.h.d@swipnet.se>
10436
1ac9108a
SM
10437 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
10438 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
10439 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
10440 is deprecated.
10441
973e7849
AS
104422009-04-18 Andreas Schwab <schwab@linux-m68k.org>
10443
10444 * font.c (font_put_frame_data): Use xfree instead of free.
10445
314d66f4
JB
104462009-04-17 Juanma Barranquero <lekktu@gmail.com>
10447
10448 * w32font.c (Qja, Qko): Remove declarations.
10449 (syms_of_w32font): Don't DEFSYM them.
10450
cf702558
CY
104512009-04-17 Chong Yidong <cyd@stupidchicken.com>
10452
10453 * font.c (Qja, Qko): Move definitions here from ftfont.c.
10454
10455 * font.h (Qja, Qko): Extern them.
10456
10457 * ftfont.c (Qja, Qko): Remove declarations.
10458
10459 * xfont.c (Qja, Qko): Remove declarations.
10460
b50504f5
KH
104612009-04-17 Kenichi Handa <handa@m17n.org>
10462
bde25748
KH
10463 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
10464 string from a vector to handle Latin-1 characters correctly.
10465
b50504f5
KH
10466 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
10467 entity even if the cache hits.
10468
f4646fff
AS
104692009-04-16 Andreas Schwab <schwab@linux-m68k.org>
10470
10471 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 10472 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 10473
e7deaab0
AS
10474 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
10475 * lisp.h: Adjust prototypes.
10476
0a0e7d49
CY
104772009-04-16 Chong Yidong <cyd@stupidchicken.com>
10478
10479 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
10480 change (Bug#3003).
10481
3c908a57
KH
104822009-04-16 Kenichi Handa <handa@m17n.org>
10483
1ac9108a 10484 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
10485
10486 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
10487 adstyle.
10488
10489 * ftfont.c (Qja, Qko): Don't make them static.
10490 (enum ftfont_cache_for): New enum.
10491 (fc_charset_table): Undo the previous change.
10492 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
10493 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
10494 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
10495 non-scarable font, try to get AVERAGE_WIDTH.
10496 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
10497 Change ft_face_cache from a list of a hash-table. Don't check
10498 `ja' and `ko' adstyle here.
10499 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
10500 FTFONT_CACHE_FOR_CHARET.
10501 (ftfont_get_charset): Undo the previous change.
1ac9108a 10502 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
10503 (ftfont_close): Likewise.
10504 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
10505
10506 * font.c (font_sort_entites): Change the meaning of the arg
10507 BEST-ONLY. Don't optimize for VEC of lenght 1.
10508 (font_select_entity): Just return the value of font_sort_entites.
10509
10510 * xfaces.c (merge_face_vectors): Reflect font properties in
10511 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
10512 font_clear_prop if a face attribute doesn't change.
10513
3c908a57
KH
10514 * charset.h (charset_ksc5601): Extern it.
10515
10516 * charset.c (charset_ksc5601): New variable.
10517 (Fdefine_charset_internal): Set charset_ksc5601.
10518 (init_charset_once): Initialize charset_ksc5601 to -1.
10519
d65859c3
DN
105202009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
10521
10522 * fileio.c (history_delete_duplicates): Remove unused declaration.
10523
10524 * callint.c (history_delete_duplicates): New declaration.
10525 (Fcall_interactively): Remove command history duplicates when
10526 history_delete_duplicates is true.
10527
3ba010e5
EZ
105282009-04-14 Eli Zaretskii <eliz@gnu.org>
10529
10530 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
10531
06f19b91
KH
105322009-04-14 Kenichi Handa <handa@m17n.org>
10533
10534 * font.c (Ffont_info): Fix docstring. Fix the second element of
10535 the returned value (bug#2949).
10536
2cce8bfc
CY
105372009-04-14 Chong Yidong <cyd@stupidchicken.com>
10538
10539 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
10540
d156542d
KH
105412009-04-14 Kenichi Handa <handa@m17n.org>
10542
10543 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
10544 encoding charset is ascii_compatible.
10545
10546 * charset.c (Fdefine_charset_internal): Make charset
10547 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
10548 code_offset is 0, and covers all ASCII characters.
10549
86fa089e
SM
105502009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
10551
10552 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
10553 (ns_string_to_pasteboard_internal):
10554 * nsmenu.m (process_dialog):
10555 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
10556 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
10557 * lisp.h (Fx_load_color_file): Declare.
10558
a8a3728b
KH
105592009-04-13 Kenichi Handa <handa@m17n.org>
10560
1ac9108a 10561 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
10562 (font_select_entity): Suppress the code to optimize for the same
10563 kind of fonts.
10564 (font_load_for_lface): Get a font that supports at least ASCII
10565 characters.
10566
10567 * ftfont.c (Qja, Qko): New variables.
10568 (fc_charset_table): Delete uniquifier data for iso8859-1.
10569 (ftfont_get_latin1_charset): New function.
10570 (get_adstyle_property): New function.
10571 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
10572 bitmap fonts.
10573 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
10574 Delete iso-8859-1 range from the charset of fonts whose adstyle is
10575 `ko' or `ja'.
10576 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 10577 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
10578 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
10579 property.
10580 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
10581 (syms_of_ftfont): DEFSYM Qja and Qko.
10582
483670b5
KH
105832009-04-09 Kenichi Handa <handa@m17n.org>
10584
12b55765
KH
10585 * charset.c (map_charset_chars): For a charset of `superset'
10586 method, fix calculation of code range.
10587
483670b5
KH
10588 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
10589 from the list of extra properties.
10590 (font_clear_prop): Be sure to delete `:name' font property.
10591
57d3b93b
KH
105922009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10593
b4b2c2ca
YM
10594 * dispnew.c (redraw_overlapping_rows): Fix detection of
10595 overlapping for topmost and bottommost rows.
10596
1ac9108a 10597 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 10598
472c3609
JR
105992009-04-06 Jason Rumney <jasonr@gnu.org>
10600
10601 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
10602
ab193662
KH
106032009-04-06 Kenichi Handa <handa@m17n.org>
10604
10605 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
10606
10607 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
10608
0c26f026
KH
106092009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10610
10611 * ftfont.c (ftfont_open): Fix checking of the return value of
10612 FT_Load_Char. Fix setting font->underline_thickness.
10613
e173bbce
CY
106142009-04-04 Chong Yidong <cyd@stupidchicken.com>
10615
10616 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
10617 (Fterminal_parameters, Fterminal_parameter)
10618 (Fset_terminal_parameter): In doc string, refer to terminal
10619 objects rather than terminal ids.
10620
693a2698
EZ
106212009-04-04 Eli Zaretskii <eliz@gnu.org>
10622
10623 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
10624 ret_lim_data. (Bug#2867)
10625
d5221487
CY
106262009-04-03 Chong Yidong <cyd@stupidchicken.com>
10627
10628 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
10629 so they don't get wider than the window, matching 2006-01-23
10630 change to the partner function in xdisp.c (Bug#2800).
10631
223509a3
KH
106322009-04-03 Kenichi Handa <handa@m17n.org>
10633
10634 * print.c (print_object): Make each lowest sub_char_table start a
10635 new line (Bug#2866).
10636
74fcd0b1
KH
106372009-04-02 Kenichi Handa <handa@m17n.org>
10638
10639 * fontset.c (fontset_font): Record no-font when a fontset
10640 explicitly tells not to try another font-specs.
10641
c542407d
SM
106422009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
10643
10644 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
10645
e3869731
KH
106462009-03-30 Kenichi Handa <handa@m17n.org>
10647
d8d2f142
KH
10648 * fontset.c (fontset_from_font): Specify only registry in a
10649 font-spec for all characters supported by that registry.
10650
e3869731
KH
10651 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
10652 even if HAVE_M17N_FLT is not defined.
10653
5da5f805
CY
106542009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
10655
10656 * ftfont.c: Conditionalize prototyping and use of
10657 ftfont_variation_glyphs.
10658
ab226c50
SM
106592009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
10660
9628fed7
SM
10661 * frame.c (delete_frame): Work around compiler bug.
10662
10663 * editfns.c (general_insert_function): Adjust to insdel.c changes.
10664 * insdel.c (prepare_to_modify_buffer, signal_before_change):
10665 Some more EMACS_INT.
10666 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
10667
10668 * xdisp.c (dump_glyph): Fix typo.
10669
ae19ba7c
SM
10670 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
10671 (adjust_markers_gap_motion, adjust_markers_for_delete)
10672 (adjust_markers_for_insert, adjust_point)
10673 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
10674 (make_gap, copy_text, count_size_as_multibyte, insert)
10675 (insert_and_inherit, insert_before_markers)
10676 (insert_before_markers_and_inherit, insert_1)
10677 (count_combining_before, count_combining_after, insert_1_both)
10678 (insert_from_string, insert_from_string_before_markers)
10679 (insert_from_string_1, insert_from_gap, insert_from_buffer)
10680 (insert_from_buffer_1, adjust_after_replace)
10681 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
10682 (replace_range_2, del_range, del_range_1, del_range_byte)
10683 (del_range_both, del_range_2, modify_region)
10684 (prepare_to_modify_buffer, signal_before_change)
10685 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
10686 for buffer positions and sizes.
10687 * lisp.h: Adjust prototypes accordingly.
10688
10689 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
10690 (non_regular_inserted, non_regular_nbytes, read_non_regular)
10691 (Finsert_file_contents): Use EMACS_INT for buffer positions.
10692
ab226c50
SM
10693 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
10694
46dfb8fb
JD
106952009-03-27 Jan Djärv <jan.h.d@swipnet.se>
10696
10697 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
10698 lines and columns so we keep the same pixel height and width.
10699
10700 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
10701 the property _NET_WM_STATE has changed.
46dfb8fb
JD
10702 (x_handle_net_wm_state): New function to update frame parameter
10703 fullscreen.
10704 (x_term_init): Initialize atoms for _NET_WM_STATE.
10705
10706 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
10707
d347e494
SM
107082009-03-27 Kevin Ryde <user42@zip.com.au>
10709
10710 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
10711 Gpm_GetEvent as an error that justifies closing the filedescriptor.
10712 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
10713 (Fgpm_mouse_stop): Pass that new parameter.
10714 * termhooks.h (close_gpm): Adjust prototype.
10715
84db11d6
SM
107162009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
10717
c95a5008
SM
10718 * lisp.h (Fx_focus_frame): Declare.
10719
84db11d6
SM
10720 * callint.c (Fcall_interactively): For '^' just delegate the work to
10721 handle-shift-selection.
10722 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
10723
0a1958d6
CY
107242009-03-24 Chong Yidong <cyd@stupidchicken.com>
10725
0bfdff23
CY
10726 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
10727
0a1958d6
CY
10728 * data.c (Qinteractive_form): New variable.
10729 (Finteractive_form): Use it.
10730
10731 * eval.c (Fcommandp): Use Qinteractive_form.
10732
58aec0d6
JR
107332009-03-24 Jason Rumney <jasonr@gnu.org>
10734
10735 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
10736 Calculate total size precisely. Decode environment variables
10737 before substituting. (Bug#38)
10738
553dd618
KH
107392009-03-24 Kenichi Handa <handa@m17n.org>
10740
10741 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 10742 encoding (Bug#2722).
553dd618 10743
c39ea606
JD
107442009-03-23 Jan Djärv <jan.h.d@swipnet.se>
10745
10746 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
10747 that gdpy is set.
10748
bc9b2b5e
AM
107492009-03-22 Alan Mackenzie <acm@muc.de>
10750
10751 * callint.c (Finteractive): Clarify the doc string - even
10752 promptless elements need \n separators.
10753
9f995a76
JR
107542009-03-22 Jason Rumney <jasonr@gnu.org>
10755
10756 * w32term.c (syms_of_w32term): Doc fix for
10757 x-use-underline-position-properties.
10758
22749e9a
EZ
107592009-03-21 Eli Zaretskii <eliz@gnu.org>
10760
10761 * w32.c (getpwuid): Change argument type to unsigned.
10762 (struct w32_id): Change type of `rid' member to unsigned.
10763 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
10764 argument ID to unsigned. All callers changed.
10765 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
10766
e00553bf
EZ
107672009-03-20 Eli Zaretskii <eliz@gnu.org>
10768
10769 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
10770 negative, produce a float value.
10771
10772 * dired.c (make_uid, make_gid): New functions.
10773 (Ffile_attributes): Use them to avoid negative UID and GID.
10774
f761d6b6
JB
107752009-03-20 Juanma Barranquero <lekktu@gmail.com>
10776
10777 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
10778 (syms_of_keyboard) <command-hook-internal, input-method-function>:
10779 Fix typos in docstrings.
10780
d507f8d7
KH
107812009-03-19 Kenichi Handa <handa@m17n.org>
10782
10783 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
10784 changed, use font_load_for_lface to get a new font object.
10785 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
10786
10787 * frame.c (x_set_font): Handle the case that ARG is a cons.
10788
c68845e0
GM
107892009-03-19 Glenn Morris <rgm@gnu.org>
10790
10791 * fileio.c (Fsubstitute_in_file_name): Doc fix.
10792
bfa49dd1
CY
107932009-03-19 Chong Yidong <cyd@stupidchicken.com>
10794
10795 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
10796
8458d4c1
KH
107972009-03-19 Kenichi Handa <handa@m17n.org>
10798
10799 * charset.c (load_charset_map_from_file): When a mapfile can't be
10800 loaded, signal an error.
10801
78e7d1fe
EZ
108022009-03-18 Eli Zaretskii <eliz@gnu.org>
10803
10804 * dired.c (Ffile_attributes): Make sure UID and GID are always
10805 positive, even if the value is too large for a positive EMACS_INT.
10806 Doc fix.
10807
10808 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
10809
5da9fdfa
YM
108102009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10811
10812 * xmenu.c (xdialog_show): Move Fredisplay call ...
10813 (Fx_popup_dialog): ... here.
10814
7519c40d
SM
108152009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
10816
10817 * dired.c (file_name_completion): Disable the first optimization just
10818 installed, since it is not implemented correctly.
10819
2cd298e2
SM
108202009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
10821
10822 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 10823 only if the entry can affect bestmatch.
2cd298e2
SM
10824 Stop the search early, as Ftry_completion already does.
10825
48d37adf
CY
108262009-03-17 Chong Yidong <cyd@stupidchicken.com>
10827
e10c9c93 10828 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 10829
9286b16a
CY
108302009-03-15 Chong Yidong <cyd@stupidchicken.com>
10831
10832 * keyboard.c (parse_menu_item): Don't display remappings as menu
10833 equivalent bindings (Bug#788).
10834
f7b146dc
JR
108352009-03-15 Jason Rumney <jasonr@gnu.org>
10836
10837 * w32term.h (WM_EMACS_PAINT): New message.
10838 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
10839 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
10840 before passing to lisp thread. (Bug#950)
10841
f761d6b6 108422009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 10843
d93f9575
CY
10844 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
10845 variable as it was never reset.
10846 (ns_term_init): Remove initialization of Lisp-settable defaults
10847 and ns_expand_space.
10848 (-setPanelFromDefaultValues): Remove ns_expand_space.
10849 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
10850 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
10851 i.e. no additional spacing, similar to Carbon port.
10852
d93f9575
CY
10853 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
10854 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 10855
305018ec
JD
108562009-03-14 Jan Djärv <jan.h.d@swipnet.se>
10857
10858 * sound.c (alsa_configure): Remove call to deprecated
10859 snd_pcm_sw_params_set_xfer_align.
10860
f761d6b6 108612009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
10862
10863 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
10864 after clicking in a detached tool bar.
10865 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
10866
46e722a9
SM
108672009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
10868
348db3dd
SM
10869 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
10870 int/Lisp_Object mixup).
46e722a9 10871
a3d16f39
KH
108722009-03-13 Kenichi Handa <handa@m17n.org>
10873
10874 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 10875 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
10876 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
10877 (set_fontset_font): Change ARG to a vector. Handle range_list in
10878 ARG correctly.
10879 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 10880 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
10881 the above change.
10882 (fontset_from_font): Fix previous change.
fe24f56a 10883 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
10884 entry. If FONTSET is the default fontset, don't set the extra
10885 slot of the returning char-table.
10886
b066e6b6
JB
108872009-03-12 Juanma Barranquero <lekktu@gmail.com>
10888
10889 * nsfns.m (Fx_close_connection): Doc fix.
10890 (Fns_do_applescript): Reflow docstring.
10891 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
10892 (Fx_display_pixel_width, Fx_display_pixel_height)
10893 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
10894 Fix typos in docstrings.
10895 (Fns_set_alpha): Fix typos in error messages.
10896
d472514e 108972009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 10898
d472514e 10899 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
10900 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
10901 were used for such events.
10902
d472514e
JB
10903 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
10904 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 10905
d472514e 10906 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
10907 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
10908
fb930676
KH
109092009-03-11 Kenichi Handa <handa@m17n.org>
10910
ff85581a
KH
10911 * font.h (font_open_by_spec): Extern it.
10912
c50b7e98
KH
10913 * font.c (font_open_by_spec): New function.
10914 (font_open_by_name): Use font_open_by_spec.
10915
fb930676
KH
10916 * frame.c (x_set_font): When ARG is a font-object, don't alter the
10917 fontset of the frame.
10918
10919 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
10920 modify the default font of frames that use this fontset.
10921 (num_auto_fontsets): New variable.
10922 (fontset_from_font): Use num_auto_fontsets to decide a fontset
10923 name. Be sure to set FONTSET_ASCII to the correct font name.
10924 (update_auto_fontset_alist): New function.
10925
df4e8455
JB
109262009-03-11 Juanma Barranquero <lekktu@gmail.com>
10927
10928 * makefile.w32-in: Update dependencies.
10929
0a375797
AR
109302009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10931
10932 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
10933
61313fa3
SM
109342009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
10935
10936 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
10937
b55103fb
CY
109382009-03-10 Chong Yidong <cyd@stupidchicken.com>
10939
10940 * lread.c (Feval_buffer): Doc fix.
10941
dde2559c
KH
109422009-03-09 Kenichi Handa <handa@m17n.org>
10943
10944 * charset.c (Qfile_name_handler_alist): Extern it.
10945 (load_charset_map_from_file): Temporarily bind
10946 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
10947
df4e8455 109482009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 10949
47f588bb
GM
10950 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
10951 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 10952
4ddf94bd
AR
109532009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10954
4c9bdfc2
AR
10955 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
10956 (x_set_window_size): Change back to calculated method of setting
10957 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
10958 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
10959 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
10960
fe41ae9e
AR
10961 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
10962
4c9bdfc2
AR
10963 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
10964 accelerator in parens under GNUstep.
10965
825d0875
KH
109662009-03-06 Kenichi Handa <handa@m17n.org>
10967
10968 These changes are to detect incorrect composition sequence without
f3b3be74 10969 looking ahead the source. (Bug#2370)
825d0875
KH
10970
10971 * coding.h: Include "composite.h".
10972 (enum compisition_state): New enum.
10973 (struct compisition_status): New struct.
10974 (struct iso_2022_spec): New member cmp_status.
10975 (struct emacs_mule_spec): New struct.
10976 (struct coding_system): New members ctext_extended_segment_len and
10977 embedded_utf_8. Change the union member
10978 spec.emacs_mule_full_support to spec.emacs_mule.
10979
10980 * coding.c (CODING_ISO_CMP_STATUS): New macro.
10981 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 10982 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
10983 (ADD_COMPOSITION_DATA): New arg nbytes.
10984 (emacs_mule_char): New arg cmp_status.
10985 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
10986 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
10987 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
10988 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
10989 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
10990 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
10991 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
10992 (EMACS_MULE_COMPOSITION_END): New macro.
10993 (emacs_mule_finish_composition): New function.
10994 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
10995 (decode_coding_emacs_mule): Avoid long looking ahead while
10996 handling composition.
10997 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
10998 (ENCODE_COMPOSITION_RULE): New macro.
10999 (finish_composition): New function.
11000 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
11001 (DECODE_COMPOSITION_START): New implementation.
11002 (DECODE_COMPOSITION_END): Likewise.
11003 (STORE_COMPOSITION_RULE): New macro.
11004 (decode_coding_iso_2022): Avoid long looking ahead while handling
11005 composition, CTEXT extended segment, and embedded UTF-8.
11006 (setup_coding_system): For a coding of type iso-2022, reset
11007 CODING_ISO_EXTSEGMENT_LEN (coding) and
11008 CODING_ISO_EMBEDDED_UTF_8 (coding).
11009 (get_translation): Delete arguments last_block, from_nchars,
11010 to_nchars. Callers changed.
11011 (produce_chars): Don't modify charbuf. Adjusted for the change of
11012 get_translation.
98a326f7 11013 (produce_composition): Adjust for the new annotation sequence.
825d0875 11014 (handle_composition_annotation): Likewise.
98a326f7 11015 (consume_chars): Adjust for the change of get_translation.
825d0875 11016
ccbc4452
AR
110172009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
11018
4ddf94bd 11019 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 11020
988a7ddb
KH
110212009-03-05 Kenichi Handa <handa@m17n.org>
11022
11023 * font.c (font_select_entity): New function.
11024 (font_find_for_lface): Use font_select_entity to select a font.
11025
11026 * fontset.c (fontset_find_font): If a font found without
a8a3728b 11027 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
11028 font with C restriction.
11029
98a326f7 110302009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 11031
be1bce46 11032 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 11033
10ea2b82
JR
110342009-03-04 Jason Rumney <jasonr@gnu.org>
11035
2c93b248 11036 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 11037 characters that have already been read. (Bug#2569)
2c93b248 11038
10ea2b82
JR
11039 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
11040 Log an error message if check_image_size failed.
11041 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 11042 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 11043
71a0c011
EZ
110442009-03-02 Eli Zaretskii <eliz@gnu.org>
11045
11046 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
11047 when decoding process output.
11048
2f63bba8
RS
110492009-03-01 Richard M Stallman <rms@gnu.org>
11050
11051 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
11052
11053 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
11054
0a9564cb
EZ
110552009-02-28 Eli Zaretskii <eliz@gnu.org>
11056
11057 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
11058 (decode_coding_emacs_mule, decode_coding_iso_2022)
11059 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11060 (decode_coding_raw_text, decode_coding_charset)
11061 (setup_coding_system, decode_eol, decode_coding, consume_chars):
11062 Honor inhibit-eol-conversion. (Bug #2186)
11063
449148b3
JR
110642009-02-28 Jason Rumney <jasonr@gnu.org>
11065
11066 * coding.c (detect_coding_charset): If not checking latin extra,
11067 fail on characters between 0x80 and 0xA0. (Bug#2354)
11068
a4aee864
EZ
110692009-02-28 Eli Zaretskii <eliz@gnu.org>
11070
11071 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 11072 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 11073
d88bee5a
GM
110742009-02-27 Glenn Morris <rgm@gnu.org>
11075
11076 * callint.c (Finteractive): Doc fix.
11077
a808f22d
KH
110782009-02-27 Kenichi Handa <handa@m17n.org>
11079
11080 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
11081
caf8d60c
CY
110822009-02-27 Chong Yidong <cyd@stupidchicken.com>
11083
11084 * font.c (font_style_to_value): Set value for unknown symbols to
11085 100 instead of 255.
b61137ea
CY
11086 (weight_table, slant_table, width_table): Treat "unspecified" as
11087 the default value.
caf8d60c 11088
1a0de25c
JB
110892009-02-26 Juanma Barranquero <lekktu@gmail.com>
11090
11091 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
11092
8fc45744
JB
110932009-02-25 Juanma Barranquero <lekktu@gmail.com>
11094
107bd7d1
JB
11095 * lread.c (Fload): Stop checking Vloads_in_progress and signal
11096 error as soon as a recursive load is detected.
8fc45744 11097
f097e223
AR
110982009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11099
11100 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
11101 before caching.
11102
8810a12f
KH
111032009-02-24 Kenichi Handa <handa@m17n.org>
11104
11105 * fontset.c (fontset_find_font): Fix the condition for checking
11106 unavailable font.
11107
2c7d1565
GM
111082009-02-24 Glenn Morris <rgm@gnu.org>
11109
11110 * xfaces.c (Finternal_set_font_selection_order): Remove leading
11111 whitespace that confuses documentation.
11112
a20878b6
MB
111132009-02-23 Miles Bader <miles@gnu.org>
11114
11115 * process.c (Flist_system_processes, Fprocess_attributes)
11116 (syms_of_process): Rename `system-process-attributes' to
11117 `process-attributes'.
11118
b3b58c01
AS
111192009-02-22 Andreas Schwab <schwab@linux-m68k.org>
11120
1b3b981b
AS
11121 * coding.h (struct coding_system): Make safe_charsets a pointer to
11122 unsigned char.
11123 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
11124 being 255.
11125 (SAFE_CHARSET_P): Likewise.
11126 (setup_iso_safe_charsets): Properly setup safe_charsets.
11127 (Fdefine_coding_system_internal): Likewise.
11128 (setup_coding_system): Likewise. Remove unneeded casts.
11129 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
11130 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
11131 unneeded casts.
11132
b3b58c01
AS
11133 * insdel.c (del_range_2): Don't modify gap contents when called
11134 from decode_coding_object. (Bug#1809)
11135
0b6f228c
CY
111362009-02-21 Chong Yidong <cyd@stupidchicken.com>
11137
11138 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
11139 Qfont_object.
11140 (Ftype_of): Recognize font objects.
11141
11142 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
11143
11144 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
11145 moved to data.c.
11146
52f8870b
AR
111472009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11148
11149 * nsterm.m (x_make_frame_invisible): Unset async_visible,
11150 async_iconified. Based on a patch by Christian Lynbech
11151 <christian.lynbech@tieto.com>.
11152 (EmacsView-windowDidMiniaturize:): Unset async_visible.
11153
7087d5e9
GM
111542009-02-20 Glenn Morris <rgm@gnu.org>
11155
11156 * syntax.c (Fskip_chars_forward): Fix doc typo.
11157
41d2ceef
CY
111582009-02-20 Chong Yidong <cyd@stupidchicken.com>
11159
11160 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
11161
1a3b7ca6
CY
111622009-02-19 Chong Yidong <cyd@stupidchicken.com>
11163
11164 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
11165
73cce38d
KH
111662009-02-19 Kenichi Handa <handa@m17n.org>
11167
11168 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 11169 Don't overflow coding->carryover. (Bug#2370)
73cce38d 11170
a51092ee
DN
111712009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
11172
11173 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
11174
c423ecca
KH
111752009-02-18 Kenichi Handa <handa@m17n.org>
11176
11177 * font.c (font_check_otf_features): Fix handling of `nil' element.
11178 (Ffont_spec): Describe :lang and :otf in the docstring.
11179
4c1958f4
AS
111802009-02-16 Andreas Schwab <schwab@suse.de>
11181
11182 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
11183 string.
11184
5704f39a
KH
111852009-02-16 Kenichi Handa <handa@m17n.org>
11186
11187 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 11188 (Bug#1723)
5704f39a 11189
8f0085aa
CY
111902009-02-14 Chong Yidong <cyd@stupidchicken.com>
11191
a057d86a 11192 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
11193
11194 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
11195 (handle_line_prefix): Suppress wrapping of wrap prefixes.
11196
aff01dd9
EZ
111972009-02-14 Eli Zaretskii <eliz@gnu.org>
11198
11199 * msdos.c (MAX_SCREEN_BUF): New macro.
11200 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
11201 Encode the entire run of glyphs sharing the same face, instead of
11202 doing that one glyph at a time (fixes a bug with displaying
11203 double-size characters).
11204
ba301db3
AR
112052009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
11206
11207 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
11208
11209 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
11210 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 11211 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
11212
11213 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 11214 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 11215
51d861de
SM
112162009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
11217
ac146f82 11218 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
11219 invisible areas.
11220
7fed8996
JR
112212009-02-12 Jason Rumney <jasonr@gnu.org>
11222
631ea4fb
JR
11223 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
11224 (add_font_entity_to_list): Call check_face_name even when family
11225 is unspecified.
11226
cb4a3e42
JR
11227 * w32term.c (x_display_pixel_height, x_display_pixel_width):
11228 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 11229 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 11230
7fed8996 11231 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 11232 raster fonts. (Bug#2219)
7fed8996 11233
895416e3
KH
112342009-02-12 Kenichi Handa <handa@m17n.org>
11235
11236 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
11237 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
11238 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 11239 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
11240 (find_automatic_composition): While looking forward and backward,
11241 check static composition. Fix where to stop looking forward.
11242 (composition_adjust_point): Fix checking of static composition.
11243 (Fcomposition_get_gstring): Pay attention to
1dacf998 11244 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
11245
11246 * lisp.h (fast_looking_at): Extern it.
11247
11248 * search.c (fast_looking_at): New function.
11249
51d861de 11250 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
11251 <struct glyph>.u.cmp.to.
11252 (append_composite_glyph): Likewise.
11253
51d861de 11254 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
11255 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
11256 composition.
51d861de 11257 (append_composite_glyph): Adjust for the change of
895416e3
KH
11258 <strcut glyph>.u.cmp.to.
11259
8510724d
JB
112602009-02-11 Juanma Barranquero <lekktu@gmail.com>
11261
11262 * casetab.c (init_casetab_once):
11263 * coding.c (ALLOC_CONVERSION_WORK_AREA):
11264 * font.c (font_update_lface):
11265 * fontset.c (Fnew_fontset):
11266 * ftfont.c (ftfont_drive_otf):
11267 * xfont.c (xfont_open):
11268 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
11269
294fa707
SM
112702009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
11271
11272 * fileio.c (Fwrite_region): !NILP -> CONSP.
11273
b5bfebec
AS
112742009-02-10 Andreas Schwab <schwab@suse.de>
11275
11276 * process.c (send_process): Properly relocate pointer into data
adab88bd 11277 when using encoded data. (Bug#2272)
b5bfebec 11278
cb84a2be
KH
112792009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
11280
11281 * coding.c (detect_coding_charset): Fix previous change.
11282
89e09428
JR
112832009-02-08 Jason Rumney <jasonr@gnu.org>
11284
11285 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 11286 disappeared while hourglass was displayed. (Bug #2193)
89e09428 11287
4470a277
AS
112882009-02-07 Andreas Schwab <schwab@suse.de>
11289
11290 * unexelf.c (unexec): Fix error message.
11291
3175b12a
AR
112922009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
11293
11294 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 11295 when modal window is active. (Bug #2152)
3175b12a
AR
11296 (applicationShouldTerminate:): Remove now-unneeded while loop
11297 around NSRunAlertPanel.
11298
11299 * nsmenu.m (popupSession): New file-global variable.
11300 (pop_down_menu): End the popupSession before closing dialog.
11301 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
11302 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
11303 don't query NSApp for events (just sleep instead).
11304
8434d0b8
EZ
113052009-02-07 Eli Zaretskii <eliz@gnu.org>
11306
51d861de
SM
11307 * coding.c (syms_of_coding) <translation-table-for-input>:
11308 Modify doc string to discourage use for character code unification.
8434d0b8 11309
aa82edfd
CY
113102009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11311
11312 * atimer.c (run_timers): Update pending_atimers.
11313
2d283c7c
CY
113142009-02-06 Chong Yidong <cyd@stupidchicken.com>
11315
eb306cab
CY
11316 * image.c (svg_load_image): Fix last change.
11317
2d283c7c
CY
11318 * xfns.c (Fx_create_frame): Signal an error if no font is
11319 found (Bug#2147).
11320
4d8e170e
JB
113212009-02-05 Juanma Barranquero <lekktu@gmail.com>
11322
11323 * character.c (syms_of_character) <script-representative-chars>:
11324 Fix typo in docstring.
11325
c96169a0
AR
113262009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11327
11328 * nsmenu.m (pop_down_menu): New function.
11329 (ns_popup_dialog): Call it on unwind.
11330 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
11331 call timer_check() (Bug#2154).
11332 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
11333 handling_signal is set.
11334 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
11335
31fd7c5c 11336 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
11337
11338 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
11339
11340 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
11341
51d861de
SM
11342 * keyboard.c (poll_for_input_1, handle_async_input):
11343 Set handling_signal under HAVE_NS.
c96169a0 11344
aacd8ba1
GM
113452009-02-04 Glenn Morris <rgm@gnu.org>
11346
11347 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
11348
4cb75c4b
KH
113492009-02-04 Kenichi Handa <handa@m17n.org>
11350
11351 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
11352
11353 * charset.c (Fchar_charset): New optional arg restriction.
11354
11355 * coding.h (coding_system_charset_list): Extern it.
11356
11357 * coding.c (coding_system_charset_list): New function.
11358
11359 * composite.c: Include coding.h and termhooks.h.
11360 (composition_gstring_p): Fix for the terminal case.
11361 (composition_gstring_width): Likewise.
11362 (fill_gstring_body): Likewise.
11363 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
11364 the frame.
11365 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
11366 is within a composition.
867d4bb3 11367 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
11368
11369 * term.c (encode_terminal_code): Fix handling of composition.
11370 (produce_composite_glyph): For static composition, get pixel_width
11371 from struct composition.
11372
826ba17e
AS
113732009-02-02 Andreas Schwab <schwab@suse.de>
11374
11375 * unexelf.c (unexec): Handle unaligned bss offset.
11376
8ad093db
AR
113772009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11378
11379 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
11380 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 11381
8ad093db
AR
11382 * keyboard.c (handle_interrupt): Don't call
11383 quit_throw_to_read_char() under NS.
d0a76a6e 11384
8ad093db
AR
11385 * blockinput.h: Remove NS-specific code.
11386
4d18a7a2
DN
113872009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
11388
db878925
DN
11389 * dispnew.c (window_change_signal): Don't try to get the size of a
11390 suspended tty frame.
11391 * term.c (Fresume_tty): Resize if the size has changed while the
11392 tty was suspended.
11393
4d18a7a2
DN
11394 * alloc.c (mark_stack): Properly conditionalize previous change.
11395
8984df7c
JB
113962009-01-30 Juanma Barranquero <lekktu@gmail.com>
11397
11398 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
11399 * w32term.c (w32_read_socket) [SYNC_INPUT]:
11400 Remove; this code is not used on Windows.
11401
75f4f1ac
EZ
114022009-01-30 Eli Zaretskii <eliz@gnu.org>
11403
11404 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
11405 EOLs that also has stray ^M characters.
11406
07a1e794
JB
114072009-01-30 Juanma Barranquero <lekktu@gmail.com>
11408
11409 * atimer.c (run_timers, alarm_signal_handler):
11410 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
11411 * w32inevt.c (w32_console_read_socket):
11412 * w32term.c (w32_read_socket):
11413 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
11414
a8b11cc9
CY
114152009-01-30 Chong Yidong <cyd@stupidchicken.com>
11416
11417 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
11418 Initialize it as a relative filename pattern.
11419 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
11420 (Fcall_process_region): Simplify temp file creation using
11421 temporary-file-directory.
11422
c279587b
EZ
114232009-01-29 Eli Zaretskii <eliz@gnu.org>
11424
11425 * msdos.c: Rename pending_signals to msdos_pending_signals.
11426 (sig_suspender, sigprocmask): Adjust.
11427
a8fe3242
CY
114282009-01-29 Chong Yidong <cyd@stupidchicken.com>
11429
11430 * keyboard.c (pending_signals): New var.
11431 (poll_for_input, input_available_signal, init_keyboard): Set it.
11432 (process_pending_signals): New function.
11433
11434 * lisp.h (QUIT): Check pending_signals instead of
11435 interrupt_input_pending. Use process_pending_signals.
11436
51d861de 11437 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 11438
51d861de 11439 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
11440
11441 * sysdep.c (emacs_write): Use process_pending_signals.
11442
11443 * xterm.c (XTread_socket): Update pending_signals.
11444
11445 * w32term.c (w32_read_socket): Update pending_signals.
11446
11447 * w32inevt.c (w32_console_read_socket): Update pending_signals.
11448
6570a1c4
KH
114492009-01-29 Kenichi Handa <handa@m17n.org>
11450
11451 * xftfont.c (xftfont_has_char): New function.
11452 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
11453
d72a4afa
AR
114542009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
11455
11456 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
11457 under GNUstep.
11458 (ns_query_color): New declaration.
11459
11460 * nsterm.m (ns_confirm_quit): New variable.
11461 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
11462 (EmacsApp-applicationShouldTerminate:): Use it.
11463 (EmacsPrefsController): Let user set it.
11464 (ns_query_color): New function.
11465 (ns_defined_color): Use it.
11466 (ns_initialize): Drop.
11467 (ns_term_init): Add two lines from ns_initialize(), and set
11468 input_interrupt_mode to nil.
11469
11470 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 11471 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 11472
9fe78804
KH
114732009-01-28 Kenichi Handa <handa@m17n.org>
11474
11475 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
11476 (fontset_get_font_group): Remember that no font-group is specified
11477 for C.
9fe78804 11478
fa57de36
CY
114792009-01-27 Chong Yidong <cyd@stupidchicken.com>
11480
930600e9
CY
11481 * fns.c (concat): Check for string overflow (bug#1787).
11482
fa57de36
CY
11483 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
11484 Quadruple undo limits (bug#1501).
11485
7179ce7b
KH
114862009-01-27 Kenichi Handa <handa@m17n.org>
11487
11488 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
11489 directly use GT_Get_Char_index.
11490
11491 * xftfont.c (struct xftfont_info): New member `index'.
11492
11493 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 11494 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 11495
5be8fcc0
CY
114962009-01-26 Kenichi Handa <handa@m17n.org>
11497
11498 * fontset.c (fontset_find_font): Fix handling of non-cons return
11499 value of fontset_get_font_group.
11500 (fontset_font): Revert last change.
11501
19ae3e61
JR
115022009-01-26 Jason Rumney <jasonr@gnu.org>
11503
11504 * w32font.c (w32font_list_internal): Return quickly if registry is
11505 unknown. Simplify final return.
11506 (add_font_entity_to_list): Break complex logic down into more
11507 manageable chunks. Move unknown registry check to
11508 w32font_list_internal.
11509
8612b71a
AR
115102009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
11511
11512 Changes to remove Feval calls from GUI under NS.
11513
d8038940
JB
11514 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
11515 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
11516 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
11517
11518 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
11519 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
11520 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
11521 instead of NON_ASCII_KEYSTROKE_EVENT.
11522 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
11523 (EmacsApp-applicationShouldTerminate:): Query user.
11524 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
11525 instead of Feval.
11526
11527 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
11528
11529 * keyboard.c (kbd_buffer_get_event): Check for it.
11530 (keys_of_keyboard): Define lispy keys for
11531 ns-put/unput-working-text.
11532
11533 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
11534 versions.
11535 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
11536
6288ae55
CY
115372009-01-25 Chong Yidong <cyd@stupidchicken.com>
11538
11539 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 11540 setting current_buffer directly. (Bug#2044)
6288ae55 11541
289e7f8f
CY
115422009-01-24 Chong Yidong <cyd@stupidchicken.com>
11543
5ce87308 11544 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 11545 any work. (Bug#1952, bug#1990).
5ce87308 11546
64cc3cf6 11547 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 11548
b3243e6f
AR
115492009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
11550
11551 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
11552 (ns_no_defaults): New declaration.
11553 (main): Use it.
e0d2e69a 11554
d900b2af 11555 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 11556
d900b2af 11557 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 11558
d900b2af
AR
11559 * nsterm.m (ns_no_defaults): New variable.
11560 (ns_initialize): Don't read defaults when ns_no_defaults.
11561 (EmacsView-readSelectionFromPasteboard:)
11562 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 11563 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
11564 (ns_dumpglyphs_stretch): New function.
11565 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 11566 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 11567
e0d2e69a
AR
11568 * nsimage.m (setPixmapData:): Set to ignore image DPI.
11569
3ac71f5d
CY
115702009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
11571
11572 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
11573 call for Sparc64.
11574
3fe53a83
AR
115752009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11576
11577 * nsfns.m:
11578 * nsgui.h:
11579 * nsmenu.m:
11580 * nsselect.m:
11581 * nsterm.h:
11582 * nsterm.m: Remove '23' comments that indicated code added during
11583 update from emacs-20 -> emacs-23.
11584
10f87c6f 115852009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
11586
11587 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 11588 ns_alternate_modifier. (Bug#1217)
a3b53a85 11589
c7cef62d
AR
11590 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
11591 Display all shortcuts, including those w/o super modifier.
11592
575fb8bd
AR
11593 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
11594
918b848b
CY
115952009-01-22 Chong Yidong <cyd@stupidchicken.com>
11596
11597 * fileio.c (Vwrite_region_post_annotation_function)
11598 (Vwrite_region_annotation_buffers): New vars.
11599 (build_annotations_unwind): Just reset
11600 Vwrite_region_annotation_buffers.
11601 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
11602 Call write-region-post-annotation-function.
11603 (build_annotations): Add to Vwrite_region_annotation_buffers if
11604 buffer changes.
11605
a39e2539
AR
116062009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11607
11608 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
11609 Tiger.
51d861de
SM
11610 * nsfns.m (ns_do_applescript):
11611 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 11612
35ed44db
AR
116132009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
11614
11615 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
11616
cbe0b5bf
AR
116172009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11618
11619 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 11620
6049d3a0
AR
11621 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
11622
11623 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
11624 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
11625 handle Ctrl-tab. (Bug#1841)
11626 (ns_get_color): Use unsigned long long for scanned hex string value.
11627 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 11628 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 11629 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 11630 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 11631 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 11632 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 11633 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 11634
d3810c21 11635 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 11636 DPI. (Bug#1316)
d3810c21
AR
11637 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
11638 values in onTiger section.
4c7077c3 11639
e301e634
CY
116402009-01-19 Chong Yidong <cyd@stupidchicken.com>
11641
7f82490b
CY
11642 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
11643 Check return value of font_spec_from_name.
64cc3cf6 11644 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
11645
11646 * font.c (font_spec_from_name): Return Qnil if font name could not
11647 be parsed.
11648 (font_parse_name): Treat a `?' character as part of an XLFD.
11649
e301e634
CY
11650 * fns.c (Fsubstring): Doc fix.
11651
1c0db158
KH
116522009-01-19 Kenichi Handa <handa@m17n.org>
11653
51d861de 11654 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
11655 (ftfont_list): Likewise.
11656
acf20901
JB
116572009-01-18 Juanma Barranquero <lekktu@gmail.com>
11658
fff4e459
JB
11659 * dbusbind.c (Fdbus_register_signal):
11660 * process.c (conv_sockaddr_to_lisp):
11661 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
11662
acf20901
JB
11663 * callproc.c (Fgetenv_internal): Doc fix.
11664
e7abcdfb
CY
116652009-01-16 Chong Yidong <cyd@stupidchicken.com>
11666
11667 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
11668 it is not even used.
11669
b60861e6
GM
116702009-01-16 Glenn Morris <rgm@gnu.org>
11671
11672 * font.c (Ffont_variation_glyphs): Silence compiler.
11673
8db52afe
JB
116742009-01-15 Juanma Barranquero <lekktu@gmail.com>
11675
11676 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
11677 Reported by David Robinow <drobinow@gmail.com>.
11678
4cddb209
KH
116792009-01-15 Kenichi Handa <handa@m17n.org>
11680
51d861de 11681 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 11682
f247f67b
JR
116832009-01-14 Jason Rumney <jasonr@gnu.org>
11684
11685 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 11686 never a fontset. (Bug#1562)
f247f67b 11687
f56a4450
KH
116882009-01-14 Kenichi Handa <handa@m17n.org>
11689
11690 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 11691 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 11692
4e99855e
CY
116932009-01-13 Chong Yidong <cyd@stupidchicken.com>
11694
11695 * font.c (font_clear_prop): If clearing the family, clear the font
11696 width index too.
11697
fff4e459 11698 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 11699
24f01470
JB
117002009-01-12 Juanma Barranquero <lekktu@gmail.com>
11701
11702 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
11703 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
11704 functions, use sizeof.
11705
a41240a3
MR
117062009-01-12 Martin Rudalics <rudalics@gmx.at>
11707
11708 * keyboard.c (read_char): Fix case where last_nonmenu_event
11709 returned a bad value with submenus. (Bug#447)
11710
944636b8
CY
117112009-01-12 Chong Yidong <cyd@stupidchicken.com>
11712
11713 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
11714 family, clear the font width index too.
11715
0dad7c6f
JR
117162009-01-11 Jason Rumney <jasonr@gnu.org>
11717
11718 * keyboard.c (cmd_error_internal): Exit when errors occur before
11719 frame creation and not in daemon mode. (Bug#1836)
11720
7c2363af
CY
117212009-01-10 Chong Yidong <cyd@stupidchicken.com>
11722
11723 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
11724 of a display vector, backtrack.
11725 (try_window_reusing_current_matrix): Check glyph type before
11726 referencing charpos member.
11727
97b1b294
EZ
117282009-01-10 Eli Zaretskii <eliz@gnu.org>
11729
11730 Fix Bug #876:
11731
11732 * coding.c (inhibit_null_byte_detection): New variable.
11733 (detect_coding, detect_coding_system): Don't pay attention to null
11734 bytes if inhibit_null_byte_detection is non-zero.
51d861de 11735 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
11736 <inhibit-iso-escape-detection>: Doc fix.
11737
4624b6e3
JR
117382009-01-09 Jason Rumney <jasonr@gnu.org>
11739
11740 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 11741 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
11742 Only report Unicode Plane 2 fonts as unicode-sip.
11743
323b840c
CY
117442009-01-09 Chong Yidong <cyd@stupidchicken.com>
11745
51d861de
SM
11746 * xfaces.c (Fx_font_family_list): Delete function.
11747 Move compatibility version to faces.el.
323b840c 11748
51d861de 11749 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 11750
eba7400d
MR
117512009-01-09 Martin Rudalics <rudalics@gmx.at>
11752
11753 * frame.c (x_set_frame_parameters): Remember requested value for
11754 fullscreen before it's reset by the parameter handler.
11755
4b09796d
GM
117562009-01-09 Glenn Morris <rgm@gnu.org>
11757
11758 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 11759 (last_command_event): ... and update all users.
4b09796d
GM
11760 (last_input_char): For clarity, rename to...
11761 (last_input_event): ... and update all users.
11762 (last-command-char, last-input-char): Move to subr.el as aliases.
11763 * cmds.c, commands.h: Update for last_command_char rename.
11764
14ccea62
CY
117652009-01-08 Chong Yidong <cyd@stupidchicken.com>
11766
51d861de 11767 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 11768
5f004711
JR
117692009-01-08 Jason Rumney <jasonr@gnu.org>
11770
11771 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
11772 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
11773 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
11774 Don't declare.
fff4e459 11775 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
11776 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
11777
b71f6f73
KH
117782009-01-07 Kenichi Handa <handa@m17n.org>
11779
50b06221 11780 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 11781 remember the coding system used for decoding in
50b06221
KH
11782 coding_system (Bug#1039).
11783
b71f6f73 11784 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 11785 breaking the loop. (Bug#870)
b71f6f73
KH
11786 (decode_coding_utf_16, decode_coding_emacs_mule)
11787 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11788 (decode_coding_charset): Likewise.
11789
56f668f7
MR
117902009-01-05 Martin Rudalics <rudalics@gmx.at>
11791
11792 * frame.c (x_set_frame_parameters): Make sure height (width) get
11793 applied when fullwidth (fullheight) is set. (Bug#1522)
11794
5da9424d
JB
117952009-01-04 Juanma Barranquero <lekktu@gmail.com>
11796
11797 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
11798 (utc_base): Declare as ULONGLONG, not long double.
11799 (convert_time_raw): Delete.
11800 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
11801 (initialize_utc_base): New function.
11802 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
11803 (convert_from_time_t): Use initialize_utc_base; compute result with
11804 64-bit arithmetic.
11805 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
11806
c4605e09
EZ
118072009-01-03 Eli Zaretskii <eliz@gnu.org>
11808
9acef61c 11809 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
11810 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
11811 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
11812 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
11813 [!subprocesses]: Define.
11814 (syms_of_process) [!subprocesses]: Intern and staticpro them.
11815 (Flist_system_processes, Fsystem_process_attributes)
11816 [!subprocesses]: Call list_system_processes and
11817 system_process_attributes instead of returning Qnil.
11818
9acef61c
JB
11819 * dosfns.c (system_process_attributes, list_system_processes):
11820 New functions.
c4605e09
EZ
11821
11822 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
11823
11824 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
11825 Don't use the default (no-op) implementation.
11826
8b7d0a16
JR
118272009-01-03 Jason Rumney <jasonr@gnu.org>
11828
a6d46bc1
JR
11829 * keyboard.c (parse_modifiers_uncached): Wheel events are
11830 clicks (bug#687).
11831
8b7d0a16
JR
11832 * w32term.c (x_query_colors, x_query_color): New functions.
11833
11834 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
11835 (svg_load_image): Cast returned pointers from dynamically loaded
11836 functions. Eliminate W32 specific code.
11837
bfe11752
DN
118382009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
11839
89e2438a
DN
11840 * nsfns.m (x_set_foreground_color, x_set_background_color)
11841 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
11842 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
11843 x_ prefix instead of ns_. Update references.
11844 (syms_of_nsfns): Add a FIXME comment.
11845
11846 * nsterm.m (x_set_cursor_type): New prototype.
11847 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
11848
bfe11752
DN
11849 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
11850 for Solaris instead of incorrectly providing Qutime and Qcutime.
11851
031da700
EZ
118522009-01-02 Eli Zaretskii <eliz@gnu.org>
11853
11854 * w32.c (process_times): Compute sum of utime and stime.
11855 (system_process_attributes): Add Qtime to the alist.
11856
11857 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
11858 and add them to the alist.
11859
11860 * process.c (top level) <Qtime, Qctime>: New variables.
11861 (syms_of_process): staticpro them.
11862 (Fsystem_process_attributes): Add their documentation to the doc
11863 string.
11864
11865 * process.h: Declare Qtime and Qctime.
11866
df23bf08
JR
118672009-01-02 Jason Rumney <jasonr@gnu.org>
11868
9acef61c 11869 * image.c (Qgobject): New symbol.
df23bf08
JR
11870 (syms_of_image): Initialize it.
11871 (init_svg_functions): Load some functions from gobject library.
11872
5bbdf7aa
DN
118732009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
11874
11875 * frame.c (make_terminal_frame): Remove redundant code and useless
11876 block.
11877
63136da6
AS
118782009-01-01 Andreas Schwab <schwab@suse.de>
11879
11880 * process.c (conv_sockaddr_to_lisp): Add workaround for
11881 getsockname bug on BSD.
11882
9ef69046
CY
118832009-01-01 Chong Yidong <cyd@stupidchicken.com>
11884
d6fafbe0
CY
11885 * xfns.c (x_create_tip_frame): Set border width of the X window.
11886
51d861de 11887 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 11888
f9c34147
JR
118892009-01-01 Jason Rumney <jasonr@gnu.org>
11890
9acef61c 11891 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
11892 Don't block input, as per earlier xterm.c changes.
11893
f5497e45
AR
118942008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
11895
11896 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
11897 (ns_appkit_version_int): New function.
11898 (x-server-version): Use ns_appkit_version_int and follow 21+
11899 convention of returning 3 integers.
11900
c19cab20
KH
119012008-12-30 Kenichi Handa <handa@m17n.org>
11902
11903 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
11904 (CHAR_SURROGATE_PAIR_P): New macro.
11905
11906 * font.h (struct font_driver): New member get_variation_glyphs.
11907
9acef61c 11908 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
11909 (Ffont_variation_glyphs): New function.
11910 (syms_of_font): Defsubr it.
11911
11912 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
11913 ftfont_variation_glyphs.
11914 (setup_otf_gstring): New function.
11915 (ftfont_drive_otf): Use it.
11916 (ftfont_shape_by_flt): Handle variation selector.
11917 (ftfont_variation_glyphs): New function.
11918
28cd591f
MR
119192008-12-30 Martin Rudalics <rudalics@gmx.at>
11920
11921 * frame.c (Vemacs_iconified): Remove.
11922
7f714baf
JR
119232008-12-30 Jason Rumney <jasonr@gnu.org>
11924
11925 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 11926 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 11927
9d2d22ab
CY
119282008-12-30 Chong Yidong <cyd@stupidchicken.com>
11929
11930 * indent.c (Fvertical_motion): Don't advance iterator if we have
11931 reseated to the desired position.
11932
11933 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
11934 checking for pos match.
11935
545312c2
KH
119362008-12-30 Kenichi Handa <handa@m17n.org>
11937
1ede3eb6
KH
11938 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
11939 just get the low 8-bit of the code.
11940
545312c2
KH
11941 * font.c (font_intern_prop): Validate str as multibyte.
11942
bd7bbf29
DN
119432008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
11944
31e0750e
DN
11945 * dispextern.h (struct face): Move lface and hash from the middle
11946 of bitfields.
11947
bd7bbf29
DN
11948 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
11949
b5672e7c
DN
119502008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
11951
11952 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
11953 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
11954 instead of intervals.h.
11955
d704470f
AS
119562008-12-26 Andreas Schwab <schwab@suse.de>
11957
11958 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
11959 cons.
11960
54b33868
MR
119612008-12-26 Martin Rudalics <rudalics@gmx.at>
11962
11963 * textprop.c (Qminibuffer_prompt): New variable.
11964 (syms_of_textprop): Initialize it.
11965 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
11966 in minibuffer-prompt face. (Bug#1662)
11967
40b615d6
JR
119682008-12-25 Jason Rumney <jasonr@gnu.org>
11969
11970 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
11971
baae5c2d
JR
119722008-12-24 Jason Rumney <jasonr@gnu.org>
11973
11974 * ralloc.c (r_alloc_reset_variable): New function.
11975
11976 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 11977 record of what points where. (Bug#716)
baae5c2d 11978
a9051c88
DN
119792008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
11980
11981 * minibuf.c (read_minibuf): Follow the non-interactive case when
11982 running as a daemon, before detaching.
11983
8b146312
AS
119842008-12-22 Andreas Schwab <schwab@suse.de>
11985
11986 * buffer.c (init_buffer): Use realloc instead of xrealloc.
11987 * gtkutil.c (free_widget_value): Use xfree instead of free.
11988
56f2de10
MR
119892008-12-22 Martin Rudalics <rudalics@gmx.at>
11990
11991 * frame.c (delete_frame): New function derived from
11992 Fdelete_frame to handle Qnoelisp value for FORCE argument.
11993 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
11994 (Fdelete_frame): Call delete_frame. Remove line from doc-string
11995 saying that FORCE non-nil doesn't run `delete-frame-functions'.
11996 * frame.h: Extern delete_frame.
11997 * window.c (window_loop):
11998 * terminal.c (delete_terminal):
11999 * xterm.c (x_connection_closed):
12000 * xfns.c (Fx_hide_tip):
9acef61c 12001 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 12002
1fc200d6
JR
120032008-12-21 Jason Rumney <jasonr@gnu.org>
12004
12005 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
12006 when character maps to .notdef character.
12007
5e252df2
SM
120082008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
12009
12010 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
12011
99b72cc4
JR
120122008-12-20 Jason Rumney <jasonr@gnu.org>
12013
12014 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 12015 a graphical frame on Windows. (Bug#1325)
99b72cc4 12016
acc49a52
JD
120172008-12-20 Jan Djärv <jan.h.d@swipnet.se>
12018
12019 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
12020
6ea15123
CY
120212008-12-20 Chong Yidong <cyd@stupidchicken.com>
12022
12023 * minibuf.c (Fread_buffer): Doc fix.
12024
b2dab6c8
JR
120252008-12-20 Jason Rumney <jasonr@gnu.org>
12026
54ea0c87 12027 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 12028 server name in UNC paths. (Bug#719)
54ea0c87 12029
b2dab6c8 12030 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 12031 charbuf. (Bug#1035)
b2dab6c8 12032
6d1921be
DN
120332008-12-19 Daniel Engeler <engeler@gmail.com>
12034
12035 * sysdep.c (serial_configure): Fix typo.
12036
53934c98
DN
120372008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
12038
12039 * sysdep.c: Include alloca.h.
f4f634e8
DN
12040 (system_process_attributes): Add implementation for Solaris.
12041
12042 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 12043
06e111a6
DN
120442008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
12045
12046 Reorganize implementation of Flist_system_processes and
12047 Fsystem_process_attributes. No functional changes.
12048 * process.c: Don't #include pwd.h, grp.h and limits.h.
12049 (Flist_system_processes): Just call list_system_processes.
12050 (Fsystem_process_attributes): Just call system_process_attributes.
12051 (procfs_list_system_processes, time_from_jiffies)
12052 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
12053 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
12054
12055 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
12056 (list_system_processes): Rename from
12057 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
12058 Provide a do nothing implementation.
12059 (system_process_attributes): Rename from
12060 procfs_list_system_processes.
12061 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 12062 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
12063
12064 * w32.c (list_system_processes): Rename from
12065 w32_list_system_processes.
12066 (system_process_attributes): Rename from
12067 w32_system_process_attributes.
12068
12069 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
12070
12071 * process.h (w32_list_system_processes)
12072 (w32_system_process_attributes): Remove.
362654a6
JB
12073 (list_system_processes, system_process_attributes):
12074 New prototypes.
06e111a6 12075
6a705b23
KH
120762008-12-19 Kenichi Handa <handa@m17n.org>
12077
12078 * xfont.c (xfont_decode_coding_xlfd): New function.
12079 (xfont_encode_coding_xlfd): New function.
12080 (xfont_list_pattern): Decode XLFD by iso-8859-1.
12081 (xfont_list): Decode and encode XLFD by iso-8859-1.
12082 (xfont_match): Likewise.
12083 (xfont_list_family): Likewise.
12084 (xfont_open): Likewise.
12085
d66c0241 12086 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
12087 names are utf-8.
12088
d66c0241 12089 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
12090 names are utf-8.
12091
5a130941
JD
120922008-12-18 Jan Djärv <jan.h.d@swipnet.se>
12093
12094 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
12095 changed.
bfd20325
JD
12096 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
12097 clicked on a detached tool bar button.
5a130941 12098
fd95644b
DN
120992008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
12100
12101 * emacs.c (main): Print and error and exit when no data is read
12102 from the pipe.
12103
e6eee6ae
JR
121042008-12-17 Jason Rumney <jasonr@gnu.org>
12105
12106 * w32font.c (w32font_has_char): Always return -1.
12107
a35dd56b
KH
121082008-12-16 Kenichi Handa <handa@m17n.org>
12109
12110 * font.c (font_open_entity): Fix previous change.
12111
0e3635c2
DN
121122008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
12113
12114 * process.c: Include <limits.h>.
12115
d4835507 121162008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
12117
12118 * font.c (font_update_drivers): Fix mistake in reconstructing the
12119 driver list.
12120
121212008-12-16 Chong Yidong <cyd@stupidchicken.com>
12122
12123 * font.c (font_clear_cache): Fix format of font cache data.
12124
e2cbc401
CY
121252008-12-15 Chong Yidong <cyd@stupidchicken.com>
12126
12127 * xftfont.c (xftfont_open): Free Xft font pattern if
12128 XftFontOpenPattern fails.
12129
12130 * xterm.c (x_free_frame_resources): Remove extraneous call to
12131 free_frame_faces.
12132
b131d535
CY
121332008-12-13 Chong Yidong <cyd@stupidchicken.com>
12134
12135 * xterm.c (x_delete_display): Move xim_close_dpy call to
12136 x_delete_terminal.
12137 (x_delete_terminal): Call xim_close_dpy.
12138
e6df5336
JR
121392008-12-13 Jason Rumney <jasonr@gnu.org>
12140
12141 * w32font.c (intern_font_name): New function.
12142 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
12143 (w32font_open_internal, Fx_select_font): Decode font name.
12144 (fill_in_logfont, list_all_matching_fonts): Encode font name.
12145
12146 * w32font.h (intern_font_name): Declare new function.
12147
12148 * w32uniscribe.c (add_opentype_font_name_to_list):
12149 Use intern_font_name.
12150
20d68145
CY
121512008-12-13 Chong Yidong <cyd@stupidchicken.com>
12152
9f2554de
CY
12153 * frame.c (Fdelete_frame): Call free_font_driver_list.
12154
3d9bec9a
CY
12155 * font.c (free_font_driver_list): Implement missing function.
12156
20d68145
CY
12157 * w32term.c (w32_term_init): Don't initialize the image cache
12158 here; it will be done in init_frame_faces.
12159
12160 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
12161 (struct x_display_info): Remove unused member null_pixel. New
12162 member xim_callback_data.
12163
12164 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
12165 (xim_initialize): Save pointer to callback function data.
12166 (xim_close_dpy): Free callback function data. Call XCloseIM,
12167 reverting 2008-11-04 change by David Smith.
12168 (x_term_init): Don't initialize the image cache here; it will be
12169 done in init_frame_faces. Remove ancient "null_pixel" cruft.
12170 (x_delete_display): Free x_dnd_atoms member.
12171
96f9306b
KH
121722008-12-13 Kenichi Handa <handa@m17n.org>
12173
6dec9044
JB
12174 * font.c (font_rescale_ratio): Moved from xfaces.c.
12175 Argument type changed. Handle a font-spec too.
96f9306b 12176 (font_score): Check Vface_font_rescale_alist.
6dec9044 12177 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
12178
12179 * xfaces.c (font_rescale_ratio): Moved to font.c.
12180
8d5b4964
CY
121812008-12-13 Chong Yidong <cyd@stupidchicken.com>
12182
12183 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
12184
e6df5336
JR
121852008-12-12 Jason Rumney <jasonr@gnu.org>
12186
12187 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
12188 Vwindow_system_version to the real w32 major version.
12189
97c6058a
DN
121902008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
12191
12192 * term.c (init_tty): Move setting the terminal name before the
12193 potential user: maybe_fatal.
12194
ec4e88d7
CY
121952008-12-11 Chong Yidong <cyd@stupidchicken.com>
12196
d4835507
JB
12197 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
12198 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 12199
b4233ec9
JR
122002008-12-11 Jason Rumney <jasonr@gnu.org>
12201
8ec71e23 12202 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 12203 SYMBOL_CHARSET. (Bug#547)
8ec71e23 12204
b4233ec9 12205 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 12206 size for surrogates. (Bug#1096, bug#872)
b4233ec9 12207
011a0143
JB
122082008-12-11 Juanma Barranquero <lekktu@gmail.com>
12209
12210 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
12211
3c309f34
JB
122122008-12-11 Juanma Barranquero <lekktu@gmail.com>
12213
12214 * process.c (Fsystem_process_attributes, syms_of_process):
12215 Fix typo in name of Ssystem_process_attributes.
12216 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
12217
fedc6ab5
JB
122182008-12-11 Juanma Barranquero <lekktu@gmail.com>
12219
12220 * syntax.c (Fmodify_syntax_entry): Doc fix.
12221
ba3de0e8
JB
122222008-12-10 Juanma Barranquero <lekktu@gmail.com>
12223
12224 * font.c (Ffont_spec): Move usage to end of docstring.
12225
174f1c74
JR
122262008-12-10 Jason Rumney <jasonr@gnu.org>
12227
12228 * w32font.c (Qcham): New symbol.
12229 (font_supported_scripts): Add cham, and comments for other new
12230 scripts in bitfield from OpenType spec.
9d32f818
JR
12231 (add_font_entity_to_list): Limit unicode-sip fonts to those that
12232 contain characters beyond the bmp.
174f1c74 12233
7b649478
KH
122342008-12-10 Kenichi Handa <handa@m17n.org>
12235
12236 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 12237 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
12238 Qunicode_sip.
12239
2133e2d1
JB
122402008-12-10 Juanma Barranquero <lekktu@gmail.com>
12241
12242 * coding.c (QCdefault_char): Rename from QCdefalut_char.
12243 (Fcoding_system_put): Use QCdefault_char.
12244 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
12245
9af886ee
CY
122462008-12-09 Chong Yidong <cyd@stupidchicken.com>
12247
74d819eb
CY
12248 * xftfont.c (syms_of_xftfont): Fix typo.
12249
4ccfa1c0 12250 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 12251
7c19d3ae
DN
122522008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
12253
12254 * emacs.c (main): Close daemon_pipe on exec.
12255
567826bb
CY
122562008-12-08 Chong Yidong <cyd@stupidchicken.com>
12257
12258 * termchar.h (struct tty): New members termcap_term_buffer and
12259 termcap_strings_buffer.
12260
12261 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 12262 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
12263 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
12264 All callers changed.
12265 (init_tty): Store termcap data and string buffers in new struct
12266 tty members termcap_term_buffer and termcap_strings_buffer.
12267 (delete_tty): Free them.
4ccfa1c0 12268 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 12269
aa96c42b
SZ
122702008-12-07 Seiji Zenitani <zenitani@mac.com>
12271
12272 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 12273 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 12274
b7e1d896
CY
122752008-12-06 Chong Yidong <cyd@stupidchicken.com>
12276
12277 * coding.c (make_conversion_work_buffer): Disable buffer
12278 modification hooks in the work buffer.
12279
b5ec91a5
EZ
122802008-12-05 Eli Zaretskii <eliz@gnu.org>
12281
12282 * process.c (procfs_system_process_attributes): If `nread' has a
12283 negative value, assign zero to it.
12284
a5d2a52b
CY
122852008-12-05 Chong Yidong <cyd@stupidchicken.com>
12286
68c5540b 12287 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 12288
7bf1bb21
KH
122892008-12-05 Kenichi Handa <handa@m17n.org>
12290
12291 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
12292 second character is a combining character.
12293
2fdc7d00
EZ
122942008-12-05 Eli Zaretskii <eliz@gnu.org>
12295
12296 * process.c (procfs_system_process_attributes): Don't use cmd,
12297 cmdsize, and q without initializing them first.
12298
bf6bfba8
JR
122992008-12-04 Jason Rumney <jasonr@gnu.org>
12300
12301 * w32font.c (w32font_draw): Initialize orig_clip before getting
12302 it, and delete it when finished.
12303
a3b1a468
DN
123042008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
12305
12306 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
12307 case when running as a daemon before detaching.
12308
8b8be8eb
JB
123092008-12-03 Juanma Barranquero <lekktu@gmail.com>
12310
805f2638 12311 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 12312
b1bde622
KH
123132008-12-03 Kenichi Handa <handa@m17n.org>
12314
e500c47d
KH
12315 * font.c (font_at): Set `multibyte' at first.
12316
ca516334
KH
12317 * coding.c (decode_coding_charset): Check type of an element of
12318 vector VALIDS.
7bf1bb21 12319 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 12320
4ccfa1c0 12321 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
12322 (font_for_char): Likewise.
12323
1e5ecd37
CY
123242008-12-03 Chong Yidong <cyd@stupidchicken.com>
12325
d5b01609 12326 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
12327 (font_update_lface): Handle fonts with corrupted size specs,
12328 i.e. non-int and non-float.
d5b01609 12329
11e3a6e4 12330 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 12331 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 12332 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 12333
ab06788b
CY
12334 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
12335
1e5ecd37 12336 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 12337 underline_minimum_offset for underline position.
1e5ecd37 12338
63c125ab
DN
123392008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
12340
12341 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
12342
12343 * character.c (c_string_width): Specify the type for LEN.
12344
3a8406e1
KH
123452008-12-03 Kenichi Handa <handa@m17n.org>
12346
4ccfa1c0 12347 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 12348 (decode_coding_utf_8): Likewise.
4ccfa1c0 12349 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 12350 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 12351
651df7d9
CY
123522008-12-02 Chong Yidong <cyd@stupidchicken.com>
12353
12354 * keyboard.c (make_lispy_position): Only use PT if the selected
12355 window is current.
12356
1f625c6c
AS
123572008-12-02 Andreas Schwab <schwab@suse.de>
12358
f7741ce9
AS
12359 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
12360
1f625c6c
AS
12361 * doprnt.c (doprnt1): Fix size of charbuf.
12362
92bc2678
CY
123632008-12-02 Chong Yidong <cyd@stupidchicken.com>
12364
12365 * keyboard.c (timer_check): Revert last change.
12366
93b9e8cc
JB
123672008-12-02 Juanma Barranquero <lekktu@gmail.com>
12368
12369 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
12370
fd7a37d5
JB
123712008-12-01 Juanma Barranquero <lekktu@gmail.com>
12372
12373 * makefile.w32-in: Update dependencies.
12374 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
12375
c115043b
AS
123762008-12-01 Andreas Schwab <schwab@suse.de>
12377
12378 * font.c (register_font_driver): Use xmalloc.
12379 (font_put_frame_data): Likewise.
12380
f5668d2a
CY
123812008-12-01 Chong Yidong <cyd@stupidchicken.com>
12382
860d96be
CY
12383 * xfaces.c (realize_x_face): Make abort condition clearer.
12384
f5668d2a
CY
12385 * gtkutil.c (update_frame_tool_bar): Initialize variable.
12386
379c17e7
CY
123872008-11-30 Chong Yidong <cyd@stupidchicken.com>
12388
12389 * keyboard.c (timer_check): After a timer runs, ensure that the
12390 selected window's buffer is current.
12391
35f36d65
JB
123922008-11-30 Juanma Barranquero <lekktu@gmail.com>
12393
f952c61c
JB
12394 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
12395 It was accidentally restored by the Unicode merge.
12396
35f36d65
JB
12397 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
12398
b23077df
JB
123992008-11-29 Juanma Barranquero <lekktu@gmail.com>
12400
12401 * w32proc.c: Include "coding.h".
12402 (Fw32_short_file_name): Encode filename passed to Windows API.
12403 (Fw32_long_file_name): Encode filename passed to Windows API and
12404 decode back the result. (Bug#1433)
12405
b8ebe9dd
KH
124062008-11-29 Kenichi Handa <handa@m17n.org>
12407
8cc53f96
KH
12408 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
12409 not before accessing it.
12410
b8ebe9dd
KH
12411 * charset.c (Fdefine_charset_internal): After calculating
12412 min_char, max_char, and fastmap, copy the charset structure again.
12413 (encode_char): Fix the previous change.
12414
59bc82c0
SZ
124152008-11-28 Seiji Zenitani <zenitani@mac.com>
12416
12417 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
12418
12419 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
12420
12421 * nsterm.m (x_set_frame_alpha): New function.
12422
32247e3d
EZ
124232008-11-27 Eli Zaretskii <eliz@gnu.org>
12424
12425 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
12426
b003e5ff
JB
124272008-11-27 Juanma Barranquero <lekktu@gmail.com>
12428
12429 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
12430 pointer to check_face_name.
12431
708550f5
KH
124322008-11-27 Kenichi Handa <handa@m17n.org>
12433
12434 * category.h (SET_CATEGORY_SET): Call set_category_set.
12435 (set_category_set): Extern it.
12436
12437 * category.c (hash_get_category_set): New function.
12438 (Fmodify_category_entry): Adjusted for the change of
12439 char_table_ref_and_range. Call hash_get_category_set to get a
12440 category set to store in the table.
12441
12442 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
12443 Funify_charset.
12444
2ae37cf0 12445 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
12446 (DECODE_CHAR): Check if the decoder vector is ready.
12447 (ENCODE_CHAR): Check if the encoder char-table is ready.
12448 (maybe_unify_char): Extern it.
12449
12450 * charset.c (Vchar_unified_charset_table): Delete it.
12451 (inhibit_load_charset_map): New variable.
12452 (temp_charset_work): New variable.
12453 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
12454 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
12455 New macros.
12456 (load_charset_map): Meaning of control_flag changed. If
12457 inhibit_load_charset_map is nonzero, setup a table in
12458 temp_charset_work.
12459 (load_charset): New argument control_flag.
12460 (map_charset_for_dump): New function.
12461 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
12462 map_charset_for_dump.
12463 (Fdefine_charset_internal): If the charset method is MAP, load
12464 mapping tables by calling load_charset.
12465 (Funify_charset): Don't load a mapping table but directly set
12466 Vchar_unify_table.
12467 (maybe_unify_char): New function.
12468 (decode_char): Don't handle the deleted method MAP_DEFERRED.
12469 Handle the case of inhibit_load_charset_map being nonzero.
12470 (encode_char): Don't handle the deleted method MAP_DEFERRED.
12471 Handle the case of inhibit_load_charset_map being nonzero.
12472 (Fclear_charset_maps): Just free temp_charset_work.
12473 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
12474 variable.
12475
12476 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
12477 change of char_table_ref_and_range.
12478 (char_table_ref_and_range): Change the meaning of argument FROM
12479 and TO. Now the caller must provide initial values for *FROM
12480 and *TO.
12481
12482 * fontset.c (fontset_add): Adjusted for the change of
12483 char_table_ref_and_range.
12484 (fontset_get_font_group): Likewise.
12485 (Ffontset_info): Likewise.
12486
12487 * keymap.c (describe_vector): Adjusted for the change of
12488 char_table_ref_and_range. For char-table, put boundary between
12489 non-ASCII and 8-bit characters.
12490
12491 * print.c (print_object): For bool-vector, delete unnecessary
12492 check of ASCII_BYTE_P.
12493
9196133b
JR
124942008-11-26 Jason Rumney <jasonr@gnu.org>
12495
12496 * w32font.c (w32font_open_internal): Don't include external
9acef61c 12497 leading in font height. (Bug#879)
9196133b 12498
9f688acf
GM
124992008-11-26 Glenn Morris <rgm@gnu.org>
12500
12501 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
12502 redefinition with ifdef. (Bug#1383)
12503
90d19aff
AR
125042008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
12505
12506 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
12507
4ccfa1c0 125082008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
12509
12510 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
12511 New EmacsView methods.
12512 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
12513 Fixes bug #1048,1357,1414.
12514
125152008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
12516
12517 Fix bug #1362.
12518 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
12519 is not an indexed color.
12520 * nsterm.m (free_indexed_color): Add argument checking.
12521 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
12522
e7d5ecb3
CY
125232008-11-24 Chong Yidong <cyd@stupidchicken.com>
12524
12525 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
12526 Document confirm-after-completion value for
12527 minibuffer-completion-confirm.
12528
c285743c
JR
125292008-11-24 Jason Rumney <jasonr@gnu.org>
12530
12531 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
12532 warning.
12533
b0857706
JR
125342008-11-23 Jason Rumney <jasonr@gnu.org>
12535
12536 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
12537 restored before returning.
12538
12539 * w32font.c (check_face_name): New function.
12540 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 12541 fonts. (Bug#642)
b0857706 12542
ee50ff07
MR
125432008-11-22 Martin Rudalics <rudalics@gmx.at>
12544
12545 * buffer.c (Fswitch_to_buffer): Reword and mention new option
12546 confirm-nonexistent-file-or-buffer in doc-string.
12547
b8ff72fa
SM
125482008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
12549
12550 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
12551 Fix copy/paste typo. Add checks.
12552
cee53ed4
KH
125532008-11-21 Kenichi Handa <handa@m17n.org>
12554
12555 * coding.c (detect_coding_iso_2022): Reject invalid composition
12556 sequence.
12557 (DECODE_COMPOSITION_START): If the current source is the last
12558 block, and the current composition doesn't end, regard this
12559 sequence as invalid.
12560 (decode_coding_iso_2022): Handle invalid composition sequence.
12561
f6ef1e65
MR
125622008-11-20 Martin Rudalics <rudalics@gmx.at>
12563
12564 * window.c (coordinates_in_window): Don't return
12565 ON_VERTICAL_BORDER for the rightmost position of a mode/header
12566 line when the window is not the rightmost one. (Bug#1372)
12567
e08b1705
MR
125682008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
12569
12570 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
12571
ad98e89f
EZ
125722008-11-15 Eli Zaretskii <eliz@gnu.org>
12573
12574 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
12575 and bright_bg if noninteractive is non-zero.
12576
fb098a4b
CY
125772008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12578
12579 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
12580 x_draw_glyph_string_background.
12581
12582 * w32term.c (x_draw_glyph_string): Likewise.
12583
ce952b6e
CY
125842008-11-15 Chong Yidong <cyd@stupidchicken.com>
12585
12586 * xterm.c (x_draw_glyph_string): Stop drawing the background of
12587 the next glyph string once past the overhang width.
12588
12589 * nsterm.m (ns_draw_glyph_string): Likewise.
12590
12591 * w32term.c (x_draw_glyph_string): Likewise.
12592
26ea7079
CY
125932008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
12594
12595 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
12596 double file close.
12597
1c33c906
MR
125982008-11-14 Martin Rudalics <rudalics@gmx.at>
12599
12600 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
12601 dedicated status of window before attempting to display another
12602 buffer in it.
12603
8fc29035
JB
126042008-11-14 Juanma Barranquero <lekktu@gmail.com>
12605
12606 * msdos.c (Fmsdos_long_file_names):
12607 (syms_of_msdos) <dos-unsupported-char-glyph>:
12608 * dosfns.c (Fint86): Fix typos in docstrings.
12609
55fb4286
EZ
126102008-11-14 Eli Zaretskii <eliz@gnu.org>
12611
12612 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
12613
3fda0315
KY
126142008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
12615
12616 * puresize.h (BASE_PURESIZE): Increase to 1260000.
12617
7e849c17
CY
126182008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
12619
12620 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
12621
12622 * frame.h: Negative alpha means "don't touch".
12623
12624 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
12625
12626 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
12627
b9fd67bd
DN
126282008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
12629
12630 * hftctl.c:
12631 * chpdef.h:
12632 * acldef.h: Remove files used only for systems no longer supported.
12633
12634 * Makefile.in: Fix .o alphabetical ordering.
12635 (hftctl.o): Remove dependency, file removed.
12636 (keymap.o, print.o): Depend on charset.h.
12637
d5998e03
KH
126382008-11-10 Kenichi Handa <handa@m17n.org>
12639
2ae37cf0 12640 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 12641
be70e183
CY
126422008-11-08 Chong Yidong <cyd@stupidchicken.com>
12643
12644 * dired.c (file_name_completion): If completion_ignore_case is
12645 enabled, ignore case when checking completion-regexp-list.
12646
7cf94eac
EZ
126472008-11-08 Eli Zaretskii <eliz@gnu.org>
12648
12649 * vm-limit.c (get_lim_data): Fix last change.
12650
ee107a89
KH
126512008-11-08 Kenichi Handa <handa@m17n.org>
12652
12653 * character.c (Fget_byte): New function.
12654 (syms_of_character): Defsubr Fget_byte.
12655
5fd15622
CY
126562008-11-07 Chong Yidong <cyd@stupidchicken.com>
12657
12658 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
12659 cursor position is valid after scrolling.
12660
13d62fad
JB
126612008-11-06 Juanma Barranquero <lekktu@gmail.com>
12662
12663 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
12664
a1dd2936
GM
126652008-11-06 Glenn Morris <rgm@gnu.org>
12666
12667 * xterm.c (handle_one_xevent): Don't let popup menus cause
12668 mouse-autoselect-window related window switching. (Bug#1261)
12669
860cd236
CY
126702008-11-04 David Smith <davidsmith@acm.org> (tiny change)
12671
12672 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
12673
653a3150
AS
126742008-11-04 Andreas Schwab <schwab@suse.de>
12675
12676 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
12677
870f5cac
CY
126782008-11-03 Chong Yidong <cyd@stupidchicken.com>
12679
12680 * xfns.c (Fx_wm_set_size_hint): New function.
12681
1e02f3cb
MR
126822008-11-03 Martin Rudalics <rudalics@gmx.at>
12683
12684 * textprop.c (Fprevious_single_char_property_change): Return 0
12685 when there's no change in a string. (Bug#1301)
12686
e630dfc6
MR
126872008-11-02 Martin Rudalics <rudalics@gmx.at>
12688
12689 * frame.c (do_switch_frame): New argument NORECORD passed to
12690 Fselect_window.
12691 (Fselect_frame): New argument NORECORD passed to
12692 do_switch_frame.
12693 (Fset_frame_selected_window): New argument NORECORD passed to
12694 Fselect_frame.
12695 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
12696 in call of do_switch_frame.
12697 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
12698 Handle NORECORD argument in call of Fselect_frame.
12699 * lisp.h (do_switch_frame, Fselect_frame)
12700 (Fset_frame_selected_window): Adjust declarations.
12701 * window.c (select_frame_norecord): New function.
12702 (run_window_configuration_change_hook): Use it and call
12703 Fselect_frame with NORECORD set.
12704 (Fselect_window): Pass NORECORD to Fselect_frame.
12705 (Fset_window_configuration): Handle NORECORD argument in call of
12706 do_switch_frame.
12707 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
12708 Fset_frame_selected_window.
12709 * keyboard.c (command_loop_1): Handle NORECORD in call of
12710 Fselect_frame (currently ifdefd).
12711
9020b223
GM
127122008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
12713
12714 * emacs.c (USAGE2): Untabify.
12715
793ffee8
SM
127162008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
12717
12718 * composite.c (fill_gstring_header): Fix copy/paste typo.
12719
ab6d1131
MR
127202008-10-31 Martin Rudalics <rudalics@gmx.at>
12721
12722 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
12723 (Fother_window): Rename argument and rewrite doc-string.
12724 (select_window_norecord): Fix return value. (Bug#1276)
12725
601a9cf1
JB
127262008-10-30 Juanma Barranquero <lekktu@gmail.com>
12727
12728 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
12729 new frames overriding foreground for tooltips. Based on similar patch
12730 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
12731
813b0652
CY
127322008-10-29 Chong Yidong <cyd@stupidchicken.com>
12733
12734 * emacs.c (Fdaemon_initialized): Initialize nfd.
12735
4414f58f
MR
127362008-10-29 Martin Rudalics <rudalics@gmx.at>
12737
12738 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
12739 (Fwindow_text_height): Clarify doc-strings.
12740 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
12741 doc-string of window-scroll-functions.
12742
ecdcaa09
RS
127432008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
12744
12745 * category.c (syms_of_category): Fix typo in docstring.
12746
23fe745a
JB
127472008-10-28 Juanma Barranquero <lekktu@gmail.com>
12748
12749 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
12750 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
12751 Fix typos in docstrings.
12752
ff808935
DN
127532008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
12754
12755 * emacs.c (daemon_pipe): Make non-static.
12756 (IS_DAEMON): Move definition ...
12757 * lisp.h (IS_DAEMON): ... here.
12758 (daemon_pipe): Declare.
12759 (is_daemon): Remove.
12760 * dispnew.c (init_display): Use IS_DAEMON.
12761
fc012771
SM
127622008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
12763
12764 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
12765 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
12766
12767 * emacs.c (is_daemon): Remove.
12768 (main): Don't set is_daemon.
12769 (IS_DAEMON): New macro.
12770 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 12771 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
12772 parent exits.
12773 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
12774
d8bdbe6f
CY
127752008-10-27 Chong Yidong <cyd@stupidchicken.com>
12776
d1a072bf
CY
12777 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
12778 over-sized glyph, draw it with the default glyph width.
12779
e2e325aa
CY
12780 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
12781 glyph, draw it with the default glyph width.
12782
12783 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
12784 glyph, draw it with the default glyph width.
12785
d8bdbe6f
CY
12786 * xdisp.c (try_scrolling): When computing the distance from the
12787 scroll margin to PT, try moving some distance past the window
12788 bottom before giving up.
12789
7bfac547
MR
127902008-10-27 Martin Rudalics <rudalics@gmx.at>
12791
12792 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
12793 (Fset_window_buffer): Explain in doc-string that a window can be
12794 "strongly" dedicated to its buffer.
12795
4ff029f6
DN
127962008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
12797
12798 * emacs.c (daemon_name): New variable.
12799 (main): Deal with --daemon=SERVER_NAME.
12800 (Fdaemonp): Return a name if one was passed to --daemon.
12801
5790ef40
DN
128022008-10-26 Romain Francoise <romain@orebokech.com>
12803
f9bd0df9 12804 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
12805 (main): Create a pipe before forking, make the parent exit only after
12806 the child has closed its end of the pipe. Move closing the
12807 descriptors ...
12808 (Fdaemon_initialized): ... here. New function.
12809
f5385255
SM
128102008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
12811
4d632321
SM
12812 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
12813 the previous unoptimized table.
12814
f5385255
SM
12815 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
12816 the distinction between non-nil and non-t value of `dedicated'.
12817
6c56a0f3
CY
128182008-10-25 Chong Yidong <cyd@stupidchicken.com>
12819
12820 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 12821 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 12822
fec89261
MR
128232008-10-25 Martin Rudalics <rudalics@gmx.at>
12824
12825 * window.c (Fget_buffer_window, Fdelete_windows_on)
12826 (Freplace_buffer_in_windows): Make buffer argument optional and
12827 rename to buffer_or_name.
12828
34fcddd0
CY
128292008-10-24 Chong Yidong <cyd@stupidchicken.com>
12830
f5385255
SM
12831 * xdisp.c (handle_single_display_spec, handle_display_prop):
12832 Undo 2005-05-16 change.
34fcddd0
CY
12833 (handle_stop): Pop iterator if it's loaded with an empty string.
12834 (get_overlay_strings_1): Don't save iterator if it's loaded with
12835 an empty string (bug#1201).
12836
064766f2
KH
128372008-10-24 Kenichi Handa <handa@m17n.org>
12838
12839 * ftfont.c (ftfont_otf_features): Fix previous change.
12840 (ftfont_otf_capability): Check FeatureList.FeatureCount before
12841 calling ftfont_otf_features.
12842
f9bd0df9 128432008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
12844
12845 * font.c (font_match_p): Fix for the case that a vector of
12846 characters is in script-representative-chars.
12847
1dae9197
MA
128482008-10-24 Michael Albinus <michael.albinus@gmx.de>
12849
12850 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 12851 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
12852 (xd_read_queued_messages): Catch Qdbus_error from the macros.
12853 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 12854 macro. (Bug#1186)
1dae9197 12855
f9bd0df9 128562008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
12857
12858 * s/sol2-10.h: New file.
12859
878a4584
JB
128602008-10-23 Juanma Barranquero <lekktu@gmail.com>
12861
12862 * xdisp.c (fill_glyph_string): Fix typo in source (though the
12863 poor beast has survived 9+ years and the jump from xterm.c!).
12864
cd265ca6
MR
128652008-10-23 Martin Rudalics <rudalics@gmx.at>
12866
12867 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
12868 Reword doc-string.
f5385255 12869 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 12870
472a4dc9
JB
128712008-10-23 Juanma Barranquero <lekktu@gmail.com>
12872
12873 * character.c (syms_of_character) <script-representative-chars>:
12874 <unicode-category-table>: Doc fixes.
12875
159bd5a2
NF
128762008-10-23 Noah Friedman <friedman@splode.com>
12877
12878 * coding.c (make_conversion_work_buffer): Check that
12879 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
12880 Fget_buffer_create.
12881
49f9c344
KH
128822008-10-23 Kenichi Handa <handa@m17n.org>
12883
12884 * font.c (font_add_log): Check the values of extra properties.
12885
12bb3111
MR
128862008-10-22 Martin Rudalics <rudalics@gmx.at>
12887
12888 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
12889 Reword doc-string.
12890 (Fset_window_parameter): Use NILP.
12891 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 12892 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 12893
bbeb4e99
JB
128942008-10-22 Juanma Barranquero <lekktu@gmail.com>
12895
12896 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
12897
128982008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
12899
12900 * nsfns.m (ns_appkit_version): New function.
12901 (x-server-version): Use it.
12902 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
12903 (x-server-vendor): Don't check_ns().
12904
12905 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
12906
a9b555d3
JB
129072008-10-22 Juanma Barranquero <lekktu@gmail.com>
12908
12909 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
12910 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
12911
4626499f
KH
129122008-10-22 Kenichi Handa <handa@m17n.org>
12913
e3681952
KH
12914 * syntax.c (scan_words): Call word_boundary_p instead of comparing
12915 scripts.
12916
4626499f
KH
12917 * category.c (word_boundary_p): Check scripts instead of charset.
12918 Handle nil value in word-separating-categories and
12919 word-combining-categories.
12920 (syms_of_category): Fix docstrings of word-separating-categories
12921 and word-combining-categories.
12922
1560f91a
EZ
129232008-10-21 Eli Zaretskii <eliz@gnu.org>
12924
12925 * coding.c (Fencode_coding_region, Fdecode_coding_region)
12926 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
12927
f4668441
MR
129282008-10-21 Martin Rudalics <rudalics@gmx.at>
12929
12930 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
12931 Rename arg "buffer" to "buffer_or_name".
12932 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
12933 it optional.
12934 (no_switch_window): Remove since the return value is not used.
a9b555d3 12935 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
12936 Consider window as dedicated when Fwindow_dedicated_p returns a
12937 non-nil value.
12938 * lisp.h: Remove prototype for no_switch_window.
12939
fd75ddb2
JD
129402008-10-21 Jan Djärv <jan.h.d@swipnet.se>
12941
12942 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 12943 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 12944
07295713
KH
129452008-10-21 Kenichi Handa <handa@m17n.org>
12946
12947 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
12948 check Vlatin_extra_code_table.
12949
712adc82
EZ
129502008-10-20 Eli Zaretskii <eliz@gnu.org>
12951
12952 * fileio.c (Fset_file_modes): Doc fix.
12953
f549eb0b
MA
129542008-10-19 Michael Albinus <michael.albinus@gmx.de>
12955
12956 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
12957 in arrays.
12958
aac0c6e3
MR
129592008-10-19 Martin Rudalics <rudalics@gmx.at>
12960
12961 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
12962 Mention kill-buffer in doc-string.
12963 (Fset_window_buffer): Reinsert tem check removed in last commit.
12964 (Fenlarge_window, Fshrink_window): Have argument names and
12965 doc-string follow Elisp manual more closely.
12966
129672008-10-18 Eli Zaretskii <eliz@gnu.org>
12968
12969 * fileio.c (Fset_file_modes): Doc fix.
12970
129712008-10-18 Martin Rudalics <rudalics@gmx.at>
12972
12973 * window.c (Fwindow_width, Fset_window_start)
12974 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
12975 (Fdelete_windows_on, Freplace_buffer_in_windows):
12976 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
12977 (Fwindow_dedicated_p): Make window argument optional.
12978 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
12979 (Fset_window_buffer): Respect any non-nil dedicated value for
12980 window. Rename "buffer" argument to "buffer_or_name".
12981
129822008-10-18 Ulrich Mueller <ulm@gentoo.org>
12983
12984 * m/sh3.h: New file, machine description for SuperH.
12985
129862008-10-17 Martin Rudalics <rudalics@gmx.at>
12987
12988 * window.c (Fsplit_window): Rename arg horflag to horizontal.
12989
129902008-10-17 Kenichi Handa <handa@m17n.org>
12991
12992 * ftfont.c (ftfont_otf_features): Fix indexing
12993 gsub_gpos->FeatureList.Feature. Check the validity of indices.
12994
129952008-10-16 Magnus Henoch <mange@freemail.hu>
12996
12997 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
12998 (Fdbus_call_method_asynchronously): Ditto.
12999 This change makes C-h f display the argument list.
13000
130012008-10-16 Chong Yidong <cyd@stupidchicken.com>
13002
13003 * fileio.c (Fexpand_file_name): Doc fix.
13004
13005 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
13006 of :foreground and :background equivalent to unspecified (20.x
13007 compatibility).
13008
130092008-10-15 Eli Zaretskii <eliz@gnu.org>
13010
13011 * buffer.c (syms_of_buffer): Doc fix.
13012
130132008-10-14 Kenichi Handa <handa@m17n.org>
13014
13015 * font.c (font_clear_prop): When clearing font width, clear the
13016 average width field too.
13017
130182008-10-12 Andreas Schwab <schwab@suse.de>
13019
13020 * ftfont.c (ftfont_shape_by_flt): Make static.
13021 * ftfont.h (ftfont_shape_by_flt): Don't declare.
13022
13023 * font.c: Don't include <m17n-flt.h>.
13024
130252008-10-10 Eli Zaretskii <eliz@gnu.org>
13026
13027 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
13028
130292008-10-09 Eli Zaretskii <eliz@gnu.org>
13030
13031 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
13032 away code.
13033
130342008-10-09 Chong Yidong <cyd@stupidchicken.com>
13035
13036 * dispnew.c (update_text_area): Avoid looping due to large glyph
13037 overhangs (bug#1070).
13038
130392008-10-09 Kenichi Handa <handa@m17n.org>
13040
13041 * fontset.c (face_for_char): If face->fontset is negative, just
13042 return ascii_face.
13043
f5385255
SM
13044 * font.c (font_delete_unmatched): Fix previous change.
13045 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
13046
130472008-10-09 Martin Rudalics <rudalics@gmx.at>
13048
13049 * frame.c (Fraise_frame): On text-only terminals select frame in
13050 order to make it visible. (Bug#1061)
13051
130522008-10-08 Chong Yidong <cyd@stupidchicken.com>
13053
13054 * fontset.c (fontset_find_font): Check frame validity.
13055
130562008-10-07 Chong Yidong <cyd@stupidchicken.com>
13057
a9b555d3 13058 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
13059 (xg_display_close): Allow Emacs to close all displays (bug#985).
13060
130612008-10-06 Andreas Schwab <schwab@suse.de>
13062
f5385255 13063 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
13064
130652008-10-06 Chong Yidong <cyd@stupidchicken.com>
13066
f5385255 13067 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 13068
a9b555d3 13069 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
13070
13071 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
13072 during initialization.
13073
130742008-10-04 Eli Zaretskii <eliz@gnu.org>
13075
13076 * xdisp.c (redisplay_internal): If frame switched, redisplay the
13077 whole thing on MSDOS frames as well as on a TTY.
13078
13079 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
13080 well as for TTY.
13081 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
13082 well as on a TTY.
13083
13084 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
13085 as well as for TTY.
13086
13087 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
13088
13089 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
13090 MSDOS frames as well.
13091
130922008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
13093
13094 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
13095 correct arguments.
b71ac3dd 13096 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
13097
130982008-10-03 Glenn Morris <rgm@gnu.org>
13099
13100 * emacs.c (USAGE1): Add --daemon.
13101
131022008-10-02 Eli Zaretskii <eliz@gnu.org>
13103
13104 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
13105 100, so it's in percents as advertised.
13106
131072008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
13108
13109 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
13110 (ns_output.current_cursor, ns_output.desired_cursor)
13111 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
13112 (FRAME_NEW_CURSOR_COLOR): Remove.
13113
13114 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 13115 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
13116 enumeration (HOLLOW_BOX_CURSOR, etc.).
13117
13118 * nsterm.m (ns_frame_rehighlight): Remove commented code.
13119 (draw_window_cursor): Simplify code.
f5385255
SM
13120 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
13121 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 13122 updates manually.
a9b555d3
JB
13123 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
13124 Use core Emacs cursor types.
aac0c6e3 13125
b8ff72fa 13126 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
13127
131282008-10-02 Martin Rudalics <rudalics@gmx.at>
13129
13130 * process.c (Faccept_process_output): Fix doc-string.
13131
131322008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
13133
13134 * gmalloc.c (__sbrk): Also define for uClibc.
13135
13136 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
13137 for uClibc.
13138
131392008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13140
13141 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
13142 styles.
13143 (nsfont_open): Reenable the cache.
13144
131452008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13146
13147 * font.c (font_matching_entity): Reflect ATTRS in font selection.
13148 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
13149
131502008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
13151
13152 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
13153 a suspended terminal.
13154
131552008-09-30 Michael Albinus <michael.albinus@gmx.de>
13156
13157 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
13158
131592008-09-30 Eli Zaretskii <eliz@gnu.org>
13160
13161 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
13162
131632008-09-30 Chong Yidong <cyd@stupidchicken.com>
13164
13165 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
13166 in a continued line coincides with a line beginning.
13167
131682008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
13169
13170 * nsfont.m (nsfont_trait_distance): Fix bug.
13171 (nsfont_list): Return a list rather than a vector (syncs with Handa
13172 changes of 2008-05-14).
13173 (nsfont_open): Improve logging.
13174
131752008-09-29 Andreas Schwab <schwab@suse.de>
13176
13177 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
13178
131792008-09-28 Martin Rudalics <rudalics@gmx.at>
13180
13181 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
13182 name as char-resolve-modifiers.
13183 Reported by: Markus Triska <markus.triska@gmx.at>
13184
131852008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
13186
13187 * dispnew.c (init_display): Return earlier when running as a daemon.
13188
131892008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
13190
13191 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
13192
131932008-09-27 Eli Zaretskii <eliz@gnu.org>
13194
13195 * composite.c (Fcomposition_get_gstring)
13196 (Fcompose_region_internal, Fcompose_string_internal)
13197 (Ffind_composition_internal): Doc fix.
13198 (syms_of_composite) <compose-chars-after-function>: Doc fix.
13199 (syms_of_composite) <auto-composition-function>: Doc fix.
13200 (syms_of_composite) <composition-function-table>: Doc fix.
13201
132022008-09-25 Chong Yidong <cyd@stupidchicken.com>
13203
13204 * search.c (wordify): New argument for lax word-ends.
13205 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
13206
132072008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
13208
13209 * lisp.h (is_daemon): Declare.
13210 * dispnew.c (init_display): Do not try to initialize the terminal
13211 when running as a daemon.
13212
132132008-09-22 Chong Yidong <cyd@stupidchicken.com>
13214
13215 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
13216 x_display_pixel_height.
13217
132182008-09-22 Martin Rudalics <rudalics@gmx.at>
13219
13220 * undo.c (record_point): Don't call Fundo_boundary for first
13221 change. (Bug#731)
13222
132232008-09-22 Juanma Barranquero <lekktu@gmail.com>
13224
13225 * emacs.c (Fdaemonp): Doc fix.
13226
132272008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
13228
13229 * emacs.c (main): Place #ifdef in the proper place.
13230
132312008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
13232
13233 * emacs.c (standard_args): Add --daemon.
13234 (main): Disconnect from the terminal when --daemon is passed.
13235 (is_daemon): New variable.
13236 (Fdaemonp): New function.
13237 (syms_of_emacs): Defsubr it.
13238
132392008-09-20 Chong Yidong <cyd@stupidchicken.com>
13240
13241 * xdisp.c (get_next_display_element): Handle string display
13242 correctly when checking for the end of a box run.
13243
132442008-09-20 Glenn Morris <rgm@gnu.org>
13245
13246 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
13247 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
13248 (Frename_file): Avoid copying to trash if a rename involves
13249 a delete. (Bug#964).
13250
132512008-09-20 Eli Zaretskii <eliz@gnu.org>
13252
13253 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
13254 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
13255 frames as well as termcap frames.
13256 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
13257 get_named_tty.
13258
132592008-09-19 Eli Zaretskii <eliz@gnu.org>
13260
13261 * process.c (procfs_system_process_attributes): Fix cmdline in
13262 case /proc/PID/cmdline is empty.
13263
13264 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
13265 x_display_pixel_height.
13266
132672008-09-19 Juanma Barranquero <lekktu@gmail.com>
13268
13269 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
13270
13271 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
13272 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
13273
132742008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
13275
13276 * dispextern.h (struct it): Move line_wrap away from the middle of
13277 bitfields. Move voffset in struct iterator_stack_entry after the
13278 bitfields. Move tab_width near after another short.
13279
132802008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
13281
13282 * frame.h (struct frame): Move alpha from the middle of bitfields.
13283
13284 * window.h (struct window): Move frozen_window_start_p after the
13285 rest of the bitfields to reduce padding.
13286
132872008-09-18 Chong Yidong <cyd@stupidchicken.com>
13288
13289 * xterm.h (x_display_info): Remove `height' and `width' members.
13290
13291 * nsterm.h (ns_display_info): Remove `height' and `width' members.
13292
13293 * w32term.h (w32_display_info): Remove `height', `width',
13294 `height_in', and `width_in' members.
13295
b8ff72fa
SM
13296 * xterm.c (x_display_pixel_height, x_display_pixel_width):
13297 New functions.
aac0c6e3
MR
13298 (x_calc_absolute_position): Use them.
13299 (x_term_init): Omit removed `height' and `width' members.
13300
b8ff72fa
SM
13301 * w32term.c (x_display_pixel_height, x_display_pixel_width):
13302 New functions.
aac0c6e3
MR
13303 (w32_read_socket, x_calc_absolute_position): Use them.
13304 (w32_initialize_display_info, w32_term_init): Omit removed members
13305 of w32_display_info.
13306
b8ff72fa
SM
13307 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
13308 New functions.
13309 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 13310
b8ff72fa
SM
13311 * xterm.c (x_display_pixel_height, x_display_pixel_width):
13312 New functions.
aac0c6e3
MR
13313 (x_calc_absolute_position): Use them.
13314 (x_term_init): Omit removed `height' and `width' members.
13315
13316 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
13317 (compute_tip_xy):
13318 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
13319 * xmenu.c (menu_position_func): Use x_display_pixel_height and
13320 x_display_pixel_width.
13321
133222008-09-18 Kenichi Handa <handa@m17n.org>
13323
13324 * composite.c (fill_gstring_header): Don't check FROM and TO here.
13325 (composition_compute_stop_pos): Fix handling of static composition.
13326 (Fcomposition_get_gstring): Check FROM and TO at first.
13327
133282008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
13329
46e722a9 13330 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
13331 mixup (YAILOM).
13332
133332008-09-17 Chong Yidong <cyd@stupidchicken.com>
13334
13335 * indent.c (Fvertical_motion): Use position reported by iterator
13336 instead of PT for determining screen motion (bug#943).
13337
133382008-09-17 Romain Francoise <romain@orebokech.com>
13339
13340 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
13341
133422008-09-17 Kenichi Handa <handa@m17n.org>
13343
13344 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
13345
13346 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
13347 if necessary.
13348
133492008-09-16 Kenichi Handa <handa@m17n.org>
13350
13351 * coding.c (make_conversion_work_buffer): Avoid calling
13352 Fget_buffer_create if it is not necessary.
13353
133542008-09-15 Martin Rudalics <rudalics@gmx.at>
13355
13356 * window.c (Fselect_window): Don't update window_select_count and
13357 use_time when norecord is not nil.
13358
133592008-09-14 Kenichi Handa <handa@m17n.org>
13360
13361 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
13362 specpdl_ptr.
13363
133642008-09-12 Kenichi Handa <handa@m17n.org>
13365
13366 * indent.c (scan_for_column): Don't handle automatic composition
13367 if the current buffer is not associated with a window.
13368
13369 * composite.c (composition_reseat_it): If the current buffer is
13370 not associated with a window, ignore the automatic composition.
13371 (find_automatic_composition): Likewise.
13372
133732008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
13374
13375 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
13376 (Fgpm_mouse_stop): Use it.
13377 * termhooks.h (close_gpm): Declare.
13378 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
13379 connection if Gpm_GetEvent fails.
13380
13381 * window.c (set_window_buffer): Always preserve current-buffer.
13382
133832008-09-12 Glenn Morris <rgm@gnu.org>
13384
13385 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
13386
133872008-09-11 Glenn Morris <rgm@gnu.org>
13388
13389 * charset.c (charset-map-path): Doc fix.
13390
133912008-09-10 Kenichi Handa <handa@m17n.org>
13392
13393 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
13394
13395 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
13396 compose a grapheme cluster with the preceding base glyph.
13397
13398 * composite.c (composition_compute_stop_pos): Fix previous change.
13399 Reset cmp_it->id to -1 at first.
13400
134012008-09-10 Glenn Morris <rgm@gnu.org>
13402
13403 * Makefile.in (character.o, chartab.o): Fix config.h typo.
13404
134052008-09-09 Chong Yidong <cyd@stupidchicken.com>
13406
13407 * keyboard.c (read_key_sequence): Reapply translation maps when
13408 switching keyboards.
13409
134102008-09-09 Kenichi Handa <handa@m17n.org>
13411
13412 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
13413 characters.
13414
13415 * composite.c (FORWARD_CHAR): Fix calculation
13416 of (POSITION).pos_byte.
13417 (composition_compute_stop_pos): Limit the search of composition to
13418 at most 500 characters ahead. If we reach the limit or find a
13419 newline, set cmp_it->ch to -2 and return 0.
13420 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
13421
134222008-09-08 Kenichi Handa <handa@m17n.org>
13423
13424 * indent.c (Fvertical_motion): Be sure to set
13425 it_overshoot_expected if it.cmp_it.id is non-negative.
13426
134272008-09-07 Andreas Schwab <schwab@suse.de>
13428
13429 * callproc.c (Fcall_process): Don't hold references to string data
13430 across garbage collection. Move initialisation of new_argv down
13431 to avoid compiler bug.
13432
134332008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
13434
13435 * process.c (Fsystem_process_attributes): Doc fix.
13436
134372008-09-07 Chong Yidong <cyd@stupidchicken.com>
13438
13439 * callproc.c (Fcall_process): Canonicalize current directory name.
13440
13441 * xdisp.c (move_it_to): When moving by vpos, ensure that the
13442 iterator advances to the next line if the current line ends in a
13443 continued tab.
13444
134452008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
13446
13447 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
13448 member to point to cmp_from.
13449
13450 * xdisp.c: Doc fix for references to gidx data member.
13451
134522008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
13453
13454 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
13455
134562008-09-07 Kenichi Handa <handa@m17n.org>
13457
13458 * composite.c (FORWARD_CHAR): Check STOP after
13459 incrementing (POSITION).pos.
13460
134612008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
13462
13463 * process.c (Fsystem_process_attributes): Doc fix.
13464
134652008-09-06 Chong Yidong <cyd@stupidchicken.com>
13466
13467 * keyboard.c (Ftop_level): Doc fix.
13468
134692008-09-06 Eli Zaretskii <eliz@gnu.org>
13470
13471 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
13472 minibuffer, don't let lower part of menu invade the echo area.
13473
13474 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
13475 "char *q" to access menu text and advance through it. Revert the
13476 change that displayed ">" instead of ASCII character 0x10.
13477
134782008-09-05 Eli Zaretskii <eliz@gnu.org>
13479
13480 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
13481 toggle boxes and radio buttons on MS-DOS as well.
13482
134832008-09-05 Kenichi Handa <handa@m17n.org>
13484
13485 * composite.c (autocmp_chars): Check lookback count.
13486 (composition_compute_stop_pos): Set cmp_it->lookback.
13487 (composition_reseat_it): Check lookback count.
13488 (struct position_record): New struct.
13489 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
13490 (find_automatic_composition): New function.
13491 (composition_adjust_point): Use find_automatic_composition.
13492
13493 * dispextern.h (struct composition_it): New member lookback.
13494
134952008-09-02 Chong Yidong <cyd@stupidchicken.com>
13496
13497 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
13498 if moving by a single line.
13499
135002008-09-02 Andreas Schwab <schwab@suse.de>
13501
13502 * xterm.c (x_delete_display): Fix merge error.
13503
13504 * fileio.c (Fexpand_file_name): Remove unused variables.
13505
135062008-09-02 Eli Zaretskii <eliz@gnu.org>
13507
13508 * fileio.c (Fexpand_file_name): Copy argument `name' into local
13509 storage on all platforms, not just on DOS_NT.
13510
135112008-09-02 Jason Rumney <jasonr@gnu.org>
13512
b8ff72fa
SM
13513 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
13514 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
13515
135162008-09-01 Chong Yidong <cyd@stupidchicken.com>
13517
13518 * xfaces.c (Finternal_set_alternative_font_family_alist)
13519 (Finternal_set_alternative_font_registry_alist): Properly copy
13520 entire alist structure.
13521
135222008-09-01 Kenichi Handa <handa@m17n.org>
13523
d66c0241 13524 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 13525 representative chars of the script is a vector.
d66c0241
JB
13526 (ftfont_list): Handle the case where the representative chars of
13527 the script is a vector.
aac0c6e3
MR
13528
13529 * character.c (syms_of_character): Docstring of
13530 script-representative-chars fixed.
13531
135322008-08-31 Eli Zaretskii <eliz@gnu.org>
13533
13534 * msdos.c (BUILD_CHAR_GLYPH): New macro.
13535 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
13536 the menu. Allocate larger buffer for `text', to account for
13537 possible ^C characters.
13538
135392008-08-31 Martin Rudalics <rudalics@gmx.at>
13540
13541 * xdisp.c (prepare_menu_bars): Don't call
13542 Vwindow_size_change_functions with arg Qt.
13543
135442008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
13545
13546 * font.h (font_range):
13547 * fileio.c (report_file_error):
46e722a9
SM
13548 * composite.c (composition_update_it): Yet another int/Lisp_Object
13549 mixup (YAILOM).
aac0c6e3
MR
13550
135512008-08-30 Glenn Morris <rgm@gnu.org>
13552
13553 * data.c (Fmake_variable_frame_local): Doc fix.
13554
13555 * frame.c (Fmodify_frame_parameters): Doc fix.
13556
135572008-08-30 Eli Zaretskii <eliz@gnu.org>
13558
13559 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
13560 needed by GetTokenInformation.
13561 (w32_system_process_attributes): Check return values of all system
13562 APIs.
13563
13564 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
13565 only when the state changes.
13566 (IT_update_begin, IT_update_end): Add termscript trace.
13567
13568 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
13569 clipboard is unavailable. Set dst to NULL if it doesn't point to
13570 malloc'ed data.
13571 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
13572 passing random values to xfree.
13573
13574 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 13575 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
13576
135772008-08-29 Jason Rumney <jasonr@gnu.org>
13578
13579 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
13580
135812008-08-29 Eli Zaretskii <eliz@gnu.org>
13582
13583 * composite.c (fill_gstring_body): Avoid compiler warnings.
13584
13585 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
13586 LGLYPH_SET_CODE to avoid compiler warnings.
13587
2ae37cf0 13588 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
13589
13590 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
13591
13592 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
13593 LGLYPH_SET_CODE.
13594
135952008-08-29 Kenichi Handa <handa@m17n.org>
13596
13597 * fileio.c (report_file_error): Don't downcase the first character
13598 of errstring if it is still unibyte.
13599
136002008-08-29 Kenichi Handa <handa@m17n.org>
13601
13602 These changes are to re-implement the automatic composition so
13603 that it doesn't use text properties.
13604
13605 * Makefile.in (ftfont.o): Depend on composite.h.
13606 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
13607
13608 * character.h (Vunicode_category_table): Extern it.
13609
13610 * character.c (Vunicode_category_table): New variable.
13611 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
13612
13613 * chartab.c (optimize_sub_char_table): Perform more greedy
13614 optimization.
13615
b8ff72fa
SM
13616 * composite.h (enum composition_method):
13617 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
13618 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
13619 (Vcomposition_function_table): Extern it.
13620 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
13621 (composition_gstring_put_cache, composition_gstring_from_id)
13622 (composition_gstring_p, composition_gstring_width)
13623 (composition_compute_stop_pos, composition_reseat_it)
13624 (composition_update_it, composition_adjust_point): Extern them.
13625 (Fcomposition_get_gstring): EXFUN it.
13626
d66c0241 13627 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
13628 (Vcomposition_function_table)
13629 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
13630 (gstring_hash_table, gstring_work, gstring_work_headers):
13631 New variables.
aac0c6e3
MR
13632 (gstring_lookup_cache, composition_gstring_put_cache)
13633 (composition_gstring_from_id, composition_gstring_p)
13634 (composition_gstring_width, fill_gstring_header)
13635 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
13636 (composition_reseat_it, composition_update_it)
b8ff72fa 13637 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
13638 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
13639 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 13640 Defsubr composition_get_gstring.
aac0c6e3
MR
13641
13642 * dispextern.h (struct glyph): New union u.cmp. Delete the member
13643 cmp_id.
13644 (struct glyph_string): Delete the member gidx. New members
13645 cmp_id, cmp_from, and cmp_to.
13646 (enum it_method): Delete GET_FROM_COMPOSITION.
13647 (struct composition_it): New struct.
13648 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
13649 Delete c, len, cmp_id, cmp_len in u.comp.
13650
13651 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 13652 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 13653 (enum lglyph_indices): Likewise.
b8ff72fa 13654 (font_range): Adjust extern.
aac0c6e3
MR
13655 (font_fill_lglyph_metrics): Extern it.
13656
13657 * font.c (QCf): New variable.
13658 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
13659 (font_prepare_composition): Delete this function.
13660 (font_range): Type and arguments changed.
13661 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
13662 (font_fill_lglyph_metrics): New function.
b8ff72fa 13663 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 13664 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
13665 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
13666 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
13667
13668 * fontset.h (font_for_char): Extern it.
13669
13670 * fontset.c (font_for_char): New function.
13671
13672 * ftfont.c: Include composite.h.
13673 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 13674 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
13675
13676 * indent.c: Include composite.h and dispextern.h.
13677 (check_composition): Delete this function.
13678 (scan_for_column): Handle composition by
13679 composition_compute_stop_pos, composition_reseat_it, and
13680 composition_update_it.
13681 (compute_motion): Likewise.
13682 (Fvertical_motion): Fix checking of composition.
13683
13684 * keyboard.c (adjust_point_for_property): Check composition by
13685 composition_adjust_point.
13686
b8ff72fa 13687 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
13688 struct glyph_string.
13689
b8ff72fa
SM
13690 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
13691 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
13692 struct glyph.
13693 (produce_composite_glyph): Likewise.
13694
b8ff72fa
SM
13695 * w32term.c (x_draw_composite_glyph_string_foreground):
13696 Adjust for the change of struct glyph_string.
aac0c6e3
MR
13697 (x_draw_glyph_string): Likewise.
13698
13699 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
13700 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
13701
13702 * xdisp.c: Include font.h.
13703 (it_props): Delete the entry for Qauto_composed.
13704 (init_iterator): Initialize it->cmp_it.id to -1.
13705 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 13706 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
13707 (handle_auto_composed_prop): Delete it.
13708 (handle_composition_prop): Handle only static composition.
13709 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
13710 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 13711 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
13712 (pop_it): Likewise.
13713 (get_next_element): Delete next_element_from_composition.
13714 (CHAR_COMPOSED_P): New macro.
13715 (get_next_display_element): For automatic composition, get a face
13716 from the font in the glyph-string.
13717 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 13718 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
13719 (next_element_from_string): Check if the character at the current
13720 position is composed by CHAR_COMPOSED_P.
13721 (next_element_from_buffer): Likewise.
d66c0241
JB
13722 (next_element_from_composition): Adjust for the change of struct it.
13723 Update it->cmp_it.
b8ff72fa
SM
13724 (dump_glyph): Adjust for the change of struct glyph.
13725 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
13726 it and struct glyph. Don't handle automatic composition here.
13727 (fill_gstring_glyph_string): New function.
13728 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 13729 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
13730 (BUILD_GSTRING_GLYPH_STRING): New macro.
13731 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
13732 automatic composition.
b8ff72fa 13733 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 13734 struct glyph.
b8ff72fa 13735 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 13736
b8ff72fa 13737 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
13738 the change of struct glyph_string.
13739 (x_draw_glyph_string): Likewise.
13740
137412008-08-29 Glenn Morris <rgm@gnu.org>
13742
13743 * buffer.c (word-wrap): Doc fix.
13744 * xdisp.c (truncate-partial-width-windows): Doc fix.
13745 Increase default to 50.
13746
137472008-08-29 Chong Yidong <cyd@stupidchicken.com>
13748
13749 * xdisp.c (update_tool_bar_unwind): New function.
13750 (update_tool_bar): Temporarily set selected frame before building
13751 tool-bar items.
13752
137532008-08-28 Michael Albinus <michael.albinus@gmx.de>
13754
13755 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
13756 snprintf, respectively.
13757 (xd_append_arg): Convert strings with Fstring_make_unibyte.
13758
137592008-08-28 Chong Yidong <cyd@stupidchicken.com>
13760
13761 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
13762 LDFLAGS to GNUstep CC invocation.
13763
137642008-08-27 Chong Yidong <cyd@stupidchicken.com>
13765
13766 * indent.c (Fvertical_motion): Revert last change. Handle the
13767 general case where we are moving forward, and PT spans multiple
13768 screen lines.
13769
13770 * eval.c (find_handler_clause): Temporarily increase
13771 max-lisp-eval-depth while printing the backtrace buffer, to
13772 guarantee that help-mode code can run.
13773
137742008-08-27 Eli Zaretskii <eliz@gnu.org>
13775
13776 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
13777 colors under -rv.
13778 (IT_set_frame_parameters): Don't swap foreground and background
13779 colors if `(reverse . t)' is present in the frame properties.
13780 (internal_terminal_init): Call init_frame_faces only for the
13781 initial frame.
13782
137832008-08-27 Andreas Schwab <schwab@suse.de>
13784
13785 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
13786
137872008-08-27 Andreas Schwab <schwab@suse.de>
13788
13789 * search.c (search_buffer): Set char_base to zero only at the end.
13790
137912008-08-27 Kenichi Handa <handa@m17n.org>
13792
b8ff72fa 13793 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
13794
137952008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
13796
13797 * xterm.c (x_term_init): Temporarily hide the partially
13798 initialized terminal while calling vendor-specific-keysyms.
13799
138002008-08-26 Eli Zaretskii <eliz@gnu.org>
13801
13802 * msdos.c (internal_terminal_init): Most initializations done only
13803 once, especially initial_screen_colors[] and termscript open.
13804
138052008-08-26 Chong Yidong <cyd@stupidchicken.com>
13806
13807 * eval.c (Fcondition_case): Doc fix.
13808
13809 * widgetprv.h (EmacsFramePart): Change font member to the new font
13810 struct.
13811
13812 * widget.c: Include character.h and font.h for XSETFONT.
13813 (setup_frame_gcs): Compute X font id from font struct, just once.
13814
138152008-08-26 Eli Zaretskii <eliz@gnu.org>
13816
13817 * term.c (get_named_tty): Fix last change.
13818
138192008-08-26 Chong Yidong <cyd@stupidchicken.com>
13820
13821 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 13822 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
13823
138242008-08-25 Eli Zaretskii <eliz@gnu.org>
13825
13826 * frame.c (do_switch_frame): Mark previously displayed frame as
13827 obscured for FRAME_MSDOS_P frames as well.
13828
138292008-08-24 Eli Zaretskii <eliz@gnu.org>
13830
13831 * frame.c (make_terminal_frame): Initialize f->terminal,
13832 f->terminal->reference_count, and scroll bars on MS-DOS as well.
13833 Set the top frame to newly created frame.
13834 (Fmake_terminal_frame): Reuse the_only_display_info.
13835
13836 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
13837 estimating available memory.
13838
b97439ce 138392008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
13840
13841 * nsterm.m (ns_draw_window_cursor): Don't call
13842 NSDisableScreenUpdates and NSEnableScreenUpdates on
13843 non-NS_IMPL_COCOA systems.
13844
138452008-08-23 Andreas Schwab <schwab@suse.de>
13846
13847 * process.c (procfs_system_process_attributes): Fix use of
13848 uninitialized variables.
13849
138502008-08-23 Eli Zaretskii <eliz@gnu.org>
13851
13852 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
13853
13854 * dispnew.c (init_display): Remove MS-DOS specific conditions for
13855 calling tty-set-up-initial-frame-faces.
13856
b8ff72fa
SM
13857 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
13858 Allow MSDOS frames along with X frames.
aac0c6e3
MR
13859
13860 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
13861 addition to output_termcap.
13862
13863 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
13864
13865 * termchar.h (FRAME_TTY): Support output_msdos_raw.
13866 (struct tty_display_info) [MSDOS]: Add fields related to mouse
13867 highlight.
13868
13869 * process.c [!subprocesses]: Define QCname.
13870 (syms_of_process): Intern and staticpro it.
13871
13872 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
13873 Adjust for changes in encoding/decoding routines.
13874 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
13875 encode_coding and decode_coding.
13876
b8ff72fa 13877 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
13878
13879 * dosfns.c: Include frame.h before termhooks.h.
13880 (dos_cleanup): Use CURTTY ()->termscript instead of a global
13881 variable termscript.
13882
13883 * s/msdos.h (USER_FULL_NAME): Define.
13884 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
13885
13886 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
13887 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
13888 pw->pw_gecos.
13889
13890 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
13891 SELECTED_FRAME as additional (1st) argument.
13892 (tty_read_avail_input): Handle output_msdos_raw in
13893 addition to output_termcap.
13894
13895 * msdos.c: Include frame.h before termhooks.h.
13896 (mouse_on, mouse_off, mouse_moveto, mouse_init)
13897 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
13898 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
13899 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
13900 (IT_set_terminal_modes, IT_reset_terminal_modes)
13901 (IT_set_frame_parameters): Use tty->termscript instead of a global
13902 variable termscript.
13903 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
13904 global variable terminal_coding. Don't refer to
13905 Vnonascii_translation_table.
13906 (internal_terminal_init): Set Vwindow_system in current_kboard.
13907 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
13908 Announce date and time of session start, if termscript is open.
13909 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
13910 term.c:init_tty). Open termscript only of not already open.
13911 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
13912 here instead of dos_ttraw. Don't initialize display if this is an
13913 initial tty. Don't set FRAME_FONT.
13914 (Vwindow_system_version): Bump to 23.
13915 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
13916 is available, set up mouse_position_hook.
13917 (dos_ttraw, IT_set_terminal_modes): If called with initial
13918 terminal, do nothing.
13919 (IT_set_frame_parameters): Handle the Qtty_type frame
13920 parameter by calling internal_terminal_init.
13921 (dos_set_window_size, show_mouse_face)
13922 (clear_mouse_face, IT_note_mode_line_highlight)
13923 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
13924 (dos_rawgetc): Use tty_display_info instead of x_display_info.
13925 (initialize_msdos_display): New function.
13926 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
13927 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
13928 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
13929 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 13930 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
13931 (request_sigio, unrequest_sigio): Don't define, now defined on
13932 sysdep.c.
13933 (IT_write_glyphs): Rewrite to use encode_terminal_code.
13934
13935 * term.c [MSDOS]: Include msdos.h.
13936 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
13937 conditional to DOS_NT. Allow only one call to this function in a
13938 session. Don't allocate a new struct tty_display_info; instead,
13939 reuse the_only_display_info. Call get_tty_size to get screen
13940 dimensions. Call init_baud_rate to set bad_rate.
13941 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
13942 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 13943 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
13944 (get_tty_terminal, get_named_tty, Ftty_type)
13945 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
13946 output_termcap.
b8ff72fa
SM
13947 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
13948 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 13949 only when subprocesses are supported.
aac0c6e3
MR
13950
13951 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
13952 f->output_data.x.
13953 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
13954 terminal devices.
13955
5582fbc7 13956 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
13957 x_output.
13958 (FRAME_FONT): Use output_data.tty.
13959 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
13960 (struct x_display_info): Rename from display_info. Update all users in
13961 msdos.c.
aac0c6e3 13962 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 13963 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
13964 (dos_ttraw): Update prototype.
13965
13966 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
13967 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
13968
139692008-08-23 Jason Rumney <jasonr@gnu.org>
13970
13971 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
13972 (fn_TIFFSetDirectory): New library function used.
13973 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
13974 (tiff_load): Use :index to select among multiple images. Set count
13975 property when multiple images exist.
13976 (gif_format): Use :index, not :image.
13977
139782008-08-23 Chong Yidong <cyd@stupidchicken.com>
13979
13980 * xdisp.c (try_scrolling): Check INT_MAX instead of
13981 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
13982 to obtain INT_MAX.
13983
139842008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
13985
13986 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
13987
139882008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
13989
13990 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
13991 GNUstep library location.
13992
139932008-08-21 Chong Yidong <cyd@stupidchicken.com>
13994
13995 * xfaces.c (x_update_menu_appearance): Check validity of menu font
13996 before using it.
13997
13998 * puresize.h (BASE_PURESIZE): Increase to 1250000.
13999
140002008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14001
14002 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
14003 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
14004 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
14005 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
14006 (EmacsApp-cursor_blink_handler): Remove declaration.
14007 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
14008 match 01 Feb 2008 changes in xterm.c.
14009 (ns_read_socket): Add cast to avoid warning.
14010 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
14011 GNUstep.
14012
140132008-08-20 Chong Yidong <cyd@stupidchicken.com>
14014
14015 * xselect.c (x_get_foreign_selection): Return nil if desired
14016 selection could not be obtained, instead of signalling an error.
14017
140182008-08-20 David Reitter <david.reitter@gmail.com>
14019
14020 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
14021 * nsterm.m: Remove ns-specific code for cursor blinking.
14022 (ns_draw_window_cursor): Clear cursor properly rather than
14023 redrawing the area. Respect width of bar cursors.
14024 These changes enable the use of generic blink-cursor-mode and
14025 generic cursor types in NS and support smooth cursor movements (do
14026 not blink off after command).
14027 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
14028 Nextstep, too.
14029
140302008-08-19 Kenichi Handa <handa@m17n.org>
14031
14032 * font.c (Vfont_log_deferred): New variable.
14033 (font_add_log): Check Vfont_log_deferred.
14034 (font_deferred_log): New function.
14035
14036 * font.h (font_deferred_log): Extern it.
14037
14038 * fontset.c (reorder_font_vector): Use encoding charset of fonts
14039 for sorting.
14040 (face_for_char): Use deferred log.
14041
140422008-08-18 Kenichi Handa <handa@m17n.org>
14043
14044 * fontset.c (face_for_char): Add font log.
14045
14046 * font.c (font_add_log): Add the font properties :script, :lang,
14047 and :otf in the log.
14048
140492008-08-17 Chong Yidong <cyd@stupidchicken.com>
14050
14051 * xdisp.c: Remove dead code.
14052 (handle_invisible_prop, next_overlay_string): Defer call to
14053 setup_for_ellipsis.
14054 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
14055
140562008-08-15 Chong Yidong <cyd@stupidchicken.com>
14057
14058 * xfaces.c (lookup_derived_face): Properly handle possible zero
14059 return value of get_lface_attributes.
14060 (merge_faces): Don't tell lookup_derived_face to signal an error
14061 if face is not found.
14062
14063 * dired.c (Fdirectory_files): Doc fix.
14064
14065 * process.c (make_process): Initialize kill_without_query struct
14066 member.
14067
140682008-08-15 Eli Zaretskii <eliz@gnu.org>
14069
14070 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
14071 Alternative calculation of totphys for Visual Studio 6.
14072
14073 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
14074
14075 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
14076 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
14077 All users changed.
14078 (stat): Only root directory passed to GetDriveType. Allow RAM
14079 disk as well as local fixed disk when w32-get-true-file-attributes
14080 is set to `local'.
14081 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
14082 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
14083 (w32_cached_id, w32_add_to_cache): New functions.
14084 (get_name_and_id): Look account names in the cache before calling
14085 lookup_account_sid.
14086 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
14087 New initialization flags.
14088 (globals_of_w32): Initialize them to zero.
14089 (w32_system_process_attributes): Use w32_cached_id and
14090 w32_add_to_cache.
14091
140922008-08-14 Lawrence Mitchell <wence@gmx.li>
14093
14094 * lread.c (Fread_char, Fread_char_exclusive): If no character
14095 event is read before timeout is reached, return nil, rather than
14096 converting to a number.
14097
140982008-08-14 Chong Yidong <cyd@stupidchicken.com>
14099
14100 * fns.c (use_dialog_box): Doc fix.
14101
14102 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
14103 on OS X.
14104
141052008-08-13 Chong Yidong <cyd@stupidchicken.com>
14106
14107 * frame.c (Qns_parse_geometry): New var.
14108 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
14109
141102008-08-11 Chong Yidong <cyd@stupidchicken.com>
14111
14112 * xdisp.c (x_produce_glyphs): Handle the case when font has no
14113 space character in calculating tabs.
14114
141152008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
14116
14117 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
14118
141192008-08-10 Glenn Morris <rgm@gnu.org>
14120
14121 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
14122 silence gcc "limited range of data type" warnings in some
14123 make_fixnum_or_float calls.
14124
141252008-08-09 Eli Zaretskii <eliz@gnu.org>
14126
14127 * w32.c (w32_system_process_attributes): If the process does not
14128 exist, return nil.
14129
14130 * w32.c: Include thelp32.h, psapi.h and coding.h.
14131 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
14132 declarations.
14133 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
14134 (Process32Next_Proc): New typedefs.
14135 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
14136 (g_b_init_process32_next, g_b_init_open_thread_token)
14137 (g_b_init_impersonate_self, g_b_init_revert_to_self)
14138 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
14139 (g_b_init_get_process_working_set_size)
14140 (g_b_init_global_memory_status_ex): New static variables.
14141 (globals_of_w32): Initialize them.
14142 (create_toolhelp32_snapshot, process32_first, process32_next)
14143 (open_thread_token, impersonate_self, revert_to_self)
14144 (get_process_memory_info, get_process_working_set_size)
14145 (global_memory_status, global_memory_status_ex): New wrapper
14146 functions.
14147 (w32_list_system_processes, w32_system_process_attributes)
14148 (enable_privilege, restore_privilege, ltime, process_times):
14149 New functions.
14150 (convert_time_raw): New function.
14151 (convert_time): Remove conversion of FILETIME into time in 100
14152 nsec units, call convert_time_raw instead.
14153
14154 * process.h (w32_list_system_processes, w32_system_process_attributes):
14155 Add prototypes.
14156 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
14157 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
14158 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
14159 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
14160
14161 * process.c (Fsystem_process_attributes): Doc fix.
14162
141632008-08-08 Chong Yidong <cyd@stupidchicken.com>
14164
14165 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
14166 a continued multi-char glyph; if so, advance to the actual glyph.
14167
141682008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
14169
14170 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
14171
14172 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
14173 (.m.o): Use it.
14174 * config.in: Regenerate.
14175
141762008-08-07 Chong Yidong <cyd@stupidchicken.com>
14177
14178 * xdisp.c (redisplay_window): Revert last change.
14179 (try_window): Check bottom scroll margin too.
14180
141812008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
14182
14183 * config.in: Regenerate.
14184
14185 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
14186 -list-load-path-shadows'.
14187 (nsgui.h): Reduce number of things depending on it.
14188
141892008-08-06 Chong Yidong <cyd@stupidchicken.com>
14190
14191 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
14192 instead of window-end which does the wrong thing at eob.
14193 (try_cursor_movement): Minor optimization.
14194 (redisplay_window): If scroll margin is defined, don't assume
14195 window doesn't need scrolling.
14196
141972008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
14198
14199 * config.in: Regenerate.
14200
14201 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
14202 (mostlyclean): Don't delete *.d under NS.
14203
14204 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
14205
142062008-08-06 Kenichi Handa <handa@m17n.org>
14207
14208 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
14209
142102008-08-06 Andreas Schwab <schwab@suse.de>
14211
14212 * config.in: Regenerate.
14213
142142008-08-05 Chong Yidong <cyd@stupidchicken.com>
14215
14216 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
14217 forcing a window start.
14218
14219 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
14220 (auto_save_1): Update modtime when auto-save-list-file-name is on.
14221
142222008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
14223
14224 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
14225 argument.
14226
142272008-08-05 Juanma Barranquero <lekktu@gmail.com>
14228
14229 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
14230 <scroll-down-aggressively, before-change-functions>:
14231 <after-change-functions>: Reflow docstrings.
14232
142332008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 14234 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
14235
14236 Dock menu customization, based on a patch by Ken Raeburn, plus some
14237 other fixes.
14238 * nsmenu.m (dockMenu): New variable.
14239 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
14240
14241 * nsterm.h (dockMenu): Declare.
14242
14243 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
14244 (ns_term_init): Initialize dockMenu.
14245 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
14246 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
14247 left.
14248
14249 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
14250
142512008-08-04 Chong Yidong <cyd@stupidchicken.com>
14252
14253 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
14254
14255 * config.in: Regenerate.
14256
142572008-08-04 Seiji Zenitani <zenitani@mac.com>
14258
14259 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
14260
142612008-08-04 Chong Yidong <cyd@stupidchicken.com>
14262
14263 * nsterm.h (find_and_call_menu_selection): Fix prototype.
14264
142652008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
14266
14267 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
14268
14269 * keyboard.h: Comment an #endif.
14270
14271 * lisp.h (have_menus_p): Adjust comment.
14272
14273 * menu.c (find_and_return_menu_selection): Fix comparison with
14274 client_data.
14275
14276 * nsmenu.m (popup_activated_flag): New variable.
14277 (popup_activated): New function.
14278 (menu-or-popup-active-p): New exported lisp definition.
14279 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
14280 when popup done.
14281 (ns_popup_dialog): Set popup_activated_flag.
14282
14283 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
14284 version for GNUstep (handled by conditional typedef in nsterm.m).
14285 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
14286 in rgb.txt).
14287
14288 * process.c (init_process): Use DARWIN_OS, not DARWIN.
14289
14290 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
14291
14292 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
14293
14294 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
14295 shortcircuit if popup_activated like GTK and X toolkit.
14296
14297 * m/inter386.h: Change DARWIN to DARWIN_OS.
14298
14299 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
14300 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
14301 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
14302 comment on NO_SOCK_SIGIO.
14303
143042008-08-03 Chong Yidong <cyd@stupidchicken.com>
14305
14306 * nsterm.m (windowDidResize): Remove stopModal call.
14307
143082008-08-03 Andreas Schwab <schwab@suse.de>
14309
14310 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
14311 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
14312
143132008-08-02 Chong Yidong <cyd@stupidchicken.com>
14314
14315 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
14316 Don't use uninitialized pointer variable when using getrlimit.
14317
143182008-08-02 Jason Rumney <jasonr@gnu.org>
14319
14320 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
14321
143222008-08-02 Eli Zaretskii <eliz@gnu.org>
14323
14324 * alloc.c (NSTATICS): Bump to 0x640.
14325
14326 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
14327
14328 * lisp.h: Add prototype for directory_files_internal.
14329
14330 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
14331 New functions.
14332 (syms_of_process): Defsubr them. Add initializations for various
14333 Q* symbols used in procfs_system_process_attributes.
14334 (procfs_list_system_processes, procfs_system_process_attributes)
14335 [HAVE_PROCFS]: New functions.
14336 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
14337 (procfs_get_total_memory): New functions.
14338
143392008-08-01 Juanma Barranquero <lekktu@gmail.com>
14340
14341 * xfaces.c (Fx_load_color_file): Fix previous change;
14342 it is #ifdef WINDOWSNT, not WINDOWS_NT.
14343
143442008-08-01 Michael Albinus <michael.albinus@gmx.de>
14345
14346 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
14347
143482008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14349
14350 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
14351
143522008-08-01 Chong Yidong <cyd@stupidchicken.com>
14353
14354 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
14355
14356 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
14357 define NSApplicationDelegateReplySuccess.
14358 (EmacsView -converstationIdentifier): Use long instead of
14359 NSInteger for GNUstep, since it doesn't have NSInteger.
14360
14361 * xmenu.c: Revert last change.
14362
14363 * keyboard.h: Fix last change.
14364
143652008-08-01 Juanma Barranquero <lekktu@gmail.com>
14366
14367 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
14368 on Windows.
14369
143702008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14371
14372 Warning clearing and clean-up in NS port.
14373 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
14374 Add prototypes.
14375 * nsgui.h (FACE_DEFAULT): Remove, unused.
14376 (XGCValues): Change colors to unsigned long.
14377 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
14378 nsterm.m.
14379 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
14380 (ns_list_fonts): Remove, unused.
14381 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
14382 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
14383 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
14384 (nsfont_draw): Compare face colors to 0, not nil.
14385 * nsmenu.m (struct widget_value): Drop unneeded declaration.
14386 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
14387 (-addSubmenuWithTitle:): Use NSMenuItem class.
14388 (ns_popup_menu): Use NO, not NULL, for enabled setting.
14389 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
14390 (ns_clip_to_row): Make gc arg a BOOL.
14391 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
14392 ns_clip_to_row() call.
14393 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
14394 used). Cast FRAME_FONT assignments.
14395 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
14396 (ns_string_to_lispmod): Change arg to const char.
14397 (ns_term_init): Use NSMenuItem class.
14398 (EmacsApp -openFile:): Move to different section of file.
14399 (EmacsApp -application:openFiles:): Don't return a value, call
14400 -replyToOpenOrPrint:.
14401 (EmacsView -keyDown:): Fix up cast.
14402 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
14403 (EmacsView -menuDown:): Cast tag in call to
14404 find_and_call_menu_selection().
14405 (ns_list_fonts): Remove, unused.
14406 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
14407 (ns_fontname_to_xlfd): Make static.
14408 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
14409 Remove prototypes (now in keyboard.h).
14410 (next_menubar_widget_id): Remove, unused.
14411 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
14412 Remove prototypes (now in keyboard.h).
14413 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
14414
144152008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
14416
14417 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
14418 (floatfns.o): Depend on syssignal.h.
14419 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
14420
14421 * systty.h: Fix previous change that removed BSD_TERMIOS.
14422 Add comments to #ifdefs.
14423
144242008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14425
14426 * w32fns.c (w32-load-color-file): Remove.
14427 (x-open-connection): Use renamed Fx_load_color_file.
14428 * xfaces.c (x-load-color-file): Add.
14429 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
14430 Emacs.clr.
14431 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
14432
144332008-07-31 Michael Albinus <michael.albinus@gmx.de>
14434
14435 * dbusbind.c (Fdbus_call_method_asynchronously)
14436 (Fdbus_method_error_internal): New defuns.
14437 (xd_read_message): Handle also reply messages.
14438 (Vdbus_registered_functions_table): Extend docstring.
14439
144402008-07-31 Juanma Barranquero <lekktu@gmail.com>
14441
14442 * keyboard.c (gobble_input): Fix previous change.
14443
144442008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
14445
14446 * bitmaps/README:
14447 * xfns.c:
14448 * termcap.c:
14449 * term.c:
14450 * syswait.h:
14451 * systty.h:
14452 * systime.h:
14453 * syssignal.h:
14454 * sysdep.c:
14455 * process.h:
14456 * process.c:
14457 * print.c:
14458 * ndir.h:
14459 * lread.c:
14460 * keyboard.c:
14461 * getpagesize.h:
14462 * floatfns.c:
14463 * fileio.c:
14464 * emacs.c:
14465 * doc.c:
14466 * dispnew.c:
14467 * dired.c:
14468 * data.c:
14469 * callproc.c:
14470 * buffer.c:
14471 * README:
14472 * Makefile.in:
14473 * s/template.h:
14474 * s/msdos.h:
14475 * m/vax.h: Remove VMS support.
14476 * s/vms.h:
14477 * vlimit.h:
14478 * uaf.h:
14479 * temacs.opt:
14480 * param.h:
14481 * ioctl.h: Remove file.
14482
144832008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
14484
14485 * s/ms-w32.h (MULTI_KBOARD): Remove.
14486 * xterm.c:
14487 * xselect.c:
14488 * xfns.c:
14489 * window.c:
14490 * w32term.c:
14491 * w32fns.c:
14492 * terminal.c:
14493 * termhooks.h:
14494 * term.c:
14495 * sysdep.c:
14496 * keyboard.h:
14497 * keyboard.c:
14498 * frame.h:
14499 * frame.c:
14500 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
14501 * config.in: Regenerate.
14502
145032008-07-30 Jason Rumney <jasonr@gnu.org>
14504
14505 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
14506
14507 * w32font.c (w32font_encode_char): Leave as unicode if in range.
14508 (w32font_open_internal): Get unicode version of textmetrics.
14509 Don't enable or disable glyph indices here.
14510 (w32font_open): Disable use of glyph indices.
14511
14512 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
14513
145142008-07-30 Chong Yidong <cyd@stupidchicken.com>
14515
14516 * minibuf.c (Vread_buffer_function): Doc fix.
14517
145182008-07-30 John Paul Wallington <jpw@pobox.com>
14519
14520 * minibuf.c (read_buffer_completion_ignore_case): New var.
14521 (Fread_buffer): Use it.
14522
145232008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
14524
14525 * systty.h (sensemode): Remove empty #if. Remove reference to
14526 BSD_TERMIOS, unused.
14527
14528 * sysdep.c: Remove reference to DGUX.
14529 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
14530
14531 * config.in: Regenerate.
14532
145332008-07-30 Jason Rumney <jasonr@gnu.org>
14534
14535 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
14536
145372008-07-29 Jason Rumney <jasonr@gnu.org>
14538
14539 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
14540 is populated.
14541 (uniscribe_encode_char): Always use uniscribe.
14542 Avoid using context if cache is populated.
14543
145442008-07-29 Jan Djärv <jan.h.d@swipnet.se>
14545
14546 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
14547 open menu.
14548
14549 * gtkutil.c (menu_nav_ended): Remove.
14550 (create_menus): Remove signal connect for menu_nav_ended.
14551
145522008-07-28 Chong Yidong <cyd@stupidchicken.com>
14553
14554 * xdisp.c (redisplay_window): Check return value of
14555 compute_window_start_on_continuation_line before forcing a window
14556 start.
14557
145582008-07-28 Jason Rumney <jasonr@gnu.org>
14559
14560 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
14561
14562 * w32term.c (w32_enable_unicode_output, cleartype_active):
14563 Remove obsolete display options.
14564 (x_draw_glyph_string_background): Don't use old cleartype_active
14565 workaround.
14566 (w32_initialize): Remove cleartype_active initialization.
14567 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
14568
145692008-07-28 Andreas Schwab <schwab@suse.de>
14570
14571 * lisp.h (init_weak_hash_tables, syms_of_font)
14572 (xd_read_queued_messages, syms_of_dbusbind): Declare.
14573 (remove_hash_entry): Don't declare.
14574 * eval.c (maybe_call_debugger): Make static and move before use.
14575 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
14576 * xdisp.c: Include "gtkutil.h" if USE_GTK.
14577 * xterm.h (x_set_frame_alpha): Declare.
14578
145792008-07-28 Jan Djärv <jan.h.d@swipnet.se>
14580
14581 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
14582 (create_menus): Connect selection-done to menu_nav_ended.
14583
145842008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
14585
14586 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
14587 Set Vx_resource_name to a fallback. Replace read of 'buffered'
14588 parameter with read of 'alpha' one.
14589 (Qns_frame_parameter): Remove.
5582fbc7 14590 * nsselect.m (selection-coding-system)
aac0c6e3
MR
14591 (next-selection-coding-system, Vselection_coding_system)
14592 (Vnext_selection_coding_system): Drop.
14593
145942008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
14595
14596 * nsfns.m (do-applescript, do_applescript): Rename to
14597 ns-do-applescript, ns_do_applescript, and move within file.
14598
145992008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
14600
14601 Remove support for Mac Carbon.
14602 * mactoolbox.c:
14603 * macterm.h:
14604 * macterm.c:
14605 * macselect.c:
14606 * macmenu.c:
14607 * macgui.h:
14608 * macfns.c:
14609 * mac.c: Remove file.
14610 * s/darwin.h:
14611 * m/intel386.h:
14612 * xfaces.c:
14613 * xdisp.c:
14614 * window.c:
14615 * tparam.c:
14616 * termhooks.h:
14617 * termcap.c:
14618 * term.c:
14619 * syssignal.h:
14620 * sysselect.h:
14621 * sysdep.c:
14622 * process.c:
14623 * lread.c:
14624 * lisp.h:
14625 * keyboard.c:
14626 * image.c:
14627 * fringe.c:
14628 * frame.h:
14629 * frame.c:
14630 * fontset.c:
14631 * font.h:
14632 * font.c:
14633 * fns.c:
14634 * fileio.c:
14635 * emacs.c:
14636 * dispnew.c:
14637 * dispextern.h:
14638 * config.in:
14639 * atimer.c:
2ae37cf0 14640 * Makefile.in: Remove code for Carbon.
aac0c6e3 14641
f0131492 146422008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
14643
14644 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
14645
146462008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14647
14648 * macterm.h (kCGBitmapByteOrder32Host): New define for
14649 non-universal SDKs.
14650
14651 * image.c (mac_create_cg_image_from_image, image_load_image_io)
14652 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
14653
14654 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
14655 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
14656
146572008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
14658
14659 * w32inevt.c: Include dispextern.h.
14660
146612008-07-26 Andreas Schwab <schwab@suse.de>
14662
14663 * print.c (print_object): Fix off-by-one in last change.
14664
146652008-07-25 Juanma Barranquero <lekktu@gmail.com>
14666
14667 * term.c (syms_of_term): Don't initialize default_orig_pair,
14668 default_set_foreground and default_set_background on Windows.
14669
146702008-07-25 Jason Rumney <jasonr@gnu.org>
14671
14672 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
14673 ScriptItemize. Clean up return value checking. Remove unused
14674 variables.
14675 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
14676 shaping engine.
14677
14678 * w32font.c (w32font_has_char): Handle the case where we can't
14679 determine the script for a character.
14680
146812008-07-25 Chong Yidong <cyd@stupidchicken.com>
14682
14683 * term.c (syms_of_term): Initialize default_orig_pair,
14684 default_set_foreground, and default_set_background.
14685
14686 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
14687 clash (bug#86).
14688 (getloadavg): Callers changed.
14689
14690 * image.c (svg_load_image): Fix last change.
14691 (svg_load_image): Use rsvg_handle_get_dimensions to check that
14692 image size is valid. Use g_object_unref instead of deprecated
14693 rsvg_handle_free to free rsvg handle.
14694 (x_from_xcolors): Don't initialize pixmap (silence compiler).
14695
146962008-07-25 Jason Rumney <jasonr@gnu.org>
14697
14698 * w32font.c (w32font_encode_char): Encode characters outside BMP as
14699 surrogates before looking up glyph index.
14700 (w32font_text_extents): Encode as surrogates if falling back to
14701 functions that need UTF-16 wide chars.
14702
14703 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
14704 BMP as surrogates before looking up glyph index.
14705
147062008-07-25 Chong Yidong <cyd@stupidchicken.com>
14707
14708 * image.c (svg_load_image): Check for failure in return value of
14709 rsvg_handle_get_pixbuf. Free rsvg handle when done.
14710
147112008-07-25 Jason Rumney <jasonr@gnu.org>
14712
14713 * w32font.c (Fx_select_font): Reverse sense of second arg.
14714
147152008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
14716
14717 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
14718 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
14719
14720 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
14721 (PURESIZE): Use it.
14722
147232008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
14724
14725 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
14726 * m/alpha.h (TEXT_END):
14727 * m/ibmrs6000.h (TEXT_END):
14728 * m/macppc.h (TEXT_END):
14729 * s/darwin.h (TEXT_END):
14730 * s/msdos.h (TEXT_END): Remove, unused.
14731 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
14732 * s/cygwin.h: Remove comment.
14733
14734 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
14735 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
14736 * m/intel386.h (DOT_GLOBAL_START):
14737 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
14738 (USG): Remove, file not used on USG platforms.
14739
14740 * Makefile.in (HAVE_X11): Remove empty #else.
14741
147422008-07-24 Andreas Schwab <schwab@suse.de>
14743
14744 * fileio.c (Finsert_file_contents): Properly adjust undo list
14745 after format conversion.
14746
147472008-07-24 Jan Djärv <jan.h.d@swipnet.se>
14748
14749 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
14750 (menu_nav_ended): Remove.
14751 (create_menus): Remove signal connect for menu_nav_ended.
14752 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
14753 create_menus.
14754 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
14755
147562008-07-23 Jason Rumney <jasonr@gnu.org>
14757
14758 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
14759 with opened font.
14760 (w32font_open): Set font type to gdi.
14761
14762 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
14763
147642008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
14765
14766 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
14767 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
14768 defines it.
14769 * unexec.c (ADDR_CORRECT): Define unconditionally.
14770
14771 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
14772
14773 * unexec.c: Remove code depending on !COFF and USG, the file is
14774 not used for such systems.
14775
14776 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
14777 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
14778 (LD_SWITCH_SYSTEM_1): Remove, update users.
14779
14780 * s/darwin.h (DATA_END):
14781 * m/intel386.h (DATA_END):
14782 * m/ibmrs6000.h (DATA_END):
14783 * m/alpha.h (DATA_END): Remove, unused.
14784
14785 * config.in: Regenerate.
14786 * s/ms-w32.h (subprocesses): Define unconditionally.
14787 * s/template.h (subprocesses): Update comment.
14788 * s/vms.h (subprocesses):
14789 * s/usg5-4.h (subprocesses):
14790 * s/hpux10-20.h (subprocesses):
14791 * s/gnu-linux.h (subprocesses):
14792 * s/cygwin.h (subprocesses):
14793 * s/bsd-common.h (subprocesses):
14794 * s/aix4-2.h (subprocesses):
14795 * s/darwin.h (subprocesses): Do not define, defined by default now.
14796
14797 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
14798 Remove all references.
14799 (temacs): Add GNUstep specific ld flags.
14800
14801 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
14802 similarly to what X does.
14803
148042008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
14805
14806 * nsfns.m (x-list-fonts): Remove.
14807 (syms_of_nsfns): Drop the x-list-fonts declaration.
14808 * nsterm.m: Get rid of remaining "//" comments.
14809
148102008-07-22 Chong Yidong <cyd@stupidchicken.com>
14811
14812 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
14813
14814 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
14815 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
14816 (Fns_own_selection_internal, Fx_disown_selection_internal)
14817 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
14818
14819 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
14820 ... */' style of docstrings. Doc fixes.
14821
148222008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
14823
14824 * terminfo.c (UP, BC, PC): Undo previous change.
14825
14826 * nsfns.m: Rename ns prefixed functions/variables to the
14827 corresponding x versions. Update references.
14828
148292008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
14830
14831 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
14832
148332008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
14834
14835 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
14836 Remove forwarding functions.
14837 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
14838 non-static.
14839 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
14840 non-static.
14841 (ns_frame_parm_handlers): Use the new names.
14842 (syms_of_nsfns): Move to the end of file.
14843
14844 * nsterm.m (syms_of_nsterm): Move to the end of file.
14845
14846 * dispnew.c (init_display): Remove code for X10.
14847
148482008-07-22 Jason Rumney <jasonr@gnu.org>
14849
14850 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
14851 bare drive.
14852
148532008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
14854
14855 * nsterm.m (syms_of_nsterm): Remove debugging println.
14856
148572008-07-22 David Reitter <david.reitter@gmail.com>
14858
14859 * nsfns.m (do_applescript, F_do_applescript): NS version of the
14860 Carbon implementation of the same functionality: execute arbitrary
14861 AppleScript code.
14862
148632008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
14864
14865 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
14866 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
14867 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
14868 (Fx_display_mm_height, Fx_display_mm_width)
14869 (Fx_display_backing_store, Fx_display_visual_class)
14870 (Fx_display_save_under, Fx_open_connection)
14871 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
14872 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
14873 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
14874 (Fx_display_pixel_width, Fx_display_pixel_height)
14875 (Fx_display_usable_bounds, Fx_display_planes)
14876 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
14877 ... */' style of docstrings.
14878
148792008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
14880
14881 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
14882 on this platform.
14883 (mips):
14884 * m/iris4d.h (mips): Do not define.
14885 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
14886
14887 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
14888
14889 * image.c:
14890 * nsfns.m:
14891 * nsselect.m:
14892 * nsterm.h:
14893 * nsterm.m: Rename ns prefixed functions/variables to the
14894 corresponding x versions. Update references.
14895
14896 * m/ibms390x.h (NO_REMAP): Do not undefine.
14897
14898 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
14899
149002008-07-21 Chong Yidong <cyd@stupidchicken.com>
14901
14902 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
14903 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
14904 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
14905 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
14906 (Fns_display_mm_height, Fns_display_mm_width)
14907 (Fns_display_backing_store, Fns_display_visual_class)
14908 (Fns_display_save_under, Fns_open_connection)
14909 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
14910 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
14911 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
14912 (Fns_display_pixel_width, Fns_display_pixel_height)
14913 (Fns_display_usable_bounds, Fx_display_planes)
14914 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
14915
149162008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
14917
14918 * print.c (print_object): Check print_depth before searching for
14919 circularities.
14920
149212008-07-21 Michael Albinus <michael.albinus@gmx.de>
14922
14923 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
14924 only sprintf.
14925
149262008-07-21 Kenichi Handa <handa@m17n.org>
14927
14928 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
14929
149302008-07-20 Andreas Schwab <schwab@suse.de>
14931
14932 * syntax.c (find_start_pos, find_start_value)
14933 (find_start_value_byte, find_start_begv, find_defun_start)
14934 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
14935
149362008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
14937
14938 * s/sol2-3.h: Insert contents of s/sol2.h.
14939 (LD_SWITCH_SYSTEM): Remove redundant definition.
14940 * s/sol2.h: Remove, unused.
14941
149422008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14943
14944 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
14945
149462008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14947
14948 * Makefile.in (ns_appdir): Fix typo in find command.
14949
149502008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
14951
14952 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
14953
14954 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
14955 added not supported anymore.
14956
14957 * s/usg5-4-2.h (LIBS_SYSTEM):
14958 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
14959
14960 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
14961 * s/lynxos.h (GETPGRP_NO_ARG):
14962 * s/hpux10-20.h (NO_SIOCTL_H):
14963 * s/gnu.h (GETPGRP_NO_ARG):
14964 * s/gnu-linux.h (NO_SIOCTL_H):
14965 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
14966 * s/cygwin.h (GETPGRP_NO_ARG):
14967 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
14968 (C_DEBUG_SWITCH): Remove duplicate definition.
14969
14970 * m/ibms390.h: Remove boilerplate comments.
14971
14972 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
14973
14974 * process.c (HAVE_SERIAL): Consolidate ifdefs.
14975 (wait_reading_process_output): Remove code for SunOS, platform not
14976 supported anymore. Use SOLARIS2 instead of sun.
14977
149782008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14979
14980 * font.c (font_open_by_name): Under NS, default lface height to zero.
14981 (font_open_for_lface): Under NS, set size based on frame fontsize.
14982 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
14983 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
14984
149852008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14986
14987 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
14988 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
14989 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
14990 YES/NO.
14991 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
14992 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
14993 * Makefile.in (clean): Clear out build destination dir.
14994
149952008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14996
14997 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
14998 xterm, xselect.
14999 * lisp.h: Remove declaration of hash_remove.
15000 * nsgui.h: Remove redefinitions of hash_remove.
15001 * fns.c (hash_remove): Rename to hash_remove_from_table.
15002
150032008-07-19 Seiji Zenitani <zenitani@mac.com>
15004
15005 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
15006 strdup() the family UTF8String before modifying it.
15007
150082008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
15009
15010 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
15011 NS_FACE_BACKGROUND with 0 instead of nil.
15012 * nsfont.m (nsfont_draw): Same.
15013
150142008-07-19 Chong Yidong <cyd@stupidchicken.com>
15015
15016 * nsfns.m (ns_set_background_color): Fix crash.
15017
150182008-07-18 Chong Yidong <cyd@stupidchicken.com>
15019
15020 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
15021
150222008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
15023
15024 * puresize.h (BASE_PURESIZE): Increase to 1240000.
15025
150262008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15027
15028 * gtkutil.c: Include <config.h> instead of "config.h".
15029
15030 * lisp.h (Foverlay_buffer): Add EXFUN.
15031
15032 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
15033 child process to complete child_setup. Undo 2005-09-21 change.
15034
15035 * s/darwin.h: Mention setsid after vfork.
15036
150372008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15038
15039 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
15040 Depend on macgui.h.
15041
15042 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
15043 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
15044
15045 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
15046 and f19.
15047 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
15048
15049 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
15050 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
15051 Remove enumerators.
15052
15053 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
15054 Check if FACE_FROM_ID returns NULL.
15055
150562008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
15057
15058 * w32inevt.c (change_frame_size): Remove extern declaration.
15059 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
15060 change_frame_size.
15061
150622008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
15063
15064 * getloadavg.c: Revert last change (2008-07-15).
15065
150662008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
15067
15068 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 15069 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
15070 from configure.
15071
150722008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
15073
15074 * s/sol2.h:
15075 * s/sol2-4.h: Reorganize conditionals.
15076
15077 * ecrt0.c: Remove code depending on m68000, not used anymore.
15078
15079 * fns.c (hash_remove): Make static.
15080 * lisp.h (hash_remove): Don't prototype.
15081
15082 * m/ibmrs6000.h:
15083 * m/ibms390x.h:
15084 * m/macppc.h: Remove boilerplate comments.
15085
15086 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
15087 Solaris, which does not need them.
15088
15089 * m/vax.h: Remove comments about unsupported systems.
15090
15091 * s/darwin.h: Reorganize ifdefs.
15092
150932008-07-17 Andreas Schwab <schwab@suse.de>
15094
15095 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
15096
150972008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
15098
15099 Use SDATA. Follow coding convention of placing operators at
15100 beginning of next line rather than end of previous line, and placing
15101 spaces around infix operators.
15102
15103 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
15104 in case it was defined already.
15105 USE @GNUSTEP_MAKEFILES@ rather than envvars.
15106 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
15107 ns_default.
15108 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
15109 Lisp_Objects.
15110 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
15111 (ns_defined_color, ns_color_to_lisp): Declare.
15112 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
15113 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
15114 it's accepted even with USE_LISP_UNION_TYPE.
15115 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
15116 (update_frame_tool_bar): Remove apparently obsolete tests for
15117 non-integerness of f->tool_bar_lines.
15118 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
15119 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
15120 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
15121 (nsfont_open): Don't confuse NULL for Qnil.
15122 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
15123 * menu.h (find_and_call_menu_selection):
15124 * menu.c (find_and_call_menu_selection): Use just int for vector size.
15125 (find_and_return_menu_selection): Always return something.
15126 * frame.h: Include dispextern.h for Display_Info.
15127 (display_x_get_resource): Declare.
15128
151292008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
15130
15131 * syntax.c: Remove stdio.h include accidentally introduced in
15132 Emacs.app commit.
15133 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
15134 NS_IMPL_COCOA.
15135 * keyboard.c (handle_async_input, input_available_signal): Remove
15136 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
15137
151382008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
15139
15140 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
15141 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
15142 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
15143 Use SDATA.
15144
15145 * keymap.c: Remove all NS-specific code.
15146 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
15147 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
15148 where_is_preferred_modifier, return a different value depending on how
15149 preferred is the binding.
15150 (where_is_internal): Adjust accordingly.
15151 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
15152 Adjust to new preferred_sequence_p.
15153 (syms_of_keymap): Declare `where-is-preferred-modifier'.
15154 * keyboard.c (parse_solitary_modifier): Not static any more.
15155 * keyboard.h (parse_solitary_modifier): Declare.
15156
151572008-07-16 Andreas Schwab <schwab@suse.de>
15158
15159 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
15160 of easymenu.
15161
151622008-07-16 Chong Yidong <cyd@stupidchicken.com>
15163
15164 * xdisp.c (move_it_in_display_line): Account for word wrap, so
15165 that we don't move off the line.
15166
151672008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
15168
15169 * keyboard.c (Qsuper): Remove.
15170 (parse_menu_item): Don't call where_is_internal specially for NS.
15171
151722008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
15173
15174 * s/gnu-linux.h: Remove boilerplate comments.
15175
15176 * m/alpha.h (__ELF__): Consolidate conditions.
15177
15178 * m/m68k.h (linux): Use GNU_LINUX instead.
15179 Remove boilerplate comments.
15180
15181 * m/intel386.h: Undo refactoring from previous change.
15182 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
15183 too, remove dead code.
15184 (linux): Use GNU_LINUX instead.
15185
151862008-07-16 Jason Rumney <jasonr@gnu.org>
15187
15188 * w32gui.h: Repeat 26 June changes lost by last change.
15189
151902008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
15191
15192 * systty.h: Remove code for Aix on 386, unsupported platform.
15193
15194 * s/ms-w32.h: Remove boilerplate comments.
15195 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
15196
15197 * s/gnu-linux.h (TERM): Remove support.
15198 (HAVE_SYSVIPC): Remove, unused.
15199 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
15200 for this system.
15201
15202 * process.c: Remove support for IRIS, unused.
15203 Remove support for TERM, not relevant anymore.
15204
15205 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
15206 used with the definition.
15207
15208 * s/aix4-2.h (static): Do not undef.
15209
15210 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
15211 only used on Aix.
15212 (HAVE_SYSVIPC): Remove, unused.
15213
15214 * m/hp800.h (CANNOT_DUMP): Do not undef.
15215
15216 * m/alpha.h: Fix comment.
15217
15218 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
15219 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
15220 used by this configuration.
15221 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
15222 * unexec.c: Remove code depending on HPUX and
15223 USG_SHARED_LIBRARIES, not used with this file. Remove code
15224 depending on IRIS, unused. Remove if 0-ed code.
15225
15226 * s/template.h: Remove comments about static.
15227
15228 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
15229 Remove if 0-ed code.
15230 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
15231 were the same as the default.
15232 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
15233 Remove boilerplate comments.
15234 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
15235 (HAVE_SYSVIPC): Remove, unused.
15236 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
15237
15238 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
15239 Remove boilerplate comments.
15240 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
15241 Remove boilerplate comments.
15242 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
15243 Remove boilerplate comments.
15244 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
15245
15246 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
15247 USG systems which do not use DATA_SEG_BITS.
15248 Refactor code. Remove boilerplate comments.
15249
15250 * m/ibms390.h:
15251 * m/m68k.h:
15252 * s/bsd-common.h:
15253 * s/cygwin.h:
15254 * s/darwin.h:
15255 * s/freebsd.h:
15256 * s/gnu.h:
15257 * s/msdos.h: Remove boilerplate comments.
15258
15259 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 15260 do not use this file.
aac0c6e3
MR
15261 (IRIS_4D): Remove, unused.
15262
15263 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 15264 do not use this file.
aac0c6e3
MR
15265 (SIGN_EXTEND_CHAR):
15266 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
15267 * unexmips.c: Remove file, unused.
15268
15269 * editfns.c (Fuser_full_name): Replace the only use of
15270 USER_FULL_NAME with its value.
15271 * config.in: Regenerate.
15272
152732008-07-16 David Reitter <david.reitter@gmail.com>
15274
15275 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
15276 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
15277
152782008-07-16 Glenn Morris <rgm@gnu.org>
15279
15280 * emacs.c (system-type): Doc fix.
15281
152822008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
15283
15284 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
15285 If the cache doesn't work, let's fix it, rather than work around it.
15286
152872008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
15288
15289 * Makefile.in: Correct additions for nsfont.o in last commit.
15290 * nsfont.m: New file (forgot last commit).
15291
152922008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
15293
15294 * callproc.c (set_initial_environment): Initialize
15295 Vprocess_environment under CANNOT_DUMP (fixes crash when
15296 batch-compiling for bootstrap).
15297
152982008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 15299 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 15300
c4cc8b9a
JB
15301 * frame.c (make_initial_frame): Call init_frame_faces(f) in
15302 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
15303
153042008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
15305
15306 Changes and additions for NeXTstep windowing system (Cocoa and
15307 GNUstep) support.
15308
15309 * Makefile.in:
15310 * config.in: Support defines and build commands for NS port.
15311 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
15312 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
15313 * dispextern.h: Include nsgui.h and add needed typedefs under NS
15314 windowing.
15315 (struct face): Add synth_ital field.
15316 * dispnew.c: Include nsterm.h when compiling under NS windowing.
15317 (init_display): Initialize Vinitial_window_system to "ns" when so
15318 compiled.
15319 * emacs.c: Include GSConfig.h when compiling under GNUstep.
15320 (display_arg): Use under NS.
15321 (main): Under NS, allocate autorelease pool and handle command line
15322 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
15323 (standard_args): Add NS-specific args.
15324 (shut_down_emacs): Shut down NS terminal if compiled under NS.
15325 * font.c (DEFAULT_ENCODING): New variable.
15326 (font_find_for_lface): Use it.
15327 (syms_of_font): Load syms_of_nsfont under NS.
15328 * font.h: Declare nsfont_driver when compiled under NS.
15329 * fontset.c: When compiling under NS, include nsterm.h.
15330 (fontset_from_font): Autoconstruct fontset under NS.
15331 * frame.c (various): Under NS, include nsterm.h, add Qns window system
15332 symbol, document and use it.
15333 (do_switch_frame): When for_deletion under Cocoa, add
15334 Fraise_frame(Qnil).
15335 (x_set_frame_parameters): Ensure font attribute changes are picked up.
15336 (x_get_arg): Allow "yes" and "no" as boolean values.
15337 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
15338 Qright under Cocoa.
15339 (focus-follows-mouse): Default to 0 under NS.
15340 * frame.h (enum output_method): Add output_ns.
15341 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
15342 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
15343 (FRAME_WINDOW_P): NS-specific definition.
15344 * fringe.c (max_used_fringe_bitmap): Make public.
15345 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
15346 (getloadavg): Use NeXT code under descendant OS's.
15347 * image.c (includes and header section, x_create_bitmap_from_data)
15348 (x_create_bitmap_from_file, free_bitmap_record, image_background)
15349 (image_background_transparent, x_clear_image_1)
15350 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
15351 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
15352 (x_to_xcolors, x_from_xcolors, x_disable_image)
15353 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
15354 other GUIs, including XPM support using code originally written for
15355 Carbon GUI.
15356 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
15357 using NS API.
15358 (image_ascent): Use font metrics macros instead of direct struct field
15359 access.
15360 * keyboard.c (includes): Add nsterm.h when compiling under NS.
15361 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
15362 Also, handle NS as GTK for menu bar purposes.
15363 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
15364 toolkit where they differ.
15365 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
15366 use cachelist, still needed under NS.
15367 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
15368 (struct widget_value): Define it here for menu.c.
15369 * keymap.c (includes): Include modifier internals.
15370 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
15371 NS.
15372 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
15373 support for preferring sequences using certain modifiers, specified by
15374 the FIRSTONLY argument.
15375 * lisp.h (hash_remove): Rename to avoid name clash when compiling
15376 under NS GNUstep implementation.
15377 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
15378 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
15379 * menu.c: Include nsterm.h under NS.
15380 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
15381 (free_menubar_widget_tree_value, update_submenu_strings)
15382 (find_and_call_menu_selection): Treat NS as X and NT.
15383 (find_and_return_menu_selection): New function, used for popup menus.
15384 * nsgui.h:
15385 * nsterm.h:
15386 * nsfns.m:
15387 * nsimage.m:
15388 * nsmenu.m:
15389 * nsselect.m:
15390 * nsterm.m: New files.
15391 * process.c (wait_reading_process_output): Under NS, call ns_select()
15392 instead of plain select().
15393 * syntax.c (char_quoted): Under NS, avoid a crash when called near
15394 beginning of buffer.
15395 * sysselect.h (init_process): Rename when compiling under Cocoa to
15396 avoid name conflict.
15397 * termhooks.h (display_info): Add ns_display_info to union.
15398 * terminal.c (Fterminal_live_p): Add ns to terminal types.
15399 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
15400 COCOA environment.
15401 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
15402 unexec() signature. (Note, this will dump, but the resulting file
15403 crashes; unexosx is used instead; keeping around for reference and
15404 possible aid in getting dump working under GNUstep.)
15405 * w32gui.h (button_type, widget_value): Remove definitions (now in
15406 keyboard.h).
15407 * window.c: Include nsterm.h when compiling under NS.
15408 * xdisp.c (includes): Include nsterm.h when compiling under NS.
15409 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
15410 other GUI windowing systems.
15411 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
15412 GTK.
15413 (x_consider_frame_title): Under NS, set icon type and frame
15414 modified-state indicator; use ns_set_name_as_filename() when using
15415 formatted title.
15416 (update_window_cursor): Make public when compiling under NS.
15417 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
15418 (hourglass_atimer, Vhourglass_delay
15419 * xfaces.c (header section, init_frame_faces, clear_font_table)
15420 (defined_color, unload_color, x_face_list_fonts)
15421 (prepare_face_for_display): Add NS support parallel to other GUIs.
15422 Emulate GCs like other non-X GUIs.
15423 (split_font_name): Don't lowercase font name under NS.
15424 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
15425 under NS.
15426 * s/darwin.h: Add support for compilation under NS.
15427
154282008-07-15 Jason Rumney <jasonr@gnu.org>
15429
15430 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
15431 (w32_show_hourglass): Rename from show_hourglass.
15432 (w32_hide_hourglass): Rename from hide_hourglass.
15433 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
15434 (Vhourglass_delay): Declare extern.
15435 (hourglass_started): Remove.
15436
15437 * xdisp.c (Vhourglass_delay): Remove static.
15438 (hourglass_started, start_hourglass, cancel_hourglass):
15439 Don't include these versions on WINDOWSNT.
15440
154412008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
15442
15443 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
15444 variables (formerly in xfns.c).
15445 (show_hourglass, hide_hourglass): New prototypes (same).
15446 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
15447 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
15448 in xfns.c).
15449 (syms_of_xdisp): Declare/initialize display-hourglass,
15450 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
15451 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
15452 formerly in xfns.c.
15453 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
15454 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
15455 (start_hourglass, cancel_hourglass): Remove.
15456 (show_hourglass, hide_hourglass): Remove prototypes and static
15457 modifiers.
15458 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
15459 hourglass_atimer, hourglass_shown_p declaration/initialization.
15460 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
15461 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
15462 (start_hourglass, cancel_hourglass): Remove.
15463 (show_hourglass, hide_hourglass): Remove prototypes and static
15464 modifiers.
15465 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
15466 hourglass_atimer, hourglass_shown_p declaration/initialization.
15467 * w32fns.c (display_hourglass_p, Vhourglass_delay)
15468 (DEFAULT_HOURGLASS_DELAY): Remove.
15469 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
15470 hourglass_shown_p declaration/initialization.
15471
154722008-07-14 Jason Rumney <jasonr@gnu.org>
15473
15474 * w32fns.c (w32_get_arg): Remove wrapper function.
15475 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
15476 directly.
15477 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
15478
154792008-07-14 Kenichi Handa <handa@m17n.org>
15480
15481 * xfont.c (xfont_open): Add workaround for X's bug.
15482
154832008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
15484
15485 * fontset.c: Include <stdio.h> unconditionally.
15486
154872008-07-13 Michael Albinus <michael.albinus@gmx.de>
15488
15489 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
15490 for filtering.
15491
154922008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
15493
15494 * s/vms.h: Use __GNUC__ instead of _GNUC_.
15495
15496 * m/macppc.h:
15497 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
15498
c4cc8b9a 15499 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
15500 (SPECIAL_EMACS_INT):
15501 * m/ia64.h (SPECIAL_EMACS_INT):
15502 * m/amdx86-64.h (SPECIAL_EMACS_INT):
15503 * s/gnu.h (NLIST_STRUCT):
15504 * s/aix4-2.h (X11R5_INHIBIT_I18N):
15505 * s/gnu-linux.h (LINUX):
15506 * s/msdos.h (HAVE_FACES):
15507 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
15508
15509 * systty.h:
15510 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
15511 anymore.
15512
155132008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
15514
15515 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
15516 always defined as int.
15517
15518 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
15519 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
15520 * s/gnu-linux.h (HAVE_WAIT_HEADER):
15521 * s/freebsd.h (HAVE_WAIT_HEADER):
15522 * s/bsd-common.h (HAVE_UNION_WAIT):
15523 * s/aix4-2.h (HAVE_WAIT_HEADER):
15524 * m/mips.h (HAVE_UNION_WAIT):
15525 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
15526 (COFF, static): Do not define, they are undefined later in the file.
15527
15528 * process.c (update_status): Don't use a union.
15529 (status_convert):
15530 (sigchld_handler): Use int instead of WAITTYPE.
15531
155322008-07-12 Chong Yidong <cyd@stupidchicken.com>
15533
15534 * indent.c (Fvertical_motion): Restore hscroll before moving to
15535 goal column.
15536
155372008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
15538
15539 * lisp.h: Remove left over code.
15540
155412008-07-11 Andreas Schwab <schwab@suse.de>
15542
15543 * lisp.h: Fix logic in last change.
15544
15545 * menu.h: New file.
15546 * menu.c: Include it.
15547 * xmenu.c: Likewise.
15548 * Makefile.in: Update dependencies.
15549
155502008-07-11 Kenichi Handa <handa@m17n.org>
15551
15552 * fontset.c (fontset_from_font): Cancel the previous change.
15553
155542008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
15555
15556 * lisp.h:
15557 * w32heap.c:
15558 * emacs.c:
15559 * alloc.c: Replace all references of NO_UNION_TYPE with
15560 USE_LISP_UNION_TYPE.
15561
15562 * m/xtensa.h (NO_UNION_TYPE):
15563 * m/vax.h (NO_UNION_TYPE):
15564 * m/template.h (NO_UNION_TYPE):
15565 * m/sparc.h (NO_UNION_TYPE):
15566 * m/mips.h (NO_UNION_TYPE):
15567 * m/macppc.h (NO_UNION_TYPE):
15568 * m/m68k.h (NO_UNION_TYPE):
15569 * m/iris4d.h (NO_UNION_TYPE):
15570 * m/intel386.h (NO_UNION_TYPE):
15571 * m/ibms390x.h (NO_UNION_TYPE):
15572 * m/ibms390.h (NO_UNION_TYPE):
15573 * m/ibmrs6000.h (NO_UNION_TYPE):
15574 * m/ia64.h (NO_UNION_TYPE):
15575 * m/hp800.h (NO_UNION_TYPE):
15576 * m/arm.h (NO_UNION_TYPE):
15577 * m/amdx86-64.h (NO_UNION_TYPE):
15578 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
15579 defining it the same.
15580
155812008-07-10 Chong Yidong <cyd@stupidchicken.com>
15582
15583 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
15584
155852008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
15586
15587 * fileio.c:
50426a04 15588 * sysdep.c:
aac0c6e3
MR
15589 * systty.h:
15590 * m/ibmrs6000.h:
15591 * m/iris4d.h:
15592 * s/aix4-2.h:
15593 * s/freebsd.h:
15594 * s/gnu-linux.h:
15595 * s/hpux10-20.h:
15596 * s/hpux11.h:
15597 * s/netbsd.h:
15598 * s/sol2-3.h:
15599 * s/sol2-4.h:
15600 * s/sol2.h:
15601 * s/usg5-4.h:
15602 * s/vms.h: Remove references to unused variables.
15603
156042008-07-10 Andreas Schwab <schwab@suse.de>
15605
15606 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
15607 pattern before matching the generic family.
15608
156092008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
15610
15611 * unexec.c:
15612 * s/vms.h:
15613 * s/usg5-4-2.h:
15614 * s/sol2-5.h:
15615 * s/freebsd.h:
15616 * s/darwin.h: Remove dead code.
15617
15618 * m/template.h:
15619 * m/sparc.h:
15620 * m/mips.h:
15621 * m/m68k.h:
15622 * m/iris4d.h:
15623 * m/intel386.h:
15624 * m/ibms390x.h:
15625 * m/ibms390.h:
15626 * m/ia64.h:
15627 * m/hp800.h:
15628 * m/arm.h:
15629 * m/amdx86-64.h: Remove dead code and references to unused
15630 and compiler defined symbols.
15631
15632 * unexmips.c:
15633 * unexelf.c: Remove references to desupported systems.
15634
15635 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
15636
15637 * m/powermac.h: Remove boilerplate comments.
15638 (NO_REMAP): Remove unused definition.
15639
15640 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
15641 define them.
15642
156432008-07-10 Kenichi Handa <handa@m17n.org>
15644
15645 * xfont.c (xfont_open): Log the reason of failure.
15646
156472008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
15648
15649 * fontset.c (fontset_get_font_group):
15650 * font.c (font_check_otf): Specify argument types.
15651
156522008-07-09 Kenichi Handa <handa@m17n.org>
15653
15654 * coding.c (detect_coding_utf_8): Set detect_info->found only when
15655 non-ASCII char is found.
15656
15657 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
15658 (reorder_font_vector): Change the arg preferred_family to font.
15659 Prefer the spec matching with font.
15660 (fontset_get_font_group): New function.
15661 (fontset_find_font): Change the format of an element of a realized
15662 fontset. Use fontset_get_font_group.
15663 (fontset_font): Try the current fontset, the default fontset, the
15664 fallbacks of the current fontset, and the fallbacks of the default
15665 fontset in this order.
15666 (face_for_char): Delete the shortcut to use the current font.
15667 (fontset_from_font): Don't set fonts for Latin in the fontset.
15668
15669 * font.h (font_make_object, font_match_p): Adjust prototypes.
15670
15671 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
15672
15673 * font.c (font_make_object): New arg entity and pixelsize.
15674 (font_check_otf_features, font_check_otf): New functions.
15675 (font_match_p): Check :lang, :script, and :otf properties.
15676
15677 * xfont.c (xfont_open): Adjust it for the change of
15678 font_make_object.
15679 (xfont_text_extents): Fix initial setting of metrics.
15680
15681 * ftfont.c (struct ftfont_info): New member index, delete member
15682 fc_charset_idx. Make the member order compatible with struct
15683 xftfont_info.
15684 (fc_charset_table): Change charset names to registry names.
15685 (ftfont_pattern_entity): Delete the args registry and
15686 fc_charset_idx. Change the value of :font-entity property
15687 to (FONTNAME . INDEX). Always set :registry property to
15688 `iso10646-1'.
15689 (struct ftfont_cache_data): New struct.
15690 (ftfont_lookup_cache): New arg for_face.
15691 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
15692 (ftfont_driver): Set the member otf_capability.
15693 (ftfont_get_charset): Adjust it for the change of
15694 fc_charset_table.
15695 (OTF_TAG_SYM): New macro.
15696 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
15697 for the change of fc_charset_table.
15698 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
15699 ftfont_pattern_entity. Add FC_INDEX to objset.
15700 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
15701 and ftfont_pattern_entity.
15702 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
15703 font_make_object, struct ftfont_info.
15704 (ftfont_has_char): Use ftfont_get_fc_charset.
15705 (ftfont_otf_features, ftfont_otf_capability): New functions.
15706 (ftfont_shape): Use ftfont_get_otf.
15707 (ftfont_text_extents): Fix initial setting of metrics.
15708
15709 * xftfont.c (struct xftfont_info): New member ft_size. Make the
15710 member order compatible with struct ftfont_info.
15711 (xftfont_open): Add FC_CHARSET to the pattern. Set
15712 xftfont_info->ft_size. Don't unlock the face. Check BDF
15713 properties if appropriate.
15714 (xftfont_close): Unlock the face.
15715 (xftfont_anchor_point, xftfont_shape): Deleted.
15716 (syms_of_xftfont): Don't set members anchor_point and shape of
15717 xftfont_driver.
15718
15719 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
15720 font_make_object.
15721
15722 * w32font.c (w32font_open): Adjust it for the change of
15723 font_make_object.
15724 (w32font_open_internal): Don't set properties of font_object here.
15725
157262008-07-08 Chong Yidong <cyd@stupidchicken.com>
15727
15728 * macfns.c (x_create_tip_frame):
15729 * w32fns.c (x_create_tip_frame):
15730 * xfns.c (x_create_tip_frame): Pass parameter argument to
15731 face-set-after-frame-default.
15732
15733 * xfaces.c (Finternal_merge_in_global_face): Save merged
15734 attributes for the default face back into the face vector.
15735
157362008-07-08 Andreas Schwab <schwab@suse.de>
15737
15738 * fontset.h: Declare fontset_from_font. Don't declare
15739 new_fontset_from_font and fontset_from_font_name.
15740 * xterm.c: Include "fontset.h".
15741 * Makefile.in (xterm.o): Update dependencies.
15742
157432008-07-08 Glenn Morris <rgm@gnu.org>
15744
15745 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
15746 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
15747
157482008-07-07 Chong Yidong <cyd@stupidchicken.com>
15749
15750 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
15751 (x_set_frame_parameters): Don't bind it.
15752
157532008-07-07 Juanma Barranquero <lekktu@gmail.com>
15754
15755 * w32fns.c (map_w32_filename): Declare extern.
15756
157572008-07-07 Jason Rumney <jasonr@gnu.org>
15758
15759 * w32term.c (WS_EX_LAYERED): Define if not already.
15760
157612008-07-06 Chong Yidong <cyd@stupidchicken.com>
15762
15763 * xfaces.c (set_font_frame_param): Don't try to set the font
15764 parameter if it is still unspecified in the lface.
15765
157662008-07-05 Chong Yidong <cyd@stupidchicken.com>
15767
15768 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
15769 face if it didn't already exist.
15770
15771 * xdisp.c (try_window_id): Give up if word-wrapping is on.
15772
157732008-07-05 Andreas Schwab <schwab@suse.de>
15774
15775 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
15776
157772008-07-05 Chong Yidong <cyd@stupidchicken.com>
15778
15779 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
15780 word-wrapping.
15781 (IT_DISPLAYING_WHITESPACE): New macro.
15782 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
15783 when word-wrapping. Simplify word-wrapping logic. Use correct
15784 pixel positions when saving copies of the iterator.
15785 (display_line): Use proper wrap point if the last character on a
15786 line was preceded by whitespace.
15787
157882008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
15789
15790 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
15791
157922008-07-04 Kenichi Handa <handa@m17n.org>
15793
15794 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
15795
15796 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
15797
157982008-07-02 Jason Rumney <jasonr@gnu.org>
15799
15800 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 15801 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
15802
15803 * xdisp.c (next_element_from_display_vector): Move assignment out
15804 of if statement.
15805
158062008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
15807
15808 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
15809
15810 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
15811 (syms_of_fileio): Initialize and export them.
15812 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
15813
15814 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
15815 (Fsystem_move_file_to_trash): New function.
15816 (syms_of_w32fns): Export it to lisp.
15817
158182008-07-01 Jason Rumney <jasonr@gnu.org>
15819
15820 * w32font.c (w32font_text_extents): Don't count overhang as part
15821 of width.
15822
158232008-06-30 Miles Bader <miles@gnu.org>
15824
15825 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
15826 Add `avoid_cursor_p' field.
15827
15828 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
15829 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
15830 (append_glyph, append_composite_glyph, produce_image_glyph)
15831 (append_stretch_glyph): Initialize avoid_cursor_p.
15832 (get_it_property): Rename from `get_line_height_property'.
15833 (x_produce_glyphs): Use get_it_property.
15834 (handle_line_prefix, push_display_prop): New functions.
15835 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
15836 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
15837 New variables.
15838 (syms_of_xdisp): Initialize them.
15839
158402008-06-30 Kenichi Handa <handa@m17n.org>
15841
15842 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
15843 XftDefaultSubstitute (they are called in XftFontMatch).
15844 (xftfont_open): Fix args to ftfont_font_format.
15845
15846 * ftfont.c (fc_charset_table): New member lang.
15847 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 15848 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
15849 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
15850 (ftfont_open): Fix args to ftfont_font_format.
15851 (ftfont_font_format): New arg filename.
15852
158532008-06-30 Chong Yidong <cyd@stupidchicken.com>
15854
15855 * xfaces.c (Finternal_merge_in_global_face): If default face was
15856 modified, realize it again. Update the font face attribute.
15857
158582008-06-29 Jason Rumney <jasonr@gnu.org>
15859
15860 * w32term.c (x_set_frame_alpha): Fix logic.
15861
158622008-06-29 Kenichi Handa <handa@m17n.org>
15863
15864 * fontset.c (Finternal_char_font): Return font-object instead of
15865 font-name.
15866
15867 * composite.c (get_composition_id): Fix the width calculation for TAB.
15868
158692008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
15870
15871 * indent.c (Fvertical_motion): Properly handle float column arg.
15872
158732008-06-28 Jason Rumney <jasonr@gnu.org>
15874
15875 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
15876 (pfnSetLayeredWindowAttributes): New function pointer.
15877 (w32_initialize): Initialize it when supported.
15878 (x_set_frame_alpha): New function.
15879
15880 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
15881 (w32_frame_parm_handlers): Set alpha handler.
15882
15883 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
15884
158852008-06-27 Jason Rumney <jasonr@gnu.org>
15886
15887 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
15888 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
15889 (w32_to_x_charset, x_to_w32_charset)
15890 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
15891 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
15892 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
15893 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
15894 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
15895 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
15896 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
15897 (Qw32_charset_unicode): Remove.
15898 (syms_of_w32fns): Update for above changes.
15899
15900 * w32font.c (w32_to_x_charset, x_to_w32_charset)
15901 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
15902 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
15903 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
15904 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
15905 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
15906 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
15907 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
15908 (syms_of_w32font): Update for above changes.
15909
159102008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
15911
15912 * s/usg5-4.h: Fix previous change: keep the correct branch of a
15913 removed #if.
15914 (USG_SHARED_LIBRARIES): Remove duplicate definition.
15915
159162008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 15917 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
15918
15919 * makefile.w32-in (LOCAL_FLAGS):
15920 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
15921
15922 * sysdep.c (_spawnlp, _getpid):
15923 Declare with explicit _cdecl instead of _CRTAPI1.
15924
15925 * editfns.c (Fget_internal_run_time):
15926 Check for WINDOWSNT with #ifdef, not #if.
15927
159282008-06-26 Jason Rumney <jasonr@gnu.org>
15929
15930 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
15931
15932 * w32term.c (x_draw_glyph_string_foreground)
15933 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
15934 Use FONT_HANDLE macro.
15935 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
15936
15937 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
15938 (uniscribe_encode_char): Use FONT_HANDLE macro.
15939
15940 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
15941 (w32font_text_extents): Use precast w32_font.
15942 (w32font_close): Free cached metrics.
15943 (w32font_open_internal): Allocate space for name on stack.
15944
159452008-06-26 Chong Yidong <cyd@stupidchicken.com>
15946
15947 * xdisp.c (extend_face_to_end_of_line): Fix last change.
15948
159492008-06-26 Jason Rumney <jasonr@gnu.org>
15950
15951 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
15952 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
15953
159542008-06-26 Juanma Barranquero <lekktu@gmail.com>
15955
15956 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
15957
159582008-06-26 Jason Rumney <jasonr@gnu.org>
15959
15960 * w32bdf.c, w32bdf.h: Remove obsolete files.
15961
15962 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
15963
15964 * w32gui.h: Don't include w32bdf.h.
15965 (XCharStruct, enum w32_char_font_type, W32FontStruct):
15966 Remove obsolete font support.
15967
15968 * w32font.h (struct w32font_info): Remove compat_w32_font.
15969 Add hfont member.
15970 (FONT_COMPAT): Remove obsolete macro.
15971
15972 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
15973 (w32font_encode_char, w32font_text_extents): Use new hfont member.
15974 (w32font_open_internal): Remove compat code. Set new hfont member.
15975 (Fx_select_font): Use new hfont member.
15976
15977 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
15978 (uniscribe_encode_char): Use new hfont member.
15979
15980 * w32term.c (x_draw_glyph_string_foreground)
15981 (x_draw_composite_glyph_string_foreground): Use new hfont member.
15982 (x_draw_glyph_string): Use metrics in w32font_info.
15983
159842008-06-26 Kenichi Handa <handa@m17n.org>
15985
15986 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
15987
159882008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
15989
15990 * unexnext.c:
15991 * m/ews4800.h:
15992 * m/hp9000s300.h:
15993 * m/ibm370aix.h:
15994 * m/mips-siemens.h:
15995 * m/ncr386.h:
15996 * m/next.h:
15997 * m/pmax.h:
15998 * m/powerpcle.h:
15999 * m/tandem-s2.h:
16000 * s/386bsd.h:
16001 * s/bsd386.h:
16002 * s/bsd4-1.h:
16003 * s/bsd4-2.h:
16004 * s/bsdos2-1.h:
16005 * s/bsdos2.h:
16006 * s/bsdos3.h:
16007 * s/bsdos4.h:
16008 * s/nextstep.h:
16009 * s/ultrix4-3.h:
16010 * s/usg5-0.h:
16011 * s/usg5-2-2.h:
16012 * s/usg5-2.h:
16013 * s/usg5-4-3.h:
16014 * s/ux4800.h:
16015 * s/uxpds.h:
16016 * s/uxpv.h: Remove support for obsolete systems.
16017 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 16018 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
16019 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
16020 Remove, insert contents in s/aix4-2.h.
16021 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
16022 * s/bsd4-3.h: Rename to ...
16023 * s/bsd-common.h: ... this.
16024 * data.c:
16025 * doc.c:
16026 * ecrt0.c:
16027 * emacs.c:
16028 * fileio.c:
16029 * floatfns.c:
16030 * keyboard.c:
16031 * mem-limits.h:
16032 * print.c:
16033 * process.c:
16034 * sysdep.c:
16035 * syssignal.h:
16036 * systty.h:
16037 * syswait.h:
16038 * term.c:
16039 * unexec.c:
16040 * unexelf.c:
16041 * unexhp9k800.c:
16042 * m/hp800.h:
16043 * m/ibmrs6000.h:
16044 * m/mips.h:
16045 * m/vax.h:
16046 * s/darwin.h:
16047 * s/freebsd.h:
16048 * s/gnu.h:
16049 * s/ms-w32.h:
16050 * s/msdos.h:
16051 * s/netbsd.h:
16052 * s/template.h: Remove references to obsolete variables.
16053
16054 * Makefile.in: Add dependencies for all unexec files.
16055 (admindir): Remove unused variable.
16056 (UNEXEC_SRC): Remove references.
16057
160582008-06-25 Chong Yidong <cyd@stupidchicken.com>
16059
16060 * xfns.c (x_default_font_parameter): If Xft is available, first
16061 try Monospace-12 for the default font.
16062
160632008-06-25 Jason Rumney <jasonr@gnu.org>
16064
16065 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
16066
160672008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
16068
16069 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
16070
16071 * buffer.c (syms_of_buffer): Remove default-word-wrap.
16072
160732008-06-25 Juanma Barranquero <lekktu@gmail.com>
16074
16075 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
16076 <scroll-conservatively>: Fix typo in docstring.
16077
16078 * xselect.c (Fx_send_client_event): Doc fix.
16079
160802008-06-25 Kenichi Handa <handa@m17n.org>
16081
16082 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
16083
16084 * font.c (font_parse_fcname): Remove unused variables.
16085 (font_sort_entites): Delete the arg SPEC. Caller changed.
16086 Fix for the case of ! best_only.
16087 (font_delete_unmatched): Check DPI and AVGWIDTH too.
16088
16089 * lisp.h (Fstring_to_unibyte): EXFUN it.
16090
16091 * character.h (str_to_unibyte): Extern it.
16092
16093 * character.c (str_to_unibyte): New function.
16094
16095 * fns.c (Fstring_to_unibyte): New function.
16096 (syms_of_fns): Defsubr it.
16097
160982008-06-24 Kenichi Handa <handa@m17n.org>
16099
16100 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
16101 DPI too.
16102 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
16103
161042008-06-24 Andreas Schwab <schwab@suse.de>
16105
16106 * Makefile.in (${lispsource}loaddefs.el): Rename from
16107 ../lisp/loaddefs.el.
16108 (bootstrap-clean): Do what distclean does but don't remove
16109 Makefile.
16110 (distclean): Depend on bootstrap-clean and remove Makefile.
16111
161122008-06-24 Chong Yidong <cyd@stupidchicken.com>
16113
16114 * buffer.h (struct buffer): New member word_wrap.
16115
16116 * buffer.c (syms_of_buffer): New variables default-word-wrap and
16117 word-wrap.
16118 (init_buffer_once): Initialize them.
16119
16120 * dispextern.h (struct it): Replace bool truncate_lines_p with a
16121 line_wrap enum possessing three possible values.
16122
16123 * termopts.h: Replace truncate_partial_width_windows with
16124 Vtruncate_partial_width_windows.
16125
16126 * dispnew.c (direct_output_for_insert): Avoid direct output when
16127 inserting a space with word wrap on.
16128
16129 * indent.c (compute_motion): Obey integer values of
16130 truncate-partial-width-windows.
16131
16132 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
16133 replacing truncate_partial_width_windows.
16134 (init_iterator): If Vtruncate_partial_width_windows is an integer,
16135 truncate only if the window width is below that integer.
16136 (start_display, resize_mini_window, produce_stretch_glyph)
16137 (display_string, move_it_in_display_line_to): Use line_wrap.
16138 (back_to_previous_visible_line_start, reseat_1): Reset
16139 string_from_display_prop_p.
16140 (display_line): Extend default face to end of line when wrapping.
16141
161422008-06-24 Kim F. Storm <storm@cua.dk>
16143
16144 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
16145 to wrap continued lines at word boundaries.
16146
161472008-06-24 Jason Rumney <jasonr@gnu.org>
16148
16149 * font.c (Ffont_face_attributes): Multiply pixel size before point
16150 conversion to avoid multiplying rounding error.
16151
161522008-06-23 Jason Rumney <jasonr@gnu.org>
16153
16154 * w32term.c (x_draw_glyph_string_background)
16155 (x_draw_glyph_string): Remove old bdf font code.
16156
16157 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
16158
161592008-06-22 Kenichi Handa <handa@m17n.org>
16160
16161 * font.c (font_find_for_lface): Try the adstyle specified in
16162 the property of LFACE_FONT of LFACE (if any).
16163
161642008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 16165 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
16166
16167 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
16168
161692008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
16170
16171 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
16172 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
16173 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
16174 (witness-emacs): Remove.
16175 (lisp, shortlisp): Move loaddefs.el earlier.
16176 (mostlyclean): Forget about witness-emacs.
16177
161782008-06-22 Glenn Morris <rgm@gnu.org>
16179
16180 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
16181 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
16182
161832008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
16184
16185 * Makefile.in (PRECOMP): Remove.
16186 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
16187 (witness-emacs): Run `compile-first'.
16188 (.el.elc): Use the new compile-onefile target.
16189
161902008-06-21 Kenichi Handa <handa@m17n.org>
16191
16192 * xftfont.c (xftfont_open): Handle QCembolden only when
16193 FC_EMBOLDEN is defined.
16194
161952008-06-21 Andreas Schwab <schwab@suse.de>
16196
16197 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
16198 (.el.elc): Likewise.
16199
162002008-06-21 Miles Bader <miles@gnu.org>
16201
16202 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
16203 build dir, not the lisp source dir.
16204
162052008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
16206
16207 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
16208 (bootstrapclean): Remove.
16209 (.el.elc): New rule.
16210 (PRECOMP): New var.
16211 (../lisp/subdirs.el): Remove.
16212 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
16213 (witness-emacs): New target.
16214 (mostlyclean): Remove witness-emacs as well.
16215 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
16216 Add witness-emacs dependency.
16217
162182008-06-20 Chong Yidong <cyd@stupidchicken.com>
16219
16220 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
16221 defined by the font.
16222
162232008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
16224
16225 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
16226 (bootstrap-clean): New target that keeps TAGS around.
16227 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
16228 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
16229
162302008-06-20 Jason Rumney <jasonr@gnu.org>
16231
16232 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
16233 Remove obsolete font code.
16234
16235 * w32font.c (font_matches_spec): Use csb bitfield from font signature
16236 to determine language support.
16237
162382008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
16239
16240 * sysdep.c (cfsetspeed): New fun extracted from the code.
16241 (cfmakeraw): Move before first use.
16242
162432008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
16244
16245 * sysdep.c (cfmakeraw): Provide fallback implementation.
16246 (serial_configure): Provide fallback implementation of cfsetspeed.
16247
162482008-06-20 Kenichi Handa <handa@m17n.org>
16249
16250 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
16251 the pattern.
16252
16253 * fontset.c (fontset_from_font): Copy font_spec before changing
16254 the elements.
16255
16256 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
16257
162582008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
16259
16260 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
16261 for explicit `font' parameters.
16262
16263 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
16264
162652008-06-19 Kenichi Handa <handa@m17n.org>
16266
16267 * frame.c: Include <ctype.h>.
16268 (x_set_font_backend): Allow spacing characters in the X resource
16269 for FontBackend.
16270
162712008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
16272
16273 * w32fns.c, xfns.c (Qfont_param): New var.
16274 (syms_of_w32fns): Initialize it.
16275 (x_default_font_parameter): Record explicit `font' into
16276 `font-parameter'.
16277
162782008-06-18 Kenichi Handa <handa@m17n.org>
16279
16280 * font.c (font_parse_xlfd): Fix previous change.
16281 (font_parse_fcname): Don't use :fc-unknown-spec.
16282 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
16283 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
16284 (font_add_log): Prepend the driver name to the resulting fonts.
16285
16286 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
16287 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
16288 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
16289
16290 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
16291 (QCembolden): New variables.
16292 (syms_of_xftfont): DEFSYM them.
16293 (xftfont_open): Call XftFontMatch. Don't trust the result of
16294 XftTextExtents8 if the pixel_size is less than 5.
16295
162962008-06-18 Andreas Schwab <schwab@suse.de>
16297
16298 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
16299 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
16300
163012008-06-18 Jason Rumney <jasonr@gnu.org>
16302
16303 * w32font.c (w32font_list, w32font_match): Add logging.
16304
16305 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
16306
163072008-06-17 Chong Yidong <cyd@stupidchicken.com>
16308
16309 * font.c (font_parse_fcname): Store divider characters for
16310 unknown-spec list. For known key symbols, intern using correct
16311 symbol name.
16312
163132008-06-17 Kenichi Handa <handa@m17n.org>
16314
16315 * xfaces.c (realize_default_face): If the frame is not on window
16316 system, set the fontset of face to nil.
16317
163182008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
16319
16320 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
16321
163222008-06-16 Juanma Barranquero <lekktu@gmail.com>
16323
16324 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
16325 (build_font_name_from_vector): Delete externs.
16326
16327 * xfaces.c (struct font_name): Don't declare.
16328
163292008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
16330
16331 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
16332
163332008-06-16 Chong Yidong <cyd@stupidchicken.com>
16334
16335 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
16336
163372008-06-16 Juanma Barranquero <lekktu@gmail.com>
16338
16339 * font.c (Ffont_spec): Fix usage in docstring.
16340 (Ffont_face_attributes): Doc fix.
16341
163422008-06-16 Andreas Schwab <schwab@suse.de>
16343
16344 * font.c (Ffont_face_attributes): Fix definition.
16345
163462008-06-16 Jason Rumney <jasonr@gnu.org>
16347
16348 * font.h (font_style_symbolic_from_value): Remove.
16349
16350 * font.c (font_style_symbolic_from_value): Remove.
16351 (font_style_symbolic): Revert to pre 2008-06-13 version.
16352
16353 * w32font.c (w32_to_fc_weight): New function.
16354 (w32font_full_name, logfont_to_fcname): Use it.
16355
163562008-06-16 Kenichi Handa <handa@m17n.org>
16357
16358 * font.c (font_check_object): Delete it.
16359 (font_clear_cache): Check if a font-object is alive.
16360 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
16361 font-object to nil.
16362 (font_close_object): Don't check FONT_CLOSE_OBJECT.
16363 (font_at): Don't call font_check_object.
16364 (Ffont_get): Return a symbol for :weight, :slant, and :width.
16365
163662008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
16367
16368 * puresize.h (BASE_PURESIZE): Increase to 1230000.
16369
163702008-06-16 Chong Yidong <cyd@stupidchicken.com>
16371
16372 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
16373
163742008-06-15 Chong Yidong <cyd@stupidchicken.com>
16375
16376 * font.c (font_parse_fcname): Only one decimal point.
16377 (font_unparse_fcname): Handle data in family and foundry indices
16378 as symbols, not strings.
16379 (font_unparse_gtkname, Ffont_face_attributes): New functions.
16380
16381 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
16382
16383 * font.h (font_unparse_gtkname): Add prototype.
16384
163852008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
16386
16387 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
16388
163892008-06-15 Andreas Schwab <schwab@suse.de>
16390
16391 * font.c (font_update_drivers): Fix crash when no drivers match.
16392
163932008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
16394
16395 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
16396 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
16397
163982008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
16399
16400 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
16401
164022008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
16403
16404 * process.c (Fserial_process_configure, Fprocess_send_eof):
16405 Use EQ to compare Lisp_Objects.
16406
164072008-06-13 Jason Rumney <jasonr@gnu.org>
16408
16409 * w32fns.c (Fw32_select_font): Remove old font API function.
16410
16411 * w32font.c (logfont_to_fcname): New function.
16412 (Fx_select_font): New font dialog function compatible with
16413 GTK/fontconfig version.
16414
16415 * font.c (font_style_symbolic_from_value): New function.
16416 (font_style_symbolic): Use it.
16417
16418 * font.h (font_style_symbolic_from_value): Declare new function.
16419
164202008-06-13 Juanma Barranquero <lekktu@gmail.com>
16421
16422 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
16423 <font-width-table>: Fix typos in docstrings.
16424
164252008-06-13 Daniel Engeler <engeler@gmail.com>
16426
16427 These changes add serial port access.
16428 * process.c: Add HAVE_SERIAL.
16429 (Fdelete_process, Fprocess_status, Fset_process_buffer)
16430 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
16431 (list_processes_1, select_wrapper, Fstop_process)
16432 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
16433 (status_notify): Modify to handle serial processes.
16434 [HAVE_SERIAL] (Fserial_process_configure)
16435 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
16436 New functions.
16437 * process.h (struct Lisp_Process): Add `type'.
16438 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
16439 New functions.
16440 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
16441 serial ports.
b71ac3dd 16442 (serial_open, serial_configure): New functions.
aac0c6e3
MR
16443 * w32.h: Add FILE_SERIAL.
16444 (struct _child_process): Add ovl_read, ovl_write.
16445
164462008-06-13 Kenichi Handa <handa@m17n.org>
16447
16448 * dispextern.h (enum lface_attribute_index): New member
16449 LFACE_FOUNDRY_INDEX.
16450
16451 * font.c (font_score): Delete arg alternate_families. Check only
16452 weight, slant, width, and size. Ignore the difference of alias
16453 style symbols.
16454 (font_sort_entites): Adjust for the above change. Reflect the
16455 order of font-driver to scores.
16456 (font_list_entities): Don't check alternate_familes here.
16457 (font_clear_prop): Handle foundry.
16458 (font_update_lface): Don't parse "foundry-family" form here.
16459 Handle FONT_FOUNDRY_INDEX.
16460 (font_find_for_lface): Likewise. Handle alternate families here.
16461 If registry is nil, try iso8859-1 and ascii-0.
16462 (font_open_for_lface): Pay attention to size in ENTITY.
16463 (font_open_by_name): Simplify by calling font_load_for_lface.
16464 (free_font_driver_list): Delete it.
16465 (font_update_drivers): Preserve the order of backends.
16466 (syms_of_font): Setting of sort_shift_bits adjusted for the change
16467 of font_score and font_sort_entites.
16468 (font_update_sort_order): Likewise.
16469
16470 * xfaces.c (LFACE_FOUNDRY): New macro.
16471 (check_lface_attrs): Check foundry.
16472 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
16473 (merge_face_vectors): Check foundry.
16474 (merge_face_ref): Likewise.
16475 (Finternal_set_lisp_face_attribute): Likewise.
16476 (x_update_menu_appearance): Likewise.
16477 (Finternal_get_lisp_face_attribute): Likewise.
16478 (lface_hash): Likewise.
16479 (lface_same_font_attributes_p): Likewise.
16480 (x_supports_face_attributes_p): Likewise.
16481 (tty_supports_face_attributes_p): Likewise.
16482 (Finternal_set_alternative_font_family_alist): Intern strings.
16483 (Finternal_set_alternative_font_registry_alist): Downcase strings.
16484 (realize_default_face): Set LFACE_FOUNDRY (lface).
16485
16486 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
16487 font-driver at first.
16488
16489 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
16490
164912008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
16492
16493 * lread.c (Fload): Use xfree, not free on saved_doc_string.
16494
164952008-06-12 Jim Meyering <meyering@redhat.com>
16496
16497 Make unexec_free handle NULL the same way free does.
16498 * unexmacosx.c (unexec_free): Ignore a NULL argument.
16499
165002008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
16501
16502 * character.h (CHAR_TO_BYTE_SAFE): New macro.
16503 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
16504 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
16505 (WEAK_ALIAS): Simplify.
16506 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
16507 when searching a unibyte buffer.
16508
165092008-06-12 Chong Yidong <cyd@stupidchicken.com>
16510
16511 * xfns.c (Fx_select_font): Rename from x-font-dialog.
16512
165132008-06-12 Juanma Barranquero <lekktu@gmail.com>
16514
16515 * w32font.c: Include ctype.h.
16516
165172008-06-11 Jason Rumney <jasonr@gnu.org>
16518
16519 * w32font.c (w32font_encode_char): Detect missing glyphs that are
16520 misreported as space.
16521 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
16522 as aliases for registry iso10646-1.
16523
165242008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
16525
16526 * buffer.c (clone_per_buffer_values): Skip `name'.
16527
165282008-06-11 Chong Yidong <cyd@stupidchicken.com>
16529
16530 * font.c (font_parse_fcname): Fix last change; accept decimal
16531 points in font size.
16532
165332008-06-10 Jason Rumney <jasonr@gnu.org>
16534
16535 * w32uniscribe.c (add_opentype_font_name_to_list):
16536 Skip non unicode fonts.
16537
165382008-06-10 Chong Yidong <cyd@stupidchicken.com>
16539
16540 * xfns.c (Fx_font_dialog): New function.
16541
16542 * gtkutil.c (xg_dialog_response_cb): Rename from
16543 xg_file_response_callback.
16544 (pop_down_dialog): Rename from pop_down_file_dialog.
16545 (xg_get_file_name): Callers changed.
16546 (xg_get_font_name): New function.
16547
16548 * gtkutil.h (xg_get_font_name): Insert prototype.
16549
165502008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
16551
16552 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
16553 x_underline_minimum_display_offset.
16554 (syms_of_xdisp): Declare it here rather than in xterm.c.
16555 * dispextern.h (underline_minimum_offset): Declare it.
16556 * w32term.c (x_draw_glyph_string): Use it.
16557 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
16558 (syms_of_xterm): Don't declare it any more.
16559 (x_draw_glyph_string): Adjust to the new name.
16560
8719abec 165612008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
16562
16563 * xterm.c (x_underline_minimum_display_offset): New var.
16564 (x_draw_glyph_string): Use it.
16565 (syms_of_xterm): Declare it.
16566
165672008-06-10 Chong Yidong <cyd@stupidchicken.com>
16568
16569 * font.c (font_parse_fcname): Accept GTK-style font names too.
16570
165712008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
16572
16573 * dired.c (file_name_completion): Don't return t if the match is exact
16574 but with different capitalization.
16575 * minibuf.c (Ftry_completion): Simplify.
16576
16577 * window.c (Vwindow_point_insertion_type): New var.
16578 (set_window_buffer): Use it.
16579 (syms_of_window): Init and export it to Lisp.
16580
165812008-06-10 Kenichi Handa <handa@m17n.org>
16582
16583 * font.h (font_intern_prop): Prototype adjusted.
16584
16585 * font.c (font_intern_prop): New arg force_symbol.
16586 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
16587 Adjust for the change of font_intern_prop.
16588
16589 * ftfont.c (ftfont_pattern_entity):
16590 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
16591 (w32_registry):
16592 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
16593 the change of font_intern_prop.
16594
165952008-06-09 Juanma Barranquero <lekktu@gmail.com>
16596
16597 * w32menu.c (digest_single_submenu): Declare extern.
16598
165992008-06-09 Jason Rumney <jasonr@gnu.org>
16600
16601 * w32term.c (x_make_frame_visible): Use alternate restore flags.
16602
16603 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
16604 (parse_single_submenu): Remove.
16605 (digest_single_submenu): Remove.
16606 (syms_of_w32menu): Don't initialise variables that have moved
16607 to menu.c.
16608 (set_frame_menubar): Sync with version in xmenu.c.
16609 (w32_menu_show): Sync with xmenu_show in xmenu.c.
16610
16611 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
16612 Make static again.
16613
166142008-06-09 Jason Rumney <jasonr@gnu.org>
16615
16616 Changes to w32 files related to the move of common menu code
16617 to menu.c on 2008-06-08 by Chong Yidong.
16618
16619 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
16620 defs to w32gui.h.
16621 (single_keymap_panes, push_menu_item, push_menu_pane):
16622 Make globally visible.
16623
16624 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
16625 (local_free, malloc_widget_value, free_widget_value)
16626 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
16627 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
16628 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
16629 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
16630 (menu_items, menu_items_allocated, menu_items_used)
16631 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
16632 (init_menu_items, finish_menu_items, discard_menu_items)
16633 (grow_menu_items, push_submenu_start, push_submenu_end)
16634 (push_left_right_boundary, push_menu_pane, push_menu_item)
16635 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
16636 (free_menubar_widget_tree_value, parse_single_submenu)
16637 (update_submenu_strings): Remove functions.
16638 (xmalloc_widget_value): Remove and declare extern.
16639
16640 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
16641 (OBJ1): Build it.
16642
16643 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
16644 (local_heap, local_alloc, local_free, malloc_widget_value)
16645 (free_widget_value): Define here.
16646
166472008-06-09 Kenichi Handa <handa@m17n.org>
16648
16649 * font.h (Qascii_0): Extern it.
16650
16651 * font.c (Qascii_0): New variable.
16652 (syms_of_font): DEFSYM it.
16653 (font_open_by_name): If the registry "iso8859-1" fails, try also
16654 "ascii-0".
16655
16656 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
16657
166582008-06-08 Kenichi Handa <handa@m17n.org>
16659
16660 * .gdbinit (xfont): New command.
16661
166622008-06-08 Andreas Schwab <schwab@suse.de>
16663
16664 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
16665 * Makefile.in (menu.o): Update dependencies.
16666
16667 * Makefile.in (obj): Always add menu.o.
16668 * emacs.c (main): Always call syms_of_menu.
16669 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
16670
166712008-06-08 Chong Yidong <cyd@stupidchicken.com>
16672
16673 * Makefile.in: Compile menu.c.
16674
16675 * lisp.h: Declare syms_of_menu.
16676
16677 * emacs.c (main): Call syms_of_menu.
16678
16679 * keyboard.h: Relocate platform-independent menu definitions from
16680 xmenu.c.
16681
16682 * menu.c: New file. Relocate platform-independent menu
16683 definitions from xmenu.c. Suggested by Adrian Robert.
16684
16685 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 16686 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
16687 (menu_items_used, menu_items_n_panes)
16688 (menu_items_submenu_depth): Move to keyboard.h.
16689 (init_menu_items, finish_menu_items, unuse_menu_items)
16690 (discard_menu_items, restore_menu_items, save_menu_items)
16691 (grow_menu_items, push_submenu_start, push_submenu_end)
16692 (push_left_right_boundary, push_menu_pane, push_menu_item)
16693 (keymap_panes, single_keymap_panes, single_menu_item)
16694 (list_of_panes, list_of_items, find_and_call_menu_selection)
16695 (xmalloc_widget_value, free_menubar_widget_value_tree)
16696 (parse_single_submenu, digest_single_submenu)
16697 (update_submenu_strings): Move to menu.c.
16698
166992008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
16700
16701 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
16702
167032008-06-06 Miles Bader <miles@gnu.org>
16704
16705 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
16706 face, not frame default.
16707
167082008-06-05 Martin Rudalics <rudalics@gmx.at>
16709
16710 * window.c (pop_up_windows, pop_up_frames)
16711 (display_buffer_reuse_frames, Vpop_up_frame_function)
16712 (Vdisplay_buffer_function, Veven_window_heights)
16713 (Vspecial_display_buffer_names, Vspecial_display_regexps)
16714 (Vspecial_display_function, Vsame_window_buffer_names)
16715 (Vsame_window_regexps, split_height_threshold)
16716 (Vsplit_window_preferred_function): Move those vars to window.el.
16717 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
16718 (Fdisplay_buffer): Move those functions to window.el.
16719 (syms_of_window): Remove corresponding declarations.
16720 (display_buffer): New function.
16721 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
16722 * dispnew.c (Flast_nonminibuf_frame): New function.
16723 * buffer.c (Fpop_to_buffer): Move to window.el.
16724
167252008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
16726
16727 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
16728
167292008-06-05 Kenichi Handa <handa@m17n.org>
16730
16731 * coding.c (detect_coding): Fix previous change.
16732 (detect_coding_system): Likewise.
16733
167342008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
16735
16736 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
16737
16738 * keymap.c (Vminibuffer_local_filename_must_match_map):
16739 Rename from Vminibuffer_local_must_match_filename_map.
16740 (syms_of_keymap):
16741 * minibuf.c (Fcompleting_read): Adjust accordingly.
16742 * commands.h: Rename declaration as well.
16743
167442008-06-05 Kenichi Handa <handa@m17n.org>
16745
16746 * font.c (Ffont_spec): Don't use font_parse_family_registry for
16747 family name.
16748 (Ffont_put): Likewise.
16749
16750 * fontset.c (fontset_find_font): Call font_open_for_lface with the
16751 current font-spec.
16752
16753 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
16754 is unspecified.
16755
16756 * xfaces.c (realize_x_face): If the font-related face attributes
16757 are the same as those of default face, realize a new fontset from
16758 default->fontset.
16759 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
16760
167612008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
16762
16763 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
16764 (move_it_in_display_line): New wrapper.
16765
16766 * window.c (window_scroll_pixel_based_preserve_x)
16767 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
16768 (window_scroll_pixel_based, window_scroll_line_based):
16769 Use them to preserve column positions.
16770 (syms_of_window): Initialize them.
16771
16772 * indent.c (Fvertical_motion): Extend first arg to allow passing an
16773 (HPOS . VPOS) pair.
16774
16775 * dispextern.h (move_it_in_display_line): Declare.
16776
167772008-06-05 Juanma Barranquero <lekktu@gmail.com>
16778
16779 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
16780 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
16781 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
16782
167832008-06-04 Juanma Barranquero <lekktu@gmail.com>
16784
16785 * window.c (Fset_window_parameter): Doc fix.
16786 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
16787
167882008-06-04 Joakim Verona <joakim@verona.se>
16789
16790 * window.h (struct window): Add new member window_parameters.
16791
16792 * window.c (Fwindow_parameters, Fwindow_parameter)
16793 (Fset_window_parameter): New defuns.
16794 (syms_of_window): Defsubr the new defuns.
16795 (make_window): Initialize window_parameters to nil.
16796
167972008-06-04 John Paul Wallington <jpw@pobox.com>
16798
16799 * eval.c (Fdefmacro): Doc fix.
16800
168012008-06-04 Kenichi Handa <handa@m17n.org>
16802
16803 * coding.c (detect_coding): Fix handling of coding->head_ascii.
16804 Be sure to call setup_coding_system when we find a proper coding system.
16805 (detect_coding_system): Fix handling of coding->head_ascii.
16806
168072008-06-03 Andreas Schwab <schwab@suse.de>
16808
16809 * font.c (font_prop_validate_spacing): Fix last change.
16810
168112008-06-03 Kenichi Handa <handa@m17n.org>
16812
16813 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
16814 (font_parse_fcname): Fix handling of unknown key.
16815
16816 * xfont.c (xfont_list): Try an alias.
16817
16818 * charset.c (char_charset): Return NULL if the arg charset_list is
16819 specified and C doesn't belong to any of them.
16820
168212008-06-02 Chip Coldwell <coldwell@redhat.com>
16822
16823 * font.c (font_pixel_size): Don't take cdr of an integer.
16824
168252008-06-02 Jim Meyering <meyering@redhat.com>
16826
16827 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
16828 * alloc.c (xfree): Return right away for a NULL arg.
16829 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
16830 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
16831 * mac.c (create_apple_event_from_event_ref): Likewise.
16832 (create_apple_event_from_drag_ref, cfstring_create_normalized):
16833 Likewise.
16834 * doprnt.c (doprnt1): Likewise.
16835 * frame.c (frame): Likewise.
16836 * keyboard.c (wipe_kboard): Likewise.
16837 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
16838 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
16839 * term.c (tty_default_color_capabilities, maybe_fatal)
16840 (delete_tty): Likewise.
16841 * w16select.c (string): Likewise.
16842 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
16843 * w32bdf.c (w32_free_bdf_font): Likewise.
16844 * w32fns.c (w32_unload_font): Likewise.
16845 * w32font.c (w32font_close): Likewise.
16846 * window.c (size_window): Likewise.
16847 * xselect.c (receive_incremental_selection): Likewise.
16848 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
16849 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
16850 * w32.c (stat): Likewise.
16851
16852 Remove useless if-before-free tests.
16853 * editfns.c (Fset_time_zone_rule): Likewise.
16854 * lread.c (nosuffix): Likewise.
16855 * ralloc.c (get_bloc): Likewise.
16856 * regex.c (reg_free): Likewise.
16857 * xftfont.c (xftfont_open, xftfont_close): Likewise.
16858 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
16859 * xsmfns.c (smc_save_yourself_CB): Likewise.
16860
168612008-06-02 Kenichi Handa <handa@m17n.org>
16862
16863 * font.c (font_find_for_lface): Handle float font size.
16864 (font_open_for_lface): Likewise.
16865
16866 * xfaces.c (x_supports_face_attributes_p): Check face->font before
16867 comparing the properties.
16868
168692008-06-01 Jason Rumney <jasonr@gnu.org>
16870
16871 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
16872 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
16873 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
16874 Don't add empty script list.
16875 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
16876
168772008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
16878
16879 * Makefile.in (dot, dotdot): Remove, update users.
16880 ".." has been used elsewhere in the file for a long time.
16881 (LIBXT_STATIC): Remove conditional based on unused variable.
16882
168832008-06-01 Miles Bader <miles@gnu.org>
16884
16885 * xfaces.c (Vface_remapping_alist): New variable.
16886 (syms_of_xfaces): Initialize it.
16887 (enum named_merge_point_kind): New type.
16888 (struct named_merge_point): Add `named_merge_point_kind' field.
16889 (push_named_merge_point): Make cycle detection respect different
16890 named-merge-point kinds.
16891 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
16892 Remove face-name alias resolution.
16893 (lface_from_face_name): New definition using
16894 `lface_from_face_name_no_resolve'.
16895 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
16896 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
16897 (get_lface_attributes): New definition that layers face-remapping on
16898 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
16899 (lookup_basic_face): New function.
16900 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
16901 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
16902 `get_lface_attributes'.
16903 (face_at_buffer_position): Use `lookup_basic_face' to lookup
16904 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
16905 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
16906
16907 * xdisp.c (init_iterator): Pass base_face_id through
16908 `lookup_basic_face' when we actually use it as a face-id.
16909 (handle_single_display_prop): Use `lookup_basic_face' to lookup
16910 DEFAULT_FACE_ID.
16911
16912 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
16913 lookup the initial face-id.
16914
16915 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
16916
169172008-06-01 Juanma Barranquero <lekktu@gmail.com>
16918
16919 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
16920 (Fremove_text_properties): Fix typos in docstrings.
16921
169222008-05-31 Kenichi Handa <handa@m17n.org>
16923
16924 * font.c (font_list_entities): Fix the car part of data to be
16925 stored in the cache.
16926
16927 * ftfont.c (ftfont_font_format): Don't use strcasestr.
16928
169292008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
16930
16931 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
16932 Add a `test' argument so another predicate than `equal' can be used.
16933 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
16934 (map_char_table): Remove unused vars `c' and `i'.
16935 * lisp.h (Foptimize_char_table): Adjust declaration.
16936 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
16937
169382008-05-30 Kenichi Handa <handa@m17n.org>
16939
16940 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
16941 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
16942 defined.
16943
169442008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
16945
16946 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
16947 (Fmake_variable_frame_local): Disallow mixing buffer-local and
16948 frame-local settings for the same variable.
16949
169502008-05-30 Kenichi Handa <handa@m17n.org>
16951
16952 * fontset.c (Ffont_info): Move to font.c.
16953 (syms_of_fontset): Delete defsubr of Sfont_info.
16954
16955 * font.c (font_style_to_value, font_score): Delete casting of the
16956 args to xstcasecmp.
16957 (register_font_driver): Increment num_font_drivers only when
16958 registering the driver globally.
16959 (Ffont_info): Move from fontset.c. Handle a font object too.
16960 (syms_of_font): Defsubr Sfont_info.
16961
169622008-05-29 Kenichi Handa <handa@m17n.org>
16963
16964 * coding.h (enum define_coding_utf8_arg_index): New enum.
16965 (enum coding_attr_index): Change coding_attr_utf_16_bom to
16966 coding_attr_utf_bom.
16967 (enum utf_bom_type): Rename from utf_16_bom_type.
16968 (struct utf_16_spec): Adjust for the above change.
16969 (struct coding_system): Add utf_8_bom in `spec' union.
16970
16971 * coding.c (CODING_UTF_8_BOM): New macro.
16972 (enum coding_category): Delete coding_category_utf_8, add
16973 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
16974 coding_category_utf_8_sig.
16975 (CATEGORY_MASK_UTF_8): Delete it.
16976 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
16977 (CATEGORY_MASK_UTF_8_SIG): New macros.
16978 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
16979 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
16980 CATEGORY_MASK_UTF_8_SIG.
16981 (CATEGORY_MASK_UTF_8): New macro.
16982 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
16983 (detect_coding_utf_8): Check BOM.
16984 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
16985 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
16986 (encode_coding_utf_16): Likewise.
16987 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
16988 (detect_coding, detect_coding_system): Handle utf-8-auto.
16989 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
16990 (syms_of_coding): Fix setting up of Vcoding_category_table.
16991
169922008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
16993
16994 * process.c (Faccept_process_output): If `millisec' is non-nil,
16995 `seconds' default to 0.
16996 (wait_reading_process_output): Also return non-nil if we read output
16997 from a non-running process.
16998
169992008-05-29 Jason Rumney <jasonr@gnu.org>
17000
17001 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
17002 `raster' specified.
17003 (add_font_entity_to_list): Allow non-opentype truetype fonts back
17004 in the uniscribe backend, but disallow any font that has no
17005 unicode subrange support.
17006
170072008-05-29 Juanma Barranquero <lekktu@gmail.com>
17008
17009 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
17010 Fix typos in docstrings.
17011
170122008-05-29 Kenichi Handa <handa@m17n.org>
17013
17014 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
17015 (Fx_family_fonts): Set frame correctly.
17016
170172008-05-28 Jason Rumney <jasonr@gnu.org>
17018
17019 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
17020
170212008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
17022
17023 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
17024 calling build_annotations.
17025
170262008-05-28 Juanma Barranquero <lekktu@gmail.com>
17027
17028 * coding.c (Fdecode_coding_region, Fencode_coding_region)
17029 (Fencode_coding_string):
17030 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
17031 <latin-extra-code-table>: Fix typos in docstrings.
17032 (syms_of_coding) <coding-system-alist>: Doc fix.
17033 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
17034
170352008-05-28 Kenichi Handa <handa@m17n.org>
17036
17037 * fontset.c (Ffont_info): Don't call font_close_object.
17038
17039 * font.c (font_parse_family_registry): Use Ffont_put to validate
17040 foundry and family.
17041 (font_delete_unmatched): Don't check spacing.
17042 (font_list_entities): Add spacing to the spec to list fonts.
17043
17044 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
17045 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
17046
17047 * coding.c (encode_coding_raw_text): Fix previous change.
17048 (encode_coding_object): When the dst_object is a buffer and is
17049 different from src_object, move gap to PT.
17050
170512008-05-27 Chong Yidong <cyd@stupidchicken.com>
17052
17053 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
17054
170552008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
17056
17057 * coding.c (encode_coding_raw_text): Set coding->produced_char for
17058 all branches. Compute it differently.
17059
17060 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
17061
170622008-05-27 Juanma Barranquero <lekktu@gmail.com>
17063
17064 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
17065 into "else if () ... else ...".
17066
170672008-05-27 Jason Rumney <jasonr@gnu.org>
17068
17069 * w32font.c (w32font_open_internal): Determine if glyph indices
17070 are likely to work here.
17071
170722008-05-27 Chong Yidong <cyd@stupidchicken.com>
17073
17074 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
17075 draw overlap glyphs with appropriate highlighting.
17076
170772008-05-27 Kenichi Handa <handa@m17n.org>
17078
17079 * xfont.c (xfont_open): Fix calculation of font->average_width.
17080
170812008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
17082
17083 * casefiddle.c (casify_object): Try to guess better whether the
17084 argument is a byte or a char.
17085
170862008-05-26 Andreas Schwab <schwab@suse.de>
17087
17088 * xselect.c (x_reply_selection_request): Properly handle format == 32.
17089 Always send multiples of format size.
17090
17091 * xterm.c (x_set_frame_alpha): Fix type mismatch.
17092
170932008-05-26 Jason Rumney <jasonr@gnu.org>
17094
17095 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
17096 (compute_metrics): Don't set failure if we just cleared the cache.
17097 (w32_weight_table): Remove unused variable.
17098 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
17099 backwards compatibility.
17100
171012008-05-25 Kenichi Handa <handa@m17n.org>
17102
17103 * w32term.c (x_draw_glyph_string):
17104 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
17105
17106 * xfaces.c: Delete unused function prototypes.
17107 (xstrlwr, font_frame): Delete them.
17108 (clear_face_cache): Delete unused variable.
17109
17110 * xftfont.c (xftfont_open): Delete unused variable.
17111 If underline_thickness is not 1, adjust underline_position.
17112
17113 * ftxfont.c (ftxfont_open): Delete unused variable.
17114
17115 * fontset.c (face_for_char): Optimize for the case of no charset
17116 property.
17117
17118 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
17119 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
17120 (otf_open, font_otf_capability, generate_otf_features)
17121 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
17122 Comment out by surrounding "#if 0" and "#endif" for the moment.
17123 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
17124 (syms_of_font): Codes for accessing above commented out.
17125
171262008-05-24 Eli Zaretskii <eliz@gnu.org>
17127
17128 * w32proc.c: Include dispextern.h.
17129
17130 * w32.c: Include dispextern.h.
17131
171322008-05-23 Juanma Barranquero <lekktu@gmail.com>
17133
17134 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
17135 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
17136 Fix typos in docstrings.
17137
171382008-05-23 Jason Rumney <jasonr@gnu.org>
17139
17140 * xsmfns.c: Remove includes that are already included by config.h.
17141
171422008-05-23 Kenichi Handa <handa@m17n.org>
17143
17144 * charset.c (Qemacs, charset_emacs): New variables.
17145 (char_charset): Fix for non-Unicode characters.
17146 (syms_of_charset): Define charset_emacs.
17147
17148 * w32term.c (x_draw_glyph_string): Be sure to update
17149 s->underline_thickness and s->underline_position. Be sure to draw
17150 underline within the current line area.
17151
17152 * xterm.c (x_draw_glyph_string): Be sure to update
17153 s->underline_thickness and s->underline_position. Be sure to draw
17154 underline within the current line area.
17155
17156 * fontset.c: Delete unused variables and add casting for char *
17157 throughout the file.
17158 (fontset_font): Try the fallback fonts of the current fontset
17159 before consulting the default fontset.
17160
17161 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
17162
17163 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
17164
171652008-05-22 Jason Rumney <jasonr@gnu.org>
17166
17167 * font.c: Don't include strings.h.
17168
17169 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
17170
17171 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
17172 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
17173 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
17174 to call xstrcasecmp.
17175
17176 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
17177
17178 * fontset.c (fs_query_fontset): Use xstrcasecmp.
17179
17180 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
17181
17182 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
17183
171842008-05-22 Kenichi Handa <handa@m17n.org>
17185
17186 * puresize.h (BASE_PURESIZE): Increase to 1220000.
17187
17188 * font.c (font_prop_validate_style): Adjust for the format
17189 change of font_style_table.
17190
17191 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
17192 two args.
17193
17194 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
17195 two args.
17196
171972008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
17198
17199 * minibuf.c (keys_of_minibuf): Delete.
17200 * lisp.h (keys_of_minibuf): Delete.
17201 * emacs.c (main): Don't call keys_of_minibuf.
17202
172032008-05-22 Kenichi Handa <handa@m17n.org>
17204
17205 * ftfont.c (ftfont_resolve_generic_family): Rename from
17206 ftfont_list_generic_family. Return a single family for each
17207 generic family.
17208 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
17209 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
17210 Call font_add_log.
17211 (ftfont_match): Call font_add_log.
17212
17213 * font.h (Ffont_xlfd_name): EXFUN adjusted.
17214 (FONT_DEBUG): Define it.
17215 (font_add_log): Extern it.
17216 (font_assert): Rename from xassert.
17217
17218 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
17219 (xfont_list_family): Call font_add_log.
17220 (xfont_match): Likewise.
17221 (memq_no_quit): Delete.
17222
17223 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
17224 call of Ffont_xlfd_name.
17225
17226 * xfaces.c (struct table_entry, slant_table, weight_table)
17227 (swidth_table): Move to font.c.
17228
17229 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
17230 xassert are changed to font_assert. Delete many unused variables.
17231 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
17232 New variables.
17233 (struct table_entry): Move from xfaces.c and modified.
17234 (weight_table, slant_table, width_table): Move from xfaces.c and
17235 contents adjusted for the change of struct table_entry.
17236 (font_style_to_value, font_style_symbolic): Adjust for the
17237 format change of font_style_table.
17238 (font_parse_family_registry): Don't overwrite existing foundry and
17239 family of font_spec.
17240 (font_score): Fix calculation of diff for sizes.
17241 (font_sort_entites): Call font_add_log.
17242 (font_delete_unmatched): Return a newly created list.
17243 (font_list_entities): Fix previous change. Call font_add_log.
17244 (font_matching_entity, font_open_entity, font_close_entity):
17245 Call font_add_log.
17246 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
17247 (Finternal_set_font_style_table): Delete.
17248 (BUILD_STYLE_TABLE): New macro.
17249 (build_style_table): New function.
17250 (Vfont_log, font_log_env_checked): New variables.
17251 (font_add_log): New function.
17252 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
17253 Declare Lisp variables "font-weight-table", "font-slant-table",
17254 "font-width-table", and "font-log". Initialize font_style_table.
17255
172562008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
17257
17258 * xterm.c (x_set_frame_alpha): Move declarations before statements.
17259
172602008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 17261 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
17262
17263 * frame.c (Qalpha): Add a new frame parameter `alpha'.
17264 (Vframe_alpha_lower_limit): New variable.
17265 (x_set_alpha): New function.
17266
17267 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
17268
17269 * xfns.c (x-create-frame, Qalpha):
17270 Initialize the frame parameter `alpha'.
17271 * xterm.c (OPAQUE, OPACITY): New.
17272 (x_set_frame_alpha): New function.
17273 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
17274
17275 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
17276 * w32fns.c (w32_frame_parm_handlers): Likewise.
17277
172782008-05-20 Jason Rumney <jasonr@gnu.org>
17279
17280 * w32font.c (add_font_entity_to_list): Don't add non-opentype
17281 truetype fonts to opentype list.
17282
172832008-05-20 Juanma Barranquero <lekktu@gmail.com>
17284
17285 * fontset.c (Ffontset_info): Doc fix.
17286 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
17287 <ignore-relative-composition>: Fix typos in docstrings.
17288
17289 * font.c (syms-of-font) <font-encoding-alist>:
17290 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
17291 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
17292 (Ffont_otf_alternates): Doc fixes.
17293
172942008-05-20 Kenichi Handa <handa@m17n.org>
17295
17296 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
17297 font.h through out the file.
17298 (FONT_DRIVERS): Rename from FONTOBJ.
17299 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
17300 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
17301
17302 * emacs.c (main): Call syms_of_font unconditionally.
17303
17304 * font.h (find_font_encoding): Extern it.
17305
17306 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
17307 fontset.c.
194d44e7 17308 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
17309 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
17310 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
17311 only when HAVE_WINDOW_SYSTEM is defined.
17312 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
17313 when HAVE_WINDOW_SYSTEM is defined.
17314
17315 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
17316 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
17317
17318 * xfaces.c: Include font.h unconditionally.
17319 (merge_face_ref, merge_face_vectors)
17320 (Finternal_set_lisp_face_attribute): Cancel the previous change.
17321
173222008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
17323
17324 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
17325 indirect_variable.
17326 * eval.c (lisp_indirect_variable): New fun.
17327 (Fuser_variable_p): Use it.
17328
173292008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
17330
17331 * lisp.h (indirect_variable):
17332 * data.c (indirect_variable, let_shadows_buffer_binding_p):
17333 Use Lisp_Symbol pointers rather than Lisp_Object.
17334 Adjust callers.
17335 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
17336 To this end, change calling-convention.
17337
17338 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
17339 if some non-hidden buffers are selected by string&pred.
17340
173412008-05-19 Chong Yidong <cyd@stupidchicken.com>
17342
17343 * process.c (wait_reading_process_output): Always check status
17344 when in batch mode.
17345
173462008-05-19 Kenichi Handa <handa@m17n.org>
17347
17348 * font.c (font_list_entities): Fix handling of cache.
17349 (font_matching_entity): Likewise.
17350
17351 * ftfont.c (cs_iso8859_1): Delete.
17352 (ft_face_cache): New variable.
17353 (struct ftfont_info): New member fc_charset_idx.
17354 (ftfont_build_basic_charsets): Delete.
17355 (fc_charset_table): New variable.
17356 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
17357 . FC_CHARSET_IDX) as :font-entity property in the font entity.
17358 Callers changed.
17359 (ftfont_lookup_cache, ftfont_get_charset): New functions.
17360 (ftfont_spec_pattern): New argument fc_charset_idx.
17361 Check registry more rigidly. Change callers.
17362 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
17363 change of :font-entity property of the font.
17364
17365 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
17366 property of the font.
17367
173682008-05-18 Juanma Barranquero <lekktu@gmail.com>
17369
17370 * coding.c (Fcoding_system_p): Rename argument to match docstring.
17371 (Funencodable_char_position, Fcheck_coding_systems_region)
17372 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
17373 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
17374 (Ffind_operation_coding_system, Fset_coding_system_priority)
17375 (Fcoding_system_eol_type): Doc fixes.
17376
173772008-05-17 Glenn Morris <rgm@gnu.org>
17378
17379 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
17380
173812008-05-16 Eli Zaretskii <eliz@gnu.org>
17382
17383 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
17384 and st_gid.
17385
17386 * frame.c (Fdelete_frame): Don't call font_update_drivers if
17387 HAVE_WINDOW_SYSTEM is not defined.
17388
17389 * xfaces.c (merge_face_ref, merge_face_vectors)
17390 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
17391 HAVE_WINDOW_SYSTEM is defined.
17392 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
17393
173942008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
17395
17396 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
17397
173982008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17399
17400 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
17401
174022008-05-15 Kenichi Handa <handa@m17n.org>
17403
17404 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
17405 preference.
17406
174072008-05-15 Glenn Morris <rgm@gnu.org>
17408
17409 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
17410
174112008-05-15 Chong Yidong <cyd@stupidchicken.com>
17412
17413 * fns.c (init_fns): Don't initialize weak_hash_tables here.
17414 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
17415
17416 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
17417
174182008-05-15 Kenichi Handa <handa@m17n.org>
17419
17420 * ftfont.c (ftfont_list): Downcase family name to check generic
17421 families.
17422
17423 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
17424 font-spec for QCfont value.
17425
17426 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
17427 buffer. Check the return value of it.
17428
174292008-05-14 Jason Rumney <jasonr@gnu.org>
17430
17431 * w32term.c (w32_get_glyph_overhangs): Remove.
17432 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
17433
174342008-05-14 Kenichi Handa <handa@m17n.org>
17435
17436 * font.c (font_prop_validate): Make nil a valid value.
17437 (font_clear_cache): Check if the cached vector of entities is nil
17438 or not.
17439
174402008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17441
17442 * emacs.c (main_thread): Conditionalize on
17443 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
17444 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
17445
17446 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
17447 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
17448 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
17449
174502008-05-14 Kenichi Handa <handa@m17n.org>
17451
17452 * coding.c (detect_coding_iso_2022): Ignore a coding category that
17453 has no corresponding coding system.
17454
174552008-05-14 Jason Rumney <jasonr@gnu.org>
17456
17457 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
17458
17459 * w32font.h (w32font_open_internal): Update declaration.
17460
17461 * w32font.c (w32font_open_internal): Change last argument from
17462 w32font_info struct to font object. Fill in font object from
17463 font_entity. Get Outline metrics if possible. Use them to
17464 calculate underline position and thickness. Use xlfd name as name
17465 property. Don't set codepage.
17466 (w32font_open): Pass font_object to w32font_open_internal. Don't
17467 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
17468 (w32font_draw): Use s->font.
17469 (clear_cached_metrics): Don't clear non-existent blocks.
17470
17471 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
17472 font was not found.
17473 (x_draw_glyph_string): Use underline position and thickness from font.
17474
17475 * w32uniscribe.c (uniscribe_open): Pass font_object to
17476 w32font_open_internal.
17477
174782008-05-14 Kenichi Handa <handa@m17n.org>
17479
17480 These changes are to delete all legacy font-handling codes, and
17481 make Emacs use only font-backends.
17482
17483 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
17484 (frame.o, image.o, print.o): Depend on $(FONTSRC).
17485
17486 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
17487
17488 * charset.h (Vcharset_non_preferred_head)
17489 (Vcurrent_iso639_language): Extern them.
17490
17491 * charset.c (Vcharset_non_preferred_head): New variable.
17492 (Vcurrent_iso639_language): New variable.
17493 (syms_of_charset): Declare it as a Lisp variable.
17494 (char_charset): Don't check non preferred charsets. As a last
17495 resort, return charset_unicode.
17496 (Fset_charset_priority): Update Vcharset_non_preferred_head.
17497
17498 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
17499 conditionals. Don't check enable_font_backend. Delete all codes
17500 used only when USE_FONT_BACKEND is not defined.
17501
17502 * dispextern.h (struct glyph_string): Change type of `font' to
17503 `struct font *'.
17504 (struct glyph_string): New member underline_position and
17505 underline_thickness.
17506 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
17507 (struct face): Change type of `font' to `struct font *'. Remove
17508 members `font_name', `font_info_id'.
17509 (per_char_metric, encode_char): Delete externs.
17510 (calc_pixel_width_or_height): Adjust the prototype.
17511
17512 * emacs.c (enable_font_backend): Delete extern.
17513 (main): Don't set enable_font_backend. Don't check the command
17514 line argument "-disable-font-backend".
17515
17516 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
17517 (enum font_property_index): New members FONT_DPI_INDEX,
17518 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
17519 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
17520 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
17521 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
17522 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
17523 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
17524 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
17525 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
17526 (struct font_spec, struct font_entity): New structs.
17527 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
17528 (struct font): Many members from old "struct font_info" moved to
17529 here. Members font and entity deleted.
17530 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
17531 the new font-related objects.
17532 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
17533 (CHECK_FONT_GET_OBJECT): Likewise.
17534 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
17535 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
17536 (struct font_driver): New members case_sensitive anc check. Type
17537 of the member list and open changed.
17538 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
17539 (font_symbolic_width, font_find_object, font_get_spec)
17540 (font_set_lface_from_name): Delete extern.
17541 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
17542
17543 * font.c: Include <strings.h>.
17544 (enable_font_backend): Delete it.
17545 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
17546 (CHECK_VALIDATE_FONT_SPEC): Delete it.
17547 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
17548 (null_string): Delete it.
17549 (null_vector): Make it static.
17550 (font_family_alist): Delete it.
17551 (Qnormal): Extern it.
17552 (QCextra, QClanguage): Delete it.
17553 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
17554 (font_make_spec, font_make_entity, font_make_object)
17555 (font_intern_prop): Renamed from intern_downcase. Don't downcase
17556 the string. Callers changed.
17557 (font_pixel_size): Adjusted for the format change of font-related
17558 objects.
17559 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
17560 (font_style_to_value, font_style_symbolic): New function.
17561 (build_font_family_alist): Delete it.
17562 (font_registry_charsets): Use Fassoc_string instead of
17563 assq_no_quit.
17564 (font_prop_validate_symbol): Don't return null_string.
17565 (font_prop_validate_style): Adjusted for the change of
17566 style-related values in a font vector.
17567 (font_property_table): Delete entries for QClanguage and
17568 QCantialias, add entries for QCavgwidth.
17569 (get_font_prop_index): Delete the 2nd argument FROM.
17570 (font_prop_validate): Arguments changed.
17571 (font_put_extra): Adjusted for the change of font-related objects.
17572 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
17573 (font_parse_fcname, font_unparse_fcname)
17574 (font_prepare_composition): Likewise.
17575 (font_parse_family_registry): Renamed from font_merge_old_spec.
17576 (otf_open): Delete the 1st arg entity.
17577 (font_otf_capability): Adjusted for the above change.
17578 (font_score): New arg alternate_families. Adjusted for the change
17579 of font-related objects.
17580 (font_sort_entites): New arg best_only.
17581 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
17582 Delete them.
17583 (font_match_p): Check alternate families.
17584 (font_find_object): Delete it.
17585 (font_check_object): New function.
17586 (font_clear_cache): Adjusted for the change of font-related objects.
17587 (font_delete_unmatched): New arg.
17588 (font_list_entities): Call font_driver->list with a spec that
17589 doesn't specify style-related properties.
17590 (font_matching_entity): Arguments changed. Caller changed.
17591 (font_open_entity): Adjusted for the change of font-related objects.
17592 (font_close_object, font_has_char, font_encode_char)
17593 (font_get_name, font_get_spec): Likewise.
17594 (font_spec_from_name, font_clear_prop, font_update_lface):
17595 New functions.
17596 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
17597 (font_prepare_for_face, font_done_for_face, font_open_by_name)
17598 (font_at): Adjusted for the change of font-related objects.
17599 (font_range): New function.
17600 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
17601 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
17602 (Fcopy_font_spec, Fmerge_font_spec): New function.
17603 (Ffont_family_list): Renamed from list-families.
17604 (Finternal_set_font_style_table): Arguments changed.
17605 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
17606 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
17607 change of font-related objects.
17608 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
17609
17610 * fontset.h (struct font_info): Delete it. Most members go to
17611 struct font.
17612 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
17613 (enum FONT_SPEC_INDEX): Delete it.
17614 (font_info, list_fonts_func, load_font_func, query_font_func)
17615 (set_frame_fontset_func, find_ccl_program_func)
17616 (get_font_repertory_func, new_fontset_from_font_name): Delete
17617 externs.
17618 (fontset_from_font_name): Extern it.
17619 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
17620 (FONT_INFO_FROM_FACE): Deleted.
17621 (face_for_font): Adjust prototype.
17622
17623 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
17624 conditionals. Don't check enable_font_backend. Delete all codes
17625 used only when USE_FONT_BACKEND is not defined.
17626 (get_font_info_func, list_font_func, load_font_func)
17627 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
17628 (get_font_repertory_func): Delete them.
17629 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
17630 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
17631 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
17632 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
17633 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
17634 (fontset_compare_rfontdef): New function.
17635 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
17636 rfont-defs by qsort. Adjusted for the change of font-group vector.
17637 (load_font_get_repertory): Deleted.
17638 (fontset_find_font): Use new macros to ref/set elements of
17639 font-def and rfont-def.
17640 (fontset_font): Fix the timing of remembering that no font for C.
17641 (free_face_fontset): Do nothing if the face has no fontset.
17642 (face_suitable_for_char_p): Use new macros to ref/set elements of
17643 rfont-def.
17644 (face_for_char): Likewise. Call face_for_char with font_object.
17645 (fs_load_font): Delete. Delete #pragma surrounding it.
17646 (fs_query_fontset): Use strcasecmp instead of strcmp.
17647 (generate_ascii_font_name): Adjusted for the format change of
17648 font-spec.
17649 (Fset_fontset_font): Likewise. Use new macros to set elements of
17650 font-def.
17651 (Fnew_fontset): Use font_unparse_xlfd to generate
17652 FONTSET_ASCII (fontset).
17653 (new_fontset_from_font_name): Deleted.
17654 (fontset_from_font): Renamed from new_fontset_from_font. Check if
17655 a fontset is already created for the font. FIx updating of
17656 Vfontset_alias_alist.
17657 (fontset_ascii_font): Deleted.
17658 (Ffont_info): Adjusted for the format change of font-spec.
17659 (Finternal_char_font): Likewise.
17660 (Ffontset_info): Likewise.
17661 (syms_of_fontset): Don't check load_font_func.
17662
17663 * fns.c (internal_equal): Handle PREV_FONT.
17664
17665 * frame.h: Delete USE_FONT_BACKEND conditional.
17666
17667 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
17668 conditionals. Don't check enable_font_backend. Delete all codes
17669 used only when USE_FONT_BACKEND is not defined.
17670 (x_set_font): Call x_new_font, not x_new_fontset2.
17671 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
17672 already set for the frame.
17673
17674 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
17675 a font-entity by font_make_entity. Use font_intern_prop instead
17676 of intern_downcase. Use FONT_SET_STYLE to set a style-related
17677 font property. If a font is scalable, set avgwidth property to 0.
17678 Set font-entity property by font_put_extra.
17679 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
17680 (ffont_driver): Adjusted for the change of struct font_driver.
17681 (ftfont_spec_pattern): New function.
17682 (ftfont_list): Return a list, not vector.
17683 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
17684 (ftfont_list_family): Don't downcase names.
17685 (ftfont_free_entity): Deleted.
17686 (ftfont_open): Return a font-object. Adjusted for the change of
17687 struct font. Get underline_thickness and underline_position from
17688 font property. Don't update dpyinfo->smallest_font_height and
17689 dpyinfo->smallest_char_width.
17690 (ftfont_close): Don't free `struct font'.
17691 (ftfont_has_char): Adjusted for the format change of font-entity.
17692 (ftfont_encode_char, ftfont_text_extents): Likewise.
17693
17694 * ftxfont.c (ftxfont_list): Return a list, not vector.
17695 (ftxfont_open): Return a font-object. Adjusted for the change of
17696 struct font. Get underline_thickness and underline_position from
17697 font property. Don't update dpyinfo->smallest_font_height and
17698 dpyinfo->smallest_char_width.
17699 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
17700 (ftxfont_draw): Adjusted for the change of struct font.
17701
17702 * image.c (image_ascent): Don't include "charset.h". Include
17703 "character.h" and "font.h".
17704
17705 * lisp.h (enum pvec_type): New member PREV_FONT.
17706 (Fassoc_string): EXFUN it.
17707
17708 * print.c: Include font.h.
17709 (print_object): Handle font-related objects.
17710
17711 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
17712 conditionals. Don't check enable_font_backend. Delete all codes
17713 used only when USE_FONT_BACKEND is not defined.
17714 (handle_auto_composed_prop): Do nothing if it->f is not on a
17715 window system. Check how many following characters can be
17716 displayed by the same font.
17717 (calc_pixel_width_or_height): Type of the 4th arg is changed to
17718 'struct font *'.
17719 (get_char_face_and_encoding): Assign the whole encoding task to
17720 the `encode-char' method of a font driver.
17721 (fill_composite_glyph_string): Adjusted for the change of `struct
17722 face' and `struct glyph_string'.
17723 (fill_glyph_string): Likewise.
17724 (get_per_char_metric): Arguments changed.
17725 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
17726 and `struct glyph_string'.
17727 (produce_stretch_glyph, calc_line_height_property)
17728 (x_produce_glyphs): Likewise.
17729
17730 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
17731 conditionals. Don't check enable_font_backend. Delete all codes
17732 used only when USE_FONT_BACKEND is not defined. Use
17733 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
17734 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
17735 (Qp): Extern them.
17736 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
17737 Deleted.
17738 (struct font_name): Deleted.
17739 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
17740 (compare_fonts_by_sort_order): New function.
17741 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
17742 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
17743 Deleted.
17744 (Fx_family_fonts): Use font_list_entities, and sort fonts by
17745 compare_fonts_by_sort_order.
17746 (Fx_font_family_list): Call Ffont_family_list.
17747 (face_numeric_value, face_numeric_weight, face_numeric_slant)
17748 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
17749 (face_symbolic_slant, face_symbolic_swidth)
17750 (split_font_name_into_vector, build_font_name_from_vector)
17751 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
17752 (font_rescale_ratio, split_font_name, build_font_name)
17753 (free_font_names, sort_fonts, x_face_list_fonts)
17754 (face_font_available_p, sorted_font_list, cmp_font_names)
17755 (font_list_1, concat_font_list, font_list, remove_duplicates):
17756 Deleted.
17757 (Fx_list_fonts): Use Ffont_list.
17758 (LFACE_AVGWIDTH): Deleted.
17759 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
17760 by FONTP.
17761 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
17762 (set_lface_from_font_name): Delete it.
17763 (set_lface_from_font): Renamed from
17764 set_lface_from_font_and_fontset. Caller changed. Don't set
17765 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
17766 for face.
17767 (merge_face_vectors): Copy font-spec if necessary.
17768 Clear properties of the font-spec if necessary.
17769 (merge_face_ref): Clear properties of the font-spec if necessary.
17770 (Finternal_set_lisp_face_attribute): Likewise.
17771 (set_font_frame_param): Use font_load_for_lface to load a
17772 font-object, and call Fmodify_frame_parameters with it.
17773 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
17774 font name by Ffont_xlfd_name.
17775 (Finternal_lisp_face_attribute_values): Don't check QCweight,
17776 QCslant, and QCwidth.
17777 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
17778 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
17779 Compare fonts by EQ.
17780 (lookup_non_ascii_face): Deleted.
17781 (face_for_font): The 2nd argument changed.
17782 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
17783 Check atomic font properties by case insensitive.
17784 (realize_non_ascii_face): Set face->overstrike correctly.
17785 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
17786 (dump_realized_face): Get font name from
17787 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
17788
17789 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
17790 conditionals. Don't check enable_font_backend. Delete all codes
17791 used only when USE_FONT_BACKEND is not defined.
17792 (xic_create_xfontset): Original code deleted and renamed from
17793 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
17794 (x_make_gc): Don't set GCFont in GCs.
17795 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
17796 opened by "fixed".
17797 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
17798 find_ccl_program_func, query_font_func, set_frame_fontset_func,
17799 get_font_repertory_func.
17800
17801 * xfont.c: Include <stdlib.h> and "ccl.h".
17802 (struct xfont_info): New structure.
17803 (xfont_query_font): Deleted.
17804 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
17805 moved from xterm.c.
17806 (xfont_driver): Adjusted for the change of struct font_driver.
17807 (compare_font_names): New function.
17808 (xfont_list_pattern): Sort font names case insensitively. Make
17809 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
17810 (xfont_list): Return a list, not vector.
17811 (xfont_match): If the font doesn't have QCname property, generate
17812 a name from the other font properties.
17813 (xfont_open): Return a font-object. Adjusted for the change of
17814 struct font. Get underline_thickness and underline_position from
17815 font property. Don't update dpyinfo->smallest_font_height and
17816 dpyinfo->smallest_char_width.
17817 (xfont_close): Don't free struct font.
17818 (xfont_prepare_face): Adjusted for the change of struct font.
17819 (xfont_done_face): Deleted.
17820 (xfont_has_char): Adjusted for the change of struct font.
17821 (xfont_encode_char, xfont_draw): Likewise.
17822 (xfont_check): New function.
17823
17824 * xftfont.c (xftfont_list): Adjusted for the change of `list'
17825 callback function.
17826 (xftfont_match): Adjusted for the format change of font-entity.
17827 (xftfont_open): Adjusted for the format change of font-entity and
17828 font-object. Adjusted for the change of struct font. Return a
17829 font-object. Don't update dpyinfo->smallest_font_height and
17830 dpyinfo->smallest_char_width.
17831 (xftfont_close): Block input while calling XftFontClose.
17832 (xftfont_prepare_face): Don't block input while calling
17833 xftfont_get_colors. Adjusted for the change of struct font.
17834 (xftfont_shape): Return value of error case fixed.
17835
17836 * xrdb.c (x_load_resources): Don't setup a fontset resource.
17837
17838 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
17839 conditionals.
17840 (FONT_WIDTH): Return (f)->max_width.
17841 (struct x_display_info): Delete member `font'.
17842 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
17843 (x_find_ccl_program, x_get_font_repertory): Delete externs.
17844 (struct x_output): Change type of `font' to `struct font *'.
17845
17846 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
17847 conditionals. Don't check enable_font_backend. Delete all codes
17848 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
17849 (x_per_char_metric, x_encode_char): Deleted.
17850 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
17851 (x_compute_glyph_string_overhangs): Adjusted for the change of
17852 `struct face'.
17853 (x_draw_glyph_string_foreground)
17854 (x_draw_composite_glyph_string_foreground): Likewise.
17855 (x_draw_glyph_string): Likewise. Use font->underline_position and
17856 font->underline_thickness.
17857 (x_new_font): Renamed from x_new_fontset2.
17858 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
17859 (x_check_font): Call `check' method of a font driver.
17860 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
17861 (x_query_font, x_get_font_repertory): Deleted.
17862 (x_find_ccl_program): Renamed and moved to xfont.c.
17863 (x_redisplay_interface): Adjusted for the change of `struct
17864 redisplay_interface'.
17865
17866 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
17867 conditionals. Don't check enable_font_backend. Delete all codes
17868 used only when USE_FONT_BACKEND is not defined. Surround non-used
17869 code by "#ifdef OLD_FONT" and "endif".
17870 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
17871
17872 * w32font.h (struct w32font_info): New member.
17873 (FONT_COMPAT): New macro.
17874 (w32font_open_internal): Prototype adjusted.
17875
17876 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
17877 OLD_FONT" and "endif".
17878
17879 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
17880 conditionals. Don't check enable_font_backend. Delete all codes
17881 used only when USE_FONT_BACKEND is not defined.
17882 (w32font_open): Return a font-object. Make a font-object by
17883 font_make_object. Adjusted for the change of struct w32font_info.
17884 (w32font_close): Don't free struct font. Adjusted for the change
17885 of struct w32font_info.
17886 (w32font_encode_char, w32font_text_extents, w32font_draw):
17887 Adjusted for the change of struct w32font_info.
17888 (w32font_draw): Likewise.
17889 (w32font_list_internal): Return a list, not vector.
17890 (w32font_open_internal): Change the 4th arg to font-object.
17891 Adjusted for the change of struct w32font_info and font-object format.
17892 (add_font_name_to_list): Don't downcase names.
17893 (w32_enumfont_pattern_entity): Make a font-entity by
17894 font_make_entity. Adjusted for the format change of font-entity.
17895 Use FONT_SET_STYLE to set a style-related font property. If a
17896 font is scalable, set avgwidth property to 0. Set font-entity
17897 property by font_put_extra.
17898 (font_matches_spec): Adjusted for the format change of font-entity.
17899 (w32_weight_table, w32_decode_weight): New variables.
17900 (w32_encode_weight): New function.
17901 (fill_in_logfont): Adjusted for the format change of font-spec.
17902 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
17903 weight value.
17904 (w32font_driver): Adjusted for the change of struct font_driver.
17905
17906 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
17907 conditionals. Don't check enable_font_backend. Surround non-used
17908 code by "#ifdef OLD_FONT" and "endif".
17909 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
17910 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
17911
17912 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
17913 conditionals. Don't check enable_font_backend. Delete all codes
17914 used only when USE_FONT_BACKEND is not defined. Surround non-used
17915 code by "#ifdef OLD_FONT" and "endif".
17916
17917 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
17918 (uniscribe_open): Return value changed to font-object.
17919 Adjusted for the format change of font-object.
17920 (uniscribe_otf_capability): Adjusted for the change of struct font.
17921 (add_opentype_font_name_to_list): Don't downcase names.
17922 (uniscribe_font_driver): Adjusted for the change of struct
17923 font_driver.
17924
179252008-05-13 Chong Yidong <cyd@stupidchicken.com>
17926
17927 * dispnew.c (update_frame_1): Check if tty output is still valid
17928 before flushing it.
17929
179302008-05-13 Jan Djärv <jan.h.d@swipnet.se>
17931
17932 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
17933 to Gtk+ menus.
17934
179352008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
17936
17937 * dired.c (file_name_completion): Tweak the code so as to always do it
17938 in a single pass. Tighten the scope of some variables.
17939
17940 * dired.c (Qdefault_directory): New var.
17941 (file_name_completion): Use it instead of Fexpand_file_name.
17942 (syms_of_dired): Initialize it.
17943
179442008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
17945
17946 * fileio.c (double_dollars): Remove dead code.
17947
179482008-05-10 Eli Zaretskii <eliz@gnu.org>
17949
17950 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
17951 Mention w32-get-true-file-attributes in doc string.
17952
17953 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
17954
179552008-05-09 Glenn Morris <rgm@gnu.org>
17956
17957 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
17958 2008-04-23.
17959
179602008-05-09 Eli Zaretskii <eliz@gnu.org>
17961
17962 Support for reporting owner and group of each file on MS-Windows:
17963 * dired.c (stat_uname, stat_gname): New functions, with special
17964 implementation for w32.
17965 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
17966
17967 * w32.c: Rename the_passwd_* to dflt_passwd_*.
17968 (dflt_group_name): New static variable.
17969 (dflt_group): Rename from the_group.
17970 (init_user_info): Init dflt_group fields. Get user's group name
17971 from LookupAccountSid.
17972 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
17973 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
17974 New initialization states.
17975 (globals_of_w32): Initialize them to zero. Initialize the default
17976 group name to "None".
17977 (GetFileSecurity_Name): New global var, the name of the function
17978 to call for GetFileSecurity.
17979 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
17980 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
17981 (get_file_security, get_security_descriptor_owner)
17982 (get_security_descriptor_group, is_valid_sid)
17983 (get_file_security_desc, get_rid, get_name_and_id)
17984 (get_file_owner_and_group): New functions.
17985 (stat): Use get_file_security_desc and get_file_owner_and_group to
17986 report the owner and primary group of each file. Don't ignore the
17987 high 32 bits of file's size, now that st_size is 64-bit wide.
17988 Fix test when to get true file attributes.
17989 (init_user_info): Use get_rid instead of equivalent inline code.
17990 (fstat): Don't ignore the high 32 bits of file's size.
17991
179922008-05-09 Chong Yidong <cyd@stupidchicken.com>
17993
17994 * image.c (png_load): Use correct bit-depth for setting background
17995 color.
17996
179972008-05-08 Eli Zaretskii <eliz@gnu.org>
17998
17999 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
18000 epa-hook.elc.
18001
180022008-05-08 Juanma Barranquero <lekktu@gmail.com>
18003
18004 * font.c (Ffont_match_p): Don't use `iff' in docstring.
18005
180062008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
18007
18008 * macfns.c (Fx_create_frame): Make a copy of frame parameters
18009 because the original parameters are in pure storage now.
18010 (mac_window): Remove unused params. Update callers.
18011
180122008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
18013
18014 * lread.c (substitute_object_recurse): Use lower-level primitives.
18015 Don't signal errors when traversing sub-char-tables.
18016 Don't loop over all the possible characters when traversing char-tables.
18017
18018 * print.c (print_preprocess): Add sub-char-tables to the print-table,
18019 just like we do in print.c.
18020
180212008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
18022
18023 * minibuf.c (Ftry_completion): Remove code left over from when we used
18024 scmp instead of Fcompare_strings.
18025
180262008-05-04 Juanma Barranquero <lekktu@gmail.com>
18027
18028 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
18029
180302008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18031
18032 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
18033 Create bitmap context in native byte order.
18034
18035 * macterm.c (XDrawLine)
18036 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
18037 context in native byte order.
18038
180392008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18040
18041 * config.in: Regenerate.
18042
18043 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
18044 New definitions for Image I/O support.
18045 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
18046 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
18047 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
18048 (mac_data_provider_release_data, image_load_image_io)
18049 [USE_MAC_IMAGE_IO]: New functions.
18050 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
18051 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
18052 (init_image_func_pointer) [MAC_OSX]: Remove function.
18053 (image_load_quartz2d) [MAC_OSX]: Check availability of
18054 CGImageCreateWithPNGDataProvider at compile time.
18055 Use lowercase `false' for boolean constant.
18056 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
18057 Use image_load_image_io.
18058 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
18059 Don't check MyCGImageCreateWithPNGDataProvider.
18060 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
18061 Don't call init_image_func_pointer.
18062
18063 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
18064
18065 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
18066 Make variable non-static.
18067 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
18068 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
18069
18070 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
18071 (RED_FROM_ULONG): Mask off higher bits.
18072 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
18073
18074 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
18075 Include AvailabilityMacros.h.
18076 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
18077 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
18078
180792008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
18080
18081 * chartab.c (Fset_char_table_range): If range is t, really set all
18082 chars to that value.
18083
180842008-05-03 Eli Zaretskii <eliz@gnu.org>
18085
18086 * dired.c (Ffile_attributes): Don't allow the device number become
18087 negative.
18088
180892008-05-02 Daiki Ueno <ueno@unixuser.org>
18090
18091 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
18092
180932008-05-02 Juri Linkov <juri@jurta.org>
18094
18095 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
18096 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
18097 DEFAULT argument as a list of default values in docstrings.
18098
180992008-05-01 Chong Yidong <cyd@stupidchicken.com>
18100
18101 * puresize.h (BASE_PURESIZE): Increase to 1210000.
18102
181032008-05-01 Martin Rudalics <rudalics@gmx.at>
18104
18105 * dispnew.c (change_frame_size_1): Preserve small windows when
18106 shrinking frames by calling set_window_height|width with third
18107 arg 2.
18108
18109 * window.h (struct window): Replace field too_small_ok by field
18110 resize_proportionally.
18111
18112 * window.c (make_window): Initialize resize_proportionally.
18113 (enlarge_window): Temporarily set resize_proportionally to make
18114 sure that shrink_windows does scale the window proportionally.
18115 (shrink_windows): When window has resize_proportionally set try
18116 to shrink it proportionally by stealing from other windows.
18117 (struct saved_window, Fset_window_configuration)
18118 (compare_window_configurations): Handle resize_proportionally.
18119 (WINDOW_TOTAL_SIZE): New macro.
18120 (window_min_size, shrink_windows, size_window): Use it.
18121 (check_min_window_sizes): Remove. Invalid values of
18122 window-min-height|width are handled by window_min_size_2 now.
18123 (size_window, Fsplit_window, enlarge_window)
18124 (adjust_window_trailing_edge, grow_mini_window): Don't call
18125 check_min_window_sizes.
18126 (window_min_size_2, window_min_size_1, window_min_size):
18127 New argument safe_p for retrieving "safe" minimum sizes.
18128 (Fdisplay_buffer, Fsplit_window, enlarge_window)
18129 (adjust_window_trailing_edge, grow_mini_window):
18130 Adjust arguments of window_min_size... functions.
18131 (shrink_windows): Argument min_size removed. New argument
18132 safe_p allows shrinking windows to their safe minimum sizes.
18133 Calculate minimum size and decide whether a window shall be
18134 deleted for each window individually.
18135 (size_window): When nodelete_p equals 2, tell shrink_windows to
18136 delete windows only if their new minimum size is no more safe.
18137 (shrink_window_lowest_first): Call window_min_size_1 to make
18138 sure to preserve modeline of bottom-most window when resizing
18139 the minibuffer.
18140 (Fset_window_configuration, Fcurrent_window_configuration)
18141 (compare_window_configurations): Do not handle
18142 window-min-height|width any more.
18143 (syms_of_window): Clarify window-min-height|width doc-strings.
18144
181452008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
18146
18147 * dired.c (file_name_completion): Fix up the encoding/decoding issue
18148 some more. Copy some of the code from Ftry_completions.
18149 Remove special case code that dates back to initial revision when the
18150 slash was only added when necessary and that can't trigger nowadays.
18151
181522008-04-27 Kenichi Handa <handa@m17n.org>
18153
18154 * font.c (font_prop_validate): Signal `error' instead of `font'.
18155
181562008-04-29 Jason Rumney <jasonr@gnu.org>
18157
18158 * w32fns.c (Fw32_battery_status): New defun.
18159 (syms_of_w32fns): Defsubr it.
18160
181612008-04-28 Andreas Schwab <schwab@suse.de>
18162
18163 * dired.c (file_name_completion): Fix another mixing of encoded
18164 and decoded names.
18165
181662008-04-28 Juanma Barranquero <lekktu@gmail.com>
18167
18168 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
18169
181702008-04-27 Juanma Barranquero <lekktu@gmail.com>
18171
18172 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
18173
181742008-04-27 Andreas Schwab <schwab@suse.de>
18175
18176 * dired.c (file_name_completion): Fix inappropriate mixing of
18177 encoded and decoded names.
18178
18179 * xterm.c (XTread_socket): Fix use of uninitialized variable.
18180
18181 * puresize.h (BASE_PURESIZE): Increase to 1200000.
18182
181832008-04-26 Eli Zaretskii <eliz@gnu.org>
18184
18185 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
18186 2008-03-31, it's not needed anymore with `struct stat' definition
18187 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
18188 for the same reasons.
18189
181902008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
18191
18192 * m/sparc.h: Additional redefinitions for GNU/Linux.
18193
181942008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18195
18196 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
18197 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
18198 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
18199 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
18200 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
18201 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
18202 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
18203 Likewise.
18204
18205 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
18206 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
18207 (mac_ax_number_of_characters): Add externs.
18208 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
18209 [USE_MAC_TSM]: Likewise.
18210 (mac_handle_text_input_event) [MAC_OSX]:
18211 Handle kEventTextInputOffsetToPos for no active input area case.
18212 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
18213 (mac_handle_document_access_event)
18214 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
18215 (install_application_handler) [MAC_OSX]: Register handlers for
18216 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
18217 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
18218 Register mac_handle_document_access_event.
18219
18220 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
18221 Make functions non-static.
18222
182232008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
18224
18225 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
18226 (read_file_name_completion_ignore_case, insert_default_directory)
18227 (Qdefault_directory): Move to minibuffer.el.
18228 (Fread_file_name): Call the new `read-file-name' instead.
18229
182302008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18231
18232 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
18233 Make function non-static.
18234 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
18235 Remove function.
18236 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
18237 Move to mactoolbox.c.
18238 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
18239
18240 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
18241 (mac_rect_make): New macro.
18242
18243 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
18244 instead of float.
18245 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
18246 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
18247 (XSetBackground) [USE_CG_DRAWING]: Likewise.
18248 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
18249 CGRectMake.
18250 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
18251 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
18252 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
18253 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
18254 instead of WindowRef in argument type.
18255 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
18256 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
18257 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
18258 instead of DISPLAY. All uses changed.
18259 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
18260 (x_calc_absolute_position): Simplify so as not to use
18261 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
18262
18263 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
18264 instead of WindowRef in argument type.
18265 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
18266 [TARGET_API_MAC_CARBON]: Remove externs.
18267 (create_apple_event, mac_event_parameters_to_lisp)
18268 [TARGET_API_MAC_CARBON]: Add externs.
18269
18270 * mactoolbox.c (Vmac_ts_script_language_on_focus)
18271 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
18272 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
18273 is clicked.
18274 (x_activate_menubar): Remove extern for saved_menu_event_location.
18275 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
18276 Move from mac.c.
18277
182782008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18279
18280 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
18281 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
18282
182832008-04-23 Jason Rumney <jasonr@gnu.org>
18284
18285 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
18286 attributes only for local files.
18287
18288 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
18289 default to Qlocal.
18290
182912008-04-22 Juri Linkov <juri@jurta.org>
18292
18293 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
18294 read-buffer-to-switch instead of using the letter "B".
18295
182962008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
18297
18298 * fileio.c (Qdefault_directory): New variable.
18299 (Fread_file_name): Use it to pass `dir' to the completion functions.
18300
183012008-04-20 Chong Yidong <cyd@stupidchicken.com>
18302
18303 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
18304
183052008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
18306
18307 * keyboard.c (Vpre_help_message): Remove.
18308 (show_help_echo): Remove default C code.
18309
18310 * dired.c (directory_files_internal, file_name_completion):
18311 Only call ENCODE_FILE if the string is indeed decoded.
18312
183132008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
18314
18315 * Makefile.in (TOOLKIT_DEFINES): Remove.
18316 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
18317
183182008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18319
18320 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
18321 (mactoolbox.o): New target.
18322
18323 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
18324 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
18325
18326 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
18327 Use mac_set_frame_window_background instead of XSetWindowBackground.
18328 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
18329 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
18330 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
18331 instead of SetWindowTitleWithCFString.
18332 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
18333 Move function to mactoolbox.c.
18334 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
18335 Use mac_set_window_modified instead of SetWindowModified.
18336 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
18337 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
18338 (Fx_focus_frame): Use mac_front_non_floating_window instead of
18339 FrontNonFloatingWindow. Use mac_activate_window instead of
18340 ActivateWindow. Use mac_active_non_floating_window instead of
18341 ActiveNonFloatingWindow.
18342 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
18343 Use mac_show_hourglass and mac_hide_hourglass.
18344 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
18345 instead of GetGlobalMouse.
18346 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
18347 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
18348 Use mac_bring_window_to_front instead of BringToFront.
18349 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
18350 mactoolbox.c.
18351 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
18352 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
18353 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
18354 mactoolbox.c.
18355
18356 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
18357 (XtPointer): Move typedef from macmenu.c.
18358 (enum button_type): Move enum from macmenu.c.
18359 (widget_value): Move typedef from macmenu.c.
18360 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
18361 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
18362 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
18363 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
18364 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
18365 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
18366 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
18367 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
18368 (Selection): Move typedef from macselect.c.
18369 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
18370 macterm.c.
18371 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
18372 (mac_is_window_collapsed, mac_bring_window_to_front)
18373 (mac_send_window_behind, mac_hide_window, mac_show_window)
18374 (mac_collapse_window, mac_front_non_floating_window)
18375 (mac_active_non_floating_window, mac_activate_window)
18376 (mac_move_window_structure, mac_move_window, mac_size_window)
18377 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
18378
18379 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
18380 (enum mac_menu_kind): Move enum to mactoolbox.c.
18381 (min_menu_id): Move variable to mactoolbox.c.
18382 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
18383 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
18384 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
18385 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
18386 [TARGET_API_MAC_CARBON]: Likewise.
18387 (XtPointer): Move typedef to macgui.h.
18388 (enum button_type): Move enum to macgui.h.
18389 (widget_value): Move typedef to macgui.h.
18390 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
18391 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
18392 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
18393 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
18394 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
18395 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
18396 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
18397 (popup_activated_flag): Make variable non-static.
18398 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
18399 (add_menu_item, fill_menu, dispose_menus):
18400 Move functions to mactoolbox.c.
18401 (restore_show_help_function, menu_target_item_handler)
18402 (install_menu_target_item_handler, mac_handle_dialog_event)
18403 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
18404 [TARGET_API_MAC_CARBON]: Likewise.
18405 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
18406 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
18407 (find_and_call_menu_selection, name_is_separator): Make function
18408 non-static.
18409 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
18410 to mactoolbox.c.
18411 (set_frame_menubar): Don't call install_menu_quit_handler.
18412 (menu_item_selection): New variable.
18413 (mac_menu_show): Use create_and_show_popup_menu.
18414 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
18415 selection but set variable menu_item_selection. All uses changed.
18416 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
18417 Call install_menu_quit_handler. Move to mactoolbox.c.
18418
18419 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
18420 (Selection): Move typedef to macgui.h.
18421 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
18422 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
18423 Make variables non-static.
18424 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
18425 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
18426 Make functions non-static.
18427 (Vmac_service_selection) [MAC_OSX]: Likewise.
18428 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
18429 (mac_valid_selection_target_p, mac_clear_selection)
18430 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
18431 (mac_put_selection_value, mac_selection_has_target_p)
18432 (mac_get_selection_value, mac_get_selection_target_list)
18433 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
18434 Move functions to mactoolbox.c.
18435 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
18436 Likewise.
18437 (copy_scrap_flavor_data, mac_handle_service_event)
18438 (install_service_handler) [MAC_OSX]: Likewise.
18439 (syms_of_macselect) <Vmac_dnd_known_types>:
18440 Use mac_dnd_default_known_types.
18441
18442 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
18443 Move to mactoolbox.c.
18444 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
18445 (Fx_selection_owner_p): Add EXFUN.
18446 (install_window_handler, remove_window_handler, XSetWindowBackground):
18447 Remove externs.
18448 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
18449 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
18450 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
18451 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
18452 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
18453 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
18454 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
18455 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
18456 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
18457 (create_and_show_popup_menu, mac_get_selection_from_symbol)
18458 (mac_valid_selection_target_p, mac_clear_selection)
18459 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
18460 (mac_put_selection_value, mac_selection_has_target_p)
18461 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
18462 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
18463 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
18464 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
18465 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
18466 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
18467 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
18468 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
18469 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
18470
18471 * mactoolbox.c: New file.
18472
184732008-04-18 Jason Rumney <jasonr@gnu.org>
18474
18475 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
18476
184772008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
18478
18479 * character.c (Fmultibyte_char_to_unibyte):
18480 Return latin1 chars unchanged.
18481
18482 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
18483 relocated if it points to `name'.
18484
184852008-04-17 Kenichi Handa <handa@m17n.org>
18486
18487 * data.c (Faset): Allow setting a multibyte character in an
18488 ASCII-only unibyte string.
18489
18490 * lisp.h (STRING_SET_MULTIBYTE): New macro.
18491
184922008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
18493
18494 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
18495 done in config.h.
18496
184972008-04-16 Juanma Barranquero <lekktu@gmail.com>
18498
18499 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
18500 (Fchar_direction): Add usage in the docstring.
18501
185022008-04-15 Chong Yidong <cyd@stupidchicken.com>
18503
18504 * keyboard.c (read_key_sequence): Remove always-true checks.
18505
185062008-04-14 Jason Rumney <jasonr@gnu.org>
18507
18508 * w32font.c (w32font_open_internal): Set max_bounds.descent in
18509 compatibility struct, for better underline positioning.
18510
185112008-04-13 David Hansen <david.hansen@gmx.net>
18512
18513 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
18514 string.
18515
185162008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
18517
18518 * m/hp800.h (XUINT, XSET): Remove.
18519
185202008-04-12 Juanma Barranquero <lekktu@gmail.com>
18521
18522 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
18523 previous change.
18524
185252008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
18526
18527 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
18528 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
18529
185302008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
18531
18532 * keymap.h (map_keymap_canonical): Declare.
18533 * xmenu.c (single_keymap_panes): Use it.
18534
185352008-04-11 Glenn Morris <rgm@gnu.org>
18536
18537 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
18538 set the target's value to that of the alias.
18539
185402008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
18541
18542 * term.c (set_tty_color_mode): Left over typo.
18543
185442008-04-10 Michael Albinus <michael.albinus@gmx.de>
18545
18546 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
18547 only after check for file name handler functions. Signal, when
18548 native functionality is not supported.
18549 (syms_of_fileio): Declare it unconditionally.
18550
185512008-04-10 Jason Rumney <jasonr@gnu.org>
18552
18553 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
18554 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
18555
18556 * w32.c (logon_network_drive): Also logon to remote drives that
18557 are mapped to drive letters.
18558
185592008-04-10 Glenn Morris <rgm@gnu.org>
18560
18561 * xdisp.c (truncate-partial-width-windows): Doc fix.
18562
185632008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
18564
18565 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
18566 Move functions to minibuffer.el.
18567 (syms_of_fileio): Don't declare them.
18568
185692008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
18570
18571 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
18572 (syms_of_minibuf): Remove its initialization.
18573
18574 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
18575
185762008-04-09 Juanma Barranquero <lekktu@gmail.com>
18577
18578 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
18579
185802008-04-09 Jason Rumney <jasonr@gnu.org>
18581
18582 * makefile.w32-in (distclean): Delete makefile too.
18583 (maintainer-clean): New target.
18584
18585 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
18586
18587 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
18588 for new font backend and composite cases.
18589
185902008-04-09 Jan Djärv <jan.h.d@swipnet.se>
18591
18592 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
18593 Most of the code moved to run_timers.
18594 (do_pending_atimers): Call run_timers.
18595 (run_timers): New function.
18596
18597 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
18598 run atimers.
18599
18600 * process.c (wait_reading_process_output): The same as above.
18601
186022008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
18603
18604 * minibuf.c (last_exact_completion): Remove variable.
18605 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
18606 (complete_and_exit_1, complete_and_exit_2)
18607 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
18608 (Fdisplay_completion_list, display_completion_list_1)
18609 (Fminibuffer_completion_help, Fself_insert_and_exit)
18610 (Fexit_minibuffer, Fminibuffer_message): Move functions to
18611 minibuffer.el.
18612 (syms_of_minibuf): Remove corresponding initializations.
18613
18614 * keyboard.c (Qdeactivate_mark): New var.
18615 (command_loop_1): Use it to call `deactivate-mark'.
18616 (syms_of_keyboard): Initialize it.
18617
18618 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
18619 to another frame.
18620 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
18621 Don't call set_tty_color_mode.
18622 (store_frame_param): Reset previous_frame rather than call
18623 set_tty_color_mode.
18624 * term.c (set_tty_color_mode): Rewrite.
18625 * dispextern.h (set_tty_color_mode): New type.
18626 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
18627
186282008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
18629
18630 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
18631 for generic chars, which do not exist any more in emacs-unicode.
18632
186332008-04-08 Michael Albinus <michael.albinus@gmx.de>
18634
18635 * coding.c (detect_coding_emacs_mule)
18636 (Ffind_operation_coding_system): Fix typo.
18637
186382008-04-08 Jason Rumney <jasonr@gnu.org>
18639
18640 * w32uniscribe.c (SNAME): Extract only symbol name.
18641
18642 * w32font.h (struct w32_metric_cache): New struct.
18643 (w32font_info): Use it.
18644 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
18645 (CACHE_BLOCKSIZE): New constants.
18646
18647 * w32font.c (Qja, Qko, Qzh): New symbols.
18648 (syms_of_w32font): Initialise them.
18649 (font_matches_spec): Use them to filter by language.
18650 (recompute_cached_metrics): Remove function.
18651 (compute_metrics, clear_cached_metrics): New functions.
18652 (w32font_encode_char): Use them to manage metric cache.
18653 (w32font_text_extents): Cache metrics for all glyphs on demand.
18654 Delay converting glyph indices to WORD until needed.
18655 (w32font_open_internal): Initialize metric cache to empty.
18656 (registry_to_w32_charset): Charset should always be a symbol.
18657 (fill_in_logfont, list_all_matching_fonts): Family should
18658 always be a symbol.
18659
186602008-04-06 Jason Rumney <jasonr@gnu.org>
18661
18662 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
18663 Give up if glyph indices not supported. Use uniscribe obtained
18664 ABC widths for individual metrics. Map glyph clusters back to
18665 characters using fClusterStart flag. Return number of glyphs
18666 produced, not chars processed.
18667 (uniscribe_shape): Map char at FROM to current glyph.
18668
186692008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18670
18671 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
18672 Use SetMenuItemHierarchicalMenu.
18673
186742008-04-05 Jason Rumney <jasonr@gnu.org>
18675
18676 * image.c (pbm_load): Allow color values up to 65535.
18677 Throw an error if max_color_idx is outside the supported range.
18678 Report an error when image size is invalid.
18679 Read two bytes at a time when raw images have max_color_idx above 255.
18680
aac0c6e3
MR
186812008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
18682
18683 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
18684 append "CCL: Quitted" when the CCL program is quitted.
18685 (setup_ccl_program): Initialize ccl->quit_silently to zero.
18686
18687 * ccl.h (struct ccl_program): New member quit_silently.
18688
186892008-04-05 Chong Yidong <cyd@stupidchicken.com>
18690
18691 * search.c (compile_pattern_1): Treat non-nil and non-string of
18692 search-spaces-regexp as nil.
18693
18694 * minibuf.c (Fassoc_string): Tweak docstring.
18695
186962008-04-05 Eli Zaretskii <eliz@gnu.org>
18697
18698 * dired.c (Ffile_attributes): Support inode numbers wider than 32
18699 bits. Remove ugly WINDOWSNT-specific kludge introduced on
18700 2008-03-14 to force inode be positive.
18701
18702 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
18703 _S_* ones, since we now use our own sys/stat.h.
18704 (stat, fstat): Don't mangle the inode number.
18705 (init_user_info): Don't restrict UID and GID to 0-60000 range.
18706
187072008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
18708
18709 * frame.h (struct frame): Give one more bit to `visible' since we use
18710 values larger than 1 to indicate obscured frames on ttys.
18711
18712 * keymap.c (Qkeymap_canonicalize): New var.
18713 (Fmap_keymap_internal): New fun.
18714 (describe_map): Use keymap-canonicalize.
18715
18716 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
18717 (Fundo_boundary): Set them.
18718 (syms_of_undo): Initialize them.
18719 (record_point): Use them instead of last_point_position*.
18720 (last_undo_buffer): Change type.
18721
187222008-04-04 Jason Rumney <jasonr@gnu.org>
18723
18724 * w32font.c (w32font_text_extents): Use font's ascent and descent.
18725 (recompute_cached_metrics): Don't set ascent and descent per char.
18726
18727 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
18728 (uniscribe_check_otf): Add GC protection before consing.
18729 Rearrange loop for counting features.
18730
187312008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
18732
18733 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
18734 buffer with byte-size of source buffer.
18735
187362008-04-03 Chong Yidong <cyd@stupidchicken.com>
18737
18738 * callint.c (Fcall_interactively): Handle temporary region even
18739 when shift-select-mode is off.
18740
187412008-04-03 Jason Rumney <jasonr@gnu.org>
18742
18743 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
18744
187452008-04-03 Kenichi Handa <handa@m17n.org>
18746
18747 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
18748 (CATEGORY_MASK_UTF_16): Likewise.
18749 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
18750 binary file.
18751 (detect_coding): Add null-byte detection for a binary file.
18752 (detect_coding_system): Likewise.
18753
187542008-04-03 Jason Rumney <jasonr@gnu.org>
18755
18756 * w32uniscribe.c: New file.
18757
18758 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
18759
18760 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
18761
18762 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
18763 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
18764 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
18765 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
18766 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
18767 (Qphonetic): New symbols.
18768 (syms_of_w32font): Initialize them.
18769 (font_supported_scripts): Use them.
18770 (w32font_list_family): List all charsets.
18771 (w32font_text_extents, recompute_cached_metrics): Fix metric
18772 calculations.
18773 (w32_enumfont_pattern_entity): Make full_type a DWORD.
18774 Give opentype fonts their own format.
18775 (font_matches_spec): New arguments backend and logfont.
18776 Handle :otf spec for uniscribe backend.
18777 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
18778 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
18779
18780 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
18781 font backend.
18782 (globals_of_w32fns): Initialize uniscribe font backend.
18783
18784 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
18785 dependencies.
18786 (w32uniscribe.$(O)): New file to build.
18787 (FONT_OBJ): Include w32uniscribe.$(O).
18788 (LIBS): Add uniscribe libraries.
18789
18790 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
18791
187922008-04-02 Chong Yidong <cyd@stupidchicken.com>
18793
18794 * callint.c (Vshift_select_mode): New var.
18795 (Finteractive): Document new ^ spec.
18796 (Fcall_interactively): Call handle-shift-selection if the ^ spec
18797 is present.
18798
18799 * keyboard.c (Vthis_command_keys_shift_translated): New var.
18800 (command_loop_1): Avoid running the direct display versions of
18801 forward-char and backward-char if shift-selection may occur.
18802 (read_key_sequence): Set Vthis_command_keys_shift_translated if
18803 shift-translation takes place.
18804
18805 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
18806 avoid clobbering by define-minor-mode.
18807
18808 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
18809 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
18810
18811 * syntax.c (Fforward_word): Add ^ interactive spec.
18812
18813 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
18814 (Fscroll_right): Add ^ interactive spec.
18815
188162008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
18817
18818 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
18819
18820 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
18821
18822 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
18823
188242008-03-31 Juri Linkov <juri@jurta.org>
18825
18826 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
18827
188282008-03-30 Jan Djärv <jan.h.d@swipnet.se>
18829
18830 * gtkutil.c (xg_set_geometry): Fix indentation.
18831 (xg_resize_outer_widget): Remove.
18832 (x_wm_size_hint_off): Fix indentation.
18833 (xg_frame_set_char_size): Call flush_and_sync after
18834 gtk_window_resize.
18835 (x_wm_set_size_hint): Pass NULL as geometry window to
18836 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
18837 Add menu bar and tool bar height to base height.
18838 (xg_update_frame_menubar, free_frame_menubar)
18839 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
18840 (update_frame_tool_bar, free_frame_tool_bar):
18841 Change xg_resize_outer_widget to xg_frame_set_char_size.
18842
188432008-03-30 Michael Albinus <michael.albinus@gmx.de>
18844
18845 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
18846 (Fdbus_call_method): New parameter TIMEOUT.
18847 (dbus-send-signal): Optimize UNGCPRO call.
18848
188492008-03-29 Juri Linkov <juri@jurta.org>
18850
18851 * window.c (Fdisplay_buffer): Move call to
18852 Vsplit_window_preferred_function out of conditions that check
18853 if window is eligible for vertical splitting.
18854 When Vsplit_window_preferred_function is non-nil, call it and use
18855 its non-nil return value as window. Otherwise, continue doing
18856 vertical splitting using Fsplit_window with arg horflag=nil.
18857 (syms_of_window) <Vsplit_window_preferred_function>: Change the
18858 default value from `split-window' to nil.
18859
188602008-03-29 Juri Linkov <juri@jurta.org>
18861
18862 * callint.c (Fcall_interactively): Revert 2008-03-16 change
18863 for interactive code letters 'b' and 'B'.
18864
188652008-03-29 Eli Zaretskii <eliz@gnu.org>
18866
18867 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
18868 multibyte string.
18869
188702008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
18871
18872 * keyboard.c (pending_funcalls): New var.
18873 (timer_check): Run it.
18874 (syms_of_keyboard): Initialize it.
18875 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
18876 (Vdelete_terminal_functions): New vars.
18877 (syms_of_terminal): Initialize them.
18878 (Fdelete_terminal): Run delete-terminal-functions.
18879 * xdisp.c (safe_eval): Rewrite.
18880 (safe_call2): New fun.
18881 * frame.c (Qdelete_frame_functions): New var.
18882 (syms_of_frame): Initialize it.
18883 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
18884 * lisp.h (safe_call2, pending_funcalls): Declare.
18885
188862008-03-28 Andreas Schwab <schwab@suse.de>
18887
18888 * indent.c (Fmove_to_column): Move declaration before statements.
18889
188902008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
18891
18892 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
18893 (struct frame): Use bit fields for boolean vars.
18894
18895 * process.c (server_accept_connection): Simplify naming.
18896 (emacs_get_tty_pgrp): Use SDATA.
18897
18898 * coding.c (decode_coding_object): Fix last change.
18899
189002008-03-27 Jason Rumney <jasonr@gnu.org>
18901
18902 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
18903
189042008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
18905
18906 * charset.c (Fdefine_charset_internal): Change the way of
18907 registering charsets in Vcharset_order_list.
18908 (syms_of_charset): Make the charset `eight-bit' supplementary.
18909
189102008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
18911
18912 * regex.c (EXTEND_BUFFER): Change order of pointer addition
18913 operations, to avoid having the difference between pointers
18914 overflow.
18915
189162008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
18917
18918 * indent.c (check_display_width): New fun.
18919 (scan_for_column): Use it.
18920
18921 * data.c (syms_of_data): Mark most-positive-fixnum and
18922 most-negative-fixnum as constants.
18923
18924 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
18925
18926 * indent.c (scan_for_column): Extract from current_column_1.
18927 Merge with the same code from Fmove_to_column.
18928 (current_column_1, Fmove_to_column): Use it.
18929
189302008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
18931
18932 * keymap.c (map_keymap_internal): New fun.
18933 (map_keymap): Use it.
18934 (Fmap_keymap_internal): New fun.
18935 (Fmap_keymap): Remove left-out test from before make_save_value.
18936
18937 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
18938
18939 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
18940 Use XCAR/XCDR.
18941
18942 * process.h (struct Lisp_Process): Remove filter_multibyte.
18943 * process.c (QCfilter_multibyte): Remove.
18944 (setup_process_coding_systems): Don't use filter_multibyte.
18945 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
18946 (read_process_output): Don't adjust multibyteness to filter_multibyte.
18947 (Fset_process_filter_multibyte): Change the coding-system to
18948 approximate the previous behavior.
18949 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
18950 coding-system.
18951
18952 * coding.c (decode_coding_object): When not decoding into a buffer,
18953 obey the coding system's preference of (uni|multi)byte.
18954
189552008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
18956
18957 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
18958 every char is changed and has a different byte-length.
18959 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
18960 Fix int -> EMACS_INT.
18961
189622008-03-23 David Hansen <david.hansen@gmx.net>
18963
18964 * dbusbind.c (xd_read_message): Remove extra copying of message
18965 strings. Check for NULL `interface' or `member'.
18966
189672008-03-22 Eli Zaretskii <eliz@gnu.org>
18968
18969 * w32.c (readdir): If FindFirstFile/FindNextFile return in
18970 cFileName a file name that includes `?' characters, use the 8+3
18971 alias in cAlternateFileName instead.
18972
189732008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
18974
18975 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
18976
189772008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
18978
18979 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
18980 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
18981 work on current_buffer only instead (that was already the case
18982 for some of the code anyway).
18983 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
18984 (temp_set_point, temp_set_point_both): Use EMACS_INT.
18985 (SET_PT, SET_PT_BOTH): Adjust.
18986 * intervals.h (set_point, temp_set_point, set_point_both)
18987 (temp_set_point_both): Remove redundant declarations.
18988
189892008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
18990
18991 * fileio.c (Finsert_file_contents):
18992 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
18993 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
18994 when buffer != current_buffer anyway.
18995
189962008-03-20 Andreas Schwab <schwab@suse.de>
18997
18998 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
18999 as default.
19000
190012008-03-19 Jason Rumney <jasonr@gnu.org>
19002
19003 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
19004 (syms_of_w32fns): Initialize them.
19005 (HOURGLASS_ID): New constant.
19006 (x_window_to_frame): Don't check hourglass_window.
19007 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
19008 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
19009 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
19010 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
19011 Only change the cursor if hourglass is not active.
19012 (Fx_create_frame): Initialize frame's current_cursor.
19013 (hourglass_atimer): Remove.
19014 (hourglass_started): New function.
19015 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
19016 (show_hourglass): Adapt to w32, changing argument to frame.
19017
19018 * w32term.h (struct w32_output): Remove hourglass_window.
19019 Add current_cursor.
19020
19021 * eval.c (call_debugger, Fsignal):
19022 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
19023 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
19024 (Fexecute_extended_command, cancel_hourglass_unwind):
19025 * minibuf.c (read_minibuf):
19026 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
19027
190282008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
19029
19030 * window.c (run_funs): New fun.
19031 (run_window_configuration_change_hook): Use it to run the buffer-local
19032 and the global part of the hook.
19033
19034 * xdisp.c (format_mode_line_unwind_data): Add window argument.
19035 (unwind_format_mode_line): Restore selected window.
19036 (x_consider_frame_title, Fformat_mode_line): Set selected window.
19037
190382008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
19039
19040 * editfns.c (Fchar_equal): Check they are valid characters.
19041
19042 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
19043
190442008-03-17 Andreas Schwab <schwab@suse.de>
19045
19046 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
19047 against a charset.
19048
19049 * lisp.h (Fbuffer_list): Declare.
19050
190512008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 19052
aac0c6e3
MR
19053 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
19054 handlebox_widget is != 0.
19055
190562008-03-16 Juri Linkov <juri@jurta.org>
19057
19058 * callint.c (Fcall_interactively): For interactive code letters
19059 'b' and 'B' put the buffer list into the list of default "future"
19060 values of the minibuffer.
19061
190622008-03-16 Andreas Schwab <schwab@suse.de>
19063
19064 * keyboard.c (read_key_sequence): Fix downcasing of letters with
19065 modifiers.
19066
19067 * regex.c (re_match_2_internal): Correct matching of a charset
19068 against latin-1 characters.
19069
190702008-03-16 Kenichi Handa <handa@m17n.org>
19071
19072 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
19073 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
19074 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
19075 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
19076 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
19077 CHAR_STRING_ADVANCE.
19078 (produce_chars): Fix for the case that the source and the
19079 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
19080 instead of CHAR_STRING_ADVANCE.
19081 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
19082 STRING_CHAR_ADVANCE.
19083
190842008-03-15 Andreas Schwab <schwab@suse.de>
19085
19086 * regex.c (re_match_2_internal): Correct matching of eight bit
19087 characters in unibyte strings.
19088
190892008-03-15 Martin Rudalics <rudalics@gmx.at>
19090
19091 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
19092 at end of range when it coincides with the end of the buffer.
19093
190942008-03-14 Eli Zaretskii <eliz@gnu.org>
19095
19096 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
19097
19098 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
19099
191002008-03-14 Jason Rumney <jasonr@gnu.org>
19101
19102 * editfns.c (initial_tz): New variable.
19103 (syms_of_editfns): Initialize it.
19104 (Fset_time_zone_rule): Set it when first called.
19105 Use it when TZSTRING is nil.
19106
19107 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
19108 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
19109 (monitor_from_point_fn, get_monitor_info_fn): New globals.
19110 (globals_of_w32fns): Initialize them.
19111 (compute_tip_xy): Use them to position tooltips.
19112
191132008-03-14 Glenn Morris <rgm@gnu.org>
19114
19115 * emacs.c (main): Revert previous change.
19116 (standard_args): Revert -internal-script back to -scriptload,
19117 and remove the long-option form.
19118
191192008-03-13 Glenn Morris <rgm@gnu.org>
19120
19121 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
19122 Remove option -enable-font-backend.
19123
191242008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
19125
19126 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
19127
191282008-03-11 Jan Djärv <jan.h.d@swipnet.se>
19129
19130 * xterm.c (x_connection_closed): For GTK: If this is the last
19131 terminal just exit without closing the display.
19132
191332008-03-11 Jason Rumney <jasonr@gnu.org>
19134
19135 * w32font.c (w32font_full_name): Use floor to round.
19136
f0131492 191372008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
19138
19139 * sound.c (alsa_configure): Declare vol at beginning of block.
19140
19141 * fontset.c (Ffontset_info): Remove extra semicolon.
19142
191432008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
19144
19145 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
19146 size of resulting string.
19147
191482008-03-10 Jason Rumney <jasonr@gnu.org>
19149
19150 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
19151
191522008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19153
19154 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
19155 Don't pretend as if characters with display property haven't been
19156 consumed for string-replacing-string case.
19157
191582008-03-08 Kim F. Storm <storm@cua.dk>
19159
19160 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
19161 (get_next_display_element, next_element_from_string)
19162 (next_element_from_ellipsis, next_element_from_buffer): Use it.
19163
191642008-03-08 Andreas Schwab <schwab@suse.de>
19165
19166 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
19167
191682008-03-06 Jason Rumney <jasonr@gnu.org>
19169
19170 * w32font.c (w32_registry): Take font_type argument. Use ANSI
19171 when charset not specified. Only translate ANSI to unicode when
19172 font_type is truetype.
19173 (w32font_coverage_ok): New function.
19174 (add_font_entity_to_list): Use it to filter unsuitable fonts.
19175
191762008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
19177
19178 * lread.c (Fread_char): Resolve modifiers.
19179 (Fread_char_exclusive): Likewise.
19180
19181 * character.c (char_resolve_modifier_mask): New function.
19182 (char_string): Use char_resolve_modifier_mask.
19183 (Fchar_resolve_modifiers): New function.
19184 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
19185 function.
19186
191872008-03-04 Jason Rumney <jasonr@gnu.org>
19188
19189 * makefile.w32-in: Always include w32font.c in the build.
19190 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
19191
191922008-03-04 Andreas Schwab <schwab@suse.de>
19193
19194 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
19195 (versionclean): Likewise.
19196
191972008-03-04 Juanma Barranquero <lekktu@gmail.com>
19198
19199 * .cvsignore: Add oo.
19200
192012008-03-03 Andreas Schwab <schwab@suse.de>
19202
19203 * coding.c (decode_coding_object): Inhibit gap shrinking while
19204 decoding in place.
19205
192062008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
19207
19208 * w32term.c: Remove unused include "gnu.h".
19209 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
19210
19211 * gnu.h: Rename to ...
19212 * emacs-icon.h: ... this.
19213 * xterm.c: Use emacs-icon.h instead of gnu.h.
19214 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
19215
192162008-03-03 Juanma Barranquero <lekktu@gmail.com>
19217
19218 * w32font.c: Include math.h.
19219
192202008-03-03 Jason Rumney <jasonr@gnu.org>
19221
19222 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
19223 Compute options separately.
19224 (w32font_open_internal): Set glyph_idx before caching metrics.
19225
19226 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
19227 Define if system headers don't.
19228 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
19229 (w32font_encode_char): Don't declare here.
19230
19231 * w32font.c (Quniscribe, QCformat): New symbols.
19232 (syms_of_w32font): Define them.
19233 (w32font_has_char): Indicate uncertainty.
19234 (w32font_encode_char): Encode as glyph point. Make static.
19235 (recompute_cached_metrics): New function.
19236 (w32font_open_internal): Use it. Set font to use glyph points
19237 initially. Set format based on type of font.
19238 (w32font_text_extents, w32font_draw): Optionally use glyph points.
19239 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
19240 on it. Set format based on information available here.
19241 (add_font_entity_to_list): Identify backend based on opentype_only.
19242
192432008-03-02 Andreas Schwab <schwab@suse.de>
19244
19245 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
19246
19247 * coding.c (decode_coding_big5, produce_chars):
19248 Fix typos in last change.
19249
192502008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
19251
19252 * gnu.h: New icon.
19253
192542008-03-02 Kenichi Handa <handa@m17n.org>
19255
19256 * coding.c (decode_coding_utf_8): When eol-type of CODING is
19257 `dos', don't decode '\r' if that is the last in the source.
19258 (decode_coding_utf_16, decode_coding_emacs_mule)
19259 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19260 (decode_coding_raw_text, decode_coding_charset): Likewise.
19261 (produce_chars): Don't decode EOL here. Use EMACS_INT.
19262
192632008-03-01 Jason Rumney <jasonr@gnu.org>
19264
19265 * w32font.c (w32font_full_name): Report point size for scalable fonts.
19266
192672008-03-01 Kim F. Storm <storm@cua.dk>
19268
19269 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
19270
192712008-03-01 Jason Rumney <jasonr@gnu.org>
19272
19273 * w32font.c (w32font_full_name): New function.
19274 (w32font_open_internal): Use it.
19275
192762008-03-01 Kim F. Storm <storm@cua.dk>
19277
19278 * dispnew.c (line_draw_cost): Fix invalid glyph check.
19279
192802008-03-01 Jason Rumney <jasonr@gnu.org>
19281
19282 * font.c (font_unparse_fcname): Increase len when style is a symbol.
19283
192842008-03-01 Jan Djärv <jan.h.d@swipnet.se>
19285
19286 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
19287 xg_frame_resized when the event is for the edit widget.
19288
19289 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
19290
19291 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
19292 set_char_size.
19293 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
19294 operations on widgets here. Just set frame size if needed.
19295 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
19296 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
19297 (x_wm_set_size_hint): Set size hints on the edit widget only, not
19298 the whole frame.
19299 (xg_create_tool_bar): Move attachment of the tool bar to
19300 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
19301 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
19302
193032008-03-01 Jason Rumney <jasonr@gnu.org>
19304
19305 * w32fns.c (w32_msg_pump): Disable debug code.
19306
193072008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19308
19309 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
19310
193112008-02-29 Chong Yidong <cyd@stupidchicken.com>
19312
19313 * xdisp.c (next_overlay_string): Don't set
19314 overlay_strings_at_end_processed_p if we're currently reading from
19315 a display string.
19316
193172008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
19318
19319 * xdisp.c (get_overlay_strings_1): Fix typo.
19320
193212008-02-29 Chong Yidong <cyd@stupidchicken.com>
19322
19323 * xdisp.c (get_overlay_strings_1): Add missing argument type.
19324
193252008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
19326
19327 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
19328
19329 * xdisp.c (display_mode_element): Cancel the previous change.
19330 (decode_mode_spec): Likewise.
19331 (handle_auto_composed_prop): Don't make composition if it->string
19332 is a string.
19333
193342008-02-27 Kim F. Storm <storm@cua.dk>
19335
19336 * lisp.h (GLYPH): Change type from int to struct with separate char
19337 and face_id members.
19338 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
19339 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
19340 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
19341 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
19342 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
19343 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
19344 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
19345 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
19346 handle new Lisp glyph code encoding, either an integer or a cons.
19347
19348 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
19349 (GLYPH_ALIAS): Delete.
19350 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
19351 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
19352 (GLYPH_FROM_CHAR): Replace macro by ...
19353 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
19354
19355 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
19356 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
19357 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
19358 (GLYPH_INVALID_P): New macro.
19359 (spec_glyph_lookup_face): Update prototype.
19360
19361 * dispnew.c (line_draw_cost): Adapt to new glyph type.
19362 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
19363 new glyph code encoding.
19364 (spec_glyph_lookup_face): No return value; update passed glyph instead.
19365 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
19366
19367 * xdisp.c (get_next_display_element, next_element_from_display_vector):
19368 Adapt to new glyph type and new glyph code encoding.
19369
19370 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
19371
19372 * indent.c (current_column, current_column_1, Fmove_to_column)
19373 (compute_motion): Adapt to new glyph code encoding.
19374
19375 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
19376
193772008-02-27 Chong Yidong <cyd@stupidchicken.com>
19378
19379 * process.c (wait_reading_process_output): Check for window
19380 changes caused by timers.
19381 Suggested by Johan Bockgård.
19382
193832008-02-27 Glenn Morris <rgm@gnu.org>
19384
19385 * emacs.c (USAGE1): Add `--disable-font-backend'.
19386
193872008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
19388
19389 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
19390 is made to the buffer.
19391
193922008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
19393
19394 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
19395 (face_at_string_position):
19396 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
19397 (face_at_string_position):
19398 * xdisp.c (display_string, next_overlay_change):
19399 * buffer.h (overlays_at):
19400 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
19401 Update callers.
19402
194032008-02-26 Chong Yidong <cyd@stupidchicken.com>
19404
19405 * editfns.c (Fformat): Doc fix.
19406
194072008-02-26 Juanma Barranquero <lekktu@gmail.com>
19408
19409 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
19410 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
19411 (Ffont_otf_alternates, Fquery_font): Doc fixes.
19412
194132008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
19414
19415 * buffer.c (Fbuffer_swap_text): New function.
19416 (syms_of_buffer): Defsubr it.
19417
194182008-02-25 Chong Yidong <cyd@stupidchicken.com>
19419
19420 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
19421
194222008-02-25 Jason Rumney <jasonr@gnu.org>
19423
19424 * w32font.c (w32font_draw): Draw one character at a time when padding.
19425
194262008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
19427
19428 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
19429 Handle a nil arg. Use run_window_configuration_change_hook.
19430 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
19431 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
19432 Use run_window_configuration_change_hook.
19433
194342008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
19435
19436 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
19437 1-pixel width.
19438
194392008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
19440
19441 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
19442 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
19443 if the glyph in the font is zero pixel with.
19444
19445 * dispextern.h (struct glyph_string): New member padding_p.
19446
19447 * w32font.c (w32font_draw): Pay attention to s->padding_p.
19448
19449 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
19450
19451 * xfont.c (xfont_draw): Pay attention to s->padding_p.
19452
19453 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
19454
19455 * font.c: If the font driver doesn't have `shape' function, return Qnil.
19456
194572008-02-25 Jason Rumney <jasonr@gnu.org>
19458
19459 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
19460
194612008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
19462
19463 Allow fine-grained image-cache flushing.
19464 * dispextern.h (struct image): Add `dependencies' field.
19465 (clear_image_caches): Change arg to Lisp_Object.
19466 * image.c (make_image): Initialize `dependencies' field.
19467 (clear_image_cache): Change arg to allow fine-grained flushing.
19468 Perform the flush even if image-cache-eviction-delay is nil.
19469 (clear_image_caches): Change arg to Lisp_Object.
19470 (Fclear_image_cache): Expand meaning of the argument.
19471 (mark_image): Mark `dependencies' field.
19472 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
19473 (lface_hash): Use XHASH rather than XFASTINT.
19474 (face_at_buffer_position): Fix int -> EMACS_INT position.
19475 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
19476 (select_frame_for_redisplay): Remove code duplication.
19477 (redisplay_internal): Adapt arg to call to clear_image_caches.
19478
194792008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
19480
19481 * s/vms4-0.h:
19482 * s/vms4-2.h:
19483 * s/vms4-4.h:
19484 * s/vms5-5.h: Remove, unused.
19485
19486 * s/irix5-2.h:
19487 * s/irix6-0.h:
19488 * s/riscos5.h:
19489 * s/mach-bsd4-3.h:
19490 * m/mips4.h: Remove files for obsolete systems.
19491
19492 * Makefile.in:
19493 * filelock.c:
19494 * unexmips.c:
19495 * m/hp9000s300.h:
19496 * m/iris4d.h:
19497 * s/aix3-1.h:
19498 * s/hpux.h:
19499 * s/msdos.h:
19500 * s/usg5-0.h:
19501 * s/usg5-2-2.h:
19502 * s/usg5-2.h:
19503 * s/usg5-3.h: Remove references to obsolete variables.
19504
19505 * s/irix5-0.h: Remove, move all the contents ...
19506 * s/irix6-5.h: ... here. Simplify.
19507 * config.in: Regenerate.
19508
195092008-02-24 Jason Rumney <jasonr@gnu.org>
19510
19511 * w32term.c (x_draw_glyph_string_background): Clear the background
19512 manually when cleartype is in use.
19513 (x_draw_glyph_string_foreground): Draw text transparently when
19514 cleartype is in use.
19515
19516 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
19517 a font into it unless we have to.
19518
195192008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
19520
19521 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
19522 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 19523
aac0c6e3
MR
195242008-02-18 Jason Rumney <jasonr@gnu.org>
19525
19526 * w32fns.c (Fw32_shell_execute): Encode parameters.
19527
195282008-02-09 Eli Zaretskii <eliz@gnu.org>
19529
19530 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
19531
195322008-02-05 Juanma Barranquero <lekktu@gmail.com>
19533
19534 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
19535
195362008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
19537
19538 * xterm.c (x_set_offset): Don't change the gravity if
19539 CHANGE_GRAVITY is -1.
19540
195412008-02-23 Chong Yidong <cyd@stupidchicken.com>
19542
19543 * fileio.c (auto_save_error_occurred): New var.
19544 (auto_save_error): Set it.
19545 (Fdo_auto_save): Don't overwrite the error message if an auto-save
19546 error occurred.
19547
195482008-02-23 Eli Zaretskii <eliz@gnu.org>
19549
19550 * w32.c (globals_of_w32): Add initializations for
19551 g_b_init_get_sid_sub_authority and
19552 g_b_init_get_sid_sub_authority_count.
19553
195542008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
19555
19556 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
19557 (font_parse_xlfd): Use them for sanity check.
19558 (Finternal_set_font_style_table): Make sure the table is bijective.
19559
19560 Consolidate the image_cache to the terminal struct.
19561 * termhooks.h (P_): Remove redundant def.
19562 (struct terminal): New field `image_cache'.
19563 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
19564 of FRAME_X_IMAGE_CACHE.
19565 * xterm.h (struct x_display_info): Remove image_cache field.
19566 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
19567 * w32term.h (struct w32_display_info): Remove image_cache field.
19568 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
19569 * macterm.h (struct mac_display_info): Remove image_cache field.
19570 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
19571 * xterm.c (x_term_init):
19572 * w32term.c (w32_term_init):
19573 * macterm.c (mac_term_init): Set the image_cache in the terminal.
19574 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
19575 Remove declarations.
19576 (clear_image_caches, mark_image_cache): New declarations.
19577 * xfaces.c (clear_face_cache):
19578 * xdisp.c (redisplay_internal): Use clear_image_caches.
19579 * image.c (clear_image_cache): Don't check that a frame is on
19580 a window-system before checking if it shares the same cache.
19581 (clear_image_caches): New function.
19582 (Fclear_image_cache): Use it.
19583 (mark_image): Move from allo.c.
19584 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
19585 * alloc.c (mark_image, mark_image_cache): Move to image.c.
19586 (mark_object): Don't call mark_image_cache for frames.
19587 (mark_terminals): Call mark_image_cache.
19588
19589 * lisp.h (Fdelete_terminal): Declare.
19590
19591 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
19592 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
19593 wrong_type_argument.
19594
195952008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
19596
19597 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
19598 malayalam.el, and tamil.el. Add sinhala.el.
19599
196002008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
19601
19602 * xterm.c (x_connection_closed): Consolidate identical tests.
19603 (x_delete_terminal): Don't crash if called via x_connection_closed.
19604
196052008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
19606
19607 * xdisp.c (decode_mode_spec): New arg string.
19608 (display_mode_element): Adjust for the above change.
19609
196102008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
19611
19612 * callint.c (Fcall_interactively): Use AREF.
19613
196142008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
19615
19616 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
19617
196182008-02-18 Jan Djärv <jan.h.d@swipnet.se>
19619
19620 * xfns.c (Fx_show_tip): Set string to " " if empty.
19621
196222008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
19623
19624 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
19625 with Qt.
19626
196272008-02-17 Kenichi Handa <handa@m17n.org>
19628
19629 * ftfont.c (ftfont_shape): Return Lispy number.
19630
19631 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
19632 for GCs.
19633 (Finternal_set_font_selection_order): Call font_update_sort_order
19634 only when enable_font_backend is set.
19635 (realize_x_face): Set face->font_info to that of default face only
19636 when enable_font_backend is set.
19637
19638 * xdisp.c (handle_composition_prop): Set it->c to the fist
19639 character of the composed region.
19640 (fill_composite_glyph_string): Set base_face->font_info to
19641 s->font_info. Get a face for ascii from base_face->ascii_face.
19642 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
19643 with a face already decided.
19644 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
19645 non-negative.
19646 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
19647 call font_prepare_composition unconditionally.
19648
19649 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
19650
19651 * xterm.h (struct x_display_info): New member font.
19652
19653 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
19654 (x_set_mouse_face_gc, x_new_font): Likewise.
19655 (x_term_init): Setup display_info->font.
19656 (x_delete_terminal): Free display_info->font.
19657
19658 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
19659
19660 * ftxfont.c (ftxfont_default_fid): Delete it.
19661 (ftxfont_open): Set xfont->fid to 0.
19662 (ftxfont_end_for_frame): Clear data specific to the frame and the
19663 font-driver.
19664
19665 * xftfont.c (xftfont_default_fid): Delete it.
19666 (xftfont_open): Set xfont->fid to 0.
19667
19668 * fontset.c (FONTSET_OBJLIST): New macro.
19669 (fontset_find_font): Update font-object list of the fontset.
19670 (free_realized_fontset): New function.
19671 (free_face_fontset): Call free_realized_fontset.
19672 (Ffont_info): Call font_close_object only when enable_font_backend
19673 is set.
19674
19675 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
19676 [HAVE_NTGUI]: Include w32term.h.
19677 [MAC_OS]: Include macterm.ch.
19678 (font_otf_ValueRecord): Use make_number.
19679 (font_finish_cache): Fix handling of reference count.
19680 (font_clear_cache): Update num_fonts.
19681 (font_open_entity): Update smallest_char_width and
19682 smallest_font_height of the frame.
19683 (font_close_object): Update num_fonts.
19684 (Fclear_font_cache): Fix finding the target cache data.
19685
196862008-02-16 Glenn Morris <rgm@gnu.org>
19687
19688 * fontset.c (Finternal_char_font): Fix compilation warning.
19689
196902008-02-16 Eli Zaretskii <eliz@gnu.org>
19691
19692 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
19693 instead of char arrays. Enlarge the size of array passed to
19694 get_token_information.
19695
19696 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
19697 warnings.
19698
196992008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
19700
19701 * .gdbinit: Don't set `args', it breaks gdb --args.
19702
197032008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
19704
19705 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
19706 within a narrowed buffer.
19707
197082008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
19709
19710 * coding.c (decode_coding_object, encode_coding_object):
19711 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
19712
197132008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
19714
19715 * coding.c (coding_set_destination): Use BEG_BYTE rather than
19716 hardcoding 1.
19717 (detect_coding_system):
19718 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
19719 (string_char_to_byte, string_byte_to_char, insert_from_gap):
19720 * insdel.c (insert_from_gap):
19721 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
19722 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
19723 (string_to_multibyte):
19724 * character.c (chars_in_text, multibyte_chars_in_text):
19725 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
19726
19727 * character.h (FETCH_STRING_CHAR_ADVANCE)
19728 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
19729 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
19730 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
19731
19732 * casefiddle.c (casify_region): Only call after-change and composition
19733 functions on the part of the region that was changed.
19734
19735 * keyboard.c (read_avail_input):
19736 * frame.c (Fdelete_frame): Call Fdelete_terminal.
19737
197382008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
19739
19740 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
19741 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
19742
197432008-02-11 Juanma Barranquero <lekktu@gmail.com>
19744
19745 * w32menu.c (push_submenu_start, push_submenu_end)
19746 (push_left_right_boundary, push_menu_pane, push_menu_item):
19747 * keyboard.c (read_key_sequence): Don't pass args with side effects
19748 to AREF, it fails when compiling with -DENABLE_CHECKING.
19749
197502008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
19751
19752 * Makefile.in (${lispsource}international/charprop.el):
19753 Delete this target.
19754
19755 * search.c (boyer_moore): Fix incorrect synching of the trunk and
19756 emacs-unicode-2.
19757
197582008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
19759
19760 * terminal.c (Fdelete_terminal): Clean up the `force' path.
19761
197622008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
19763
19764 * frame.c (Qnoelisp): New symbol.
19765 (syms_of_frame): Initialize it.
19766 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
19767 harmless Elisp code, from a strong `force' from x_connection_closed.
19768 * frame.h (Qnoelisp): Declare.
19769 * xterm.c (x_connection_closed): Pass `noelisp'.
19770
19771 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
19772 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
19773 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
19774 rather than `int' for the type of `type'.
19775
197762008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
19777
19778 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
19779
19780 * Makefile.in (GNUC): Remove support for gcc-1.x.
19781
197822008-02-10 Richard Stallman <rms@gnu.org>
19783
19784 * lisp.h (ASET): Use AREF, not ASLOT.
19785
197862008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
19787
19788 * lisp.h (ASET): Check bounds.
19789
197902008-02-10 Glenn Morris <rgm@gnu.org>
19791
19792 * buffer.c (mode-name): Doc fix.
19793
197942008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
19795
19796 * Makefile.in:
19797 * emacs.c:
19798 * gmalloc.c:
19799 * keyboard.c:
19800 * lisp.h:
19801 * m/ibm370aix.h:
19802 * process.c:
19803 * regex.c:
19804 * s/hpux.h:
19805 * sysdep.c:
19806 * sysselect.h:
19807 * systty.h:
19808 * unexec.c:
19809 * w32term.c:
19810 * xsmfns.c:
19811 * xterm.c: Remove code that deals with obsolete variables.
19812
19813 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
19814
19815 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
19816 nothing else needs it anymore.
19817
198182008-02-09 Eli Zaretskii <eliz@gnu.org>
19819
19820 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
19821 instead of unibyte_char_to_multibyte.
19822
198232008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
19824
19825 * s/gnu-linux.h: Remove commented out code.
19826
19827 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
19828
19829 * Makefile.in: Update what RMS says about using autoconf.
19830 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
19831 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
19832 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
19833 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
19834
198352008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
19836
19837 * keymap.c (Fkey_description): Move side effect outside of macro call.
19838
19839 * xfaces.c (Finternal_make_lisp_face):
19840 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
19841
19842 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
19843 (syms_of_fontset): Use ASET.
19844
19845 * fns.c (concat): Move side effect outside of macro call.
19846 (hash_clear): Use ASET.
19847
198482008-02-08 Richard Stallman <rms@gnu.org>
19849
19850 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
19851 If FORCE, and frame has a surrogate minibuffer for another frame,
19852 delete the other frame first.
19853
198542008-02-07 Timo Savola <timo.savola@iki.fi>
19855
19856 * xterm.c (x_detect_focus_change): Handle embed client message.
19857 (handle_one_xevent): Ditto.
19858 (handle_one_xevent): If embedded and we get a button press/release,
19859 request focus.
19860 (xembed_set_info, xembed_send_message): New functions.
19861 (x_make_frame_visible): Call xembed_set_info if embedded.
19862 (x_make_frame_invisible): Call xembed_set_info if embedded.
19863 (x_term_init): Initialize Xatom_XEMBED.
19864 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
19865 (x_iconify_frame): Ditto.
19866
19867 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
19868 (enum xembed_info, enum xembed_message, enum xembed_focus)
19869 (enum xembed_modifier, enum xembed_accelerator): New.
19870 (xembed_set_info, xembed_send_message): Declare.
19871 (FRAME_X_EMBEDDED_P): New.
19872
19873 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
19874 gtk_plug_new.
19875
19876 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
19877 window ID of a frame.
19878 (x_window): Reparent frame if embedded.
19879 (Fx_create_frame): Don't set border width if embedded.
19880
19881 * emacs.c (USAGE3): Add --parent-id.
19882 (standard_args): Ditto.
19883
198842008-02-07 Jan Djärv <jan.h.d@swipnet.se>
19885
19886 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
19887
198882008-02-07 Jim Meyering <meyering@redhat.com>
19889
19890 Use "do...while (0)", not "if (1)...else" in macro definitions.
19891 The latter provokes a warning from gcc about the empty else, when
19892 followed by ";". Also, without that trailing semicolon, it would
19893 silently swallow up any following statement.
19894 * syntax.h (SETUP_SYNTAX_TABLE)
19895 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
19896 * buffer.h (DECODE_POSITION): Likewise.
19897 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
19898 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
19899 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
19900 (FETCH_CHAR_ADVANCE): Likewise.
19901 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
19902
199032008-02-07 Jim Meyering <meyering@redhat.com>
19904
19905 * lread.c [lint]: Don't include <sys/inode.h>.
19906
199072008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
19908
19909 * xselect.c (x_handle_dnd_message):
19910 * xmenu.c (digest_single_submenu, xmenu_show):
19911 * xdisp.c (with_echo_area_buffer_unwind_data)
19912 (format_mode_line_unwind_data, unwind_format_mode_line)
19913 (display_menu_bar):
19914 * eval.c (Ffetch_bytecode):
19915 * doc.c (store_function_docstring):
19916 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
19917 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
19918 * buffer.c (add_overlay_mod_hooklist): Use ASET.
19919
199202008-02-07 Kenichi Handa <handa@m17n.org>
19921
19922 * ftxfont.c (ftxfont_open): Don't set
19923 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
19924
19925 * ftfont.c (ftfont_open): Fix previous change.
19926
199272008-02-06 Jason Rumney <jasonr@gnu.org>
19928
19929 * w32font.c (w32font_text_extents): Fill in lbearing metric.
19930 Use cached metrics for ASCII characters.
19931 (w32font_open_internal): Don't set font's owning_frame.
19932 Cache metrics for ASCII characters.
19933
19934 * w32font.h (struct w32font_info): Add ascii_metrics.
19935 Remove owning_frame.
19936
199372008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
19938
19939 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
19940 to negative value.
19941
19942 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
19943
19944 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
19945
19946 * charset.c (syms_of_charset): Set QCtest and Qeq.
19947
199482008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
19949
19950 * process.c (Fstart_process):
19951 * callproc.c (Fcall_process): Handle the case where
19952 Funhandled_file_name_directory returns nil.
19953
19954 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
19955 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
19956 * font.c (check_gstring): Use them and AREF to access the vector before
19957 we know it's really a gstring.
19958 (Ffont_shape_text): Fix typo.
46e722a9 19959 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
19960
19961 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
19962 Declare.
19963
19964 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
19965
199662008-02-05 Jason Rumney <jasonr@gnu.org>
19967
19968 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
19969 Set smallest_font_height and smallest_char_width in display info.
19970
199712008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
19972
19973 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
19974
199752008-02-05 Miles Bader <miles@gnu.org>
19976
19977 * xfaces.c (get_lface_attributes, merge_named_face)
19978 (lookup_named_face, lookup_derived_face, realize_named_face):
19979 Revert 2008-02-01 change by cyd@stupidchicken.com.
19980
199812008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
19982
19983 * fontset.c (Ffontset_info): Handle the case of inhibitting the
19984 fallback fonts.
19985 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
19986
199872008-02-04 Jason Rumney <jasonr@gnu.org>
19988
19989 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
19990 set full_name.
19991 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
19992
199932008-02-03 Jason Rumney <jasonr@gnu.org>
19994
19995 * makefile.w32-in (OBJ1): Include font.o here.
19996 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
19997
199982008-02-02 Jason Rumney <jasonr@gnu.org>
19999
20000 * makefile.w32-in (temacs): Bump EMHEAP to 21.
20001
200022008-02-01 Jason Rumney <jasonr@gnu.org>
20003
20004 * s/cygwin.h: Define VIRT_ADDR_VARIES.
20005
20006 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
20007
200082008-02-01 Andreas Schwab <schwab@suse.de>
20009
20010 * Makefile.in (shortlisp, lisp): Update for rename of
20011 ../lisp/language/myanmar.el.
20012
200132008-02-01 Chong Yidong <cyd@stupidchicken.com>
20014
20015 * xfaces.c (get_lface_attributes): Delete function.
20016 (merge_named_face, lookup_named_face, lookup_derived_face)
20017 (realize_named_face): Call lface_from_face_name directly, and use
20018 the fact that merge_face_vectors does not alter its FROM argument.
20019
200202008-02-01 Jason Rumney <jasonr@gnu.org>
20021
20022 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
20023 input in the default locale. Handle non-Unicode multibyte input.
20024
200252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20026
20027 * fontset.c (reorder_font_vector): Exclude nil elements from the
20028 font group. Don't try multiple fonts.
20029 (fontset_font): Adjust for the above change.
20030 (Finternal_char_font): Return nil if the found font doesn't
20031 contain the character ch.
20032
20033 * Makefile.in (lisp, shortlisp): Add cham.el.
20034
200352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20036
20037 * font.h (FONTP): Make it return 1 also for a font-object.
20038
20039 * .gdbinit (xfontset): New function.
20040
20041 * font.c (font_find_for_lface): Check if the character C is
20042 supported or not only for the first font.
20043
20044 * fontset.c (reorder_font_vector): Fix typo.
20045 (fontset_find_font): Don't add a font-spec specifying a script.
20046 Use 0 (not Qt) for the indication of empty font-group. Change the
20047 format of RFONT-DEF. Return Qt if no font in the font-group
20048 support the character.
20049 (fontset_font): Adjust for the above change. If no font was
20050 found the character, remember that.
20051 (face_for_char): Adjust for the change of RFONT-DEF.
20052 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
20053 no font for the target.
20054 (Finternal_char_font): Adjust for the change of RFONT-DEF.
20055
200562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20057
20058 * font.c (font_load_for_face): Handle the case that the font in
20059 face->lface is a string.
20060
200612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20062
20063 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
20064
200652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20066
20067 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
20068 Fix previous change. If the frame is not on a window system,
20069 signal an error.
20070
200712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20072
20073 * coding.c (decode_coding_object, encode_coding_object): Adjust
20074 marker positions after conversion.
20075
20076 * lisp.h (struct Lisp_Marker): New member need_adjustment.
20077
200782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20079
20080 * font.c (font_find_for_lface): Fix the handling of the return
20081 value of font_has_char.
20082 (Ffont_shape_text): Fix previous change.
20083
20084 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
20085 (fontset_ref_and_range): Delete it.
20086 (fontset_find_font): Call char_table_ref_and_range instead of
20087 FONTSET_REF_AND_RANGE.
20088 (make_fontset): Don't setup font groups of Latin here.
20089 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
20090 (new_fontset_from_font): Make the specified font the default for
20091 all Latin characters.
20092
200932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20094
20095 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
20096 is on a window system before accessing the fontset of the frame.
20097
200982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20099
20100 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
20101
20102 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
20103 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
20104
20105 * font.c (Ffont_shape_text): If the font driver doesn't have a
20106 shaper function, make zero-width glyphs to have at least one-pixel
20107 width. Fix setting of `to' field of glyphs.
20108
201092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20110
20111 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
20112 glyphs.
20113
20114 * font.h (struct font_driver): Improve docstring of member `shape'.
20115
201162008-02-01 Kenichi Handa <handa@m17n.org>
20117
20118 * composite.c (syms_of_composite): Fix docstring of
20119 auto-composition-function.
20120
20121 * font.h (LGLYPH_SIZE): New macro.
20122
20123 * font.c (Ffont_fill_gstring): Stop filling when a character not
20124 supported by the font is found.
20125 (Ffont_shape_text): When a shape callback function returns nil,
20126 try at most two more times with larger gstring.
20127 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
20128
20129 * xdisp.c (handle_auto_composed_prop): Change the argument to
20130 auto-composition-function.
20131
20132 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
20133 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
20134 Lispy glyph and store it in the lgstring.
20135
20136 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
20137
20138 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
20139
201402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20141
20142 * font.c (Ffont_shape_text): Avoid unnecessary composition.
20143
20144 * fontset.c (Vfont_encoding_charset_alist): New variable.
20145 (syms_of_fontset): DEFVAR it.
20146 (reorder_font_vector, fontset_find_font): Optimize for the case of
20147 no need of reordering.
20148 (face_for_char): Map the charset property by
20149 Vfont_encoding_charset_alist.
20150
201512008-02-01 Jason Rumney <jasonr@gnu.org>
20152
20153 * w32font.c (logfonts_match): Don't check adstyle here.
20154 (font_matches_spec): Check here against physical font instead.
20155 (add_font_entity_to_list): Avoid some substitutions.
20156
20157 * font.c (font_parse_fcname): Default weight and slant to normal.
20158 (font_score): Prefer normal fonts if weight or slant unspecified.
20159 (font_score) [WINDOWSNT]: Scale weight difference down to closer
20160 match freetype scores.
20161
201622008-02-01 Jason Rumney <jasonr@gnu.org>
20163
20164 * w32font.c (w32font_text_extents): Don't use the frame stored in the
20165 font, as it may have been deleted.
20166 (w32_enumfont_pattern_entity): Map generic family to adstyle using
20167 most common hyphenless variation.
20168 (logfonts_match): Check generic family.
20169 (font_matches_spec): Don't check generic family here.
20170 (fill_in_logfont): Set generic family based on adstyle.
20171
20172 * w32font.h (w32font_get_cache): Update declaration.
20173
201742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20175
20176 * ftfont.c (ftfont_get_cache): Adjust the argument type.
20177
20178 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
20179 If none of the new drivers are available, call font_update_drivers
20180 with the old drivers.
20181
20182 * w32font.c (w32font_get_cache): Adjust the argument type.
20183
20184 * xfont.c (xfont_get_cache): Adjust the argument type.
20185
20186 * font.h (struct font_driver): Change argument type of get_cache.
20187
20188 * xftfont.c (xftfont_start_for_frame): Delete prototype.
20189
20190 * font.c (Ffont_get): Fix arguments to Fassoc.
20191 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
20192 (font_clear_cache): New function.
20193 (font_list_entities, font_matching_entity): Use font_get_cache.
20194 (font_update_drivers): Call font_clear_cache when finishing a driver.
20195
20196 * fontset.c (fontset_find_font): Fix previous change.
20197
201982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20199
20200 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
20201 dpyinfo->font_table.
20202 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
20203 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
20204
20205 * font.c (font_at): Handle the case that the arg C is negative.
20206 Handle the unibyte case.
20207 (Ffont_at): Call font_at with the arg C -1.
20208
20209 * xdisp.c (handle_auto_composed_prop): Don't get a character at
20210 the position here, and call font_at with the arg C -1.
20211 Don't check the range of the existing composition at the point.
20212
202132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20214
20215 * fontset.c (fontset_add): New args charset_id and family.
20216 Change caller.
20217 (load_font_get_repertory, fontset_find_font): Assume that
20218 font_spec is always a font-spec object.
20219 (Fset_fontset_font): Always store a font-spec object in a fontset.
20220
20221 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
20222 instead of get_property_and_range.
20223
202242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20225
20226 * xftfont.c (struct xftfont_info): Delete the member ft_face.
20227 (xftfont_open): Don't keep locking face.
20228 (xftfont_close): Don't unlock face.
20229 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
20230
20231 * fontset.c (fontset_find_font): Don't prefer a font of
20232 supplementary charset.
20233
202342008-02-01 Kenichi Handa <handa@m17n.org>
20235
20236 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
20237 script, langsys_tag to langsys, new member script.
20238 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 20239 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
20240 listing to the script specified in that property. Fix arg to
20241 OTF_check_features.
20242
202432008-02-01 Jason Rumney <jasonr@gnu.org>
20244
20245 * w32font.h: New file.
20246
20247 * w32font.c: Include it.
20248 (struct w32font_info): Add owning_frame field. Move to w32font.h.
20249 (w32font_open): Set owning_frame.
20250 (w32font_text_extents): Use owning_frame.
20251 (struct font_callback_data): Add opentype_only field.
20252 (add_font_entity_to_list): Use it to filter fonts.
20253 Don't check against full name.
20254 (w32font_list_internal): New function.
20255 (w32font_list): Use it.
20256 (w32font_match_internal): New function.
20257 (w32font_match): Use it.
20258 (w32font_open_internal): New function.
20259 (w32font_open): Use it.
20260 (w32font_get_cache, w32font_close, w32font_has_char)
20261 (w32font_encode_char, w32font_text_extents, w32font_draw):
20262 Make non-static.
20263
20264 * makefile.w32-in (w32font.o): Depend on w32font.h.
20265
202662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20267
20268 * charset.c (Fdefine_charset_internal): Record a supplementary
20269 charset at the tail of Vcharset_order_list.
20270
20271 * font.c (Ffont_shape_text): Fix the return value.
20272
20273 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
20274
20275 * xdisp.c (handle_auto_composed_prop): Fix previous change.
20276
202772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20278
20279 * ftfont.c (struct OpenTypeSpec): New struct.
20280 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
20281 (ftfont_get_open_type_spec): New function.
20282 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
20283
20284 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
20285
202862008-02-01 Jason Rumney <jasonr@gnu.org>
20287
20288 * w32font.c (add_font_entity_to_list): Compare only the beginning
20289 of full name.
20290
202912008-02-01 Kenichi Handa <handa@m17n.org>
20292
20293 * xdisp.c (handle_auto_composed_prop): Simplify the code.
20294 Never return HANDLED_RECOMPUTE_PROPS.
20295
202962008-02-01 Kenichi Handa <handa@m17n.org>
20297
20298 * font.c (font_gstring_produce): Delete it.
20299
20300 * composite.h (COMPOSITION_METHOD):
20301 Handle COMPOSITION_WITH_GLYPH_STRING.
20302
203032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20304
20305 * xfont.c (Qx): Delete.
20306 (syms_of_xfont): Don't initialize Qx.
20307
20308 * composite.h (enum composition_method):
20309 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
20310
203112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20312
20313 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
20314 (choose_face_font): Accept new form of font-spec.
20315
20316 * frame.h (font_driver_list): Declare it unconditionally.
20317 (struct frame): Define members font_driver_list and font_data_list
20318 unconditionally.
20319
20320 * fontset.c: Include "font.h" unconditionally.
20321 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
20322 (Fset_fontset_font): Accept a font-spec object.
20323
20324 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
20325 PIXEL_SIZE part a wild card.
20326
20327 * dispextern.h (struct glyph_string): Define members clip and
20328 num_clips unconditionally.
20329 (struct face): Define members font_info and extra unconditionally.
20330
20331 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
20332 ftfont_info only when HAVE_LIBOTF is defined.
20333
203342008-02-01 Andreas Schwab <schwab@suse.de>
20335
20336 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
20337 and end.
20338
203392008-02-01 Jason Rumney <jasonr@gnu.org>
20340
20341 * w32font.c (w32font_driver): Add new fields.
20342
203432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20344
20345 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
20346 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
20347 (LIBES): Add @M17N_FLT_CFLAGS@.
20348
20349 * composite.c (compose_text): Don't treat the new style
20350 composition specially.
20351
20352 * emacs.c (main): Call syms_of_font unconditionally.
20353
20354 * font.h (FONT_ENTITY_NOT_LOADABLE)
20355 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
20356 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
20357 (struct font_driver): New member shape.
20358 (font_registry_charsets): Extern it.
20359 (font_find_for_lface, font_prepare_composition): Adjust prototype.
20360 (font_otf_capability, font_drive_otf): Delete their externs.
20361
20362 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
20363 (font_charset_alist, font_registry_charsets): Move from xfont.c
20364 and rename.
20365 (font_prop_validate_otf): New function.
20366 (font_property_table): Register it for QCotf.
20367 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
20368 (font_drive_otf): Delete.
20369 (font_prepare_composition): New arg F. Adjust for the change of
20370 lispy gstring.
20371 (font_find_for_lface): New arg C.
20372 (font_load_for_face): Adjust for the change of font_find_for_lface.
20373 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
20374 lispy gstring.
20375 (Ffont_shape_text): New function.
20376 (Fopen_font): If the font size is not given, use 12-pixel.
20377 (Ffont_at): New arg STRING.
40b1a3a9 20378 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
20379 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
20380 conditionally.
20381
20382 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
20383 fonts of the same font-spec. Change the format of RFONT-DEF.
20384 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
20385 Adjust for the change of RFONT-DEF.
20386 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
20387
20388 * ftfont.h: New file.
20389
20390 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
20391 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
20392 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
20393 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
20394 font_otf_capability and font_drive_otf, set ftfont_shape.
20395 (ftfont_list): Adjust for the change of :otf property value.
20396 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
20397 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
20398 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
20399 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
20400 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
20401 (otf_gstring, gstring, m17n_flt_initialized): New variables.
20402
20403 * w32term.c (x_draw_composite_glyph_string_foreground):
20404 Adjust for the change of lispy gstring.
20405
20406 * xdisp.c (handle_composition_prop): Adjust for the change of
20407 lispy gstring. Call a function for auto-composition with the
20408 third arg it->window.
20409 (fill_composite_glyph_string): Adjust for the change of lispy string.
20410 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
20411
20412 * xfaces.c (set_font_frame_param): Adjust for the change of
20413 font_find_for_lface.
20414
20415 * xfont.c (x_font_charset_alist): Move to font.c and rename.
20416 (xfont_registry_charsets): Likewise. Change caller.
20417 (syms_of_xfont): Don't handle x_font_charset_alist.
20418
20419 * xftfont.c: Include "ftfont.h".
20420 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
20421 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
20422 (xftfont_close) [HAVE_LIBOTF]: Close otf.
20423 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
20424 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
20425 Set xftfont_driver.shape to xftfont_shape.
20426
20427 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
20428 the change of lispy gstring.
20429
204302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20431
20432 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
20433
204342008-02-01 Jason Rumney <jasonr@gnu.org>
20435
20436 * w32font.c (w32font_draw): Fill background manually.
20437
204382008-02-01 Jason Rumney <jasonr@gnu.org>
20439
20440 * font.c (Qfontp): Remove unused symbol.
20441 (QCantialias): New symbol.
20442 (syms_of_font): Define it.
20443 (font_property_table): Set a validator for QCantialias.
20444
20445 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
20446 Define if not already.
20447 (QCfamily): Share with xfaces.c.
20448 (Qstandard, Qsubpixel, Qnatural): New symbols.
20449 (syms_of_w32font): Define them. Don't define QCfamily here.
20450 (w32_antialias_type, lispy_antialias_type): New functions.
20451 (w32_enumfont_pattern_entity): New arg requested_font.
20452 Set antialias parameter if non-default was requested.
20453 (fill_in_logfont): Fill in lfQuality if :antialias specified.
20454
204552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20456
20457 * lread.c (read1): Undo the previous change.
20458
204592008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
20460
20461 * frame.c (Fdelete_frame): Call font_update_drivers only when
20462 USE_FONT_BACKEND is defined.
20463
204642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20465
20466 * font.h (struct font_bitmap): New member bits_per_pixel.
20467 (struct font_driver): New members start_for_frame and end_for_frame.
20468 (struct font_data_list): New struct.
20469 (font_put_frame_data, font_get_frame_data): Extern them.
20470
20471 * frame.h (struct frame): New member font_data_list.
20472
20473 * font.c (font_update_drivers): Call driver->start_for_frame and
20474 driver->end_for_frame at proper timings.
20475 (font_put_frame_data, font_get_frame_data): New functions.
20476 (Ffont_spec): Add usage in the docstring.
20477
20478 * frame.c (make_frame): Initialize f->font_data_list to NULL.
20479 (Fdelete_frame): Call font_update_drivers.
20480
20481 * xftfont.c (struct xftface_info): Delete the member xft_draw.
20482 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
20483 (xftfont_get_xft_draw): New function.
20484 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
20485 (xftfont_end_for_frame): New function.
20486 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
20487
20488 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
20489 Change argument. Cache GCs in the per-frame data.
20490 (struct ftxfont_frame_data): New struct.
20491 (ftxfont_draw_bitmap): New arg gc_fore and flush.
20492 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
20493 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
20494 (ftxfont_end_for_frame): New function.
20495 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
20496
20497 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
20498
204992008-02-01 Kenichi Handa <handa@m17n.org>
20500
20501 * xselect.c (Vselection_coding_system)
20502 (Vnext_selection_coding_system): Delete them.
20503 (syms_of_xselect): Don't declare selection-coding-system and
20504 next-selection-coding-system. They are declared in select.el.
20505
205062008-02-01 Jason Rumney <jasonr@gnu.org>
20507
20508 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
20509
20510 * w32fns.c: Include imm.h.
20511 (get_composition_string_fn, get_ime_context_fn): New optional
20512 system functions.
20513 (globals_of_w32fns): Load them from imm32.dll.
20514 (ignore_ime_char): New flag.
20515 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
20516 WM_IME_ENDCOMPOSITION messages.
20517
20518 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
20519 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
20520
205212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20522
20523 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
20524 (READCHAR_REPORT_MULTIBYTE): New macro.
20525 (readchar): New 2nd arg MULTIBYTE.
20526 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
20527 Make symbol's name multibyte according to the multibyteness of the
20528 source.
20529
205302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20531
20532 * xfaces.c (face_for_overlay_string): Call lookup_face with
20533 correct arguments (fix of synching with the trunk).
20534
205352008-02-01 Kenichi Handa <handa@m17n.org>
20536
20537 * font.c (font_prop_validate_symbol, font_prop_validate_style)
20538 (font_prop_validate_non_neg, font_prop_validate_spacing):
20539 Delete argument prop_index.
20540 (font_property_table): Change arguments to validater. Change Callers.
20541 (font_lispy_object): Delete.
20542 (font_at): Use font_find_object instead fo font_lispy_object.
20543
205442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20545
20546 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
20547 and file names.
20548
205492008-02-01 Jason Rumney <jasonr@gnu.org>
20550
20551 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
20552 (font_matches_spec): Remove debug output.
20553 (add_font_entity_to_list): Avoid using substituted fonts.
20554
205552008-02-01 Jason Rumney <jasonr@gnu.org>
20556
20557 * doc.c (Fsnarf_documentation):
20558 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
20559
205602008-02-01 Miles Bader <miles@gnu.org>
20561
20562 * dispextern.h (struct glyph_row): Only define "clip" field if
20563 HAVE_WINDOW_SYSTEM is defined.
20564
205652008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
20566
20567 Fix up multi-tty merge.
20568
20569 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
20570 and indentation.
20571
20572 * xfaces.c (free_realized_face, clear_face_gcs):
20573 Include font_done_for_face in the input_blocked section, just in case.
20574
20575 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
20576 (get_char_face_and_encoding): Undo last change and remove the *other*
20577 duplicate definition (i.e. keep the one that's better scoped and that
20578 includes code for the font-backend).
20579
20580 * terminal.c (create_terminal): Default keyboard_coding to
20581 `no-conversion' and terminal_coding to `undecided'.
20582
20583 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
20584
20585 * fontset.c (free_realized_fontsets): Check that the table entry does
20586 contain a fontset before trying to compare it to `base'.
20587
20588 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
20589 syms_of_charset, and syms_of_coding earlier because init_window_once
20590 now needs Vcoding_system_hash_table to be setup.
20591
20592 * coding.h (default_buffer_file_coding): Remove.
20593
20594 * coding.c (default_buffer_file_coding): Remove.
20595 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
20596 than ->symbol, and use the terminal-local coding system.
20597 (syms_of_coding): Don't setup the coding-systems that are not
20598 terminal-local.
20599 (Fdefine_coding_system_internal): Use XCAR/XCDR.
20600
20601 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
20602 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
20603
20604 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
20605 in chartab.c and were re-added here by mistake.
20606 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
20607
20608 * doc.c (Fsnarf_documentation):
20609 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
20610 src to etc.
20611
20612 * ChangeLog.10: Add mistakenly removed entry.
20613
206142008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
20615
20616 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
20617
206182008-02-01 Miles Bader <miles@gnu.org>
20619
20620 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
20621 Add extra args to FACE_FOR_CHAR.
20622
206232008-02-01 Kenichi Handa <handa@m17n.org>
20624
20625 * keymap.c (where_is_internal_1): If key is a cons, store the copy
20626 in sequence.
20627
20628 * chartab.c (map_sub_char_table, map_char_table): If the range
20629 contains just one character, call the function with that character
20630 even if the depth is not 3.
20631
206322008-02-01 Jason Rumney <jasonr@gnu.org>
20633
20634 * w32font.c (w32font_text_extents): Calculate metrics for the
20635 whole string.
20636
206372008-02-01 Jason Rumney <jasonr@gnu.org>
20638
20639 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
20640
206412008-02-01 Jason Rumney <jasonr@gnu.org>
20642
20643 * w32term.c (x_set_glyph_string_clipping): Use
20644 get_glyph_string_clip_rects.
20645 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
20646 Adjust for the change of struct glyph_string.
20647
20648 * w32font.c (w32font_draw): Do clipping here.
20649
206502008-02-01 Kenichi Handa <handa@m17n.org>
20651
20652 * xftfont.c (xftfont_draw): Adjust for the change of struct
20653 glyph_string.
20654
20655 * xterm.c (x_set_glyph_string_clipping): Use
20656 get_glyph_string_clip_rects.
20657 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
20658 Adjust for the change of struct glyph_string.
20659
20660 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
20661 the resulting clip(s}.
20662 (expose_overlaps): Add arg r. Change callers. Set it to
20663 row->clip temporarily.
20664 (expose_window): Redraw rows overlapping the exposed area.
20665
20666 * dispextern.h (struct glyph_row): New member clip.
20667 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
20668 clip_height, new member clip, and num_clips.
20669
206702008-02-01 Kenichi Handa <handa@m17n.org>
20671
20672 * data.c (Fchar_or_string_p): Fix docstring.
20673
206742008-02-01 Kenichi Handa <handa@m17n.org>
20675
20676 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
20677 create a temporary XftDraw object.
20678
206792008-02-01 Kenichi Handa <handa@m17n.org>
20680
20681 * font.c (Ffontp): Fix docstring.
20682
20683 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
20684 strong evidence of ISO-2022.
20685
206862008-02-01 Kenichi Handa <handa@m17n.org>
20687
20688 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
20689 SYNTAX_ENTRY_FOLLOW_PARENT.
20690
206912008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
20692
20693 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
20694 its type.
20695 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
20696 Update to the new type of weak_hash_tables and next_weak.
20697
20698 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
20699 a plain C pointer to Lisp_Hash_Table.
20700
20701 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
20702 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
20703 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
20704 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
20705 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
20706 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
20707 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
20708 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
20709 (GC_EQ): Remove since they've been identical to their non-GC_
20710 alter-egos ever since the markbit was eradicated.
20711
20712 * alloc.c:
20713 * buffer.c:
20714 * buffer.h:
20715 * data.c:
20716 * fileio.c:
20717 * filelock.c:
20718 * fns.c:
20719 * frame.h:
20720 * lisp.h:
20721 * macterm.c:
20722 * print.c:
20723 * process.c:
20724 * w32fns.c:
20725 * w32menu.c:
20726 * w32term.c:
20727 * xfns.c:
20728 * xmenu.c:
20729 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
20730
207312008-02-01 Kenichi Handa <handa@m17n.org>
20732
20733 * chartab.c (map_sub_char_table): Make it work for the top-level
20734 char-table. Fix handling of parent char-table.
20735 (map_char_table): Adjust for the above change.
20736
207372008-02-01 Jason Rumney <jasonr@gnu.org>
20738
20739 * w32font.c (Qgdi): Rename from Qw32.
20740
207412008-02-01 Jason Rumney <jasonr@gnu.org>
20742
20743 * w32bdf.c (get_quoted_string): Make function static.
20744
207452008-02-01 Kenichi Handa <handa@m17n.org>
20746
20747 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
20748 bigger ascent and descent than those of the font, use them as
20749 font's ascent and descent.
20750
207512008-02-01 Kenichi Handa <handa@m17n.org>
20752
20753 * Makefile.in (${lispsource}international/charprop.el): Move this
20754 target within "#ifdef HAVE_UNIDATA" and "#endif".
20755
207562008-02-01 Kenichi Handa <handa@m17n.org>
20757
20758 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
20759 (shortlisp): Add ../lisp/language/tai-viet.el.
20760
207612008-02-01 Ulrich Mueller <ulm@gentoo.org>
20762
20763 * Makefile.in (${lispsource}international/charprop.el): Depend on
20764 temacs${EXEEXT}.
20765
207662008-02-01 Jason Rumney <jasonr@gnu.org>
20767
20768 * w32font.c (w32font_close): Delete the GDI font object.
20769
20770 * w32menu.c: Include character.h.
20771
20772 * w32proc.c: Likewise.
20773
20774 * w32select.c: Likewise.
20775
20776 * makefile.w32-in (w32proc.o): Depend on character.h.
20777
207782008-02-01 Jason Rumney <jasonr@gnu.org>
20779
20780 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
20781
20782 * w32menu.c (syms_of_w32menu): Likewise.
20783
20784 * w32proc.c (syms_of_ntproc): Likewise.
20785
20786 * w32select.c (syms_of_w32select): Likewise.
20787
20788 * w32term.c (syms_of_w32term): Likewise.
20789
207902008-02-01 Jason Rumney <jasonr@gnu.org>
20791
20792 * w32font.c (w32font_draw): Delete brush after using it.
20793
207942008-02-01 Jason Rumney <jasonr@gnu.org>
20795
20796 * w32font.c (w32font_open): Don't set font_idx.
20797 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
20798 to font settings.
20799 (w32font_draw): Fill background explicitly.
20800
208012008-02-01 Jason Rumney <jasonr@gnu.org>
20802
20803 * w32term.c (w32_initialize): Don't call w32font_initialize.
20804
20805 * w32font.c (w32font_info): Remove subranges.
20806 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
20807 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
20808 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
20809 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
20810 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
20811 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
20812 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
20813 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
20814 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
20815 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
20816 New symbols.
20817 (font_callback_data): New struct.
20818 (w32font_list, w32font_match): Use it.
20819 (w32font_open): Don't populate subranges.
20820 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
20821 (w32font_encode_char): Always return unicode code-point as-is.
20822 (w32font_text_extents): Supply a transformation matrix to
20823 GetGlyphOutline. Never look up by glyph index. Avoid looping
20824 twice. Use unicode version of GetTexExtentPoint32 instead of
20825 glyph index version.
20826 (set_fonts_frame): Remove.
20827 (w32_enumfont_pattern_entity): Add frame parameter, use it to
20828 set frame parameter. Use backward compatible fake foundries.
20829 Save generic family in extra slot under QCfamily. Make width slot
20830 constant. Save QCspacing value. Save list of scripts instead of
20831 binary subranges.
20832 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
20833 (add_font_entity_to_list): Use font_callback_data struct. Filter
20834 unwanted fonts.
20835 (add_one_font_entity_to_list): Use font_callback_data struct.
20836 (w32_registry): Default to iso10646_1.
20837 (fill_in_logfont): Use dpi from extra slot. Don't bother with
20838 string font registries. Don't fill in font name if it is a generic
20839 family name, fill family instead. Use spacing, family and script
20840 extra info to fill pitch, family and charset fields.
20841 (list_all_matching_fonts): Use font_callback_data struct.
20842 (unicode_range_for_char): Remove.
20843 (font_supported_scripts): New function.
20844 (w32font_initialize): Remove.
20845 (syms_of_w32font): Update which symbols are defined.
20846
208472008-02-01 Jason Rumney <jasonr@gnu.org>
20848
20849 * font.c (font_pixel_size): Reverse assq_no_quit args.
20850
20851 * w32term.h (FONT_WIDTH): Report max width, not average.
20852 (FONT_MAX_WIDTH): Remove.
20853 (FONT_AVG_WIDTH): New macro.
20854
20855 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
20856 redefinition of FONT_WIDTH.
20857
20858 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
20859 (w32_cache_char_metrics): Use FONT_WIDTH.
20860
20861 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
20862
208632008-02-01 Jason Rumney <jasonr@gnu.org>
20864
20865 * w32font.c (w32font_open): Make lfHeight negative.
20866
20867 * w32fns.c (x_default_font_parameter): Use new style font name.
20868 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
20869
208702008-02-01 Jason Rumney <jasonr@gnu.org>
20871
20872 * w32font.c (QCsubranges): New symbol.
20873 (w32font_open, w32font_has_char): Get subranges from subproperty
20874 of extra.
20875 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
20876 (syms_of_w32font): Define :subranges symbol.
20877
20878 * font.c (font_put_extra): Expose externally.
20879
20880 * font.h (font_put_extra): Move declaration from font.c.
20881
20882 * font.c (Ffont_get): Use font driver to determine otf capability.
20883 (adjust_anchor): Check if driver defines anchor_point before using.
20884
20885 * w32font.c (w32font_open): Handle size, height and pixel_size better.
20886 (w32font_draw): Use options.
20887 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
20888 Fix detection of truetype fonts.
20889 (registry_to_w32_charset): Handle charsets other than iso8859-1
20890 expressed as lisp symbols.
20891 (w32_registry): Express charset as lisp symbol.
20892 (fill_in_logfont): Reverse pixel and point height logic.
20893 Don't set width here. Set quality to default.
20894
20895 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
20896 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
20897
20898 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
20899 Remove redundant loop and allocation.
20900
20901 * makefile.w32-in (font.o, w32font.o): New objects.
20902 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
20903 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
20904
20905 * xdisp.c (fill_composite_glyph_string): Make the first arg to
20906 STORE_XCHARB a valid l-value.
20907
20908 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
20909 calculations for non-Truetype fonts.
20910 (x_draw_glyph_string): Sync with xterm.c.
20911 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
20912 Remove redundant code.
20913 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
20914
20915 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
20916 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
20917
20918 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
20919 (x_to_w32_charset, w32_to_x_charset): Expose externally.
20920
20921 * w32font.c: New file for w32 font backend.
20922
209232008-02-01 Kenichi Handa <handa@m17n.org>
20924
20925 * term.c: Don't include "buffer.h" twice.
20926
209272008-02-01 Kenichi Handa <handa@m17n.org>
20928
20929 * character.c (Funibyte_string): New function.
20930 (syms_of_character): Defsubr it.
20931
209322008-02-01 Jason Rumney <jasonr@gnu.org>
20933
20934 * w32term.c [USE_FONT_BACKEND]:
20935 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
20936 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
20937 (x_draw_glyph_string, x_draw_glyph_string_foreground)
20938 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
20939 (x_free_frame_resources): Sync with xterm.c.
20940
209412008-02-01 Andreas Schwab <schwab@suse.de>
20942
20943 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
20944 char-table size.
20945
209462008-02-01 Kenichi Handa <handa@m17n.org>
20947
20948 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
20949
209502008-02-01 Kenichi Handa <handa@m17n.org>
20951
20952 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
20953 font_otf_gpos, add font_drive_otf.
20954
20955 * fontset.c (fontset_find_font): Pay attention to font size
20956 specified for a font.
20957 (reorder_font_vector): Check contents of font_def.
20958
20959 * font.c (struct otf_list): Delete it.
20960 (otf_list): Make it a lisp variable.
20961 (otf_open): Use lispy otf_list.
20962 (generate_otf_features): Rename from parse_gsub_gpos_spec.
20963 (check_otf_features): New function.
20964 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
20965 New functions.
20966 (font_drive_otf): New function merging font_otf_gsub and
20967 font_otf_gpos.
20968 (font_open_for_lface): New arg spec. Change argument order.
20969 (font_load_for_face): Adjust for the change of font_open_for_lface.
20970 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
20971 Ffont_otf_gpos.
20972 (syms_of_font): Staticpro otf_list. Delete defsubr of
20973 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
20974
20975 * xfaces.c (set_font_frame_param): Adjust for the change of
20976 font_open_for_lface.
20977
20978 * font.h (font_open_for_lface): Adjust prototype.
20979 (struct font_driver): Delete members otf_gsub and otf_gpos, add
20980 member otf_drive.
20981 (font_otf_gsub, font_otf_gpos): Delete externs.
20982 (font_drive_otf): Extern it.
20983
209842008-02-01 Kenichi Handa <handa@m17n.org>
20985
20986 * font.c (font_at): If the window W is not on a window system,
20987 return Qnil.
20988
20989 * coding.c (produce_chars, encode_coding): Don't call
20990 insert_from_gap if no characters to produce.
20991
209922008-02-01 Kenichi Handa <handa@m17n.org>
20993
20994 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
20995 Fclear_face_cache.
20996
20997 * xfaces.c (face_for_font): Check also face->font==font->font.font.
20998
209992008-02-01 Miles Bader <miles@gnu.org>
21000
21001 * emacs.c (main): Change default value of `enable_font_backend' to 1.
21002 Parse "--disable-font-backend" option.
21003 (standard_args): Add "--disable-font-backend" option.
21004
210052008-02-01 Kenichi Handa <handa@m17n.org>
21006
21007 * fontset.c (fontset_find_font): New function.
21008 (fontset_font): Use fontset_find_font.
21009 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
21010 Register the specified font for all Latin characters.
21011 (new_fontset_from_font): Register the specified font for all Latin
21012 characters.
21013 (dump_fontset): For a realized fontset, include the base fontset
21014 name in the returned vector.
21015
210162008-02-01 Kenichi Handa <handa@m17n.org>
21017
21018 * character.h (CHAR_STRING): Cast C to unsigned on calling
21019 char_string.
21020
21021 * character.c (char_string): Type of arg C changed to unsigned.
21022 Signal an error if C is an invalid character code.
21023
21024 * editfns.c (general_insert_function, Fchar_to_string):
21025 Use CHARACTERP, not INTEGERP.
21026
210272008-02-01 Kenichi Handa <handa@m17n.org>
21028
21029 * character.h (MIN_MULTIBYTE_LEADING_CODE)
21030 (MAX_MULTIBYTE_LEADING_CODE): New macros.
21031
21032 * regex.c (analyse_first): Fix for multibyte characters in "case
21033 charset:" and "case categoryspec:".
21034
210352008-02-01 Andreas Schwab <schwab@suse.de>
21036
21037 * Makefile.in (LIBES): Move standard libraries to the end.
21038
210392008-02-01 Kenichi Handa <handa@m17n.org>
21040
21041 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
21042 nonzero, don't shrink the buffer nextb.
21043
21044 * buffer.h (struct buffer_text): New member inhibit_shrinking.
21045
21046 * coding.c (coding_alloc_by_making_gap): New arg offset.
21047 (alloc_destination): Call coding_alloc_by_making_gap with the arg
21048 offset.
21049 (decode_coding_iso_2022): Update coding->safe_charsets.
21050 (decode_coding_gap): Temporarily set
21051 current_buffer->text->inhibit_shrinking to 1.
21052
210532008-02-01 Kenichi Handa <handa@m17n.org>
21054
21055 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
21056 indexing into elements of s->cmp and s->char2b.
21057
210582008-02-01 Juanma Barranquero <lekktu@gmail.com>
21059
21060 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
21061
210622008-02-01 Kenichi Handa <handa@m17n.org>
21063
21064 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
21065 target_multibyte instead of multibyte.
21066 (re_match_2_internal): Call bcmp_translate with target_multibyte.
21067 (bcmp_translate): Change the argument name from multibyte to
21068 target_multibyte.
21069
210702008-02-01 Kenichi Handa <handa@m17n.org>
21071
21072 These changes are to compile a regexp into a pattern that can be
21073 used both for multibyte and unibyte targets.
21074
21075 * Makefile.in (search.o): Depend on charset.h.
21076
21077 * character.c (multibyte_char_to_unibyte_safe): New function.
21078
21079 * search.c: Include "charset.h".
21080 (compile_pattern_1): Delete argument multibyte. Don't set
21081 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
21082 (compile_pattern): Don't compare cp->buf.target_multibyte.
21083 Compare cp->buf.charset_unibyte.
21084 (compile_pattern): Set cp->buf.target_multibyte.
21085
21086 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
21087
21088 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
21089
21090 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
21091 multibyte. Change callers.
21092 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
21093 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
21094 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
21095 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
21096 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
21097 (regex_compile): Make the compiled pattern usable both for
21098 multibyte and unibyte targets.
21099 (analyse_first): Make the fastmap usable both for multibyte and
21100 unibyte targets.
21101 (TRANSLATE_VIA_MULTIBYTE): Delete.
21102 (re_match_2_internal): Pay attention to the case that the
21103 multibyteness of bufp and target may be different.
21104
211052008-02-01 Kenichi Handa <handa@m17n.org>
21106
21107 * xdisp.c (x_produce_glyphs): When a font is not found, make the
21108 empty box occupy at least one column width.
21109
211102008-02-01 Miles Bader <miles@gnu.org>
21111
21112 * Makefile.in: Remove redundant HAVE_XFT clause.
21113
211142008-02-01 Kenichi Handa <handa@m17n.org>
21115
21116 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
21117
211182008-02-01 Kenichi Handa <handa@m17n.org>
21119
21120 * fontset.c (Finternal_char_font): Fix for the case of POSITION
21121 being nil.
21122
211232008-02-01 Kenichi Handa <handa@m17n.org>
21124
21125 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
21126
211272008-02-01 Kenichi Handa <handa@m17n.org>
21128
21129 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
21130
211312008-02-01 Kenichi Handa <handa@m17n.org>
21132
21133 * search.c (simple_search): Fix previous change.
21134
211352008-02-01 Kenichi Handa <handa@m17n.org>
21136
21137 * xftfont.c (ftfont_font_format): Extern declaration.
21138
21139 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
21140
21141 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
21142 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
21143
21144 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
21145 (ftfont_font_format): Fix previous change.
21146
21147 * font.h (Ffont_xlfd_name): EXFUN it.
21148
21149 * font.c (font_parse_xlfd): Fix the array size of `f'.
21150 (register_font_driver): Use EQ to compare driver->type.
21151
21152 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
21153 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
21154 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
21155
211562008-02-01 Kenichi Handa <handa@m17n.org>
21157
21158 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
21159 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
21160
211612008-02-01 Kenichi Handa <handa@m17n.org>
21162
21163 * xfont.c (xfont_open): Set font->format.
21164
21165 * xftfont.c (xftfont_open): Set font->format.
21166
21167 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
21168 (ftfont_list): Include FC_FONTFORMAT in FcObject.
21169 (ftfont_open): Set font->format.
21170 (ftfont_font_format): New function.
21171
21172 * font.h (struct font): New member format.
21173
21174 * font.c (Qopentype): New variable.
21175 (syms_of_font): Defsym it.
21176 (Fquery_font): Change the format of the last element of the return
21177 value.
21178
211792008-02-01 Kenichi Handa <handa@m17n.org>
21180
21181 * xfns.c (xic_create_xfontset): Try the default fontset name as a
21182 last resort.
21183
211842008-02-01 Kenichi Handa <handa@m17n.org>
21185
21186 * coding.c (detect_coding_charset): Fix detection of multi-byte
21187 charset.
21188
211892008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
21190
21191 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
21192
211932008-02-01 Kenichi Handa <handa@m17n.org>
21194
21195 * xdisp.c (get_next_display_element): Set it->face_id for the
21196 first component of a composition.
21197 (x_produce_glyphs): Check if the font is changed or not for composition.
21198
211992008-02-01 Kenichi Handa <handa@m17n.org>
21200
21201 * fontset.c (Qlatin): New variable.
21202 (syms_of_fontset): Define it as a lisp symbol.
21203 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
21204
212052008-02-01 Kenichi Handa <handa@m17n.org>
21206
21207 * font.c (font_unparse_fcname): Pay attention to the case that
21208 some of font property is a null string.
21209
212102008-02-01 Kenichi Handa <handa@m17n.org>
21211
21212 * term.c: Include "composite.h".
21213 (encode_terminal_code): Output all components of composition.
21214 Check the size of encode_terminal_src.
21215 (produce_glyphs): For composition, call produce_composite_glyph.
21216 (append_composite_glyph, produce_composite_glyph): New functions.
21217
21218 * xdisp.c (x_produce_glyphs): In handling composition, if a font
21219 is not found, get font_info from the current ascii face.
21220
212212008-02-01 Kenichi Handa <handa@m17n.org>
21222
21223 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
21224 buffer-file-name to Qnil before calling insert_from_buffer.
21225
21226 * font.c (font_unparse_fcname): Pay attention to the case that
21227 foundry is a null string.
21228
212292008-02-01 Kenichi Handa <handa@m17n.org>
21230
21231 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
21232
21233 * font.c (Qunicode_sip): New variable.
21234 (syms_of_font): Declare it as a Lisp symbol.
21235
21236 * font.h (Qunicode_sip): Extern it.
21237
212382008-02-01 Kenichi Handa <handa@m17n.org>
21239
21240 * composite.c (get_composition_id): Pay attention to TAB component.
21241
21242 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
21243 TAB. Adjust for the change of s->char2b which always points to
21244 the first element of allocated memory.
21245
21246 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
21247
21248 * xdisp.c (handle_composition_prop): Set it->c to the first
21249 non-TAB component.
21250 (fill_composite_glyph_string): Change argument.
21251 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
21252 (x_produce_glyphs): Fix handling of left/right padding.
21253
212542008-02-01 Kenichi Handa <handa@m17n.org>
21255
21256 * coding.c (detect_coding_system): Fix for handling off
21257 inhibit_iso_escape_detection. Fix for the case that no coding
21258 system is defined for a specific coding category.
21259
212602008-02-01 Kenichi Handa <handa@m17n.org>
21261
21262 * font.c (font_matching_entity): Delete unused local var.
21263
21264 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
21265 opening a font.
21266
21267 * fileio.c (Finsert_file_contents): On recovering a file, assume
21268 Unix-like eol.
21269 (choose_write_coding_system): On auto-saving a file, force
21270 Unix-like eol.
21271
21272 * coding.c (setup_coding_system): Fix setting of
21273 coding->common_flags based on eol_type.
21274 (coding_inherit_eol_type): If PARENT is not nil, be sure to
21275 inherit from it.
21276
212772008-02-01 Kenichi Handa <handa@m17n.org>
21278
21279 * alloc.c (NSTATICS): Increas to 0x600.
21280
212812008-02-01 Kenichi Handa <handa@m17n.org>
21282
21283 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
21284 (ftfont_list): Don't check :name property.
21285 (ftfont_match): New function.
21286 (ftfont_pattern_entity): If the pattern doesn't contain
21287 FC_SPACING, don't assume FC_MONO.
21288
21289 * font.h (struct font_driver): New member `match'.
21290 (font_update_drivers): Adjust prototype.
21291
21292 * font.c (font_parse_fcname, font_parse_name): Don't change :name
21293 property of FONT.
21294 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
21295 them unconditionally.
21296 (font_matching_entity): New function.
21297 (font_open_by_name): Try font_matching_entity if exact match is
21298 not found.
21299 (font_update_drivers): Delete the arg FONT. Return a list of
21300 actually used backends. Don't free faces, font caches here.
21301 Don't store data in frame parameters. Don't call x_set_font.
21302 (Ffont_spec): Store :name property as is.
21303 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
21304 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
21305 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
21306 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
21307 Call font->driver->otf_gsub instead of font_otf_gsub.
21308
21309 * frame.c (x_set_font_backend): Do more works that were done in
21310 font_update_drivers before.
21311
21312 * xfont.c (xfont_match): New function.
21313 (xfont_driver): Set xfont_driver.match to xfont_match.
21314 (xfont_draw): Set font in GC if necessary.
21315
21316 * ftxfont.c (ftxfont_match): New function.
21317 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
21318
21319 * xftfont.c (xftfont_match): New function.
21320 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
21321
213222008-02-01 Kenichi Handa <handa@m17n.org>
21323
21324 * font.h (struct font): New member scalable.
21325 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
21326 (font_otf_gsub): Adjust prototype.
21327
21328 * font.c (font_otf_capability): Fix handling of the default langsys.
21329 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
21330 Check the contents of SPEC.
21331 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
21332 (check_gstring): New function.
21333 (REPLACEMENT_CHARACTER): New macro.
21334 (font_otf_gsub): New arg alternate_subst. Be sure to set all
21335 glyph codes of GSTRING.
21336 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
21337 (font_prepare_composition): Set cmp->glyph_len.
21338 (font_open_entity): Set font->scalable.
21339 (Ffont_get): Handle :otf property.
21340 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
21341 functions.
21342 (Fquery_font): Use font->font.full_name.
21343 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
21344 Sfont_otf_alternates.
21345
21346 * ftfont.c (ftfont_open): Set font->font.full_name and
21347 font->font.name properly. Fix calculation of font->font.height
21348 and font->min_width.
21349
21350 * ftxfont.c (ftxfont_create_gcs): New function.
21351 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
21352 (ftxfont_draw_backgrond): Fix filling region.
21353 (ftxfont_default_fid): New function.
21354 (ftxfont_open): Set xfont->fid to the return value of
21355 ftxfont_default_fid.
21356 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
21357 (ftxfont_done_face): Free only GCs that are created by
21358 ftxfont_create_gcs.
21359 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
21360
21361 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
21362 Clip to src->width, etc (not src->clip_XXX).
21363
21364 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
21365 FontBackend frame parameter.
21366
213672008-02-01 Kenichi Handa <handa@m17n.org>
21368
21369 * font.h (struct font_driver_list): New member `on'.
21370 (Fclear_font_cache): EXFUN it.
21371 (font_update_drivers): Extern it.
21372
21373 * font.c (font_unparse_fcname): Fix typo (swidth->width).
21374 (font_list_entities): Check driver_list->on.
40b1a3a9 21375 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
21376 (font_update_drivers): New function.
21377 (Fclear_font_cache): Check driver_list->on.
21378
21379 * frame.h (Qfont_backend): Extern it.
21380 (x_set_font_backend): Extern it.
21381
21382 * frame.c (Qfont_backend): New variable.
21383 (frame_parms): New element for font-backend.
21384 (x_set_font_backend): New function.
21385
21386 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
21387 FontBackend frame parameter.
21388 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
21389 x_set_font_backend.
21390
21391 * xfont.c (xfont_list): Don't try listing by :name property if the
21392 name is not for XLFD.
21393
213942008-02-01 Kenichi Handa <handa@m17n.org>
21395
21396 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
21397 (LGLYPH_SET_TO): New macros.
21398 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
21399 element of G is vector or not.
21400 (font_at): Extern it.
21401
21402 * font.c: Include window.h.
21403 (font_lispy_object): New function.
21404 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
21405 end of valid glyph.
21406 (font_close_object): Fix getting (struct font *).
21407 (font_at): New function.
21408 (Ffont_get): If FONT is a font-object, get entity from it.
21409 (Ffont_make_gstring): Initialize elements of glyphs with nil.
21410 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
21411 range check.
21412 (Ffont_at): New function.
21413 (syms_of_font): Defsubr Sfont_at.
21414
21415 * xdisp.c (it_props): Move the entry for Qauto_composed to just
21416 before the entry for Qcomposition.
21417 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
21418 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
21419 the font in gstring.
21420 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
21421 LGLYPH_FORM (g) to detect the end of valid glyph.
21422 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
21423 we are composing with gstring.
21424
21425 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
21426 Check if adjustment is vector or not.
21427
21428 * Makefile.in (font.o): Make it depends on window.h.
21429
214302008-02-01 Kenichi Handa <handa@m17n.org>
21431
21432 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
21433 adjustment is vector or not.
21434
214352008-02-01 Miles Bader <miles@gnu.org>
21436
21437 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
21438
214392008-02-01 Kenichi Handa <handa@m17n.org>
21440
21441 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
21442 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
21443 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
21444
21445 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
21446 (DEVICE_DELTA): Fix typo.
21447 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
21448 LGLYPH format.
21449
21450 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
21451 the change of LGLYPH format.
21452
214532008-02-01 Kenichi Handa <handa@m17n.org>
21454
21455 * ftfont.c (ftfont_list): Fix typo.
21456 (ftfont_build_basic_charsets): Don't include letters with diacritics.
21457
214582008-02-01 Jan Djärv <jan.h.d@swipnet.se>
21459
21460 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
21461
21462 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
21463 xftface_info is non-NULL.
21464
214652008-02-01 Jan Djärv <jan.h.d@swipnet.se>
21466
21467 * ftfont.c (ftfont_list): Move misplaced #endif.
21468
214692008-02-01 Kenichi Handa <handa@m17n.org>
21470
21471 * ftfont.c (ftfont_list): Pay attention to the case that
21472 FC_CAPABILITY is not defined.
21473
214742008-02-01 Kenichi Handa <handa@m17n.org>
21475
21476 * xftfont.c (xftfont_open): Set charset related members to -1.
21477
21478 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
21479 QCname.
21480 (ftfont_open): Set charset related members to -1.
21481
21482 * fontset.c (Votf_script_alist): New variable.
21483 (syms_of_fontset): Initialize it.
21484 (fontset_font): Delete unused variable.
21485
21486 * fontset.h (Votf_script_alist): Extern it.
21487
21488 * font.c (font_find_for_lface): Optimize code.
21489
21490 * font.h (font_close_object, font_merge_old_spec): Extern them.
21491
214922008-02-01 Kenichi Handa <handa@m17n.org>
21493
21494 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
21495 (syms_of_font): Initialize them.
21496 (font_pixel_size): Allow float value in dpi.
21497 (font_prop_validate_type): Delete.
21498 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
21499 Change caller.
21500 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
21501 (font_prop_validate_extra): Delete.
21502 (font_prop_validate_spacing): New function.
21503 (font_property_table): Add elements for all known properties.
21504 (get_font_prop_index): Rename from check_font_prop_name. New
21505 argument FROM. Change caller.
21506 (font_prop_validate): Validate all known properties.
21507 (font_put_extra): Delete argument force. Change caller.
21508 (font_expand_wildcards): Make it static. Fix the way of shrinking
21509 the possible range.
21510 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
21511 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
21512 Change caller.
21513 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
21514 (font_parse_fcname): Delete argument merge. Fix parsing of point
21515 size. Don't validate properties values here. Change caller.
21516 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
21517 (font_open_by_name): Delete unused variable.
21518 (Ffont_spec): Likewise. Validate property values.
21519 (Ffont_match_p): New function.
21520
21521 * font.h (QCscalable): Extern it.
21522 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
21523
21524 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
21525
21526 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
21527 (xfont_list_pattern): New function.
21528 (xfont_list): Use xfont_list_pattern.
21529
215302008-02-01 Kenichi Handa <handa@m17n.org>
21531
21532 * font.h (Flist_fonts): EXFUN it.
21533
215342008-02-01 Jason Rumney <jasonr@gnu.org>
21535
21536 * w32term.c (w32_initialize): Add back smoothing_type and
21537 smoothing_enabled definitions.
21538
215392008-02-01 Kenichi Handa <handa@m17n.org>
21540
21541 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
21542 s->face->font on determining underline position.
21543
215442008-02-01 Kenichi Handa <handa@m17n.org>
21545
21546 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
21547 (font_has_char): Accept font-object too.
21548 (font_find_for_lface): Try at first with a size specified in face.
21549
215502008-02-01 Kenichi Handa <handa@m17n.org>
21551
21552 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
21553 font_open_by_name.
21554
215552008-02-01 Kenichi Handa <handa@m17n.org>
21556
21557 * font.h (QCspacing, QCdpi): Extern them.
21558 (enum font_spacing): New enum.
21559 (FONT_PIXEL_SIZE_QUANTUM): New macro.
21560
21561 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
21562 (QCspacing, QCdpi): New variables.
21563 (syms_of_font): Initialize them.
21564 (font_pixel_size): New function.
21565 (font_put_extra): New function.
21566 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
21567 in FONT_EXTRA.
21568 (font_parse_fcname): Handle enumerated values (e.g. bold).
21569 Fix handling font size. Add QCname property that contains only
21570 unknown properties.
21571 (font_score): Change argument. Change caller. Pay attention to
21572 FONT_PIXEL_SIZE_QUANTUM.
21573 (font_sort_entites, font_list_entities, font_find_for_lface)
21574 (font_open_for_lface, font_open_by_name): Fix handling of font size.
21575 (Ffont_spec): Add QCname property that contains only unknown properties.
21576
21577 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
21578 include weight in listing pattern, instead check weight of each
21579 listed font. Don't include scalable in pattern. Pay attention to
21580 FONT_PIXEL_SIZE_QUANTUM.
21581
215822008-02-01 Kenichi Handa <handa@m17n.org>
21583
21584 * font.c (font_parse_fcname): Fix parsing of point-size.
21585 (font_unparse_fcname): Produce symbolic names for style properties.
21586 (font_list_entities): Handle float size correctly.
21587 (font_open_by_name): Prefer `normal' property values if the name
21588 doesn't specify them.
21589
21590 * fontset.c (Finternal_char_font): Use font_get_name, not
21591 Ffont_xlfd_name.
21592
21593 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
21594 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
21595 pattern. Don't force scalable.
21596
21597 * xftfont.c (xftfont_open): For generating a name, start from
21598 96-byte buffer.
21599
216002008-02-01 Jan Djärv <jan.h.d@swipnet.se>
21601
21602 * frame.h (x_new_fontset2): Fix prototype.
21603
216042008-02-01 Kenichi Handa <handa@m17n.org>
21605
21606 * font.h (struct font_driver): Delete member parse_name.
21607 (font_match_p, font_get_spec, font_parse_fcname)
21608 (font_unparse_fcname): Extern them.
21609 (font_get_name): Adjust prototype.
21610
21611 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
21612 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
21613 (font_expand_wildcards): Fix handling ENCODING field. Avoid
21614 unnecessary checks for weight, slant, and swidth.
21615 (font_parse_fcname): New function.
21616 (font_unparse_fcname): New function.
21617 (font_parse_name): New function.
21618 (font_match_p): New function.
21619 (font_get_name): Change return value to Lisp string.
21620 (font_get_spec): New function.
21621 (Qunspecified, Qignore_defface): Don't extern them.
21622 (font_find_for_lface): Assume that LFACE is fully specified.
21623 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
21624 object, use it for FACE.
21625 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
21626 driver->parse_name.
21627 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
21628
21629 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
21630 prototype.
21631
21632 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
21633 argument F. Don't call Fnew_fontset. Instead, directly call
21634 make_fontset.
21635
21636 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
21637
21638 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
21639 of x_new_fontset2.
21640
21641 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
21642 (Qsans__serif): New variables.
21643 (ftfont_generic_family_list): New variable.
21644 (syms_of_ftfont): Initialize the above variables.
21645 (ftfont_pattern_entity): Delete argument NAME.
21646 (ftfont_list_generic_family): New function.
21647 (ftfont_parse_name): Delete this function.
21648 (ftfont_list): Try generic family only when FcFontList found no font.
21649 (ftfont_list_family): Fix args to FcObjectSetBuild.
21650
21651 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
21652 object in attrs[LFACE_FONT_INDEX].
21653 (set_lface_from_font_name): Cancel all changes for font-backend.
21654 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
21655 function.
21656 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
21657 font object in QCfont attribute.
21658 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
21659 (realize_default_face) [USE_FONT_BACKEND]: Call
21660 set_lface_from_font_and_fontset.
21661
21662 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
21663 "fixed", and signal error here if no suitable font was found.
21664
21665 * xfont.c (xfont_parse_name): Delete this function.
21666
21667 * xftfont.c (xftfont_open): Change coding style of error
21668 handling. Generate fontconfig's fontname pattern.
21669
21670 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
21671 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
21672
21673 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
21674 Both args FONTSET and FONT_OBJECT must be existing ones.
21675
216762008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21677
21678 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
21679
216802008-02-01 Kenichi Handa <handa@m17n.org>
21681
21682 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
21683
21684 * font.h (struct font): Fix typo.
21685
21686 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
21687 XLFD_XXX_INDEX.
21688 (enum xlfd_field_mask): New enum.
21689 (intern_font_field): Changed argument. Change caller. If digits
21690 are followed by non-digits, return a symbol.
21691 (font_expand_wildcards): New function.
21692 (font_parse_xlfd): Fix wildcard handling.
21693 (Ffont_spec): If :name is specified, reflect the info in the other
21694 properties.
21695
21696 * ftfont.c (ftfont_pattern_entity): Fix typo.
21697 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
21698 locale.
21699
217002008-02-01 Kenichi Handa <handa@m17n.org>
21701
21702 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
21703
21704 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
21705 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
21706 registry doesn't specify encoding part.
21707 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
21708 (font_open_by_name): At first try parsing the name.
21709 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
21710 as Lisp symbols.
21711
21712 * fontset.c (reorder_font_vector): Pay attention to the case that
21713 the 3rd element of font_def is nil.
21714 (fontset_font): For the default fontset, append one more fontset
21715 elements for a script-based font specification. Don't add script
21716 attribute on finding a font.
21717 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
21718 font name.
21719 (fontset_ascii_font): If a font can't be opened, return nil.
21720
21721 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
21722 (ftfont_pattern_entity): New function.
21723 (ftfont_get_cache): Assume that freetype_font_cache is already
21724 initialized.
21725 (ftfont_list): Handle the case that a file is specified in font
21726 name. Use ftfont_pattern_entity to generate entities.
21727 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
21728 (syms_of_ftfont): Initialize freetype_font_cache.
21729
21730 * xftfont.c (xftfont_open): Make the font name fontconfig's
21731 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
21732 (xftfont_close): Free font->font.name if not NULL.
21733
21734 * xfont.c (xfont_list): If script is specified for a font, return
21735 null_vector.
21736 (xfont_list_family): Declare argument type.
21737
21738 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
21739 name, set LFACE_FONT (lface) to nil.
21740
21741 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
21742 return Qnil.
21743
217442008-02-01 Kenichi Handa <handa@m17n.org>
21745
21746 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
21747 (standard_args): Add "-enable-font-backend".
21748
217492008-02-01 Kenichi Handa <handa@m17n.org>
21750
21751 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
21752 (struct xftdraw_list, xftdraw_list): Delete them.
21753 (register_xftdraw, check_xftdraw): Delete them.
21754 (xftfont_prepare_face): Don't call register_xftdraw.
21755 (xftfont_done_face): Don't call check_xftdraw.
21756 (xftfont_draw): Get background color only when with_background is
21757 nonzero.
21758
21759 * xfont.c (xfont_encode_char): Fix calculation of char2b.
21760
217612008-02-01 Kenichi Handa <handa@m17n.org>
21762
21763 These changes are for the new font handling codes.
21764
21765 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
21766 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
21767 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
21768 (FONTSRC, FONTOBJ): New variables.
21769 (obj): Add $(FONTOBJ).
21770 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
21771 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
21772 @LIBOTF_LIBS@.
21773 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
21774 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
21775
21776 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
21777
21778 * character.h (Vscript_representative_chars): Extern it.
21779
21780 * character.c (Vscript_representative_chars): New variable.
21781 (syms_of_character): Declare it as a Lisp variable.
21782
21783 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
21784 enable_font_backend is nonzero, accept the composition method
21785 COMPOSITION_WITH_GLYPH_STRING.
21786
21787 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
21788 enumeration COMPOSITION_WITH_GLYPH_STRING.
21789
21790 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
21791 members clip_x, clip_y, clip_width, and clip_height.
21792 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
21793
21794 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
21795 --enable-font-backend. Call syms_of_font.
21796
21797 * fns.c (assoc_no_quit): New function.
21798
21799 * fontset.h (FONT_INFO_FROM_FACE): New macro.
21800 (face_for_font, new_fontset_from_font)
21801 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
21802
21803 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
21804 (fontset_font, fontset_ascii, face_for_char)
21805 (make_fontset_for_ascii_face, Ffont_info)
21806 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
21807 is nonzero, use font-backend mechanism.
21808 (find_font_encoding): Make it non-static.
21809 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
21810 New functions.
21811
21812 * frame.h (struct frame): New members resx and resy.
21813 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
21814 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
21815
21816 * frame.c [USE_FONT_BACKEND]: Include "font.h".
21817 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
21818
21819 * lisp.h (assoc_no_quit): Extern it.
21820
21821 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
21822 Through out the file, use FONT_INFO_FROM_FACE instead of
21823 FONT_INFO_FROM_ID, use get_per_char_metric instead of
21824 rif->per_char_metric.
21825 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
21826 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
21827 (get_glyph_face_and_encoding, fill_composite_glyph_string)
21828 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
21829 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
21830 nonzero, use font-backend mechanism.
21831 (get_per_char_metric): New function.
21832
21833 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
21834 (set_lface_from_font_name)
21835 (set_font_frame_param, free_realized_face)
21836 (prepare_face_for_display, clear_face_gcs)
21837 (Finternal_set_font_selection_order, realize_x_face)
21838 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
21839 font-backend mechanism.
21840 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
21841 (load_face_font) [USE_FONT_BACKEND]: Abort.
21842 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
21843 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
21844
21845 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
21846 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
21847 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
21848 nonzero, register all available font drivers. Call
21849 x_default_font_parameter for deciding a font.
21850 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
21851
21852 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
21853 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
21854 (x_set_glyph_string_clipping_exactly)
21855 (x_compute_glyph_string_overhangs)
21856 (x_draw_glyph_string_foreground)
21857 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
21858 (x_free_frame_resources) [USE_FONT_BACKEND]: If
21859 enable_font_backend is nonzero, use font-backend mechanism.
21860 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
21861
218622008-02-01 Kenichi Handa <handa@m17n.org>
21863
21864 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
21865 system_eol_type.
21866 (syms_of_coding): Initialize system_eol_type.
21867
21868 * process.c (Fset_process_coding_system): Inherit system's eol
21869 format if necessary.
21870
218712008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21872
21873 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
21874
218752008-02-01 Kenichi Handa <handa@m17n.org>
21876
21877 * coding.c (decode_eol): Pay attention to buffer relocation in
21878 del_range_2.
21879 (decode_coding): Call decode_eol before restoring undo_list.
21880
218812008-02-01 Kenichi Handa <handa@m17n.org>
21882
21883 * charset.c (Fdefine_charset_internal): Fix setting of
21884 emacs_mule_bytes.
21885
218862008-02-01 Kenichi Handa <handa@m17n.org>
21887
21888 * keyboard.c (read_char): Check if C is a character or not before
21889 looking up Vkeyboard_translate_table.
21890
218912008-02-01 Kenichi Handa <handa@m17n.org>
21892
21893 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
21894 condition to terminate the loop.
21895
218962008-02-01 Kenichi Handa <handa@m17n.org>
21897
21898 * coding.c (produce_composition): Compare charbuf[i] instead of
21899 args[i] against 0.
21900 (Fterminal_coding_system): Use EQ to compare Lisp objects.
21901
219022008-02-01 Kenichi Handa <handa@m17n.org>
21903
21904 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
21905 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
21906 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
21907 detect_coding.
21908 (emacs_mule_char): Handle old style (Emacs 20) component character
21909 of a composition.
21910 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
21911 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
21912 composition rule.
21913 (decode_coding_emacs_mule): Handle invalid bytes correctly.
21914
219152008-02-01 Kenichi Handa <handa@m17n.org>
21916
21917 * coding.c (encode_coding_ccl): Allocate destination dynamically
21918 when necessary.
21919
219202008-02-01 Kenichi Handa <handa@m17n.org>
21921
21922 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
21923 the loop. When quitted, show a proper error message.
21924
219252008-02-01 Kenichi Handa <handa@m17n.org>
21926
21927 * xterm.c (x_set_glyph_string_clipping_exactly): Set
21928 src->clip_head and src->clip_tail temporarily instead of src->hl.
21929
21930 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
21931 character sequence.
21932 (Fccl_execute_on_string): Use ASET, not XSET.
21933
219342008-02-01 Kenichi Handa <handa@m17n.org>
21935
21936 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
21937
219382008-02-01 Kenichi Handa <handa@m17n.org>
21939
21940 * coding.c (decode_coding): Fix the condition of terminating the
21941 decoding loop.
21942
219432008-02-01 Kenichi Handa <handa@m17n.org>
21944
21945 * data.c (Faset): On setting a character bigger than 255 in a
21946 unibyte string, signal an error instead of make the string multibyte.
21947
219482008-02-01 Kenichi Handa <handa@m17n.org>
21949
21950 * charset.c (map_charset_chars): Fix for ascii-compatible charset
21951 made by a mapping table.
21952
219532008-02-01 Kenichi Handa <handa@m17n.org>
21954
21955 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
21956 not.
21957 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
21958 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
21959
21960 * xterm.c (x_draw_composite_glyph_string_foreground): Check
21961 s->face is NULL or not.
21962
219632008-02-01 Kenichi Handa <handa@m17n.org>
21964
21965 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
21966 (x_draw_glyph_string): Fix drawing of right_overhang and
21967 left_overhang around/on cursor.
21968
21969 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
21970
219712008-02-01 Kenichi Handa <handa@m17n.org>
21972
21973 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
21974
219752008-02-01 Kenichi Handa <handa@m17n.org>
21976
21977 * coding.c (Fdefine_coding_system_internal)
21978 (Fdefine_coding_system_alias): Avoid a duplicated element in
21979 Vcoding_system_alist.
21980
219812008-02-01 Kenichi Handa <handa@m17n.org>
21982
21983 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
21984
21985 * coding.c (Qcoding_system_define_form): New variable.
21986 (syms_of_coding): Intern and staticpro it.
21987 (Fcoding_system_p): Check Qcoding_system_define_form.
21988 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
21989
21990 * coding.h (CODING_SYSTEM_P): If ID is not available, call
21991 Fcoding_system_p.
21992 (CHECK_CODING_SYSTEM): If ID is not available, call
21993 Fcheck_coding_system.
21994 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
21995 Try also Fcheck_coding_system.
21996
219972008-02-01 Kenichi Handa <handa@m17n.org>
21998
21999 * coding.c (code_conversion_restore): GCPRO arg.
22000
220012008-02-01 Kenichi Handa <handa@m17n.org>
22002
22003 * character.c (lisp_string_width): Check multibyteness of STRING.
22004
220052008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22006
22007 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
22008 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
22009 (decode_mac_font_name): Use decode_coding_c_string instead of
22010 decode_coding.
22011 (x_load_font): Initialize fontp->fontset to -1. Set
22012 fontp->encoding_type.
22013
220142008-02-01 Kenichi Handa <handa@m17n.org>
22015
22016 * search.c (search_buffer): Give up BM search on case-fold-search
22017 if one of a target character has a case-equivalence of different
3b59c351 22018 byte length even if that target character is an ASCII.
aac0c6e3
MR
22019 (simple_search): Fix calculation of byte length of matched text.
22020 (boyer_moore): Fix handling of case-equivalent multibyte characters.
22021
220222008-02-01 Kenichi Handa <handa@m17n.org>
22023
22024 * coding.c (decode_coding): Fix handling of invalid bytes.
22025
220262008-02-01 Kenichi Handa <handa@m17n.org>
22027
22028 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
22029 Unicode characters.
22030
220312008-02-01 Kenichi Handa <handa@m17n.org>
22032
22033 * coding.c (encode_coding_object): If a pre-write-conversion
22034 function makes a new buffer, kill it.
22035
220362008-02-01 Kenichi Handa <handa@m17n.org>
22037
22038 * coding.c (QCascii_compatible_p): New variable.
22039 (syms_of_coding): Initialize it.
22040 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
22041 calling string_char.
22042 (record_conversion_result): Add `default:' case.
22043 (coding_charset_list): Delete unused variable `coding_type'.
22044 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
22045 property in the plist of the coding system.
22046 (Fcoding_system_put): Check QCascii_compatible_p.
22047
220482008-02-01 Miles Bader <miles@gnu.org>
22049
22050 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
22051 removed calculation of frame `f', as it's now used.
22052
220532008-02-01 Kenichi Handa <handa@m17n.org>
22054
22055 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
22056 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
22057 (UNIDATA): New variable.
22058 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
22059 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
22060 $(RUN_TEMACS) unconditionally.
22061
220622008-02-01 Kenichi Handa <handa@m17n.org>
22063
22064 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
22065 (admindir): New variable.
22066 ($(lispsource)international/charprop.el): New target.
22067
220682008-02-01 Miles Bader <miles@gnu.org>
22069
22070 * character.c (chars-in-region): Remove obsolete function.
22071 (syms_of_character): Remove its initialization.
22072
220732008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
22074
22075 * w32select.c (validate_coding_system)
22076 (setup_windows_coding_system): New functions.
22077 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
22078 setup_windows_coding_system.
22079 (setup_config, Fw32_get_clipboard_data): Use
22080 validate_coding_system.
22081 (Fx_selection_exists): Move call to setup_config to a place
22082 where signals are allowed.
22083
22084 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
22085 (Fcheck_coding_system): Add declarations.
22086
220872008-02-01 Kenichi Handa <handa@m17n.org>
22088
22089 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
22090
220912008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22092
22093 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
22094 string as the second argument for x_new_fontset.
22095
220962008-02-01 Kenichi Handa <handa@m17n.org>
22097
22098 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
22099 (encode_coding_object): Use safe_call instead of call2.
22100
221012008-02-01 Kenichi Handa <handa@m17n.org>
22102
22103 * fontset.c (Fset_fontset_font): Check family element of a given vector.
22104
22105 * Makefile.in (lisp): Include charprop.el.
22106
221072008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22108
22109 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
22110 Not sure if it's unnecessary.
22111
221122008-02-01 Steven Tamm <steventamm@mac.com>
22113
22114 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
22115 some possibly unnecessary fontset checking code that crashed
22116 when creating a new frame.
22117
221182008-02-01 Kenichi Handa <handa@m17n.org>
22119
22120 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
22121 lookup_face.
22122
22123 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
22124
22125 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
22126
221272008-02-01 Kenichi Handa <handa@m17n.org>
22128
22129 * coding.c: Cancel the change done in HEAD on 2008-02-01.
22130 (coding_charset_list): New function.
22131
22132 * coding.h (coding_charset_list): Extern it.
22133
221342008-02-01 Kenichi Handa <handa@m17n.org>
22135
22136 * fontset.c (Fset_fontset_font): Call find_font_encoding with
22137 concatenation of family and registry.
22138
221392008-02-01 Kenichi Handa <handa@m17n.org>
22140
22141 * character.h (BYTE8_STRING): Fix typo.
22142
22143 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
22144 string to multibyte (sync to HEAD).
22145
22146 * casefiddle.c (casify_region): Handle changes in byte-length
22147 using replace_range_2 (sync to HEAD).
22148
221492008-02-01 Andreas Schwab <schwab@suse.de>
22150
22151 * chartab.c (map_char_table): GCPRO table and arg.
22152
221532008-02-01 Kenichi Handa <handa@m17n.org>
22154
22155 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
22156 already at limit.
22157
221582008-02-01 Kenichi Handa <handa@m17n.org>
22159
22160 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
22161 instead of fast_c_string_match_ignore_case.
22162 (find_font_encoding): Change argument to Lisp_Object. Use
22163 fast_string_match_ignore_case instead of
22164 fast_c_string_match_ignore_case. Change caller.
22165
221662008-02-01 Kenichi Handa <handa@m17n.org>
22167
22168 * xdisp.c (get_next_display_element): In unibyte case, decide to
22169 display in octal form by checking a character by
22170 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
22171
22172 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
22173
22174 * character.c (unibyte_has_multibyte_table): New variable.
22175
22176 * character.h (unibyte_has_multibyte_table): Extern it.
22177 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
22178
221792008-02-01 Kenichi Handa <handa@m17n.org>
22180
22181 * coding.c (encode_coding_iso_2022): Fix handling of charset
22182 annotation.
22183
221842008-02-01 Kenichi Handa <handa@m17n.org>
22185
22186 * coding.c (setup_coding_system): If coding_system is nil, use
22187 Qundecided.
22188 (Fterminal_coding_system): Return nil if terminal coding system is
22189 `undecided'.
22190 (syms_of_coding): Define coding-system `undecided' here. Setup
22191 terminal_coding as `undecided'.
22192
221932008-02-01 Kenichi Handa <handa@m17n.org>
22194
22195 * xdisp.c (message_dolog, set_message_1): Call
22196 unibyte_char_to_multibyte with arg type int.
22197
22198 * lread.c (read1): Fix reading of a char-table.
22199
22200 * print.c (print_object): Include sub char-table in circularities
22201 detection.
22202
222032008-02-01 Kenichi Handa <handa@m17n.org>
22204
22205 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
22206 Append the found sequences in car of ARGS instead of prepending.
22207
222082008-02-01 Kenichi Handa <handa@m17n.org>
22209
22210 * fileio.c (report_file_error): Make a unibyte string from
22211 strerror (errorno).
22212 (Fsubstitute_in_file_name): Fix the arg to
22213 unibyte_char_to_multibyte. It is evaluated twice.
22214
222152008-02-01 Kenichi Handa <handa@m17n.org>
22216
22217 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
22218
222192008-02-01 Kenichi Handa <handa@m17n.org>
22220
22221 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
22222 BOM is not found.
22223 (detect_coding, detect_coding_system): Optimization for ISO-2022
22224 when no 8-bit data is found.
22225
222262008-02-01 Jason Rumney <jasonr@gnu.org>
22227
22228 * w32fns.c (x_to_w32_font): Update to use new coding struct.
22229
222302008-02-01 Kenichi Handa <handa@m17n.org>
22231
22232 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
22233 CHARS.
22234
222352008-02-01 Steven Tamm <steventamm@mac.com>
22236
22237 * macterm.c (mac_encode_char): Add charset argument and update
22238 to use encoding_type.
22239 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
22240 switch to pure fontset.
22241 (decode_mac_font_name): Temporarily remove decoding.
22242 (x_font_name_to_mac_font_name): Temporarily remove encoding.
22243 (x_load_font): Temporarily remove encoding.
22244
222452008-02-01 Kenichi Handa <handa@m17n.org>
22246
22247 * xfaces.c (Fface_font): If frame is not on a window system,
22248 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
22249 refer to face->font.
22250 (split_font_name_into_vector, build_font_name_from_vector)
22251 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
22252 when HAVE_WINDOW_SYSTEM is defined.
22253
222542008-02-01 Kenichi Handa <handa@m17n.org>
22255
22256 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
22257 (x_produce_glyphs): Fix setting of members of cmp in case
22258 cmp->glyph_len is zero.
22259
22260 * fontset.c (Fset_fontset_font): Fix docstring.
22261 (Ffontset_info): Make it backward compatible. New arg ALL.
22262
222632008-02-01 Kim F. Storm <storm@cua.dk>
22264
22265 * process.c (read_process_output): Grow decoding_buf when needed;
22266 this could cause a crash in allocate_string and compact_small_strings.
22267
222682008-02-01 Kenichi Handa <handa@m17n.org>
22269
22270 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
22271
222722008-02-01 Kenichi Handa <handa@m17n.org>
22273
22274 * coding.c (setup_coding_system): Set coding->common_flags
22275 correctly for raw-text.
22276 (consume_chars): On encoding unibyte text by raw-text, don't check
22277 multibyte form.
22278 (encode_coding): On encoding by raw-text, never use translation tables.
22279
22280 * fileio.c (e_write): Short cut for the case of no encoding.
22281
222822008-02-01 Kenichi Handa <handa@m17n.org>
22283
22284 * coding.c (detect_coding, detect_coding_system): Delete unused
22285 variables.
22286
222872008-02-01 Kenichi Handa <handa@m17n.org>
22288
22289 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
22290 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
22291
222922008-02-01 Kenichi Handa <handa@m17n.org>
22293
22294 * coding.c (Ffind_coding_systems_region_internal): Include
22295 raw-text and no-conversion in the result.
22296
222972008-02-01 Kenichi Handa <handa@m17n.org>
22298
22299 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
22300 (load_font_get_repertory): Delete unnecessary check of ENCODING of
22301 FONT_DEF.
22302 (font_def_arg, add_arg, from_arg, to_arg): New args.
22303 (set_fontset_font): Change argument.
22304 (Fset_fontset_font): Fix for the case that TARGET is a script
22305 name and charset name.
22306 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
22307
223082008-02-01 Kenichi Handa <handa@m17n.org>
22309
22310 * fontset.c (fontset_font): Rename from fontset_face. Change return
22311 value.
22312 (face_suitable_for_char_p, face_for_char): Adjust for the change
22313 of fontset_font.
22314 (make_fontset_for_ascii_face): Fix setting of the fontset element
22315 for ASCII.
22316 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
22317 to get a font name.
22318 (Ffontset_info): Adjust for the change of fontset_font.
22319
22320 * coding.c (emacs_mule_char): Check invalid code more rigidly.
22321
22322 * character.h (LEADING_CODE_LATIN_1_MIN)
22323 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
22324
223252008-02-01 Kenichi Handa <handa@m17n.org>
22326
22327 * editfns.c (check_translation): New function.
22328 (Ftranslate_region_internal): Handle M:N mapping.
22329
223302008-02-01 Kenichi Handa <handa@m17n.org>
22331
22332 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
22333
223342008-02-01 Kenichi Handa <handa@m17n.org>
22335
22336 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
22337 goto invalid_code.
22338 (decode_coding_iso_2022): Fix handling of invalid designation.
22339
22340 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
22341 after calling code_conversion_save.
22342
223432008-02-01 Kenichi Handa <handa@m17n.org>
22344
22345 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
22346
22347 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
22348
22349 * fontset.c: Include "intervals.h".
22350 (fontset_face): Fix comparing of Lisp_Objects.
22351 (free_face_fontset, new_fontset_from_font_name): Fix
22352 Lisp_Object/int mixup.
22353
22354 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
22355
22356 * coding.c: Add many prototypes for static functions.
22357 (get_translation_table): Allow max_lookup to be NULL.
22358 (decode_coding, Ffind_coding_systems_region_internal)
22359 (Funencodable_char_position, Fcheck_coding_systems_region): Call
22360 get_translation_table with max_lookup NULL.
22361
223622008-02-01 Kenichi Handa <handa@m17n.org>
22363
22364 * coding.c (get_translation_table): Declare it as Lisp_Object.
22365 (LOOKUP_TRANSLATION_TABLE): New macro.
22366 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
22367 instead of CHAR_TABLE_REF.
22368
223692008-02-01 Kenichi Handa <handa@m17n.org>
22370
22371 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
22372 annotation data format.
22373 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
22374 Change arguments FROM and TO to single argument NCHARS. Change caller.
22375 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
22376 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
22377 (decode_coding_ccl, decode_coding_charset): Pay attention to
22378 coding->charbuf_used.
22379 (get_translation): New function.
22380 (produce_chars): New arguments translation_table and last_block.
22381 Translate characters here. Return number of carryover chars.
22382 Change caller.
22383 (produce_composition): New argument pos. Change caller.
22384 Adjust for the change of annotation data format.
22385 (produce_charset, produce_annotation): Likewise.
22386 (decode_coding, encode_coding): Don't call translate_chars.
22387 (consume_chars): New arg translation_table. Change caller.
22388 (translate_chars): Delete.
22389 (syms_of_coding): Make translation-table's number of extra slots 2.
22390
223912008-02-01 Kenichi Handa <handa@m17n.org>
22392
22393 * search.c (simple_search): Fix setting this_pos_byte in backward
22394 search.
22395
22396 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
22397 byte sequence.
22398 (detect_coding_ccl): Fix setting of the variable valids.
22399
224002008-02-01 Kenichi Handa <handa@m17n.org>
22401
22402 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
22403
22404 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
22405
22406 * editfns.c (Ftranslate_region_internal): Rename from
22407 Ftranslate_region. Accept a char-table in TABLE.
22408 (syms_of_editfns): Defsubr Stranslate_region_internal.
22409
22410 * xfaces.c (set_lface_from_font_name): If a font is specified for
22411 a frame, generate a fontset from the font.
22412 (build_scalable_font_name): If the scalable font is requested for
22413 a specific size, don't change that size.
22414 (try_font_list): Try a scalable font also in the case that a
22415 pattern string is specified.
22416
224172008-02-01 Kenichi Handa <handa@m17n.org>
22418
22419 * xfaces.c (Fface_font): New optional arg CHARACTER.
22420
224212008-02-01 Kenichi Handa <handa@m17n.org>
22422
22423 * charset.h (CHARSET_OFFSET): New macro.
22424
224252008-02-01 Kenichi Handa <handa@m17n.org>
22426
22427 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
22428
22429 * fontset.c (fontset_face): Handle the case that repertory is a
22430 char-table.
22431 (find_font_encoding): Return nil for unknown encoding.
22432 (Fset_fontset_font): Ignore a font of unknown encoding.
22433
224342008-02-01 Kenichi Handa <handa@m17n.org>
22435
22436 * keymap.c (describe_vector): Handle default value of a char table.
22437
22438 * fontset.c (fontset_face): Handle fallback fonts correctly.
22439 (Ffontset_info): Return infomation about fallback fonts.
22440
224412008-02-01 Kenichi Handa <handa@m17n.org>
22442
22443 * fontset.c (FONTSET_DEFAULT): New macro.
22444 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
22445 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
22446 the case that it is nil.
22447 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
22448 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
22449
22450 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
22451 subset or superset.
22452
224532008-02-01 Kenichi Handa <handa@m17n.org>
22454
22455 * emacs.c (main): Call init_charset after syms_of_XXX.
22456
22457 * charset.c (Vcharset_map_directory): Delete.
22458 (Vcharset_map_path): New variable.
22459 (load_charset_map_from_file): Use Vcharset_map_path instead.
22460 (init_charset): Initialize Vcharset_map_path.
22461 (syms_of_charset): Delete declaration of "charset-map-directory",
22462 add declaration of "charset-map-path".
22463
224642008-02-01 Kenichi Handa <handa@m17n.org>
22465
22466 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
22467 ASCII only string.
22468
22469 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
22470
22471 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
22472 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
22473
224742008-02-01 Kenichi Handa <handa@m17n.org>
22475
22476 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
22477
22478 * coding.c (QCmnemonic, QCdefalut_char)
22479 (QCdecode_translation_table, QCencode_translation_table)
22480 (QCpost_read_conversion, QCpre_write_conversion): New variables.
22481 (get_translation_table): Return a list of translation tables if
22482 necessary.
22483 (decode_coding): Call get_translation_table with ENCODEP 0.
22484 (char_encodable_p): If translation_table is non-nil, always call
22485 translate_char.
22486 (Fdefine_coding_system_internal): Accept list of translation
22487 tables as :encode-translation-table and :decode-translation-table.
22488 (Fcoding_system_put): New function.
22489 (syms_of_coding): Declare new symbols. Defsubr
22490 Scoding_system_put.
22491 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
22492 typically JISX0212.
22493
22494 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
22495 when the charset is superset type.
22496
22497 * character.c (translate_char): Accept list of translation tables.
22498
224992008-02-01 Kenichi Handa <handa@m17n.org>
22500
22501 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
22502 (CODING_ATTR_TRANS_TBL): New macro.
22503
22504 * coding.c (get_translation_table): New function.
22505 (translate_chars): Fix the bug of skipping annotation data.
22506 (decode_coding, encode_coding): Utilize get_translation_table.
22507 (char_encodable_p, Funencodable_char_position): Translate char if
22508 necessary.
22509 (Ffind_coding_systems_region_internal)
22510 (Fcheck_coding_systems_region): Setup translation table for encode
22511 in a coding system attribute vector in advance.
22512 (Fdefine_coding_system_internal): Allow a symbol as translation
22513 table. For shift-jis type coding system, allow 4th charset.
22514
225152008-02-01 Kenichi Handa <handa@m17n.org>
22516
22517 * coding.c (decode_coding_sjis): Check the first byte rigidly.
22518
22519 * xdisp.c (get_next_display_element): Pass -1 as POS to
22520 FACE_FOR_CHAR if displaying a C-string.
22521
225222008-02-01 Kenichi Handa <handa@m17n.org>
22523
22524 * composite.c (get_composition_id): Handle xoff and yoff in a
22525 composition rule.
22526
22527 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
22528 (struct composition): New member lbearing and rbearing.
22529
22530 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
22531 (x_get_glyph_overhangs): Handle a composition glyph.
22532 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
22533
22534 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
22535 composition glyph.
22536
225372008-02-01 Kenichi Handa <handa@m17n.org>
22538
22539 * print.c: Include charset.h.
22540 (Vprint_charset_text_property): New variable.
22541 (Qdefault): Extern it.
22542 (PRINT_STRING_NON_CHARSET_FOUND)
22543 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
22544 (print_check_string_result): New variable.
22545 (print_check_string_charset_prop): New function.
22546 (print_prune_charset_plist): New variable.
22547 (print_prune_string_charset): New function.
22548 (print_object): Call print_prune_string_charset if
22549 Vprint_charset_text_property is not t.
22550 (print_interval): Print nothing if interval->plist is nil.
22551 (syms_of_print): Declare Vprint_charset_text_property as a lisp
22552 variable. Init and staticpro print_prune_charset_plist.
22553
225542008-02-01 Kenichi Handa <handa@m17n.org>
22555
22556 * fontset.c (new_fontset_from_font_name): Use the specified font
22557 for all characters in the new fontset.
22558
22559 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
22560 OBJECT args.
22561
22562 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
22563 OBJECT args for composition too.
22564
22565 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
22566 OBJECT args.
22567
225682008-02-01 Kenichi Handa <handa@m17n.org>
22569
22570 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
22571
22572 * fontset.c (reorder_font_vector): Adjust for the change of
22573 FONT_DEF format.
22574 (fontset_face): New arg id. Change caller.
22575 (face_for_char): New args pos and object.
22576 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
22577 (fs_query_fontset): Check NAME by Fassoc too.
22578 (Fset_fontset_font): Allow non-XLFD font name.
22579 (Ffontset_info): Adjust for the change of FONT_DEF format.
22580
22581 * fontset.h (face_for_char): Adjust prototype.
22582
22583 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
22584 (append_space, extend_face_to_end_of_line)
22585 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
22586 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
22587
22588 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
22589 POS and OBJECT args.
22590
22591 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
22592 POS and OBJECT args.
22593
225942008-02-01 Jason Rumney <jasonr@gnu.org>
22595
22596 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
22597 of GlobalAlloc'ed memory.
22598
225992008-02-01 Kenichi Handa <handa@m17n.org>
22600
22601 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
22602
22603 * charset.h (charset_table_used): Delete extern.
22604
22605 * charset.c (charset_table_used): Make it static.
22606 (map_charset_chars): Fix args to c_function with.
22607
22608 * chartab.c (map_sub_char_table_for_charset): Fix args to
22609 c_function with.
22610
22611 * coding.h (enum coding_result_code): Delete
22612 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
22613
22614 * coding.c (Qinsufficient_source, Qinconsistent_eol)
22615 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
22616 (Vlast_code_conversion_error): New variables.
22617 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
22618 (ONE_MORE_BYTE): Record error if any instead of signaling an
22619 error. If non-ASCII multibyte char is found, return the negative
22620 value of the code. All callers changed to check it.
22621 (ONE_MORE_BYTE_NO_CHECK): Likewise.
22622 (record_conversion_result): New function. Change all codes setting
22623 coding->result to call this function.
22624 (detect_coding_utf_8, decode_coding_utf_8)
22625 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
22626 Don't use the local variable incomplete.
22627 (emacs_mule_char): Change the second arg to `const'.
22628 (decode_coding): Fix of flushing out unprocessed data.
22629 (make_conversion_work_buffer): Fix making of a work buffer.
22630 (decode_coding_object): Return coding->dst_object.
22631
22632 * fontset.c (set_fontset_font): Fix args.
22633
22634 * lisp.h (CHARACTERBITS): Define as 22.
22635
22636 * process.c (send_process): Be sure to set coding->src_multibyte.
22637
22638 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
22639
226402008-02-01 Kenichi Handa <handa@m17n.org>
22641
22642 * xdisp.c (handle_auto_composed_prop): Give limit to
22643 Fnext_single_char_property_change.
22644
226452008-02-01 Kenichi Handa <handa@m17n.org>
22646
22647 * composite.c (syms_of_composite): Don't make the composition hash
22648 table weak.
22649
22650 * fontset.c (Fset_fontset_font): Fix docstring.
22651
22652 * lisp.h (detect_coding_system): Adjust prototype.
22653
22654 * fileio.c (kill_workbuf_unwind): Delete this function.
22655 (Finsert_file_contents): Adjust the call of detect_coding_system.
22656 Get conversion_buffer by code_conversion_save. Use the macro
22657 CODING_MAY_REQUIRE_DECODING. After decoding, update
22658 coding_system.
22659
22660 * coding.h (make_conversion_work_buffer): Delete extern.
22661 (code_conversion_save): Extern it.
22662
22663 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
22664 (CODING_GET_INFO): Delete argument eol_type. Change callers.
22665 (decode_coding_utf_8): Don't do eol converion.
22666 (detect_coding_utf_16): Check coding->src_chars, not
22667 coding->src_bytes. Add heuristics for those that have no signature.
22668 (decode_coding_emacs_mule, decode_coding_iso_2022)
22669 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
22670 Don't do eol converion.
22671 (adjust_coding_eol_type): Return a new coding system.
22672 (detect_coding): Don't detect eol. Fix for utf-16 detection.
22673 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
22674 each change.
22675 (decode_coding): Pay attention to undo_list. Do eol conversion for
22676 all types of coding-systems (if necessary).
22677 (Vcode_conversion_work_buf_list): Delete it.
22678 (Vcode_conversion_reused_workbuf): Rename from
22679 Vcode_conversion_reused_work_buf.
22680 (Vcode_conversion_workbuf_name): New variable.
22681 (reused_workbuf_in_use): New variable.
22682 (make_conversion_work_buffer): Delete the arg DEPTH.
22683 (code_conversion_restore): Change argument to cons.
22684 (code_conversion_save): Delete the argument BUFFER. Change callers.
22685 (detect_coding_system): New argument src_chars. Change callers.
22686 Fix for utf-16 detection.
22687 (init_coding_once): Don't use ISO_carriage_return.
22688 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
22689 reused_workbuf_in_use.
22690
226912008-02-01 Kenichi Handa <handa@m17n.org>
22692
22693 * keymap.c (store_in_keymap): Pay attention to the case that idx
22694 is a cons specifying a character range.
22695
226962008-02-01 Kenichi Handa <handa@m17n.org>
22697
22698 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
22699 HANDLED_RECOMPUTE_PROPS.
22700
22701 * coding.c (Fdefine_coding_system_internal): Fix checking of
22702 ascii compatibility.
22703
227042008-02-01 Kenichi Handa <handa@m17n.org>
22705
22706 * charset.c (find_charsets_in_text): Delete unused locale variable.
22707 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
22708
22709 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
22710 Resync charset_list to Vemacs_mule_charset_list.
22711
22712 * keymap.c (store_in_keymap): Pay attention to the case that idx
22713 is a cons specifying a character range.
22714
227152008-02-01 Kenichi Handa <handa@m17n.org>
22716
22717 * composite.c (update_compositions): Bind inhibit-read-only, etc
22718 to t before calling remove-list-of-text-properties.
22719
22720 * print.c (print_object): Always print ASCII chars as is.
22721
227222008-02-01 Kenichi Handa <handa@m17n.org>
22723
22724 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
22725
22726 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
22727 is a char table.
22728
227292008-02-01 Kenichi Handa <handa@m17n.org>
22730
22731 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
22732
227332008-02-01 Kenichi Handa <handa@m17n.org>
22734
22735 * xfaces.c (set_lface_from_font_name): Fix for the case that
22736 FONTNAME is not fontset name.
22737
227382008-02-01 Kenichi Handa <handa@m17n.org>
22739
22740 * fns.c (base64_encode_1): Fix previous change.
22741
227422008-02-01 Kenichi Handa <handa@m17n.org>
22743
22744 * fontset.c (set_fontset_font): New function.
22745 (Fset_fontset_font): If a font is specified for a charset, use
22746 map_charset_chars to store the font spec in a fontset.
22747
227482008-02-01 Kenichi Handa <handa@m17n.org>
22749
22750 * fontset.c (fontset_face): Create a fallback fontset on demand.
22751 (make_fontset): Don't create a fallback fontset here.
22752 (free_face_fontset): Free a fallback fontset (if any) too.
22753 (n_auto_fontsets): Delete this variable.
22754 (auto_fontset_alist): New variable.
22755 (new_fontset_from_font_name): Check auto_fontset_alist.
22756 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
22757 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
22758 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
22759 Defsubr Sfontset_list_all.
22760
227612008-02-01 Kenichi Handa <handa@m17n.org>
22762
22763 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
22764
227652008-02-01 Kenichi Handa <handa@m17n.org>
22766
22767 * fontset.c (Fnew_fontset): Check NAME more rigidly.
22768
227692008-02-01 Kenichi Handa <handa@m17n.org>
22770
22771 * editfns.c (Fgoto_char): Fix docstring.
22772
227732008-02-01 Kenichi Handa <handa@m17n.org>
22774
22775 * insdel.c (insert_from_gap): Adjust intervals correctly.
22776
227772008-02-01 Jason Rumney <jasonr@gnu.org>
22778
22779 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
22780 (pfnGetFontUnicodeRanges): New dynamically loaded function.
22781 (w32_initialize): Try to load it.
22782 (x_get_font_repertory): Use it if available.
22783 (w32_encode_char): Add shortcut for unicode output.
22784
22785 * w32fns.c (w32_load_system_font): Default charset to -1.
22786 (x_to_w32_charset): Match all fonts for unicode.
22787 (w32_to_x_charset): New parameter matching. Don't return partial
22788 or wildcard charsets.
22789 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
22790 (w32_codepage_for_font): Return CP_UNICODE for unicode.
22791 (w32_to_x_font): Match charset to real charset.
22792 (enum_font_cb2): Always list unicode versions.
22793
22794 * makefile.w32-in (temacs): Increase EMHEAP.
22795
227962008-02-01 Jason Rumney <jasonr@gnu.org>
22797
22798 * w32term.c (w32_encode_char): New charset parameter.
22799 font_info.encoding becomes encoding_type.
22800 (x_get_font_repertory): New function. Warning: stub only!
22801 (x_new_font): Return quickly if font already set.
22802 (x_new_fontset): fontsetname parameter is Lisp_Object.
22803 Use new fs_query_fontset. Try new_fontset_from_font_name.
22804 Use fontset_name for return value.
22805
22806 * w32term.h: Declare x_get_font_repertory.
22807
22808 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
22809 place of find_charset_in_text. Use encode_coding_object in place
22810 of encode_coding.
22811 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
22812 decode_coding.
22813
22814 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
22815 of x_new_fontset.
22816 (w32_load_system_font): Initialize charset as unicode.
22817 font_info.encoding becomes encoding_type.
22818 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
22819 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
22820 (syms_of_w32fns): Set get_font_repertory_func.
22821
22822 * w32console.c: Include character.h. Use terminal_encode_buffer
22823 from term.c.
22824 (write_glyphs): Use new version of encode_terminal_code. Use
22825 encode_coding_object in place of encode_coding.
22826
22827 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
22828 encoding becomes encoding_type.
22829
22830 * term.c (terminal_encode_buffer): Make externally visible.
22831
22832 * makefile.w32-in: Add character.h dependancies.
22833 (character.o, chartab.o): New targets.
22834
228352008-02-01 Kenichi Handa <handa@m17n.org>
22836
22837 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
22838 CODING_ID_EOL_TYPE.
22839
228402008-02-01 Andreas Schwab <schwab@suse.de>
22841
22842 * coding.c (produce_chars): Revert last change.
22843
228442008-02-01 Kenichi Handa <handa@m17n.org>
22845
22846 * charset.h (charset_unicode): Extern it.
22847
22848 * charset.c (string_xstring_p): Check by (C >= 0x100).
22849 (find_charsets_in_text): Change format of the arc CHARSETS. New
22850 arg MULTIBYTE.
22851 (Ffind_charset_region, Ffind_charset_string): Adjust for the
22852 change of find_charsets_in_text.
22853 (Fsplit_char): Fix doc. Never return unknown.
22854
22855 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
22856
22857 * coding.c (Fdefine_coding_system_alias): Update
22858 Vcoding_system_list.
22859
22860 * fontset.c (load_font_get_repertory): Pay attention to the case
22861 that ENCODING of a font is specified by a char-table.
22862
22863 * xterm.c (x_get_font_repertory): Handle the case that the
22864 encoding of font is other than Unicode.
22865
228662008-02-01 Kenichi Handa <handa@m17n.org>
22867
22868 * term.c (encode_terminal_code): Don't handle glyph-table. Check
22869 if a character is encodable by the terminal coding system. If
22870 not, produces proper number of `?'s. Update
22871 terminal_encode_buffer and terminal_encode_buf_size if necessary.
22872 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
22873
228742008-02-01 Kenichi Handa <handa@m17n.org>
22875
22876 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
22877 variables.
22878 (encode_terminal_code): Change argument. Encode multiple
22879 characters at once. Store the result of encoding in
22880 terminal_encode_buffer.
22881 (write_glyphs, insert_glyphs): Adjust for the change of
22882 encode_terminal_code.
22883 (term_init): Initialize terminal_encode_buffer and
22884 terminal_encode_buf_size.
22885
22886 * coding.c (consume_chars): If coding->src_object is nil, don't
22887 check annotation.
22888
228892008-02-01 Kenichi Handa <handa@m17n.org>
22890
22891 * character.c (char_string): Use ASCII_CHAR_P instead of
22892 SINGLE_BYTE_CHAR_P.
22893
228942008-02-01 Kenichi Handa <handa@m17n.org>
22895
22896 * xdisp.c (handle_auto_composed_prop): Check if the last
22897 characters of auto-composed region is newly composed with the
22898 following characters.
22899 (handle_composition_prop): Fix checking of point being inside
22900 composition.
22901
229022008-02-01 Kenichi Handa <handa@m17n.org>
22903
22904 * fns.c (concat): Don't change multibyteness of the result by
22905 concatenating an 8-bit character.
22906
22907 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
22908 multibyteness of the result when newelt is an 8-bit character.
22909
229102008-02-01 Dave Love <fx@gnu.org>
22911
22912 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
22913 EMACS_INT.
22914
22915 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
22916
22917 * xfaces.c (face_numeric_value): Declare dim size_t.
22918 (Finternal_lisp_face_equal_p): Remove unused f.
22919
22920 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
22921 (MATRIX_ROW): Remove unused vars.
22922 (draw_glyphs, x_insert_glyphs, fast_find_position)
22923 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
22924 byte/char counts.
22925
22926 * regex.c (regex_compile): Remove unused var.
22927
22928 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
22929
22930 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
22931 (Faccessible_keymaps, where_is_internal): Remove unused vars.
22932
22933 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
22934
22935 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
22936
22937 * fileio.c (Fwrite_region): Remove unused var.
22938
22939 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
22940 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
22941
22942 * composite.c (Fremove_list_of_text_properties): Declare.
22943
22944 * coding.c (inhibit_pre_post_conversion): Remove (unused).
22945 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
22946 (coding_inherit_eol_type): Remove unused attrs.
22947 (detect_coding): Cast arg of detect_eol.
22948
22949 * charset.c (syms_of_charset): Remove unused var p.
22950 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
22951 byte/char counts.
22952
22953 * casetab.c (set_case_table): Remove unused var.
22954
22955 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
22956 unused vars.
22957
229582008-02-01 Dave Love <fx@gnu.org>
22959
22960 * xterm.c (x_bitmap_mask): Declare.
22961
229622008-02-01 Dave Love <fx@gnu.org>
22963
22964 * xterm.c (x_term_init): Fix type error.
22965
22966 * lisp.h: Add Funibyte_char_to_multibyte.
22967
22968 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
22969 (Fset_coding_system_priority): Doc fix.
22970
22971 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
22972
22973 * indent.c (check_composition): Make start and end EMACS_INT.
22974
22975 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
22976
22977 * xdisp.c (handle_composition_prop, check_point_in_composition):
22978 Make buffer positions EMACS_INT.
22979
22980 * composite.c (find_composition, run_composition_function)
22981 (update_compositions, Ffind_composition_internal): Make buffer
22982 positions EMACS_INT.
22983
22984 * composite.h (find_composition, update_compositions): Make
22985 position args EMACS_INT.
22986
22987 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
22988
22989 * intervals.c (get_property_and_range):
22990 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
22991
22992 * unexalpha.c: Don't include varargs.h.
22993
229942008-02-01 Dave Love <fx@gnu.org>
22995
22996 * coding.h (ENCODE_UTF_8): New.
22997
22998 * Makefile.in (gtkutil.o): Depend on coding.h.
22999
23000 * coding.c (Fset_coding_system_priority): Doc fix.
23001
230022008-02-01 Kenichi Handa <handa@m17n.org>
23003
23004 * fileio.c (Finsert_file_contents): Call setup_coding_system in
23005 the case of auto saving.
23006
230072008-02-01 Andreas Schwab <schwab@suse.de>
23008
23009 * chartab.c (map_char_table, map_char_table_for_charset): Protect
23010 `range' from GC.
23011
230122008-02-01 Kenichi Handa <handa@m17n.org>
23013
23014 * coding.c (decode_coding_sjis): Check bytes more rigidly.
23015
230162008-02-01 Kenichi Handa <handa@m17n.org>
23017
23018 * fileio.c (choose_write_coding_system): Return a decided coding system.
23019 (Fwrite_region): Set Vlast_coding_system_used to the return value
23020 of choose_write_coding_system.
23021
230222008-02-01 Kenichi Handa <handa@m17n.org>
23023
23024 * charset.c (Fset_charset_priority): Pay attention to duplicated
23025 arguments.
23026
23027 * coding.c (QCcategory): New variable.
23028 (syms_of_coding): Defsym it. Set all elements of
23029 Vcoding_category_table and their symbol values.
23030 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
23031 coding-category-XXX, and coding-category-list.
23032 (Fdefine_coding_system_internal): Add category in the plist.
23033
230342008-02-01 Kenichi Handa <handa@m17n.org>
23035
23036 * callproc.c (Fcall_process): Handle carryover correctly.
23037
23038 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
23039 (raw_text_coding_system): Check NILP (coding_system).
23040 (coding_inherit_eol_type): Check NILP (coding_system) and
23041 NILP (parent).
23042 (consume_chars): Fix for the case of raw-text.
23043
23044 * process.c (read_process_output): Handle carryover correctly.
23045
230462008-02-01 Dave Love <fx@gnu.org>
23047
23048 * regex.c (re_search_2): Fix last change.
23049
230502008-02-01 Kenichi Handa <handa@m17n.org>
23051
23052 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
23053 target_multibyte. Even in a unibyte case, return a converted
23054 multibyte char.
23055 (GET_CHAR_AFTER): New macro.
23056 (PATFETCH): Translate via multibyte char.
23057 (HANDLE_UNIBYTE_RANGE): Delete this macro.
23058 (SETUP_MULTIBYTE_RANGE): New macro.
23059 (regex_compile): Setup compiled code so that its multibyteness
23060 matches that of a target. Fix the handling of "[X-YZ]" using
23061 SETUP_MULTIBYTE_RANGE.
23062 (analyse_first) <charset>: For filling fastmap for all multibyte
23063 characters, don't check by BASE_LEADING_CODE_P.
23064 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
23065 the same as RE_MULTIBYTE_P (bufp) now.
23066 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
23067 (TARGET_CHAR_AND_LENGTH): Delete this macro.
23068 (TRANSLATE_VIA_MULTIBYTE): New macro.
23069 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
23070 It is the same as RE_MULTIBYTE_P (bufp) now.
23071 <exactn>: Translate via multibyte.
23072 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
23073 translate it.
23074 <charset, charset_not>: Fetch a character by
23075 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
23076 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
23077 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
23078 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
23079 by GET_CHAR_AFTER.
23080 (bcmp_translate): Likewise.
23081
23082 * search.c (compile_pattern): Check the member target_multibyte,
23083 not the member multibyte of buf.
23084
23085 * lread.c (read1): While reading a string, set force_singlebyte
23086 and force_multibyte correctly.
23087
23088 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
23089 up of unibyte_to_multibyte_table.
23090
230912008-02-01 Kenichi Handa <handa@m17n.org>
23092
23093 * coding.c (setup_coding_system): If coding has
23094 post-read-conversion or pre-write-conversion, set
23095 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
23096 respectively.
23097 (decode_coding_gap): Run post-read-conversion if any.
23098
23099 * fileio.c (Finsert_file_contents): Even if we read into a
23100 unibyte buffer, check if we must decode the result or not.
23101
231022008-02-01 Kenichi Handa <handa@m17n.org>
23103
23104 * coding.c (make_conversion_work_buffer): Change the work buffer
23105 name to the same one as that of Emacs 21.
23106
231072008-02-01 Kenichi Handa <handa@m17n.org>
23108
23109 * coding.h (make_conversion_work_buffer): Adjust prototype.
23110 (code_conversion_restore): Don't extern it.
23111
23112 * coding.c (detected_mask): Delete unused variable.
23113 (decode_coding_iso_2022): Pay attention to the byte sequence of
23114 CTEXT extended segment, and retain those bytes as is.
23115 (decode_coding_ccl): Delete unused variable `valids'.
23116 (setup_coding_system): Delete unused variable `category'.
23117 (consume_chars): Delete unused variable `category'. Make it work
23118 for non-multibyte case.
23119 (make_conversion_work_buffer): Change argument.
23120 (saved_coding): Delete unused variable.
23121 (code_conversion_restore): Don't check saved_coding->destination.
23122 (code_conversion_save): New function.
23123 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
23124 instead of record_unwind_protect.
23125 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
23126 (detect_coding_system): Delete unused variable `mask'.
23127 (Fdefine_coding_system_internal): Delete unused variable id.
23128
23129 * fileio.c (kill_workbuf_unwind): New function.
23130 (Finsert_file_contents): On replacing, call
23131 make_conversion_work_buffer with correct args, and call
23132 record_unwind_protect with the first arg kill_workbuf_unwind.
23133
23134 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
23135
231362008-02-01 Kenichi Handa <handa@m17n.org>
23137
23138 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
23139 (fontset_add): Fix for the case that TO is less than TO1.
23140 (Ffontset_info): Don't use fallback fontset on checking the
23141 default fontset.
23142 (dump_fontset): New function for debugging.
23143
23144 * coding.c (Fdefine_coding_system_internal): Fix for the case that
23145 coding_type is Qcharset.
23146
231472008-02-01 Kenichi Handa <handa@m17n.org>
23148
23149 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
23150 (map_char_table): Don't inherit the value from the parent on
23151 initializing VAL. Adjust for the above change.
23152
231532008-02-01 Kenichi Handa <handa@m17n.org>
23154
23155 * coding.c (Qsignature, Qendian): Delete these variables.
23156 (syms_of_coding): Don't initialize them.
23157 (CATEGORY_MASK_UTF_16_AUTO): New macro.
23158 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
23159 detect_info->found.
23160 (decode_coding_utf_16): Don't detect BOM here.
23161 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
23162 is NOT utf_16_without_bom.
23163 (setup_coding_system): For a coding system of type utf-16, check
23164 if the attribute :endian is Qbig or not (not nil or not), and set
23165 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
23166 (detect_coding): If coding type is utf-16 and BOM detection is
23167 required, detect it.
23168 (Fdefine_coding_system_internal): For a coding system of type
23169 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
23170
231712008-02-01 Kenichi Handa <handa@m17n.org>
23172
23173 * coding.c (coding_set_source): Fix for the case that the current
23174 buffer is different from coding->src_object.
23175 (decode_coding_object): Don't use the conversion work buffer if
23176 DST_OBJECT is a buffer.
23177
231782008-02-01 Dave Love <fx@gnu.org>
23179
23180 * lread.c (read_emacs_mule_char) [len==2]: Index
23181 emacs_mule_charset correctly.
23182
231832008-02-01 Dave Love <fx@gnu.org>
23184
23185 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
23186 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
23187 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
23188 treated specially.)
23189 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
23190 (detected_mask): Remove Big5 bits.
23191
231922008-02-01 Kenichi Handa <handa@m17n.org>
23193
23194 The following changes are to make the font rescaling facility
23195 compatible with Emacs 21.
23196
23197 * xfaces.c (Vface_font_rescale_alist): Rename from
23198 Vface_resizing_fonts.
23199 (struct font_name): Rename member resizing_ratio to rescale_ratio.
23200 (font_rescale_ratio): Rename from font_resizing_ratio.
23201 (split_font_name): Set font->rescale_ratio.
23202 (better_font_p): Pay attention to font->rescale_ratio.
23203 (build_scalable_font_name): Likewise. Change RESX, and RESY
23204 fields.
23205 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
23206
232072008-02-01 Kenichi Handa <handa@m17n.org>
23208
23209 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
23210 (Qutf_16_le): Remove these variables.
23211 (syms_of_coding): Don't DEFSYM them.
23212 (decode_coding_utf_16): Fix handling of BOM.
23213 (encode_coding_utf_16): Fix handling of BOM.
23214
232152008-02-01 Kenichi Handa <handa@m17n.org>
23216
23217 * fileio.c (Finsert_file_contents): On replacing, before decoding
23218 the file into the work buffer, set point of the work buffer to the end.
23219
232202008-02-01 Dave Love <fx@gnu.org>
23221
23222 * coding.c (Fcheck_coding_systems_region): Fix type errors.
23223
232242008-02-01 Dave Love <fx@gnu.org>
23225
23226 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
23227 and fix C types.
23228
232292008-02-01 Kenichi Handa <handa@m17n.org>
23230
23231 * xdisp.c (SKIP_GLYPHS): New macro.
23232 (set_cursor_from_row): Pay attention to string display properties.
23233
23234 * category.c (copy_category_entry): Fix for the case that RANGE
23235 is an integer.
23236
23237 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
23238
23239 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
23240
232412008-02-01 Kenichi Handa <handa@m17n.org>
23242
23243 * charset.c (Fcharset_id_internal): New function.
23244 (syms_of_charset): Defsubr it.
23245
23246 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
23247 with the last arg charset_list acquired from coding.
23248 (Fdefine_coding_system_internal): For ccl-based coding system, fix
23249 the attribute coding_attr_ccl_valids.
23250
23251 * coding.h (enum define_coding_ccl_arg_index): Set the first
23252 member coding_arg_ccl_decoder to coding_arg_max.
23253
23254 * ccl.h (ccl_driver): Adjust prototype.
23255
23256 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
23257 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 23258 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
23259 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
23260 last arg Qnil.
23261
232622008-02-01 Kenichi Handa <handa@m17n.org>
23263
23264 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
23265 call encode_char.
23266
23267 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
23268
232692008-02-01 Dave Love <fx@gnu.org>
23270
23271 * composite.c (syms_of_composite): Make composition_hash_table weak.
23272
232732008-02-01 Kenichi Handa <handa@m17n.org>
23274
23275 * dispextern.h (check_face_attributes, generate_ascii_font_name)
23276 (font_name_registry): Don't extern them.
23277 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
23278
23279 * fontset.h (Qfontset): Don't extern it.
23280 (new_fontset_from_font_name): Extern it.
23281
23282 * fontset.c: Give 8 extra slots to fontset objects.
23283 (Qfontset_info): New variable.
23284 (syms_of_fontset): Defsym it.
23285 (FONTSET_FALLBACK): New macro.
23286 (fontset_face): Try also the default fontset.
23287 (make_fontset): Realize a fallback fontset from the default fontset.
23288 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
23289 using split_font_name_into_vector and build_font_name_from_vector.
23290 (Fset_fontset_font): Access the elements of font_spec by enum
23291 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
23292 name by using split_font_name_into_vector.
23293 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
23294 generate a proper font name from the fontset name. Update
23295 Vfontset_alias_alist.
23296 (n_auto_fontsets): New variable.
23297 (new_fontset_from_font_name): New function.
23298 (Ffont_info): Store the information about fonts generated from the
23299 default fontset in the first extra slot of the returned char-table.
23300
23301 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
23302 (font_name_registry): Delete function.
23303 (split_font_name_into_vector): New function.
23304 (build_font_name_from_vector): New function.
23305 (font_list): The argument REGISTRY is now a list of registry names.
23306 (choose_face_font): If we are choosing an ASCII font, and ATTRS
23307 specifies an explicit font name, return the name as is. Make a
23308 list of registy names.
23309
23310 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
23311 of x_new_fontset.
23312 (Fx_create_frame): Don't call x_new_fontset here. Just use
23313 x_list_fonts to check the existence of fonts.
23314
23315 * xterm.h (x_new_fontset): Adjust prototype.
23316
23317 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
23318 string. Use new_fontset_from_font_name to create a fontset from a
23319 font name.
23320
233212008-02-01 Kenichi Handa <handa@m17n.org>
23322
23323 * syntax.c (Vfind_word_boundary_function_table): New name for
23324 Vnext_word_boundary_function_table.
23325 (find-word-boundary-function-table): New name for
23326 next-word-boundary-function-table.
23327
233282008-02-01 Dave Love <fx@gnu.org>
23329
23330 * Makefile.in: Fix some dependencies.
23331
23332 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
23333 set it to nil before returning.
23334
23335 * composite.c (update_compositions): Fix type error.
23336
23337 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
23338
233392008-02-01 Kenichi Handa <handa@m17n.org>
23340
23341 * xterm.c (x_new_font): Optimize for the case that the font is
23342 already set for the frame.
23343
233442008-02-01 Kenichi Handa <handa@m17n.org>
23345
23346 * chartab.c (char_table_ascii): Check if the char table contents
23347 is sub-char-table or not.
23348 (char_table_set, char_table_set_range): Fix argument to
23349 char_table_ascii.
23350
23351 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
23352 (detect_coding_utf_8, detect_coding_utf_16)
23353 (detect_coding_emacs_mule, detect_coding_iso_2022)
23354 (detect_coding_sjis, detect_coding_big5)
23355 (detect_coding_ccl, detect_coding_charset): Change argument MASK
23356 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
23357 sequence is valid in this coding system. Change callers.
23358 (MAX_ANNOTATION_LENGTH): New macro.
23359 (ADD_ANNOTATION_DATA): New macro.
23360 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
23361 ADD_ANNOTATION_DATA. Change the format of annotation data.
23362 (ADD_CHARSET_DATA): New macro.
23363 (emacs_mule_char): New argument ID. Change callers.
23364 (decode_coding_emacs_mule, decode_coding_iso_2022)
23365 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
23366 Produce charset annotation data in coding->charbuf.
23367 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
23368 to charset annotation data in coding->charbuf.
23369 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
23370 coding->common_flags if the coding system is iso-2022 based and
23371 uses designation.
23372 (produce_composition): Adjust for the new annotation data format.
23373 (produce_charset): New function.
23374 (produce_annotation): Handle charset annotation.
23375 (handle_composition_annotation, handle_charset_annotation): New
23376 functions.
23377 (consume_chars): Handle charset annotation. Utilize the above two
23378 functions.
23379 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
23380 buffer, get the deleted text as a string and set
23381 coding->src_object to that string.
23382 (detect_coding, detect_coding_system): Use the new struct
23383 coding_detection_info.
23384
23385 * coding.h (struct coding_detection_info): New structure.
23386 (struct coding_system): Adjust prototype of the member `detector'.
23387 (CODING_ANNOTATE_CHARSET_MASK): New macro.
23388
233892008-02-01 Kenichi Handa <handa@m17n.org>
23390
23391 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
23392
233932008-02-01 Dave Love <fx@gnu.org>
23394
23395 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
23396 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
23397 to new local and nullify apropos_accumulate before returning.
23398 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
23399
234002008-02-01 Kenichi Handa <handa@m17n.org>
23401
23402 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
23403 correctly.
e3eea1fc 23404
aac0c6e3
MR
234052008-02-01 Dave Love <fx@gnu.org>
23406
23407 * fns.c (Flanginfo): Call synchronize_system_time_locale.
23408
234092008-02-01 Kenichi Handa <handa@m17n.org>
23410
23411 The following changes are to make character composition happen
23412 automatically on displaying.
23413
23414 * Makefile.in (lisp, shortlisp): Add composite.elc.
23415
23416 * composite.h (Qauto_composed, Vauto_composition_function)
23417 (Qauto_composition_function): Extern them.
23418
23419 * composite.c (Vcomposition_function_table)
23420 (Qcomposition_function_table): Delete variables.
23421 (Qauto_composed, Vauto_composition_function)
23422 (Qauto_composition_function): New variables.
23423 (run_composition_function): Don't call
23424 compose-chars-after-function.
23425 (update_compositions): Clear `auto-composed' text property.
23426 (compose_chars_in_text): Delete this function.
23427 (syms_of_composite): Staticpro Qauto_composed and
23428 Qauto_composition_function. Declare Vauto_composition_function as
23429 a Lisp variable.
23430
23431 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
23432
23433 * xdisp.c (it_props): Add an entry for Qauto_composed.
23434 (handle_auto_composed_prop): New function.
23435
23436 * xselect.c (selection_data_to_lisp_data): Don't call
23437 compose_chars_in_text.
23438
234392008-02-01 Dave Love <fx@gnu.org>
23440
23441 * keyboard.c (read_char): Modify checking around use of
23442 Vkeyboard_translate_table.
23443
23444 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
23445 and fix C types.
23446
234472008-02-01 Kenichi Handa <handa@m17n.org>
23448
23449 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
23450 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
23451 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
23452 the case that the last byte is '\r' correctly.
23453 (decode_coding): Flush out the unprocessed data correctly.
23454 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
23455
234562008-02-01 Dave Love <fx@gnu.org>
23457
23458 * xterm.c (XTread_socket): Fix changes for defined keysyms.
23459 Add XK_ISO... case.
23460 (xaw_scroll_callback): Revert last change.
23461
234622008-02-01 Kenichi Handa <handa@m17n.org>
23463
23464 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
23465
234662008-02-01 Kenichi Handa <handa@m17n.org>
23467
23468 * xfaces.c (Vface_resizing_fonts): New variable.
23469 (struct font_name): New member `resizing_ratio'.
23470 (font_resizing_ratio): New function.
23471 (split_font_name): Set font->resizing_ratio.
23472 (better_font_p): Pay attention to font->resizing_ratio.
23473 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
23474 RESX, and RESY fields.
23475 (try_alternative_families): Try scalable fonts if
23476 Vscalable_fonts_allowed is not Qt.
23477 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
23478
234792008-02-01 Dave Love <fx@gnu.org>
23480
23481 * xterm.c (xaw_scroll_callback): Cast correctly.
23482
234832008-02-01 Dave Love <fx@gnu.org>
23484
23485 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
23486 (lispy_kana_keys): Comment out.
23487 (make_lispy_event) [XK_kana_A]: Comment out.
23488
23489 * xterm.c (xaw_scroll_callback): Cast call_data.
23490 (XTread_socket): Deal with ASCII keysyms.
23491 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
23492
234932008-02-01 Dave Love <fx@gnu.org>
23494
23495 * xterm.c (Vx_keysym_table): New.
23496 (syms_of_xterm): Initialize it.
23497 (XTread_socket): Use it.
23498 From head: Eliminate incorrect optimization that tried to avoid
23499 decoding the output of X*LookupString.
23500 (x_get_font_repertory): Delete charset declaration.
23501
235022008-02-01 Kenichi Handa <handa@m17n.org>
23503
23504 * coding.c (detect_coding_charset): If only ASCII bytes are found,
23505 return 0.
23506 (Fdefine_coding_system_internal): Setup
23507 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
23508
235092008-02-01 Dave Love <fx@gnu.org>
23510
23511 * coding.c (Fcheck_coding_system): Doc fix.
23512
23513 * editfns.c (Finsert_byte): Return a proper value.
23514
235152008-02-01 Kenichi Handa <handa@m17n.org>
23516
23517 * coding.c (decode_coding): Fix args to translate_chars. Pay
23518 attention to Vstandard_translation_table_for_decode.
23519 (encode_coding): Fix args to translate_chars. Pay attention to
23520 Vstandard_translation_table_for_encode.
23521
23522 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
23523 SINGLE_BYTE_CHAR_P.
23524
23525 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
23526 not by SINGLE_BYTE_CHAR_P.
23527
23528 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
23529 SINGLE_BYTE_CHAR_P.
23530
23531 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
23532 SINGLE_BYTE_CHAR_P.
23533
23534 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
23535 by SINGLE_BYTE_CHAR_P.
23536
23537 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
23538 SINGLE_BYTE_CHAR_P.
23539
235402008-02-01 Dave Love <fx@gnu.org>
23541
23542 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
23543
235442008-02-01 Dave Love <fx@gnu.org>
23545
23546 * fns.c (Flanginfo): Fix typo.
23547
23548 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
23549
235502008-02-01 Kenichi Handa <handa@m17n.org>
23551
23552 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
23553 (detect_coding_emacs_mule, detect_coding_iso_2022)
23554 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
23555 incomplete byte sequence. Don't update *mask when correctly detected.
23556 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
23557 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
23558 (detect_coding, detect_coding_system): Adjust for the changes above.
23559
235602008-02-01 Kenichi Handa <handa@m17n.org>
23561
23562 * character.c (char_string): Rename from
23563 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
23564 (string_char): Rename from string_char.
23565
23566 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
23567 if C is greater than MAX_3_BYTE_CHAR.
23568 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
23569 string_char instead of string_char_with_unification.
23570
235712008-02-01 Dave Love <fx@gnu.org>
23572
23573 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
23574
235752008-02-01 Kenichi Handa <handa@m17n.org>
23576
23577 * keymap.c (push_key_description): Pay attention to force_multibyte.
23578
23579 * regex.c (re_search_2): Fix for the case of unibyte buffer.
23580
235812008-02-01 Dave Love <fx@gnu.org>
23582
23583 * charset.c (define_charset_internal): Rename `supprementary'.
23584
23585 * Makefile.in (lisp, shortlisp): Remove latin-N.
23586
235872008-02-01 Dave Love <fx@gnu.org>
23588
23589 * xfns.c (x_window, x_window): Use use_xim.
23590
23591 * xterm.c (use_xim): Initialize.
23592 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
23593 (x_term_init): Maybe set use_xim.
23594
23595 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
23596
235972008-02-01 Kenichi Handa <handa@m17n.org>
23598
23599 * search.c (search_buffer): Fix case-fold-search of multibyte
23600 characters.
23601 (boyer_moore): Rename the last argument to char_high_bits.
23602
236032008-02-01 Kenichi Handa <handa@m17n.org>
23604
23605 * xdisp.c (display_string): Fix for the case of zero width glyph.
23606
23607 * xfns.c (x_set_font): Change the error message of the case that
23608 x_new_fontset returns Qt.
23609
23610 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
23611 (Finternal_set_lisp_face_attribute): Use signal_error for the
23612 error of invalid fontset.
23613
23614 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
23615 fontset, return Qt.
23616
236172008-02-01 Dave Love <fx@gnu.org>
23618
23619 * unexelf.c (unexec): Make .got handling not SGI-specific.
23620
23621 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
23622
23623 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
23624
23625 * keyboard.c (read_key_sequence): Fix type error.
23626
23627 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
23628 type error.
23629
23630 * fontset.c (fontset_add): Return Lisp_Object.
23631
236322008-02-01 Dave Love <fx@gnu.org>
23633
23634 * charset.h (charset_ordered_list_tick): Declare extern.
23635
236362008-02-01 Kenichi Handa <handa@m17n.org>
23637
23638 The following changes (and some of 2008-02-01 changes of mine) are
23639 for handling syntax, category, and case conversion for unibyte
23640 characters by converting them to multibyte on the fly. With these
23641 changes, we don't have to setup syntax and case tables for unibyte
23642 characters in each language environment.
23643
23644 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
23645 multibyte if necessary.
23646
23647 * bytecode.c (Fbyte_code): Likewise.
23648
23649 * character.h (LEADING_CODE_LATIN_1_MIN)
23650 (LEADING_CODE_LATIN_1_MAX): New macros.
23651 (unibyte_to_multibyte_table): Extern it.
23652 (unibyte_char_to_multibyte): New macro.
23653 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
23654 (CHAR_LEADING_CODE): New macro.
23655 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
23656
23657 * character.c (unibyte_to_multibyte_table): New variable.
23658 (unibyte_char_to_multibyte): Move to character.h and define as macro.
23659 (multibyte_char_to_unibyte): If C is an eight-bit character,
23660 convert it to the corresponding byte value.
23661
23662 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
23663 not 1, signals an error. Update the elements of
23664 unibyte_to_multibyte_table.
23665 (init_charset_once): Initialize unibyte_to_multibyte_table.
23666 (syms_of_charset): Define the charset `iso-8859-1'.
23667
23668 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
23669 as is without converting it to unibyte. In a unibyte buffer,
23670 convert C to multibyte before checking the syntax.
23671
23672 * lisp.h (unibyte_char_to_multibyte): Delete extern.
23673
23674 * minibuf.c (Fminibuffer_complete_word): Use the macro
23675 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
23676
23677 * regex.h (struct re_pattern_buffer): New member target_multibyte.
23678
23679 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
23680 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
23681 that is zero, convert an eight-bit char to multibyte.
23682 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
23683 non-emacs case.
23684 (PATFETCH): Convert an eight-bit char to multibyte.
23685 (HANDLE_UNIBYTE_RANGE): New macro.
23686 (regex_compile): Setup the compiled pattern for multibyte chars
23687 even if the given regex string is unibyte. Use PATFETCH_RAW
23688 instead of PATFETCH in many places. To handle `charset'
23689 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
23690 only for ASCII chars.
23691 (analyse_first) <exactn>: Simplify because the compiled pattern
23692 is multibyte.
23693 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
23694 <charset>: Use CHAR_LEADING_CODE to get leading codes.
23695 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
23696 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
23697 multibyte always 1.
23698 (re_search_2): In emacs, set the locale variable multibyte to 1,
23699 otherwise to 0. New local variable target_multibyte. Check it
23700 to decide the multibyteness of STR1 and STR2. If
23701 target_multibyte is zero, convert unibyte chars to multibyte
23702 before translating and checking fastmap.
23703 (TARGET_CHAR_AND_LENGTH): New macro.
23704 (re_match_2_internal): In emacs, set the locale variable multibyte
23705 to 1, otherwise to 0. New local variable target_multibyte. Check
23706 it to decide the multibyteness of STR1 and STR2. Use
23707 TARGET_CHAR_AND_LENGTH to fetch a character from D.
23708 <charset, charset_not>: If multibyte is nonzero, check fastmap
23709 only for ASCII chars. Call bcmp_translate with
23710 target_multibyte, not with multibyte.
23711 <begline>: Declare the local variable C as `unsigned'.
23712 (bcmp_translate): Change the last arg name to target_multibyte.
23713
23714 * search.c (compile_pattern_1): Don't adjust the multibyteness of
23715 the regexp pattern and the matching target. Set cp->buf.multibyte
23716 to the multibyteness of the regexp pattern. Set
23717 cp->but.target_multibyte to the multibyteness of the matching target.
23718 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
23719 FETCH_STRING_CHAR_ADVANCE.
23720 (Freplace_match): Convert unibyte chars to multibyte.
23721
23722 * syntax.c (char_quoted, back_comment, scan_words)
23723 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
23724 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
23725 unibyte chars to multibyte.
23726 (skip_chars): Delete the arg syntaxp, and move the code for
23727 handling syntaxes to skip_syntaxes. Change callers.
23728 Fix the case that the multibyteness of STRING and the current
23729 buffer doesn't match.
23730 (skip_syntaxes): New function.
23731 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
23732 SINGLE_BYTE_CHAR_P.
23733
237342008-02-01 Kenichi Handa <handa@m17n.org>
23735
23736 * xfaces.c (QCfontset): New variable.
23737 (LFACE_FONTSET): New macro.
23738 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
23739 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
23740 (Finternal_set_lisp_face_attribute)
23741 (Finternal_get_lisp_face_attribute): Handle QCfontset.
23742 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
23743 check also LFACE_FONTSET_INDEX.
23744 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
23745 attrs[LFACE_FONT_INDEX].
23746 (syms_of_xfaces): Intern and staticpro QCfontset.
23747
23748 * dispextern.h (enum lface_attribute_index): New member
23749 LFACE_FONTSET_INDEX.
23750
23751 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
23752
237532008-02-01 Kenichi Handa <handa@m17n.org>
23754
23755 * coding.c (coding_set_destination): Fix coding->destination for
23756 the case converting a region.
23757 (encode_coding_utf_8): Encode eight-bit chars as single byte.
23758 (encode_coding_object): Fix coding->dst_pos and
23759 coding->dst_pos_byte for the case converting a region.
23760
23761 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
23762
23763 * character.h (BYTE8_STRING): New macro.
23764
23765 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
23766
237672008-02-01 Kenichi Handa <handa@m17n.org>
23768
23769 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
23770 characters by octal form.
23771
23772 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
23773
23774 * buffer.h (_fetch_multibyte_char_len): Delete extern.
23775 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
23776 _fetch_multibyte_char_len.
23777 (FETCH_CHAR_AS_MULTIBYTE): New macro.
23778
23779 * casetab.c (set_canon, set_identity, shuffle): Simplify.
23780
23781 * casefiddle.c (casify_object): Simplify. Handle the case that
23782 the case conversion change the byte length.
23783 (casify_region): Likewise.
23784
23785 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
23786
23787 * character.c (_fetch_multibyte_char_len): Delete this variable.
23788 (syms_of_character): Setup Vprintable_chars.
23789
23790 * editfns.c (Fchar_equal): Fix for the unibyte case.
23791 (Finsert_byte): New function.
23792 (syms_of_editfns): Defsubr it.
23793
23794 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
23795 of direct code 0x3ffff.
23796
23797 * search.c (Freplace_match): Fix for the unibyte case.
23798
237992008-02-01 Kenichi Handa <handa@m17n.org>
23800
23801 * lread.c (safe_to_load_p): Fix the logic.
23802
23803 * syntax.c (scan_words): Don't treat characters belonging to
23804 different scripts as constituting a word.
23805
23806 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
23807
23808 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
23809
23810 * emacs.c (main): In the case of --unibyte, instead of aborting on
23811 finding non-empty buffer, make it unibyte.
23812
238132008-02-01 Kenichi Handa <handa@m17n.org>
23814
23815 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
23816 to create a fontset.
23817
238182008-02-01 Dave Love <fx@gnu.org>
23819
23820 * character.c (Funibyte_char_to_multibyte): Doc fix.
23821
23822 * xfns.c [HAVE_STDLIB_H]: Fix last change.
23823
238242008-02-01 Kenichi Handa <handa@m17n.org>
23825
23826 * fontset.c (fontset_add): Make the type `int'.
23827 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
23828
23829 * character.c (unibyte_char_to_multibyte)
23830 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
23831 charset_unibyte, not charset_primary.
23832
23833 * charset.h (charset_unibyte): Extern it instead of charset_primary.
23834
23835 * charset.c (charset_unibyte): Rename from charset_primary.
23836 (Funibyte_charset): Rename from Fprimary_charset.
23837 (Fset_unibyte_charset): Rename from Fset_primary_charset.
23838 (syms_of_charset): Adjust for the above changes.
23839
23840 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
23841 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
23842 it->multibyte_p is zero.
23843
23844 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
23845 Delete extern.
23846
238472008-02-01 Kenichi Handa <handa@m17n.org>
23848
23849 * coding.c (Fdefine_coding_system_internal): Fix category setting
23850 for a coding system of type iso-2022.
23851
238522008-02-01 Kenichi Handa <handa@m17n.org>
23853
23854 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
23855
238562008-02-01 Kenichi Handa <handa@m17n.org>
23857
23858 * syntax.c (Vnext_word_boundary_function_table): New variable.
23859 (next-word-boundary-function-table): Declare it as a Lisp variable
23860 in syms_of_syntax.
23861 (scan_words): Call functions in Vnext_word_boundary_function_table
23862 if any.
23863
23864 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
23865
23866 * fontset.c (fs_load_font): If fontp->charset is not negative,
23867 return fontp without setting its members.
23868
238692008-02-01 Dave Love <fx@gnu.org>
23870
23871 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
23872
23873 * m/sparc.h (HAVE_ALLOCA): Delete.
23874
23875 * s/irix6-5.h: Don't include strings.h.
23876 (bcopy, bzero, bcmp): Don't undef.
23877
23878 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
23879
23880 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
23881 (TIOCSIGSEND): Don't test IRIX6.
23882 (bcopy, bzero, bcmp): Define conditionally.
23883
238842008-02-01 Kenichi Handa <handa@m17n.org>
23885
23886 * buffer.c (Qas, Qmake, Qto): New variables.
23887 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
23888 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
23889
23890 * callproc.c (Fcall_process): Don't call insert_1_both directly if
23891 we are inserting a process output into a multibyte buffer.
23892
23893 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
23894 multibyte_char_to_unibyte.
23895
23896 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
23897 by the primary charset, make it eight-bit char.
23898 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
23899
23900 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
23901 (charset_8_bit__control, charset_8_bit_graphic)
23902 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
23903 (define_charset_internal): New function.
23904 (syms_of_charset): Call define_charset_internal for pre-defined
23905 charsets.
23906
23907 * charset.h (charset_8_bit): Extern it.
23908
23909 * coding.c (make_conversion_work_buffer): Adjust for the change
23910 of Fset_buffer_multibyte.
23911 (encode_coding_raw_text): Increment p0 in the loop.
23912
23913 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
23914
23915 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
23916 for the change of Fset_buffer_multibyte.
23917
23918 * fns.c (Fstring_to_multibyte): New function.
23919 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
23920
239212008-02-01 Dave Love <fx@gnu.org>
23922
23923 * xfns.c (x_put_x_image): Declare args.
23924
23925 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
23926 (try_font_list): Declare an arg.
23927
23928 * xdisp.c (message2_nolog, set_message): Declare an arg.
23929
23930 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
23931
23932 * syntax.c (scan_sexps_forward): Declare an arg.
23933
23934 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
23935 Declare an arg.
23936
23937 * lisp.h (Fnew_fontset): Declare.
23938
23939 * keymap.c (push_key_description): Call CHARACTERP correctly.
23940
23941 * fontset.c (fontset_add): Declare args. Call make_number correctly.
23942 (face_for_char): Delete unused vars.
23943 (Fset_fontset_font): Doc fix. Delete unused vars.
23944
23945 * doc.c (Fsubstitute_command_keys): Delete unused vars.
23946
23947 * composite.c (update_compositions): Declare arg.
23948
23949 * cm.c (calccost, cmgoto): Declare args.
23950
23951 * charset.c: Remove `emacs' conditional. Doc fixes.
23952 (map_char_table_for_charset): Declare.
23953
23954 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
23955
23956 * ccl.c: Remove `emacs' conditional.
23957
239582008-02-01 Kenichi Handa <handa@m17n.org>
23959
23960 The following changes are to allow specifying multiple font
23961 patterns for a character range (specified by script or charset).
23962
23963 * Makefile.in (abbrev.o): Depend on syntax.h.
23964 (xfaces.o): Depend on charset.h.
23965
23966 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
23967 SINGLE_BYTE_CHAR_P.
23968
23969 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
23970
23971 * character.h (Vchar_script_table): Extern it.
23972
23973 * character.c (Vscript_alist): Delete.
23974 (Vchar_script_table, Qchar_script_table): New variable.
23975 (syms_of_character): Declare Vchar_script_table as a lisp variable
23976 and initialize it.
23977
23978 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
23979 have property char-table-extra-slots, make no extra slot.
23980
23981 * dispextern.h (struct face): Delete member `charset'.
23982 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
23983 SINGLE_BYTE_CHAR_P.
23984 (choose_face_font, lookup_non_ascii_face, font_name_registry):
23985 Add prototypes.
23986 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
23987 (generate_ascii_font_name): Rename from generate_ascii_font.
23988
23989 * fontset.h (get_font_repertory_func): New prototype.
23990 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
23991 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
23992
23993 * fontset.c (Qprepend, Qappend): New variables.
23994 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
23995 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
23996 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
23997 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
23998 (fontset_ref_and_range, fontset_add, reorder_font_vector)
23999 (load_font_get_repertory): New functions.
24000 (fontset_set): Delete.
24001 (fontset_face): New arg FACE. Return face ID, not face.
24002 Complete re-write to handle new fontset structure. Change caller.
24003 (free_face_fontset): Use ASET istead of AREF (X) = Y.
24004 (face_for_char): Don't call lookup_face.
24005 (make_fontset_for_ascii_face): New arg FACE.
24006 (fs_load_font): New arg CHARSET_ID. Don't check
24007 Vfont_encoding_alist here.
24008 (find_font_encoding): New function.
24009 (list_fontsets): Use STRINGP, not ! NILP.
24010 (accumulate_script_ranges): New function.
24011 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
24012 re-written to handle new fontset structure.
24013 (Ffontset_font): Return a copy of element.
24014 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
24015 docstring of font-encoding-alist.
24016
24017 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
24018 (Fset_fotset_font): Fix arguments to 5.
24019
24020 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
24021
24022 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
24023 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
24024 (highlight_trailing_whitespace): Adjust for the change of
24025 lookup_named_face.
24026
24027 * xfaces.c: Include charset.h.
24028 (load_face_font): Delete argument C. Change caller.
24029 (generate_ascii_font_name): Rename from generate_ascii_font.
24030 (font_name_registry): New function.
24031 (cache_face): Store ascii faces before non-ascii faces in buckets.
24032 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
24033 Lookup only ascii faces.
24034 (lookup_non_ascii_face): New function.
24035 (lookup_named_face): Delete argument C. Change caller.
24036 (lookup_derived_face): Delete argument C. Change caller.
24037 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
24038 a string, just call font_list with it.
24039 (choose_face_font): Delete arguments FACE and C. New arg
24040 FONT_SPEC. Change caller.
24041 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
24042 Change caller.
24043 (realize_non_ascii_face): New function.
24044 (realize_x_face): Call load_face_font here.
24045 (realize_tty_face): Delete argument C. Change caller.
24046 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
24047 get a face ID.
24048 (dump_realized_face): Don't print charset of FACE.
24049
24050 * xfns.c (x_set_font): Always call x_new_fontset and
24051 store_frame_parameter.
24052 (Fx_create_frame): Call x_new_fontset, not x_new_font.
24053 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
24054
24055 * xterm.h (x_get_font_repertory): Extern it.
24056
24057 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
24058 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
24059 it->multibyte_p is zero.
24060 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
24061 (x_new_fontset): If FONTSETNAME doesn't match any existing
24062 fontsets, create a new one.
24063 (x_get_font_repertory): New function.
24064
240652008-02-01 Kenichi Handa <handa@m17n.org>
24066
24067 * coding.c (Ffind_coding_systems_region_internal): Detect an
24068 ASCII only string correctly.
24069
24070 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
24071 version is 0.
24072
240732008-02-01 Kenichi Handa <handa@m17n.org>
24074
24075 * lread.c: Include "coding.h".
24076 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
24077 (load_each_byte, unread_char): New variables.
24078 (readchar_backlog): Delete.
24079 (readchar): Return a character unless load_each_byte is nonzero.
24080 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
24081 cons. If unread_char is not -1, simply return it.
24082 (unreadchar): Handle the case that readcharfun is
24083 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
24084 (read_multibyte): Delete.
24085 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
24086 (read_emacs_mule_char): New functions.
24087 (Fload): Even if the file doesn't have the extension ".elc", if
24088 safe_to_load_p returns a positive version number, assume that the
24089 file contains bytecompiled code. If the version is less than 22,
24090 load the file while decoding multibyte sequences by emacs-mule.
24091 (readevalloop): Don't use readchar_backlog.
24092 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
24093 (Fread_from_string): Pay attention to the case that STREAM is a cons.
24094 (read_escape): Delete the arg BYTEREP.
24095 (read1): Set load_each_byte to 1 temporarily while handling
24096 #@NUMBER. Don't call read_multibyte.
24097 (read_vector): Call Fread with a cons. If readcharfun is
24098 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
24099 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
24100 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
24101 and Qload_force_doc_strings.
24102
241032008-02-01 Kenichi Handa <handa@m17n.org>
24104
24105 * xdisp.c (face_before_or_after_it_pos): Call
24106 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
24107
241082008-02-01 Kenichi Handa <handa@m17n.org>
24109
24110 * character.h (TRAILING_CODE_P): New macro.
24111 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
24112 (string_char_with_unification): Fix prototype.
24113 (Vscript_alist): Extern it.
24114
24115 * character.c (Vscript_alist): New variable.
24116 (string_char_with_unification, str_as_unibyte)
24117 (string_escape_byte8): Add `const' to local variables.
24118 (syms_of_character): Declare script-alist as a Lisp variable.
24119
24120 * charset.h (Vcharset_ordered_list): Extern it.
24121 (charset_ordered_list_tick): Extern it.
24122 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
24123 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
24124 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
24125 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
24126 (Funify_charset): Adjust for the change of Funify_charset.
24127
24128 * charset.c (charset_ordered_list_tick): New variable.
24129 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
24130 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 24131 deunify instead of unify a charset.
aac0c6e3
MR
24132 (string_xstring_p): Add `const' to local variables.
24133 (find_charsets_in_text): Add `const' to arguments and local variables.
24134 (encode_char): Adjust for the change of Funify_charset. Fix
24135 detecting of invalid code.
24136 (Fset_charset_priority): Increment charset_ordered_list_tick.
24137 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
24138 and TO_CODE.
24139
24140 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
24141 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
24142 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
24143 (decode_coding_ccl, consume_chars)
24144 (Ffind_coding_systems_region_internal)
24145 (Fcheck_coding_systems_region): Add `const' to local variables.
24146
24147 * print.c (print_object): Use octal form for printing the
24148 contents of a bool vector.
24149
241502008-02-01 Dave Love <fx@gnu.org>
24151
24152 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
24153 <version == 20>: Refuse to load.
24154
241552008-02-01 Dave Love <fx@gnu.org>
24156
24157 * fns.c: Move coding.h.
24158 (Qcodeset, Qdays, Qmonths): New.
24159 (concat): Use CHARACTERP instead of INTEGERP.
24160 (Flocale_codeset): Delete.
24161 (Flanginfo): New function.
24162 (syms_of_fns): Change accordingly.
24163
24164 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
24165
241662008-02-01 Dave Love <fx@gnu.org>
24167
24168 * casetab.c (init_casetab_once, init_casetab_once): Fix
24169 CHAR_TABLE_SET call.
24170
24171 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
24172
24173 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
24174
24175 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
24176 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
24177 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
24178
24179 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
24180
24181 * coding.c (ENCODE_DESIGNATION, decode_eol)
24182 (make_conversion_work_buffer, code_conversion_restore)
24183 (Fdefine_coding_system_internal): Convert Lisp types.
24184 (code_conversion_restore): Use EQ, not ==.
24185 (Fencode_coding_string): Fix code_convert_string call.
24186
24187 * coding.h (code_convert_region): Fix prototype.
24188
24189 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
24190
24191 * fontset.c (fontset_ref, fontset_set, fs_load_font)
24192 (Ffontset_info): Convert Lisp types.
24193
24194 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
24195
24196 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
24197
24198 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
24199
24200 * chartab.c: Include "...h", not <...h> in some cases.
24201
24202 * callproc.c (Fcall_process): Remove unused variables.
24203
242042008-02-01 Dave Love <fx@gnu.org>
24205
24206 * coding.c (Fset_coding_system_priority): Allow null arg list.
24207
242082008-02-01 Dave Love <fx@gnu.org>
24209
24210 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
24211 (Fself_insert_and_exit): Use CHARACTERP.
24212
24213 * callproc.c (Fcall_process): Remove unused vars.
24214
24215 * xterm.c (XTread_socket): Add extra dead keysyms.
24216
24217 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
24218
24219 * dispextern.h: Remove prototypes for redraw_frame,
24220 redraw_garbaged_frames.
24221
24222 * cmds.c (Fself_insert_command): Use CHARACTERP.
24223
24224 * chartab.c (make_sub_char_table): Remove unused var.
24225 (Fset_char_table_default, Fmap_char_table): Doc fix.
24226
24227 * keymap.c (access_keymap): Remove generic char code.
24228 (push_key_description): Use CHARACTERP.
24229
242302008-02-01 Dave Love <fx@gnu.org>
24231
24232 * charset.c: Doc fixes.
24233 (Funify_charset): Extra checking.
24234
242352008-02-01 Dave Love <fx@gnu.org>
24236
24237 * lread.c: Remove some unused variables.
24238 (safe_to_load_p): If safe, return the magic number version byte.
24239 (Fload): Maybe use load-with-code-conversion.
24240
242412008-02-01 Kenichi Handa <handa@m17n.org>
24242
24243 * category.c (Fmodify_category_entry): Don't modify the contents
24244 of category_set for characters out of the range. Avoid
24245 unnecessary modification.
24246
24247 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
24248 Vchar_unify_table. The default value of the table is now nil.
24249
24250 * character.c (syms_of_character): Setup Vchar_width_table for
24251 eight-bit-control and raw-byte chars.
24252
24253 * charset.h (enum define_charset_arg_index): Delete
24254 charset_arg_parents and add charset_arg_subset and
24255 charset_arg_superset.
24256 (enum charset_attr_index): Delete charset_parents and add
24257 charset_subset and charset_superset.
24258 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
24259 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
24260 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
24261 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
24262 (CHARSET_SUPERSET): New macros.
24263 (charset_work): Extern it.
24264 (ENCODE_CHAR): Use charset_work.
24265 (CHAR_CHARSET_P): Adjust for the change of encoder format.
24266 (map_charset_chars): Extern it.
24267
24268 * charset.c (load_charset_map): Set the default value of encoder
24269 and deunifier char-tables to nil.
24270 (map_charset_chars): Change argument. Change callers. Use
24271 map_char_table_for_charset instead of map_char_table.
24272 (Fmap_charset_chars): New optional args from_code and to_code.
24273 (Fdefine_charset_internal): Adjust for the change of
24274 `define-charset' (:parents -> :subset or :superset).
24275 (charset_work): New variable.
24276 (encode_char, syms_of_charset): Adjust for the change of
24277 Fdefine_charset_internal.
24278 (Ffind_charset_string): Setup the vector `charsets' correctly.
24279
24280 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
24281 the previous change.
24282 (char_table_ref_and_range): Adjust for the above change.
24283 (map_sub_char_table_for_charset): New function.
24284 (map_char_table_for_charset): New function.
24285
24286 * keymap.c (describe_vector): Handle a char-table directly here.
24287 (describe_char_table): Delete.
24288
24289 * lisp.h (map_charset_chars): Delete.
24290
242912008-02-01 Dave Love <fx@gnu.org>
24292
24293 * fns.c (count_combining): Comment out (unused).
24294 (Flocale_codeset): New.
24295 (syms_of_fns): Defsubr it.
24296
24297 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
24298 (size_t): Remove.
24299
243002008-02-01 Dave Love <fx@gnu.org>
24301
24302 * Makefile.in (chartab.o): Depend on charset.h.
24303
243042008-02-01 Kenichi Handa <handa@m17n.org>
24305
24306 * character.c (syms_of_character): Set the default value of
24307 Vprintable_chars to Qnil.
24308
243092008-02-01 Dave Love <fx@gnu.org>
24310
24311 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
24312
243132008-02-01 Kenichi Handa <handa@m17n.org>
24314
24315 * charset.c (load_charset_map): Handle the case that from < to
24316 correctly.
24317
24318 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
24319 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
24320 Pay attention to raw-8-bit chars.
24321
243222008-02-01 Kenichi Handa <handa@m17n.org>
24323
24324 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
24325 It is not bytecompiled now.
24326
24327 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
24328 (charset_jisx0208): New variables.
24329 (Fdefine_charset_internal): Setup them if appropriate.
24330 (init_charset_once): Initialize them to -1.
24331
24332 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
24333 (charset_jisx0208): Extern them.
24334
24335 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
24336 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
24337 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
24338 (setup_iso_safe_charsets): Fix arguments to Fassq.
24339 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
24340 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
24341 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
24342 (encode_coding_iso_2022): Change the 1st arg to
24343 ENCODE_ISO_CHARACTER to a variable.
24344
243452008-02-01 Kenichi Handa <handa@m17n.org>
24346
24347 * charset.h (enum define_charset_arg_index): New enums
24348 charset_arg_min_code and charset_arg_max_code.
24349 (struct charset): New member char_index_offset.
24350
24351 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
24352 Take charset->char_index_offset into account.
24353 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
24354 args[charset_arg_max_code]. Setup charset.char_index_offset.
24355 (syms_of_charset): Fix args to Fdefine_charset_internal.
24356
243572008-02-01 Dave Love <fx@gnu.org>
24358
24359 * coding.c (decode_coding_utf_8): Reject overlong sequences.
24360
243612008-02-01 Dave Love <fx@gnu.org>
24362
24363 * coding.c: Doc fixes.
24364 (Fcoding_system_aliases): Fix return value.
24365 (Qmac): Remove (duplicated) definition.
24366
243672008-02-01 Dave Love <fx@gnu.org>
24368
362654a6
JB
24369 * charset.c (Fcharset_priority_list, Fset_charset_priority):
24370 New functions.
aac0c6e3
MR
24371
24372 * character.c (Fstring): Doc fix.
24373
24374 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
24375
362654a6 24376 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
24377 (font-encoding-alist): Doc fix.
24378
243792008-02-01 Dave Love <fx@gnu.org>
24380
24381 * term.c (costs_set): Declare static, non-initialized for pcc.
24382 (encode_terminal_code): Remove unused var.
24383
24384 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
24385 for K&R.
24386
24387 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
24388
24389 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
24390 (suffixes): Move out of make_subsidiaries for K&R.
24391
24392 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
24393
24394 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
24395
243962008-02-01 Dave Love <fx@gnu.org>
24397
24398 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
24399
24400 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
24401
244022008-02-01 Yong Lu <lyongu@asia-infonet.com>
24403
24404 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
24405
24406 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
24407
244082008-02-01 Kenichi Handa <handa@m17n.org>
24409
24410 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
24411 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
24412
244132008-02-01 Kenichi Handa <handa@m17n.org>
24414
24415 * coding.c (decode_coding_charset): Adjust for the change of
24416 Fdefine_coding_system_internal.
24417 (Fdefine_coding_system_internal): For a coding system of
24418 `charset' type, store a list of charset IDs in
24419 `charset_attr_charset_valids' element of coding attributes.
24420
244212008-02-01 Kenichi Handa <handa@m17n.org>
24422
24423 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
24424 (emacs_mule_char): New arg src. Delete arg `composition'. Change
24425 caller. Handle 2-byte and 3-byte charsets correctly.
24426 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
24427 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
24428 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
24429 (DECODE_EMACS_MULE_21_COMPOSITION): Call
24430 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
24431 sequence.
24432 (decode_coding_emacs_mule): Handle composition correctly. Rewind
24433 `src' and `consumed_chars' correctly before calling emacs_mule_char.
24434 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
24435 and alt&rule composition.
24436 (decode_coding_iso_2022): Handle composition correctly.
24437 (init_coding_once): Setup emacs_mule_bytes for private charsets.
24438
24439 * charset.c (Fdefine_charset_internal): Fix bug for the case of
24440 re-defining a charset. If the charset has :emacs-mule-id, setup
24441 emacs_mule_bytes.
24442 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
24443
244442008-02-01 Kenichi Handa <handa@m17n.org>
24445
24446 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
24447 (encode_coding_big5, encode_coding_charset): If coding requires safe
24448 encoding, produce a character specified by
24449 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
24450
244512008-02-01 Dave Love <fx@gnu.org>
24452
24453 * xterm.c (XSetIMValues): Declare.
24454
24455 * process.c: Conditionally include sys/wait.h, pty.h.
24456
24457 * print.c (print_object): Fix print format for 64-bit systems.
24458
24459 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
24460
24461 * buffer.c (emacs_strerror): Declare.
24462
24463 * fontset.c (Fclear_face_cache): Declare.
24464 (accumulate_font_info): Comment-out (unused).
24465 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
24466 variables.
24467
24468 * character.h (string_escape_byte8): Declare.
24469
24470 * charset.c (load_charset_map, load_charset_map_from_file): Remove
24471 unused vars.
24472 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
24473 (Fmap_charset_chars): Doc fix.
24474
24475 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
24476 (Fset_coding_system_priority, Fset_coding_system_priority)
24477 (Fdefine_coding_system_internal): Doc fix.
24478
244792008-02-01 Dave Love <fx@gnu.org>
24480
24481 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
24482
244832008-02-01 Kenichi Handa <handa@m17n.org>
24484
24485 * character.c (string_escape_byte8): Make multibyte string with
24486 correct size.
24487
24488 * charset.c (Fmake_char): Delete unnecessary code.
24489
244902008-02-01 Kenichi Handa <handa@m17n.org>
24491
24492 * xfns.c (x_encode_text): Allocate coding.destination here, and
24493 call encode_coding_object with dst_object Qnil.
24494
24495 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
24496 multibyte form correctly.
24497
24498 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
24499 against Vfont_encoding_alist.
24500
24501 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
24502 handling of charset list.
24503 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
24504 (decode_coding_object): Move point to coding->dst_pos before
24505 calling post-read-conversion function.
24506 (encode_coding_object): Give correct arguments to
24507 pre-write-conversion. Ignore the return value of
24508 pre-write-conversion function. Pay attention to the case that
24509 pre-write-conversion changes the current buffer. If dst_object is
24510 Qt, even if coding->src_bytes is zero, allocate at least one byte
24511 to coding->destination.
24512
24513 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
24514
24515 * charset.c (Fmake_char): Make it more backward compatible.
24516 (Fmap_charset_chars): Fix docstring.
24517
245182008-02-01 Dave Love <fx@gnu.org>
24519
24520 * coding.c: Doc fixes.
24521 (Fdefine_coding_system_alias): Use names, not symbols, in
24522 coding-system-alist.
24523
245242008-02-01 Kenichi Handa <handa@m17n.org>
24525
24526 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
24527 of calling free_realized_face.
24528
245292008-02-01 Yong Lu <lyongu@asia-infonet.com>
24530
24531 * charset.c (read_hex): Don't treat SPC as a comment starter.
24532 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
24533 (Fdecode_char): Fix typo.
24534
245352008-02-01 Kenichi Handa <handa@m17n.org>
24536
24537 * charset.h (struct charset): New member `code_space_mask'.
24538
24539 * coding.c (coding_set_source): Delete the local variable beg_byte.
24540 (encode_coding_charset, Fdefine_coding_system_internal):
24541 Delete the local variable charset.
24542 (Fdefine_coding_system_internal): Setup
24543 attrs[coding_attr_charset_valids] correctly.
24544
24545 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
24546 member to check if CODE is valid or not.
24547 (Fdefine_charset_internal): Initialize `code_space_mask' member.
24548 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
24549 is within the range of charset->min_code and carset->max_code.
24550
245512008-02-01 Dave Love <fx@gnu.org>
24552
24553 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
24554
24555 * dispextern.h (generate_ascii_font): Fix return type.
24556
24557 * xfaces.c (generate_ascii_font): Fix arg declaration.
24558
24559 * coding.c (coding_inherit_eol_type)
24560 (Fset_terminal_coding_system_internal)
24561 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
24562
245632008-02-01 Kenichi Handa <handa@m17n.org>
24564
24565 * coding.c (decode_coding_charset, encode_coding_charset): Handle
24566 multiple charsets correctly.
24567
245682008-02-01 Kenichi Handa <handa@m17n.org>
24569
24570 * search.c (boyer_moore): Fix handling of multibyte character
24571 translation.
24572
24573 * xdisp.c (display_mode_element): When the variable `elt' is
24574 changed, update `this' and `lisp_string'.
24575
245762008-02-01 Kenichi Handa <handa@m17n.org>
24577
24578 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
24579
24580 * callproc.c (Fcall_process): Be sure to give the current buffer
24581 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
24582
24583 * charset.c (struct charset_map_entries): New struct.
24584 (load_charset_map): Rename from parse_charset_map. New args
24585 entries and n_entries. Change caller.
24586 (load_charset_map_from_file): Rename from load_charset_map.
24587 Change caller. New arg control_flag. Call load_charset_map at
24588 the tail.
24589 (load_charset_map_from_vector): New function.
24590 (Fdefine_charset_internal): Setup charset.compact_codes_p.
24591 (encode_char): If the charset is compact, change a character index
24592 to a code point.
24593
24594 * coding.c (coding_alloc_by_making_gap): Check the case that the
24595 source and destination are the same correctly.
24596 (decode_coding_raw_text): Set coding->consumed_char and
24597 coding->consumed to 0.
24598 (produce_chars): If coding->chars_at_source is nonzero, update
24599 coding->consumed_char and coding->consumed before calling
24600 alloc_destination.
24601 (Fdefine_coding_system_alias): Register ALIAS in
24602 Vcoding_system_alist.
24603 (syms_of_coding): Define `no-conversion' coding system at the tail.
24604
24605 * fileio.c (Finsert_file_contents): Set coding_system instead of
24606 val. If the current buffer is multibyte, always call
24607 decode_coding_gap.
24608
24609 * xfaces.c (try_font_list): Give higher priority to fontset's
24610 family than face's family.
24611
246122008-02-01 Kenichi Handa <handa@m17n.org>
24613
24614 * callproc.c (Fcall_process): Be sure to give the current buffer
24615 to decode_coding_c_string.
24616
24617 * xfaces.c (try_font_list): Give a family specified in a fontset
24618 higher priority than a family specified in a face.
24619
246202008-02-01 Kenichi Handa <handa@m17n.org>
24621
24622 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
24623 Fix arguments to insert_from_buffer.
24624
24625 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
24626
246272008-02-01 Kenichi Handa <handa@m17n.org>
24628
24629 * coding.c (produce_chars): Set the variable `multibytep' correctly.
24630 (decode_coding_gap): Set coding->dst_multibyte correctly.
24631
246322008-02-01 Kenichi Handa <handa@m17n.org>
24633
24634 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
24635 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
24636 (encode_coding_utf_16): Substitute coding->default_char for
24637 non-Unicode characters.
24638 (decode_coding): Don't call record_insert here.
24639 (setup_coding_system): Initialize `surrogate' of
24640 coding->spec.utf_16 to 0.
24641 (EMIT_ONE_BYTE): Fix for multibyte case.
24642
24643 * insdel.c (insert_from_gap): Call record_insert.
24644
246452008-02-01 Kenichi Handa <handa@m17n.org>
24646
24647 * casefiddle.c (casify_region): Fix multibyte case.
24648
24649 * character.c (c_string_width): Add return type `int'.
24650 (char_string_with_unification): Delete arg ADVANCED.
24651
24652 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
24653 (CHAR_STRING): Adjust for the change of char_string_with_unification.
24654 (CHAR_STRING_ADVANCE): Make it do-while statement.
24655
24656 * chartab.c (sub_char_table_set_range): Optimize for the case
24657 DEPTH == 3. Add workaround code for a GCC optimization bug.
24658
24659 * charset.c (parse_charset_map): Remove an unused variable.
24660
24661 * coding.c: Delete unused variables.
24662
24663 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
24664 earlier. If inserted is zero and the coding system doesn't
24665 require flushing, don't call decode_coding_gap.
24666
24667 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
24668
246692008-02-01 Kenichi Handa <handa@m17n.org>
24670
24671 The following changes are for using Unicode as an internal
24672 character model, and use UTF-8 format for buffer/string
24673 representation.
24674
24675 * .gdbinit (xchartable): Adjust for the change of char table structure.
24676 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
24677
24678 * Makefile.in (obj): Add character.o and chartab.o.
24679 (lisp, shortlisp): Remove utf-8.elc.
24680 (*.o): For many files, change dependency on charset.h to
24681 character.h, and add dependency on character.h.
24682 (character.o, chartab.o): New targets.
24683
24684 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
24685 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
24686 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
24687 of "charset.h".
24688
24689 * dired.c, filelock.c: Include "character.h".
24690
24691 * alloc.c: Include "character.h" instead of "charset.h".
24692 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
24693 (syms_of_alloc): Remove defsubr for Smake_char_table.
24694
24695 * buffer.c: Include "character.h" instead of "charset.h", don't
24696 include "coding.h".
24697 (Fset_buffer_multibyte): Adjust for UTF-8.
24698
24699 * buffer.h: EXFUN Fbuffer_live_p.
24700
24701 * callproc.c: Include "character.h" instead of "charset.h".
24702 (Fcall_process): Big change for the new code-conversion APIs.
24703
24704 * casetab.c: Include "character.h" instead of "charset.h".
24705 (set_canon, set_identity, shuffle): Adjust for the new
24706 map_char_table spec.
24707 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
24708 accessing the char table structure.
24709
24710 * chartab.c: New file that implements char table.
24711
24712 * category.c: Include "character.h".
24713 (copy_category_entry): New function.
24714 (copy_category_table): Call map_char_table and copy_category_entry.
24715 (Fmake_category_table): Initialize all top-level slots.
24716 (char_category_set): New function.
24717 (modify_lower_category_set): Delete.
24718 (Fmodify_category_entry): Call char_table_ref_and_range.
24719
24720 * category.h (CATEGORY_SET): Just call char_category_set.
24721
24722 * ccl.c: Include "character.h".
24723 (Qccl, Qcclp): New variables.
24724 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
24725 it's less than 256.
24726 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
24727 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
24728 and DST type.
24729 (ccl_driver): Change types of argument, adjust code accordingly.
24730 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
24731 ccl_driver.
24732 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
24733
24734 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
24735 New members src_multibyte, dst_multibyte, consumed, and produced.
24736 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
24737 (CODING_SPEC_CCL_PROGRAM): New macro.
24738 (ccl_driver): Update prototype.
24739 (Qccl, Qcclp, Fccl_program_p): Extern them.
24740 (CHECK_CCL_PROGRAM): New macro.
24741
24742 * character.c, character.h, chartab.c: New files.
24743
24744 * charset.c: Mostly re-written. Move character and multibyte sequence
24745 handling codes to character.c.
24746
24747 * charset.h: Mostly re-written. Move character and multibyte sequence
24748 handling codes to character.h.
24749
24750 * coding.c, coding.h: Mostly re-written.
24751
24752 * composite.c: Include "character.h" instead of "charset.h".
24753 (CHAR_WIDTH): Move to character.h.
24754 (HASH_KEY, HASH_VALUE): Delete.
24755
24756 * composite.h (enum composition_method): Change order of enumeration
24757 symbols.
24758
24759 * data.c: Include "character.h" instead of "charset.h".
24760 (Faref): Call CHAR_TABLE_REF for a char table.
24761 (Faset): Call CHAR_TABLE_SET for a char table.
24762
24763 * dispextern.h (free_realized_face, check_face_attribytes)
24764 (generate_ascii_font): Extern them.
24765 (free_realized_multibyte_face): Delete extern.
24766
24767 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
24768 table structure.
24769
24770 * editfns.c: Include "character.h" instead of "charset.h".
24771 (Fchar_to_string): Always call CHAR_STRING.
24772
24773 * emacs.c (main): Call init_charset_once, init_charset,
24774 syms_of_chartab, and syms_of_character.
24775
24776 * fileio.c: Include "character.h" instead of "charset.h".
24777 (Finsert_file_contents): Big change for the new code-conversion API.
24778 (choose_write_coding_system, Fwrite_region): Likewise.
24779 (build_annotations_2): Delete.
24780 (e_write): Big change for the new code-conversion API.
24781
24782 * fns.c: Include "character.h" instead of "charset.h".
24783 (copy_sub_char_table): Move to chartab.c.
24784 (Fcopy_sequence): Call copy_char_table for a char table.
24785 (concat): Delete codes calling count_multibyte.
24786 (string_char_to_byte, string_byte_to_char): Adjust for the new
24787 multibyte form.
24788 (internal_equal): Adjust for the change of char table structure.
24789 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
24790 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
24791 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
24792 (char_table_translate, optimize_sub_char_table)
24793 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
24794 chartab.c.
24795 (char_table_ref_and_index): Delete.
24796 (HASH_KEY, HASH_VALUE): Move to lisp.h.
24797 (Fmd5): Call preferred_coding_system instead of accessing
24798 Vcoding_category_list. Adjust for the new code-conversion API.
24799 (syms_of_fns): Move defsubr for char table related functions to
24800 chartab.c.
24801
24802 * fontset.c: Mostly re-written.
24803
24804 * fontset.h (struct font_info): Change type of the member encoding_type.
24805 (enum FONT_SPEC_INDEX): New enum.
24806 (fontset_font_pattern, fs_load_font): Update prototype.
24807 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
24808
24809 * indent.c: Include "character.h" instead of "charset.h".
24810 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
24811
24812 * insdel.c: Include "character.h" instead of "charset.h".
24813 (copy_text): Don't refer to Vnonascii_translation_table.
24814 (insert_from_gap): New function.
24815
24816 * keyboard.c: Include "character.h" instead of "charset.h".
24817 (command_loop_1): Never call direct_output_forward_char before
24818 a non-ASCII character.
24819 (read_char): If Vkeyboard_translate_table is a char table, always
24820 translate a character.
24821
24822 * keymap.c: Include "character.h".
24823 (store_in_keymap): Handle the case that IDX is a cons.
24824 (Fdefine_key): Handle the case that KEY is a cons and the car part
24825 is also a cons (range).
24826 (push_key_description): Adjust for the new character code.
24827 (describe_vector): Call describe_char_table for a char table.
24828 (describe_char_table): New function.
24829
24830 * keymap.h (describe_char_table): Extern it.
24831
24832 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
24833 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
24834 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
24835 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
24836 Delete.
24837 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
24838 structure.
24839 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
24840 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
24841 (CHARTAB_SIZE_BITS_3): New macros.
24842 (chartab_size): Extern it.
24843 (struct Lisp_Char_Table): Re-design.
24844 (struct Lisp_Sub_Char_Table): New structure.
24845 (HASH_KEY, HASH_VALUE): Move from fns.c.
24846 (CHARACTERBITS): Define as 22.
24847 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
24848 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
24849 (GC_SUB_CHAR_TABLE_P): New macro.
24850 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
24851 (code_convert_string_norecord): Deleted extern.
24852 (init_character_once, syms_of_character, init_charset)
24853 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
24854
24855 * lread.c: Include "character.h".
24856 (read_multibyte): New arg NBYTES.
24857 (read_escape): Change the meaning of returned *BYTEREP.
24858 (to_multibyte): Delete.
24859 (read1): Adjust the handling of char table and string.
24860
24861 * print.c: Include "character.h" instead of "charset.h".
24862 (print_string): Convert 8-bit raw bytes to octal form by
24863 string_escape_byte8.
24864 (print_object): Adjust for the new multibyte form. Print 8-bit
24865 raw bytes always in octal form. Handle sub char table correctly.
24866
24867 * process.c: Include "character.h" instead of "charset.h".
24868 (read_process_output, send_process): Adjust for the new
24869 code-conversion API.
24870
24871 * puresize.h (BASE_PURESIZE): Increase.
24872
24873 * regex.c: Include "character.h" instead of "charset.h".
24874 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
24875 (regex_compile): Accept a range whose starting and ending
24876 character have different leading bytes.
24877 (analyse_first): Adjust for the above change.
24878
24879 * search.c: Include "character.h" instead of "charset.h".
24880 (search_buffer, boyer_moore): Adjust for the new multibyte form.
24881 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
24882
24883 * syntax.c: Include "character.h" instead of "charset.h".
24884 (syntax_parent_lookup): Delete.
24885 (Fmodify_syntax_entry): Accept a cons as CHAR.
24886 (skip_chars): Adjust for the new multibyte form.
24887 (init_syntax_once): Call char_table_set_range instead of directly
24888 accessing the structure of a char table.
24889
24890 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
24891 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
24892 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
24893 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
24894
24895 * term.c: Include "buffer.h" and "character.h".
24896 (encode_terminal_code, write_glyphs): Adjust for the new
24897 code-conversion API.
24898 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
24899
24900 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
24901
24902 * xdisp.c: Include "character.h".
24903 (get_next_display_element): Adjust for the new multibyte form.
24904 (disp_char_vector): Adjust for the new char table structure.
24905 (decode_mode_spec_coding): Adjust for the new structure of
24906 coding system.
24907 (decode_mode_spec): Adjust for the new code-conversion API.
24908
24909 * xfaces.c: Include "character.h" instead of "charset.h".
24910 (load_face_font): Adjust for the change of choose_face_font and
24911 FS_LOAD_FONT.
24912 (generate_ascii_font): New function.
24913 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
24914 (set_font_frame_param): Adjust for the change of choose_face_font.
24915 (free_realized_face): Make it public.
24916 (free_realized_faces_for_fontset): Rename from
24917 free_realized_multibyte_face. Free also faces realized for ASCII.
24918 (choose_face_font): Change arguments. Adjust for the change of
24919 fontset_font_pattern and FS_LOAD_FONT.
24920
24921 * xfns.c: Include "character.h".
24922 (x_encode_text): Adjust for the new code-conversion API.
24923
24924 * xselect.c: Don't include "charset.h".
24925 (selection_data_to_lisp_data): Adjust for the new code conversion API.
24926
24927 * xterm.c: Include "character.h".
24928 (x_encode_char): New argument CHARSET. Change caller.
24929 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
24930 Call ENCODE_CHAR instead of SPLIT_CHAR.
24931 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
24932 CHAR_WIDTH instead of CHARSET_WIDTH.
24933 (XTread_socket): Adjust for the new code-conversion API.
24934 (x_new_font): Adjust for the change of FS_LOAD_FONT.
24935 (x_load_font): Adjust for the change of struct font.
24936
249372008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
24938
24939 * xfaces.c (face_at_buffer_position): Remove unused vars.
24940
249412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24942
24943 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
24944 Fix overflow checking.
24945
249462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24947
24948 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
24949 Cancel previous change.
24950
249512008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
24952
24953 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
24954 ccl->eight_bit_control. Fix check for buffer overflow.
24955 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
24956 (ccl_driver): Initialize extra_bytes to 0.
24957
249582008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
24959
24960 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
24961 return it ORed with ctrl_modifier.
24962
249632008-01-29 Miles Bader <miles@gnu.org>
24964
24965 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
24966
249672008-01-28 Jason Rumney <jasonr@gnu.org>
24968
24969 * w32.c (stat): Don't double check for networked drive.
24970
249712008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
24972
24973 * window.c (run_window_configuration_change_hook): New function.
24974 Code extracted from set_window_buffer. Set the selected frame.
24975 (set_window_buffer): Use it.
24976 * window.h (run_window_configuration_change_hook): Declare.
24977 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
24978
24979 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
24980
249812008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
24982
24983 * Makefile.in: Remove references to unused macros.
24984
249852008-01-26 Eli Zaretskii <eliz@gnu.org>
24986
24987 * w32.c (g_b_init_get_sid_sub_authority)
24988 (g_b_init_get_sid_sub_authority_count): New static variables.
24989 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
24990 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
24991 (init_user_info): Use them to retrieve uid and gid.
24992 Use 500/513, the Windows defaults, as Administrator's uid/gid.
24993 (fstat): Use pw_uid and pw_gid from the_passwd structure for
24994 st_uid and st_gid of the file.
24995
249962008-01-26 Jason Rumney <jasonr@gnu.org>
24997
24998 * w32.c (logon_network_drive): New function.
24999 (stat): Use it.
25000
250012008-01-26 Chong Yidong <cyd@stupidchicken.com>
25002
25003 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
25004 invisible text covered with an ellipsis.
25005
250062008-01-25 Richard Stallman <rms@gnu.org>
25007
25008 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
25009 jump back to beginning. Move some other initializations after that.
25010 (Qwindow_text_change_functions, Vwindow_text_change_functions):
25011 New variables.
25012 (syms_of_xdisp): Init them.
25013
25014 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
25015
25016 * buffer.c (reset_buffer_local_variables):
25017 Implement `permanent-local-hook'.
25018 (Qpermanent_local_hook): New variable.
25019 (syms_of_buffer): Init and staticpro it.
25020
250212008-01-25 Michael Albinus <michael.albinus@gmx.de>
25022
25023 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
25024
250252008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
25026
25027 * fns.c (Fclrhash): Return TABLE.
25028
250292008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25030
25031 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
25032 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
25033 is set even without positional changes.
25034 (x_scroll_bar_clear): Set bar->redraw_needed_p.
25035
25036 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
25037
250382008-01-23 Jason Rumney <jasonr@gnu.org>
25039
25040 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
25041
25042 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
25043 the unicode range available in MULE by locale-coding-system.
25044 Improve dbcs lead byte detection. Set event timestamp and modifiers
25045 earlier.
25046
250472008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25048
25049 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
25050 [MAC_OSX] (init_mac_osx_environment): Initialize it.
25051 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
25052 when used on child processes.
25053
250542008-01-21 Michael Albinus <michael.albinus@gmx.de>
25055
25056 * dbusbind.c (Fdbus_method_return_internal): Rename from
25057 Fdbus_method_return.
25058 (Fdbus_unregister_object): Move to dbus.el.
25059 (Fdbus_call_method, Fdbus_method_return_internal)
25060 (Fdbus_send_signal): Improve debug messages.
25061
250622008-01-20 Martin Rudalics <rudalics@gmx.at>
25063
25064 * undo.c (undo_inhibit_record_point): New variable.
25065 (syms_of_undo): Initialize it.
25066 (record_point): Don't record point when undo_inhibit_record_point
25067 is set.
25068
250692008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
25070
25071 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
25072
25073 * xdisp.c (Qauto_hscroll_mode): New var.
25074 (syms_of_xdisp): Initialize it.
25075 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
25076 window's buffer.
25077 (hscroll_windows): Don't check automatic_hscrolling_p here.
25078
25079 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
25080 vscroll if we're setting window-buffer to the value it already has.
25081
250822008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
25083
25084 * m/intel386.h: Remove references to XENIX.
25085
250862008-01-17 Andreas Schwab <schwab@suse.de>
25087
25088 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
25089 instead of HAVE_X86_64_LIB64_DIR.
25090 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
25091
250922008-01-17 Glenn Morris <rgm@gnu.org>
25093
25094 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
25095 to HAVE_X86_64_LIB64_DIR.
25096
250972008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
25098
25099 * s/irix3-3.h:
25100 * s/irix4-0.h:
25101 * s/386-ix.h:
25102 * s/domain.h:
25103 * s/hpux9-x11r4.h:
25104 * s/hpux9shxr4.h: Remove files for systems no longer supported.
25105
25106 * sysdep.c: Remove code containing references to symbols defined
25107 by unsupported systems.
25108
251092008-01-16 Glenn Morris <rgm@gnu.org>
25110
25111 * coding.c (select-safe-coding-system-function): Doc fix.
25112
251132008-01-15 Glenn Morris <rgm@gnu.org>
25114
25115 * config.in: Revert 2008-01-13 change: this is a generated file.
25116
251172008-01-13 Tom Tromey <tromey@redhat.com>
25118
25119 * lisp.h: Fix typo.
25120
251212008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
25122
25123 * m/sequent-ptx.h:
25124 * m/sequent.h:
25125 * s/ptx.h:
25126 * s/ptx4-2.h:
25127 * s/ptx4.h: Remove files for systems no longer supported.
25128
25129 * callproc.c (Fcall_process): Fix previous change.
25130
251312008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
25132
25133 * unexsunos4.c: Remove file, system not supported anymore.
25134
25135 * m/mips.h:
25136 * m/intel386.h:
25137 * callproc.c:
25138 * config.in:
25139 * ecrt0.c:
25140 * emacs.c:
25141 * fileio.c:
25142 * frame.c:
25143 * getpagesize.h:
25144 * keyboard.c:
25145 * lread.c:
25146 * process.c:
25147 * puresize.h:
25148 * sysdep.c:
25149 * systty.h:
25150 * syswait.h:
25151 * unexec.c:
25152 * xdisp.c:
25153 * alloc.c: Remove code containing references to symbols defined by
25154 unsupported systems.
25155
251562008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
25157
25158 * coding.c (detect_coding_mask): Fix previous change.
25159
251602008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
25161
25162 * coding.c (detect_coding_iso2022): New arg
25163 latin_extra_code_state. Allow Latin extra codes only
25164 when *latin_extra_code_state is nonzero.
25165 (detect_coding_mask): If there is a NULL byte, detect the encoding
25166 as UTF-16 or binary. If Latin extra codes exist, detect the
25167 encoding as ISO-2022 only when there's no other proper encoding is
25168 found.
25169
251702008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25171
25172 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
25173 #ifdef MAC_OS.
25174
251752008-01-08 Richard Stallman <rms@gnu.org>
25176
25177 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
25178
251792008-01-06 Nick Roberts <nickrob@snap.net.nz>
25180
25181 * keyboard.c (parse_menu_item): Don't enclose key bindings on
25182 menu bar in parentheses.
25183
251842008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
25185
25186 * m/7300.h:
25187 * m/acorn.h:
25188 * m/alliant-2800.h:
25189 * m/alliant.h:
25190 * m/alliant1.h:
25191 * m/alliant4.h:
25192 * m/altos.h:
25193 * m/amdahl.h:
25194 * m/apollo.h:
25195 * m/att3b.h:
25196 * m/aviion-intel.h:
25197 * m/aviion.h:
25198 * m/celerity.h:
25199 * m/clipper.h:
25200 * m/cnvrgnt.h:
25201 * m/convex.h:
25202 * m/cydra5.h:
25203 * m/delta88k.h:
25204 * m/dpx2.h:
25205 * m/dual.h:
25206 * m/elxsi.h:
25207 * m/f301.h:
25208 * m/gould-np1.h:
25209 * m/gould.h:
25210 * m/i860.h:
25211 * m/ibmps2-aix.h:
25212 * m/ibmrt-aix.h:
25213 * m/ibmrt.h:
25214 * m/irist.h:
25215 * m/is386.h:
25216 * m/isi-ov.h:
25217 * m/mega68.h:
25218 * m/mg1.h:
25219 * m/news-r6.h:
25220 * m/news-risc.h:
25221 * m/news.h:
25222 * m/nh3000.h:
25223 * m/nh4000.h:
25224 * m/ns16000.h:
25225 * m/ns32000.h:
25226 * m/nu.h:
25227 * m/orion.h:
25228 * m/orion105.h:
25229 * m/paragon.h:
25230 * m/pfa50.h:
25231 * m/plexus.h:
25232 * m/pyramid.h:
25233 * m/pyrmips.h:
25234 * m/sh3el.h:
25235 * m/sps7.h:
25236 * m/sr2k.h:
25237 * m/stride.h:
25238 * m/sun1.h:
25239 * m/sun2.h:
25240 * m/sun3-68881.h:
25241 * m/sun3-fpa.h:
25242 * m/sun3-soft.h:
25243 * m/sun3.h:
25244 * m/sun386.h:
25245 * m/symmetry.h:
25246 * m/tad68k.h:
25247 * m/tahoe.h:
25248 * m/targon31.h:
25249 * m/tek4300.h:
25250 * m/tekxd88.h:
25251 * m/tower32.h:
25252 * m/tower32v3.h:
25253 * m/ustation.h:
25254 * m/wicat.h:
25255 * m/xps100.h:
25256 * s/cxux.h:
25257 * s/cxux7.h:
25258 * s/dgux.h:
25259 * s/dgux4.h:
25260 * s/dgux5-4-3.h:
25261 * s/dgux5-4r2.h:
25262 * s/esix.h:
25263 * s/esix5r4.h:
25264 * s/hiuxmpp.h:
25265 * s/hiuxwe2.h:
25266 * s/iris3-5.h:
25267 * s/iris3-6.h:
25268 * s/isc2-2.h:
25269 * s/isc3-0.h:
25270 * s/isc4-0.h:
25271 * s/isc4-1.h:
25272 * s/newsos5.h:
25273 * s/newsos6.h:
25274 * s/osf1.h:
25275 * s/osf5-0.h:
25276 * s/riscix1-1.h:
25277 * s/riscix12.h:
25278 * s/sco4.h:
25279 * s/sco5.h:
25280 * s/sunos4-0.h:
25281 * s/sunos4-1.h:
25282 * s/sunos413.h:
25283 * s/sunos4shr.h:
25284 * s/umax.h:
25285 * s/unipl5-2.h:
25286 * s/xenix.h:
25287 * cxux-crt0.s:
25288 * unexapollo.c:
25289 * unexconvex.c:
25290 * unexenix.c:
25291 * unexsni.c: Remove files for systems no longer supported.
25292
25293 * m/intel386.h: Remove references to unsupported systems.
25294
25295 * w32.c (get_emacs_configuration): Remove reference to i860.
25296
25297 * sysdep.c: Remove dead code.
25298
252992008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
25300
25301 * s/rtu.h:
25302 * m/masscomp.h: Remove files. Platform is obsolete.
25303
253042008-01-04 Michael Albinus <michael.albinus@gmx.de>
25305
25306 * dbusbind.c (Fdbus_method_return): New function.
25307 (xd_read_message): Add the serial number to the event.
25308 (Fdbus_register_method): Activate the function.
25309
253102008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
25311
25312 * keyboard.c (read_key_sequence): Fix typo.
25313
253142008-01-03 Michael Albinus <michael.albinus@gmx.de>
25315
25316 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
25317 (xd_signature, xd_append_arg): Handle element type detection for
25318 empty arrays.
25319 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
25320 SDATA () calls; this must be solved more general.
25321 (Fdbus_register_signal): Use SBYTES instead of strlen.
25322
253232008-01-03 Magnus Henoch <magnus@zemdatav>
25324
25325 * dbusbind.c (xd_append_arg): Use unsigned char instead of
25326 unsigned int for byte values (necessary for big-endian platform).
25327 (Fdbus_call_method): Handle the case of no returned arguments.
25328
253292007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
25330
25331 * dbusbind.c (xd_read_message): Use non-static input_event struct.
25332
253332007-12-31 Magnus Henoch <mange@freemail.hu>
25334
25335 * dbusbind.c (xd_signature): Signature of variant is just "v".
25336
253372007-12-30 Michael Albinus <michael.albinus@gmx.de>
25338
25339 * dbusbind.c: Fix several errors and compiler warnings.
25340 Reported by Tom Tromey <tromey@redhat.com>.
25341 (XD_ERROR, XD_DEBUG_MESSAGE)
25342 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
25343 (xd_append_arg): Part for basic D-Bus types rewritten.
25344 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
25345 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
25346 appropriate.
25347 (xd_read_message): Return Qnil. Don't signal an error; it is not
25348 useful during event reading.
25349 (Fdbus_register_signal): Signal an error if the check for
25350 FUNCTIONP fails.
25351 (Fdbus_register_method): New function. The implementation is not
25352 complete, the call of the function signals an error therefore.
25353 (Fdbus_unregister_object): New function, renamed from
25354 Fdbus_unregister_signal. The initial check signals an error, if
25355 the object is not well formed.
25356
253572007-12-30 Richard Stallman <rms@gnu.org>
25358
25359 * textprop.c (get_char_property_and_overlay):
25360 Signal error if POSITION is out of range in a buffer.
25361
253622007-12-29 Martin Rudalics <rudalics@gmx.at>
25363
25364 * w32fns.c (Fx_create_frame): Make copy of frame parameters
25365 because the original parameters are in pure storage now.
25366
253672007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25368
25369 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
25370
253712007-12-22 Eli Zaretskii <eliz@gnu.org>
25372
25373 * callint.c (syms_of_callint) <command-history>: Add reference to
25374 history-length in the doc string.
25375
253762007-12-17 Jason Rumney <jasonr@gnu.org>
25377
25378 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
25379 before passing as wParam.
25380
253812007-12-22 Michael Albinus <michael.albinus@gmx.de>
25382
25383 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
25384 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
25385 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
25386 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
25387 as number.
25388 (Fdbus_call_method): Fix docstring.
25389
253902007-12-21 Michael Albinus <michael.albinus@gmx.de>
25391
25392 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
25393 New macros.
25394 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
25395 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
25396 Simplify.
25397 (xd_signature): New function.
25398 (xd_append_arg): Compute also signatures. Major rewrite.
25399 (xd_retrieve_arg): Make debug messages friendly.
25400 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
25401 Check for signatures of arguments.
25402
254032007-12-19 Michael Albinus <michael.albinus@gmx.de>
25404
25405 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
25406 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
25407 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
25408 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
25409 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
25410 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
25411 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
25412 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
25413 (xd_retrieve_value): Remove. Functionality included in ...
25414 (xd_append_arg): New function.
25415 (Fdbus_call_method, Fdbus_send_signal): Apply it.
25416
254172007-12-16 Michael Albinus <michael.albinus@gmx.de>
25418
25419 * dbusbind.c (top): Include <stdio.h>.
25420 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
25421 dbus_message_new_method_call and dbus_message_new_signal.
25422 (Fdbus_register_signal): Rename unique_name to uname.
25423 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
25424 non-existing unique name. Fix typos in matching rule. Return an
25425 object which is useful in Fdbus_unregister_signal.
25426 (Fdbus_unregister_signal): Reimplementation, in order to remove
25427 only the corresponding entry.
25428 (Vdbus_registered_functions_table): Change the order of entries.
25429 Apply these changes in xd_read_message and Fdbus_register_signal.
25430
254312007-12-16 Andreas Schwab <schwab@suse.de>
25432
25433 * fileio.c (Finsert_file_contents): Fix overflow check to not
25434 depend on undefined integer overflow.
25435
254362007-12-14 Jason Rumney <jasonr@gnu.org>
25437
25438 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
25439 for characters above 127.
25440
254412007-12-13 Jason Rumney <jasonr@gnu.org>
25442
25443 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
25444 before dereferencing array.
25445 (lookup_vk_code): Remove zero comparison.
25446
254472007-12-14 Michael Albinus <michael.albinus@gmx.de>
25448
25449 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
25450 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
25451 Use `unsigned int' instead of `uint'.
25452 (xd_read_message, Fdbus_register_signal): Split expressions into
25453 multiple lines before operators "&&" and "||", according to the
25454 GNU Coding Standards.
25455
254562007-12-14 Eli Zaretskii <eliz@gnu.org>
25457
25458 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
25459
254602007-12-12 Juri Linkov <juri@jurta.org>
25461
25462 * buffer.c (Frename_buffer): In interactive spec replace
25463 `read-buffer' with `read-string' that uses `buffer-name-history'
25464 as history, and the current buffer's name as default.
25465
254662007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
25467
25468 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
25469 manipulating the backtrace manually.
25470 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
25471 (struct backtrace, backtrace_list): Remove.
25472 (command_loop_1): Remove dead var `no_direct'.
25473
25474 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
25475 preserve non-built-in buffer-local variables.
25476 (Fkill_all_local_variables): Don't re-create&re-set permanent
25477 buffer-local variables.
25478
254792007-12-09 Juri Linkov <juri@jurta.org>
25480
25481 * buffer.c (Frename_buffer): Change interactive spec from "s" to
25482 Lisp code that uses `read-buffer' with current buffer as default.
25483
254842007-12-08 Michael Albinus <michael.albinus@gmx.de>
25485
25486 * dbusbind.c (xd_read_message): Generate an event for every
25487 registered handler. There might be several handlers registered
25488 for the same signal.
25489 (Fdbus_register_signal): Don't overwrite a registration for the
25490 same signal. Add a new registration if handlers are different.
25491 (Vdbus_registered_functions_table): Rework doc string.
25492
254932007-12-07 Michael Albinus <michael.albinus@gmx.de>
25494
25495 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
25496 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
25497 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
25498 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
25499 Unify argument lists.
25500 (xd_read_message, Fdbus_register_signal): Reorder and extend event
25501 arguments and hash table keys. Use unique name for service.
25502 (Fdbus_unregister_signal): Remove checks.
25503 (Vdbus_registered_functions_table): Fix doc string.
25504
255052007-12-05 Magnus Henoch <mange@freemail.hu>
25506
25507 * process.c (make_process): Initialize pty_flag to 0.
25508
255092007-12-05 Jason Rumney <jasonr@gnu.org>
25510
25511 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
25512 specified XBMs.
25513
255142007-12-05 Richard Stallman <rms@gnu.org>
25515
25516 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
25517
255182007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25519
25520 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
25521 New variable.
25522 (mac_try_close_socket) [MAC_OSX]: New function.
25523 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
25524 Update cfsockets_for_select. Replace invalid CFRunLoop source.
25525
25526 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
25527 Use mac_try_close_socket.
25528
255292007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25530
25531 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
25532 reloc_base.
25533 (copy_dysymtab): Compute relocation base here.
25534 (rebase_reloc_address) [__ppc64__]: New function.
25535 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
25536 changed.
25537
255382007-12-05 Jason Rumney <jasonr@gnu.org>
25539
25540 * w32proc.c (sys_spawnve): Quote args with wildcards.
25541
255422007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25543
25544 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
25545 __objc_* sections.
25546 (unrelocate) [_LP64]: Set relocation base to address of data segment.
25547
255482007-12-05 Michael Albinus <michael.albinus@gmx.de>
25549
25550 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
25551 Move check for Vdbus_registered_functions_table to
25552 xd_read_queued_messages.
25553 (xd_read_queued_messages): Protect xd_read_message calls by
25554 internal_condition_case_1.
25555
255562007-12-04 Michael Albinus <michael.albinus@gmx.de>
25557
25558 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
25559 Qdbus_system_bus and Qdbus_session_bus, respectively.
25560 (Vdbus_intern_symbols): Remove.
25561 (Vdbus_registered_functions_table): New hash table.
25562 (XD_SYMBOL_INTERN_SYMBOL): Remove.
25563 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
25564 Rewrite in order to manage registered functions by hash table
25565 Vdbus_registered_functions_table.
25566
255672007-12-03 Jan Djärv <jan.h.d@swipnet.se>
25568
25569 * xterm.c: Update URL to Window Manager Specification in comment.
25570
255712007-12-02 Michael Albinus <michael.albinus@gmx.de>
25572
25573 * config.in (HAVE_DBUS): Add.
25574
25575 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
25576 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
25577 (obj): Add $(DBUS_OBJ).
25578 (LIBES): Add $(DBUS_LIBS).
25579 (dbusbind.o): New target.
25580
25581 * dbusbind.c: New file.
25582
25583 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
25584
25585 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
25586 (Qdbus_event): New Lisp symbol.
25587 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
25588 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 25589 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
25590
25591 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
25592
255932007-12-01 Richard Stallman <rms@gnu.org>
25594
25595 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
25596
255972007-11-30 Jason Rumney <jasonr@gnu.org>
25598
25599 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
25600 (w32con_reset_terminal_modes): Clear screen buffer.
25601 (w32_face_attributes): Don't use color indexes that are out of range.
25602 Only reverse the default colors.
25603
25604 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
25605 WINDOWSNT.
25606
25607 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
25608
256092007-11-29 Jason Rumney <jasonr@gnu.org>
25610
25611 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
25612 (w32_face_attributes): Use Vtty_defined_color_alist to determine
25613 if the terminal colors are initialized.
25614 (unspecified_fg, unspecified_bg): Remove unused declarations.
25615
256162007-11-29 Andreas Schwab <schwab@suse.de>
25617
25618 * keyboard.c (apply_modifiers): Fix typo.
25619
256202007-11-29 Richard Stallman <rms@gnu.org>
25621
25622 * keymap.c (Fcurrent_local_map): Doc fix.
25623
256242007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
25625
25626 * s/gnu-kfreebsd.h: New file.
25627
256282007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
25629
25630 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
25631 Don't cast redundantly.
25632
25633 * keyboard.c (KEY_TO_CHAR): New macro.
25634 (parse_modifiers, apply_modifiers): Accept integer arguments.
25635 (read_key_sequence): Use them to unify the "shift->unshift" mapping
25636 for chars and symbol keys.
25637 After doing such remapping, apply function-key-map again.
25638
256392007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
25640
25641 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
25642 compiled anymore.
25643
256442007-11-26 Andreas Schwab <schwab@suse.de>
25645
25646 * process.c (list_processes_1): Fix indentation level of the
25647 command column.
25648
256492007-11-23 Andreas Schwab <schwab@suse.de>
25650
25651 * editfns.c (Fformat): Handle %c specially since it requires the
25652 argument to be of type int.
25653
256542007-11-23 Markus Triska <markus.triska@gmx.at>
25655
25656 * emacs.c (main): Call init_editfns before init_process, since
25657 init_process sets Vprocess_connection_type depending on OS release.
25658
256592007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
25660
25661 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
25662 (find_symbol_value): Use do_symval_forwarding.
25663
25664 * data.c (set_internal): Set the value in the `cons-cell' (for
25665 Buffer_Local_values) not only for frame-local variables.
25666
256672007-11-22 Andreas Schwab <schwab@suse.de>
25668
25669 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
25670 values to sprintf.
25671 * keymap.c (Fsingle_key_description): Likewise.
25672 * print.c (print_object): Likewise.
25673
256742007-11-22 Jan Djärv <jan.h.d@swipnet.se>
25675
25676 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
25677 file for image is nil.
25678
256792007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
25680
25681 * term.c: Include stdarg.h.
25682 (fatal): Implement using varargs.
25683 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
25684
256852007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
25686
25687 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
25688 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
25689 Update call to buffer_slot_type_mismatch.
25690 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
25691 (buffer_slot_type_mismatch): Update.
25692 * buffer.c (buffer_local_types): Remove.
25693 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
25694 (defvar_per_buffer): Set the type in the buffer_objfwd.
25695
256962007-11-21 Jason Rumney <jasonr@gnu.org>
25697
25698 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
25699 CreateFileMapping returns NULL on failure.
25700
257012007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
25702
25703 * search.c (Fset_match_data): Remove the `evaporate' feature.
25704 (unwind_set_match_data): Don't use the `evaporate' feature.
25705
257062007-11-21 Jason Rumney <jasonr@gnu.org>
25707
25708 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
25709
25710 * w32console.c (w32con_write_glyphs): Remove unused variables.
25711
257122007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
25713
25714 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
25715
25716 * s/darwin.h (MULTI_KBOARD): Remove.
25717
25718 * macfns.c (x_create_tip_frame, Fx_create_frame)
25719 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
25720
257212007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
25722
25723 * buffer.c (Fbuffer_local_value): Remove redundant test.
25724 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
25725 than in `current-buffer' to match the comment.
25726 Do the swap using swap_in_global_binding.
25727
25728 * data.c (store_symval_forwarding, set_internal):
25729 * eval.c (specbind): Remove dead code.
25730
25731 * coding.c (detect_coding, Fupdate_coding_systems_internal):
25732 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
25733 Since we do not want to see internal Lisp_*fwd objects here.
25734
257352007-11-18 Jan Djärv <jan.h.d@swipnet.se>
25736
25737 * sysdep.c (init_system_name): Use getaddrinfo if available.
25738
25739 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
25740 (x_scroll_bar_note_movement): start, end, with, height in struct
25741 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
25742
257432007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
25744
25745 * puresize.h (BASE_PURESIZE): Increase to 1190000.
25746
257472007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
25748
25749 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
25750 This undoes Richard's change of 14-Oct-2002.
25751
25752 * alloc.c (allocate_other_vector):
25753 * lisp.h (allocate_other_vector): Remove.
25754
25755 * window.c (struct save_window_data): Move non-lisp data to the end
25756 and make it `int' rather than Lisp_Object.
25757 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
25758 Done wrap/unwrap integer values.
25759 (Fset_window_configuration, compare_window_configurations):
25760 Update use of fields to their new types.
25761
25762 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
25763 Turn integer fields into `int'. Merge x_window_low and x_window_high.
25764 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
25765 (SET_SCROLL_BAR_X_WINDOW): Remove.
25766 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
25767 Access the new x_window field directly.
25768 * xterm.c (x_scroll_bar_create): Use a pseudovector.
25769 Don't wrap/unwrap integers into Lisp_Objects.
25770 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
25771 (x_scroll_bar_report_motion):
25772 Don't wrap/unwrap integers into Lisp_Objects.
25773 (x_term_init): Use SDATA.
25774 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
25775 (x_scroll_bar_set_handle, x_scroll_bar_remove)
25776 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
25777 (x_scroll_bar_report_motion, x_scroll_bar_clear):
25778 * xfns.c (x_set_background_color):
25779 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
25780 Access the new x_window field directly.
25781
25782 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
25783 (allocate_pseudovector): Make non-static.
25784
25785 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
25786 (allocate_pseudovector): Declare.
25787 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
25788
257892007-11-15 Andreas Schwab <schwab@suse.de>
25790
25791 * editfns.c (Fformat): Correctly format EMACS_INT values.
25792 Also take precision into account when formatting an integer.
25793
25794 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
25795
257962007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
25797
25798 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
25799 (syms_of_keyboard): Defsubr it.
25800
25801 * data.c (swap_in_global_binding): Fix longstanding bug where
25802 store_symval_forwarding was not called with the right second argument,
25803 thus causing objfwd-ing from being dropped.
25804
258052007-11-14 Juanma Barranquero <lekktu@gmail.com>
25806
25807 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
25808 (Fx_display_pixel_height, Fx_display_planes)
25809 (Fx_display_color_cells, Fx_server_max_request_size)
25810 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
25811 (Fx_display_visual_class, Fx_display_save_under):
25812 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
25813 (Fx_display_pixel_height, Fx_display_planes)
25814 (Fx_display_color_cells, Fx_server_max_request_size)
25815 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
25816 (Fx_display_mm_height, Fx_display_mm_width)
25817 (Fx_display_backing_store, Fx_display_visual_class)
25818 (Fw32_select_font, Fx_display_save_under):
25819 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
25820 (Fx_display_pixel_height, Fx_display_planes)
25821 (Fx_display_color_cells, Fx_server_max_request_size)
25822 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
25823 (Fx_display_save_under): Fix typos in docstrings.
25824
258252007-11-14 Juanma Barranquero <lekktu@gmail.com>
25826
25827 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
25828 corresponding to deleted entries; they are an implementation detail.
25829 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
25830 Remove variables.
25831 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
25832 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
25833 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
25834 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
25835 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
25836 (Fw32_define_rgb_color, Fw32_load_color_file)
25837 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
25838 Fix typos in docstrings.
25839 (Fx_server_version): Reflow docstring.
25840 (Fw32_shell_execute): Doc fixes.
25841
258422007-11-13 Juanma Barranquero <lekktu@gmail.com>
25843
25844 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
25845 if w32_parse_hot_key returned nil.
25846
258472007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
25848
25849 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
25850
258512007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 25852
aac0c6e3
MR
25853 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
25854
25855 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
25856
25857 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
25858 Remove W32_SCROLL_BAR_CLICK_EVENT.
25859
25860 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
25861 Add MULTIMEDIA_KEY_EVENT.
25862
25863 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
25864 (lispy_multimedia_keys) [WINDOWSNT]: New array.
25865 (make_lispy_event) [WINDOWSNT]: Use it to translate
25866 MULTIMEDIA_KEY_EVENT.
25867
25868 * w32term.h (WM_APPCOMMAND): Define if not already.
25869 (GET_APPCOMMAND_LPARAM): Likewise.
25870
25871 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
25872 WM_APPCOMMAND.
25873
25874 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
25875 (syms_of_w32fns): Export and initialize it.
25876 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
25877
258782007-11-09 Chong Yidong <cyd@stupidchicken.com>
25879
25880 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
25881 twice.
25882
25883 * xdisp.c (handle_face_prop): Fix last change.
25884
258852007-11-09 Richard Stallman <rms@gnu.org>
25886
25887 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
25888 not just for after-strings and before-strings.
25889 Call face_for_overlay_string and pass the overlay to it.
25890 (handle_display_prop): Determine whether property came from an overlay.
25891 Pass OVERLAY arg to handle_single_display_spec.
25892 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
25893 (load_overlay_strings): Fill in it->string_overlays.
25894 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
25895
25896 * xfaces.c (face_for_overlay_string): Function renamed from
25897 face_at_buffer_position_no_overlays, and add arg OVERLAY.
25898
25899 * dispextern.h (struct it): New elt string_overlays.
25900 New elt from_overlay, also in stack.
25901 Rearrange a few elements.
25902 (face_for_overlay_string): Decl renamed from
25903 face_at_buffer_position_no_overlays, and add argument.
25904
259052007-11-09 Richard Stallman <rms@gnu.org>
25906
25907 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
25908 to get the base face for an overlay string.
25909
25910 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
25911
25912 * xfaces.c (face_at_buffer_position_no_overlays): New function.
25913
25914 * xdisp.c (handle_stop): Move some code out of loop.
25915
259162007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25917
25918 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
25919 Fix conversion from Lisp object to ATSUFontID.
25920
259212007-11-09 Jason Rumney <jasonr@gnu.org>
25922
25923 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
25924
259252007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25926
25927 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
25928 Don't assume regions are aligned to page boundary.
25929 (print_load_command_name): Add LC_UUID if defined.
25930
259312007-11-09 Richard Stallman <rms@gnu.org>
25932
25933 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
25934
259352007-11-07 Jason Rumney <jasonr@gnu.org>
25936
25937 * s/windows95.h: Remove.
25938
259392007-11-06 Jan Djärv <jan.h.d@swipnet.se>
25940
25941 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
25942 abort with a message on unhandled store_type values.
25943
259442007-11-01 Jan Djärv <jan.h.d@swipnet.se>
25945
25946 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
25947 Remove HAVE_X11R5 and HAVE_X11R4.
25948
259492007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
25950
25951 * Makefile.in: Remove references to sunfns.c and sunfns.o.
25952
259532007-11-01 Johan Bockgård <bojohan@gnu.org>
25954
25955 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
25956 Don't set s->stippled_p here, since it has already been set by
25957 x_set_glyph_string_gc from x_draw_glyph_string.
25958
259592007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
25960
25961 * sunfns.c: Remove file.
25962
25963 * m/sun386.h:
25964 * m/sun2.h:
25965 * m/sparc.h: Remove Sun windows code.
25966
259672007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
25968
25969 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
25970 (init_keyboard): Set current_kboard's window-system to nil.
25971 (tty_read_avail_input): Typo.
25972 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
25973
259742007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
25975
25976 * s/usg5-4.h:
25977 * s/usg5-3.h:
25978 * s/ptx.h:
25979 * m/is386.h:
25980 * m/ibmps2-aix.h:
25981 * Makefile.in: Remove all mentions of X10.
25982
25983 * dispnew.c (syms_of_display): Don't mention version 10.
25984
259852007-10-28 Juanma Barranquero <lekktu@gmail.com>
25986
25987 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
25988 ($(BLD)/abbrev.$(O)): Remove.
25989
259902007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
25991
25992 Rewrite abbrev.c in Elisp.
25993 * image.c (Qcount): Don't declare as extern.
25994 (syms_of_image): Initialize and staticpro `Qcount'.
25995 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
25996 * emacs.c (main): Don't call syms_of_abbrev.
25997 * Makefile.in (obj): Remove abbrev.o.
25998 (abbrev.o): Remove.
25999 * abbrev.c: Remove.
26000
260012007-10-26 Martin Rudalics <rudalics@gmx.at>
26002
26003 * window.c (window_min_size_2): Don't count header-line.
26004
260052007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
26006
26007 * frame.h (struct frame): Move all bit fields after the first bit
26008 field to take advantage of the available space. Group all the
26009 chars together to reduce wasted space due to padding.
26010
260112007-10-26 Juanma Barranquero <lekktu@gmail.com>
26012
26013 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
26014
26015 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
26016 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
26017 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
26018 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
26019 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
26020 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
26021 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
26022 (last_marked, mark_object_loop_halt): Make static.
26023
26024 * frame.c (syms_of_frame) <delete-frame-functions>:
26025 Fix typo in docstring.
26026
260272007-10-25 Juanma Barranquero <lekktu@gmail.com>
26028
26029 * w32.c (init_environment): Fix tiny memory leak.
26030 (w32_get_resource): Remove unused variable `ok'.
26031
260322007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
26033
26034 Make `window-system' into a keyboard-local variable (rather than
26035 frame-local as done originally by multi-tty).
26036
26037 * keyboard.h (struct kboard): Add Vwindow_system.
26038 * keyboard.c (init_kboard): Set a default for Vwindow_system.
26039 (mark_kboards): Mark Vwindow_system.
26040
26041 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
26042 (init_display): Don't set the obsolete `window-system' frame-param.
26043
26044 * xterm.c (x_term_init):
26045 * w32term.c (w32_create_terminal):
26046 * term.c (init_tty): Set Vwindow_system.
26047 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
26048 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
26049
26050 * xfns.c (Fx_create_frame, x_create_tip_frame):
26051 * w32fns.c (Fx_create_frame, x_create_tip_frame):
26052 * macfns.c (Fx_create_frame):
26053 Don't set the obsolete `window-system' frame-param.
26054
26055 * frame.h (Qwindow_system): Remove.
26056 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
26057 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
26058
260592007-10-24 Richard Stallman <rms@gnu.org>
26060
26061 * frame.c (x_figure_window_size): For fullscreen case,
26062 set USPosition | PPosition without clobbering rest of window_prompting.
26063
26064 * keyboard.c (Fcurrent_idle_time): Doc fix.
26065
26066 * print.c (Fwith_output_to_temp_buffer): Doc fix.
26067
260682007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
26069
26070 * process.c (unwind_request_sigio): Only define if __ultrix__.
26071
26072 * callproc.c (child_setup): Remove spurious *.
26073
26074 * lisp.h (Fget_text_property): Declare.
26075 (have_menus_p): Declare it here rather than in sys-dep header files.
26076 * macterm.h (have_menus_p):
26077 * msdos.h (have_menus_p):
26078 * xterm.h (have_menus_p): Remove.
26079
26080 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
26081 (Fmake_variable_frame_local): Just check the variable's const-ness
26082 rather than checking nil or t.
26083
260842007-10-22 Jason Rumney <jasonr@gnu.org>
26085
26086 * w32fns.c: Include math.h.
26087 (w32_abort): Declaration moved to nt/config.nt.
26088
26089 * s/ms-w32.h (HAVE_STDLIB_H): Define.
26090 (abort): Redefinition moved to nt/config.nt.
26091
26092 * m/windowsnt.h: Remove.
26093
260942007-10-22 Juanma Barranquero <lekktu@gmail.com>
26095
26096 * emacs.c (Fdump_emacs): Fix typo in message.
26097 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
26098 <installation-directory>: Reflow docstring.
26099
261002007-10-22 Juri Linkov <juri@jurta.org>
26101
26102 * minibuf.c: Allow minibuffer default to be a list of default values.
26103 With empty input use the first element of this list as returned default.
26104 (string_to_object)
26105 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
26106 (read_minibuf): If defalt is cons, set histstring to its car.
26107 (Fread_string): If default_value is cons, set val to its car.
26108 (Fread_buffer): If def is cons, use its car.
26109 (Fcompleting_read): If defalt is cons, set val to its car.
26110
261112007-10-21 Michael Albinus <michael.albinus@gmx.de>
26112
26113 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
26114
261152007-10-20 Juanma Barranquero <lekktu@gmail.com>
26116
26117 * doc.c (Fdocumentation): Check for advice in all cases.
26118
261192007-10-19 Chong Yidong <cyd@stupidchicken.com>
26120
26121 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
26122
261232007-10-19 Richard Stallman <rms@gnu.org>
26124
26125 * doc.c (Fdocumentation): Check for and handle an advised function.
26126
261272007-10-19 Juanma Barranquero <lekktu@gmail.com>
26128
26129 * process.c (Fset_process_filter): Doc fix.
26130
261312007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
26132
26133 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
26134 which caused key-translation-map to applied repeatedly (thus breaking
26135 double-mode).
26136
261372007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
26138
26139 * xselect.c (x_own_selection, x_handle_selection_clear)
26140 (x_clear_frame_selections):
26141 * w32menu.c (list_of_panes, list_of_items):
26142 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
26143 * textprop.c (validate_plist, interval_has_all_properties)
26144 (interval_has_some_properties, interval_has_some_properties_list)
26145 (add_properties, text_property_list):
26146 * process.c (Fget_buffer_process, list_processes_1, status_notify):
26147 * minibuf.c (Fassoc_string):
26148 * macselect.c (x_own_selection, x_clear_frame_selections)
26149 (Fx_disown_selection_internal):
26150 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
26151 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
26152
261532007-10-17 Chong Yidong <cyd@stupidchicken.com>
26154
26155 * process.c: Link to libs for calling res_init() if available.
26156 (Fmake_network_process): Call res_init() before getaddrinfo or
26157 gethostbyname, if possible.
26158
261592007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
26160
26161 * lread.c (read1): Set pvectype for char_tables.
26162
26163 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
26164 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
26165 Add type checks.
26166 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
26167
26168 * alloc.c (free_misc): Use XMISCTYPE.
26169 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
26170
261712007-10-17 Glenn Morris <rgm@gnu.org>
26172
26173 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
26174 (syms_of_minibuf): Add Qcompletion_ignore_case.
26175 * dired.c (Qcompletion_ignore_case): Change to external.
26176 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
26177 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
26178 (Fread_file_name): Use it rather than intern'ing.
26179
26180 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
26181 (Fread_coding_system): Ignore case of user input.
26182
261832007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26184
26185 * xdisp.c (handle_display_prop): Ignore display specs after
26186 replacing one when string text is being replaced.
26187 (handle_single_display_spec): Pretend as if characters with display
26188 property haven't been consumed only when buffer text is being replaced.
26189
261902007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
26191
26192 * xfns.c (Fx_create_frame, Fx_display_list):
26193 * window.c (window_fixed_size_p, enlarge_window)
26194 (shrink_window_lowest_first):
26195 * macterm.c (init_font_name_table):
26196 * macfns.c (Fx_create_frame, Fx_display_list):
26197 * lread.c (close_load_descs):
26198 * keyboard.c (read_char_x_menu_prompt):
26199 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
26200 * coding.c (code_convert_region_unwind): Test the type of an object
26201 rather than just !NILP before extracting data from it.
26202
26203 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
26204
26205 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
26206 (XMISCANY): New macro.
26207 (XMISCTYPE): Use it.
26208 (struct Lisp_Misc_Any): New type.
26209 (union Lisp_Misc): Use it.
26210 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
26211 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
26212 (find_symbol_value, set_internal, default_value, Fset_default)
26213 (Fmake_variable_buffer_local, Fmake_local_variable)
26214 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
26215 (Flocal_variable_if_set_p, Fvariable_binding_locus):
26216 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
26217 * alloc.c (allocate_buffer): Set the size and tag.
26218 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
26219 Use XMISCANY.
26220 (die): Follow the GNU convention for error messages.
26221 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
26222 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
26223 tag any more.
26224 (set_buffer_internal_1):
26225 * frame.c (store_frame_param):
26226 * eval.c (specbind):
26227 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
26228
26229 * doc.c (Fsnarf_documentation): Simplify.
26230
262312007-10-14 Juanma Barranquero <lekktu@gmail.com>
26232
26233 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
26234 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
26235
262362007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
26237
26238 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
26239
262402007-10-14 Juanma Barranquero <lekktu@gmail.com>
26241
26242 * eval.c (do_autoload): Don't save autoloads.
26243
26244 * data.c (Ffset): Save autoload of the function being set.
26245
262462007-10-07 John Paul Wallington <jpw@pobox.com>
26247
26248 * xfns.c (x_create_tip_frame): Set the `display-type' frame
26249 parameter before setting up faces.
26250
262512007-10-13 Eli Zaretskii <eliz@gnu.org>
26252
26253 * ccl.c (Fregister_code_conversion_map):
26254 * keyboard.c (append_tool_bar_item): Reformat last change.
26255
26256 * lisp.h (eabs): Rename from `abs'. All callers changed.
26257
262582007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
26259
26260 * buffer.c (add_overlay_mod_hooklist):
26261 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
26262 * fontset.c (make_fontset):
26263 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
26264 (append_tool_bar_item):
26265 * macmenu.c (grow_menu_items):
26266 * w32menu.c (grow_menu_items):
26267 * xmenu.c (grow_menu_items): Use larger_vector.
26268
262692007-10-13 Eli Zaretskii <eliz@gnu.org>
26270
26271 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
26272 selected frame'' on MSDOS).
26273
262742007-10-12 Martin Rudalics <rudalics@gmx.at>
26275
26276 * frame.c (Qexplicit_name): New variable.
26277 (x_report_frame_params): Report it in parameter alist.
26278 (syms_of_frame): Intern and staticpro it.
26279
262802007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
26281
26282 * macfns.c (x_create_tip_frame): Set terminal for frame.
26283
262842007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
26285
26286 * frame.c (Qenvironment): Remove.
26287 (syms_of_frame) <Qenvironment>: Don't initialize.
26288 (Fdelete_frame): Don't treat the `environment' param specially.
26289 * frame.h (Qenvironment): Don't declare.
26290 * callproc.c (set_initial_environment): Don't set unused frame param.
26291
26292 * frame.c (Fframe_with_environment): Remove.
26293 (syms_of_frame) <Sframe_with_environment>: Don't declare.
26294
26295 * lisp.h (Fframe_with_environment): Don't declare.
26296
262972007-10-10 Juanma Barranquero <lekktu@gmail.com>
26298
26299 * indent.c (indent_tabs_mode, last_known_column)
26300 (last_known_column_modified): Make static.
26301 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
26302
263032007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
26304
26305 * puresize.h (BASE_PURESIZE): Increase to 1170000.
26306
263072007-10-09 Jason Rumney <jasonr@gnu.org>
26308
26309 * w32term.c (x_set_window_size): Disable code that attempts to tell
26310 Lisp code about a size change before it actually happens.
26311
263122007-10-09 Richard Stallman <rms@gnu.org>
26313
26314 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
26315 return HANDLED_RETURN.
26316
263172007-10-08 Martin Rudalics <rudalics@gmx.at>
26318
26319 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
26320 when there's an unread command event.
26321
26322 * frame.c (focus_follows_mouse): Move here from frame.el to allow
26323 window autoselection act appropriately when leaving selected frame.
26324 (syms_of_frame): Initialize focus_follows_mouse.
26325 * frame.h (focus_follows_mouse): Extern it.
26326 * macterm.c (XTread_socket): When focus_follows_mouse is nil
26327 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
26328 * msdos.c (dos_rawgetc): Likewise.
26329 * w32term.c (w32_read_socket): Likewise.
26330 * xterm.c (handle_one_xevent): Likewise.
26331 * xdisp.c (syms_of_xdisp): In doc-string of
26332 mouse-autoselect-window mention focus-follows-mouse.
26333
263342007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26335
26336 * macterm.c (mac_load_query_font): Fix missing return value.
26337 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
26338 Add BLOCK_INPUT.
26339
263402007-10-08 Richard Stallman <rms@gnu.org>
26341
26342 * xdisp.c (get_window_cursor_type): Implement documented behavior
26343 for cursor-in-non-selected-windows = t.
26344
263452007-10-08 Jason Rumney <jasonr@gnu.org>
26346
26347 * w32.c (w32_get_resource): Always close registry keys.
26348
263492007-10-08 Jason Rumney <jasonr@gnu.org>
26350
26351 * makefile.w32-in (LIBS): Add COMCTL32.
26352
26353 * w32fns.c (globals_of_w32fns): Init common controls.
26354
263552007-10-08 Richard Stallman <rms@gnu.org>
26356
26357 * image.c (our_memory_buffer): Rename from omfib_buffer.
26358
263592007-10-08 Richard Stallman <rms@gnu.org>
26360
26361 * buffer.c (Foverlays_at): Doc fix.
26362
263632007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
26364
26365 * fns.c (Fplist_put): Preserve uneven tail data.
26366
263672007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
26368
26369 * termhooks.h (enum event_kind): Remove trailing comma.
26370
26371 * frame.h (enum): Remove trailing comma.
26372
263732007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
26374
26375 * w32proc.c (delete_child): Don't terminate threads of zombies.
26376
263772007-10-08 Martin Rudalics <rudalics@gmx.at>
26378
26379 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
26380
26381 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
26382 last-repeatable-command.
26383 (init_kboard): Initialize Vlast_repeatable_command.
26384 (command_loop_1): Set it to real_this_command unless that was
26385 bound to an input event.
26386 (mark_kboards): Mark it.
26387
263882007-10-08 Richard Stallman <rms@gnu.org>
26389
26390 * eval.c (condition-case): Doc fix.
26391
263922007-10-08 Masatake YAMATO <jet@gyve.org>
26393
26394 * xfaces.c (tty_supports_face_attributes_p): Fix code
26395 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
26396 was copied and not edited.
26397
263982007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
26399
26400 Add new `input-decode-map' keymap and use it for terminal
26401 escape sequences.
26402 * keyboard.h (struct kboard): Add Vinput_decode_map.
26403 Remove Vlocal_key_translation_map.
26404 * keyboard.c (read_key_sequence): Add support for input-decode-map.
26405 (init_kboard): Init input-decode-map.
26406 Replace local-key-translation-map back with key-translation-map.
26407 (syms_of_keyboard): Declare input-decode-map.
26408 Remove local-key-translation-map. Update docstrings.
26409 (mark_kboards): Mark Vinput_decode_map.
26410 Don't mark Vlocal_key_translation_map.
26411 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
26412 Replace local-key-translation-map back with key-translation-map.
26413 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
26414 Bind in input-decode-map rather than function-key-map.
26415
26416 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
26417 This was made redundant by the previous introduction of XSETPVECTYPE.
26418
264192007-10-09 Richard Stallman <rms@gnu.org>
26420
26421 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
26422
264232007-09-29 Richard Stallman <rms@gnu.org>
26424
26425 * eval.c (internal_condition_case_2, internal_condition_case_1)
26426 (internal_condition_case): Reenable abort if x_catching_errors ()
26427 to see if that really happens and why.
26428
264292007-10-06 Andreas Schwab <schwab@suse.de>
26430
26431 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
26432
264332007-10-04 Juanma Barranquero <lekktu@gmail.com>
26434
26435 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
26436
264372007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
26438
26439 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
26440
264412007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
26442
26443 * window.h (struct window):
26444 * window.c (struct save_window_data, struct saved_window):
26445 * termhooks.h (struct terminal):
26446 * process.h (struct Lisp_Process):
26447 * frame.h (struct frame):
26448 * buffer.h (struct buffer):
26449 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
26450 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
26451 The size field of (pseudo)vectors is now unsigned.
26452 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
26453
26454 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
26455 Turn `count' into an integer.
26456
26457 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
26458 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
26459 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
26460 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
26461 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
26462
26463 * alloc.c (allocate_pseudovector): New fun.
26464 (ALLOCATE_PSEUDOVECTOR): New macro.
26465 (allocate_window, allocate_terminal, allocate_frame)
26466 (allocate_process): Use it.
26467 (mark_vectorlike): New function.
26468 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
26469 (mark_terminals): Use it.
26470 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
26471 (Fmake_byte_code): Use XSETPVECTYPE.
26472
26473 * frame.c (Fframe_parameters): Minor simplification.
26474
26475 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
26476
26477 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
26478
26479 * buffer.c (Fget_buffer_create, init_buffer_once):
26480 * lread.c (defsubr):
26481 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
26482
26483 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
26484 defined differently in the m/*.h files.
26485 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
26486 (XSETPVECTYPE): New macro.
26487 (XSETPSEUDOVECTOR): Use it.
26488
26489 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
26490 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
26491
26492 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
26493 * lread.c (defvar_per_buffer):
26494 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
26495
26496 * window.c (candidate_window_p): Only consider as visible frames that
26497 are on the same terminal.
26498
26499 * m/ibms390x.h (MARKBIT): Remove unused macro.
26500
265012007-10-01 Juanma Barranquero <lekktu@gmail.com>
26502
26503 * lread.c (Fload): Fix typo in docstring.
26504
265052007-10-01 Michaël Cadilhac <michael@cadilhac.name>
26506
26507 * floatfns.c (Fexpt): Manually check for overflows, so that a power
26508 of a non-zero value can't yield zero.
26509
265102007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
26511
26512 * term.c (term_clear_mouse_face, term_mouse_highlight)
26513 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
26514
26515 * print.c (safe_debug_print): Use XHASH.
26516
26517 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
26518 Lisp elements such as tags.
26519 (XHASH): New macro.
26520 (EQ): Use it.
26521 (SREF, SSET, STRING_COPYIN): Use SDATA.
26522 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
26523
26524 * alloc.c (mark_terminal): Remove left-over declaration.
26525 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
26526 (allocate_vectorlike): Remove type argument. Adjust callers.
26527 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
26528 Only handle the one remaining MEM_TYPE_VECTORLIKE.
26529
26530 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
26531 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
26532 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
26533 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
26534 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
26535 Use them.
26536
26537 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
26538 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
26539 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
26540
265412007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
26542
26543 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
26544 loaded by default.
26545
265462007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
26547
26548 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
26549 on this tty.
26550 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
26551
26552 * term.c (mouse_face_window): Rename from Qmouse_face_window.
26553 Update all users.
26554 (handle_one_term_event): Use Gpm_DrawPointer.
26555 (Fgpm_mouse_start): Rename from Fterm_open_connection.
26556 Signal errors instead of returning nil. Always return nil.
26557 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
26558 Make it a noop if gpm-mouse was not activated.
26559 (syms_of_term): Update names.
26560
265612007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
26562
26563 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
26564 (init_sys_modes): Check that gpm_tty is the current tty.
26565
26566 * alloc.c (allocate_terminal): Set the vector size to only count the
26567 lisp fields. Initialize those to nil.
26568 (mark_object): Don't treat terminals specially.
26569 (mark_terminal): Remove.
26570 (mark_terminals): Use mark_object instead.
26571
26572 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
26573 the GC to the beginning.
26574
26575 * indent.h:
26576 * indent.c: Use EMACS_INT for ints coming from Elisp data.
26577
26578 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
26579
265802007-09-25 Jason Rumney <jasonr@gnu.org>
26581
26582 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
26583
26584 * w32console.c (create_w32cons_output): Remove.
26585
26586 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
26587
26588 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
26589 (reset_sys_modes): Use reset_terminal_modes_hook.
26590
265912007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
26592
26593 * eval.c (do_autoload): Don't output any message.
26594
265952007-09-24 Juri Linkov <juri@jurta.org>
26596
26597 * emacs.c (standard_args): Change priority of "--no-splash"
26598 from 40 to 3. Add "--no-desktop" with the same priority.
26599
266002007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
26601
26602 * alloc.c (gc_sweep): Check cons cell mark bits word by word
26603 and optimize the case where they are all 1.
26604
266052007-09-23 Johannes Weiner <hannes@saeurebad.de>
26606
26607 * lisp.h (abs): Define if not defined.
26608 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
26609 Don't define `abs', since it's defined in lisp.h.
26610
266112007-09-22 Eli Zaretskii <eliz@gnu.org>
26612
26613 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
26614 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
26615 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
26616 (init_tty): Use DEV_TTY instead of "/dev/tty".
26617 [WINDOWSNT]: No need to protect from NAME arg being null.
26618
266192007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
26620
26621 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
26622 up the tty state.
26623
266242007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
26625
26626 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
26627 (gpm_tty): Change its type.
26628 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
26629 (gpm_tty): Change its type and initialize it.
26630 (Fterm_open_connection): Check the frame is indeed a tty.
26631 Use the new gpm_tty.
26632 (Fterm_close_connection): Use the new gpm_tty.
26633 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
26634 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
26635
266362007-09-21 Juanma Barranquero <lekktu@gmail.com>
26637
26638 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
26639 underline_color, to draw strike-through.
26640
266412007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
26642
26643 * lisp.h (allocate_terminal): Declare.
26644
26645 * window.c (candidate_window_p): Consider frames that are being placed
26646 by the user as somewhere between visible and iconified.
26647 (window_loop): Prefer windows on the current frame.
26648 (Fselect_window): Move the use of select-frame to the beginning so we
26649 can just delegate all the work (it'll call us back anyway).
26650
26651 * frame.c (Qdisplay_environment_variable):
26652 * frame.h (Qdisplay_environment_variable): Delete.
26653
26654 * .gdbinit (xbacktrace): Print the arg's address rather than the value
26655 of the first arg, since that value may be a union.
26656
26657 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
26658 parameter rather than Qdisplay_environment_variable. If all else
26659 fails, look for DISPLAY in initial-environment.
26660
266612007-09-21 Glenn Morris <rgm@gnu.org>
26662
26663 * Makefile.in (emacstool): Remove target.
26664 (lisp, shortlisp): Remove termdev.elc.
26665
266662007-09-21 Markus Triska <markus.triska@gmx.at>
26667
26668 * xterm.c (x_delete_display): Compile session management conditionally.
26669
266702007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
26671
26672 * callproc.c (getenv_internal_1): New function.
26673 (getenv_internal): Use it.
26674 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
26675
26676 * terminal.c (get_terminal): Don't accept ints to represent terminals.
26677 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
26678 (Fset_terminal_parameter): Work with dead terminals as well.
26679 (Fmodify_terminal_parameters): Remove.
26680
26681 * terminal.c (get_terminal): Handle terminals.
26682 Make sure the terminal returned is live.
26683 (create_terminal): Use allocate_terminal.
26684 (mark_terminals): Move to alloc.c.
26685 (delete_terminal): Use terminal->name as liveness status.
26686 NULL out fields after freeing their contents.
26687 Don't deallocate the object.
26688 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
26689 rather than an int.
26690 (Fterminal_live_p): Accept non-integer arguments.
26691 (Fterminal_list): Return terminal objects rather than an ints.
26692
26693 * alloc.c (enum mem_type): New member for `terminal' objects.
26694 (allocate_terminal): New function.
26695 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
26696 Handle terminals.
26697 (mark_terminal): New fun.
26698 (mark_terminals): Move from terminal.c.
26699
26700 * term.c (get_tty_terminal): Don't treat output_initial specially.
26701 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
26702 (delete_tty): Use terminal->name as liveness status.
26703
26704 * termhooks.h (struct terminal): Make it into a pseudovector.
26705 Remove `deleted' replaced by checking `name's nullness.
26706
26707 * print.c (print_object): Handle terminals.
26708
26709 * lisp.h (enum pvec_type): New `terminal' pseudovector.
26710 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
26711
26712 * frame.c (make_terminal_frame):
26713 * keyboard.c (tty_read_avail_input):
26714 * w32term.c (x_delete_terminal):
26715 * xfns.c (Fx_create_frame, x_create_tip_frame):
26716 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
26717
267182007-09-20 Glenn Morris <rgm@gnu.org>
26719
26720 * process.c (Fmake_network_process): Doc fix.
26721
267222007-09-19 Jason Rumney <jasonr@gnu.org>
26723
26724 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
26725
267262007-09-19 Michaël Cadilhac <michael@cadilhac.name>
26727
26728 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
26729 Fix a C warning regarding variable constness.
26730
26731 * xterm.c (handle_one_xevent): Fix a C warning.
26732
267332007-09-18 Jason Rumney <jasonr@gnu.org>
26734
26735 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
26736
267372007-09-17 Jan Djärv <jan.h.d@swipnet.se>
26738
26739 * gtkutil.c (gdpy_def): New variable.
26740 (xg_initialize): Initialize gdpy_def.
26741 (xg_display_close): If no other display exists, set gdpy_def to a
26742 new connection.
26743
267442007-09-16 Jan Djärv <jan.h.d@swipnet.se>
26745
26746 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
26747 when we have no file name for the icon.
26748 (xg_tool_bar_expose_callback): Remove.
26749 (xg_create_tool_bar): Don't connect expose signal to
26750 xg_tool_bar_expose_callback.
26751 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
26752
267532007-09-16 Andreas Schwab <schwab@suse.de>
26754
26755 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
26756 values instead of zapping them.
26757
267582007-09-14 Glenn Morris <rgm@gnu.org>
26759
26760 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
26761 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
26762 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
26763 scope and rename to omfib_buffer for clarity.
26764 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
26765
267662007-09-14 Kenichi Handa <handa@m17n.org>
26767
26768 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
26769
267702007-09-13 Jason Rumney <jasonr@gnu.org>
26771
26772 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
26773
26774 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
26775
26776 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
26777 (mac_term_init): Call here instead, passing rif.
26778
267792007-09-13 Glenn Morris <rgm@gnu.org>
26780
26781 * s/hpux.h: No longer define `static' as nothing.
26782
267832007-09-13 Johan Bockgård <bojohan@gnu.org>
26784
26785 * callint.c (Fcall_interactively): Remove unused var `fun'.
26786
267872007-09-12 Romain Francoise <romain@orebokech.com>
26788
26789 * window.c (prefer_window_split_horizontally, display_buffer):
26790 Revert 2007-09-08 change.
26791
267922007-09-12 Glenn Morris <rgm@gnu.org>
26793
26794 * alloca.c: Remove file.
26795 * Makefile.in (alloca): Do not undef.
26796 (allocaobj, alloca.o): Remove.
26797 (otherobj): Remove allocaobj.
26798 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
26799 * regex.c (C_ALLOCA): Remove all references and code that was only
26800 used when this was defined.
26801 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
26802 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
26803 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
26804
26805 * Makefile.in (SOURCES, unlock, relock): Delete.
26806
26807 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
26808 (menu_grab_callback): All uses changed.
26809
26810 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
26811 (x_reply_selection_request): All uses changed.
26812
268132007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
26814
26815 * lread.c (load_warn_old_style_backquotes): Change message to look
26816 better when it appears in the middle of byte-compiler messages.
26817
268182007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
26819
26820 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
26821
26822 * xterm.c (x_create_terminal): Add comment.
26823
26824 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
26825
268262007-09-10 Richard Stallman <rms@gnu.org>
26827
26828 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
26829
268302007-09-10 Michaël Cadilhac <michael@cadilhac.name>
26831
26832 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
26833 (DEFUN): Document `intspec', use it instead of `prompt'.
26834
26835 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
26836
26837 * data.c (Finteractive_form): If the interactive specification starts
26838 with a `(', use it as a Lisp form.
26839
26840 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
26841 name and file modes.
26842
26843 * callint.c (Fcall_interactively): Comment fixes.
26844
268452007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
26846
26847 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
26848 and compiled functions.
26849
268502007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
26851
26852 * window.c (prefer_window_split_horizontally): New variable.
26853 (display_buffer): Consider splitting window horizontally depending
26854 on prefer_window_split_horizontally.
26855
268562007-09-08 Eli Zaretskii <eliz@gnu.org>
26857
26858 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
26859
268602007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
26861
26862 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
26863
26864 * frame.c (x_set_frame_parameters): Check number is positive before
26865 using XFASTINT.
26866
26867 * window.c (freeze_window_start): Don't presume selected_window holds
26868 a window object.
26869 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
26870
268712007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
26872
26873 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
26874
268752007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
26876
26877 * window.c (Vsplit_window_preferred_function): New var.
26878 (Fdisplay_buffer): Use it.
26879 (syms_of_window): Export, and initialize it.
26880
268812007-09-06 Pixel <pixel@mandriva.com> (tiny change)
26882
26883 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
26884
268852007-09-06 Glenn Morris <rgm@gnu.org>
26886
26887 * gtkutil.c (menu_grab_callback) <cnt>:
26888 * xselect.c (x_reply_selection_request) <cnt>: Move static
26889 variable to file scope.
26890
268912007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
26892
26893 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
26894 consistent values of selected_frame and selected_window.
26895
268962007-09-04 Jason Rumney <jasonr@gnu.org>
26897
26898 * w32console.c (initialize_w32_display): Zero unused hooks.
26899
269002007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
26901
26902 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
26903 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
26904
269052007-09-04 Jason Rumney <jasonr@gnu.org>
26906
26907 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
26908 in w32console.c. Set up input. Remove XXX comments that have been
26909 confirmed as correct.
26910
26911 * s/ms-w32.h (MULTI_KBOARD): Define.
26912
26913 * w32console.c (one_and_only_w32cons): Remove.
26914 (initialize_w32_display): Take terminal argument.
26915
26916 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
26917 initialize_w32_display.
26918 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
26919
26920 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
26921
26922 * keyboard.c (discard_mouse_events): Discard it.
26923 (make_lispy_event): Translate it to a lisp event.
26924 (lispy_wheel_names): Add wheel-left and right events.
26925 (syms_of_keyboard): Enlarge wheel_syms.
26926
26927 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
26928 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
26929
26930 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
26931
26932 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
26933 from WM_MOUSEHWHEEL.
26934 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
26935
26936 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
26937 terminal.
26938
26939 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
26940 keyboard for the terminal.
26941
269422007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
26943
26944 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
26945 (Vresume_tty_hook): Rename from Vresume_tty_functions.
26946 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
26947 and resume-tty-function to resume-tty-hook.
26948 (Fsuspend_tty, Fresume_tty): Use new names.
26949
269502007-09-02 Jan Djärv <jan.h.d@swipnet.se>
26951
26952 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
26953 if it starts with "n:".
26954
269552007-08-31 Jan Djärv <jan.h.d@swipnet.se>
26956
26957 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
26958
269592007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
26960
26961 * frame.h:
26962 * frame.c (Qterm_environment_variable): Remove.
26963 (syms_of_frame): Don't init and staticpro it.
26964
26965 * callproc.c (getenv_internal): Remove special case for $TERM.
26966
26967 * callproc.c (Vinitial_environment): New variable.
26968 (set_initial_environment): Initialize it.
26969 (syms_of_callproc): Declare it.
26970 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
26971 TERM under which a process runs is never related to the TERM in which
26972 Emacs is running.
26973
269742007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
26975
26976 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
26977 * s/darwin.h: ... do it here.
26978
269792007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
26980
26981 * lisp.h (set_initial_environment): Rename from set_global_environment.
26982
26983 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
26984 removed by mistake on the multi-tty branch.
26985
26986 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
26987 (Fmodify_frame_parameters): Return a value.
26988
26989 * image.c (png_load): Comment-out var only used in commented-out code.
26990
26991 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
26992 before passing it to mark_object.
26993
26994 * xfaces.c (internal_resolve_face_name): Return a value.
26995 (internal_resolve_face_name, resolve_face_name_error): Comment out.
26996
26997 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
26998 (x_icon): Comment-out var only used in commented-out code.
26999
270002007-08-29 Romain Francoise <romain@orebokech.com>
27001
27002 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
27003 QUIT hasn't been provided.
27004
270052007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
27006
27007 * callproc.c (child_setup, getenv_internal): Use the
27008 display-environment-variable and term-environment-variable frame params.
27009 (set_initial_environment): Initialise Vprocess_environment.
27010
27011 * config.in: Disable multi-keyboard support on a mac.
27012
27013 * frame.c (Qterm_environment_variable)
27014 (Qdisplay_environment_variable): New variables.
27015 (syms_of_frame): Intern and staticpro them.
27016 (Fmake_terminal_frame): Disable output method test.
27017
27018 * frame.h: Declare them here.
27019
27020 * macfns.c (x_set_mouse_color): Get rif from the frame.
27021 (x_set_tool_bar_lines): Don't use updating_frame.
27022 (mac_window): Add 2 new parameters for consistency with other systems.
27023 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
27024 frame parameters following what is done in X11 and w32. Don't use
27025 FRAME_MAC_DISPLAY_INFO.
27026 (Fx_open_connection, start_hourglass): Remove window-system check.
27027 (x_create_tip_frame): Get the keyboard from the terminal.
27028
27029 * macmenu.c: Reorder includes.
27030 (Fx_popup_menu): Use terminal specific mouse_position_hook.
27031
27032 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
27033 terminal parameter.
27034 (x_clear_frame): Add a frame parameter.
27035 (note_mouse_movement): Get rif from the frame.
27036 (mac_term_init): Initialize the terminal.
27037 (mac_initialize): Make static and move terminal initialization ...
27038 (mac_create_terminal): ... to this new function.
27039
27040 * macterm.h (struct mac_display_info): Add terminal.
27041 (mac_initialize): Delete declaration.
27042
27043 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
27044
27045 * sysdep.c: Comment out text after #endif.
27046
27047 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
27048 is defined. Better initialize ttys in windows. Use terminal
27049 specific mouse_position_hook.
27050
27051 * termhooks.h (union display_info): Add mac_display_info.
27052
27053 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
27054 Set the default minibuffer frame, window_system and the rest of the
27055 frame parameters following what is done in X11.
27056
27057 * w32term.c (w32_initialize): Make static.
27058
27059 * xselect.c (x_handle_selection_clear): Only access
27060 terminal->kboard when MULTI_KBOARD is defined.
27061
27062 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
27063 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
27064
270652007-08-29 Jason Rumney <jasonr@gnu.org>
27066
27067 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
27068 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
27069
27070 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
27071 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
27072
27073 * keyboard.c (restore_kboard_configuration): Only define when
27074 MULTI_KBOARD defined.
27075
27076 * makefile.w32-in: Update dependancies from Makefile.in.
27077 (OBJ1): Add terminal.$(O)
27078
27079 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
27080 Don't define function body.
27081 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
27082
27083 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
27084
27085 * w32.c (request_sigio, unrequest_sigio): Remove.
27086
27087 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
27088 (w32con_clear_frame, w32con_clear_end_of_line)
27089 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
27090 (w32con_delete_glyphs, w32con_set_terminal_window)
27091 (scroll_line, w32_sys_ring_bell): Add frame arg.
27092 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
27093 Add terminal arg.
27094 (PICK_FRAME): Remove.
27095 (w32con_write_glyphs): Use frame specific terminal coding.
27096 (one_and_only_w32cons): New global variable.
27097 (initialize_w32_display): Use it for storing hooks.
27098 (create_w32cons_output): New function.
27099
27100 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
27101 arg a frame.
27102
27103 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
27104 Set window_system.
27105 (x_set_tool_bar_lines): Don't use updating_frame.
27106 (Fx_create_frame): Set terminal and ref count.
27107 (Fx_open_connection): Remove window-system check.
27108
27109 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
27110
27111 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
27112 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
27113 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
27114 Add frame arg.
27115 (x_delete_terminal, w32_create_terminal): New functions.
27116 (w32_term_init): Create a terminal.
27117 (w32_initialize): Move terminal specific initialization to
27118 w32_create_terminal.
27119
27120 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
27121 (w32_clear_rect, w32_clear_area): Use background from frame.
27122 (w32_display_info): Add terminal.
27123 (w32_sys_ring_bell, x_delete_display): Declare here.
27124
27125 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
27126
27127 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
27128
271292007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
27130
27131 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
27132 Fix get_named_tty calls for the controlling tty.
27133
271342007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
27135
194d44e7 27136 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
27137
271382007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
27139
27140 * term.c (tty_insert_glyphs): Add missing first parameter.
27141
271422007-08-29 Károly Lőrentey <karoly@lorentey.hu>
27143
27144 * buffer.c (Fbuffer_list, Fbury_buffer):
27145 Take frame->buried_buffer_list into account.
27146
27147 * cm.c (current_tty): New variable, for cmputc().
27148 (cmputc): Use it.
27149 (cmcheckmagic): Add tty parameter, look up terminal streams there.
27150 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
27151 (cmgoto): Add tty parameter. Pass it on to calccost().
27152 Use emacs_tputs() instead of tputs().
27153
27154 * cm.h (emacs_tputs): New macro to set current_tty, and then call
27155 tputs().
27156 (current_tty): New variable, for cmputc().
27157 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
27158
27159 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
27160 (internal_condition_case, internal_condition_case_1)
27161 (internal_condition_case_2): Don't abort when x_catching_errors.
27162
27163 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
27164 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
27165 prevent crashes caused by bogus longjmps in read_char.
27166
27167 * keymap.h (Fset_keymap_parent): Add EXFUN.
27168
27169 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
27170 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
27171 Remove redundant definition.
27172
27173 * macfns.c (x_set_mouse_color, x_make_gc):
27174 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
27175
27176 * w32term.c (x_free_frame_resources):
27177 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
27178 (w32_initialize): Use the accessor macros for terminal characteristics.
27179
27180 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
27181 Use the accessor macros for terminal characteristics.
27182 * msdos.c (internal_terminal_init): Use the accessor macros for
27183 terminal characteristics.
27184 (ScreenVisualBell, internal_terminal_init):
27185 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
27186
27187 * termopts.h (no_redraw_on_reenter): Declare.
27188
27189 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
27190 (mark_terminals, mark_ttys): Declare.
27191 (Fgarbage_collect): Call them.
27192 (mark_object): Mark buried_buffer_list.
27193
27194 * prefix-args.c: Include stdlib.h for exit.
27195
27196 * syssignal.h: Add comment.
27197
27198 * indent.c: Include stdio.h.
27199
27200 * window.h (Vinitial_window_system): Declare.
27201 (Vwindow_system): Delete declaration.
27202
27203 * fontset.c (Finternal_char_font): Use FRAME_RIF.
27204
27205 * image.c (lookup_image): Don't initialize `c' until the xasserts
27206 have been run.
27207
27208 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
27209 FRAME_FOREGROUND_PIXEL.
27210
27211 * print.c (print_preprocess): Don't lose print_depth levels while
27212 iterating.
27213
27214 * widget.c (update_from_various_frame_slots):
27215 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
27216
27217 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
27218 frames.
27219 (window_internal_height): Remove bogus make_number call.
27220 (init_window_once): Call make_terminal_frame with two zero parameters.
27221
27222 * fileio.c (Fread_file_name): Update comment.
27223
27224 * callint.c (Fcall_interactively):
27225 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
27226 Make sure it is correctly unwound.
27227
27228 * xsmfns.c (x_session_close): New function.
27229
27230 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
27231 Delete declarations.
27232
27233 * xterm.h: Remove declaration for x_fully_uncatch_errors.
27234 (x_output): Remove background_pixel and foreground_pixel fields.
27235 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
27236 (x_delete_device, x_session_close): Declare.
27237
27238 * lread.c: Include setjmp.h. Update declaration of `read_char'.
27239 (read_filtered_event): Call `read_char' with a local
27240 `wrong_kboard_jmpbuf'.
27241
27242 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
27243 Don't call single_kboard_state. Use FRAME_RIF.
27244
27245 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
27246 systems.
27247
27248 * lisp.h (set_process_environment): Rename to `set_global_environment'.
27249 (Fframe_with_environment, Fset_input_meta_mode)
27250 (Fset_quit_char): EXFUN.
27251 (x_create_device, tty_output, terminal, tty_display_info): Declare.
27252 (init_sys_modes, reset_sys_modes): Update prototypes.
27253 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
27254
27255 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
27256 Vlocal_key_translation_map, and Vkeyboard_translate_table.
27257 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
27258 Delete declarations.
27259 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
27260 (temporarily_switch_to_single_kboard, tty_read_avail_input):
27261 New declarations.
27262
27263 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
27264 already does that during init_display(). Call syms_of_keymap
27265 before syms_of_keyboard. Call `syms_of_terminal'.
27266 Call set_initial_environment, not set_process_environment.
27267 (shut_down_emacs): Call reset_all_sys_modes() instead of
27268 reset_sys_modes().
27269
27270 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
27271 (internal_resolve_face_name, resolve_face_name_error): New functions.
27272 (resolve_face_name): Protect against loops and errors thrown by Fget.
27273 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
27274 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
27275
27276 * scroll.c: Replace CURTTY() with local variables throughout the
27277 file (where applicable).
27278 (calculate_scrolling, calculate_direct_scrolling)
27279 (scrolling_1, scroll_cost): Use the accessor macros for terminal
27280 characteristics.
27281
27282 * keymap.c (Vfunction_key_map): Remove.
27283 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
27284 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
27285 (Vkey_translation_map): Remove.
27286 (syms_of_keymap): Remove DEFVAR for key-translation-map.
27287 (Fdescribe_buffer_bindings)
27288 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
27289 Update for terminal-local key-translation-map.
27290
27291 * Makefile.in (callproc.o): Update dependencies.
27292 (lisp, shortlisp): Add termdev.elc.
27293 (obj): Add terminal.o.
27294 (terminal.o): Add dependencies.
27295 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
27296 (data.o, fns.o): Add termhooks.h dependency.
27297 (SOME_MACHINE_LISP): Add dnd.elc.
27298 (minibuf.o): Fix typo.
27299 Update dependencies.
27300
27301 * data.c (do_symval_forwarding, store_symval_forwarding)
27302 (find_symbol_value): Use the selected frame's keyboard, not
27303 current_kboard.
27304
27305 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
27306 Vwindow_system.
27307
27308 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
27309 Fmenu_bar_open.
27310 (syms_of_xmenu): Update defsubr.
27311 (mouse_position_for_popup, Fx_popup_menu)
27312 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
27313 (set_frame_menubar, free_frame_menubar)
b97439ce 27314 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
27315 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
27316 an X frame.
27317
27318 * xselect.c (x_own_selection): Abort if not an X frame.
27319 (some_frame_on_display): Check if it is an X frame.
27320 (x_handle_selection_clear): Deal with MULTI_KBOARD.
27321
27322 * coding.c: Include frame.h and termhooks.h.
27323 (terminal_coding, keyboard_coding): Delete.
27324 (Fset_terminal_coding_system_internal)
27325 (Fset_keyboard_coding_system_internal)
27326 (Fkeyboard_coding_system)
27327 (Fterminal_coding_system): Add a terminal parameter.
27328 Get terminal_coding from the terminal.
27329 (init_coding_once): Don't call setup_coding_system here.
27330
27331 * dispextern.h (set_scroll_region, turn_off_insert)
27332 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
27333 (tty_clear_end_of_line, tty_setup_colors)
27334 (delete_tty, updating_frame)
27335 (produce_special_glyphs, produce_glyphs, write_glyphs)
27336 (insert_glyphs): Remove.
27337 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
27338 (tty_turn_off_highlight, get_tty_size): Add declaration.
27339 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
27340
27341 * frame.h (enum output_method): Add output_initial.
27342 (struct x_output): Delete.
27343 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
27344 Access foreground_pixel and background_pixel directly from the frame.
27345 (tty_display): Delete.
27346 (struct frame): Add buried_buffer_list, foreground_pixel,
27347 background_pixel and terminal. Delete kboard.
27348 (union output_data): Add tty.
27349 (FRAME_KBOARD): Get the kboard from the terminal.
27350 (FRAME_INITIAL_P): New macro.
27351 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
27352 (Qterm_environment_variable, Qdisplay_environment_variable)
27353 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
27354 New declarations.
27355
27356 * termchar.h (tty_output, tty_display_info): New structures.
27357 (tty_list): Declare.
27358 (FRAME_TTY, CURTTY): New macros.
27359 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
27360 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
27361 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
27362 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
27363
27364 * callproc.c: Include frame.h and termhooks.h, for terminal
27365 parameters.
27366 (add_env): New function.
27367 (child_setup): Use it.
27368 (child_setup, getenv_internal): Handle the new Vprocess_environment.
27369 (getenv_internal): Fix get_terminal_param call.
27370 (Fgetenv_internal, egetenv): Update doc.
27371 (syms_of_callproc): Initialize Vprocess_environment to nil.
27372 Register and initialize them. Remove obsolete defvars. Update doc
27373 strings.
27374 (child_setup): Handle Vlocal_environment_variables.
27375 (getenv_internal): Add terminal parameter.
27376 Handle Vlocal_environment_variables.
27377 (Fgetenv_internal): Add terminal parameter.
27378 (child_setup, getenv_internal, Fgetenv_internal): Store the local
27379 environment in a frame (not terminal) parameter. Update doc strings.
27380 (set_initial_environment): Rename from set_global_environment.
27381 Store Emacs environment in initial frame parameter.
27382
27383 * xdisp.c (redisplay_internal): Update references to
27384 `previous_terminal_frame'.
27385 (display_mode_line, Fformat_mode_line): Replace calls to
27386 `push_frame_kboard' with `push_kboard'.
27387 (get_glyph_string_clip_rects): Add extra parentheses and
27388 braces to prevent compiler warnings.
27389 (calc_pixel_width_or_height): Add xassert to check that the
27390 frame is alive. Don't call `lookup_image' on a termcap frame.
27391 (message2_nolog, message3_nolog, redisplay_internal)
27392 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
27393 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
27394 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
27395 (Fx_display_pixel_width, Fx_display_pixel_height)
27396 (Fx_display_planes, Fx_display_color_cells)
27397 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
27398 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
27399 (Fx_display_backing_store, Fx_display_visual_class)
27400 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
27401 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
27402
27403 * xfns.c (x_set_foreground_color x_set_background_color)
27404 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
27405 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
27406 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
27407 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
27408 terminal that is being deleted.
27409 (Fx_create_frame): Use `store_frame_param' to set `window-system'
27410 frame parameter, and make sure it overrides any user-supplied setting.
27411 (Fx_close_connection, Fx_synchronize): Unify argument names with
27412 the rest of the DEFUNs.
27413
27414 * dispnew.c (Fsend_string_to_terminal): Update call to
27415 `get_tty_terminal'.
27416 (Fredraw_frame, Fsend_string_to_terminal)
27417 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
27418 FRAME_TERMCAP_P and FRAME_TTY.
27419 (window_change_signal): Don't believe width/height values that are
27420 impossibly small.
27421 (Vinitial_window_system): Rename from Vwindow_system.
27422 (termscript, Wcm, rif): Delete.
27423
27424 * termhooks.h (struct terminal): New struct containing the
27425 previously global text display hooks and new members NAME,
27426 DELETED and PARAM_ALIST.
27427 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
27428 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
27429 (FRAME_RIF): New macros.
27430 (get_terminal_param, get_device): New declarations.
27431 (termscript): Delete declaration.
27432
27433 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
27434 (XTflash, x_free_frame_resources, x_scroll_bar_create)
27435 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
27436 FRAME_FOREGROUND_PIXEL.
27437 (x_fully_uncatch_errors): Disable definition.
27438 (x_scroll_bar_expose): Fix reference to foreground pixel.
27439 (XTread_socket): Disable loop on all X displays.
27440 (x_delete_terminal): Don't set terminal->deleted and let
27441 delete_terminal delete the frames on the terminal.
27442 (x_delete_display): Doc update to reflect changes in
27443 delete_terminal.
27444 (x_display_info) <terminal>: Move member earlier in the struct.
27445 (deleting_tty): Remove old variable.
27446 (Fsuspend_tty): Call clear_tty_hooks.
27447 (Fresume_tty, init_tty): Call set_tty_hooks.
27448 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
27449 errors on X frames.
27450 (x_catch_errors_unwind): Abort if x_error_message is NULL.
27451 (handle_one_xevent): Initialize `f' to NULL.
27452 (x_delete_terminal, x_create_terminal): New functions.
27453 (XTset_terminal_modes, XTreset_terminal_modes)
27454 (XTread_socket, x_connection_closed, x_term_init)
27455 (x_term_init, x_delete_display): Add terminal parameter.
27456 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
27457 X connections.
27458
27459 * frame.c: Include termchar.h.
27460 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
27461 (Qwindow_system, Qenvironment, Qterm_environment_variable)
27462 (Qdisplay_environment_variable): New vars.
27463 (Fframep): Deal with output_initial.
27464 (Fframe-live-p): Doc fix.
27465 (Fwindow-system): New function.
27466 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
27467 (make_terminal_frame): Don't create frames on a terminal that is
27468 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
27469 (store_frame_param): Check for found_for_frame before calling XFRAME.
27470 (Fmake_terminal_frame): Handle NULL tty names correctly.
27471 (syms_of_frame): Enhance doc string of `default-frame-alist'.
27472 (Fdelete_frame): Remove unused variable `count'. Don't allow other
27473 frames to refer to a deleted frame in their 'environment parameter.
27474 (Fframe_with_environment): New function.
27475 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
27476 (get_future_frame_param): New function.
27477 (Fmake_terminal_frame): Use it.
27478 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
27479
27480 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
27481 * sysdep.c (reset_sys_modes): Update for renames.
27482
27483 * keyboard.c (tty_read_avail_input): New function.
27484 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
27485 (syms_of_keyboard): Defsubr them.
27486 (Fset_input_meta_mode, Fset_quit_char): New functions.
27487 (Fset_input_mode): Split to above functions.
27488 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
27489 parameter. Use it in call to `read_char'.
27490 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
27491 Set wrong_kboard_jmpbuf correctly in recursive calls.
27492 Use current_kboard to access Vkeyboard_translate_table.
27493 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
27494 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
27495 Update longjmp invocations. Remember the original current_kboard,
27496 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
27497 changes it. Comment out unnecessary calls to
27498 `record_single_kboard_state' and `any_kboard_state'.
27499 Update recursive calls.
27500 (wrong_kboard_jmpbuf): Remove global variable.
27501 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
27502 Handle deleted interrupted_kboards correctly; that is a legal
27503 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
27504 and read_char calls. Abort if interrupted_kboard died in read_char.
27505 (any_kboard_state, single_kboard_state)
27506 (push_frame_kboard): Remove function.
27507 (pop_kboard): Switch out of single_kboard mode if the kboard has
27508 been deleted. Remove unused variable. Help debugging by not
27509 changing current_kboard unnecessarily. Set current_kboard to the
27510 kboard of the selected frame when the stored kboard object has
27511 been deleted before pop_kboard.
27512 (temporarily_switch_to_single_kboard): Change first parameter to a
27513 frame pointer. Throw an error when caller wants to change kboards
27514 while in single_kboard mode. Don't push_kboard if we weren't in
27515 single kboard state. Don't pop_kboard if we popped into any
27516 kboard state.
27517 (restore_kboard_configuration): Abort if pop_kboard changed the
27518 kboard in single_kboard mode. Call pop_kboard only after setting
27519 up single_kboard mode.
27520 (Frecursive_edit): Switch to single_kboard mode only in nested
27521 command loops.
27522 (cmd_error, command_loop, command_loop_1, timer_check):
27523 Comment out unnecessary call to `any_kboard_state' and
27524 `record_single_kboard_state'.
27525 (delete_kboard): Exit single_kboard mode if we have just deleted
27526 that kboard. Use FRAME_KBOARD.
27527 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
27528 `fatal_error_signal'.
27529 (record_single_kboard_state): Don't push_kboard if we weren't in
27530 single kboard state. Don't pop_kboard if we popped into any
27531 kboard state.
27532 (push_frame_kboard): Rename to push_kboard.
27533 (kbd_buffer_get_event): Use FRAME_TERMINAL.
27534 (read_avail_input): Read input from all terminals.
27535 (mark_kboards): Also mark Vkeyboard_translate_table.
27536 (kbd_buffer_store_event_hold): Simplify condition.
27537 (read_key_sequence): Reinitialize fkey and keytran at each replay.
27538 (Vkeyboard_translate_table): Move to struct kboard.
27539 (init_kboard): Initialize Vkeyboard_translate_table.
27540 (syms_of_keyboard): Use DEFVAR_KBOARD to define
27541 Vkeyboard_translate_table. Update doc strings. Update docs of
27542 local-function-key-map and function-key-map.
27543
27544 * terminal.c: New file.
27545
27546 * term.c: Include errno.h.
27547 (Vring_bell_function, device_list, initial_device)
27548 (next_device_id, ring_bell, update_begin, update_end)
27549 (set_terminal_window, cursor_to, raw_cursor_to)
27550 (clear_to_end, clear_frame, clear_end_of_line)
27551 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
27552 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
27553 (syms_of_term): Move their initialization to terminal.c.
27554 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
27555 (Ftty_display_color_cells)
27556 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
27557 (clear_tty_hooks, set_tty_hooks)
27558 (init_tty, maybe_fatal): New functions.
27559 (Ftty_type): Return nil if terminal is not on a tty instead of
27560 throwing an error. Doc update.
27561 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
27562 Doc update. Initialize new subrs and variables.
27563 (delete_tty): Use terminal->deleted.
27564 (tty_set_terminal_modes): Rename from set_terminal_modes.
27565 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
27566 (set_scroll_region): Rename to `tty_set_scroll_region'.
27567 (turn_on_insert): Rename to `tty_turn_on_insert'.
27568 (turn_off_insert): Rename to `tty_turn_off_insert'.
27569 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
27570 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
27571 (toggle_highligh): Rename to `tty_toggle_highlight'.
27572 (background_highlight): Rename to `tty_background_highlight'.
27573 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
27574 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
27575 (tty_set_scroll_region, tty_background_highlight)
27576 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
27577 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
27578 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
27579 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
27580 Add static modifier.
27581 (tty_reset_terminal_modes, tty_set_terminal_window)
27582 (tty_set_scroll_region, tty_background_highlight)
27583 (tty_highlight_if_desired, tty_cursor_to)
27584 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
27585 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
27586 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
27587 renames.
27588
275892007-08-28 Jan Djärv <jan.h.d@swipnet.se>
27590
27591 * keyboard.c: Qrtl is new.
27592 (parse_tool_bar_item): Handle :rtl keyword.
27593 (syms_of_keyboard): Intern :rtl keyword.
27594
27595 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
27596
27597 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
27598 so no Lisp code is executed.
27599 (file_for_image, find_rtl_image): New functions.
27600 (xg_get_image_for_pixmap): Use file_for_image.
27601 (update_frame_tool_bar): If direction is RTL, use RTL image if
27602 defined. Use Gtk stock images if defined.
27603
276042007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27605
27606 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
27607 for nonexistent or zero-width glyph in composition glyph.
27608
276092007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
27610
27611 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
27612
27613 * xdisp.c (Finvisible_p): New function.
27614 (syms_of_xdisp): defsubr it.
27615
276162007-08-24 Juanma Barranquero <lekktu@gmail.com>
27617
27618 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
27619 Doc fixes.
27620
276212007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27622
27623 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
27624
276252007-08-24 Martin Rudalics <rudalics@gmx.at>
27626
27627 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
27628 whether decoding has modified buffer contents.
27629
276302007-08-24 Jason Rumney <jasonr@gnu.org>
27631
27632 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
27633 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
27634 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
27635 (init_svg_functions) [HAVE_NTGUI]: New function.
27636 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
27637 (svg_load_image): Use them.
27638 (svg_load_image) [HAVE_NTGUI]: Implement background.
27639
276402007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27641
27642 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
27643 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
27644 (LIBX): Remove @RSVG_LIBS@.
27645 (LIBES): Add $(RSVG_LIBS).
27646
27647 * image.c (svg_load_image): Blend with specified background if exists.
27648 Use IMAGE_BACKGROUND. Add Mac OS Support.
27649
27650 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
27651 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
27652 Remove macros.
27653 [MAC_OSX] (socket_callback): Do nothing.
27654 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
27655 ReceiveNextEvent.
27656 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
27657 socket_callback.
27658 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
27659
276602007-08-22 Glenn Morris <rgm@gnu.org>
27661
27662 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
27663
276642007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
27665
27666 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
27667
27668 * image.c: Add support for SVG images. Some additional comments
27669 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
27670 (svg_image_p): New function to test for SVG image.
27671 (svg_load): New function to load SVG image.
27672 (svg_load_image): New function, helper for svg_load.
27673 (Qsvg): New Lisp_object.
27674 (svg_keyword_index): New enum.
27675 (svg_format): New static `image_keyword' struct.
27676 (svg_type): New static `image_type' struct.
27677 (librsvg/rsvg.h): Include it.
27678
276792007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
27680
27681 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
27682
276832007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
27684
27685 * lread.c (Qold_style_backquotes): New var.
27686 (syms_of_lread): Init and staticpro it.
27687 (load_warn_old_style_backquotes): New fun.
27688 (Fload): Use them to warn about old style backquotes.
27689 (end_of_file_error, Fload): Remove unused vars.
27690
27691 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
27692
27693 * lread.c (Vold_style_backquotes): New var.
27694 (syms_of_lread): Init and export it to Elisp.
27695 (read1): Set it when we find an old-style (back)quote.
27696
276972007-08-22 Jason Rumney <jasonr@gnu.org>
27698
27699 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
27700
277012007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
27702
27703 * puresize.h (BASE_PURESIZE): Increase to 1140000.
27704
277052007-08-19 Richard Stallman <rms@gnu.org>
27706
27707 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
27708
277092007-08-19 Andreas Schwab <schwab@suse.de>
27710
27711 * alloc.c (pure): Round PURESIZE up.
27712
277132007-08-17 Jan Djärv <jan.h.d@swipnet.se>
27714
27715 * xterm.c (handle_one_xevent): Remove check that mouse click is in
27716 active frame.
27717
277182007-08-16 Richard Stallman <rms@gnu.org>
27719
27720 * eval.c (Fcommandp): Add parens to clarify.
27721
27722 * minibuf.c (Fall_completions): Use enum for type of table.
27723
27724 * emacs.c (USAGE2): Improve text.
27725
277262007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
27727
27728 * term.c (tty_default_color_capabilities): Declare static
27729 variables in file scope, to avoid HPUX compiler problem.
27730
277312007-08-13 Jan Djärv <jan.h.d@swipnet.se>
27732
27733 * gtkutil.c (update_frame_tool_bar): Use -1 as index
27734 to gtk_toolbar_insert.
27735
277362007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
27737
27738 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
27739
27740 * insdel.c (reset_var_on_error): New fun.
27741 (signal_before_change, signal_after_change):
27742 Use it to reset (after|before)-change-functions to nil in case of error.
27743 Bind inhibit-modification-hooks to t.
27744 Don't bind (after|before)-change-functions to nil while they run.
27745
277462007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27747
27748 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
27749 filling pixmap with stippled background.
27750
277512007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27752
27753 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
27754 Don't use invisible frame as parent window for repositioning.
27755
277562007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
27757
27758 * print.c (new_backquote_output): Rename from old_backquote_output.
27759 (print): Inverse its logic (according to its name) so as to match the
27760 behavior of new_backquote_flag in lread.c.
27761
277622007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27763
27764 * gmalloc.c (posix_memalign): New function.
27765
27766 * macterm.c (frame_highlight, frame_unhighlight): Don't call
27767 ActivateControl/DeactivateControl here.
27768 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
27769 frame-notice-user-settings is non-nil.
27770 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
27771 for kEventParamFMFontStyle.
27772 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
27773 mac_pass_command_to_system and mac_pass_control_to_system here.
27774 (XTread_socket): Call ActivateControl/DeactivateControl here.
27775 (XTread_socket) [TARGET_API_MAC_CARBON]:
27776 Check mac_pass_command_to_system and mac_pass_control_to_system here.
27777 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
27778 for window repositioning.
27779
277802007-08-08 Glenn Morris <rgm@gnu.org>
27781
27782 * Replace `iff' in doc-strings and comments.
27783
277842007-08-07 Chong Yidong <cyd@stupidchicken.com>
27785
27786 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
27787
277882007-08-07 Martin Rudalics <rudalics@gmx.at>
27789
27790 * fileio.c (Finsert_file_contents): Run format-decode and
27791 after_insert_file_functions on entire buffer when REPLACE is
27792 non-nil and inhibit modification_hooks and point_motion_hooks.
27793 For consistency, run after_insert_file_functions iff something
27794 got inserted. Move signal_after_change and update_compositions
27795 after code running after_insert_file_functions. Make sure that
27796 undo_list doesn't record intermediate steps of the decoding process.
27797
277982007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27799
27800 * emacs.c (main)
27801 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
27802 Call malloc_enable_thread on interactive startup.
27803
27804 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
27805 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
27806 [USE_PTHREAD]: Conditionalize with it.
27807 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
27808 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
27809 New functions.
27810
278112007-08-06 Chong Yidong <cyd@stupidchicken.com>
27812
27813 * xdisp.c (redisplay_window): When restoring original buffer
27814 position, make sure it is still valid.
27815
27816 * image.c (png_load): Ignore png-supplied background color.
27817
278182007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27819
27820 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
27821 Use kCFAbsoluteTimeIntervalSince1970.
27822
27823 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
27824 New variable.
27825 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
27826 event loop should be quit.
27827 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
27828 Quit dialog event loop if quit_dialog_event_loop is set.
27829
27830 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
27831 (Selection): New typedef. Use instead of ScrapRef.
27832 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
27833 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
27834 (mac_clear_selection): Rename from clear_scrap.
27835 (get_flavor_type_from_symbol): New argument SEL and subsume function of
27836 scrap_has_target_type. All uses changed.
27837 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
27838 (mac_selection_has_target_p): New functions.
27839 (mac_put_selection_value): Rename from put_scrap_string.
27840 (mac_get_selection_value): Rename from get_scrap_string.
27841 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
27842 (put_scrap_private_timestamp, scrap_has_target_type)
27843 (get_scrap_private_timestamp): Remove functions.
27844 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
27845 (x_own_selection, x_get_local_selection):
27846 Use mac_valid_selection_value_p.
27847 (x_own_selection): Don't use put_scrap_private_timestamp.
27848 Record OWNERSHIP-INFO into Vselection_alist instead.
27849 (x_get_local_selection): Don't check type if request is local.
27850 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
27851 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
27852
278532007-08-04 Jan Djärv <jan.h.d@swipnet.se>
27854
27855 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
27856 add comment explaining why.
27857
278582007-08-03 Richard Stallman <rms@gnu.org>
27859
27860 * fileio.c (Fvisited_file_modtime): Use make_time.
27861
278622007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
27863
27864 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
27865 build.
27866
278672007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
27868
27869 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
27870
278712007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
27872
27873 * puresize.h (BASE_PURESIZE): Increase to 1130000.
27874
278752007-07-30 Richard Stallman <rms@gnu.org>
27876
27877 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
27878
278792007-07-29 Jan Djärv <jan.h.d@swipnet.se>
27880
27881 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
27882
278832007-07-28 Nick Roberts <nickrob@snap.net.nz>
27884
27885 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
27886 remote default-directory.
27887
27888 * buffer.c (mode-line-format): Update doc string.
27889
278902007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27891
27892 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
27893 scroll bar gap.
27894 (x_scroll_bar_create): Set bar->fringe_extended_p.
27895 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
27896 on frame edge. Check fringe background extension. Don't clear
27897 extended fringe background area.
27898
27899 * w32term.h (struct scroll_bar): New member fringe_extended_p.
27900 (w32_fill_area): Enclose multiple statements with do ... while (0).
27901
27902 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
27903 Extend fringe background to scroll bar gap.
27904 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
27905 Set bar->fringe_extended_p.
27906 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
27907 Put leftmost/rightmost scroll bars on frame edge. Check fringe
27908 background extension. Don't clear extended fringe background area.
27909
27910 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
27911 New member fringe_extended_p.
27912
279132007-07-25 Glenn Morris <rgm@gnu.org>
27914
27915 * Relicense all FSF files to GPLv3 or later.
27916
27917 * COPYING: Switch to GPLv3.
27918
279192007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
27920
27921 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
27922
27923 * data.c (Finteractive_form): Check for the presence of an
27924 `interactive-form' symbol property more thoroughly.
27925
27926 * data.c (Finteractive_form): Use an `interactive-form' property if
27927 present, analogous to the function-documentation property.
27928
279292007-07-24 Jason Rumney <jasonr@gnu.org>
27930
27931 * w32fns.c (x_real_positions): Get real position from OS instead of
27932 calculating it.
27933
279342007-07-23 Jason Rumney <jasonr@gnu.org>
27935
27936 * filelock.c (current_lock_owner): Allow for @ sign in username.
27937
279382007-07-22 Nick Roberts <nickrob@snap.net.nz>
27939
27940 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
27941 remote default-directory.
27942
27943 * buffer.c (mode-line-format): Describe above case in doc string.
27944
279452007-07-20 Eli Zaretskii <eliz@gnu.org>
27946
27947 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
27948 Define if not defined.
27949
279502007-07-18 Jason Rumney <jasonr@gnu.org>
27951
27952 * w32proc.c (w32_executable_type): Handle 64 bit executables.
27953
279542007-07-18 Richard Stallman <rms@gnu.org>
27955
27956 * data.c (Fsetq_default): Doc fix.
27957
27958 * eval.c (Fsetq): Doc fix.
27959
279602007-07-18 Juanma Barranquero <lekktu@gmail.com>
27961
27962 * coding.c (Ffind_operation_coding_system):
27963 * eval.c (For, Fand): Doc fixes.
27964 Reported by Johan Bockgård.
27965
279662007-07-18 Jan Djärv <jan.h.d@swipnet.se>
27967
27968 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
27969
27970 * xterm.h: Declare x_ewmh_activate_frame.
27971
27972 * xterm.c (x_ewmh_activate_frame): New function.
27973 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
27974
279752007-07-17 Martin Rudalics <rudalics@gmx.at>
27976
27977 * window.c (Fdisplay_buffer): If largest or LRU window is the
27978 only window, split it even if it is not eligible for splitting.
27979 This restores the original behavior broken by the 2007-07-15
27980 change.
27981
279822007-07-17 Glenn Morris <rgm@gnu.org>
27983
27984 * abbrev.c (abbrev_check_chars): New function.
27985 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
27986 Call abbrev_check_chars to check abbrev characters are word
27987 constituents. Doc fix.
27988
279892007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
27990
27991 * process.c (Fstart_process, Fmake_network_process)
27992 (read_process_output): Fix up last changes.
27993
279942007-07-16 Eli Zaretskii <eliz@gnu.org>
27995
27996 * makefile.w32-in (clean): Don't delete *~.
27997
279982007-07-16 Andreas Schwab <schwab@suse.de>
27999
28000 * window.c (Fdisplay_buffer): Use NILP.
28001 (Fset_window_scroll_bars): Likewise.
28002
280032007-07-15 Martin Rudalics <rudalics@gmx.at>
28004
28005 * window.c (window_min_size_2): New function.
28006 (window_min_size_1, size_window, Fdisplay_buffer)
28007 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
28008 windows without mode- or header-lines when window-min-height is
28009 too small.
28010 (size_window): Reset nodelete_p after testing it, following an
28011 earlier note by Kim F. Storm.
28012 (display_buffer): Do not set split_height_threshold to twice the
28013 value of window_min_height to avoid changing the value of a
28014 customizable variable. Rather explicitly check whether the
28015 height of the window that shall be splitted is at least as large
28016 as split_height_threshold.
28017 (Fwindow_full_width_p): New defun.
28018 (syms_of_window): Defsubr it.
28019
28020 * window.h: Add EXFUN for Fwindow_full_width_p.
28021
280222007-07-14 Jason Rumney <jasonr@gnu.org>
28023
28024 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
28025
280262007-07-14 Richard Stallman <rms@gnu.org>
28027
28028 * eval.c (maybe_call_debugger): New function.
28029 (find_handler_clause): Use maybe_call_debugger.
28030 Call it when the handler says `debug'.
28031 Eliminate DEBUGGER_VALUE_PTR.
28032 (Fsignal): Eliminate debugger_value.
28033 (Qdebug): New variable.
28034 (syms_of_eval): Initialize it.
28035
280362007-07-14 Juanma Barranquero <lekktu@gmail.com>
28037
28038 * eval.c (Fprogn):
28039 * keyboard.c (Ftrack_mouse):
28040 * print.c (Fwith_output_to_temp_buffer):
28041 * window.c (Fsave_window_excursion): Doc fix.
28042
280432007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
28044
28045 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
28046
280472007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
28048
28049 * process.h (struct Lisp_Process): Turn slots infd, outfd,
28050 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
28051 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
28052 read_output_delay, and read_output_skip from Lisp_Objects to ints.
28053 Remove unused encoding_carryover.
28054 * process.c: Adjust all functions accordingly.
28055
280562007-07-12 Richard Stallman <rms@gnu.org>
28057
28058 * term.c: Include unistd.h only if HAVE_UNISTD_H.
28059
280602007-07-11 Jason Rumney <jasonr@gnu.org>
28061
28062 * makefile.w32-in (LIBS): Include OLE32.
28063
28064 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
28065 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
28066
280672007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
28068
28069 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
28070 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
28071 from a Lisp_Object into a bare pointer.
28072 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
28073 Adjust the code correspondingly.
28074
28075 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
28076
28077 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
28078 (term_show_mouse_face): Remove unused var `j'.
28079 (handle_one_term_event): Remove unused vars `i' and `j'.
28080 Don't cast return value of ttyname since it's not necessary.
28081
280822007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
28083
28084 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
28085 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
28086
28087 * fns.c (map_char_table): Use an array of int for `indices' rather than
28088 an array of Lisp_Objects (which are only ever integers anyway).
28089 (Fmap_char_table): Update caller.
28090 * lisp.h: Update prototype.
28091 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
28092 * fontset.c (Ffontset_info):
28093 * casetab.c (set_case_table): Update callers.
28094
28095 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
28096
28097 * keymap.c (struct accessible_keymaps_data)
28098 (struct where_is_internal_data): New structures.
28099 (accessible_keymaps_1, where_is_internal_1): Use them to change
28100 interface to adhere to the one used by map_keymap.
28101 (Faccessible_keymaps, where_is_internal): Use map_keymap.
28102 (accessible_keymaps_char_table, where_is_internal_2): Remove.
28103
28104 * keymap.h (map_keymap_function_t): More informative prototype.
28105
281062007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
28107
28108 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
28109 (looking_at_1): Don't change search_regs and last_thing_searched
28110 if `inhibit-changing-match-data' is non-nil.
28111 (string_match_1, search_buffer, set_search_regs): Likewise.
28112 (syms_of_search): Add Lisp level definition for
28113 `inhibit-changing-match-data' and set it to nil.
28114 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
28115 start and end of the match, instead of using values in search_regs.
28116
281172007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
28118
28119 * minibuf.c (Fcompleting_read): New value `confirm-only'
28120 for `require-match'.
28121
281222007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
28123
28124 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
28125 part of the 2007-06-27 change to syms_of_fileio.
28126
281272007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28128
28129 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
28130 Check WINDOWP before using XWINDOW. Consolidate return statements.
28131
281322007-06-27 Richard Stallman <rms@gnu.org>
28133
28134 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
28135
281362007-06-27 Juanma Barranquero <lekktu@gmail.com>
28137
28138 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
28139
281402007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28141
28142 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
28143 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
28144 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
28145 (_free_internal, memalign): Use them.
28146 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
28147 Initialize to PTHREAD_MUTEX_INITIALIZER.
28148 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
28149 (morecore_nolock): Rename from morecore. All uses changed.
28150 Use only nolock versions of internal allocation functions.
28151 (_malloc_internal_nolock, _realloc_internal_nolock)
28152 (_free_internal_nolock): New functions created from
28153 _malloc_internal, _realloc_internal, and _free_internal.
28154 (_malloc_internal, _realloc_internal, _free_internal): Use them.
28155 Copy hook value to automatic variable before its use.
28156 (memalign): Copy hook value to automatic variable before its use.
28157
281582007-06-26 Kenichi Handa <handa@m17n.org>
28159
28160 * coding.c (Ffind_operation_coding_system): Docstring improved.
28161 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
28162
281632007-06-25 David Kastrup <dak@gnu.org>
28164
28165 * keymap.c (Fcurrent_active_maps): Add `position' argument.
28166 (Fwhere_is_internal): Adjust call to `current-active-maps' to
28167 cater for additional parameter.
28168
28169 * keymap.h: Adjust number of parameters to `current-active-maps'.
28170
28171 * doc.c (Fsubstitute_command_keys): Adjust call of
28172 `current-active-maps'.
28173
281742007-06-25 David Kastrup <dak@gnu.org>
28175
28176 * callint.c (Fcall_interactively): Make the parsing of interactive
28177 specs somewhat more readable.
28178
281792007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28180
28181 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
28182 to scroll bar gap also when bitmap fills fringe. Draw only foreground
28183 if extended background has already been filled.
28184
281852007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28186
28187 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
28188 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
28189
28190 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
28191 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
28192 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
28193 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
28194 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
28195 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
28196 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
28197 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
28198 Run timers during dialog popup.
28199 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
28200
282012007-06-21 Jason Rumney <jasonr@gnu.org>
28202
28203 * image.c (convert_mono_to_color_image): Swap fore and background.
28204
282052007-06-20 Jason Rumney <jasonr@gnu.org>
28206
28207 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
28208 (w32_free_bdf_font): Unmap memory not handle.
28209
282102007-06-20 Sam Steingold <sds@gnu.org>
28211
28212 * gmalloc.c (__morecore): Fix the declaration to comply with the
28213 definition.
28214
282152007-06-20 Juanma Barranquero <lekktu@gmail.com>
28216
28217 * w32term.c (w32_delete_display): Remove leftover declaration.
28218 (w32_define_cursor, w32_initialize): Make static.
28219
28220 * w32.c (_wsa_errlist): Fix typo in error message.
28221 (init_environment): Ignore any environment variable from the
28222 registry having a null value.
28223
282242007-06-20 Glenn Morris <rgm@gnu.org>
28225
28226 * Makefile.in (LIBGIF): Default to -lgif.
28227
282282007-06-17 Jason Rumney <jasonr@gnu.org>
28229
28230 * w32menu.c (add_menu_item): Don't use multibyte string functions on
28231 unicode strings.
28232
282332007-06-16 Juanma Barranquero <lekktu@gmail.com>
28234
28235 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
28236 Fix typo in docstring.
28237
282382007-06-16 Eli Zaretskii <eliz@gnu.org>
28239
28240 * w32menu.c (add_menu_item): Escape `&' characters in menu items
28241 and their keybindings.
28242
282432007-06-15 Chong Yidong <cyd@stupidchicken.com>
28244
28245 * composite.c (update_compositions): Fix last fix.
28246
282472007-06-14 Jason Rumney <jasonr@gnu.org>
28248
28249 * w32.c (get_process_times_fn): New function pointer.
28250 (globals_of_w32): Intialize it if present in kernel32.dll.
28251 (w32_get_internal_run_time): New function.
28252
28253 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
28254
282552007-06-14 Kenichi Handa <handa@etlken.m17n.org>
28256
28257 * composite.c (update_compositions): Check the validness of
28258 compositions.
28259
282602007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28261
28262 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
28263 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
28264
28265 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
28266 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
28267
28268 * macgui.h (USE_MAC_TOOLBAR): New define.
28269
28270 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
28271 Return immediately unless popup is activated.
28272
28273 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
28274 background to scroll bar gap.
28275 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
28276 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
28277 scroll bars on frame edge. Check fringe background extension.
28278 Don't clear extended fringe background area.
28279 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
28280 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
28281 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
28282 [USE_MAC_TOOLBAR]: New macros.
28283 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
28284 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
28285 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
28286 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
28287 [USE_MAC_TOOLBAR]: New functions.
28288 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
28289 manually if previous repositioning has failed.
28290 (mac_handle_keyboard_event): Use precomputed event kind.
28291 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
28292 as tool bar item click. Handle mouse movement over tool bar items.
28293
28294 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
28295 toolbar_win_gravity.
28296 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
28297 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
28298 Add externs.
28299
28300 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
28301 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
28302
283032007-06-14 Chong Yidong <cyd@stupidchicken.com>
28304
28305 * image.c (search_image_cache): Remove unused variable.
28306
283072007-06-13 Chong Yidong <cyd@stupidchicken.com>
28308
28309 * xfns.c, xmenu.c: Link to xaw3d if available.
28310
283112007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28312
28313 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
28314 frame_foreground and frame_background.
28315
28316 * image.c (lookup_image): Save frame foreground and background colors.
28317 (search_image_cache): Check if saved and current frame colors match.
28318
283192007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
28320
28321 * regex.c (regex_compile): Remove the `regnum' counter.
28322 Use bufp->re_nsub instead. Add support for \(?N:RE\).
28323
283242007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
28325
28326 * term.c: Include intervals.h to declare Fget_text_property.
28327
283282007-06-10 Jason Rumney <jasonr@gnu.org>
28329
28330 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
28331
283322007-06-08 Juanma Barranquero <lekktu@gmail.com>
28333
28334 * callint.c (Fcall_interactively):
28335 * editfns.c (Fdelete_and_extract_region):
28336 * fileio.c (Fread_file_name):
28337 * fns.c (Fmapconcat):
28338 * keyboard.c (cmd_error_internal):
28339 * keymap.c (Fkey_description):
28340 * lread.c (openp):
28341 * minibuf.c (read_minibuf):
28342 * search.c (wordify):
28343 * sunfns.c (sel_read):
28344 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
28345 * xfns.c (x_default_scroll_bar_color_parameter):
28346 * xmenu.c (menu_help_callback):
28347 * xselect.c (Fx_get_atom_name):
28348 * xterm.c (x_term_init): Use empty_unibyte_string.
28349
283502007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
28351
28352 * alloc.c (init_strings): Initialize canonical empty strings.
28353 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
28354 canonical empty string when the requested size is 0.
28355
28356 * emacs.c (empty_unibyte_string): Rename from empty_string.
28357 (empty_multibyte_string): New canonical empty string.
28358 (syms_of_emacs): Don't initialize empty_string.
28359
28360 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
28361 string, if appropriate.
28362 (empty_unibyte_string, empty_multibyte_string): New externs.
28363 (empty_string): Remove extern.
28364
28365 * lread.c (syms_of_lread): Use empty_unibyte_string.
28366
283672007-06-07 Jason Rumney <jasonr@gnu.org>
28368
28369 * s/ms-w32.h: Don't define HAVE_TZNAME.
28370
28371 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
28372
283732007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28374
28375 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
28376
28377 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
28378 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
28379
28380 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
28381 Don't call next handler.
28382 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
28383 Remove argument. Install handler to application.
28384 (set_frame_menubar): Don't change deep_p.
28385 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
28386 FRAME_OUTER_TO_INNER_DIFF_Y.
28387 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
28388 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
28389 [HAVE_DIALOGS]: New macros.
28390 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
28391 Use them.
28392 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
28393
28394 * macselect.c [MAC_OSX] (install_service_handler): Rename from
28395 init_service_handler. All callers changed. Return OSStatus value.
28396
28397 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
28398 All callers changed so as not to call SetPortWindowPort.
28399 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
28400 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
28401 mac_draw_string_common.
28402 (mac_draw_image_string_qd): Likewise.
28403 (mac_draw_string_common): Use them. Add INLINE.
28404 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
28405 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
28406 GetGlobalMouse.
28407 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
28408 and FRAME_OUTER_TO_INNER_DIFF_Y.
28409 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
28410 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
28411 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
28412 repositioning window to mac_handle_window_event.
28413 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
28414 saving window location to mac_handle_window_event
28415 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
28416 (install_menu_target_item_handler): Remove argument in extern.
28417 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
28418 Also accept command events.
28419 (do_keystroke): New function created from XTread_socket.
28420 (init_command_handler): Remove functions.
28421 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
28422 and save window location by kEventWindowShowing and kEventWindowHiding
28423 handlers here. Don't call next handler for window state change and
28424 focus events.
28425 (mac_handle_application_event, mac_handle_keyboard_event)
28426 [TARGET_API_MAC_CARBON]: New functions.
28427 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
28428 kEventWindowShowing and kEventWindowHiding events. Move installation
28429 of mouse, font, text input and menu target item handlers to
28430 install_application_handler.
28431 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
28432 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
28433 New function.
28434 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
28435 Register it.
28436 (XTread_socket) [TARGET_API_MAC_CARBON]:
28437 Consolidate SendEventToEventTarget calls.
28438 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
28439 Move application activation handler to mac_handle_application_event.
28440 Move keyboard handler to mac_handle_keyboard_event.
28441 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
28442 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
28443 init_command_handler. Call install_application_handler.
28444
28445 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
28446 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
28447
284482007-06-07 Glenn Morris <rgm@gnu.org>
28449
28450 * emacs.c (main): Use `emacs-copyright' in --version output.
28451
284522007-06-06 Chong Yidong <cyd@stupidchicken.com>
28453
28454 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
28455
284562007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28457
28458 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
28459
28460 * macgui.h: Replace WindowPtr with WindowRef.
28461
28462 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
28463 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
28464 Replace ControlHandle with ControlRef.
28465 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
28466
28467 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
28468 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
28469 Replace ControlHandle with ControlRef.
28470 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
28471 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
28472
28473 * macterm.h (struct scroll_bar): Rename member control_handle_low
28474 and control_handle_high to control_ref_low and control_ref_high.
28475 All uses changed.
28476 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
28477 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
28478 respectively. All uses changed.
28479 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
28480 (install_window_handler, remove_window_handler): Replace WindowPtr
28481 with WindowRef in externs.
28482
284832007-06-05 Juanma Barranquero <lekktu@gmail.com>
28484
28485 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
28486
284872007-06-03 Nick Roberts <nickrob@snap.net.nz>
28488
28489 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
28490
28491 * frame.c (Fmouse_position, Fmouse_pixel_position):
28492 Condition on HAVE_GPM too.
28493
28494 * term.c (term_mouse_highlight): Remove unused variables.
28495 (Fterm_open_connection): Set gpm_zerobased to 1.
28496 (term_mouse_movement, term_mouse_click, handle_one_term_event):
28497 Use zero based co-ordinates.
28498 (handle_one_term_event): Report a drag as mouse movement too.
28499
28500 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
28501
285022007-06-03 Chong Yidong <cyd@stupidchicken.com>
28503
28504 * image.c (search_image_cache): New function. Require background
28505 color match if background color is unspecified in the image spec.
28506 (uncache_image, lookup_image): Use it.
28507
285082007-06-01 Juanma Barranquero <lekktu@gmail.com>
28509
28510 * window.c (Fshrink_window): Reflow docstring.
28511
285122007-06-02 Chong Yidong <cyd@stupidchicken.com>
28513
28514 * Version 22.1 released.
28515
285162007-06-01 Richard Stallman <rms@gnu.org>
28517
28518 * xfns.c (x_encode_text): Add GCPRO.
28519
285202007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28521
28522 * xfns.c (x_set_name_internal): Save encoded name before
28523 x_encode_text in case string data is relocated.
28524
285252007-05-31 Richard Stallman <rms@gnu.org>
28526
28527 * buffer.c (syms_of_buffer): Doc fix.
28528
285292007-05-30 Nick Roberts <nickrob@snap.net.nz>
28530
28531 * sysdep.c (init_sys_modes): Add rather than replace with
28532 O_NONBLOCK.
28533
28534 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
28535 term_mouse_moveto.
28536
28537 * termhooks.h (term_mouse_moveto): New extern.
28538
28539 * term.c (mouse_face_window): Rename...
28540 (Qmouse_face_window): ...to this.
28541 (term_show_mouse_face, term_clear_mouse_face)
28542 (term_mouse_highlight): Use Qmouse_face_window.
28543 (term_mouse_moveto): New function.
28544 (term_mouse_position): Make it work.
28545 (syms_of_term): Uncomment assignment to mouse_position_hook.
28546 Staticpro Qmouse_face_window.
28547
285482007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28549
28550 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
28551 around current_column call.
28552
285532007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
28554
28555 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
28556 * xdisp.c (next_element_from_buffer):
28557 * window.c (delete_window):
28558 * term.c (term_mouse_highlight):
28559 * msdos.c (getdefdir):
28560 * macterm.c (mac_create_bitmap_from_bitmap_data)
28561 (init_font_name_table):
28562 * fns.c (Fsxhash):
28563 * data.c (Fmake_local_variable):
28564 * ccl.c (ccl_driver): Likewise.
28565
285662007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28567
28568 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
28569 Call mac_wakeup_from_rne on window size change.
28570
285712007-05-25 Chong Yidong <cyd@stupidchicken.com>
28572
28573 * image.c (uncache_image): Fix typo.
28574
285752007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
28576
28577 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
28578
285792007-05-22 Richard Stallman <rms@gnu.org>
28580
28581 * xterm.c (x_connection_closed): Remove NO_RETURN.
28582
285832007-05-22 Martin Rudalics <rudalics@gmx.at>
28584
28585 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
28586
285872007-05-21 Chong Yidong <cyd@stupidchicken.com>
28588
28589 * image.c (uncache_image): New function.
28590 (Fimage_refresh): New function.
28591
285922007-05-20 Jan Djärv <jan.h.d@swipnet.se>
28593
28594 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
28595
285962007-05-20 Nick Roberts <nickrob@snap.net.nz>
28597
28598 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
28599 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
28600
286012007-05-20 Nick Roberts <nickrob@snap.net.nz>
28602
28603 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
28604 conditional on [HAVE_GPM_H].
28605
286062007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
28607
28608 * syntax.c (skip_chars): Update syntax-table only after we checked that
28609 the new location is valid.
28610
286112007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28612
28613 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
28614 mac_get_window_bounds.
28615
286162007-05-20 Nick Roberts <nickrob@snap.net.nz>
28617
28618 * Makefile.in (LIBGPM): Allow it to be set from configure.
28619 If set then link Emacs with it.
28620
28621 * config.in: Regenerate.
28622
28623 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
28624 New externs.
28625
28626 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
28627 Include gpm.h.
28628 (handle_one_term_event, term_gpm): New externs.
28629
28630 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
28631 and allow it to be interrupted by SIGIO.
28632
28633 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
28634 (wait_reading_process_output): Wait on gpm_fd too.
28635 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
28636 (add_gpm_wait_descriptor_called_flag): New variable.
28637 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
28638
28639 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
28640 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
28641 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
28642 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
28643 (make_lispy_event): Add case GPM_CLICK_EVENT.
28644 (read_avail_input): Handle mouse input.
28645
28646 * term.c (write_glyphs_with_face): New function.
28647 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
28648 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
28649 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
28650 (mouse_face_face_id, term_gpm, pos_x, pos_y)
28651 (last_mouse_x, last_mouse_y): New variables.
28652 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
28653 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
28654 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
28655 (Fterm_close_connection): New functions.
28656 (term_init): Initialise mouse_face_window.
28657
286582007-05-19 Chong Yidong <cyd@stupidchicken.com>
28659
28660 * xdisp.c (redisplay_window): If first window line is a
28661 continuation line, recompute the new window start instead of
28662 recentering.
28663
286642007-05-18 Glenn Morris <rgm@gnu.org>
28665
28666 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
28667 Suggested by Alfred M. Szmidt <ams@gnu.org>.
28668
286692007-05-17 Glenn Morris <rgm@gnu.org>
28670
28671 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
28672
286732007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28674
28675 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
28676 dead key repeat and up events.
28677
286782007-05-14 Chong Yidong <cyd@stupidchicken.com>
28679
28680 * image.c (pbm_load): Check image size for monochrome pbm.
28681
286822007-05-13 Chong Yidong <cyd@stupidchicken.com>
28683
28684 * xterm.c (XTread_socket): Revert last change.
28685
286862007-05-12 Chong Yidong <cyd@stupidchicken.com>
28687
28688 * image.c (pbm_load): Correctly check image size for greyscale pbm.
28689
28690 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
28691
286922007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
28693
28694 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
28695 mixup (YAILOM).
28696
286972007-05-07 Andreas Schwab <schwab@suse.de>
28698
28699 * keymap.c (Flookup_key): Fix typo in last change.
28700
287012007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
28702
28703 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
28704 mapping for unibyte strings.
28705
287062007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28707
28708 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
28709 (Fx_popup_dialog) [MAC_OSX]: Likewise.
28710
287112007-04-29 Richard Stallman <rms@gnu.org>
28712
28713 * insdel.c (replace_range): For undo, record insertion first.
28714
287152007-04-29 Andreas Schwab <schwab@suse.de>
28716
28717 * lisp.h (VECSIZE): Use OFFSETOF.
28718
287192007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28720
28721 * xdisp.c (try_window_reusing_current_matrix): Fix number of
28722 disabled lines.
28723
287242007-04-28 Richard Stallman <rms@gnu.org>
28725
28726 * lread.c (read_escape): In a string, \s is always space.
28727
287282007-04-27 Jan Djärv <jan.h.d@swipnet.se>
28729
28730 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
28731
28732 * gtkutil.c (xg_update_menubar, create_menus): Create empty
28733 submenu for menu bar items.
28734
28735See ChangeLog.10 for earlier changes.
28736
28737;; Local Variables:
28738;; coding: utf-8
aac0c6e3
MR
28739;; End:
28740
f3d87560
GM
28741 Copyright (C) 2007, 2008, 2009, 2010
28742 Free Software Foundation, Inc.
aac0c6e3
MR
28743
28744 This file is part of GNU Emacs.
28745
28746 GNU Emacs is free software: you can redistribute it and/or modify
28747 it under the terms of the GNU General Public License as published by
28748 the Free Software Foundation, either version 3 of the License, or
28749 (at your option) any later version.
28750
28751 GNU Emacs is distributed in the hope that it will be useful,
28752 but WITHOUT ANY WARRANTY; without even the implied warranty of
28753 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28754 GNU General Public License for more details.
28755
28756 You should have received a copy of the GNU General Public License
28757 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
28758