* src/window.c (Fwindow_use_time): New function.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
a048073e
MR
12010-11-13 Martin Rudalics <rudalics@gmx.at>
2
3 * window.c (Fwindow_use_time): New function.
4
0eb025fb
EZ
52010-11-13 Eli Zaretskii <eliz@gnu.org>
6
7 * xdisp.c (set_cursor_from_row): Fix cursor positioning on
8 zero-width characters.
9
10 * .gdbinit (pgx): Adapt to latest changes in `struct glyph'.
11
12 * w32term.c (x_draw_glyphless_glyph_string_foreground): Draw the
13 box before drawing the glyphs inside it.
14
15 * xdisp.c (syms_of_xdisp) <glyphless-char-display>: Doc fix.
16
17 * dispextern.h (enum glyphless_display_method): Rename
18 GLYPHLESS_DISPLAY_HEXA_CODE to GLYPHLESS_DISPLAY_HEX_CODE. All
19 users changed.
20
21 * term.c (append_glyphless_glyph, produce_glyphless_glyph): Fix
22 comments.
23 (produce_glyphless_glyph): Enclose "U+nnnn" and "empty box"
24 whitespace in "[]", to simulate a box. Don't use uninitialized
25 variable `width'.
26
c869cc37
JD
272010-11-11 Julien Danjou <julien@danjou.info>
28
2d9074ba
JD
29 * xsettings.c (init_xsettings): Use already fetch atoms.
30
31 * xsmfns.c (create_client_leader_window): Use SM_CLIENT_ID atom
32 from dpyinfo.
33
34 * xselect.c (Fx_send_client_event): Split and create
35 x_send_client_event.
36
37 * lisp.h: Do not EXFUN Fx_send_client_event.
38
39 * xterm.c (x_set_frame_alpha): Use _NET_WM_WINDOW_OPACITY atom
40 from dpyinfo.
41 (wm_supports): Use atoms from dpyinfo.
42 (do_ewmh_fullscreen): Use atoms from dpyinfo.
43 (x_ewmh_activate_frame): Use atoms from dpyinfo.
44 (xembed_set_info): Use atoms from dpyinfo.
45 (x_term_init): Fetch _XEMBED_INFO, _NET_SUPPORTED,
46 _NET_SUPPORTING_WM_CHECK, _NET_WM_WINDOW_OPACITY and
47 _NET_ACTIVE_WINDOW, XSETTINGS atoms.
48 Get all atoms in one round-trip.
49 (set_wm_state): Use x_send_client_event rather than
50 Fx_send_client_event, using Atom directly.
51 (x_ewmh_activate_frame): Ditto.
52 (x_set_sticky): Pass atoms to set_wm_state.
53 (do_ewmh_fullscreen): Ditto.
54
55
56 * xterm.h (x_display_info): Add Xatom_net_supported,
57 Xatom_net_supporting_wm_check, Xatom_net_active_window,
58 Xatom_net_wm_window_opacity, Xatom_XEMBED_INFO, SM_CLIENT_ID.
59
c869cc37
JD
60 * xfns.c (Fx_show_tip): Fix typo in docstring.
61
1a4236ea
SM
622010-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
63
64 * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
65 it's not negative.
66
3106121c
YM
672010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
68
69 * font.c (font_filter_properties): Add const to array elements of
70 properties args.
71
72 * font.h (font_filter_properties): Likewise.
73
74 * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array
75 elements.
76
77 * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
78
da1fec2b
MA
792010-11-10 Michael Albinus <michael.albinus@gmx.de>
80
81 * dbusbind.c (QCdbus_type_unix_fd): New Lisp object.
82 (XD_BASIC_DBUS_TYPE, xd_symbol_to_dbus_type, xd_signature)
83 (xd_append_arg, xd_retrieve_arg): Support DBUS_TYPE_UNIX_FD.
84 (Fdbus_call_method): Add DBUS_TYPE_UNIX_FD type mapping to doc string.
85 (syms_of_dbusbind): Initialize QCdbus_type_unix_fd).
86
bd6bc222
GM
872010-11-10 Glenn Morris <rgm@gnu.org>
88
89 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
90
c0098065
EZ
912010-11-09 Eli Zaretskii <eliz@gnu.org>
92
bd6bc222 93 * xfns.c (x_real_positions): Fix declaration-after-statement problem.
c0098065 94
d607b96b 952010-11-09 Chong Yidong <cyd@stupidchicken.com>
be3faa80
CY
96
97 * image.c (free_image): Don't garbage the frame here, since this
98 function can be called while redisplaying (Bug#7210).
99 (uncache_image): Garbage the frame here (Bug#6426).
100
d607b96b 1012010-11-09 Jan Djärv <jan.h.d@swipnet.se>
184765cc 102
d607b96b
SM
103 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
104 parent is the root window. Check this after traversing window tree.
184765cc 105
d607b96b 106 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
bd80a886 107
d607b96b 108 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
bd80a886 109
d607b96b
SM
110 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
111 before traversing window tree (Bug#5721).
c2e124a9 112
27f92be7
J
1132010-11-07 Jan Djärv <jan.h.d@swipnet.se>
114
66b16767
J
115 * xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
116
27f92be7
J
117 * xdisp.c (note_mode_line_or_margin_highlight): Initialize
118 Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
119
a971c0a7
EZ
1202010-11-06 Eli Zaretskii <eliz@gnu.org>
121
122 * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
123 adjust width of tool-tip frame to the width of text, excluding the
124 stretch glyph at the beginning of R2L glyph rows.
125
126 * w32fns.c (Fx_show_tip): Likewise.
127
80417b95
JD
1282010-11-06 Jan Djärv <jan.h.d@swipnet.se>
129
130 * nsfont.m: Include termchar for new mouse-highlight.
6dc61cf1 131 (nsfont_draw): Use MOUSE_HL_INFO.
80417b95 132
28118eb6
EZ
1332010-11-05 Eli Zaretskii <eliz@gnu.org>
134
c1fc2d3a 135 Unify mouse-highlight code for all GUI and TTY sessions.
cf482c50
EZ
136
137 * term.c: Remove static mouse_face_* variables. All users
138 changed.
139 (term_show_mouse_face, term_clear_mouse_face)
140 (fast_find_position, term_mouse_highlight): Functions deleted.
141 (tty_draw_row_with_mouse_face): New function.
142 (term_mouse_movement): Call note_mouse_highlight instead of
143 term_mouse_highlight.
144
bbf534ce
EZ
145 * nsterm.m (ns_update_window_begin, ns_update_window_end)
146 (ns_update_end, x_destroy_window, ns_frame_up_to_date)
147 (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
148 (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
149 (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
150 Replace Display_Info with Mouse_HLInfo everywhere where
151 mouse_face_* members were accessed for mouse highlight purposes.
152
153 * xterm.c (x_update_window_begin, x_update_window_end)
154 (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
155 (handle_one_xevent, x_free_frame_resources, x_term_init): Replace
156 Display_Info with Mouse_HLInfo everywhere where mouse_face_*
157 members were accessed for mouse highlight purposes.
158
159 * w32term.c (x_update_window_begin, x_update_window_end)
160 (x_update_end, w32_read_socket, x_free_frame_resources)
161 (w32_initialize_display_info): Replace Display_Info with
162 Mouse_HLInfo everywhere where mouse_face_* members were accessed
163 for mouse highlight purposes.
164
165 * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
166 (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
167 unless the frame is on a window-system.
c1fc2d3a 168 (get_tool_bar_item, handle_tool_bar_click)
7ea692f6
EZ
169 (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
170 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
171 (note_mode_line_or_margin_highlight, note_mouse_highlight)
172 (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
173 Replace Display_Info with Mouse_HLInfo everywhere where
174 mouse_face_* members were accessed for mouse highlight purposes.
c1fc2d3a 175 (coords_in_mouse_face_p): Move prototype out of the
d009ae66
EZ
176 HAVE_WINDOW_SYSTEM conditional.
177 (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
178 HAVE_WINDOW_SYSTEM block.
179 (try_window_id) [HAVE_GPM || MSDOS]: Call
180 x_clear_window_mouse_face.
181 (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
c1fc2d3a
EZ
182 systems. Call tty_draw_row_with_mouse_face for TTY systems.
183 (show_mouse_face): Call draw_row_with_mouse_face, instead of
184 calling draw_glyphs directly.
d009ae66
EZ
185 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
186 (cursor_in_mouse_face_p, rows_from_pos_range)
187 (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
188 (note_mode_line_or_margin_highlight, note_mouse_highlight)
189 (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
190 HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
191 fragments.
192 (note_mouse_highlight): Call popup_activated for MSDOS as well.
193 Clear mouse highlight if pointer is over glyphs whose OBJECT is an
194 integer.
195 (mouse_face_from_buffer_pos): Add parentheses around && within ||.
c1fc2d3a
EZ
196 (x_consider_frame_title, tool_bar_lines_needed): Move
197 prototypes to HAVE_WINDOW_SYSTEM-only part.
198 (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
199 part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
200 (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
201 part.
d009ae66
EZ
202
203 * dispnew.c (mirror_make_current): Set Y coordinate of the
204 mode-line and header-line rows.
c1fc2d3a
EZ
205 (init_display): Setup initial frame's output_data for text
206 terminal frames.
d009ae66 207
c1fc2d3a
EZ
208 * xmenu.c (popup_activated): Don't define on MSDOS, which now has
209 its own definition on msdos.c.
d009ae66
EZ
210
211 * msdos.c (show_mouse_face, clear_mouse_face)
212 (fast_find_position, IT_note_mode_line_highlight)
213 (IT_note_mouse_highlight): Functions deleted.
214 (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
215 instead of IT_note_mouse_highlight.
216 (draw_row_with_mouse_face, popup_activated): New functions.
c1fc2d3a
EZ
217 (dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
218 (IT_update_end, IT_frame_up_to_date, internal_terminal_init)
219 (dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
220 where mouse_face_* members were accessed for mouse highlight
221 purposes.
222
223 * msdos.h (initialize_msdos_display): Add prototype.
224
225 * frame.h (MOUSE_HL_INFO): New macro.
226
227 * lisp.h (Mouse_HLInfo): New data type.
228
229 * xterm.h (struct x_display_info):
230 * w32term.h (struct w32_display_info):
231 * nsterm.h (struct ns_display_info):
232 * termchar.h (struct tty_display_info): Use it instead of
233 mouse_face_* members.
234
235 * dispextern.h (show_mouse_face, clear_mouse_face): Update type of
236 1st argument.
237 (frame_to_window_pixel_xy, note_mouse_highlight)
238 (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
239 (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
240 HAVE_WINDOW_SYSTEM conditional.
241 (draw_row_with_mouse_face): Declare prototype.
242 (tty_draw_row_with_mouse_face): Declare prototype.
243
6e8d7c47
EZ
2442010-11-05 Eli Zaretskii <eliz@gnu.org>
245
246 * term.c (append_glyphless_glyph, produce_glyphless_glyph): Remove
247 unused variables.
248
f31ba3f0
AR
2492010-11-05 Adrian Robert <Adrian.B.Robert@gmail.com>
250
251 * nsterm.m (EmacsView-mouseExited:): Correct error in conditional
252 logic pointed out by Eli Zaretskii.
253
448e17d6
LMI
2542010-11-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
255
0c3a9a9f
GM
256 * coding.c (coding-category-list): Refer to set-coding-system-priority
257 instead of the obsolete set-coding-priority in the doc string.
448e17d6 258
f31ba3f0 259
3fdebbf9 2602010-11-04 Adrian Robert <Adrian.B.Robert@gmail.com>
f31ba3f0
AR
261
262 * nsfont.m (nsfont_draw): Correct previous patch to return
263 correct value.
264 * nsimage.m (EmacsImage-setXBMColor:): Correct previous patch:
265 don't change the method signature, change the return.
266
2672010-11-04 Ismail Donmez <ismail@namtrac.org> (tiny change)
3fdebbf9
AR
268
269 * nsfont.m (nsfont_draw)
270 * nsimage.m (EmacsImage-setXBMColor:)
f31ba3f0 271 * nsterm.m (EmacsView-performDragOperation:): Correct empty return.
3fdebbf9 272
17c0c952
JD
2732010-11-03 Julien Danjou <julien@danjou.info>
274
275 * image.c (gif_load): Add support for transparency and specified
276 :background.
277
b18fad6d
KH
2782010-11-01 Kenichi Handa <handa@m17n.org>
279
280 * dispextern.h (lookup_glyphless_char_display): Extern it.
281
282 * termhooks.h (struct terminal): New member charset_list.
283
284 * coding.c (Fset_terminal_coding_system_internal): Set the
285 `charset_list' member of struct terminal.
286
a8039db1 287 * term.c (produce_glyphs): Handle the case it->what == IT_GLYPHLESS.
b18fad6d
KH
288 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
289
290 * xdisp.c (lookup_glyphless_char_display): Make it non-static.
291 (lookup_glyphless_char_display): Set it->what at the end.
292 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
293 (last_glyphless_glyph_merged_face_id): Make them non-static.
294
a8039db1
JB
295 * w32term.c (x_draw_glyphless_glyph_string_foreground):
296 Fix the arg with_background for font->driver->draw.
65b6b59a 297
a8039db1 2982010-11-01 Kenichi Handa <handa@m17n.org>
0269bd90 299
a8039db1
JB
300 * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
301 Surround chp by parentheses.
0269bd90 302
a8039db1 3032010-11-01 Kenichi Handa <handa@m17n.org>
b2cca856
KH
304
305 Implement various display methods for glyphless characters.
306
307 * xdisp.c (Qglyphless_char, Vglyphless_char_display)
308 (Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space)
309 (Qzero_width): New variables.
310 (THIN_SPACE_WIDTH): New macro.
311 (lookup_glyphless_char_display): New funciton.
312 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
313 (last_glyphless_glyph_merged_face_id): New variables.
314 (get_next_display_element): Check glyphless characters.
315 (redisplay_internal): Initialize last_glyphless_glyph_frame and
316 last_glyphless_glyph_face_id.
317 (fill_glyphless_glyph_string): New function.
318 (BUILD_GLYPHLESS_GLYPH_STRING): New macro.
319 (BUILD_GLYPH_STRINGS): Handle the case GLYPHLESS_GLYPH.
320 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
321 (x_produce_glyphs): If a suitable font is not found, produce a
322 glyphless glyph. Handle the case it->what == IT_GLYPHLESS.
323 (syms_of_xdisp): Intern and staticpro Qglyphless_char,
324 Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space, and
325 Qzero_width.
326 (Vglyphless_char_display): Declare it as a Lisp variable.
327
328 * dispextern.h (enum glyph_type): Add GLYPHLESS_GLYPH.
a8039db1
JB
329 (struct glyph): Change the size of the member "type" to 3.
330 Add glyphless to the union slice and u.
b2cca856
KH
331 (enum display_element_type): Add IT_GLYPHLESS.
332 (enum glyphless_display_method): New enum.
333 (struct it): New member glyphless_method.
334 (Vglyphless_char_display): Extern it.
335
336 * xterm.c (x_draw_glyphless_glyph_string_foreground): New function.
337 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
338
a8039db1 339 * w32term.c (x_draw_glyphless_glyph_string_foreground): New function.
b2cca856
KH
340 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
341
342 * nsterm.m (ns_draw_glyph_string): Handle the case
343 GLYPHLESS_GLYPH (the detail is not yet implemented).
344
c8c59954
GM
3452010-10-31 Glenn Morris <rgm@gnu.org>
346
80696982
GM
347 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
348
c8c59954
GM
349 * frame.c (syms_of_frame) <tool-bar-mode>:
350 Default to nil if !HAVE_WINDOW_SYSTEM. (Bug#7299)
351
46eadc7a
CY
3522010-10-31 Chong Yidong <cyd@stupidchicken.com>
353
354 * xterm.c (x_connection_closed): Print informative error message
355 when aborting on GTK. This requires using shut_down_emacs
356 directly instead of Fkill_emacs.
357
ffe75e6b
EZ
3582010-10-29 Eli Zaretskii <eliz@gnu.org>
359
360 * emacs.c (main): Call syms_of_filelock unconditionally.
361
362 * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
363 clause, but keep part of it conditioned on CLASH_DETECTION.
364
9d794026
GM
3652010-10-29 Glenn Morris <rgm@gnu.org>
366
4f4f2973
GM
367 * nsfns.m (Fx-display-save-under, Fx-open-connection)
368 (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
369 * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
370 * xfns.c (Fxw_color_defined_p, Fx_open_connection):
371 Sync docs between X, W32, NS.
372
9d794026
GM
373 * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
374 * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
375
d46f6bbb
JB
3762010-10-26 Juanma Barranquero <lekktu@gmail.com>
377
378 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
379 otherwise, bootstrapping on Windows fails to compile macroexp.el.
380
2e35f1a2
EZ
3812010-10-26 Eli Zaretskii <eliz@gnu.org>
382
383 * cmds.c (internal_self_insert): Don't insert if argument N is
84b28888 384 zero or negative. (Bug#7281)
2e35f1a2 385
8daaeda6
J
3862010-10-26 Jan Djärv <jan.h.d@swipnet.se>
387
388 * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
389
6a5c2175
GM
3902010-10-25 Glenn Morris <rgm@gnu.org>
391
392 * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
393
7c051dd8
GM
3942010-10-24 Glenn Morris <rgm@gnu.org>
395
396 * w32fns.c (Fx_synchronize, Fx_change_window_property)
397 (Fx_window_property, Fx_file_dialog):
398 * xfns.c (Fx_synchronize, Fx_change_window_property)
399 (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
400
23c261f5
CY
4012010-10-24 Chong Yidong <cyd@stupidchicken.com>
402
403 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
404
d414c713 4052010-10-24 Eli Zaretskii <eliz@gnu.org>
89baa1df
EZ
406
407 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
408
409 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
410 Deprecate use as a boolean flag.
411
947f5e01
JM
4122010-10-24 Jim Meyering <jim@meyering.net>
413
414 * emacs.c (argmatch): Don't treat "--" as "--chdir".
415
65807d73
GM
4162010-10-24 Glenn Morris <rgm@gnu.org>
417
f5f25615
GM
418 * w16select.c (syms_of_win16select) <selection-coding-system>:
419 <next-selection-coding-system>:
420 * w32select.c (syms_of_w32select) <selection-coding-system>:
421 <next-selection-coding-system>:
3646b86d
GM
422 Sync docs with select.el.
423
46710489
GM
424 * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
425 Lisp version.
426
ea883883
GM
427 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
428 Sync doc with the xterm.c version.
429
65807d73
GM
430 * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
431 * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
432
f3d87560
GM
4332010-10-23 Glenn Morris <rgm@gnu.org>
434
66c6abf0 435 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
e1fd756b 436 * frame.c (syms_of_frame) <menu-bar-mode>:
6e82cf1a 437 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
a102db1e 438 <hourglass-delay>: Sync docs with Lisp.
f3d87560 439
7b7e2c18
EZ
4402010-10-23 Eli Zaretskii <eliz@gnu.org>
441
d1d6801e 442 Implement mouse highlight for bidi-reordered lines.
d0010be5
EZ
443
444 * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
445 (mouse_face_from_string_pos): New function, replaces
446 fast_find_string_pos.
447 (note_mouse_highlight): Call it instead of fast_find_string_pos.
d1d6801e
EZ
448 (note_mode_line_or_margin_highlight): Support bidi-reordered
449 strings and R2L glyph rows. Fix comments.
2f3f89b3
EZ
450 (note_mouse_highlight): When bidi reordering is turned on in a
451 buffer, call next-single-property-change and
d1d6801e
EZ
452 previous-single-property-change with last argument nil. Clear
453 mouse highlight when mouse pointer is in a R2L row on the stretch
454 glyph that stands for no text beyond the line end.
1f382a02
EZ
455 (row_containing_pos): Don't return too early when CHARPOS is in a
456 bidi-reordered continued line. Return immediately when the first
457 hit is found in a line that is not continued, or when an exact
458 match for CHARPOS is found.
d1d6801e
EZ
459 (rows_from_pos_range): New function.
460 (mouse_face_from_buffer_pos): Use it instead of calling
461 row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
462 function to support mouse highlight in bidi-reordered lines and
463 not to assume that START_CHARPOS is always in mouse_face_beg_row.
464 If necessary, swap mouse_face_beg_row and mouse_face_end_row so
465 that the former is always above the latter or identical to it.
1554d88e 466 (show_mouse_face): Support drawing highlighted R2L lines.
1b5a721b
EZ
467 (coords_in_mouse_face_p): New function, bidi-aware.
468 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
469 Call it instead of comparing with mouse-face members of dpyinfo.
470 (note_mode_line_or_margin_highlight): Fix confusingly swapped
471 usage of hpos and vpos.
544bbc31 472
dee186b6
J
4732010-10-22 Jan Djärv <jan.h.d@swipnet.se>
474
475 * xrdb.c: Include keyboard.h for MOTIF.
476
477 * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
478 MOTIF (Bug#7263).
479
480 * xfns.c: Include Xm/TextF and Xm/List.
481 (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog): Make
482 ANSI prototypes.
483
5fb59edb
GM
4842010-10-22 Glenn Morris <rgm@gnu.org>
485
486 * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
487 Remove ccl and duplicate mouse.
488
8b78d5e3
CY
4892010-10-21 Chong Yidong <cyd@stupidchicken.com>
490
491 * insdel.c (prepare_to_modify_buffer): Don't set
492 saved-region-selection if modification hooks are disabled.
493
b8a47412
CY
4942010-10-19 Chong Yidong <cyd@stupidchicken.com>
495
496 * cmds.c (Fdelete_char): Doc fix.
497
ca3fa302 4982010-10-19 Ken Brown <kbrown@cornell.edu>
5419963b
KB
499
500 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
501
ca3fa302 5022010-10-19 Kenichi Handa <handa@m17n.org>
31daa5e1
KH
503
504 Fix incorrect font metrics when the same font is opened with
505 different pixelsizes.
506
507 * xftfont.c: Include composite.h.
508 (xftfont_shape): New function.
509 (syms_of_xftfont): Set xftfont_driver.shape.
510
c978536f
JD
5112010-10-18 Julien Danjou <julien@danjou.info>
512
513 * frame.c (Fframe_pointer_visible_p):
514 Add `frame-pointer-visible-p' to get the pointer visibility.
515
4b2d9ec2
LMI
5162010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
517
518 * gnutls.c (emacs_gnutls_read): Return 0 if we get a
519 non-"EAGAIN"-like error to signal to Emacs that the socket should
520 be closed.
521
9cf66cf2
EZ
5222010-10-15 Eli Zaretskii <eliz@gnu.org>
523
c3911ead
EZ
524 * unexcoff.c (make_hdr): Fix prototype according to changes in
525 2010-10-03T13:59:56Z!dann@ics.uci.edu.
526
9cf66cf2
EZ
527 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
528
be98da05
TH
5292010-10-15 Tassilo Horn <tassilo@member.fsf.org>
530
531 * Makefile.in (really-oldXMenu): Fix typo in variable name that
532 made building the X menu fail.
cc98b256 533 (really-oldXMenu): Fix my previous fix.
be98da05 534
220d91b8 5352010-10-14 Damyan Pepper <damyanp@gmail.com>
9fa82824
DP
536
537 Fix handling of font properties on Windows (bug#6303).
538 * font.c (font_filter_properties): New function, refactored from
539 ftfont_filter_properties.
540 * font.h (font_filter_properties): Declare.
541 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
542 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
543 (w32font_filter_properties): New function.
544 (w32font_driver): Add w32font_filter_properties.
545
220d91b8 5462010-10-14 Juanma Barranquero <lekktu@gmail.com>
51e4f4a8 547
c0943d3d 548 * font.c (Ffont_variation_glyphs):
51e4f4a8
JB
549 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
550
24f981c9
JB
5512010-10-14 Juanma Barranquero <lekktu@gmail.com>
552
553 * w32fns.c (w32_wnd_proc, file_dialog_callback):
554 * w32font.c (w32_generic_family):
555 * w32inevt.c (key_event):
556 * w32menu.c (fill_in_menu):
557 * w32proc.c (reader_thread, w32_executable_type, compare_env)
558 (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
559 * w32term.c (w32_read_socket): Make static.
560
850690cc
JB
5612010-10-13 Juanma Barranquero <lekktu@gmail.com>
562
563 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
564 prototypes; all callers changed.
565
5e371708
JB
5662010-10-13 Juanma Barranquero <lekktu@gmail.com>
567
568 * makefile.w32-in (TLIB2): Rename from TLIBW32.
569 (OBJ2): New macro.
570 (WIN32OBJ, FONTOBJ): Remove.
571 (OBJ1): Redistribute object files with OBJ2.
572 (LIBS, $(TEMACS)): Use TLIB2.
573 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
574 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
575
2e288d54
JB
5762010-10-13 Juanma Barranquero <lekktu@gmail.com>
577
578 * emacs.c (Vdynamic_library_alist)
579 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
580 Doc fix.
581
582 * lisp.h (Vdynamic_library_alist): Declare extern.
583
584 * image.c (Vimage_library_alist)
585 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
586 (lookup_image_type): Use Vdynamic_library_alist.
587 (Finit_image_library): Doc fix.
588
aba1381b
DN
5892010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
590
591 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
592 (lispdir): Remove trailing /, update all uses.
593
4c14013d 5942010-10-12 Jan Djärv <jan.h.d@swipnet.se>
a2e35ef5
JD
595
596 * nsterm.m (Qleft): Declare.
597 (ns_right_alternate_modifier): New variable
598 (NSRightAlternateKeyMask): New define.
599 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
600 ns_right_alternate_modifier isn't Qleft.
601 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
602 as emacs modifier for NSRightAlternateKeyMask.
603 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
604
355cdaf3
LMI
6052010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
606
607 * gnutls.c (emacs_gnutls_write): If we're trying to write before
608 gnutls is ready, return EAGAIN as the errno.
609
4c620157
DN
6102010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
611
edfd76ce
DN
612 * vm-limit.c:
613 * unexhp9k800.c:
614 * unexelf.c:
615 * unexaix.c:
616 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
617
a4daeecf
DN
618 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
619 (PROFILING_LDFLAGS): Remove, not needed anymore.
620
2cb72a75 621 * Makefile.in: Use $(...) everywhere instead of ${...}
4cf3ad30
DN
622 (CRT_DIR): Move near potential user.
623 (START_FILE): Move near CRT_DIR, it might use it.
2cb72a75 624
4c620157
DN
625 * sysdep.c (LPASS8): Remove, unused.
626 (emacs_ospeed): Change from being a global to a local in the only
627 user: init_baud_rate.
628
b845653d
LMI
6292010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
630
631 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
bda6d2bd 632 (emacs_gnutls_write): Remove the debuggin fsync call.
b845653d 633 (emacs_gnutls_read): Return -1 if we got an error from
bda6d2bd 634 gnutls_read. This allows us to actually read lots of data from
b845653d 635 the GnuTLS stream.
2e6c74c5
LMI
636 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
637 According to the documentation, this is correct, and it seems to
638 make things work.
b845653d 639
3625b3e2
CY
6402010-10-09 Chong Yidong <cyd@stupidchicken.com>
641
642 * xterm.c (x_draw_relief_rect): Clear corner pixels.
643
8b1c619f
MA
6442010-10-08 Michael Albinus <michael.albinus@gmx.de>
645
646 * keyboard.c: Revert last change; it was not intended to be
647 synchronized with the trunk.
648
93d50df8
KH
6492010-10-08 Kenichi Handa <handa@m17n.org>
650
2b7c9342 651 * coding.c (complement_process_encoding_system): Fix previous change.
5886ec9c 652
4628bef1 6532010-10-08 Michael Albinus <michael.albinus@gmx.de>
a79b0f28
MA
654
655 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
656 (Fdbus_init_bus): ... here. (Bug#7113)
657
4628bef1 6582010-10-08 Glenn Morris <rgm@gnu.org>
7b2bf907
GM
659
660 * buffer.c (before-change-functions, after-change-functions):
661 Three-year overdue doc fix following 2007-08-13 change.
662
4628bef1 6632010-10-08 Kenichi Handa <handa@m17n.org>
1911a33b
KH
664
665 * coding.c (coding_inherit_eol_type): If parent doesn't specify
666 eol-format, inherit from the system's default.
667 (complement_process_encoding_system): Make a new coding system
668 inherit the original eol-format.
669
4628bef1 6702010-10-08 Kenichi Handa <handa@m17n.org>
fcaf8878
KH
671
672 * coding.c (complement_process_encoding_system): New function.
673
674 * coding.h (complement_process_encoding_system): Extern it.
675
676 * callproc.c (Fcall_process): Complement the coding system for
677 encoding arguments.
678 (Fcall_process_region): Complement the coding system for encoding
679 the input to the process.
680
681 * process.c (Fstart_process): Complement the coding system for
682 encoding arguments.
683 (send_process): Complement the coding system for encoding what
684 sent to the process.
685
4628bef1 6862010-10-08 Kenichi Handa <handa@m17n.org>
18acb5ad
KH
687
688 * xfont.c (xfont_open): Fix setting of font->average_width from
689 :avgwidth property (Bug#7123).
690
4628bef1 6912010-10-08 Michael Albinus <michael.albinus@gmx.de>
dec83468
MA
692
693 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
694 is more portable.
695
696 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
697 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
698 has not defined SIGIO.
699
389454fb
CY
7002010-10-08 Chong Yidong <cyd@stupidchicken.com>
701
702 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
703 draw the outermost line using the black relief, for legibility.
704 Omit drawing the four corner pixels.
705
51b403bd
CY
7062010-10-04 Chong Yidong <cyd@stupidchicken.com>
707
708 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
709 (read_key_sequence): Inline echo_prompt.
710 (echo_dash): Add a dash only if key is continued (Bug#7137).
711
3e6ae1a4
DN
7122010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
713
714 Remove O_RDONLY, O_WRONLY definitions, not needed.
715 * unexcoff.c:
716 * lread.c:
717 * fileio.c:
718 * doc.c:
719 * callproc.c:
720 * alloc.c:
721 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
722
c1ae068b
LMI
7232010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
724
725 * gnutls.h (GNUTLS_LOG2): Convenience macro.
726
727 * gnutls.c: Add property list symbol holders.
728 (emacs_gnutls_handshake): Clarify how sockets are passed to
729 GnuTLS.
730 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
731 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
732 and keyfiles to be a list of file names. Default to "NORMAL" for
733 the priority string. Improve logging.
734
e2afe435
GM
7352010-10-03 Glenn Morris <rgm@gnu.org>
736
737 * fileio.c (Vdirectory_sep_char): Remove.
738
dd5ecd6b
DN
7392010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
740
b5437a05
DN
741 * termhooks.h: Remove #ifdef CONSP.
742
4777478a
DN
743 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
744
a3d5088d
DN
745 Include <fcntl.h> unconditionally.
746 * termcap.c:
747 * sysdep.c:
748 * lread.c:
749 * keyboard.c:
750 * filelock.c:
751 * fileio.c:
752 * doc.c:
753 * callproc.c:
754 * alloc.c: Remove include guards for <fcntl.h>, process.c already
755 does it.
756
82719735
DN
757 * process.c: Do not include <sys/wait.h>, syswait.h does it.
758
9de940b5
DN
759 * sysdep.c (flush_pending_output): Remove code, does not do
760 anything on any platform.
761
57507bf8
DN
762 Remove unused code.
763 * sysdep.c (select_alarm, sys_select, read_input_waiting): Remove
764 select emulation, all systems support select.
765 (set_exclusive_use): Remove, the only user is in an #if 0 block.
766 * process.c (create_process): Remove #if 0 code.
767
dd5ecd6b
DN
768 Remove unused arguments for unexec.
769 The third one is never used, and the last two are always passed as zero.
770 * emacs.c (unexec): Add declaration.
771 (Fdump_emacs): Only pass the first two arguments to unexec.
772 Simplify #ifdef.
773 * unexw32.c (unexec):
774 * unexsol.c (unexec):
775 * unexhp9k800.c (unexec):
776 * unexcw.c (unexec): Remove the last 3 arguments, unused.
777 * unexelf.c (unexec): Remove the last 3 arguments, unused.
778 (find_section): Use const.
779 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
780 (unexec_error): Declare it NO_RETURN.
781 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
782 it as an argument, remove data_start and entry_address arguments, unused.
783 (unexec): Remove bss_start, data_start and
784 entry_address arguments.
785 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
786 it as an argument, remove data_start and entry_address arguments, unused.
787 (unexec): Remove bss_start, data_start and
788 entry_address arguments.
789
74f1829d
JB
7902010-10-03 Juanma Barranquero <lekktu@gmail.com>
791
7f467e14
JB
792 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
793
74f1829d
JB
794 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
795 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
796 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
797 Fix typos in docstrings.
798 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
799 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
800
6926550f
CY
8012010-10-03 Chong Yidong <cyd@stupidchicken.com>
802
803 * keyboard.c (command_loop_1): Make sure the mark is really alive
804 before using it (Bug#7044).
805
54b65f7b
JB
8062010-10-02 Juanma Barranquero <lekktu@gmail.com>
807
808 * makefile.w32-in (tags): Rename target to full-tags.
809
383ebd15
EZ
8102010-10-02 Eli Zaretskii <eliz@gnu.org>
811
812 * emacs.c (main): Remove !WINDOWSNT conditional.
813 (Fkill_emacs): Don't mention exemption on MS-Windows.
814
9c524fcb
GM
8152010-10-02 Glenn Morris <rgm@gnu.org>
816
3226d6ca
GM
817 * character.c (Fchar_bytes): Remove obsolete function.
818 (syms_of_character): Remove Schar_bytes.
819
9c524fcb
GM
820 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
821 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
822 in batch-mode.
823 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
824 (kill-emacs-hook): Doc fix.
825
1b217849
LMI
8262010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
827
828 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
829 (parse_region): Reworked to take regions instead of strings, and
830 renamed to reflect that these are the libxml functions.
831
54cc6a83
EZ
8322010-10-01 Eli Zaretskii <eliz@gnu.org>
833
0ebf79de
EZ
834 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
835 screen dimensions in tty->Wcm.
836
54cc6a83
EZ
837 * xdisp.c (set_cursor_from_row): When the row is truncated and
838 point is outside the range of displayed characters, position the
839 cursor inside the scroll margin. (Bug#6349)
840
321401d1
DN
8412010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
842
4cacd822
DN
843 Do not include stdlib.h and string.h, config.h does it.
844 * xfont.c:
845 * w32term.c:
846 * w32reg.c:
847 * w32inevt.c:
848 * w32heap.c:
849 * w32console.c:
850 * w16select.c:
851 * unexsol.c:
852 * term.c:
853 * sound.c:
854 * scroll.c (m):
855 * gtkutil.c:
856 * font.c:
857 * filelock.c:
858 * fileio.c:
859 * dosfns.c:
860 * dbusbind.c:
861 * bidi.c:
862 * callproc.c:
863 * process.c:
864 * msdos.c:
865 * charset.c: Do not include stdlib.h and string.h, config.h does it.
866
0781e7ab
DN
867 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h defines it.
868
9bf58201
DN
869 * process.c: Move #include <pty.h> earlier.
870 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
871 (pty_name): Move definition later.
872
088dcc3e
DN
873 * nsselect.m (syms_of_nsselect):
874 * nsmenu.m (syms_of_nsmenu):
875 * nsfns.m (syms_of_nsfns):
876 * msdos.c (syms_of_msdos):
4cacd822 877
088dcc3e
DN
878 * image.c (syms_of_image):
879 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
880
321401d1
DN
881 * point.h: Remove, unused.
882
73077a9a
EZ
8832010-10-01 Eli Zaretskii <eliz@gnu.org>
884
885 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
886 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
887 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
888
55e572ef
DN
8892010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
890
891 * xml.c (parse_string): Use const.
892
d4b6d95d
LMI
8932010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
894
895 * eval.c (Fbacktrace): Don't overwrite print-level on exit. Also
896 only override Vprint_level if it isn't already bound, and increase
897 the level to 8 to produce more useful backtraces for bug reports.
898
e4b6db12
DN
8992010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
900
901 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
902
1becef93
JB
9032010-09-30 Juanma Barranquero <lekktu@gmail.com>
904
905 * w32console.c (vga_stdcolor_name): Remove unused function;
906 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
907
df7fcaff
LMI
9082010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
909
bac5cef8
LMI
910 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
911 (Fgnutls_boot): Start the handshake.
912 (emacs_gnutls_read): Perform the handshake from the reader loop.
e6059fa2
LMI
913 (Fgnutls_boot): Remove some debugging messages.
914 Change indentation throughout to use the Emacs style.
915 (emacs_gnutls_handshake): Cast the fds to something that's
916 possibly the expected length.
917 (emacs_gnutls_write): Return -1 if we try to write before handshake.
bac5cef8 918
df7fcaff
LMI
919 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
920
921 * process.c (make_process): Set the gnutls_p field to zero by
922 default.
923 (read_process_output): Always call the gnutls_read function if the
924 stream is a gnutls stream.
925 (send_process): Ditto for writes.
926
927 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
928 or write anything until the state is GNUTLS_STAGE_READY.
929 (Fgnutls_boot): Mark the stream as being a gnutls stream.
930
d585695f
EZ
9312010-09-29 Eli Zaretskii <eliz@gnu.org>
932
af7ef32d
EZ
933 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
934 NEUTRAL_DIR.
935 (handle_invisible_prop, iterate_out_of_display_property)
936 (next_element_from_buffer): If bidi_it.first_elt is set, call
937 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
938 (Bug#7128)
939
d585695f
EZ
940 * print.c (print_object): Fix format string and argument types for
941 printing a Lisp_Misc_Marker.
942
943 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
944 (load_overlay_strings, get_overlay_strings_1)
945 (get_overlay_strings, forward_to_next_line_start)
946 (back_to_previous_visible_line_start, reseat, reseat_to_string)
947 (get_next_display_element, next_element_from_string)
948 (next_element_from_c_string, next_element_from_buffer)
949 (move_it_vertically_backward, move_it_by_lines, add_to_log)
950 (message_dolog, message_log_check_duplicate, message2_nolog)
951 (message3, message3_nolog, vmessage, set_message, set_message_1)
952 (hscroll_window_tree, text_outside_line_unchanged_p)
953 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
954 (find_last_unchanged_at_beg_row)
955 (find_first_unchanged_at_end_row, row_containing_pos)
956 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
957 (display_count_lines, x_produce_glyphs, note_mouse_highlight): Use
958 EMACS_INT for buffer and string positions.
959
960 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
961 (row_containing_pos): Adjust prototype.
962
963 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
964 (message2_nolog, set_message): Adjust prototypes.
965
a6f3211f
SM
9662010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
967
968 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
969 (Fgnutls_boot): Use SDATA.
970 (Fgnutls_handshake): Remove unused var `max_log_level'.
971
e0720500
MA
9722010-09-27 Michael Albinus <michael.albinus@gmx.de>
973
11a5af7c 974 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
975 (Bug#7113)
976
d8a4b27a
J
9772010-09-27 Jan Djärv <jan.h.d@swipnet.se>
978
42d3022b
J
979 * xgselect.c (xg_select): Clear file descriptors not set from
980 rfds and wfds.
981
d8a4b27a
J
982 * process.c (wait_reading_process_output): Add missing FD_CLR
983 for write_mask (must mirror connect_wait_mask).
984
8ed70bf3
LMI
9852010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
986
987 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
988 prefix.
989 (Fgnutls_boot): Use changed process members. Use log level with a
990 function parameter to set it. Bring back Emacs-level debugging
991 messages at log level 1 and 2.
992
993 * process.c (make_process): Initialize gnutls_log_level.
994
995 * process.h: Add gnutls_log_level and rename x509_cred and
996 anon_cred to have the gnutls_ prefix for consistency.
997
998 * gnutls.h (GNUTLS_LOG): Add convenience macro.
999
bedf4aab
JB
10002010-09-27 Juanma Barranquero <lekktu@gmail.com>
1001
1002 * w32.c (g_b_init_get_sid_identifier_authority)
1003 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
1004 Remove, not used.
1005 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
1006 (init_winsock): Remove useless assignment.
1007 (open_process_token, get_token_information, lookup_account_sid)
1008 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
1009 (get_security_descriptor_owner, get_security_descriptor_group)
1010 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
1011 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
1012 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
1013 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
1014 (unc_volume_file_attributes, convert_from_time_t)
1015 (create_toolhelp32_snapshot, process32_first, process32_next)
1016 (open_thread_token, impersonate_self, revert_to_self)
1017 (get_process_memory_info, get_process_working_set_size)
1018 (global_memory_status, global_memory_status_ex, socket_to_fd)
1019 (shutdown_handler): Make static.
1020
08609ffd
MA
10212010-09-27 Michael Albinus <michael.albinus@gmx.de>
1022
1023 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
1024 (xd_pending_messages): Functions removed.
1025 (xd_read_queued_messages): Add parameters fd, *data, for_read in
1026 order to be compatible with add_read_fd. Determine bus from data,
1027 and call xd_read_message just for this bus.
1028 (xd_add_watch): Use xd_read_queued_messages as callback function.
1029 Add data.
1030
1031 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
1032
d2e9d0bb
LMI
10332010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
1034
1035 * gnutls.c (gnutls_log_function): Added more debugging.
ec9f09be 1036 (emacs_gnutls_read): Don't infloop while reading.
d2e9d0bb 1037
4be9765d
KH
10382010-09-27 Kenichi Handa <handa@m17n.org>
1039
1040 These changes are to remove restriction on the number of glyphs in
1041 one composition.
1042
1043 * dispextern.h (struct glyph): Change the member "slice" to union.
1044 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
1045 (GLYPH_SLICE_EQUAL_P): Adjusted for the above change.
1046
1047 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
1048 instead of glyph->slice.
1049 (marginal_area_string): Likewise.
1050
1051 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
1052 glyph->u.cmp.
1053 (append_composite_glyph): Likewise.
1054
1055 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
1056 glyph->u.cmp.
1057 (fill_gstring_glyph_string, x_get_glyph_overhangs)
1058 (append_composite_glyph): Likewise.
1059 (fill_image_glyph_string): Use glyph->slice.img instead of
1060 glyph->slice.
1061 (append_glyph, produce_image_glyph, append_stretch_glyph)
1062 (note_mouse_highlight): Likewise.
1063
3fad2ad2
J
10642010-09-26 Jan Djärv <jan.h.d@swipnet.se>
1065
bf05eed6
J
1066 * process.c (add_keyboard_wait_descriptor)
1067 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
82d6e50b
J
1068 (wait_reading_process_output): Don't pass write_mask to select
1069 if SELECT_CANT_DO_WRITE_MASK is defined.
1070 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
bf05eed6 1071
3fad2ad2
J
1072 * process.h (add_read_fd, delete_read_fd, add_write_fd)
1073 (delete_write_fd): Declare.
1074
1075 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
1076 (write_mask): New variable.
1077 (max_input_desc): Renamed from max_keyboard_desc.
1078 (fd_callback_info): New variable.
70e31436
JB
1079 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
1080 New functions.
3fad2ad2
J
1081 (Fmake_network_process): FD_SET write_mask.
1082 (deactivate_process): FD_CLR write_mask.
1083 (wait_reading_process_output): Connecting renamed to Writeok.
70e31436
JB
1084 check_connect removed. check_write is new. Remove references to gpm.
1085 Use Writeok/check_write unconditionally (i.e. no #ifdef
3fad2ad2
J
1086 NON_BLOCKING_CONNECT) instead of Connecting.
1087 Loop over file descriptors and call callbacks in fd_callback_info
1088 if file descriptor is ready for I/O.
1089 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
1090 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
1091 (keyboard_bit_set): Use max_input_desc.
70e31436
JB
1092 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
1093 Remove #ifdef subprocesses. Use max_input_desc.
3fad2ad2
J
1094 (init_process): Initialize write_mask and fd_callback_info.
1095
1096 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
1097
1098 * dbusbind.c: Include process.h.
1099 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
1100 (xd_read_message_1): New functions.
70e31436
JB
1101 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
1102 Handle watch for both read and write.
3fad2ad2
J
1103 (Fdbus_init_bus): Also register xd_toggle_watch.
1104 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1105 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
1106 to dbus_connection_flush.
70e31436 1107 (xd_read_message): Move most of the code to xd_read_message_1.
3fad2ad2
J
1108 Call xd_read_message_1 until status is COMPLETE.
1109
dce4c2ac
DN
11102010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
1111
1112 * term.c: Do not include sys/ioctl.h, not needed.
70e31436
JB
1113 (init_tty): Reorder code to reduce the number of #ifdefs.
1114 No code changes.
dce4c2ac 1115
8af55556
TZ
11162010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
1117
1118 * process.h: Set up GnuTLS support.
1119
1120 * process.c (make_process, Fstart_process)
1121 (read_process_output, send_process): Set up GnuTLS support for
1122 process input/output file descriptors.
1123
1124 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
1125
1126 * gnutls.c: The source code for GnuTLS support in Emacs.
1127
1128 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
1129
1130 * config.in: Set up GnuTLS support.
1131
1132 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
1133 (obj, LIBES): Set up GnuTLS support.
1134
83e245c4
JB
11352010-09-26 Juanma Barranquero <lekktu@gmail.com>
1136
1137 * w32.c (get_emacs_configuration_options): Fix previous change.
1138
d24ec09a
CY
11392010-09-25 Chong Yidong <cyd@stupidchicken.com>
1140
1141 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
1142 alive before using it (Bug#6977).
1143
b7bdc47c
LMI
11442010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
1145
a952d5f3
LMI
1146 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
1147
1148 * dispextern.h: EMACS_INT/int fixup.
1149
1150 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
1151 fixup.
1152
b7bdc47c
LMI
1153 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
1154
41118bd3
EZ
11552010-09-25 Eli Zaretskii <eliz@gnu.org>
1156
2452438f
EZ
1157 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
1158 (Fselect_window, window_scroll_pixel_based)
1159 (window_scroll_line_based, Frecenter, Fset_window_configuration):
1160 Use EMACS_INT for buffer positions.
1161
1162 * textprop.c (validate_interval_range, interval_of)
1163 (property_change_between_p, Fadd_text_properties)
1164 (set_text_properties_1, Fremove_text_properties)
1165 (Fremove_list_of_text_properties, Ftext_property_any)
1166 (Ftext_property_not_all, copy_text_properties)
1167 (text_property_list, extend_property_ranges)
1168 (verify_interval_modification): Use EMACS_INT for buffer
1169 positions.
1170
f877c546
EZ
1171 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
1172 for buffer positions.
1173
1174 * process.c (read_process_output, send_process)
1175 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
1176 and string positions and size.
1177
da43f021
EZ
1178 * print.c (print_object, print_string, strout): Use EMACS_INT for
1179 string indices.
1180
1181 * minibuf.c (string_to_object): Use EMACS_INT for string position
1182 and size.
1183
1184 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
1185
1186 * lread.c <read_from_string_index, read_from_string_index_byte>
1187 <read_from_string_limit, readchar_count>: Define EMACS_INT.
1188 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
1189 buffer positions and string length.
1190
41118bd3
EZ
1191 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
1192 EMACS_INT.
1193 (echo_truncate, adjust_point_for_property, read_char)
1194 (gen_help_event, make_lispy_event, modify_event_symbol)
1195 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
1196 for buffer positions and string length.
1197
1198 * keyboard.h (gen_help_event): Adjust prototype.
1199
1200 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
1201
1202 * commands.h <last_point_position>: Declare EMACS_INT.
1203
1204 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
1205 (truncate_echo_area): Accept EMACS_INT argument.
1206
1207 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
1208
1209 * lisp.h (truncate_echo_area): Adjust prototype.
1210
1211 * composite.c (composition_adjust_point): Return EMACS_INT.
1212
1213 * composite.h (composition_adjust_point): Adjust prototype.
1214
ba3033ee
JB
12152010-09-25 Juanma Barranquero <lekktu@gmail.com>
1216
1217 * process.c (Fmake_network_process): When arg :host is 'local,
1218 use address 127.0.0.1, not name "localhost". (Bug#6781)
1219
4f3a2f8d
EZ
12202010-09-24 Eli Zaretskii <eliz@gnu.org>
1221
5816888b
EZ
1222 * indent.c (Fcurrent_indentation, indented_beyond_p)
1223 (compute_motion): Use EMACS_INT for buffer position variables.
1224
1225 * lisp.h (indented_beyond_p): Adjust prototype.
1226
1227 * buffer.c (overlay_strings): Return EMACS_INT.
1228
1229 * buffer.h (overlay_strings): Adjust prototype.
1230
1231 * region-cache.c (pp_cache): Adjust format to arguments.
1232
1233 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
1234 (call_debugger): Use EMACS_INT for specpdl_size related variables.
1235 (verror): Use EMACS_INT for size of allocated buffer.
1236
ace1712c
EZ
1237 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
1238 positions.
1239
1240 * xdisp.c (redisplay_internal, try_window_id)
1241 (set_cursor_from_row, find_first_unchanged_at_end_row): Use
1242 EMACS_INT for buffer positions.
1243
f5276b75 1244 * dispextern.h (set_cursor_from_row): Adjust prototype.
ace1712c
EZ
1245
1246 * dispnew.c (increment_matrix_positions)
1247 (increment_row_positions, copy_glyph_row_contents)
1248 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
1249 positions.
1250
1251 * dispextern.h (mode_line_string, marginal_area_string)
1252 (increment_matrix_positions, increment_row_positions): Adjust
1253 prototypes.
1254
1255 * data.c (Faref, Faset): Use EMACS_INT for string length and
1256 positions.
1257
1258 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
1259 characters to insert.
1260
1261 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
1262 position and size.
1263
4f3a2f8d
EZ
1264 * syntax.c (scan_words, update_syntax_table)
1265 (prev_char_comend_first, back_comment, skip_chars)
1266 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars): Use
1267 EMACS_INT for buffer and string positions.
1268
1269 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
1270
1271 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
1272 positions.
1273
db063399
LMI
12742010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
1275
f0812d35
LMI
1276 * scroll.c (calculate_scrolling, line_ins_del)
1277 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
1278 conversion.
1279
f5c7fc27
LMI
1280 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
1281 (region_cache_backward, region_cache_forward)
1282 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
1283 conversion.
1284
db063399
LMI
1285 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
1286
1287 * eval.c (verror): Fix EMACS_INT/int conversion.
1288
07914cd0 1289 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
db063399
LMI
1290 (print_preprocess, print_check_string_charset_prop)
1291 (print_object): Fix EMACS_INT/int conversion.
1292
1293 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
1294
e6d4aefa
EZ
12952010-09-24 Eli Zaretskii <eliz@gnu.org>
1296
69481da7
EZ
1297 * callproc.c (Fcall_process): Use EMACS_INT for count of
1298 characters read from the subprocess.
1299
61bfec98
EZ
1300 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
1301 positions.
1302 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
1303 positions.
1304
145582a0
EZ
1305 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
1306 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
1307 length.
1308 (advance_to_char_boundary, Fset_buffer_multibyte)
1309 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
1310 (overlay_touches_p, record_overlay_string, overlay_strings)
1311 (recenter_overlay_lists, fix_start_end_in_overlays)
1312 (modify_overlay, Fmove_overlay, report_overlay_modification)
1313 (evaporate_overlays): Use EMACS_INT for buffer positions.
1314
1315 * lisp.h (fix_start_end_in_overlays, overlay_touches_p): Adjust
1316 prototypes.
1317
446470a9
EZ
1318 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
1319 positions.
1320
e6d4aefa
EZ
1321 * fns.c (Fcompare_strings, Fstring_lessp, concat)
1322 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
1323 (Fsubstring_no_properties, substring_both, Ffillarray)
1324 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
1325 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
1326 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
1327 (Fmd5): Use EMACS_INT for buffer and string positions and length
1328 variables and arguments.
1329
1330 * lisp.h (substring_both): Adjust prototype.
1331
eb652396
JB
13322010-09-24 Juanma Barranquero <lekktu@gmail.com>
1333
1334 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
1335 * w32fns.c (clipboard_sequence_fn): Don't declare.
1336 (globals_of_w32fns): Don't initialize it.
1337
266a86bd 13382010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
fbb3da77
SM
1339
1340 * syntax.c (back_comment): Detect the case where a 1-char comment
1341 starter is also the 2nd char of a 2-char comment ender.
1342
266a86bd 13432010-09-23 Jan Djärv <jan.h.d@swipnet.se>
2b5b82db
J
1344
1345 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
1346
40283062
LMI
13472010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
1348
db063399
LMI
1349 * eval.c (verror): EMACS_INT/int cleanup.
1350
faf8b5bc
LMI
1351 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
1352 unwind_protect more than 2GB worth of functions.
1353
1354 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
1355
40283062
LMI
1356 * lisp.h: Have oblookup take EMACS_INT to allow interning big
1357 string and avoid compiler warnings.
1358 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
1359 all users.
1360
1361 * lread.c (oblookup): EMACS_INT/int cleanup.
1362
1363 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
1364
fe3537c3
EZ
13652010-09-23 Eli Zaretskii <eliz@gnu.org>
1366
1367 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
1368
1369 * lisp.h (clip_to_bounds): Adjust prototype.
1370
1371 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
1372
0350982f
LMI
13732010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
1374
84c9ce05
LMI
1375 * lisp.h: doprnt.c EMACS_INT/int cleanup.
1376
1377 * doprnt.c (doprnt): EMACS_INT/int cleanup.
1378
1379 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
1380 cleanup.
1381
0350982f
LMI
1382 * lisp.h: Change the definition of all marker.c functions that
1383 take and return buffer stuff to be EMACS_INT instead of int.
1384
1385 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
1386 (buf_charpos_to_bytepos, bytepos_to_charpos)
1387 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
1388 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
1389 for all buffer positions.
1390
c50bd0d2
CY
13912010-09-23 Chong Yidong <cyd@stupidchicken.com>
1392
1393 * intervals.c (traverse_intervals, rotate_right, rotate_left)
1394 (split_interval_right, find_interval, next_interval)
1395 (delete_node, delete_interval, interval_deletion_adjustment)
1396 (adjust_intervals_for_deletion, merge_interval_right)
1397 (merge_interval_left, graft_intervals_into_buffer)
1398 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
1399
1400 * intervals.h (traverse_intervals): Update prototype.
1401
14162469
EZ
14022010-09-23 Eli Zaretskii <eliz@gnu.org>
1403
c098fdb8
EZ
1404 * indent.c (compute_motion): Use EMACS_INT for arguments to
1405 region_cache_forward.
1406
1407 * region-cache.c (struct boundary, struct region_cache): Use
1408 EMACS_INT for positions.
1409 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
1410 (delete_cache_boundaries, set_cache_region)
1411 (invalidate_region_cache, know_region_cache)
1412 (region_cache_forward, region_cache_backward, pp_cache): Use
1413 EMACS_INT for buffer positions.
1414
1415 * region-cache.h (know_region_cache, invalidate_region_cache)
1416 (region_cache_forward, region_cache_backward): Adjust prototypes.
1417
1418 * search.c (string_match_1, fast_c_string_match_ignore_case)
1419 (looking_at_1, scan_buffer, scan_newline)
1420 (find_next_newline_no_quit, find_before_next_newline)
1421 (search_command, trivial_regexp_p, search_buffer, simple_search)
1422 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
1423 and string positions and length.
1424
caefdbe7
EZ
1425 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
1426 (find_before_next_newline): Adjust prototypes.
c098fdb8 1427
29cdc13e
EZ
1428 * editfns.c (transpose_markers, update_buffer_properties)
1429 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
1430 (get_pos_property, Fconstrain_to_field)
1431 (Fline_beginning_position, Fline_end_position, Fprevious_char)
1432 (Fchar_after, Fchar_before, Finsert_char)
1433 (Finsert_buffer_substring, Fcompare_buffer_substrings)
1434 (Fsubst_char_in_region, Fformat, Ftranspose_regions): Use
1435 EMACS_INT for buffer and string position variables.
c098fdb8 1436 (Finsert_char): Protect against too large insertions.
29cdc13e
EZ
1437
1438 * lisp.h (clip_to_bounds): Adjust prototype.
1439
e79123aa
EZ
1440 * intervals.c (traverse_intervals, rotate_right, rotate_left)
1441 (balance_an_interval, split_interval_right, split_interval_left)
1442 (find_interval, next_interval, update_interval)
1443 (adjust_intervals_for_insertion, delete_node, delete_interval)
1444 (interval_deletion_adjustment, adjust_intervals_for_deletion)
1445 (offset_intervals, merge_interval_right, merge_interval_left)
1446 (graft_intervals_into_buffer, adjust_for_invis_intang)
1447 (move_if_not_intangible, get_local_map, copy_intervals)
1448 (copy_intervals_to_string, compare_string_intervals)
1449 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
6e48267a 1450 and for interval tree size.
e79123aa
EZ
1451
1452 * intervals.h (traverse_intervals, split_interval_right)
1453 (split_interval_left, find_interval, offset_intervals)
1454 (graft_intervals_into_buffer, copy_intervals)
1455 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
1456 (update_interval): Adjust prototypes.
1457
579c18d0
EZ
1458 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
1459 Use EMACS_INT for buffer position variables and arguments.
1460
1461 * composite.c (get_composition_id, find_composition)
1462 (run_composition_function, compose_text)
1463 (composition_gstring_width, autocmp_chars)
1464 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
1465 for buffer positions and string length variables and arguments.
1466
1467 * composite.h (get_composition_id, find_composition, compose_text)
1468 (composition_gstring_width): Adjust prototypes.
1469
1470 * editfns.c (Fformat): Use EMACS_INT for string size variables.
1471
1472 * xdisp.c (store_mode_line_noprop, display_mode_element): Use
1473 EMACS_INT for string positions.
1474
1475 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
1476 position arguments.
1477
1478 * intervals.h (get_property_and_range): Adjust prototype.
14162469
EZ
1479
1480 * character.c (parse_str_as_multibyte, str_as_multibyte)
1481 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
579c18d0
EZ
1482 (string_count_byte8, string_escape_byte8, c_string_width)
1483 (strwidth, lisp_string_width, multibyte_chars_in_text): Use
1484 EMACS_INT for string length variables and arguments.
14162469
EZ
1485
1486 * character.h (parse_str_as_multibyte, str_as_multibyte)
579c18d0
EZ
1487 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
1488 (c_string_width, strwidth, lisp_string_width): Adjust
14162469
EZ
1489 prototypes.
1490
579c18d0
EZ
1491 * font.c (font_intern_prop): Use EMACS_INT for string length
1492 variables.
1493
1494 * font.c (font_intern_prop): Use EMACS_INT for string length
1495 variables.
1496
14162469
EZ
1497 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
1498 variables.
1499
1500 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
1501 (Fmake_string): Protect against too large strings.
1502 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
1503 (live_misc_p): Use ptrdiff_t instead of int for pointer
1504 differences.
1505 (string_bytes, check_sblock, check_string_free_list)
1506 (allocate_string_data, compact_small_strings, Fmake_string)
1507 (Fmake_bool_vector, make_string, make_unibyte_string)
1508 (make_multibyte_string, make_string_from_bytes)
1509 (make_specified_string_string, Fmake_list, Fmake_vector): Use
1510 EMACS_INT for string length variables and arguments.
1511 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
1512 (Fpurecopy): Use EMACS_INT for string size.
1513 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
1514 for vector size.
1515
1516 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
1517 (make_string_from_bytes, make_specified_string_string)
579c18d0
EZ
1518 (make_pure_string, string_bytes, check_point_in_composition):
1519 Adjust prototypes.
14162469 1520
c8a66ab8
EZ
15212010-09-22 Eli Zaretskii <eliz@gnu.org>
1522
1523 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
1524 (check_translation): Use EMACS_INT for buffer positions and
1525 length.
1526
1527 * undo.c (record_marker_adjustment, record_delete)
1528 (record_change, record_point, record_insert)
1529 (record_property_change, Fprimitive_undo): Use EMACS_INT for
1530 buffer positions.
1531
1532 * lisp.h (record_marker_adjustment, record_delete)
1533 (record_change, record_point, record_insert)
1534 (record_property_change, Fprimitive_undo): Adjust prototypes.
1535
38c54d9d
JB
15362010-09-22 Juanma Barranquero <lekktu@gmail.com>
1537 Eli Zaretskii <eliz@gnu.org>
1538
1539 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
1540
413d18e7
EZ
15412010-09-22 Eli Zaretskii <eliz@gnu.org>
1542
1543 * minibuf.c (Fminibuffer_contents)
1544 (Fminibuffer_contents_no_properties)
1545 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
1546 positions.
1547
1548 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
1549 mark.
1550
1551 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
1552 (allocate_string_data): Accept EMACS_INT for string length.
1553
1554 * editfns.c (Ffield_string, Ffield_string_no_properties)
1555 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
1556 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
1557 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
1558 (Ffield_end): Use EMACS_INT for buffer positions.
1559
1560 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
1561 point with mark.
1562
1563 * lisp.h (allocate_string_data, make_uninit_string)
1564 (make_uninit_multibyte_string, make_buffer_string)
1565 (make_buffer_string_both): Adjust prototypes.
1566
4b9832a6
CY
15672010-09-22 Chong Yidong <cyd@stupidchicken.com>
1568
1569 * xml.c: Switch to GNU indentation.
1570 (make_dom): Change parse tree format to match xml.el.
1571 (Fxml_parse_html_string_internal): Rename from html-parse-string.
1572 (Fxml_parse_string_internal): Rename from xml-parse-string.
1573
86282aab
KH
15742010-09-22 Kenichi Handa <handa@m17n.org>
1575
1576 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
1577 only if we are not at a composition.
1578 (set_iterator_to_next): Give it->end_charpos to
1579 composition_compute_stop_pos.
1580 (set_iterator_to_next, next_element_from_buffer): Likewise.
1581
1582 * dispnew.c (buffer_posn_from_coords): Fix position when the
1583 current display element is a grapheme cluster in bidi-reordered
1584 region.
1585
840b985a
AR
15862010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
1587
1588 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
1589 the regions may overlap.
1590
5bc88f4b
JB
15912010-09-21 Juanma Barranquero <lekktu@gmail.com>
1592
1593 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
1594
92bc9a36
DN
15952010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
1596
d19e096e
DN
1597 * emacs.c: Do not include sys/ioctl.h, not needed.
1598
92bc9a36
DN
1599 * doprnt.c: Do not include stdlib.h, config.h does it.
1600 Move #include before macro definition.
1601
15f844ac
DN
16022010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
1603
48e24408
DN
1604 * Makefile.in (temacs): Link using $(CC) not $(LD).
1605 (LD_FIRSTFLAG): Define using autoconf.
1606 (LD): Remove.
1607
65539506
DN
1608 Remove HAVE_TERMIOS definitions.
1609 * s/usg5-4-common.h (HAVE_TERMIOS):
1610 * s/template.h (HAVE_TERMIOS):
1611 * s/gnu-linux.h (HAVE_TERMIOS):
1612 * s/darwin.h (HAVE_TERMIOS):
1613 * s/cygwin.h (HAVE_TERMIOS):
1614 * s/bsd-common.h (HAVE_TERMIOS):
1615 * s/aix4-2.h (HAVE_TERMIOS):
1616 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
1617 defined on all non-MS platforms.
1618 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
1619
15f844ac
DN
1620 * xterm.c (xt_action_hook): Use const.
1621
7d701334
JB
16222010-09-20 Juanma Barranquero <lekktu@gmail.com>
1623
1624 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
1625 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
1626 (gethostname) [!HAVE_SOCKETS]: Remove.
1627 (SOCK_REPLACE_HANDLE): Remove macro.
1628 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
1629 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
1630 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
1631 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
1632
f3ec267a
EZ
16332010-09-18 Eli Zaretskii <eliz@gnu.org>
1634
1635 * deps.mk (xml.o): Add dependencies.
1636
93acd23d
JB
1637 * xdisp.c (Fcurrent_bidi_paragraph_direction):
1638 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
bea4f10c
EZ
1639
1640 * bidi.c (bidi_paragraph_init): Accept an additional argument
1641 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
1642 search back until a paragraph with a strong directional character
1643 is found, and use that to determine paragraph's base direction.
1644
1645 * dispextern.h (bidi_paragraph_init): Update prototype.
1646
69e847be
EZ
16472010-09-17 Eli Zaretskii <eliz@gnu.org>
1648
1649 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
1650 of w32api >= 3.15. (Bug#6989)
1651
283357a7
LMI
16522010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
1653
1654 * process.c (wait_reading_process_output): Don't message about
1655 accept-process-output unless the time limit really is zero.
1656
4ddb20d6
SM
16572010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
1658
1659 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
1660 int/Lisp_Object mixup).
1661
e24ad6dd
J
16622010-09-17 Jan Djärv <jan.h.d@swipnet.se>
1663
1664 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
1665 not HELP.
1666
fb0cf781
J
16672010-09-17 Stephen Berman <stephen.berman@gmx.net>
1668
1669 * frame.c (Ftool_bar_pixel_width): New function to expose tool
1670 bar's pixel width to Lisp (Bug#7048).
1671
4ddb20d6
SM
16722010-09-14 Juanma Barranquero <lekktu@gmail.com>
1673
1674 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
fb0cf781 1675
318a04c6
J
16762010-09-17 Jan Djärv <jan.h.d@swipnet.se>
1677
1678 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
1679 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
1680
78a21772
KH
16812010-09-17 Kenichi Handa <handa@m17n.org>
1682
1683 * ftfont.c (ftfont_check_otf): Fix previous change.
1684
fa3f6039
KH
16852010-09-14 Kenichi Handa <handa@m17n.org>
1686
1687 * ftfont.c (ftfont_check_otf): Fix the case of checking just
1688 existence of GSUB or GPOS.
1689
2b5491fa
JB
16902010-09-14 Juanma Barranquero <lekktu@gmail.com>
1691
1692 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
1693
c97c655f
LMI
16942010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
1695
2b5491fa 1696 * xml.c (parse_buffer): Renamed to parse_string(), since that's
c97c655f
LMI
1697 what it does.
1698 (parse_string): Return nil when the document can't be parsed.
1699
6664fc59 17002010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5f61a25c
J
1701
1702 * xterm.c (get_current_vm_state): New function.
1703 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
1704 want_fullscreen so set_wm_state calls are few (Bug#7013).
1705 (x_handle_net_wm_state): Move code to get_current_vm_state and
1706 call that function.
1707
6664fc59 17082010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
1709
1710 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
1711
6664fc59 17122010-09-14 Kenichi Handa <handa@m17n.org>
a552b35a
KH
1713
1714 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
1715 we may use designation or locking-shift.
1716
6664fc59 17172010-09-14 Kenichi Handa <handa@m17n.org>
396475b7
KH
1718
1719 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
1720 sequence when the source is multibyte.
1721
1da70e99
AS
17222010-09-14 Andreas Schwab <schwab@linux-m68k.org>
1723
6664fc59
JB
1724 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
1725 Don't make first argument optional. Doc fix.
1da70e99 1726
26632d8d
LMI
17272010-09-14 Leo <sdl.web@gmail.com> (tiny change)
1728
1729 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
1730 parameters for the doc string.
1731
21fa8e37
LMI
17322010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
1733
1734 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
1735
5616cc54
SM
17362010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1737
1738 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
1739 (syms_of_fns): Don't defsubr Sy_or_n_p.
1740 * lisp.h: Don't declare Fy_or_n_p.
1741 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
1742
381408e2
LMI
17432010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
1744
1745 * xml.c (Fxml_parse_buffer): New function to parse XML files.
1746
17472010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
1748
1749 * xml.c: New file.
1750 (Fhtml_parse_buffer): New function to interface to the libxml2
1751 html parsing function.
1752
733946e7
JB
17532010-09-05 Juanma Barranquero <lekktu@gmail.com>
1754
1755 * biditype.h: Regenerate.
1756
7574650a
AS
17572010-09-04 Andreas Schwab <schwab@linux-m68k.org>
1758
1759 * nsimage.m (ns_load_image): Check argument types.
1760
1761 * image.c: Remove all uses of gcpro.
1762 (xpm_load): Check all lisp types.
1763 (pbm_load): Likewise.
1764 (png_load): Likewise.
1765 (jpeg_load): Likewise.
1766 (tiff_load): Likewise.
1767 (gif_load): Likewise.
1768 (imagemagick_load_image): Likewise.
1769 (imagemagick_load): Likewise.
1770 (svg_load): Likewise.
1771 (gs_load): Likewise.
1772
6e6b8e25
EZ
17732010-09-04 Eli Zaretskii <eliz@gnu.org>
1774
1775 * w32uniscribe.c (uniscribe_shape): Update commentary. Don't
1776 try to reorder grapheme clusters, since LGSTRING should always
1777 hold them in the logical order.
1778 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
1779 return glyph codes in the logical order.
1780
dbfe4532
AS
17812010-09-04 Andreas Schwab <schwab@linux-m68k.org>
1782
1783 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
b7d187f8 1784 (imagemagick_load_image): Fix type mismatch.
5e5992c2 1785 (Fimagemagick_types): Likewise. Doc fix.
dbfe4532 1786
6d7cc563
JD
17872010-09-02 Jan Djärv <jan.h.d@swipnet.se>
1788
1789 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
1790
1791 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
1792
1793 * xselect.c: Remove declaration of cut-buffer objects and functions.
1794 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
1795 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
1796 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
1797 (Fx_rotate_cut_buffers_internal): Remove.
1798 (syms_of_xselect): Remove defsubr of above.
1799 Remove intern of QCUT_BUFFERn.
1800
8f4e9110
SM
18012010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
1802
1803 * cmds.c (Vblink_paren_function): Remove.
1804 (internal_self_insert): Make it insert N chars at a time.
1805 Don't call blink-paren-function.
1806 (Fself_insert_command): Adjust accordingly.
1807 (syms_of_cmds): Don't declare blink-paren-function.
1808
d419e1d9
KH
18092010-08-31 Kenichi Handa <handa@m17n.org>
1810
1811 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
1812 characters.
1813
1814 * term.c (encode_terminal_code): Fix the previous change.
5616cc54
SM
1815 (produce_glyphs): Don't set it->char_to_display here.
1816 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
1817 (produce_special_glyphs): Set temp_it.char_to_display before
1818 calling produce_glyphs.
1819
1820 * xdisp.c (get_next_display_element): Set it->char_to_display
1821 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
1822 characters.
1823 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
1824 calling PRODUCE_GLYPHS.
1825 (append_space_for_newline): Save and store it->char_to_display.
1826 Set it->char_to_display before calling PRODUCE_GLYPHS.
1827 (extend_face_to_end_of_line): Set it->char_to_display before
1828 calling PRODUCE_GLYPHS.
1829 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
1830 character to its byte value.
1831 (get_char_glyph_code): New function.
1832 (produce_stretch_glyph): Set it2.char_to_display too before
1833 calling x_produce_glyphs.
1834 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
1835 non-ASCII characters. Don't set it->char_to_display here.
1836 Don't handle unibyte-display-via-language-environment here. For a
2b5491fa 1837 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 1838
b819f760
SM
18392010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
1840
1841 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
1842
07fa68a7
CY
18432010-08-31 Chong Yidong <cyd@stupidchicken.com>
1844
1845 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
1846
cd196f12
SM
18472010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
1848
1849 * marker.c (Fcopy_marker): Make the first arg optional.
1850
49a752bb
KH
18512010-08-30 Kenichi Handa <handa@m17n.org>
1852
1853 * composite.c (composition_update_it): Fix computing of
1854 cmp_it->width.
1855
769ae9e1
KH
18562010-08-29 Kenichi Handa <handa@m17n.org>
1857
9e69cb05 1858 * term.c (encode_terminal_code): Encode byte chars to the
5616cc54 1859 corresponding bytes.
9e69cb05 1860
4520b858
J
18612010-08-29 Jan Djärv <jan.h.d@swipnet.se>
1862
1863 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
1864
fe50eb41
KH
18652010-08-26 Kenichi Handa <handa@m17n.org>
1866
1867 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
1868 on calling composition_compute_stop_pos.
1869
f6aa6ec6
KH
18702010-08-25 Kenichi Handa <handa@m17n.org>
1871
9dfdbc0a
KH
1872 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
1873 :otf.
1874
f6aa6ec6
KH
1875 * composite.c (composition_compute_stop_pos): Don't break
1876 composition at PT.
1877 (composition_reseat_it): Likewise. Fix calculation of character
1878 position starting a composition.
1879 (Fcomposition_get_gstring): Don't limit the number of components
1880 for automatic composition.
1881
ff94e32c
KH
18822010-08-25 Kenichi Handa <handa@m17n.org>
1883
1884 * composite.c (composition_compute_stop_pos): In forward search,
1885 pay attention to the possibility that some character after ENDPOS
1886 will be composed with charactrs before ENDPOS.
1887
1c409d0b
CY
18882010-08-24 Chong Yidong <cyd@stupidchicken.com>
1889
1890 * keyboard.c (command_loop_1): Don't clobber primary selection
1891 during handle-switch-frame (Bug#6872).
1892
0c372655
MA
18932010-08-23 Michael Albinus <michael.albinus@gmx.de>
1894
1895 * dbusbind.c: Accept UNIX domain sockets as bus address.
1896 (Fdbus_close_bus): New function.
1897 (Vdbus_registered_buses): New variable.
1898 (xd_initialize): Implement string as bus address.
1899 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
1900 (Fdbus_get_unique_name, Fdbus_call_method)
1901 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1902 (Fdbus_method_error_internal, Fdbus_send_signal)
1903 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
1904 check. This is done in xd_initialize_bus. Adapt doc string, if
1905 necessary.
1906 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
1907 Vdbus_registered_buses.
1908 (Vdbus_registered_objects_table): Create hash.
1909
7133b7ee
JL
19102010-08-22 Juri Linkov <juri@jurta.org>
1911
1912 * keyboard.c (Fexecute_extended_command): Move reading a command name
1913 with `completing-read' to a new Elisp function `read-extended-command'.
1914 Call it to read a command to `function' (bug#5364, bug#5214).
1915
198a7a97
CY
19162010-08-22 Chong Yidong <cyd@stupidchicken.com>
1917
1918 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
1919
b0126eac 19202010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
1921
1922 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
1923 instead of SAFE_ALLOCA.
1924
b0126eac 19252010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
1926
1927 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
1928 (Bug#6214).
1929
b0126eac 19302010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
1931
1932 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
1933
b0126eac
CY
19342010-08-22 Jan Djärv <jan.h.d@swipnet.se>
1935
1936 * doc.c (Fsnarf_documentation): Initialize skip_file before
1937 build-files test.
1938
692f3ddc 19392010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 1940
692f3ddc
JB
1941 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
1942 New definitions.
b0126eac
CY
1943 (HAVE_TERMIO): Remove.
1944
5f2f0bc1
EZ
19452010-08-22 Eli Zaretskii <eliz@gnu.org>
1946
b613941b
EZ
1947 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
1948
a583bbef
EZ
1949 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
1950 for w32.
1951
1952 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
1953 it's done in nt/config.nt.
1954
1955 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
1956
5f2f0bc1
EZ
1957 * unexcoff.c (report_error, make_hdr, write_segment)
1958 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
1959 Convert argument lists and prototypes to ANSI C.
1960 (make_hdr, write_segment): Remove unused variables.
1961 (unexec): Remove commented-out line. Initialize `new' to shut up
1962 compiler warnings.
1963
a7ebc409
DN
19642010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
1965
1966 Simplify termio code.
1967 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
1968 HAVE_TERMIO code is obsolete.
1969 Replace HAVE_TERMIOS conditionals with !DOS_NT.
1970 * systty.h: Do not define HAVE_TCATTR.
1971 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
1972 Do not define EMACS_HAVE_TTY_PGRP. Only define
1973 EMACS_GET_TTY_PGRP for !DOS_NT.
1974 * sysdep.c: Include sysselect.h unconditionally. Do not include
1975 sys/ioctl.h and termios.h, systty.h does it. Use
1976 HAVE_SYS_UTSNAME_H instead of USG as an include guard.
1977 (init_baud_rate): Remove HAVE_TERMIO code.
1978 (child_setup_tty): Remove HAVE_TERMIO code.
1979 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
1980 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
1981 (new_ltchars, new_tchars): Remove, unused.
1982 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
1983 code. Remove special casing for __mips__, it was a no-op. Remove
1984 HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
1985 (init_sys_modes): Remove HPUX special case.
1986 * process.c: Include stdlib.h unconditionally. Do not include
1987 fcntl.h, systty.h does it. Remove conditional code for
1988 HAVE_SERIAL, it is always true.
1989 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
1990 always true when SIGNALS_VIA_CHARACTERS is true.
1991 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
1992 !WINDOWSNT means HAVE_TERMIOS.
1993 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
1994 conditional, which is true for all HAVE_TERMIOS systems.
1995 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
1996 instead of HAVE_TERMIOS.
1997 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
1998 EMACS_HAVE_TTY_PGRP.
1999 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
2000 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
2001 anyway.
2002
914f049b 20032010-08-21 Eli Zaretskii <eliz@gnu.org>
40629f17
EZ
2004
2005 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
2006 mirroring pixel positions.
2007
d931da8c
DN
20082010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
2009
b5c76d0c
DN
2010 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
2011 write only.
2012 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
2013 malloc_sbrk_used, nothing uses them.
2014
74815588
DN
2015 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
2016 defined, unconditionally defined in lisp.h.
2017
f5817d1c
DN
2018 * term.c: Do not include <termios.h>, systty.h does it.
2019
d931da8c
DN
2020 * s/unixware.h (HAVE_TCATTR):
2021 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
2022 systty.h defines it when HAVE_TERMIOS is defined.
2023
ff2de6d2 20242010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 2025
b43c883c 2026 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 2027 terminals: add one-character offset for R2L lines.
b43c883c 2028
491a1546
EZ
2029 * emacs.c <emacs_version>: Add a comment regarding
2030 msdos/mainmake.v2's dependency on the syntax of this declaration.
2031
2396cbba
EZ
20322010-08-20 Eli Zaretskii <eliz@gnu.org>
2033
2034 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
2035 position for R2L lines by mirroring the pixel position wrt the
2036 text are box. Improve commentary.
2037
7df6150a
AS
20382010-08-20 Andreas Schwab <schwab@linux-m68k.org>
2039
2040 * image.c (imagemagick_clear_image): Remove debugging output.
2041
a2e5caf7
SM
20422010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2043
2044 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
2045 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
2046 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
2047 self-insert-face.
2048 (syms_of_cmds): Initialize the new vars.
2049
20d60baf
JR
20502010-08-19 Jason Rumney <jasonr@gnu.org>
2051
cc477da7
JR
2052 * w32menu.c (set_frame_menubar): Remove call to undefined function.
2053
20d60baf
JR
2054 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
2055
2c0ac867
J
20562010-08-19 Jan Djärv <jan.h.d@swipnet.se>
2057
2058 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
2059
93352106
EZ
20602010-08-18 Eli Zaretskii <eliz@gnu.org>
2061
2062 * xterm.c (x_draw_bar_cursor):
2063 * w32term.c (x_draw_bar_cursor): If the character under cursor is
2064 R2L, draw the bar cursor on its right rather than on its left.
2065
c785836d
SM
20662010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
2067
0193499f
SM
2068 * eval.c (Fdefmacro): Only obey one declaration.
2069
c785836d
SM
2070 * casefiddle.c (casify_region): Setup gl_state.
2071
9cb728a5
J
20722010-08-18 Jan Djärv <jan.h.d@swipnet.se>
2073
2074 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
2075
e1e18511
J
20762010-08-18 Jan Djärv <jan.h.d@swipnet.se>
2077
1d77b63e 2078 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
e1e18511 2079
64cb6c78
J
20802010-08-18 David De La Harpe Golden <david@harpegolden.net>
2081
2082 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
2083 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
2084 QPRIMARY => NXPrimaryPboard.
2085 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
2086 NXPrimaryPboard => QPRIMARY.
2087 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
2088 NXSecondaryPboard = SecondarySelection.
2089 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
2090
0c9b8993
GM
20912010-08-18 Joakim Verona <joakim@verona.se>
2092
2093 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
2094 defined:
2095 (imagemagick_image_p): New function to test for ImageMagic image.
2096 (imagemagick_load): New function to load ImageMagick image.
2097 (imagemagick_load_image): New function, helper for imagemagick_load.
2098 (imagemagick-types): New function.
2099 (Qimagemagick): New Lisp_object.
2100 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 2101
c3554f68
SM
21022010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
2103
2104 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
2105 is a string.
2106
1ff2e434
J
21072010-08-17 Jan Djärv <jan.h.d@swipnet.se>
2108
2109 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
2110 x_set_tool_bar_position handler.
2111
0cc56427
EZ
21122010-08-17 Eli Zaretskii <eliz@gnu.org>
2113
2114 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
2115 x_set_tool_bar_position handler, needed to support changes from
2116 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
2117
e45a249b
JD
21182010-08-16 Jan Djärv <jan.h.d@swipnet.se>
2119
921242c6
J
2120 * nsselect.m: include keyboard.h for QPRIMARY, remove its
2121 declaration (Bug#6863).
573d150b 2122 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 2123
e45a249b
JD
2124 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
2125
2126 * keyboard.h (QPRIMARY): Declare (Bug#6864).
2127
7c23dd44
CY
21282010-08-16 Chong Yidong <cyd@stupidchicken.com>
2129
2130 * keyboard.c (command_loop_1): Avoid setting selection twice,
2131 since it's done in deactivate-mark as well.
2132 (Vselect_active_regions): Change default to t. Replace `lazy'
2133 with non-default value `only', meaning only set PRIMARY for
2134 temporarily active regions.
2135
2136 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
2137 select-active-regions.
2138
0005830c
J
21392010-08-15 Jan Djärv <jan.h.d@swipnet.se>
2140
2141 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
2142 isn't a string.
2143
603dfc72
AS
21442010-08-15 Andreas Schwab <schwab@linux-m68k.org>
2145
2146 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
2147
c25ce9d0
J
21482010-08-15 Jan Djärv <jan.h.d@swipnet.se>
2149
c3554f68
SM
2150 * keyboard.c (parse_tool_bar_item): malloc buf.
2151 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
2152 new_lbl (Bug#6855).
c25ce9d0 2153
5872c762
EZ
21542010-08-14 Eli Zaretskii <eliz@gnu.org>
2155
b236615c
EZ
2156 * xterm.c (x_draw_stretch_glyph_string):
2157 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
2158 the cursor on the right edge of the stretch glyph.
2159
c3554f68
SM
2160 * xdisp.c (window_box_right_offset, window_box_right):
2161 Fix commentary.
b236615c 2162
5872c762
EZ
2163 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
2164 direction when point is inside a run of whitespace characters.
2165
2166 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
2167
e66f9a1b
JR
21682010-08-14 Jason Rumney <jasonr@gnu.org>
2169
2170 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
2171
79d6f59e
CY
21722010-08-14 Chong Yidong <cyd@stupidchicken.com>
2173
2174 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
2175
1c9b4129
JR
21762010-08-13 Jason Rumney <jasonr@gnu.org>
2177
2178 * w32menu.c (simple_dialog_show): Use unicode message box if available.
2179 (MessageBoxW_Proc): New function typedef.
2180 (unicode-message-box): New function pointer.
2181 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
2182
2b4e6277
J
21832010-08-13 Jan Djärv <jan.h.d@swipnet.se>
2184
2185 * frame.h (Qtool_bar_position): Declare.
2186
2187 * xfns.c (Fx_create_frame): Call x_default_parameter for
2188 Qtool_bar_position.
2189
94c97d85
EZ
21902010-08-13 Eli Zaretskii <eliz@gnu.org>
2191
8ee81892
EZ
2192 * unexcoff.c: Remove the parts used when "emacs" is not defined.
2193 (report_error, report_error_1): Ditto.
2194 (write_segment): Remove "#if 0" unused code.
2195 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
2196 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
2197 (start_of_text): Remove unused function (was used only if NO_REMAP
2198 was NOT defined).
2199
891ef8f7
EZ
2200 * msdos.c (IT_set_face): Fix format string to match argument
2201 types.
2202 (IT_write_glyphs, IT_note_mode_line_highlight)
2203 (IT_set_frame_parameters): Remove unused variables.
2204 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
2205 (IT_set_terminal_modes): Disambiguate expression in if clause.
2206 (Fmsdos_remember_default_colors): Return Qnil.
2207 (IT_set_frame_parameters): Add parens to disambiguate boolean
2208 expression for logging the cursor type to termscript.
2209 (keyboard_layout_list, keypad_translate_map)
2210 (grey_key_translate_map): Add braces in inner initializers.
2211 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
2212 (dos_rawgetc): Remove unused label.
2213 (XMenuActivate): Add braces to remove ambiguous `else'.
2214 (dos_ttraw): Always return a value.
2215 (spawnve): Declare.
2216 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
2217
2218 * dosfns.h (x_set_title): Declare.
2219
2220 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
2221 Remove unused variables.
2222
2223 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
2224 variables.
2225 (init_dosfns): Declare get_lim_data.
2226 (system_process_attributes): Declare Fget_internal_run_time.
2227
38e41e0e
EZ
2228 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
2229 list to be consistent with menu.h.
2230
94c97d85
EZ
2231 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
2232 warnings due to mixing of "char *" and "const char *".
2233
c5683ceb
SM
22342010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
2235
2236 Introduce a new comment style "c" flag.
2237 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
2238 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
2239 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
2240 (syntax_prefix_flag_p): New function.
2241 (Fstring_to_syntax): Understand new "c" flag.
2242 (Finternal_describe_syntax_value): Recognize new flag; use the
2243 SYNTAX_FLAGS_* macros.
2244 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
2245 comment style to accomodate the new styles.
2246 (back_comment, forw_comment, Fforward_comment, scan_lists)
2247 (scan_sexps_forward): Update code to obey the new comment style flag.
2248
2249 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
2250
2251 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
2252
7aee76f4
J
22532010-08-11 Jan Djärv <jan.h.d@swipnet.se>
2254
3a46642b
J
2255 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
2256 first.
94dff98f 2257 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
2258
2259 * gtkutil.h (xg_check_special_colors): Declare.
2260
2261 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
2262 (xg_create_frame_widgets): Connect theme name changes to
2263 style_changed_cb.
2264
42ca4633
J
2265 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
2266 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
2267 (x_term_init): Use char[] display_opt and name_opt instead of
93acd23d 2268 string literal. file is const char*.
42ca4633
J
2269
2270 * xsmfns.c (NOSPLASH_OPT): Change to char[].
2271 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
2272 props. Free them at the end.
2273
2274 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
2275
c5683ceb
SM
2276 * xrdb.c (get_system_app): Make path const and use char *p for
2277 non-const char.
42ca4633
J
2278
2279 * xmenu.c (Fx_popup_dialog): error_name is const char*.
93acd23d 2280 (xmenu_show): error parameter is const char **. pane_string is const
42ca4633
J
2281 char *.
2282 (button_names): Is const char *.
2283 (xdialog_show): error_name and pane_string is const.
2284
2285 * process.h (synch_process_death): Is const char*.
2286
2287 * w32menu.c (w32_menu_show):
2288 * nsmenu.m (ns_menu_show): error parameter is const char **.
2289
2290 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
2291 is const char **.
2292
2293 * menu.c (Fx_popup_menu): error_name is const.
2294
2295 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
2296 with unsigned char and XtPointer with void *.
2297
2298 * gtkutil.h: Replace widget_value with struct _widget_value.
2299 (enum button_type, struct _widget_value): Remove and use the one from
2300 keyboard.h.
2301
2302 * gtkutil.c (get_utf8_string): Always return an allocated string.
2303 Parameter is const.
2304 (create_dialog, xg_create_one_menuitem, create_menus)
2305 (xg_item_label_same_p, xg_update_menu_item): Free result from
2306 get_utf8_string.
2307 (xg_separator_p, xg_item_label_same_p): label is const.
2308
2309 * font.h (font_open_by_name): Make name const.
2310
2311 * font.c (font_open_by_name): Make name const.
2312
2313 * floatfns.c (matherr): Use a const char* variable for x->name.
2314
2315 * emacs.c (main): Pass char[] to putenv instead of literal.
2316
2317 * callproc.c (synch_process_death): Make const.
2318 (Fcall_process): Make signame const.
2319
9c5bd55a
J
2320 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
2321 (addDisplayItemWithImage): Use const char*.
2322
2323 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
2324 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
2325
2326 * nsfont.m (ns_descriptor_to_entity): Use const char*.
2327
2328 * keyboard.h (_widget_value): name, value and key are const char*.
2329
7aee76f4
J
2330 * unexmacosx.c (unexec_error): Use const char *.
2331
09d93395
DN
23322010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
2333
2334 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 2335 (font_parse_name, font_open_by_name):
09d93395 2336 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 2337 (font_parse_name, font_open_by_name): Remove const.
09d93395 2338
671d409f
AS
23392010-08-09 Andreas Schwab <schwab@linux-m68k.org>
2340
2341 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
2342 definition.
2343
2344 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
2345 * m/amdx86-64.h: Likewise.
2346 * m/arm.h: Likewise.
2347 * m/hp800.h: Likewise.
2348 * m/ia64.h: Likewise.
2349 * m/ibmrs6000.h: Likewise.
2350 * m/ibms390.h: Likewise.
2351 * m/intel386.h: Likewise.
2352 * m/iris4d.h: Likewise.
2353 * m/m68k.h: Likewise.
2354 * m/macppc.h: Likewise.
2355 * m/mips.h: Likewise.
2356 * m/sh3.h: Likewise.
2357 * m/sparc.h: Likewise.
2358 * m/template.h: Likewise.
2359 * m/vax.h: Likewise.
2360 * m/xtensa.h: Likewise.
2361 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
2362 WORDS_BIG_ENDIAN.
2363 * lisp.h: Likewise.
2364 * md5.c: Likewise.
2365 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
2366
8ea90aa3
DN
23672010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
2368
2369 Use const char* instead of char*.
2370 Reduce the number of warnings with -Wwrite-strings.
2371 * xrdb.c (get_environ_db, get_system_name):
2372 * unexelf.c (find_section):
2373 * term.c (string_cost, string_cost_one_line, per_line_cost)
2374 (get_named_tty, init_tty):
2375 * sysdep.c (sys_subshell):
2376 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
2377 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
2378 * search.c (Freplace_match):
2379 * process.c (Fmake_network_process, send_process, init_process):
2380 * lread.c (Fload, init_lread):
2381 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
2382 * keyboard.c (parse_tool_bar_item, struct event_head):
2383 * gtkutil.h (xg_get_font_name):
2384 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
2385 (make_widget_for_menu_item, make_menu_item, create_menus)
2386 (xg_make_tool_item):
2387 * font.c (parse_matrix, font_parse_name):
2388 * floatfns.c (rounding_driver, float_error_fn_name):
2389 * filelock.c (get_boot_time_1, lock_file_1):
2390 * fileio.c (barf_or_query_if_file_exists, check_writable):
2391 * editfns.c (get_system_name, get_operating_system_release)
2392 (Fencode_time, Fset_time_zone_rule):
2393 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
2394 * buffer.c (defvar_per_buffer): Use const.
2395
7815fe19 23962010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 2397
692f3ddc 2398 * charset.c: Include <stdlib.h>.
7a84eee5
KH
2399 (struct charset_sort_data): New struct.
2400 (charset_compare): New function.
692f3ddc 2401 (Fsort_charsets): New function.
7a84eee5
KH
2402 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
2403
2404 * coding.c (decode_coding_iso_2022): Fix checking of dimension
2405 number in CTEXT extended segment.
2406
7815fe19 24072010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
2408
2409 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
2410 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
2411
7815fe19 24122010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
2413
2414 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
2415 (Fhash_table_size): Fix typos in docstrings.
2416 (Fmake_hash_table): Doc fix.
2417
7815fe19 24182010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
2419
2420 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
2421 Doc fix (bug#5625).
2422
7815fe19 24232010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
2424
2425 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
2426 the MSDOS definition.
2427
1b6d8cf0
DN
24282010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
2429
675e2c69
DN
2430 Use const char* instead of char*.
2431 * xterm.c (x_create_toolkit_scroll_bar):
2432 * xfont.c (xfont_list_pattern):
2433 * xfns.c (x_default_scroll_bar_color_parameter)
2434 (xic_create_fontsetname, x_default_font_parameter)
2435 (x_screen_planes):
2436 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
2437 (store_mode_line_string, decode_mode_spec, display_string):
2438 * menu.c (digest_single_submenu):
2439 * keymap.h (initial_define_key, initial_define_lispy_key):
2440 * keymap.c (initial_define_key, initial_define_lispy_key):
2441 * image.c (image_error, image_keyword):
2442 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
2443 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
2444 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
2445 (ftfont_list, ftfont_match):
2446 * frame.c (frame_parm_table):
2447 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
2448 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
2449 (font_add_log, font_deferred_log):
2450 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
2451 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
2452 (font_add_log, font_deferred_log):
2453 * emacs.c (argmatch):
2454 * dispextern.h (struct it):
2455 * coding.c (ENCODE_DESIGNATION):
2456 * charset.c (define_charset_internal): Use const.
2457
25717ca1
DN
2458 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
2459
c5683ceb
SM
2460 * xrdb.c: Remove include guard.
2461 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
2462 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
2463 realloc->xrealloc instead of using #defines.
2464
efb41e21
EZ
24652010-08-08 Eli Zaretskii <eliz@gnu.org>
2466
cd21226d 2467 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
2468 * editfns.c (Fline_beginning_position, Fline_end_position):
2469 State in the doc strings that start and end of line are in the
2470 logical order.
cd21226d 2471
efb41e21
EZ
2472 * xdisp.c (display_line): Move the handling of overlay arrow after
2473 the call to find_row_edges. (Bug#6699)
2474
746812d9
CY
24752010-08-07 Chong Yidong <cyd@stupidchicken.com>
2476
2477 * keyboard.c (command_loop_1):
2478 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
2479
9852377f
CY
24802010-08-07 Chong Yidong <cyd@stupidchicken.com>
2481
2482 * insdel.c (prepare_to_modify_buffer): Save active region text to
2483 Vsaved_region_selection.
2484
2485 * xselect.c (QPRIMARY): Move to keyboard.c.
2486
2487 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
2488 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
2489 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 2490
0e9c8657
JB
24912010-08-07 Juanma Barranquero <lekktu@gmail.com>
2492
2493 * alloc.c (lisp_malloc):
2494 * buffer.c (set_buffer_internal, set_buffer_internal_1):
2495 * charset.h (emacs_mule_charset):
2496 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
2497 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
2498 (bitch_at_user):
2499 * lisp.h (Fcheck_coding_system, Fget_text_property)
2500 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
2501 Remove duplicate declarations.
2502
648801d1
DN
25032010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
2504
32bc6709
DN
2505 * process.c: Simplify include logic.
2506
3ef1d108
DN
2507 * keyboard.h (quit_char): Add declaration.
2508 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
2509 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
2510 Add declarations.
3ef1d108
DN
2511 * sysdep.c:
2512 * w32.c: Remove the above declarations.
2513
97ec208f
DN
2514 Remove extern declarations in .c files, .h files have them.
2515 * xterm.c:
2516 * xdisp.c:
97ec208f
DN
2517 * msdos.c:
2518 * image.c:
2519 * gtkutil.c:
2520 * fileio.c:
2521 * eval.c: Remove declarations.
2522
94eed851
DN
2523 * frame.c (frame_params): Make const.
2524
36e053eb
DN
2525 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
2526
0e843971
DN
2527 * emacs.c (emacs_copyright, emacs_version): Make static.
2528 (Vinitial_window_system, Vauto_save_list_file_name)
2529 (Vinhibit_redisplay): Remove declarations.
2530 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
2531 for AIX.
2532
648801d1
DN
2533 Use const for some arrays and functions.
2534 * xterm.h (xg_set_icon_from_xpm_data):
2535 * xfns.c (xg_set_icon_from_xpm_data):
2536 * term.c (fkeys):
2537 * keyboard.c (lispy_accent_keys, lispy_function_keys)
2538 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
2539 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
2540 (frame.c frame_parms):
2541 * emacs-icon.h (gnu_xpm_bits):
2542 * callint.c (callint_argfuns): Use const.
2543
8646d999
J
25442010-08-06 Jan Djärv <jan.h.d@swipnet.se>
2545
2546 * sysdep.c: Move include term.h last of includes (Bug#6812).
2547
cb4545ad
EZ
25482010-08-06 Eli Zaretskii <eliz@gnu.org>
2549
2550 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
2551
2552 * msdos.c (IT_display_cursor): Log cursor position on termscript.
2553
2554 * .gdbinit (pgx): Display the avoid_cursor_p flag.
2555
da7e2be6
JB
25562010-08-06 Juanma Barranquero <lekktu@gmail.com>
2557
2558 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
2559
3d608a86
J
25602010-08-06 Jan Djärv <jan.h.d@swipnet.se>
2561
7908fb60
J
2562 * xterm.h (x_get_focus_frame): Declare.
2563
2564 * keyboard.h (poll_for_input_1): Unconditionally declare.
2565
4094bf36
J
2566 * nsterm.h (x_set_menu_bar_lines): Declare.
2567
2568 * window.c: Don't include menu.h, it depends on lots of other .h-files.
2569
3d608a86
J
2570 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
2571
2572 * window.c: Include menu.h.
2573
2574 * unexmacosx.c (print_region_list, print_regions)
2575 (build_region_list, find_emacs_zone_regions)
2576 (unexec_regions_merge, read_load_commands, dump_it)
2577 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
2578
2579 * term.c: Check HAVE_SYS_IOCTL_H.
2580
686b968e 2581 * sysdep.c: Check HAVE_TERM_H.
3d608a86 2582
686b968e 2583 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
2584
2585 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
2586 (ns_ring_bell, ns_defined_color, hide_hourglass)
2587 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
2588 Convert to ANSI C prototypes.
2589 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
2590 before code.
2591
2592 * nsterm.h : Include sysselect.h.
2593 (x_sync, x_get_focus_frame, x_set_mouse_position)
2594 (x_set_mouse_pixel_position, x_make_frame_visible)
2595 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
2596 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
2597 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
2598 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 2599 Declare.
3d608a86
J
2600
2601 * nsmenu.m (popup_activated, name_is_separator)
2602 (syms_of_nsmenu): Convert to ANSI C prototypes.
2603 (runMenuAt): Prototypes and move declarations before code.
2604
2605 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
2606
2607 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
2608 prototypes.
2609
2610 * nsfns.m (have_menus_p, ns_display_info_for_name)
2611 (x_set_cursor_type, ns_appkit_version_str)
2612 (ns_appkit_version_int, ns_do_applescript)
2613 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
2614 (syms_of_nsfns): Convert to ANSI C prototypes.
2615
2616 * menu.h (x_set_menu_bar_line): Declare.
2617 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
2618
2619 * lisp.h (fmod_float): Declare.
2620
2621 * image.c (xpm_scan, xpm_make_color_table_v)
2622 (xpm_put_color_table_v, xpm_get_color_table_v)
2623 (xpm_make_color_table_h, xpm_put_color_table_h)
2624 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
2625 (xpm_load): Convert to ANSI C prototypes.
2626
2627 * emacs.c: Include nsterm.h if HAVE_NS.
2628
2629 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
2630
fce70521
DN
26312010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
2632
2633 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
2634 subprocesses, only MSDOS does not define HAVE_SOCKETS.
2635 (socket_options): Use const char* for name.
2636
a11889ab
JB
26372010-08-06 Juanma Barranquero <lekktu@gmail.com>
2638
2639 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
2640
2641 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
2642 Don't declare xmalloc_widget_value and digest_single_submenu.
2643
2644 * w32font.c (Qlatin): Remove declaration.
2645
2646 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
2647
c95b508f 2648 * dired.c (compile_pattern): Restore declaration.
a11889ab 2649
6254cdda
DN
26502010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
2651
04bab72c
DN
2652 Remove extern declarations in .c files, .h files have them.
2653 * data.c:
2654 * dired.c:
2655 * editfns.c:
2656 * filelock.c:
2657 * fns.c:
2658 * font.c:
2659 * fontset.c:
2660 * frame.c:
2661 * fringe.c:
2662 * ftfont.c:
2663 * gtkutil.c:
2664 * indent.c:
2665 * keyboard.c:
2666 * keymap.c:
2667 * lread.c:
2668 * menu.c:
2669 * print.c:
2670 * search.c:
2671 * sound.c:
2672 * window.c:
2673 * xdisp.c:
2674 * xfaces.c:
2675 * xfns.c:
2676 * xfont.c:
2677 * xftfont.c:
2678 * xmenu.c:
2679 * xterm.c: Remove declarations.
2680
dff94ed5
DN
2681 Cleanup syssignal.h.
2682 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
2683 (main_thread): Move down to remove #ifdef.
2684 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
2685 Remove conditional definition following unconditional ones.
2686
99f3388e
DN
2687 * lisp.h: Remove HAVE_SHM code, unused.
2688 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
2689 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
2690 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
2691 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
2692 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
2693 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
2694 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
2695 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
2696 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
2697 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
2698 (Qwindow_scroll_functions, Vafter_load_alist)
2699 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
2700 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
2701 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
2702 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
2703 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
2704 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
2705 (initial_argv, last_nonmenu_event, load_in_progress)
2706 (noninteractive_need_newline, scroll_margin): Add declarations.
2707
2708 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
2709 declarations, menu.h has them.
2710 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
2711 (Vinput_method_function, Qinput_method_function)
2712 (Qevent_symbol_element_mask, last_event_timestamp):
2713 * dispextern.h (Voverflow_newline_into_fringe):
2714 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
2715 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
2716 (syms_of_w32font, syms_of_nsfont):
2717 * fontset.h (find_font_encoding, Qlatin):
2718 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
2719 (Vtool_bar_mode, set_frame_menubar):
2720 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
2721 * xterm.h (Qx_gtk_map_stock):
2722 * keymap.h (meta_prefix_char): Add declarations.
2723
9f5dd6f2
DN
2724 * term.c: Remove dead code.
2725
6254cdda
DN
2726 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
2727 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
2728 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
2729 which is what was there before BSD_PGRPS was removed.
2730
29cf3e20
EZ
27312010-08-05 Eli Zaretskii <eliz@gnu.org>
2732
2733 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
2734
2735 * unexcoff.c: Renamed from unexec.c.
2736
aaa0a19a
SM
27372010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
2738
2739 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
2740
8d1d9587
JB
27412010-08-03 Johan Bockgård <bojohan@gnu.org>
2742
2743 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 2744 (Bug#6744)
8d1d9587 2745
9a747ba6
JD
27462010-08-02 Jan Djärv <jan.h.d@swipnet.se>
2747
4d464ae4
JD
2748 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
2749 to TRUE if depth of screen is < 16.
2750
ac01763e
JD
2751 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
2752 USE_GTK_TOOLTIP.
e0d62a9b
JB
2753 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
2754 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 2755 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
2756 USE_GTK_TOOLTIP.
2757 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
2758
2759 * xterm.h (USE_GTK_TOOLTIP): New define.
2760 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
2761
9a747ba6
JD
2762 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
2763 to Control-D (Bug#6771).
2764
7b0815ba
JB
27652010-08-02 Juanma Barranquero <lekktu@gmail.com>
2766
2767 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
2768 Wording by Drew Adams <drew.adams@oracle.com>.
2769
aa1859f5
J
27702010-08-01 Jan Djärv <jan.h.d@swipnet.se>
2771
2772 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
2773 ttip_lbl.
2774
2775 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
2776 calling gtk_widget_queue_draw.
2777 (x_free_frame_resources): Call xg_free_frame_widgets.
2778
2779 * xfns.c (x_gtk_use_system_tooltips): New variable.
2780 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
2781 new gtkutil tooltip functions to show the tooltip.
2782 (Fx_hide_tip): Call xg_hide_tooltip.
2783 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
2784
2785 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
2786 (xg_show_tooltip, xg_hide_tooltip): Declare.
2787
2788 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
2789 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
2790 New functions.
aa1859f5
J
2791 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
2792 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
2793 Remove code that is commented out.
2794
76417ef4
SM
27952010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
2796
2797 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
2798
16041401
CY
27992010-07-31 Chong Yidong <cyd@stupidchicken.com>
2800
2801 * xselect.c (x_own_selection): Use list4.
2802
2c09a58f
DN
28032010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
2804
2805 * buffer.c (Qwindow): Do not define, already defined in data.c.
2806 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
2807
59df9fdd 28082010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 2809
59df9fdd
JB
2810 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
2811 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
2812 * config.in: Undef HAVE_DIRENT_H.
1c97e857 2813 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 2814 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 2815
1b231651
DN
28162010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
2817
2818 Rename s/usg5-4.h -> s/usg5-4-common.h.
2819 * s/usg5-4.h: Rename file to ...
2820 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
2821 * s/unixware.h:
2822 * s/sol2-6.h:
2823 * s/irix6-5.h: Update includes accordingly.
2824
bfeabdc3
JD
28252010-07-29 Jan Djärv <jan.h.d@swipnet.se>
2826
2ebf1083
J
2827 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
2828
bfeabdc3 2829 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
2830 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
2831 Remove toolbar_height.
2832 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
2833 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
2834 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
2835 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
2836
2837 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
2838
2839 * xfns.c (x_set_tool_bar_position): New function.
2840 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
2841 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 2842 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
2843
2844 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
2845 and FRAME_TOOLBAR_LEFT_WIDTH.
2846
2847 * gtkutil.h (xg_change_toolbar_position): Declare.
2848
2849 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
2850 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
2851 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
2852 (xg_create_frame_widgets): Create a hobox for placing widgets
2853 vertically. Use gtk_box_pack_start.
2854 (xg_height_or_width_changed): Renamed from xg_height_changed.
2855 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
2856 (xg_update_frame_menubar, free_frame_menubar): Change to
2857 xg_height_or_width_changed.
2858 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
2859 size correctly. Remove hardcoded 4, instead use handlebox size -
2860 toolbar size.
2861 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 2862 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
2863 (xg_pack_tool_bar): POS is a new parameter.
2864 Set orientation of tool bar based on pos.
2865 Only make handlebox_widget if NULL.
2866 Check if tool bar goes to vbox or hbox depending on pos.
2867 (xg_update_tool_bar_sizes): New function.
686b968e 2868 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
2869 height, call xg_update_tool_bar_sizes instead.
2870 (free_frame_tool_bar): Remove from hbox or vbox depending on
2871 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
2872 (xg_change_toolbar_position): New function.
2873
2874 * frame.h (struct frame): Add tool_bar_position.
2875 (Qbottom): Declare.
2876
2877 * frame.c (Qtool_bar_position): New variable.
2878 (make_frame): Set tool_bar_position to Qtop.
2879 (frame_parms): Add tool-bar-position.
2880 (x_report_frame_params): Store tool_bar_position.
2881 (x_set_fringe_width): Reset wm size hint after fringe changes.
2882
26469a38
DN
28832010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
2884
2885 Make lisp_time_argument declaration work on all systems.
2886 * lisp.h (lisp_time_argument): Move declaration ...
2887 * systime.h (lisp_time_argument): ... here
2888 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
2889
8848b728
JD
28902010-07-29 Jan Djärv <jan.h.d@swipnet.se>
2891
2892 * vm-limit.c (POINTER): Add typedef for it.
2893 (start_of_data): Change return type from POINTER to char *.
2894
2895 * frame.h (Qtty_color_mode): Move declaration out of ifdef
2896 HAVE_WINDOW_SYSTEM.
2897
76fd1ee9
DN
28982010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
2899
0441987e
DN
2900 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
2901 Remove reference to __osf__, unused.
2902
56a000c7
DN
2903 * mem-limits.h: Remove duplicated includes.
2904 (NULL): Remove definition, unused.
2905 (POINTER): Remove definition.
2906 (start_of_data): Use char* in prototype, as the function
2907 definition does.
2908
e6cba650
DN
2909 Remove extern declarations from .c files, and them to .h files.
2910 * keyboard.h (Qhelp_echo, waiting_for_input)
2911 (input_available_clear_time, ignore_mouse_drag_p)
2912 (Vdouble_click_time, real_this_command, Vthis_original_command):
2913 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
2914 (Voverriding_local_map_menu_flag):
2915 * lisp.h (Qinteractive_form, use_file_dialog)
2916 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
2917 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
2918 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
2919 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
2920 (Qfunction, debug_on_next_call, Qfield)
2921 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
2922 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
2923 (Qfile_directory_p, Qinsert_file_contents)
2924 (Qcompletion_ignore_case, Qcompletion_ignore_case)
2925 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
2926 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
2927 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
2928 (Qminibuffer_prompt)
2929 (Vtemporary_file_directory,char_ins_del_vector, Qface):
2930 * xterm.h (gray_bitmap_width, gray_bitmap_height)
2931 (gray_bitmap_bits, xic_create_fontsetname):
2932 * coding.h (Vtranslation_table_for_input): Add extern declarations.
2933
2934 * xsmfns.c (Vuser_login_name):
2935 * xrdb.c (Vdouble_click_time):
2936 * xfaces.c (xic_create_fontsetname):
2937 * w32select.c (waiting_for_input):
2938 * print.c (minibuffer_auto_raise):
2939 * msdos.c (Qhelp_echo):
2940 * macros.c (real_this_command):
2941 * keymap.c (Voverriding_local_map):
2942 * xterm.c (poll_for_input_1, gray_bitmap_width)
2943 (gray_bitmap_height, gray_bitmap_bits;
2944 * xmenu.c ( Voverriding_local_map)
2945 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
2946 (use_file_dialog, Xt_app_con):
2947 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
2948 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
2949 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
2950 (Qtool_bar_lines, ignore_mouse_drag_p):
2951 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
2952 (Qrear_nonsticky, nconc2):
2953 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
2954 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
2955 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
2956 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
2957 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
2958 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
2959 (gc_in_progress):
2960 * doc.c (Voverriding_local_map, Qremap):
2961 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
2962 (Vcompletion_regexp_list):
2963 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
2964 (Qcompletion_ignore_case):
2965 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
2966 (Vhistory_length, Vthis_original_command, real_this_command)
2967 (Qface, Qminibuffer_prompt, history_delete_duplicates):
2968 * image.c (Qrisky_local_variable):
2969 * fontset.c (QCname):
2970 * fns.c (minibuffer_auto_raise, QCname):
2971 * dispnew.c (char_ins_del_cost):
2972 * composite.c (font_fill_lglyph_metrics):
2973 * cmds.c (Qface, Vtranslation_table_for_input):
2974 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
2975 * ccl.c (charset_unicode):
2976 * callproc.c (Vtemporary_file_directory):
2977 * buffer.c (emacs_strerror): Remove extern declarations.
2978
2979 * data.c (Qwindow): Make non-static, used from other files too.
2980 * frame.c (validate_x_resource_name): Remove shadow definition for i.
2981
76fd1ee9
DN
2982 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
2983 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
2984 * s/usg5-4.h (COFF):
2985 * s/template.h:
2986 * s/msdos.h (COFF, NO_REMAP):
2987 * s/ms-w32.h (NO_REMAP):
2988 * s/hpux10-20.h (NO_REMAP):
2989 * m/sparc.h (SEGMENT_MASK):
2990 * m/m68k.h (NO_REMAP):
2991 * m/intel386.h (SEGMENT_MASK):
2992 * m/arm.h (NO_REMAP):
2993 * m/alpha.h (COFF):
2994 * m/template.h: Remove references to unused defines.
2995
8a52f00a
JD
29962010-07-28 Jan Djärv <jan.h.d@swipnet.se>
2997
2998 * xsettings.c (Ftool_bar_get_system_style): Also check for
2999 Qtext_image_horiz.
3000
3001 * xdisp.c (Qtext_image_horiz): Define.
3002 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 3003 to documentation of tool-bar-style.
8a52f00a
JD
3004
3005 * lisp.h (Qtext_image_horiz): Declare.
3006
3007 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
3008 style text_image_horiz.
3009
89dc303e
DN
30102010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
3011
60799703
DN
3012 * emacs.c (Fkill_emacs): Remove return statement.
3013
37254dc1
DN
3014 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
3015 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
3016 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
3017 local extern declarations.
3018
71c7345a
DN
3019 * xmenu.c: Do not included lwlib.h, not needed.
3020
6ba577cb
DN
3021 * m/iris4d.h (XUINT, XSET): Remove, not needed.
3022
fdb183d6
DN
3023 * process.c: Move definitions earlier to minimize #ifdefs.
3024
3025 * xterm.h (x_get_customization_string, x_load_resources)
3026 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
3027 (x_check_errors, x_property_data_to_lisp, defined_color)
3028 (xic_set_xfontset, x_defined_color): Use const.
3029
3030 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
3031 (x_text_icon, x_check_errors, x_connection_closed): Use const.
3032
3033 * xselect.c (selection_data_to_lisp_data)
3034 (x_property_data_to_lisp):
3035 * xrdb.c (x_get_string_resource, file_p)
3036 (x_get_customization_string, magic_file_p, search_magic_path)
3037 (get_system_app, get_user_app, x_load_resources, x_get_resource)
3038 (x_get_string_resource): Use const.
3039
3040 * xfns.c: Include xlwmenu.h when USE_LUCID.
3041 (x_defined_color, xic_set_xfontset): Use const.
3042 (Fx_hide_tip): Remove local extern declaration.
3043
3044 * xfaces.c (Qmouse_face): Remove declaration.
3045 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 3046 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
3047
3048 * xdisp.c (do_mouse_tracking): Remove declaration.
3049 (add_to_log): Use const.
3050
3051 * minibuf.c (Qmouse_face): Remove declaration.
3052
3053 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
3054
3055 * keyboard.h (do_mouse_tracking): Add declaration.
3056
3057 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
3058 (QCdata, QCtype, Qcenter): Remove declarations.
3059
3060 * frame.c (x_get_resource_string, x_get_string_resource)
3061 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
3062 (x_default_parameter): Use const.
3063
3064 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
3065 (QCheight, QCsize, QCname): Remove declarations.
3066
3067 * emacs.c (main): Remove local extern declaration.
3068
3069 * editfns.c (region_limit, syms_of_editfns): Remove local extern
3070 declarations.
3071
3072 * dispnew.c: Remove duplicate #include <unistd.h>.
3073 (update_window, update_frame_1, init_display): Remove local extern
3074 declarations.
3075
3076 * dispextern.h (add_to_log): Remove declaration.
3077 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
3078 (x_frame_get_and_record_arg, x_default_parameter): Add const.
3079
3080 * dired.c (scmp): Add const.
3081 (directory_files_internal): Remove local extern declaration.
3082
3083 * data.c (Finteractive_form): Use const.
3084
3085 * composite.c (syms_of_composite): Remove local extern declarations.
3086
3087 * charset.c (add_to_log): Remove declaration.
3088
3089 * character.c (strwidth, parse_str_to_multibyte): Add const.
3090
3091 * character.h (strwidth, parse_str_to_multibyte): Likewise.
3092
3093 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
3094
89dc303e 3095 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
3096 (Lisp_Subr): Make doc and intspec constant.
3097 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
3098 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
3099 (QCheight, QCsize, QCname, QCwidth, QCforeground)
3100 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
3101 (display_arg): Add declarations.
89dc303e 3102
0ed082fe 31032010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
3104
3105 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
3106
0ed082fe
JB
3107 * window.c (Fwindow_height): Doc fix (bug#6518).
3108
31092010-07-27 Juanma Barranquero <lekktu@gmail.com>
3110
3111 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
3112
ccaf0336
DN
31132010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
3114
977105dc
DN
3115 * keyboard.c (Ftop_level, Fexit_recursive_edit)
3116 (Fabort_recursive_edit): Remove return statements in NO_RETURN
3117 functions.
3118
f5ada890
DN
3119 * frame.h (Qtty_color_mode): Add declaration.
3120
ccaf0336
DN
3121 * lisp.h (Ftop_level, Fexit_recursive_edit)
3122 (Fabort_recursive_edit): Mark as NO_RETURN.
3123
dfe3c90f
KH
31242010-07-26 Kenichi Handa <handa@m17n.org>
3125
3126 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 3127 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 3128
7d383292
JB
31292010-07-26 Juanma Barranquero <lekktu@gmail.com>
3130
3131 * lread.c (unreadpure, mapatoms_1): Make static.
3132
da31e629
JB
31332010-07-25 Juanma Barranquero <lekktu@gmail.com>
3134
3135 * terminfo.c (tparam): Fix prototype of tparm.
3136
7bfa6d77
AS
31372010-07-25 Andreas Schwab <schwab@linux-m68k.org>
3138
dcc19aac
AS
3139 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
3140 find start of text segment.
3141 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
3142 is defined.
3143
7bfa6d77
AS
3144 * callproc.c (set_initial_environment): Avoid unbalanced braces.
3145
63f9a672
KB
31462010-07-25 Ken Brown <kbrown@cornell.edu>
3147
3148 * vm-limit.c (check_memory_limits): Fix previous change;
3149 accidentally reverted an earlier change.
3150
24933075
KB
31512010-07-25 Ken Brown <kbrown@cornell.edu>
3152
3153 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
3154 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
3155
361358ea
JB
31562010-07-25 Juanma Barranquero <lekktu@gmail.com>
3157
3158 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
3159 * dired.c (opendir, readdir): Fix prototypes.
3160 * editfns.c (w32_get_internal_run_time): Fix prototypes.
3161 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
3162 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
3163 (telldir): Remove declaration.
3164 * ralloc.c (real_morecore, __morecore): Fix prototypes.
3165 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
3166 * syssignal.h (strsignal): Fix prototype.
3167 * term.c (tparam): Fix prototype.
3168 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
3169 (term_get_fkeys): Set inside "#ifndef DOS_NT".
3170 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
3171 and __morecore.
3172 * w32gui.h (XParseGeometry): Fix prototype.
3173 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
3174 * w32term.c (my_set_focus): Declare inside #if 0.
3175 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
3176 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
3177 (drain_message_queue, get_next_msg, post_msg, parse_button)
3178 (ClipboardSequence_Proc): Fix prototypes.
3179 (wait_for_sync): Remove declaration.
3180
630b9592
JB
31812010-07-24 Juanma Barranquero <lekktu@gmail.com>
3182
3183 * w32fns.c (w32_to_x_color): Remove, unused.
3184
6a0d6611
AS
31852010-07-24 Andreas Schwab <schwab@linux-m68k.org>
3186
3187 * lisp.h: Remove leftover P_.
3188
4e8608ff
DN
31892010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
3190
3191 * ecrt0.c, unexalpha.c: Remove files, unused.
3192
c8197983
AS
31932010-07-24 Andreas Schwab <schwab@linux-m68k.org>
3194
3195 * cmds.c (internal_self_insert): Make static.
3196 * lisp.h (internal_self_insert): Remove declaration.
3197
97b372d7
JB
31982010-07-23 Juanma Barranquero <lekktu@gmail.com>
3199
33ac0414
JB
3200 * alloc.c (free_float):
3201 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
3202 * frame.c (delete_frame_handler):
3203 * ralloc.c (reorder_bloc):
3204 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
3205 Remove unused static functions.
3206
94da8397
JB
3207 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
3208 it is called only from NS code.
3209
2e6c8532
JB
3210 * w32term.c (my_set_focus): #ifdef away; it is called only from
3211 "#ifdef 0" code.
3212
97b372d7
JB
3213 * w32fns.c (x_edge_detection):
3214 * xfaces.c (may_use_scalable_font_p):
3215 Remove obsolete static declarations.
3216
7c3320d8
JB
32172010-07-20 Juanma Barranquero <lekktu@gmail.com>
3218
3219 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
3220 (emacs_blocked_realloc, uninterrupt_malloc):
3221 * fringe.c (w32_reset_fringes):
3222 * image.c (convert_mono_to_color_image, lookup_rgb_color)
3223 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
3224 * sound.c (be2hs, do_play_sound):
3225 * vm-limit.c (get_lim_data, ret_lim_data):
3226 * w32term.c (x_free_frame_resources):
3227 * xfaces.c (x_create_gc, x_free_gc):
3228 Convert definitions to standard C.
3229
d5273788
SM
32302010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
3231
3232 * eval.c (Feval, Ffuncall): Use the new names.
3233
3234 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
3235 (DEFUN): Add braces around the union initialisation and use ## to
3236 specify the right union alternative and avoid a cast.
3237
8d16a259
JB
32382010-07-18 Juanma Barranquero <lekktu@gmail.com>
3239
3240 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
3241
3b8eff32
CY
32422010-07-17 Chong Yidong <cyd@stupidchicken.com>
3243
3244 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
3245
499322ce
J
32462010-07-17 Jan Djärv <jan.h.d@swipnet.se>
3247
3248 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
3249 is related to the menu bar (Bug#6499).
a628ad9d 3250 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 3251
f6003da5 32522010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
3253
3254 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
3255
3256 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
3257
3258 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
3259 i.e. don't put back ButtonRelease (Bug#6608).
3260
3261 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
3262 instead of Window. Call xg_event_is_for_menubar when
3263 USE_GTK (Bug#6499).
3264
3265 * gtkutil.h (xg_event_is_for_menubar): Declare.
3266
3267 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
3268
f6003da5 32692010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
3270
3271 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
3272 when it's the same as the old foreground. (Bug#6609)
3273
23243f29
J
32742010-07-16 Jan Djärv <jan.h.d@swipnet.se>
3275
3276 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
3277 widget is non-null (Bug#6645).
3278
2b23d2a6
AS
32792010-07-15 Andreas Schwab <schwab@linux-m68k.org>
3280
01b564ff
AS
3281 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
3282 Convert old-style definition.
3283
2b23d2a6
AS
3284 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
3285 timestamp argument.
3286
c4affd2c
EZ
32872010-07-15 Eli Zaretskii <eliz@gnu.org>
3288
3289 * fringe.c (update_window_fringes): Restore mistakenly reverted
3290 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
3291
cf28cebc
J
32922010-07-14 Jan Djärv <jan.h.d@swipnet.se>
3293
3294 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
3295 (SET_SAVED_KEY_EVENT): Remove (not used).
3296 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
3297 remove size parameter.
3298 (handle_one_xevent): Check popup_activated () for menu for Xt also.
3299 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
3300 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
3301 ButtonRelease.
6b2c4bd9
J
3302 (x_set_window_size_1): scroll_bar_actual_width is always
3303 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
3304
3305 * xdisp.c (pending_menu_activation): Remove extern declaration.
3306 (prepare_menu_bars): Remove setting of pending_menu_activation.
3307
3308 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
3309 (x_activate_menubar): Set popup_activated_flag for Xt also.
3310 Remove setting of pending_menu_activation.
cf28cebc
J
3311 (set_frame_menubar): Remove check of pending_menu_activation.
3312 Declare menubar_size before code. Correct spelling in comment.
3313
f6c1c771
KH
33142010-07-14 Kenichi Handa <handa@m17n.org>
3315
3316 * font.c (font_open_entity): Cancel previous change.
3317 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
3318
20477505
EZ
33192010-07-13 Eli Zaretskii <eliz@gnu.org>
3320
77defa9a
EZ
3321 Remove subprocesses #ifdefs.
3322 * process.c <inhibit_sentinels>: Move to the common part.
3323 (Fwaiting_for_user_input_p): Move to the common part; return nil
3324 if async subprocesses aren't supported.
3325 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
3326 MS-DOS. Remove "#ifdef subprocesses".
3327 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
3328 (gettimeofday): Remove "#ifdef subprocesses".
3329 (wait_without_blocking): Remove function.
3330 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
3331 Remove "#ifdef subprocesses".
3332 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
3333 compiled on MS-DOS.
3334 * callproc.c (Fcall_process) [!MSDOS]: Don't call
3335 wait_for_termination on MS-DOS.
3336 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
3337 initialization of inhibit_sentinels.
3338 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
3339 subprocesses" conditional.
3340 * callproc.c (Fcall_process) [!subprocesses]: Don't call
3341 wait_for_termination, since `buffer' cannot be an integer when
3342 async subprocesses are not supported
3343 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
3344 for ifdefing away the call to Fprocess_status.
3345
20477505
EZ
3346 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
3347 away the entire body of the function.
3348
b3ffc17c
DN
33492010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
3350
01faa934
DN
3351 Remove subprocesses #ifdefs from term.c.
3352 * process.c (add_keyboard_wait_descriptor)
3353 (delete_keyboard_wait_descriptor): Move to common section, do
3354 nothing when subprocesses is not defined.
a628ad9d
JB
3355 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
3356 Remove subprocesses #ifdefs.
01faa934 3357
b3ffc17c
DN
3358 Convert maybe_fatal to standard C.
3359 * lisp.h (verror): Declare.
3360 * eval.c (verror): New function containing the code from ...
3361 (error): ... this. Call verror.
3362 * term.c (vfatal): New function containing the code from ...
3363 (fatal): ... this. Call vfatal.
3364 (maybe_fatal): Convert to standard C, use variable number of
3365 arguments. Declare as non-return.
3366 (init_tty): Fix maybe_fatal call.
3367
0521f580
DN
33682010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
3369
3370 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
3371 (_scroll_bar_note_movement): Convert definitions to standard C.
3372 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
3373 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
3374
ebd15611
DN
33752010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
3376
3377 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
3378 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
3379 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
3380 (xaw_jump_callback, xaw_scroll_callback)
3381 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
3382 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
3383 definitions to standard C.
3384 * xmenu.c (menubar_id_to_frame, popup_get_selection)
3385 (popup_activate_callback, popup_deactivate_callback)
3386 (menu_highlight_callback, menubar_selection_callback)
3387 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
3388 (free_frame_menubar, popup_selection_callback, as)
3389 (create_and_show_popup_menu, dialog_selection_callback)
3390 (create_and_show_dialog):
3391 * xfns.c (hack_wm_protocols, x_window):
3392 * xfaces.c (x_update_menu_appearance):
3393 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
3394 (char_to_pixel_size, round_size_to_char, get_wm_shell)
3395 (set_frame_size, update_wm_hints, setup_frame_gcs)
3396 (update_various_frame_slots, update_from_various_frame_slots)
3397 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
3398 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
3399 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
3400
de06a2dd
AS
34012010-07-12 Andreas Schwab <schwab@linux-m68k.org>
3402
a628ad9d 3403 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 3404
fc549af9
EZ
34052010-07-12 Eli Zaretskii <eliz@gnu.org>
3406
3407 * process.c (setup_process_coding_systems): Move to the part
3408 shared by non-subprocesses systems, and make its body empty when
3409 subprocesses is not defined.
3410 (close_process_descs): Move to the part shared by non-subprocesses
3411 systems.
1408902e
EZ
3412 (wait_reading_process_output) [!subprocesses]: Convert arg list to
3413 ANSI C.
fc549af9 3414
d5a3eaaf
AS
34152010-07-12 Andreas Schwab <schwab@linux-m68k.org>
3416
3417 * editfns.c (transpose_markers): Convert old-style definition.
3418 * emacs.c (abort, shut_down_emacs, fixup_locale)
3419 (synchronize_system_time_locale)
3420 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
3421 * floatfns.c (extract_float, matherr, init_floatfns)
3422 (syms_of_floatfns): Likewise.
3423 * fns.c (make_hash_table): Likewise.
3424 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
3425 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
3426 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
3427 (ftfont_variation_glyphs): Likewise.
3428 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
3429 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
3430 * lread.c (read_filtered_event): Likewise.
3431 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
3432 * process.c (wait_reading_process_output): Likewise.
3433 * scroll.c (do_line_insertion_deletion_costs): Likewise.
3434 * search.c (search_buffer, boyer_moore): Likewise.
3435 * syntax.c (scan_sexps_forward): Likewise.
3436 * xdisp.c (try_scrolling): Likewise.
3437 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
3438 (face_at_string_position): Likewise.
3439 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
3440 * xselect.c (x_get_window_property, receive_incremental_selection)
3441 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
3442 Likewise.
3443 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
3444
6f704c76
DN
34452010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
3446
ded80a25
DN
3447 * callproc.c (child_setup): Remove subprocesses conditional.
3448 Remove code dealing with SET_EMACS_PRIORITY, unused.
3449
49d937f4 3450 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
3451 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
3452
3453 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
3454 (__do_global_dtors, __main): Use void in definition.
3455 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
3456 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
3457 the only users from ...
3458 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
3459 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
3460 (HAVE_VOLATILE): Remove, unused.
3461
6f704c76
DN
3462 Convert more function definitions to standard C.
3463 * xdisp.c (window_box_edges, handle_single_display_spec)
3464 (display_string): Convert definition to standard C.
3465 * scroll.c (do_direct_scrolling, scrolling_1):
3466 * dispnew.c (allocate_matrices_for_frame_redisplay)
3467 (mirrored_line_dance):
3468 * coding.c (code_convert_string):
3469 * charset.c (map_charset_chars):
3470 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
3471 (Fregister_ccl_program, Fregister_code_conversion_map):
3472 * keyboard.c (kbd_buffer_nr_stored): Likewise.
3473 (head_table): Make static and const.
3474
e6cfa7c3
AS
34752010-07-12 Andreas Schwab <schwab@linux-m68k.org>
3476
3477 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
3478 (PROFILING_LDFLAGS): Set from substitution.
3479 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
3480 CFLAGS last.
3481
892dd565
KH
34822010-07-12 Kenichi Handa <handa@m17n.org>
3483
6f2cdcd1
KH
3484 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
3485 (shortlisp): Likewise.
3486
892dd565
KH
3487 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
3488
3489 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
3490 of FONT_ENTITY_INDEX.
3491 (Ffont_get): If KEY is :otf and the font-object doesn't have the
3492 property, get the property value dynamically.
3493 (Ffont_put): Accept font-entity and font-object too.
3494 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
3495 return value changed.
3496 (syms_of_font): Adjusted for the above change.
3497
ae96d47a
AS
34982010-07-11 Andreas Schwab <schwab@linux-m68k.org>
3499
c8fc18ee
AS
3500 * blockinput.h: Remove obsolete comment.
3501
89887d67
AS
3502 * lisp.h: Include <stddef.h>.
3503 (OFFSETOF): Don't define.
3504 (VECSIZE): Use offsetof instead of OFFSETOF.
3505 (PSEUDOVECSIZE): Likewise.
3506 * process.c (conv_sockaddr_to_lisp): Likewise.
3507 * alloc.c: Don't include <stddef.h>.
3508 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
3509
ae96d47a
AS
3510 * process.c: Remove obsolete comment.
3511
635c0aa1
CY
35122010-07-11 Chong Yidong <cyd@stupidchicken.com>
3513
3514 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
3515
a64df650
AS
35162010-07-11 Andreas Schwab <schwab@linux-m68k.org>
3517
8966b757
AS
3518 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
3519 index, rindex.
3520 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
3521 * editfns.c (Fuser_full_name, Fformat): Likewise.
3522 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
3523 * fileio.c (Ffile_symlink_p): Likewise.
3524 * filelock.c (current_lock_owner): Likewise.
3525 * font.c (font_parse_name, font_parse_family_registry): Likewise.
3526 * fontset.c (fontset_pattern_regexp): Likewise.
3527 * lread.c (read1): Likewise.
3528 * sysdep.c (init_system_name): Likewise.
3529 * xfns.c (select_visual): Likewise.
3530 * s/hpux10-20.h (index, rindex): Don't define.
3531 * s/ms-w32.h (index): Likewise.
3532 * s/usg5-4.h: Likewise.
3533
cf237e27
AS
3534 * callproc.c (relocate_fd): Use F_DUPFD if defined.
3535
a8fe7202
AS
3536 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
3537 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
3538 (egetenv): Likewise.
3539 * doprnt.c (doprnt): Likewise.
3540 * editfns.c (set_time_zone_rule, format2): Likewise.
3541 * emacs.c (decode_env_path): Likewise.
3542 * eval.c (signal_error, error): Likewise.
3543 * insdel.c (replace_range_2): Likewise.
3544 * keyboard.c (cmd_error_internal): Likewise.
3545 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
3546 * print.c (write_string, write_string_1, print_error_message):
3547 Likewise.
3548 * vm-limit.c (warn_function, memory_warnings): Likewise.
3549 * xdisp.c (message1, message1_nolog, message_with_string)
3550 (vmessage, message, message_nolog): Likewise.
3551 * emacs.c: Remove duplicate declaration.
3552 * keyboard.h: Likewise.
3553 * lisp.h: Update prototypes.
3554
bb8e180f
AS
3555 * eval.c: Fix indentation problem.
3556
83380e65
AS
3557 * keyboard.c: Include "process.h"
3558
a64df650
AS
3559 * eval.c: Remove obsolete noinline declaration.
3560 * fns.c: Likewise.
3561
6a8033e1
KR
35622010-07-11 Ken Raeburn <raeburn@raeburn.org>
3563
3564 * doprnt.c (doprnt): Take a va_list argument instead of count and
3565 pointer.
3566 * eval.c (error): Change to a standard-C variadic function.
3567 * xdisp.c (vmessage): Renamed from message, made static, and
3568 changed to take a va_list argument.
3569 (message): New variadic wrapper.
3570 (message_nolog): Now a variadic function, calling vmessage.
3571 * lisp.h: Include stdarg.h for va_list.
3572 (doprnt, error, message, message_nolog): Decls updated.
3573
462aa963
EZ
35742010-07-11 Eli Zaretskii <eliz@gnu.org>
3575
3576 * process.c (syms_of_process) <delete-exited-processes>: Define
3577 even if !subprocesses.
3578 (delete_exited_processes): Ditto.
3579
3580 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
3581 (delete_exited_processes): Don't define.
3582
48104462
CY
35832010-07-10 Chong Yidong <cyd@stupidchicken.com>
3584
3585 * frame.c (make_frame): Initialize menu_bar_lines and
3586 tool_bar_lines members.
3587 (make_initial_frame, make_terminal_frame): Initialize
3588 menu_bar_lines using value of menu-bar-mode.
3589
3590 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
3591
f388c88a
EZ
35922010-07-10 Eli Zaretskii <eliz@gnu.org>
3593
3594 * process.c: Reshuffle #include's. Condition some of the global
3595 and static variables on `subprocesses'.
3596 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
3597 Leave only one implementation.
3598 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
3599 (kill_buffer_processes, Flist_system_processes)
3600 (Fprocess_attributes, init_process, syms_of_process): Unify the
3601 implementations for with subprocesses and without them.
3602
723f5a07
J
36032010-07-09 Jan Djärv <jan.h.d@swipnet.se>
3604
3605 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
3606 correct size for Motif.
3607 (free_frame_menubar): Call x_set_window_size to update frame size.
3608
3609 * xfns.c (x_window): Set borderWidth to 0 for pane and
3610 EmacsFrame. Frame size calculation is wrong otherwise.
3611
2536a4b7
MA
36122010-07-09 Michael Albinus <michael.albinus@gmx.de>
3613
3614 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
3615 allows to suppress errors when polling in Emacs' main loop.
3616 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
3617 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
3618 (Fdbus_method_error_internal, Fdbus_send_signal)
3619 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
3620 (Fdbus_register_method): Use it. (Bug#6579)
3621
5842a27b
DN
36222010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
3623
3624 * alloc.c: Convert DEFUNs to standard C.
3625 * buffer.c:
3626 * bytecode.c:
3627 * callint.c:
3628 * callproc.c:
3629 * casefiddle.c:
3630 * casetab.c:
3631 * category.c:
3632 * character.c:
3633 * charset.c:
3634 * chartab.c:
3635 * cmds.c:
3636 * coding.c:
3637 * composite.c:
3638 * data.c:
3639 * dbusbind.c:
3640 * dired.c:
3641 * dispnew.c:
3642 * doc.c:
3643 * dosfns.c:
3644 * editfns.c:
3645 * emacs.c:
3646 * eval.c:
3647 * fileio.c:
3648 * filelock.c:
3649 * floatfns.c:
3650 * fns.c:
3651 * font.c:
3652 * fontset.c:
3653 * frame.c:
3654 * fringe.c:
3655 * image.c:
3656 * indent.c:
3657 * insdel.c:
3658 * keyboard.c:
3659 * keymap.c:
3660 * lread.c:
3661 * macros.c:
3662 * marker.c:
3663 * menu.c:
3664 * minibuf.c:
3665 * msdos.c:
3666 * nsfns.m:
3667 * nsmenu.m:
3668 * nsselect.m:
3669 * print.c:
3670 * process.c:
3671 * search.c:
3672 * sound.c:
3673 * syntax.c:
3674 * term.c:
3675 * terminal.c:
3676 * textprop.c:
3677 * undo.c:
3678 * w16select.c:
3679 * w32console.c:
3680 * w32fns.c:
3681 * w32font.c:
3682 * w32menu.c:
3683 * w32proc.c:
3684 * w32select.c:
3685 * window.c:
3686 * xdisp.c:
3687 * xfaces.c:
3688 * xfns.c:
3689 * xmenu.c:
3690 * xselect.c:
3691 * xsettings.c:
3692 * xsmfns.c: Likewise.
3693
d568829b
EZ
36942010-07-08 Eli Zaretskii <eliz@gnu.org>
3695
3696 * process.c (kbd_is_on_hold, hold_keyboard_input)
3697 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
3698
52214050
J
36992010-07-08 Jan Djärv <jan.h.d@swipnet.se>
3700
3701 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
3702 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
3703 unless USE_LUCID.
3704
313d9eb2
DN
37052010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
3706
a628ad9d
JB
3707 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
3708 declaration.
d8825aa3 3709
295d0d8f
DN
3710 Clean up include guards.
3711 * tparam.c: Remove include guards for config.h, string.h and code
3712 that assumes #ifndef emacs.
3713 * termcap.c:
3714 * unexalpha.c:
3715 * sysdep.c:
3716 * filemode.c:
3717 * filelock.c:
3718 * bidi.c: Likewise.
3719
49d9e6b0
DN
3720 Remove prefix-args.c
3721 * prefix-args.c: Remove file.
3722 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
3723 * Makefile.in (temacs${EXEEXT}): Remove references to
3724 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
3725 (mostlyclean): Remove reference to prefix-args.
3726 (prefix-args): Remove.
3727
313d9eb2
DN
3728 Simplify cstart_of_data, start_of_code and related code.
3729 * mem-limits.h: Remove !emacs and _LIBC conditional code.
3730 (start_of_data): Merge into start_of_data function.
3731 * sysdep.c (start_of_text): Remove. Move simplified versions of
3732 it in the only users: unexaix.c and unexec.c.
3733 (read_input_waiting): Remove local declaration of quit_char.
3734 (start, etext): Remove declarations.
3735 (start_of_data): Merge with the version in mem-limits.h and move
3736 to vm-limits.c.
3737 * vm-limit.c (start_of_data): Merged and simplified version of the
3738 code formerly in mem-limits.h and sysdep.c.
3739 * unexec.c (start): New declaration, moved from sysdep.c.
3740 (start_of_text): Simplified version of the code formerly in sysdep.c.
3741 * unexaix.c (start_of_text): Simplified version of the code
3742 formerly in sysdep.c.
3743 * m/alpha.h (HAVE_TEXT_START): Remove.
3744 (TEXT_START): Move ...
3745 * unexalpha.c (TEXT_START): ... here.
3746 * s/hpux10-20.h (TEXT_START): Remove.
3747 * s/darwin.h (TEXT_START):
3748 * m/mips.h (TEXT_START):
3749 * m/macppc.h (HAVE_TEXT_START):
3750 * m/m68k.h (TEXT_START):
3751 * m/iris4d.h (TEXT_START):
3752 * m/intel386.h (TEXT_START):
3753 * m/ibmrs6000.h (TEXT_START):
3754 * m/ia64.h (HAVE_TEXT_START):
3755 * s/msdos.h (TEXT_START): Likewise.
3756
72af86bd
AS
37572010-07-07 Andreas Schwab <schwab@linux-m68k.org>
3758
3759 * alloc.c (overrun_check_malloc, overrun_check_realloc)
3760 (overrun_check_free, xstrdup, allocate_string)
3761 (allocate_string_data, compact_small_strings, Fmake_string)
3762 (make_unibyte_string, make_multibyte_string)
3763 (make_string_from_bytes, make_specified_string, make_float)
3764 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
3765 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
3766 memcpy, memmove, memset, memcmp.
3767 * atimer.c (start_atimer, set_alarm): Likewise.
3768 * buffer.c (clone_per_buffer_values, report_overlay_modification)
3769 (mmap_realloc, init_buffer_once): Likewise.
3770 * callint.c (Fcall_interactively): Likewise.
3771 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
3772 (getenv_internal_1): Likewise.
3773 * casefiddle.c (casify_object): Likewise.
3774 * ccl.c (ccl_driver): Likewise.
3775 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
3776 * charset.c (load_charset_map_from_file)
3777 (load_charset_map_from_file, load_charset_map_from_vector)
3778 (Fdefine_charset_internal): Likewise.
3779 * cm.c (Wcm_clear): Likewise.
3780 * coding.c (decode_eol, decode_coding_object)
3781 (Fset_coding_system_priority, make_subsidiaries): Likewise.
3782 * data.c (Faset): Likewise.
3783 * dired.c (directory_files_internal, file_name_completion_stat):
3784 Likewise.
3785 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
3786 (clear_glyph_row, copy_row_except_pointers)
3787 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
3788 (save_current_matrix, restore_current_matrix)
3789 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
3790 (mirror_line_dance, scrolling_window): Likewise.
3791 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
3792 Likewise.
3793 * doprnt.c (doprnt): Likewise.
3794 * editfns.c (Fuser_full_name, make_buffer_string_both)
3795 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
3796 * emacs.c (sort_args): Likewise.
3797 * eval.c (Fapply, Ffuncall): Likewise.
3798 * fileio.c (Ffile_name_directory, make_temp_name)
3799 (Fexpand_file_name, search_embedded_absfilename)
3800 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
3801 (auto_save_error): Likewise.
3802 * fns.c (Fstring_equal, Fcopy_sequence, concat)
3803 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
3804 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
3805 (Fmake_hash_table): Likewise.
3806 * fringe.c (Fdefine_fringe_bitmap): Likewise.
3807 * ftfont.c (ftfont_text_extents): Likewise.
3808 * getloadavg.c (getloadavg): Likewise.
3809 * image.c (define_image_type, make_image, make_image_cache)
3810 (x_create_x_image_and_pixmap, xbm_image_p)
3811 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
3812 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
3813 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
3814 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
3815 (tiff_image_p, tiff_read_from_memory, gif_image_p)
3816 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
3817 Likewise.
3818 * indent.c (scan_for_column, compute_motion): Likewise.
3819 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
3820 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
3821 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
3822 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
3823 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
3824 (store_user_signal_events, menu_bar_items, tool_bar_items)
3825 (process_tool_bar_item, append_tool_bar_item)
3826 (read_char_minibuf_menu_prompt, read_key_sequence)
3827 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
3828 Likewise.
3829 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
3830 Likewise.
3831 * lisp.h (STRING_COPYIN): Likewise.
3832 * lread.c (Fload, read1, oblookup): Likewise.
3833 * msdos.c (Frecent_doskeys): Likewise.
3834 * nsfns.m (Fx_create_frame): Likewise.
3835 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
3836 Likewise.
3837 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
3838 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
3839 Likewise.
3840 * nsmenu.m (ns_update_menubar): Likewise.
3841 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
3842 * print.c (print_unwind, printchar, strout, print_string)
3843 (print_error_message): Likewise.
3844 * process.c (conv_lisp_to_sockaddr, set_socket_option)
3845 (Fmake_network_process, Fnetwork_interface_list)
3846 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
3847 (init_process): Likewise.
3848 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
3849 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
3850 Likewise.
3851 * scroll.c (do_scrolling, do_direct_scrolling)
3852 (scrolling_max_lines_saved): Likewise.
3853 * search.c (search_buffer, wordify, Freplace_match): Likewise.
3854 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
3855 * syntax.c (skip_chars, skip_syntaxes): Likewise.
3856 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
3857 (emacs_set_tty): Likewise.
3858 * term.c (encode_terminal_code, calculate_costs)
3859 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
3860 Likewise.
3861 * termcap.c (tgetst1, gobble_line): Likewise.
3862 * termhooks.h (EVENT_INIT): Likewise.
3863 * tparam.c (tparam1): Likewise.
3864 * unexalpha.c (unexec): Likewise.
3865 * unexec.c (write_segment): Likewise.
3866 * unexmacosx.c (unexec_write_zero): Likewise.
3867 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
3868 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
3869 * w32font.c (w32font_list_family, w32font_text_extents)
3870 (w32font_list_internal, w32font_match_internal)
3871 (w32font_open_internal, compute_metrics, Fx_select_font):
3872 Likewise.
3873 * w32menu.c (set_frame_menubar, add_menu_item)
3874 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
3875 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
3876 * w32uniscribe.c (uniscribe_list_family): Likewise.
3877 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
3878 * window.c (make_window, replace_window, set_window_buffer)
3879 (Fsplit_window): Likewise.
3880 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
3881 (add_to_log, message3, x_consider_frame_title)
3882 (append_space_for_newline, extend_face_to_end_of_line)
3883 (decode_mode_spec_coding, init_glyph_string): Likewise.
3884 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
3885 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
3886 (face_attr_equal_p, make_realized_face, make_face_cache)
3887 (free_realized_faces, lookup_named_face, smaller_face)
3888 (face_with_height, lookup_derived_face)
3889 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
3890 (Finternal_set_font_selection_order, realize_default_face)
3891 (compute_char_face, face_at_buffer_position)
3892 (face_for_overlay_string, face_at_string_position, merge_faces):
3893 Likewise.
3894 * xfns.c (xic_create_fontsetname, Fx_create_frame)
3895 (Fx_window_property, x_create_tip_frame)
3896 (Fx_backspace_delete_keys_p): Likewise.
3897 * xfont.c (xfont_list, xfont_match, xfont_list_family)
3898 (xfont_text_extents): Likewise.
3899 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
3900 * xrdb.c (magic_file_p, x_get_resource): Likewise.
3901 * xselect.c (x_queue_event, x_get_window_property)
3902 (receive_incremental_selection): Likewise.
3903 * xsmfns.c (x_session_check_input): Likewise.
3904 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
3905 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
3906 Likewise.
3907 * character.h (BCOPY_SHORT): Removed.
3908 * config.in: Regenerate.
3909 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
3910 * emacs.c (main) [PROFILING]: Don't declare
3911 dump_opcode_frequencies.
3912 * lisp.h (safe_bcopy): Remove declaration.
3913 (memset) [!HAVE_MEMSET]: Declare.
3914 (memcpy) [!HAVE_MEMCPY]: Likewise.
3915 (memmove) [!HAVE_MEMMOVE]: Likewise.
3916 (memcmp) [!HAVE_MEMCMP]: Likewise.
3917 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
3918 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
3919 Don't define.
3920 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
3921 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
3922 (BCOPY_DOWNWARD_SAFE): Don't define.
3923 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
3924 (memcpy) [!HAVE_MEMCPY]: Define.
3925 (memmove) [!HAVE_MEMMOVE]: Define.
3926 (memcmp) [!HAVE_MEMCMP]: Define.
3927
cb768704
J
39282010-07-07 Jan Djärv <jan.h.d@swipnet.se>
3929
3930 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
3931 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
3932 New functions.
cb768704
J
3933 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
3934 select on empty input mask.
3935 (init_process): Initialize kbd_is_on_hold to 0.
3936
3937 * process.h (hold_keyboard_input, unhold_keyboard_input)
3938 (kbd_on_hold_p): Declare.
3939
3940 * keyboard.c (input_available_signal): Declare.
3941 (kbd_buffer_nr_stored): New function.
3942 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
3943 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
3944 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
3945 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
3946 (tty_read_avail_input): If input is on hold, return.
3947 Don't read more that free slots in kbd_buffer (Bug#6571).
3948
3a8ce822
EZ
39492010-07-07 Eli Zaretskii <eliz@gnu.org>
3950
3951 * msdos.h:
3952 * msdos.c:
3953 * dosfns.c:
3954 * w16select.c: Convert function definitions to ANSI C.
3955
a628ad9d
JB
3956 * msdos.h (ctrl_break_func, install_ctrl_break_check):
3957 Remove unused prototypes.
3a8ce822 3958
cf84bb53
JB
39592010-07-07 Juanma Barranquero <lekktu@gmail.com>
3960
3961 * coding.c, sysdep.c: Convert some more functions to standard C.
3962
1a4990fb
JB
39632010-07-07 Juanma Barranquero <lekktu@gmail.com>
3964
3965 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
3966 (encode_coding_object): Use SPECPDL_INDEX.
3967 (syms_of_coding): Use DOS_NT.
3968
c0f2f16b
DN
39692010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
3970
48fb6855
DN
3971 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
3972
c0f2f16b
DN
3973 Make the function member of Lisp_Subr use standard C prototypes.
3974 * lisp.h (struct Lisp_Subr): Use a union for the function member.
3975 (DECL_ALIGN): Add a cast for the function.
3976 * eval.c (Feval, Ffuncall): Use the proper type for each type
3977 function call.
3978
67aecef9
CY
39792010-07-06 Chong Yidong <cyd@stupidchicken.com>
3980
3981 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
3982 fringe face id, so face-remapping-alist works (Bug#6091).
3983
b56ceb92
JB
39842010-07-06 Juanma Barranquero <lekktu@gmail.com>
3985
3986 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
3987 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
3988 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
3989
7af07b96
AS
39902010-07-06 Andreas Schwab <schwab@linux-m68k.org>
3991
3992 * xterm.c (x_get_keysym_name): Change type of parameter to int.
3993 * lisp.h: Declare x_get_keysym_name.
3994 * keyboard.c (modify_event_symbol): Don't declare
3995 x_get_keysym_name here.
3996
69e24e34
DN
39972010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
3998
3999 * ecrt0.c: Revert conversion to standard C.
4000
d3da34e0 40012010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
4002
4003 * vm-limit.c (memory_warnings):
4004 * keyboard.c (modify_event_symbol):
4005 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
4006 (round2, emacs_rint):
4007 * process.c (send_process, old_sigpipe): Convert function
4008 definitions and declarations to standard C.
4009
40102010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
4011
4012 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
4013 * xdisp.c: Convert function definitions to standard C.
4014
4015 * cm.c (cmputc): Arg C is now int, not char.
4016 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
4017
00be444c
J
40182010-07-05 James Cloos <cloos@jhcloos.com>
4019
4020 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
4021
4022 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
4023 _NET_WM_ICON_NAME atoms.
4024
4025 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
4026 and _NET_WM_ICON_NAME properties, too, matching what is
4027 done in the Gtk+ case.
4028
e4c8d29a
J
40292010-07-05 Jan Djärv <jan.h.d@swipnet.se>
4030
ff919460
J
4031 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
4032
e4c8d29a
J
4033 * xsmfns.c (SSDATA): New macro.
4034 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
4035 passed to strlen/strcpy/strcat.
4036 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
70e31436 4037 7:th arg to XChangeProperty to (unsigned char *).
e4c8d29a
J
4038
4039 * xsettings.c (something_changedCB, parse_settings)
4040 (apply_xft_settings): Reformat prototype.
4041 (something_changedCB, init_gconf): Remove unused variable i.
4042 (read_settings): Remove unused variable long_len.
4043
4044 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
4045 (xg_get_image_for_pixmap, create_dialog)
4046 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
4047 (menuitem_highlight_callback, make_menu_item)
4048 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
4049 (xg_create_scroll_bar, xg_update_scrollbar_pos)
4050 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
4051 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
4052 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
4053 (xg_tool_bar_item_expose_callback): Reformat prototype.
4054 (xg_update_menubar): GList *group => GSList *group.
4055 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
4056 before use.
4057 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
4058 to GTK_IMAGE (wimage).
4059
dd4c5104
DN
40602010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
4061
898b4c5c
DN
4062 * atimer.c: Use "" instead of <> for local includes for
4063 consistency with the rest of the code.
4064
dd4c5104
DN
4065 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
4066 * xrdb.c (get_system_name):
4067 * window.c (shrink_windows):
4068 * syntax.c (forw_comment):
4069 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
4070 (ins_del_costs):
4071 * mem-limits.h (start_of_data):
4072 * lread.c (readevalloop):
4073 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
4074 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
4075 * frame.c (x_get_focus_frame):
4076 * floatfns.c (fmod_float):
4077 * fileio.c (choose_write_coding_system):
4078 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
4079 (malloc_initialize_hook, sort_args, synchronize_locale):
4080 * doprnt.c (doprnt):
4081 * dired.c (compile_pattern):
4082 * data.c (fmod_float):
4083 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
4084 (map_char_table_for_charset):
4085 * charset.c (define_charset_internal):
4086 * alloc.c (Fgarbage_collect): Convert declarations or definitions
4087 to standard C.
4088
9a39b306 40892010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 4090 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
4091
4092 * lread.c (read1): Fix up last change to not mess up `c'.
4093
e6cb2cbb
JB
40942010-07-04 Juanma Barranquero <lekktu@gmail.com>
4095
4096 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
4097
438105ed
JB
40982010-07-04 Juanma Barranquero <lekktu@gmail.com>
4099
4100 Fix prototypes.
4101
e5447b22 4102 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 4103 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
4104 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
4105 arg, as required by internal_condition_case_1.
dcc7404b 4106 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
4107 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
4108 (analyse_first): Fix "const const".
e5447b22 4109 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 4110 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 4111 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 4112
971de7fb
DN
41132010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
4114
4115 * alloc.c: Convert function definitions to standard C.
4116 * atimer.c:
4117 * bidi.c:
4118 * bytecode.c:
4119 * callint.c:
4120 * callproc.c:
4121 * casefiddle.c:
4122 * casetab.c:
4123 * category.c:
4124 * ccl.c:
4125 * character.c:
4126 * charset.c:
4127 * chartab.c:
4128 * cmds.c:
4129 * coding.c:
4130 * composite.c:
4131 * data.c:
4132 * dbusbind.c:
4133 * dired.c:
4134 * dispnew.c:
4135 * doc.c:
4136 * doprnt.c:
4137 * ecrt0.c:
4138 * editfns.c:
4139 * fileio.c:
4140 * filelock.c:
4141 * filemode.c:
4142 * fns.c:
4143 * font.c:
4144 * fontset.c:
4145 * frame.c:
4146 * fringe.c:
4147 * ftfont.c:
4148 * ftxfont.c:
4149 * gtkutil.c:
4150 * indent.c:
4151 * insdel.c:
4152 * intervals.c:
4153 * keymap.c:
4154 * lread.c:
4155 * macros.c:
4156 * marker.c:
4157 * md5.c:
4158 * menu.c:
4159 * minibuf.c:
4160 * prefix-args.c:
4161 * print.c:
4162 * ralloc.c:
4163 * regex.c:
4164 * region-cache.c:
4165 * scroll.c:
4166 * search.c:
4167 * sound.c:
4168 * strftime.c:
4169 * syntax.c:
4170 * sysdep.c:
4171 * termcap.c:
4172 * terminal.c:
4173 * terminfo.c:
4174 * textprop.c:
4175 * tparam.c:
4176 * undo.c:
4177 * unexelf.c:
4178 * window.c:
4179 * xfaces.c:
4180 * xfns.c:
4181 * xfont.c:
4182 * xftfont.c:
4183 * xgselect.c:
4184 * xmenu.c:
4185 * xrdb.c:
4186 * xselect.c:
4187 * xsettings.c:
4188 * xsmfns.c:
4189 * xterm.c: Likewise.
4190
ae492bec
EZ
41912010-07-03 Eli Zaretskii <eliz@gnu.org>
4192
76ea4cc9
EZ
4193 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
4194 frames other than the initial one. Fix reversal of colors when
4195 `reverse' is specified in the frame parameters. Call
4196 update_face_from_frame_parameter instead of
4197 internal-set-lisp-face-attribute. Initialize screen colors from
4198 initial_screen_colors[] when f->default_face_done_p is zero,
4199 instead of depending on being called with default-frame-alist as
4200 the alist argument.
4201
4202 * xfaces.c (update_face_from_frame_parameter): Move out of
4203 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
4204 with HAVE_WINDOW_SYSTEM.
4205
1e6255ae
EZ
4206 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
4207 to menu-bar-mode, if not set in the frame parameters or in
4208 default-frame-alist.
4209
ae492bec
EZ
4210 * w32console.c (sys_tputs): Adjust argument list to prototype in
4211 term.c.
4212
3a35a84c
JB
42132010-07-03 Juanma Barranquero <lekktu@gmail.com>
4214
4215 * lisp.h (memory_warnings): Fix prototype.
4216
4217 * cm.h (evalcost): Fix prototype.
4218
4219 * cm.c (evalcost): Fix arg type.
4220
c532d349
DN
42212010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
4222
4223 * term.c (term_clear_mouse_face, Fidentity):
4224 * syssignal.h (signal_handler_t):
4225 * lisp.h (memory_warnings):
4226 * coding.h (preferred_coding_system):
4227 * cm.h (evalcost):
4228 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
4229
c0b36d46
EZ
42302010-07-02 Eli Zaretskii <eliz@gnu.org>
4231
4232 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
4233 from prototypes.
4234
4235 * msdos.h (load_pixmap): Don't define away.
4236
383e0970
J
42372010-07-02 Jan Djärv <jan.h.d@swipnet.se>
4238
f57e2426
J
4239 * lisp.h:
4240 * atimer.h: Remove define for P_.
4241
4242 * alloc.c: Remove __P and P_ from .c and .m files.
4243 * atimer.c:
4244 * buffer.c:
4245 * callint.c:
4246 * category.c:
4247 * charset.c:
4248 * chartab.c:
4249 * cm.c:
4250 * coding.c:
4251 * composite.c:
4252 * data.c:
4253 * dired.c:
4254 * dispnew.c:
4255 * doc.c:
4256 * editfns.c:
4257 * emacs.c:
4258 * eval.c:
4259 * fileio.c:
4260 * filelock.c:
4261 * fns.c:
4262 * font.c:
4263 * fontset.c:
4264 * frame.c:
4265 * ftfont.c:
4266 * ftxfont.c:
4267 * gmalloc.c:
4268 * gtkutil.c:
4269 * image.c:
4270 * indent.c:
4271 * intervals.c:
4272 * keyboard.c:
4273 * keymap.c:
4274 * lread.c:
4275 * marker.c:
4276 * menu.c:
4277 * minibuf.c:
4278 * print.c:
4279 * process.c:
4280 * scroll.c:
4281 * search.c:
4282 * sound.c:
4283 * strftime.c:
4284 * syntax.c:
4285 * sysdep.c:
4286 * term.c:
4287 * terminal.c:
4288 * textprop.c:
4289 * unexalpha.c:
4290 * w32console.c:
4291 * w32fns.c:
4292 * w32font.c:
4293 * w32menu.c:
4294 * w32term.c:
4295 * w32uniscribe.c:
4296 * window.c:
4297 * xdisp.c:
4298 * xfaces.c:
4299 * xfns.c:
4300 * xfont.c:
4301 * xftfont.c:
4302 * xmenu.c:
4303 * xselect.c:
4304 * xterm.c: Likewise.
4305
383e0970 4306 Remove P_ and __P macros.
f57e2426
J
4307 * atimer.h: Remove P_ and __P macros.
4308 * buffer.h:
383e0970
J
4309 * category.h:
4310 * ccl.h:
4311 * character.h:
4312 * charset.h:
4313 * cm.h:
4314 * coding.h:
4315 * composite.h:
4316 * dispextern.h:
4317 * disptab.h:
9e892c8d 4318 * dosfns.h:
383e0970
J
4319 * font.h:
4320 * fontset.h:
4321 * frame.h:
4322 * gtkutil.h:
4323 * indent.h:
4324 * intervals.h:
4325 * keyboard.h:
4326 * keymap.h:
4327 * lisp.h:
4328 * macros.h:
4329 * md5.h:
4330 * menu.h:
4331 * msdos.h:
4332 * nsterm.h:
4333 * puresize.h:
4334 * region-cache.h:
4335 * syntax.h:
4336 * syssignal.h:
4337 * systime.h:
4338 * termhooks.h:
9e892c8d 4339 * w32font.h:
383e0970
J
4340 * w32term.h:
4341 * widget.h:
4342 * window.h:
4343 * xgselect.h:
4344 * xsettings.h:
4345 * xterm.h: Likewise.
4346
98601119
DN
43472010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
4348
d9170db5
DN
4349 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
4350
98601119
DN
4351 Cleanup old code.
4352 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
4353 * syssignal.h: Remove code for Lynx, not supported anymore.
4354 * vm-limit.c: Remove unused code the depends on emacs not being
4355 defined and NO_LIM_DATA being defined.
4356 * mem-limits.h: Remove dead code.
4357
1f984e12
J
43582010-07-01 Jan Djärv <jan.h.d@swipnet.se>
4359
c49d071a
J
4360 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
4361
9d5405ec
J
4362 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
4363 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
4364
7a18115b
J
4365 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
4366 parameters, they are already absolute.
4367
a628ad9d
JB
4368 * nsterm.m (x_set_window_size, initFrameFromEmacs):
4369 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 4370
a628ad9d 4371 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 4372
a628ad9d
JB
4373 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
4374 Update FRAME_TOOLBAR_HEIGHT.
581a8100 4375
a628ad9d
JB
4376 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
4377 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 4378
c1ef4455
CY
43792010-06-30 Chong Yidong <cyd@stupidchicken.com>
4380
4381 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
4382 check default-frame-alist.
4383
ce8f5a9a
AS
43842010-06-30 Andreas Schwab <schwab@linux-m68k.org>
4385
4386 * process.c (create_process): Avoid using invalid file descriptors.
4387
4388 * callproc.c (child_setup): Avoid closing a file descriptor twice.
4389
bf935339
J
43902010-06-30 Jan Djärv <jan.h.d@swipnet.se>
4391
4392 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
4393 Improve documentation. Return font regardless of use_system_font.
4394 (syms_of_xsettings): Improve documentation for font-use-system-font.
4395
7c33a057
CY
43962010-07-10 Chong Yidong <cyd@stupidchicken.com>
4397
2ec1b5ee
CY
4398 * xfaces.c (realize_face): Garbage the frame if a face is removed
4399 (Bug#6593).
4400
44012010-07-05 Andreas Schwab <schwab@linux-m68k.org>
4402
4403 * keyboard.c: Remove duplicate <setjmp.h>.
4404 (read_key_sequence): Remove volatile qualifiers.
4405
44062010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4407
4408 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
4409 (struct glyph_row): New members left_fringe_offset and
4410 right_fringe_offset.
4411
4412 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
4413 specially.
4414 * w32term.c (w32_draw_fringe_bitmap): Likewise.
4415 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
4416
4417 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 4418 Take account of bitmap offset.
2ec1b5ee
CY
4419 (draw_window_fringes): Take account of window vscroll.
4420 (update_window_fringes): Likewise. Extend top-aligned top indicator
4421 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
4422 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
4423 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
4424
44252010-07-04 Juanma Barranquero <lekktu@gmail.com>
4426
4427 * w32fns.c (Qtooltip): Declare.
4428 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
4429
44302010-07-03 Jan Djärv <jan.h.d@swipnet.se>
4431
4432 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
4433 grab on just Press (Bug#6499).
4434
44352010-07-02 Chong Yidong <cyd@stupidchicken.com>
4436
4437 * frame.c (Qtooltip): New var.
4438 (delete_frame): Use it. Fix faulty if statement. Don't update
4439 mode line for tooltip frames. Suggested by Martin Rudalics.
4440
4441 * xfns.c (x_create_tip_frame):
4442 * w32fns.c (x_create_tip_frame): Use it.
4443
44442010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
4445
4446 * xftfont.c (xftfont_open): Check font width one by one also when
4447 spacing is dual.
4448
4449 * ftfont.c (ftfont_open): Ditto.
4450
6259c2ec
GM
44512010-06-30 Glenn Morris <rgm@gnu.org>
4452
a46007e9
GM
4453 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
4454
6259c2ec
GM
4455 * Makefile.in (CANNOT_DUMP): Update for configure name change.
4456
4457 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
4458 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
4459 * s/darwin.h (SYSTEM_MALLOC):
4460 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
4461
5d1d3d04
J
44622010-06-29 Jan Djärv <jan.h.d@swipnet.se>
4463
4464 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
4465 (ns_get_screen): Don't assign integer to f.
4466 (Fx_display_color_cells): Declarations before statements.
4467
e547b051
J
44682010-06-28 Jan Djärv <jan.h.d@swipnet.se>
4469
5fc8e5bc
J
4470 * xfns.c (x_default_font_parameter): Remove got_from_system
4471 (Bug#6526).
4472
e547b051
J
4473 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
4474 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
4475 defines based on what configure finds.
4476
4477 * xterm.c (XTflash): Use gtk_widget_get_window.
4478 (xg_scroll_callback): Use gtk_adjustment_get_upper and
4479 gtk_adjustment_get_page_size.
4480 (handle_one_xevent): Use gtk_widget_get_mapped.
4481 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
4482 messages.
4483
4484 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
4485
4486 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
4487 HAVE_GTK_FILE_SELECTION_NEW.
4488
4489 * gtkutil.c (xg_display_open, xg_display_close): Remove
4490 HAVE_GTK_MULTIDISPLAY, it is always defined.
4491 (xg_display_open): Return type is void.
4492 (gtk_widget_set_has_window)
4493 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
4494 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
4495 (gtk_adjustment_set_page_increment)
4496 (gtk_adjustment_get_step_increment): #define these if not found
4497 by configure.
4498 (remove_submenu): New define based on Gtk+ version.
4499 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
4500 gtk_widget_get_window.
4501 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
4502 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
4503 (create_dialog): Use gtk_dialog_get_action_area and
4504 gtk_dialog_get_content_area.
4505 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
4506 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
4507 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
4508 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
4509 g_object_ref and g_object_unref.
4510 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
4511 gtk_widget_get_sensitive.
4512 (xg_update_submenu): Use remove_submenu.
4513 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
4514 properties instead to get old x and y position.
4515 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
4516 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 4517 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
4518 (xg_get_tool_bar_widgets): New function.
4519 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
4520 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
4521 (toolbar_set_orientation): New #define based on if configure
4522 finds gtk_orientable_set_orientation.
4523 (xg_create_tool_bar): Call toolbar_set_orientation.
4524 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
4525 instead of gtk_box_pack_start_defaults.
4526
b9229673
CY
45272010-06-28 Chong Yidong <cyd@stupidchicken.com>
4528
4529 * cmds.c (Fdelete_backward_char): Move into Lisp.
4530
bbc803b0
DN
45312010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
4532
4533 * s/freebsd.h (BSD4_2): Remove redundant definition.
4534 bsd-common.h defines it already.
4535
6431f2e6
CY
45362010-06-27 Chong Yidong <cyd@stupidchicken.com>
4537
4538 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
4539 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
4540 tool-bar-mode, which are now set using these X resources at
4541 startup, to determine the defaults (Bug#2249).
4542
4543 * w32fns.c (Fx_create_frame):
4544 * nsfns.m (Fx_create_frame): Likewise.
4545
4546 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
4547
8c079ebb
JB
45482010-06-24 Juanma Barranquero <lekktu@gmail.com>
4549
4550 * gtkutil.c (xg_update_scrollbar_pos):
4551 Avoid C99 mid-block variable declaration.
4552
e9b7ab96
JD
45532010-06-22 Jan Djärv <jan.h.d@swipnet.se>
4554
bc869eca
JD
4555 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
4556
2b7e356a 4557 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
4558
4559 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
4560 if height is less than scroll bar min size.
4561 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
4562
e9b7ab96
JD
4563 * xfns.c (x_default_font_parameter): Try to open font from system
4564 before using it (bug#6478). Rename got_from_gconf to got_from_system.
4565
a628ad9d 45662010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
4567
4568 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
4569
70c4cfbb
EZ
45702010-06-20 Eli Zaretskii <eliz@gnu.org>
4571
4572 * xdisp.c (try_scrolling): When scroll-conservatively is set to
4573 most-positive-fixnum, be extra accurate when scrolling window
4574 start, to avoid missing the cursor line.
4575
ad5a12b5
EZ
45762010-06-19 Eli Zaretskii <eliz@gnu.org>
4577
4578 * xdisp.c (try_scrolling): Compute the limit for searching point
4579 in forward scroll from scroll_max, instead of an arbitrary limit
4580 of 10 screen lines. See
4581 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
4582 and
4583 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
4584 for details.
4585
2a64315a 45862010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
4587
4588 * editfns.c (Fbyte_to_string): Pacify compiler.
4589
288cf4e9
SM
45902010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
4591
4592 * lread.c (read1): Phase out old-style backquotes a bit more.
4593
6e6e5760
EZ
45942010-06-12 Eli Zaretskii <eliz@gnu.org>
4595
cbc4fd20
EZ
4596 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
4597 bidimirror.h.
4598
4599 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
4600
317fbf33
EZ
4601 * bidi.c (bidi_initialize): Remove explicit initialization of
4602 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 4603 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 4604 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
4605
4606 * biditype.h: New file.
4607
cbc4fd20
EZ
4608 * bidimirror.h: New file.
4609
6e6e5760
EZ
4610 * window.c (syms_of_window): Doc fix (bug#6409).
4611
4176cba2
RF
46122010-06-12 Romain Francoise <romain@orebokech.com>
4613
4614 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
4615 ediff-hook.
4616
cb4bfcb5
GM
46172010-06-10 Glenn Morris <rgm@gnu.org>
4618
64c60c2f
GM
4619 * editfns.c (Fbyte_to_string): Pacify compiler.
4620
cb4bfcb5
GM
4621 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
4622
2ec1b5ee
CY
46232010-06-26 Andreas Schwab <schwab@linux-m68k.org>
4624
4625 * alloc.c (Fmake_byte_code): Don't access undefined argument
4626 (Bug#6517).
4627
46282010-06-25 Chong Yidong <cyd@stupidchicken.com>
4629
4630 * xdisp.c (next_element_from_image): Ensure that after-strings are
4631 read the next time we hit handle_stop (Bug#1336).
4632
46332010-06-23 Andreas Schwab <schwab@linux-m68k.org>
4634
4635 * lread.c (read1): Signal error if #s is not followed by paren.
4636
46372010-06-19 Chong Yidong <cyd@stupidchicken.com>
4638
4639 * image.c (free_image): Mark frame as garbaged (Bug#6426).
4640
4641 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
4642
46432010-06-15 Glenn Morris <rgm@gnu.org>
4644
4645 * editfns.c (Fbyte_to_string): Pacify compiler.
4646
e454a4a3
SM
46472010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
4648
4649 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
4650 Check `object's type before accessing its guts.
4651
c1b1acc2
DN
46522010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
4653
4654 * s/usg5-4.h: Fix previous change.
4655 Suggested by Lawrence Mitchell <wence@gmx.li>
4656
657d4c0b
AS
46572010-06-08 Andreas Schwab <schwab@linux-m68k.org>
4658
4659 * minibuf.c (Fall_completions): Add more checks.
4660
9b27fd9f
JB
46612010-06-08 Juanma Barranquero <lekktu@gmail.com>
4662
4663 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
4664
a99ebb40
DN
46652010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
4666
d7c5d87d
DN
4667 * lread.c (X_OK): Remove, unused.
4668
0263a941
DN
4669 * dispnew.c: Remove obsolete comment.
4670
a99ebb40
DN
4671 Remove INCLUDED_FCNTL.
4672 * xterm.c (INCLUDED_FCNTL):
4673 * callproc.c (INCLUDED_FCNTL):
4674 * alloc.c (INCLUDED_FCNTL):
4675 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
4676 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
4677
13b5221f
MR
46782010-06-07 Martin Rudalics <rudalics@gmx.at>
4679
4680 * window.c (Fselect_window): Move `record_buffer' up to the
4681 beginning of this function, so the buffer gets recorded
4682 even if the selected window does not change.
4683 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
4684
5220357f
JB
46852010-06-07 Juanma Barranquero <lekktu@gmail.com>
4686
4687 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
4688 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
4689
3085237c
DN
46902010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
4691
4692 Remove BSTRING related code, all platforms define it.
4693 * s/usg5-4.h (BSTRING): Remove definition.
4694 * s/template.h (BSTRING):
4695 * s/msdos.h (BSTRING):
4696 * s/ms-w32.h (BSTRING):
4697 * s/hpux10-20.h (BSTRING):
4698 * s/gnu-linux.h (BSTRING):
4699 * s/darwin.h (BSTRING):
4700 * s/cygwin.h (BSTRING):
4701 * s/bsd-common.h (BSTRING):
4702 * s/aix4-2.h (BSTRING): Likewise.
4703 * sysdep.c: Remove code depending on BSTRING not being defined.
4704
409f2919
JB
47052010-06-05 Juanma Barranquero <lekktu@gmail.com>
4706
4707 Remove obsolete macro BASE_LEADING_CODE_P.
4708 * character.h (BASE_LEADING_CODE_P): Remove.
4709 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
4710 * buffer.c (Fset_buffer_multibyte):
4711 * indent.c (scan_for_column, compute_motion):
4712 * insdel.c (count_combining_before, count_combining_after):
4713 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
4714
087fc47a
JB
47152010-06-04 Juanma Barranquero <lekktu@gmail.com>
4716
4717 Turn `directory-sep-char' into a noop.
4718
4719 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
4720 (DIRECTORY_SEP): Define unconditionally.
4721
4722 * s/ms-w32.h (DIRECTORY_SEP): Remove.
4723
4724 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
4725 call dostounix_filename directly.
4726
4727 * fileio.c (CORRECT_DIR_SEPS): Remove.
4728 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
4729 (Fsubstitute_in_file_name): Use dostounix_filename instead.
4730 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
4731 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
4732
4733 * w32proc.c (CORRECT_DIR_SEPS): Remove.
4734 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
4735
0eb7675e
AS
47362010-06-03 Andreas Schwab <schwab@linux-m68k.org>
4737
a628ad9d
JB
4738 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
4739 (Bug#6346)
0eb7675e 4740
78edd3b7
JB
47412010-06-03 Juanma Barranquero <lekktu@gmail.com>
4742
4743 * ccl.c (Fccl_program_p): Fix typo in docstring.
4744
eb697db5
DN
47452010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
4746
4747 Move UNEXEC definition to autoconf.
4748 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
4749 * s/sol2-10.h (UNEXEC):
4750 * s/irix6-5.h (UNEXEC):
4751 * s/hpux10-20.h (UNEXEC):
4752 * s/gnu-linux.h (UNEXEC):
4753 * s/darwin.h (UNEXEC):
4754 * s/cygwin.h (UNEXEC):
4755 * s/bsd-common.h (UNEXEC):
4756 * s/aix4-2.h (UNEXEC):
4757 * m/alpha.h (UNEXEC): Likewise.
4758 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
4759
aa3830c4
JB
47602010-06-03 Juanma Barranquero <lekktu@gmail.com>
4761
4762 Remove obsolete pre-unicode2 macros.
4763 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
4764 * composite.c (composition_reseat_it):
4765 * data.c (Faset):
4766 * fns.c (Ffillarray):
4767 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
4768 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
4769
d234d13e
JL
47702010-06-03 Juri Linkov <juri@jurta.org>
4771
4772 * buffer.c (Fother_buffer): Add CHECK_FRAME.
4773 (Fswitch_to_buffer): Remove unused variable `err'.
4774
0d4bcf4d
GM
47752010-06-03 Glenn Morris <rgm@gnu.org>
4776
e23dc1e2
GM
4777 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
4778
05b09564
GM
4779 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
4780 now that AH_BOTTOM does it.
4781
824e2978
GM
4782 * m/hp800.h (HAVE_ALLOCA):
4783 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
4784
0d4bcf4d
GM
4785 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
4786 Remove NOT_C_CODE tests, it is always true now.
4787
c55d2abf
DN
47882010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
4789
08a494a3
DN
4790 Fix config.h includes.
4791 * xsettings.c:
4792 * xgselect.c:
4793 * nsterm.m:
4794 * nsselect.m:
4795 * nsimage.m:
4796 * nsfont.m:
4797 * nsfns.m:
4798 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
4799 other files do.
4800
75934b1d
DN
4801 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
4802
9f32a766
DN
4803 * s/sol2-6.h: Remove obsolete comments.
4804
c55d2abf
DN
4805 Remove unnecessary alloca.h includes.
4806 * keymap.c: Do not include alloca.h, config.h does that.
4807 * sysdep.c: Likewise. Do not define fwrite, not used.
4808
06ac62b4
SM
48092010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
4810
4811 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
4812 the HAVE_TERMIO where it belongs (bug#6149).
4813
1ab8293c
SM
48142010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
4815
4816 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
4817 of bug#6305).
4818
6dcfd253
EZ
48192010-05-30 Eli Zaretskii <eliz@gnu.org>
4820
4821 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
4822 state is always cached (bug#6306).
4823
6d26bbb2
EZ
48242010-05-29 Eli Zaretskii <eliz@gnu.org>
4825
06fa4a23
EZ
4826 Fix cursor motion in bidi-reordered continued lines.
4827 * xdisp.c (try_cursor_movement): Backup to non-continuation line
4828 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
4829 over continuation lines in bidi-reordered buffers. Return
4830 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
4831 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
4832
f5783df3
MA
48332010-05-28 Michael Albinus <michael.albinus@gmx.de>
4834
4835 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
4836
7d56b2dd
KH
48372010-05-28 Kenichi Handa <handa@m17n.org>
4838
4839 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
4840 Don't sheck SPEC if it is nil.
4841 (font_list_entities): Call font_delete_unmatched if
b925d231 4842 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 4843
e58d4ff7
GM
48442010-05-28 Glenn Morris <rgm@gnu.org>
4845
4846 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
4847
f1a5d776
CY
48482010-05-27 Chong Yidong <cyd@stupidchicken.com>
4849
4850 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
4851 whether to trash.
4852 (internal_delete_file, Frename_file): Callers changed.
4853 (delete_by_moving_to_trash): Doc fix.
4854 (Fdelete_directory_internal): Don't move to trash.
4855
4856 * callproc.c (delete_temp_file):
4857 * buffer.c (Fkill_buffer): Callers changed.
4858
4859 * lisp.h: Update prototype.
4860
f44a59e6
CY
48612010-05-27 Chong Yidong <cyd@stupidchicken.com>
4862
4863 * xdisp.c (redisplay_window): After redisplay, check if point is
4864 still valid before setting it (Bug#6177).
4865
81ac4f35
GM
48662010-05-27 Glenn Morris <rgm@gnu.org>
4867
4868 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
4869 Convert comments to Makefile format.
4870
4871 * Makefile.in (bootstrap-clean): No more Makefile.c.
4872
ccd89fb3
GM
48732010-05-26 Glenn Morris <rgm@gnu.org>
4874
90278cb6
GM
4875 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
4876 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
4877
ccd89fb3
GM
4878 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
4879 Remove.
4880 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4881
b7050583
KH
48822010-05-26 Kenichi Handa <handa@m17n.org>
4883
4884 * composite.c (composition_compute_stop_pos): Fix condition for
4885 backward scanning.
4886
e5458003
GM
48872010-05-25 Glenn Morris <rgm@gnu.org>
4888
c345fe90
GM
4889 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
4890 Move before TEMACS_LDFLAGS.
4891 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4892 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4893
2e0689ab
GM
4894 * Makefile.in (NOT_C_CODE): No longer define.
4895 (config.h): No longer include.
4896
8009a5e8
GM
4897 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
4898 variables it may reference.
4899
e5458003
GM
4900 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
4901 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
4902
10f72a37
KH
49032010-05-25 Kenichi Handa <handa@m17n.org>
4904
4905 * dispextern.h (struct composition_it): New members rule_idx and
4906 charpos.
4907
4908 * xdisp.c (set_iterator_to_next): While scanning backward, assume
4909 that the character positions of IT point the last character of the
4910 current grapheme cluster.
4911 (next_element_from_composition): Don't change character positions
4912 of IT.
4913 (append_composite_glyph): Set glyph->charpos to
4914 it->cmp_it.charpos.
4915
4916 * composite.c (autocmp_chars): Change the first argument to RULE,
4917 and try composition with RULE only.
4918 (composition_compute_stop_pos): Record the index number of the
4919 composition rule in CMP_IT->rule_idx.
4920 (composition_reseat_it): Call autocmp_chars repeatedly until the
4921 correct rule of the composition is found.
4922 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
4923 is at the last character of the current grapheme cluster when
4924 CMP_IT->reversed_p is nonzero.
4925
171eda53 49262010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 4927
171eda53
SM
4928 * editfns.c (Fbyte_to_string): New function.
4929
66a9f7f4
SM
49302010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
4931
4932 * process.c (Fmake_network_process): Set :host to nil if it's not used.
4933 Suggested by Masatake YAMATO <yamato@redhat.com>.
4934
d8c315d1
EZ
49352010-05-23 Eli Zaretskii <eliz@gnu.org>
4936
171eda53 4937 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 4938
f5b416d2 49392010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
4940
4941 * s/netbsd.h: If terminfo is found, use it in preference to
4942 termcap. (Bug#6190) [Backport from trunk]
4943
0416466c
EZ
49442010-05-19 Eli Zaretskii <eliz@gnu.org>
4945
11117830 4946 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
4947
4948 * dispextern.h (struct glyph_row): New members minpos and maxpos.
4949 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
4950 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
4951 and maxpos members instead of start.pos and end.pos, respectively.
4952
4953 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
4954 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
4955 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
4956 (try_window_reusing_current_matrix, try_window_id):
4957 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
4958 (init_from_display_pos, init_iterator): Use EMACS_INT for
4959 character and byte positions.
66a9f7f4 4960 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
4961 arguments for minimum and maximum buffer positions seen by
4962 display_line for this row. Don't use iterator to find the
4963 position following the maximum one; instead, increment the
11117830
EZ
4964 position found by display_line directly. Fix logic; eol_pos
4965 should be tested before the rest. Handle the case of characters
4966 delivered from display vector (bug#6036). Fix tests related to
4967 it->method. Handle the truncated_on_right_p rows.
4968 (RECORD_MAX_MIN_POS): New macro.
4969 (display_line): Use it to record the minimum and maximum buffer
4970 positions for glyphs in the row being assembled. Record the
4971 position of the newline that terminates the line. If word wrap is
4972 in effect, restore minimum and maximum positions seen up to the
4973 wrap point, when iterator returns to it.
4974 (try_window_reusing_current_matrix): Give up if in bidi-reordered
4975 row and cursor not already at point. Restore original pre-bidi
4976 code for unidirectional buffers.
d36fe237
EZ
4977
4978 * dispnew.c (increment_row_positions, check_matrix_invariants):
4979 Increment and check row->start.pos and row->end.pos, in addition
4980 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
4981
11117830
EZ
4982 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
4983 Display truncated_on_left_p and truncated_on_right_p flags.
4984 Formatting fixes.
4985 (pmtxrows): Display the ordinal number of each row. Don't display
4986 rows beyond the last one.
4987
4988 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
4989 it is not copied by bidi_copy_it.
4990
6e83d800
EZ
49912010-05-22 Eli Zaretskii <eliz@gnu.org>
4992
4993 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
4994 (Bug#6237)
4995
110683ad
CY
49962010-05-22 Chong Yidong <cyd@stupidchicken.com>
4997
4998 * image.c (Fimage_flush): Rename from image-refresh.
4999
98fe5161
CY
50002010-05-21 Chong Yidong <cyd@stupidchicken.com>
5001
5002 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
5003 just one window.
5004
5005 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
5006 (clear_image_cache): If the number of cached images is unusually
5007 large, decrease the cache eviction delay (Bug#6230).
5008
e8752c66
GM
50092010-05-21 Glenn Morris <rgm@gnu.org>
5010
66dbf213
GM
5011 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
5012 Move these rules to ns.mk.
5013 * ns.mk: New file.
5014
04384b2d
GM
5015 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
5016
e8752c66
GM
5017 * Makefile.in (CANNOT_DUMP): New, set by configure.
5018 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
5019
2e2bbddb
JL
50202010-05-20 Juri Linkov <juri@jurta.org>
5021
5022 * fileio.c (Fdelete_file): Change interative spec to use
5023 `read-file-name' like in `find-file-read-args' where the default
5024 value is `default-directory' instead of `buffer-file-name'.
5025 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
5026
31c4aaf6
KR
50272010-05-20 Kevin Ryde <user42@zip.com.au>
5028
5029 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
5030 (Voverriding_terminal_local_map, Vsystem_key_alist)
5031 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
5032
9d5cf9b6
GM
50332010-05-20 Glenn Morris <rgm@gnu.org>
5034
5035 * Makefile.in (DEPDIR): New constant.
5036 (DEPFLAGS): Set with configure, not cpp.
5037 (MKDEPDIR): New, set by configure.
5038 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
5039 (clean): Use $DEPDIR.
5040 (deps_frag): Include from configure.
5041 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
5042 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
5043
ead6f8f5
EZ
5044 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
5045 reallocation of the cache. (Bug#6210)
5046
7f34aec3
GM
50472010-05-19 Glenn Morris <rgm@gnu.org>
5048
d494e8f2
GM
5049 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
5050
c1d0dcfd
GM
5051 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
5052 (GNULIB_VAR): Remove.
5053 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
5054
5055 * m/ibms390x.h (LINKER):
5056 * m/macppc.h (LINKER) [GNU_LINUX]:
5057 * s/aix4-2.h (ORDINARY_LINK):
5058 * s/cygwin.h (LINKER):
5059 * s/darwin.h (ORDINARY_LINK):
5060 * s/gnu.h (ORDINARY_LINK):
5061 * s/netbsd.h (LINKER):
5062 * s/usg5-4.h (ORDINARY_LINK):
5063 Move to configure.
5064
7f34aec3
GM
5065 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
5066
754790b6
CY
50672010-05-18 Chong Yidong <cyd@stupidchicken.com>
5068
5069 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
5070 prevent stack overflow if number of arguments is too large
5071 (Bug#6214).
5072
161e44d1
JB
50732010-05-18 Juanma Barranquero <lekktu@gmail.com>
5074
5075 * charset.c (load_charset_map_from_file): Don't call close after fclose.
5076
be4ff9da
GM
50772010-05-18 Glenn Morris <rgm@gnu.org>
5078
9539dc5d
GM
5079 * s/gnu-linux.h: Combine two conditionals.
5080
5081 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
5082 $(POST_ALLOC_OBJ).
5083
40dc6bf4
GM
5084 * Makefile.in (RALLOC_OBJ): New, set by configure.
5085 (rallocobj): Replace with the previous variable.
5086 (otherobj): Use $RALLOC_OBJ.
5087
5088 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
5089 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
5090
be4ff9da
GM
5091 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
5092 (gmallocobj, vmlimitobj): Replace with previous two variables.
5093 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
5094
16455a85
GM
50952010-05-17 Glenn Morris <rgm@gnu.org>
5096
5097 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
5098 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
5099
5fdb7468
GM
51002010-05-16 Glenn Morris <rgm@gnu.org>
5101
7ca1f3f9
GM
5102 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
5103
7541dad5
GM
5104 * Makefile.in (clean): Get rid of HAVE_NS conditional.
5105
da53fab9
GM
5106 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
5107 trailing "/".
5108
b02a6645
GM
5109 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
5110 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
5111
8877ca0f
GM
5112 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
5113 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
5114 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
5115 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
5116 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
5117
5fdb7468
GM
5118 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
5119 Remove ${STARTFLAGS}, nothing ever sets it.
5120
95adb4b1
DN
51212010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
5122
5123 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
5124
676b6304
GM
51252010-05-16 Glenn Morris <rgm@gnu.org>
5126
9beab9ce
GM
5127 * Makefile.in (LIBX_BASE): Always define.
5128
8a95f0e7
GM
5129 * Makefile.in (LIBX_OTHER): Move out of cpp section.
5130
676b6304
GM
5131 * Makefile.in (LIBXT): Always define.
5132
6e546d18
GM
51332010-05-15 Glenn Morris <rgm@gnu.org>
5134
4235ca47 5135 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 5136
6e546d18
GM
5137 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
5138 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
5139
8c5ff6dd
KR
51402010-05-15 Ken Raeburn <raeburn@raeburn.org>
5141
560bb7ae 5142 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
5143 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
5144
8b4eb796
KR
5145 * emacs.c (main): Initialize initial-environment and
5146 process-environment before generating from env, not after.
5147
8c5ff6dd
KR
5148 Handle --version reasonably in CANNOT_DUMP configuration.
5149 * emacs.c (emacs_version, emacs_copyright): New string variables.
5150 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
5151 (syms_of_emacs): Defvar them, and initialize them from the C
5152 string variables.
5153 (main): If initialization hasn't been done, print initial version
5154 info from the C strings, instead of starting an interactive session.
5155
dbd3f723
EZ
51562010-05-15 Eli Zaretskii <eliz@gnu.org>
5157
d20e1419
EZ
5158 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
5159 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
5160 (bidi_paragraph_init): Remove redundant assertion that we are at
5161 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
5162
5163 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
5164 (syms_of_xdisp): Defsubr it.
5165
d36fe237
EZ
5166 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
5167
dbd3f723
EZ
5168 * Makefile.in: Fix MSDOS-related comments.
5169
02be533b
GM
51702010-05-15 Glenn Morris <rgm@gnu.org>
5171
1a82cca9
GM
5172 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
5173 (really-lwlib, really-oldXMenu): Always define.
5174 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
5175
3df7b338
GM
5176 * Makefile.in: Simplify cpp conditional.
5177
2b5f541b
GM
5178 * Makefile.in (${ns_appdir}): Simplify using umask.
5179
02be533b
GM
5180 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
5181
4e2db1fe
SM
51822010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
5183
5184 * eval.c (specbind): Remove left-over duplicate test.
5185 Disallow let-binding frame-local vars. Add comment.
5186
4b292a22
EZ
51872010-05-14 Eli Zaretskii <eliz@gnu.org>
5188
2fe72643 5189 Make the cache of bidi iterator states dynamically allocated.
1edbd309 5190 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
5191 (bidi_init_it): Call it.
5192 (bidi_cache_iterator_state): Enlarge the cache if needed.
5193
4e2db1fe 5194 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
5195 bidi_get_next_char_visually. All callers changed.
5196
82ebc97b
KH
51972010-05-14 Kenichi Handa <handa@m17n.org>
5198
5199 * dispextern.h (struct composition_it): New member reversed_p.
5200
5201 * composite.c (composition_compute_stop_pos): Search backward if
5202 ENDPOS < CHARPOS.
5203 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
5204 Set CMP_IT->reversed_p.
b4b6e17e 5205 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 5206
4e2db1fe
SM
5207 * xdisp.c (set_iterator_to_next):
5208 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
5209 scanning backward. Call composition_compute_stop_pos if scan
5210 direction is changed.
5211 (next_element_from_buffer): Call composition_compute_stop_pos with
5212 negative ENDPOS if we are scanning backward.
5213 (next_element_from_composition): Pay attention to
5214 IT->cmp_it.reversed_p.
5215
0e5d7800
KH
52162010-05-14 Kenichi Handa <handa@m17n.org>
5217
560bb7ae 5218 * font.c (font_range): Return the range for the font found at first.
0e5d7800 5219
cb027b32
GM
52202010-05-14 Glenn Morris <rgm@gnu.org>
5221
177b0288
GM
5222 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
5223
fbc00890
GM
5224 * Makefile.in (mktime, X11, register): Move undefs to configure.
5225
f14d1dfd
GM
5226 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
5227 (MSDOS_X_OBJ): New variable.
5228 (MSDOS_SUPPORT_REAL): New constant.
5229 (MSDOS_SUPPORT): Set as a variable, not with cpp.
5230 (obj): Use MSDOS_X_OBJ.
5231 (lisp): Use MSDOS_SUPPORT as a variable.
5232
11842bd8
GM
5233 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
5234 (GPM_MOUSE_SUPPORT): Now it's a constant.
5235 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
5236 not cpp.
5237
489d31a4 5238 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 5239 (ns_appresdir): Remove, unused.
e20f1f07 5240
489d31a4
GM
5241 * Makefile.in (SHELL): Move outside cpp section.
5242
cb027b32
GM
5243 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
5244
5a903aa9
GM
52452010-05-13 Glenn Morris <rgm@gnu.org>
5246
3369c79f
GM
5247 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
5248 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
5249
d5e982a6
GM
5250 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
5251 HAVE_WINDOW_SYSTEM must be too.
5252
6192e163
GM
5253 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
5254 (lisp): Remove WINNT_SUPPORT.
5255
472c5d6b
GM
5256 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
5257 Let configure set these variables (to empty) in this case as well.
5258
0116466b
GM
5259 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
5260 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
5261
5a903aa9
GM
5262 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
5263 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
5264 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
5265 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
5266 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 5267 the values output by configure.
5a903aa9
GM
5268 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
5269
1a0d7c06
GM
52702010-05-12 Glenn Morris <rgm@gnu.org>
5271
b5457f14
GM
5272 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
5273 (LINKER_WAS_SPECIFIED): Remove.
5274
1a0d7c06
GM
5275 * Makefile.in (LIB_GCC): Set using configure, not cpp.
5276 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
5277 * m/arm.h (LIB_GCC) [GNU_LINUX]:
5278 * s/cygwin.h (LIB_GCC):
5279 * s/freebsd.h (LIB_GCC):
5280 * s/gnu-linux.h (LIB_GCC):
5281 * s/msdos.h (LIB_GCC):
5282 * s/netbsd.h (LIB_GCC):
5283 Move to configure.
5284
3ffd4615 52852010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
5286
5287 * ftfont.c: Fix incorrect parentheses of #if condition for
5288 definining M17N_FLT_USE_NEW_FEATURE.
5289
acddf8ae
GM
52902010-05-11 Glenn Morris <rgm@gnu.org>
5291
5292 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
5293 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
5294
ae5e04fa
EZ
52952010-05-10 Eli Zaretskii <eliz@gnu.org>
5296
5297 * xdisp.c (init_iterator): Don't turn on bidi reordering in
5298 unibyte buffers. See
5299 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
5300
7490175b
GM
53012010-05-10 Glenn Morris <rgm@gnu.org>
5302
97efb629
GM
5303 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
5304 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
5305 (LIBES): Use LIBS_SYSTEM as a variable.
5306 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
5307 * s/aix4-2.h (LIBS_SYSTEM):
5308 * s/freebsd.h (LIBS_SYSTEM):
5309 * s/hpux10-20.h (LIBS_SYSTEM):
5310 * s/sol2-6.h (LIBS_SYSTEM):
5311 * s/unixware.h (LIBS_SYSTEM):
5312 Move to configure.
5313
7490175b
GM
5314 * s/aix4-2.h (MAIL_USE_LOCKF):
5315 * s/bsd-common.h (MAIL_USE_FLOCK):
5316 * s/darwin.h (MAIL_USE_FLOCK):
5317 * s/gnu-linux.h (MAIL_USE_FLOCK):
5318 * s/irix6-5.h (MAIL_USE_FLOCK):
5319 * s/template.h (MAIL_USE_FLOCK):
5320 Move to configure.
5321
0235128c 53222010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
5323
5324 * Version 23.2 released.
5325
0235128c 53262010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
5327
5328 * composite.c (autocmp_chars): Save point as marker before calling
5329 auto-composition-function (Bug#5984).
5330
5331 * lisp.h (restore_point_unwind): Add prototype.
5332
5333 * fileio.c (restore_point_unwind): Remove static attribute.
5334
0235128c 53352010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
5336
5337 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
5338 new feature of libotf and m17n-flt.
0235128c
SM
5339 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
5340 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
5341 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
5342 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
5343 that OUT is NULL. Use OTF_drive_gsub_with_log and
5344 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
5345 OTF_drive_gpos.
5346 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
5347 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
5348 Setup mflt_enable_new_feature and mflt_try_otf.
5349
4721152c
J
53502010-05-08 Jan Djärv <jan.h.d@swipnet.se>
5351
5352 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
5353
5354 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
5355 box and toolbar (Bug #6139).
5356 (xg_create_tool_bar): Remove comment (Bug #6139).
5357 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
5358 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
5359
ee0a16cf
JB
53602010-05-08 Juanma Barranquero <lekktu@gmail.com>
5361
5362 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
5363 Update dependencies.
5364
96d79611
EZ
53652010-05-08 Eli Zaretskii <eliz@gnu.org>
5366
5367 * fringe.c (update_window_fringes): Set up truncation bitmaps for
5368 R2L lines.
5369
40c17879
GM
53702010-05-08 Glenn Morris <rgm@gnu.org>
5371
7b42b29f
GM
5372 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
5373
40c17879
GM
5374 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
5375 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
5376 (termcapobj): Replace with TERMCAP_OBJ.
5377 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
5378 (LIBES): Use LIBS_TERMCAP as a variable.
5379
5380 * s/freebsd.h (osreldate.h): No longer include, since this file
5381 does not use __FreeBSD_version any more.
5382
5383 * s/aix4-2.h (TERMINFO):
5384 * s/cygwin.h (TERMINFO):
5385 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
5386 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
5387 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
5388 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
5389 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
5390 * s/irix6-5.h (TERMINFO):
5391 * s/netbsd.h (LIBS_TERMCAP):
5392 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
5393 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
5394 * s/usg5-4.h (TERMINFO):
5395 Move to configure.
5396
94b612ad
SM
53972010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
5398
5399 * eval.c (unbind_to): Don't unbind a local binding into the global
5400 binding when the local binding disappeared. Inversely, don't unbind
5401 a global binding into a newly created local binding.
5402 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
5403 can specify the frame to use, when applicable. Adjust callers.
5404
15e12598 54052010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 5406 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
5407
5408 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
5409
f724825e
EZ
54102010-05-07 Eli Zaretskii <eliz@gnu.org>
5411
5cba3209
EZ
5412 * w32fns.c: Include w32.h.
5413 (Fw32_shell_execute): Decode the error message before passing it
5414 to `error'. (Bug#6126)
5415
d16bdfc3
EZ
5416 * msdos.c (dos_set_window_size):
5417 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
5418 instead of `XSYMBOL (foo)->value'.
5419
59d93e87
EZ
54202010-05-07 Eli Zaretskii <eliz@gnu.org>
5421
9fdec8bc
EZ
5422 Fix the MS-DOS build, broken by autoconfiscation.
5423
5424 * Makefile.in: Don't use Make-style comments past the "start of
5425 cpp stuff" line.
5426 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
5427
5428 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
5429 edited directly by msdos/sed1v2.inp).
f724825e 5430
2f86b22b
GM
54312010-05-07 Glenn Morris <rgm@gnu.org>
5432
5433 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
5434 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
5435 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
5436 move out of cpp section.
5437 * s/freebsd.h (LD_SWITCH_SYSTEM):
5438 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
5439 * s/netbsd.h (LD_SWITCH_SYSTEM):
5440 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
5441
49ebbd65
DN
54422010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
5443
5444 Define LIB_STANDARD and START_FILES using autoconf.
5445 * s/usg5-4.h (LIB_STANDARD):
5446 * s/netbsd.h (START_FILES):
5447 * s/irix6-5.h (LIB_STANDARD):
5448 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
5449 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
5450 * s/freebsd.h (START_FILES):
5451 * s/darwin.h (START_FILES):
5452 * s/cygwin.h (START_FILES):
5453 * s/aix4-2.h (LIB_STANDARD):
5454 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
5455 * Makefile.in (STARTFILES): Rename to START_FILES, define using
5456 autoconf, not cpp.
5457
d43c06d6
DN
54582010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
5459
28823648
DN
5460 Remove NEED_BSDTTY and NEED_UNISTD_H.
5461 * s/hpux10-20.h (NEED_BSDTTY): Remove.
5462 * s/aix4-2.h (NEED_UNISTD_H): Remove.
5463 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
5464 <sys/ptyio.h> and <unistd.h>.
5465
aca00430
DN
5466 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
5467
d43c06d6
DN
5468 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
5469 * s/gnu.h (START_FILES): Remove empty definition.
5470
3e56b11d
JD
54712010-05-06 Jan Djärv <jan.h.d@swipnet.se>
5472
5473 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
5474
e3cf0cde
GM
54752010-05-06 Glenn Morris <rgm@gnu.org>
5476
5477 * Makefile.in (CPP, LN_S): Remove unused variables.
5478
774b9a60
SM
54792010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
5480
5481 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
5482
4ab92842
LM
54832010-05-05 Lawrence Mitchell <wence@gmx.li>
5484
5485 * m/sparc.h: Fix typo in earlier change.
5486
178f2507
SM
54872010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
5488
5489 Misc tweaks.
5490 * eval.c (Fdefvaralias): Remove unintended nested if.
5491 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
5492
80f00217 54932010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
5494
5495 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
5496
ef03a4e6
DN
54972010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
5498
58eb6cf0
DN
5499 Remove BSD_PGRPS.
5500 * s/bsd-common.h (BSD_PGRPS): Remove undef.
5501 * s/gnu-linux.h (BSD_PGRPS): Remove.
5502 * term.c (dissociate_if_controlling_tty):
5503 * sysdep.c (narrow_foreground_group, widen_foreground_group)
5504 (init_sys_modes, reset_sys_modes):
5505 * emacs.c (main):
5506 * callproc.c (Fcall_process, child_setup): Remove code depending
5507 on BSD_PGRPS.
5508
ef03a4e6
DN
5509 Remove POSIX_SIGNALS.
5510 * s/usg5-4.h (POSIX_SIGNALS):
5511 * s/netbsd.h (POSIX_SIGNALS):
5512 * s/msdos.h (POSIX_SIGNALS):
5513 * s/ms-w32.h (POSIX_SIGNALS):
5514 * s/hpux11.h (POSIX_SIGNALS):
5515 * s/gnu.h (POSIX_SIGNALS):
5516 * s/gnu-linux.h (POSIX_SIGNALS):
5517 * s/freebsd.h (POSIX_SIGNALS):
5518 * s/darwin.h (POSIX_SIGNALS):
5519 * s/cygwin.h (POSIX_SIGNALS):
5520 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
5521 * s/unixware.h:
5522 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
5523 * process.c (create_process):
5524 * syssignal.h:
5525 * sysdep.c (wait_for_termination, init_signals):
5526 * process.c (create_process):
5527 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
5528 remove all code that assumes the contrary.
5529
49628785
GM
55302010-05-04 Glenn Morris <rgm@gnu.org>
5531
27a2cdfc
GM
5532 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
5533 variable.
5534 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
5535 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
5536 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
5537 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
5538 LD_SWITCH_SYSTEM_tmp.
5539 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
5540 New variables, set by configure.
5541
eb21eab5
GM
5542 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
5543 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
5544 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
5545 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
5546 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
5547
49628785
GM
5548 * s/aix4-2.h (C_SWITCH_SYSTEM):
5549 * m/alpha.h (C_SWITCH_MACHINE):
5550 Move to configure.in.
5551 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
5552 New variables, set by configure.
5553 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
5554 $c_switch_machine and $c_switch_system.
5555
7dff330b
DN
55562010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
5557
5558 * s/hpux10-20.h (LIB_STANDARD): New definition.
5559 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
5560 on it, not used anymore.
5561
53967e09
CY
55622010-05-03 Chong Yidong <cyd@stupidchicken.com>
5563
5564 * eval.c (internal_condition_case_n): Rename from
5565 internal_condition_case_2.
5566 (internal_condition_case_2): New function.
5567
5568 * xdisp.c (safe_call): Use internal_condition_case_n.
5569
5570 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
5571 (internal_delete_file, Frename_file): Callers changed.
5572
5573 * buffer.c (Fkill_buffer):
5574 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
5575
5576 * lisp.h: Update prototypes.
5577
3dee6fdb
GM
55782010-05-03 Glenn Morris <rgm@gnu.org>
5579
5580 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
5581 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
5582 (LIBXT): Set with configure, not cpp.
5583 (LIBX): Remove.
5584 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
5585
a101e0fb
DN
55862010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
5587
5588 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
5589 The FreeBSD is not needed, the default works, Solaris version is
5590 not needed, and the remaining case is not supported by configure.
5591
f63d0028
JD
55922010-05-02 Jan Djärv <jan.h.d@swipnet.se>
5593
5594 * xsmfns.c (CHDIR_OPT): New define.
5595 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
5596 restarting emacs.
5597
5598 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
5599 shut_down_emacs.
5600
5601 * emacs.c (USAGE1): Mention --chdir.
5602 (main): Handle --chdir.
5603 (standard_args): Add --chdir.
5604 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
5605 #5552).
5606
e4814a9f
DN
56072010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
5608
cd03c74a
DN
5609 Remove LD_SWITCH_MACHINE.
5610 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
5611 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
5612
c3a398a1
DN
5613 Clean up IRIX code.
5614 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
5615 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
5616
87e7285c
DN
5617 Clean up AIX code.
5618 * m/ibmrs6000.inp: Remove file, unused.
5619 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
5620 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
5621 definition ...
5622 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
5623
80f00217
JB
5624 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
5625 unused.
e4814a9f 5626
59ca28de
EZ
56272010-05-01 Eli Zaretskii <eliz@gnu.org>
5628
197daef4
EZ
5629 Emulate POSIX_SIGNALS on MS-Windows.
5630
5631 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
5632 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
5633
5634 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
5635 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
5636 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
5637
80f00217
JB
5638 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
5639 New stubs.
197daef4 5640
af7c7572
EZ
5641 Miscellaneous fixes of bidi display.
5642
59ca28de
EZ
5643 * xdisp.c (find_row_end): New function, refactored from display_line.
5644 (display_line): Use it.
017ea819
EZ
5645 (extend_face_to_end_of_line): In almost-filled rows, extend only
5646 if the row is R2L and not continued.
166e930d 5647 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 5648 Preserve overlay and string info in row->end.
166e930d
EZ
5649 (insert_left_trunc_glyphs): Support addition of left truncation
5650 glyphs to R2L rows.
b47e0dcf 5651 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
5652 glyph between adjacent windows. Fix a crash when a display string
5653 is continued to the next line. Don't return zero if cursor was
5654 found by `cursor' property of a display string.
b47e0dcf
EZ
5655 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
5656 test for that explicitly.
59ca28de 5657
7acac9f4
GM
56582010-05-01 Glenn Morris <rgm@gnu.org>
5659
5660 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
5661 for clarity.
5662 (OTHER_OBJ): Remove.
5663 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
5664 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
5665
45841e65
KK
56662010-05-01 Karel Klíč <kklic@redhat.com>
5667
5668 * fileio.c (Ffile_selinux_context): Context functions may return null.
5669
afc61943
DN
56702010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
5671
80f00217 5672 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 5673
5a1bb006
GM
56742010-04-30 Glenn Morris <rgm@gnu.org>
5675
5676 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
5677 (OTHER_OBJ): Define as a separate variable, for clarity.
5678
210af043
J
56792010-04-30 Jan Djärv <jan.h.d@swipnet.se>
5680
5681 * xsettings.c: include limits.h and update file comment.
5682
0a7df391
GM
56832010-04-30 Glenn Morris <rgm@gnu.org>
5684
d5096f16
GM
5685 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
5686 Set with configure, not cpp.
5687 (LIBW): Remove, replace with $TOOLKIT_LIBW.
5688
7eb1ac33
GM
5689 * Makefile.in (mallocobj): Remove.
5690 (otherobj): Simplify using @OTHER_OBJ@.
5691
517d086b
GM
5692 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
5693 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
5694 Don't bother making nsgui.h dependency platform-specific.
5695
0a7df391
GM
5696 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
5697
d6d23852
SM
56982010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
5699
d2630aef
SM
5700 * process.c (read_process_output, exec_sentinel): Don't burp if the
5701 sentinel/filter kills the current buffer (bug#6060).
5702
f9dddf52 5703 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
5704 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
5705 Remove unused var `args'.
5706 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
5707 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
5708 * doc.c (store_function_docstring): Use XSETCAR.
5709
f1e3642a
GM
57102010-04-28 Glenn Morris <rgm@gnu.org>
5711
faf535f8
GM
5712 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
5713 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
5714
c40f9449
GM
5715 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
5716
658f86ca
GM
5717 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
5718 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
5719
bc0b5f61
GM
5720 * Makefile.in (FONT_OBJ): New, set by configure.
5721 (FONT_DRIVERS): Use $FONT_OBJ.
5722
294c50a0
GM
5723 * Makefile.in (LIBXMU): Set with configure, not cpp.
5724 * s/aix4-2.h (LIBXMU):
5725 * s/hpux10-20.h (LIBXMU):
5726 Remove definition, now set in configure.
5727
e6ec4e99
GM
5728 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
5729
f1e3642a
GM
5730 * m/amdx86-64.h [i386]: Move this test to configure.in.
5731
c6ea2936
GM
57322010-04-27 Glenn Morris <rgm@gnu.org>
5733
8fdac2c3
GM
5734 * Makefile.in (LIBXTR6): Set with configure, not cpp.
5735 * s/unixware.h (NEED_LIBW): Remove definition.
5736
986fb647
GM
5737 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
5738 (TOOLKIT_LIBW): New, set by configure.
5739 (@X_TOOLKIT_TYPE@): No longer define it.
5740
c6ea2936
GM
5741 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
5742 (MOTIF_LIBW): Set with configure, not cpp.
5743 * s/aix4-2.h (LIB_MOTIF):
5744 * s/gnu-linux.h (LIB_MOTIF):
5745 * s/unixware.h (LIB_MOTIF): Move to configure.in.
5746
aaa36002
DN
57472010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
5748
5749 Reduce CPP usage.
5750 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
5751 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
5752 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
5753 definitions and undefs. Inline definitions in the only user.
5754 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 5755
b678dd8b
GM
57562010-04-27 Glenn Morris <rgm@gnu.org>
5757
76cda504
GM
5758 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
5759 since the defaults (set by the system file) are fine in most cases.
5760 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
5761 * m/ibms390x.h (START_FILES, LIB_STANDARD):
5762 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
5763 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
5764 Remove definitions, since they are set correctly in s/gnu-linux.h.
5765 * s/freebsd.h (START_FILES, LIB_STANDARD):
5766 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
5767 * s/hpux10-20.h (START_FILES):
5768 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
5769 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
5770
b678dd8b
GM
5771 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
5772 (MOTIF_LIBW): Use $LIBXP.
5773 (otherobj): Use $WIDGET_OBJ.
5774
9452ded1
DN
57752010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
5776
7e10844c
DN
5777 * Makefile.in (LIBS_MACHINE): Remove, unused.
5778
9452ded1
DN
5779 Use autoconf instead of cpp for LIB_MATH.
5780 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
5781 * s/cygwin.h (LIB_MATH): Likewise.
5782 * Makefile.in (LIB_MATH): Do not define with cpp.
5783 (LIBES): Use autoconf for LIB_MATH.
5784
fcebfc6a
KH
57852010-04-26 Kenichi Handa <handa@m17n.org>
5786
5787 * composite.c (Ffind_composition_internal): Fix the return value
5788 for an automatic composition.
5789
39e2ad1b
DN
57902010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
5791
5792 Remove all NO_ARG_ARRAY uses.
5793 * fns.c (concat2, concat3, nconc2):
5794 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
5795 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
5796 * m/xtensa.h (NO_ARG_ARRAY):
5797 * m/template.h (NO_ARG_ARRAY):
5798 * m/sparc.h (NO_ARG_ARRAY):
5799 * m/sh3.h (NO_ARG_ARRAY):
5800 * m/mips.h (NO_ARG_ARRAY):
5801 * m/macppc.h (NO_ARG_ARRAY):
5802 * m/iris4d.h (NO_ARG_ARRAY):
5803 * m/intel386.h (NO_ARG_ARRAY):
5804 * m/ibms390x.h (NO_ARG_ARRAY):
5805 * m/ibms390.h (NO_ARG_ARRAY):
5806 * m/ibmrs6000.h (NO_ARG_ARRAY):
5807 * m/ia64.h (NO_ARG_ARRAY):
5808 * m/hp800.h (NO_ARG_ARRAY):
5809 * m/arm.h (NO_ARG_ARRAY):
5810 * m/amdx86-64.h (NO_ARG_ARRAY):
5811 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
5812
adf4f59c
EZ
58132010-04-25 Eli Zaretskii <eliz@gnu.org>
5814
6bdf5d65
EZ
5815 * xdisp.c (display_line): Don't assume 2nd call to
5816 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
5817 (iterate_out_of_display_property): New function, body from pop_it.
5818 (pop_it): Use it.
adf4f59c 5819
dfbbda83
GM
58202010-04-24 Glenn Morris <rgm@gnu.org>
5821
5822 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
5823 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
5824 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
5825 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
5826
2d4018aa
EZ
58272010-04-24 Eli Zaretskii <eliz@gnu.org>
5828
a49884a6
EZ
5829 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
5830 use `get_next_display_element' and `set_iterator_to_next' to
5831 advance to the next character, when looking for the character that
5832 begins the next row.
5833
76db6fcc 5834 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
5835 definition of "struct Lisp_Symbol".
5836
70eab5c1
GM
58372010-04-24 Glenn Morris <rgm@gnu.org>
5838
5839 * Makefile.in (CRT_DIR): New variable, set by configure.
5840 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
5841 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
5842
1ad4cc3d
DN
58432010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
5844
e769f484
DN
5845 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
5846
4196ff33
DN
5847 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
5848
879b0ee4
DN
5849 Remove redundant flags.
5850 * s/freebsd.h (C_SWITCH_SYSTEM):
5851 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
5852 * s/netbsd.h (C_SWITCH_SYSTEM):
5853 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
5854 of these.
5855
03cbbcb8
DN
5856 Simplify m/intel386.h.
5857 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
5858 user: ecrt0.c.
5859 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
5860 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
5861 the only user: s/unixware.h.
5862 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
5863 from m/intel386.h.
5864 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
5865 moved here from m/intel386.h.
5866
1ad4cc3d
DN
5867 * m/mips.h: Remove #if 0 code.
5868
8785b888
EZ
58692010-04-23 Eli Zaretskii <eliz@gnu.org>
5870
728588cc
EZ
5871 Fix display of composed characters from L2R scripts in bidi buffers.
5872 * xdisp.c (set_iterator_to_next, next_element_from_composition):
5873 After advancing IT past the composition, resync the bidi iterator
5874 with IT's position. (Bug#5977)
5875
a63f80b4
DN
58762010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
5877
5878 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
5879 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
5880
ff5dec5c
SM
58812010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
5882
5883 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
5884
8785b888
EZ
58852010-04-23 Eli Zaretskii <eliz@gnu.org>
5886
58ccf243 5887 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
5888 * xdisp.c (pop_it): When the stack is popped after displaying
5889 from a string, bidi-iterate to exit from the text portion covered
5890 by the `display' property or overlay. (Bug#5988, bug#5920)
5891
feeb1604
DN
58922010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
5893
8e324eb6
DN
5894 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
5895 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
5896
809fcaba
DN
5897 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
5898 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
5899
ed710380
DN
5900 Simplify STARTFILES definition.
5901 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
5902 relying on Makefile.in to define it.
5903 * s/cygwin.h (START_FILES): Likewise.
5904 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
5905
feeb1604
DN
5906 Clean up Solaris code.
5907 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
5908 (LIB_MOTIF): Remove, configure takes care of this.
5909 (NOT_USING_MOTIF): Remove, unused.
5910 * xrdb.c: Remove #if 0-ed #include.
5911 (SYSV): Remove conditional for old SysV.
5912 * sysdep.c (closedir): Remove conditional code for Solaris,
5913 Solaris has closedir.
5914
a0d0b563
JD
59152010-04-22 Jan Djärv <jan.h.d@swipnet.se>
5916
5917 * xsettings.c (read_and_apply_settings): Check if current_font is
5918 NULL before strcmp (Bug#6001).
5919
56bae7c7
DN
59202010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
5921
5922 Clean up HP-UX files.
5923 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
5924 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
5925 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
5926 * s/hpux10-20.h: ... to the only user, here.
5927
372b7a95
EZ
59282010-04-21 Eli Zaretskii <eliz@gnu.org>
5929
5930 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
5931 use buffer-local values of paragraph-start and paragraph-separate.
5932 <paragraph_start_re, paragraph_separate_re>: Rename from
5933 fallback_paragraph_start_re and fallback_paragraph_separate_re.
5934 (Bug#5992)
5935
f904c0f9
JD
59362010-04-21 Jan Djärv <jan.h.d@swipnet.se>
5937
5938 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
5939 current_tool_bar_style are new.
5940 (store_config_changed_event): Rename from store_font_changed_event.
5941 (XSETTINGS_TOOL_BAR_STYLE): New define.
5942 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
5943 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
5944 HAVE_XFT.
5945 (something_changedCB): store_font_changed_event is now
c4cc8b9a 5946 store_config_changed_event.
f904c0f9
JD
5947 (parse_settings): Rename from parse_xft_settings. Read
5948 non-xft xsettings outside #ifdef HAVE_XFT.
5949 (read_settings): Renamed from read_xft_settings.
5950 (apply_xft_settings): Take current settings as parameter. Do not
5951 call read_(xft)_settings.
5952 (read_and_apply_settings): New function.
5953 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
5954 read_and_apply_settings if there are settings to be read.
5955 (init_xsettings): Renamed from init_xfd_settings.
5956 Call read_and_apply_settings unconditionally.
5957 (xsettings_initialize): Call init_xsettings.
5958 (Ftool_bar_get_system_style): New function.
5959 (syms_of_xsettings): Define Qmonospace_font_name and
5960 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 5961 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 5962 dynamic-setting.
31a01b90 5963 Move misplaced HAVE_GCONF
f904c0f9
JD
5964
5965 * xsettings.h (Ftool_bar_get_system_style): Declare.
5966
5967 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
5968 Qtext, Qboth, Qboth_horiz are new.
5969 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
5970 Vtool_bar_style, tool_bar_max_label_size.
5971
5972 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
5973
5974 * keyboard.c: QClabel is new.
5975 (parse_tool_bar_item): Take out QClabel from tool bar items.
5976 Try to construct a label if ther is no QClabel.
5977 (syms_of_keyboard): Intern :label as QClabel.
5978
5979 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
5980 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
5981 New.
5982
5983 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
5984 dynamic-setting.el.
5985
5986 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
5987 (xg_make_tool_item, xg_show_toolbar_item): New function.
5988 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
5989 Call xg_make_tool_item to make a tool bar item.
5990 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
5991
5992 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
5993 into account for toolbars.
5994
c632dfda
JD
59952010-04-21 Jan Djärv <jan.h.d@swipnet.se>
5996
5997 * data.c (make_blv): Declarations before code (Bug#5993).
5998
10efe302
GM
59992010-04-21 Glenn Morris <rgm@gnu.org>
6000
6001 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
6002 Define using autoconf, not cpp.
6003 (LIBXSM): New variable, set by autoconf.
6004 (LIBXT): Use $LIBXSM.
6005
4285ac5a
DN
60062010-04-21 Dan Nicolaescu <local_user@dannlt>
6007
3ec759e7
DN
6008 Remove NOMULTIPLEJOBS, unused.
6009 * s/template.h (NOMULTIPLEJOBS):
6010 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
6011
4285ac5a
DN
6012 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
6013 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
6014 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
6015 detects -znocombreloc and passes it to the linker
6016 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
6017
2807228d
GM
60182010-04-21 Glenn Morris <rgm@gnu.org>
6019
6020 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
6021
574c05e2
KK
60222010-04-21 Karel Klíč <kklic@redhat.com>
6023
6024 * Makefile.in (LIBSELINUX_LIBS): New.
6025 (LIBES): Add $LIBSELINUX_LIBS.
6026 * eval.c, lisp.h (call7): New function.
6027 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
6028 (Ffile_selinux_context, Fset_file_selinux_context):
6029 New functions.
6030 (Fcopy_file): New parameter preserve-selinux-context.
6031 (Frename_file): Preserve selinux context when renaming by copy-file.
6032
91eac4bb 60332010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 6034 Eli Zaretskii <eliz@gnu.org>
91eac4bb 6035
50426a04
JB
6036 Don't depend on cm.c or termcap.c on Windows, use stubs.
6037 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
6038 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
6039 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
6040 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
6041 (sys_tputs, sys_tgetstr): New stubs.
6042 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
6043 (tputs, tgetstr): New; define to sys_*.
91eac4bb 6044
938efb77
JB
60452010-04-20 Juanma Barranquero <lekktu@gmail.com>
6046
6047 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
6048
b4bf28b7
SM
60492010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
6050
8b1e1112
SM
6051 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
6052 Just signal a warning rather than an error when inside a let.
6053 (Fmake_variable_frame_local): Add the same test.
6054
933ac235
SM
6055 * font.c (syms_of_font): Make the style table vars read-only.
6056
b4bf28b7
SM
6057 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
6058 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
6059
6060 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
6061
93d68d0c
EZ
60622010-04-20 Eli Zaretskii <eliz@gnu.org>
6063
6064 Fix R2L paragraph display on TTY.
6065
6066 * xdisp.c (unproduce_glyphs): New function.
6067 (display_line): Use it when produced glyphs are discarded from R2L
6068 glyph rows.
6069 (append_composite_glyph): In R2L rows, prepend the glyph rather
6070 than appending it.
6071
6072 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
6073 rather than append it. Set up the resolved_level and bidi_type
6074 attributes of the appended glyph.
283ccc18
EZ
6075 (produce_special_glyphs): Mirror the backslash continuation
6076 character in R2L lines.
93d68d0c 6077
283ccc18 6078 Implement display of R2L paragraphs in GUI sessions.
26cdf528 6079
283ccc18
EZ
6080 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
6081 append_stretch_glyph.
6082 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
6083 off-by-one error in computing x at end of text in the row.
6084 (append_stretch_glyph): In reversed row, prepend the glyph rather
6085 than append it. Set resolved_level and bidi_type of the glyph.
6086 (extend_face_to_end_of_line): If the row is reversed, prepend a
6087 stretch glyph whose width is such that the rightmost glyph will be
6088 drawn at the right margin of the window. Fix off-by-one error on
6089 TTY frames in testing whether a line needs face extension. Fix
6090 face extension at ZV. If this is the last glyph row, use
6091 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
6092 region face.
6093 (set_cursor_from_row, display_line): Use
26cdf528
EZ
6094 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
6095 row->continuation_lines_width.
283ccc18
EZ
6096 (next_element_from_buffer): Don't call bidi_paragraph_init if we
6097 are at ZV. Fixes a crash when reseated to ZV by
6098 try_window_reusing_current_matrix.
45903529
EZ
6099 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
6100 which happens with R2L glyph rows. Fixes a crash when inserting a
6101 character at end of an R2L line.
283ccc18
EZ
6102 (set_cursor_from_row): Don't be fooled by truncated rows: don't
6103 treat them as having zero-width characters. Improve comments.
6104 Don't reverse pos_before and pos_after for reversed glyph rows.
6105 Set cursor.x to negative value when the cursor might be on the
6106 left fringe.
6107 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
6108 left fringe, not the right one.
f951a506
EZ
6109 (notice_overwritten_cursor, draw_phys_cursor_glyph)
6110 (erase_phys_cursor): For reversed cursor_row, support cursor on
6111 the left fringe.
6112
283ccc18
EZ
6113 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
6114 of continuation indicators on the fringes.
6115 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
6116 left fringe.
6117
f951a506
EZ
6118 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
6119 draw cursor on the left fringe.
6120
6121 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
6122 cursor on the left fringe.
6123
f951a506
EZ
6124 * dispnew.c (update_text_area): Handle reversed desired rows when
6125 the cursor is on the left fringe.
6126 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
6127 below, not by 0, for when the cursor is on the left fringe.
6128
3bb49aaf
JD
61292010-04-20 Jan Djärv <jan.h.d@swipnet.se>
6130
6131 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
6132 widget is a scrollbar.
6133
c0be27fd
KH
61342010-04-20 Kenichi Handa <handa@m17n.org>
6135
6136 * charset.c (char_charset): Consider Vcharset_non_preferred_head
6137 only when the arg CHARSET_LIST is nil.
6138
ce5b453a
SM
61392010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
6140
6141 Make variable forwarding explicit rather the using special values.
6142 Basically, this makes the structure of buffer-local values and object
6143 forwarding explicit in the type of Lisp_Symbols rather than use
6144 special Lisp_Objects for that. This tends to lead to slightly more
6145 verbose code, but is more C-like, simpler, and makes it easier to make
6146 sure we handled all cases, among other things by letting the compiler
6147 help us check it.
6148 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
6149 Removing forwarding objects.
6150 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
6151 (struct Lisp_Symbol): Make the various forms of variable-forwarding
6152 explicit rather than hiding them inside Lisp_Object "values".
6153 (XFWDTYPE): New macro.
6154 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
6155 (XBUFFER_LOCAL_VALUE): Remove.
6156 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
6157 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
6158 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
6159 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
6160 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
6161 Remove the Lisp_Misc_* header.
6162 (struct Lisp_Buffer_Local_Value): Redefine.
6163 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
6164 (struct Lisp_Misc_Any): Add filler to get the right size.
6165 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
6166 Lisp_Intfwd.
6167 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
6168 (DEFVAR_KBOARD): Allocate a forwarding object.
6169 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
6170 (let_shadows_global_binding_p): New function.
6171 (union Lisp_Val_Fwd): New type.
6172 (make_blv): New function.
6173 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
6174 (store_symval_forwarding, swap_in_global_binding, Fboundp)
6175 (swap_in_symval_forwarding, find_symbol_value, Fset)
6176 (let_shadows_buffer_binding_p, set_internal, default_value)
6177 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
6178 (Fkill_local_variable, Fmake_variable_frame_local)
6179 (Flocal_variable_p, Flocal_variable_if_set_p)
6180 (Fvariable_binding_locus):
6181 * xdisp.c (select_frame_for_redisplay):
6182 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
6183 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
6184 * frame.c (store_frame_param):
6185 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
6186 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
6187 value structure.
6188 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
6189 (clone_per_buffer_values): Only adjust markers into the current buffer.
6190 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
6191 (Fbuffer_local_value, set_buffer_internal_1)
6192 (swap_out_buffer_local_variables):
6193 Adapt to the new symbol value structure.
6194 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
6195 (defvar_per_buffer): Take a new arg for the fwd object.
6196 (buffer_lisp_local_variables): Return a proper alist (different fix
6197 for bug#4138).
6198 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
6199 (Fgarbage_collect): Don't handle buffer_defaults specially.
6200 (mark_object): Handle new symbol value structure rather than the old
6201 special Lisp_Misc_* objects.
6202 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
6203 * term.c (set_tty_color_mode):
6204 * bidi.c (bidi_initialize): Don't access the ->value field directly.
6205 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
6206 a buffer_local_flags.
6207 * print.c (print_object): Get rid of impossible forwarding objects.
6208
fd3998ff
EZ
62092010-04-19 Eli Zaretskii <eliz@gnu.org>
6210
6211 * bidi.c (bidi_get_type, bidi_get_category)
6212 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
6213 (bidi_type_of_next_char, bidi_level_of_next_char):
6214 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 6215
e42cd1a7
JB
62162010-04-19 Juanma Barranquero <lekktu@gmail.com>
6217
6218 * dired.c (Ffile_attributes): Fix typo in docstring.
6219
6e104790 62202010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
6221
6222 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
6223 NSInteger (Bug#5811).
6224
6e104790 62252010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
6226
6227 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
6228 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
6229
6e104790 62302010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
6231
6232 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
6233
6e104790
SM
62342010-04-19 Chong Yidong <cyd@stupidchicken.com>
6235
6236 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
6237 terminal frames (Bug#5837).
6238
37dcfea0
EZ
62392010-04-19 Eli Zaretskii <eliz@gnu.org>
6240
d1da276f
EZ
6241 * .gdbinit (xsubchartable): New command.
6242
37dcfea0
EZ
62432010-04-19 Eli Zaretskii <eliz@gnu.org>
6244
6245 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 6246 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
6247 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
6248 and
6249 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
6250
e9515805
SM
62512010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
6252
6253 * alloc.c (Fpurecopy): Hash-cons if requested.
6254 (syms_of_alloc): Update purify-flag docstring.
6255
22aa44a8
JD
62562010-04-18 Jan Djärv <jan.h.d@swipnet.se>
6257
6258 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
6259 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
6260
ebb5722e
EZ
62612010-04-17 Eli Zaretskii <eliz@gnu.org>
6262
6263 Fix a crash when an NSM character is inserted at BEGV.
6264
6265 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
6266 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
6267 NEUTRAL_B or UNKNOWN_BT.
6268
0f4442ef
EZ
62692010-04-16 Eli Zaretskii <eliz@gnu.org>
6270
6271 * xdisp.c (set_cursor_from_row): Don't consider possibility of
6272 other rows with cursor unless they are different from this row and
6273 this row is part of a continued line. (Bug#5943)
6274
7d4e45f8
DN
62752010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
6276
6277 * s/freebsd.h: Restore osreldate.h include.
6278 Suggested by Naohiro Aota.
6279
5ba5ec85
J
62802010-04-16 Jan Djärv <jan.h.d@swipnet.se>
6281
6282 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
6283
20af301d
CY
62842010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
6285
6286 * s/cygwin.h: Avoid linking against static libgcc.
6287
a4b000fb
JL
62882010-04-15 Juri Linkov <juri@jurta.org>
6289
6290 * window.c: Add Qscroll_command.
6291 Remove Vscroll_preserve_screen_position_commands.
6292 (window_scroll_pixel_based, window_scroll_line_based): Check the
6293 `scroll-command' property on the last command instead of searching
6294 the last command in Vscroll_preserve_screen_position_commands.
6295 (syms_of_window): Initialize and staticpro `Qscroll_command'.
6296 Put Qscroll_command property on Qscroll_up and Qscroll_down.
6297 (scroll-preserve-screen-position): Doc fix.
6298 (Vscroll_preserve_screen_position_commands): Remove variable.
6299
bc319ba4
DN
63002010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
6301
6bb24457
DN
6302 * xdisp.c (message): Do not use NO_ARG_ARRAY.
6303
19d4c244
DN
63042010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
6305
6306 Reduce cpp use in Makefile.in.
6307 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
6308 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
6309 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
6310 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
6311 (CRT0_COMPILE): Remove, inline it in the only user.
6312
32129746
JL
63132010-04-14 Juri Linkov <juri@jurta.org>
6314
6315 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
6316 `scroll-up-command' and `M-v' from `scroll-down' to
6317 `scroll-down-command'.
6318
9013a7f8
JL
63192010-04-14 Juri Linkov <juri@jurta.org>
6320
6321 * window.c (Vscroll_preserve_screen_position_commands): New variable
6322 with the default value as the list of Qscroll_down and Qscroll_up.
6323 (window_scroll_pixel_based, window_scroll_line_based): Search the
6324 last command in the list Vscroll_preserve_screen_position_commands
6325 instead of comparing with Qscroll_up and Qscroll_down.
6326
4bef8d26
JD
63272010-04-13 Jan Djärv <jan.h.d@swipnet.se>
6328
92848133
JD
6329 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
6330 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
6331 does that.
6332
4bef8d26
JD
6333 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
6334 to zero.
6335
58b963f7
SM
63362010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
6337
84164a0d
SM
6338 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
6339
2b0a91e7
SM
6340 Try to solve the problem of spurious EOF chars in long lines of text
6341 sent to interactive subprocesses.
6342 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
6343 (system_process_attributes): Remove unused var `ttotal'.
6344 * process.c (send_process): Don't bother breaking long line with EOF
6345 chars when talking to ttys any more.
6346 (wait_reading_process_output): Output a warning when called in such
6347 a way that it could block without being interruptible.
6348
58b963f7
SM
6349 Try to detect file modification within the same second.
6350 * buffer.h (struct buffer): New field modtime_size.
6351 * buffer.c (reset_buffer): Initialize it.
6352 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
6353 (Fverify_visited_file_modtime): Check it.
6354 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
6355 (Fset_visited_file_modtime): Set (or clear) it.
6356
01f5787b
SM
63572010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
6358
6359 * process.c (status_notify): Remove unused var `ro'.
6360
83725342
JD
63612010-04-12 Jan Djärv <jan.h.d@swipnet.se>
6362
6363 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
6364 more than one visual (Bug#5938).
6365
b9465836
DN
63662010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
6367
50426a04
JB
6368 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
6369 Undefine.
b9465836 6370
8d9c8ece
DN
63712010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
6372
b1f52161
DN
6373 Remove C_SWITCH_SYSTEM_TEMACS.
6374 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
6375 (malloc, realloc, free): Use emacs, not temacs for conditional
6376 definition.
6377
6378 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
6379 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
6380
8d9c8ece
DN
6381 Use autoconf, not cpp for some variables.
6382 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
6383 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
6384 (ALL_CFLAGS): Use them as make variables.
6385 (really-lwlib, really-oldXMenu): Do not pass them.
6386
1ecb2d3f
JD
63872010-04-11 Jan Djärv <jan.h.d@swipnet.se>
6388
6389 * xmenu.c (apply_systemfont_to_dialog): New.
6390 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
6391
3a4fa2f2
SM
63922010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
6393
97e53006
SM
6394 * process.c (exec_sentinel): Preserve current-buffer.
6395
3a4fa2f2
SM
6396 * process.c (read_process_output): Move the save-current-buffer to
6397 apply to both the filter and the non-filter branches.
6398
88df7221
DN
63992010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
6400
6401 * s/msdos.h (UNEXEC): New definition.
6402
5634ff85
YM
64032010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6404
6eff5c3d
YM
6405 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
6406 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
6407
6408 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
6409 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
6410 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
6411 TRY_WINDOW_CHECK_MARGINS.
6412
6413 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
6414 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
6415 width only when it is for padding.
5634ff85 6416
b13aef54
J
64172010-04-09 Jan Djärv <jan.h.d@swipnet.se>
6418
6419 * xfns.c (Fx_show_tip): Call try_window in a loop until
6420 fonts_changed_p is zero (Bug#2423).
6421
21d28484
EZ
64222010-04-08 Eli Zaretskii <eliz@gnu.org>
6423
6424 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
6425 the end of TEXT_AREA. (Bug#5856)
6426
0269ef77
JD
64272010-04-08 Jan Djärv <jan.h.d@swipnet.se>
6428
6429 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
6430 HAVE_GCONF.
6431
5930fe97
EZ
64322010-04-08 Eli Zaretskii <eliz@gnu.org>
6433
6434 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
6435 prev.orig_type, for resolving type of NSM. (Bug#5858)
6436
99852628
JD
64372010-04-08 Jan Djärv <jan.h.d@swipnet.se>
6438
6439 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
6440 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
6441 in current_font.
6442 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
6443 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
6444 New functions.
6445 (syms_of_xsettings): Initialize current_font.
6446 defsubr Sfont_get_system_normal_font.
99852628 6447
686b968e
JB
6448 * xsettings.h (Ffont_get_system_normal_font)
6449 (xsettings_get_system_normal_font): Declare.
99852628
JD
6450
6451 * xfns.c (extern xlwmenu_default_font): Remove.
6452 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
6453 to xlwmenu.c.
6454
6455 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
6456 menu items in UTF-8.
6457
6458 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
6459 (apply_systemfont_to_menu): New function.
6460 (set_frame_menubar, create_and_show_popup_menu): Call
6461 apply_systemfont_to_menu.
6462
7fc874c4
J
64632010-04-07 Jan Djärv <jan.h.d@swipnet.se>
6464
6465 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
6466 FRAME_LINE_TO_PIXEL_Y.
6467
6468 * xterm.c (x_set_window_size_1): Don't add border_width/height to
6469 pixelwidth/height.
6470
863bf481
DN
64712010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
6472
5e5a3b92
DN
6473 Simplify code for HP machines.
6474 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
6475 for GNU_LINUX, not needed.
6476 (UNEXEC, NEED_BSDTTY): Move definitions...
6477 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
6478
863bf481
DN
6479 * m/iris4d.h (UNEXEC): Move definition ...
6480 * s/irix6-5.h (UNEXEC): ... here.
6481
3e6bec3b
JD
64822010-04-04 Jan Djärv <jan.h.d@swipnet.se>
6483
6484 * xfns.c (set_machine_and_pid_properties): New function.
6485 (Fx_create_frame): Call set_machine_and_pid_properties.
6486
2912322b
SM
64872010-04-03 Eli Zaretskii <eliz@gnu.org>
6488
1502b819
EZ
6489 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
6490 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
6491 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
6492
2912322b
SM
6493 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
6494 in this function. (Bug#5703)
6495
64962010-04-03 Chong Yidong <cyd@stupidchicken.com>
6497
6498 * nsterm.h: Fix last change.
6499
c435b432
DN
65002010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
6501
a568f507
DN
6502 * m/intel386.h (NO_REMAP): Move definition ...
6503 * s/msdos.h (NO_REMAP): ... here.
6504
4cd9f6c2
DN
6505 * m/vax.h (CRT0_DUMMIES): Remove, unused.
6506
c435b432
DN
6507 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
6508 used on those platforms.
6509
42a2c622
DN
65102010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
6511
6512 Remove extern errno declarations.
6513 * xterm.c:
6514 * xrdb.c:
6515 * w32term.c:
6516 * unexec.c:
6517 * unexaix.c:
6518 * sysdep.c:
6519 * process.c:
6520 * lread.c:
6521 * keyboard.c:
6522 * floatfns.c:
6523 * filelock.c:
6524 * fileio.c:
6525 * emacs.c (main):
6526 * ecrt0.c:
6527 * dispnew.c:
6528 * callproc.c:
6529 * buffer.c: Remove errno extern declarations.
6530 * s/netbsd.h (NEED_ERRNO): Remove.
6531
8224f93d
DN
65322010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
6533
6534 Remove all uses of LIBX11_SYSTEM.
6535 * Makefile.in (LIBX11_SYSTEM): Remove.
6536 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
6537 instead.
6538
814062c7
EZ
65392010-04-01 Eli Zaretskii <eliz@gnu.org>
6540
ed68db4d
EZ
6541 Remove support for DJGPP v1.x (bug#5813).
6542
6543 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
6544 * s/msdos.h:
6545 * unexec.c (make_hdr, copy_text_and_data):
6546 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 6547 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
6548 (IT_set_terminal_modes, __write, _rename, gethostname)
6549 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
6550 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
6551 the value of __DJGPP__.
ed68db4d
EZ
6552 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
6553 compatibility code.
8224f93d
DN
6554 * lread.c:
6555 * gmalloc.c (memalign):
6556 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
6557 * emacs.c (main):
6558 * dosfns.c (init_dosfns):
ed68db4d
EZ
6559 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
6560
52f4d8d5
EZ
65612010-04-01 Eli Zaretskii <eliz@gnu.org>
6562
814062c7
EZ
6563 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
6564 string with `cursor' property comes from an `after-string'
6565 overlay. (Bug#5816)
6566
0dc2e11d
GM
65672010-04-01 Glenn Morris <rgm@gnu.org>
6568
6569 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
6570 Define as Makefile variables.
6571 (LIBX): Use above variables rather than directly using autoconf.
6572
1d29df59
DN
65732010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
6574
6575 Clean up BSD_SYSTEM use.
6576 * xterm.c:
6577 * process.c:
6578 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
6579 for including <sys/ioctl.h>.
6580 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
6581 code is only used for MSDOS.
6582
1546c559
JL
65832010-03-31 Juri Linkov <juri@jurta.org>
6584
6585 * image.c: Add `Qextension_data'.
6586 (syms_of_image): Initialize and staticpro `Qextension_data'.
6587 (Fimage_metadata): Rename from `Fimage_extension_data'.
6588 (gif_load): Put GIF extension data to the property
6589 `Qextension_data'.
6590
6521c534
CY
65912010-03-31 Chong Yidong <cyd@stupidchicken.com>
6592
6593 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
6594 * nsterm.h: Fix prototype.
6595
52c30783
EZ
65962010-03-31 Eli Zaretskii <eliz@gnu.org>
6597
6598 * xdisp.c (highlight_trailing_whitespace): Support highlight of
6599 trailing whitespace in right-to-left rows.
6600
855a0da7
SM
66012010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
6602
6603 Get rid of the direct_output optimizations.
6604 * keyboard.c (nonundocount): Remove extern declaration.
6605 (command_loop_1): Remove brittle optimisation for cheap and
6606 common operations.
6607 * xdisp.c (redisplay_internal): Don't bother checking
6608 redisplay_performed_directly_p any more.
6609 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
6610 any more.
6611 * dispnew.c (redisplay_performed_directly_p)
6612 (direct_output_for_insert, direct_output_forward_char):
6613 * dispextern.h (redisplay_performed_directly_p)
6614 (direct_output_for_insert, direct_output_forward_char): Remove.
6615 * cmds.c (nonundocount): Make it static.
6616
85738751 66172010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
6618
6619 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
6620
85738751 66212010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
6622
6623 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
6624 invisible (Bug#5766).
6625
85738751 66262010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 6627
855a0da7
SM
6628 * xdisp.c (x_consider_frame_title, update_window_cursor):
6629 Remove HAVE_NS conditionals.
194d44e7 6630 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
6631
6632 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
6633 filename for the title.
6634 (ns_set_doc_edited): Do nothing if the selected window is a
6635 minibuffer window.
6636
6637 * nsterm.h: Add prototypes for ns_set_name_as_filename and
6638 ns_set_doc_edited.
6639
6640 * nsterm.m: Remove unneeded prototype.
6641
85738751 66422010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
6643
6644 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
6645 in the DOC file. (Bug#5336)
6646
85738751 66472010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
6648
6649 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
6650
75d1428c
SM
66512010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
6652
6653 * window.c (keys_of_window): Remove redundant/overridden bindings.
6654
82043cfb
EZ
66552010-03-30 Eli Zaretskii <eliz@gnu.org>
6656
6657 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
6658 Restore original behavior when the iterator is not bidi_p.
6659
b5dd0ae7
DN
66602010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
6661
6662 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
6663
bd924a5d
EZ
66642010-03-30 Eli Zaretskii <eliz@gnu.org>
6665
6666 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
6667 are outside the range of cached character positions.
6668
3580374b
JB
66692010-03-30 Juanma Barranquero <lekktu@gmail.com>
6670
6671 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
6672
a7b02820
EZ
66732010-03-30 Eli Zaretskii <eliz@gnu.org>
6674
6675 Initial support for bidirectional editing.
6676
6677 * Makefile.in (obj): Include bidi.o.
6678 (bidi.o): New target.
6679
6680 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
6681 ($(BLD)/bidi.$(O)): New target.
6682
6683 * bidi.c: New file.
6684
6685 * buffer.h (struct buffer): New members bidi_display_reordering
6686 and bidi_paragraph_direction.
6687
6688 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
6689 and bidi_paragraph_direction.
6690 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
6691 and bidi-paragraph-direction.
6692 (Fbuffer_swap_text): Swap the values of
6693 bidi_display_reordering and bidi_paragraph_direction.
6694
6695 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
6696 (bidi_type_t, bidi_dir_t): New types.
6697 (bidi_saved_info, bidi_stack, bidi_it): New structures.
6698 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
6699 prev_stop, base_level_stop, and eol_pos.
6700 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
6701 (IT_STACK_SIZE): Enlarge to 5.
6702 (struct glyph_row): New member reversed_p.
6703 <string_buffer_position>: Update prototype.
6704 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
6705 glyph_row if bidi_it.paragraph_dir == R2L.
6706 (struct glyph): New members resolved_level and bidi_type.
6707
6708 * dispnew.c (direct_output_forward_char): Give up if we need bidi
6709 processing or buffer's direction is right-to-left.
6710 (prepare_desired_row): Preserve the reversed_p flag.
6711 (row_equal_p): Compare the reversed_p attributes as well.
6712
6713 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
6714 bidi_init_it and set it->paragraph_embedding from the current
6715 buffer's value of bidi_paragraph_direction.
6716 (reseat_1): Initialize bidi_it.first_elt.
6717 (set_iterator_to_next, next_element_from_buffer): Use the value of
6718 paragraph_embedding to determine the paragraph direction.
6719 (set_iterator_to_next): Under bidi reordering, call
6720 bidi_get_next_char_visually. Call bidi_paragraph_init if the
6721 new_paragraph flag is set in the bidi iterator.
6722 (next_element_from_buffer): If bidi_it.first_elt is set,
6723 initialize paragraph direction and find the first character to
6724 display in the visual order. If reseated to a middle of a line,
6725 prime the bidi iterator starting at the line's beginning. Handle
6726 the situation where we overstepped stop_charpos due to
6727 non-linearity of the bidi iteration. Likewise for when we back up
6728 beyond the previous stop_charpos. When moving across stop_charpos,
6729 record it in prev_stop.
6730 (display_line): Set row->end and it->start for the next row to the
6731 next character in logical order. Always extend reversed_p rows to
6732 the end of line, even if they end at ZV. Copy the reversed_p flag
6733 to the next glyph row. Keep calling set_cursor_from_row for
6734 bidi-reordered rows even if we already have a possible candidate
6735 for cursor position. Set row_end after all the row's glyphs have
6736 been produced, by looping over the glyphs. Record the position
6737 after EOL in it->eol_pos, and use it to set end_pos of the last
6738 row produced for a continued line.
6739 <Qright_to_left, Qleft_to_right>: New variables.
6740 (syms_of_xdisp): Initialize and staticpro them.
6741 (string_buffer_position_lim): New function.
6742 (string_buffer_position): Most of code moved to
6743 string_buffer_position_lim. Last argument and return value are
6744 now EMACS_INT; all callers changed.
6745 (set_cursor_from_row): Rewritten to support bidirectional text and
6746 reversed glyph rows.
6747 (text_outside_line_unchanged_p, try_window_id): Disable
6748 optimizations if we are reordering bidirectional text and the
6749 paragraph direction can be affected by the change.
6750 (append_glyph, append_composite_glyph)
6751 (produce_image_glyph, append_stretch_glyph): Set the
6752 resolved_level and bidi_type members of each glyph.
6753 (append_glyph): If the glyph row is reversed, prepend the glyph
6754 rather than appending it.
6755 (handle_stop_backwards): New function.
6756 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
6757 (reseat): call handle_stop_backwards to recompute prev_stop and
6758 base_level_stop for the new position.
6759 (handle_invisible_prop): Under bidi iteration, skip invisible text
6760 using bidi_get_next_char_visually. If we are `reseat'ed, init the
6761 paragraph direction. Update IT->prev_stop after skipping
6762 invisible text.
6763 (move_it_in_display_line_to): New variables prev_method
6764 and prev_pos. Compare for strict equality in
6765 BUFFER_POS_REACHED_P.
6766 (try_cursor_movement): Examine all the candidate rows that occlude
6767 point, to return the best match. If rows are bidi-reordered
6768 and point moved backwards, back up to the row that is not a
6769 continuation line, and start looking for a suitable row from
6770 there.
6771
6772 * term.c (append_glyph): Reverse glyphs by pre-pending them,
6773 rather than appending, if the glyph_row's reversed_p flag is set.
6774 Set the resolved_level and bidi_type members of each glyph.
6775
6776 * .gdbinit (pbiditype): New command.
6777 (pgx): Use it to display bidi level and type of the glyph.
6778 (pitx): Display some bidi information about the iterator.
6779 (prowlims, pmtxrows): New commands.
6780
32a8894e
DN
67812010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
6782
6783 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
6784 * s/usg5-4.h (LIBS_DEBUG):
6785 * s/irix6-5.h (C_DEBUG_SWITCH):
6786 * s/gnu-linux.h (LIBS_DEBUG):
6787 * s/darwin.h (LIBS_DEBUG):
6788 * s/bsd-common.h (LIBS_DEBUG):
6789 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
6790 * m/iris4d.h (LIBS_DEBUG):
6791 * m/hp800.h (LIBS_DEBUG): Remove definitions.
6792
6793 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
6794 (LIBS_DEBUG): Remove definition.
6795
649dbf36
CY
67962010-03-27 Chong Yidong <cyd@stupidchicken.com>
6797
6798 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
6799 Windows.
6800
cad4261f
YM
68012010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6802
6803 * process.c (Fmake_network_process): Don't call turn_on_atimers around
6804 `connect' (Bug#5723).
6805
cd591dbc
HE
68062010-03-25 Helmut Eller <eller.helmut@gmail.com>
6807
6808 * process.c (Fmake_network_process): Call `select' for interrupted
6809 `connect' rather than creating new socket (Bug#5173).
6810
e867cb5d 68112010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
6812
6813 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
6814
6815 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
6816
6817 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
6818
e867cb5d 68192010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
6820
6821 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
6822 XLoadQueryFont.
6823
e867cb5d 68242010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
6825
6826 * coding.c (decode_coding_ccl): Fix previous change for the
6827 multibyte case.
fb608df3
KH
6828 (encode_coding_ccl): Don't setup ccl program here. Fix for the
6829 case that the output buffer is fullfilled.
6830 (encode_coding): Setup ccl program here.
fbdc1721 6831
5845f0ed
DN
68322010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
6833
814fb708
DN
6834 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
6835
5845f0ed
DN
6836 Simplify LIBS_MACHINE definitions.
6837 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
6838 * m/iris4d.h (LIBS_MACHINE): Likewise.
6839 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
6840 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 6841 * s/netbsd.h: Remove commented out code.
5845f0ed 6842
b7064064
DN
68432010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
6844
df7734b2
DN
6845 Remove dead code dealing with POSIX_SIGNALS.
6846 * atimer.c (set_alarm): Remove dead code, all USG systems define
6847 POSIX_SIGNALS.
6848 * data.c (arith_error): Likewise.
6849 * keyboard.c (input_available_signal, handle_user_signal)
6850 (interrupt_signal): Likewise.
6851 * process.c (sigchld_handler): Likewise.
6852 (create_process): Remove if 0 code. Remove HPUX conditional when
6853 !defined (POSIX_SIGNALS), it cannot be true.
6854 * syssignal.h: Remove USG5_4 and USG conditionals when
6855 !POSIX_SIGNALS, they cannot be true.
6856
b7064064
DN
6857 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
6858 NO_SOCK_SIGIO, not used anymore.
6859
55da5ee3
DN
68602010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
6861
0be96e3a
DN
6862 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
6863 support vax on BSDs.
6864
55da5ee3
DN
6865 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
6866 * s/aix4-2.h (ORDINARY_LINK): ... here.
6867
c0282183
AS
68682010-03-21 Andreas Schwab <schwab@linux-m68k.org>
6869
82c3d67a
AS
6870 * Makefile.in (abs_builddir): Define.
6871 (bootstrap_exe): Use it.
6872 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 6873
3613edce
SM
68742010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
6875
6876 * Makefile.in (bootstrap_exe): Use an absolute name.
6877
7f110ddc
DN
68782010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
6879
22e87574
DN
6880 Remove support for old GNU/Linux using libc version 5.
6881 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
6882 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
6883
05a670e6
DN
6884 Consolidate redundant definitions in s/bsd-common.h.
6885 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6886 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6887 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
6888 doing it in all files that include this one.
6889 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6890 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6891 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6892 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6893 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6894 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6895 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6896 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6897 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6898
2968f561
DN
6899 Consolidate redundant definitions.
6900 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
6901 it's undefined in all files that include this one.
6902 (POSIX_SIGNALS): Define here instead of doing it in all files that
6903 include this one.
6904 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6905 (POSIX_SIGNALS): Do not define.
6906 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6907 (POSIX_SIGNALS): Do not define.
6908 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6909 (POSIX_SIGNALS): Do not define.
6910
15d25dc0
DN
6911 Remove support for old UNIX System V systems.
6912 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
6913 * s/usg-5-4-2.h: Remove.
6914
07e339e4
DN
6915 Remove support for Solaris on PPC and for old versions.
6916 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
6917 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
6918 that cancel each other.
6919 * s/sol2-3.h:
6920 * s/sol2-4.h:
6921 * s/sol2-5.h: Remove.
6922 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
6923 (NO_REMAP): Remove, unused.
6924 (UNEXEC): Move definition ...
6925 * s/aix4-2.h (UNEXEC): ... here.
6926
7f110ddc
DN
6927 * s/openbsd.h: Remove support for non-ELF and for systems that do
6928 not support shared libraries.
6929 * s/netbsd.h:
6930 * s/freebsd.h: Likewise.
6931
605f35cd
DN
69322010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
6933
6934 Remove non-working support for lynxos 3.0.
6935 * s/lynxos.h: Remove file.
6936
6937 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
6938 COFF_BSD_SYMBOLS, nothing defines it anymore.
6939
aed71cf4
DN
69402010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
6941
6942 Remove obsolete uses of HAVE_SHM.
6943 * emacs.c (standard_args):
6944 (Fdump_emacs):
6945 (syms_of_emacs): Remove code depending on HAVE_SHM.
6946
6947 * alloc.c: Remove HAVE_SHM dependent definition.
6948
6949 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
6950
aded53ff
GM
69512010-03-18 Glenn Morris <rgm@gnu.org>
6952
17284745
GM
6953 * emacs.c (USAGE4): Hard-code bug address.
6954 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
6955 (bug_reporting_address): Remove.
6956 (main): Don't call bug_reporting_address.
6957
aded53ff
GM
6958 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
6959 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
6960
303500aa
CY
69612010-03-15 Chong Yidong <cyd@stupidchicken.com>
6962
6963 * xfns.c (Fx_create_frame):
6964 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
6965 on left.
6966
cef3058f
CY
69672010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
6968
6969 * editfns.c (Fformat): Account for string precision when computing
6970 field width (Bug#5710).
6971
a647d59d
CY
69722010-03-12 Chong Yidong <cyd@stupidchicken.com>
6973
4fa42018
CY
6974 * xfns.c (Fx_create_frame): Set default to Qright.
6975
a647d59d
CY
6976 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
6977 all window systems.
6978
6da23aaa
EZ
69792010-03-12 Eli Zaretskii <eliz@gnu.org>
6980
a96f6398 6981 These changes remove termcap.c from the build on Posix platforms.
83d02def 6982 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
6983 (MSDOS_OBJ): ...to here.
6984 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
6985 now identical to when LIBS_TERMCAP is defined.
6986
6987 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
6988
6989 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
6990
a96f6398 6991 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 6992
288f9fc0
CY
69932010-03-10 Chong Yidong <cyd@stupidchicken.com>
6994
6995 * Branch for 23.2.
6996
d48cd3f4
SM
69972010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
6998
6999 Cleanup setup of gl_state in various parts of the code.
7000 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
7001 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
7002 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
7003 (skip_chars):
7004 * regex.c (regex_compile): Use it.
7005 (re_compile_pattern): Don't set gl_state.current_syntax_table since
7006 it's now set in regex_compile when/if we need it.
7007
618db430
SM
70082010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
7009
c0335e02
SM
7010 Make it possible to C-g in a tight bytecode loop again (bug#5680).
7011 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
7012 (QUIT): Use it to consolidate code and remove redundancy.
7013 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
7014
254c06a8
SM
7015 * regex.c (regex_compile): Setup gl_state as well.
7016
618db430
SM
7017 * syntax.c (skip_chars): Setup gl_state (bug#3823).
7018 (in_classes): Use CONSP before XCAR/XCDR.
7019
233f0c9f
CY
70202010-03-03 Chong Yidong <cyd@stupidchicken.com>
7021
7022 * keymap.c (Fwhere_is_internal): Use Fequal to compare
7023 definitions, so that keyboard macros are correctly handled
7024 (Bug#5481).
7025
75f80e63
EZ
70262010-03-02 Eli Zaretskii <eliz@gnu.org>
7027
7028 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
7029 text that could be relocated inside the call to emacs_mule_char.
7030 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
7031 (CODING_DECODE_CHAR): Add a comment describing its purpose.
7032
dcfb9bc4
KH
70332010-03-02 Kenichi Handa <handa@m17n.org>
7034
fc9a17bc
KH
7035 * character.c (parse_str_as_multibyte): Fix handling of the
7036 multibyte form of raw-bytes.
7037 (str_as_multibyte): Likewise.
7038
dcfb9bc4
KH
7039 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
7040 form of raw-bytes.
7041
412c01b6
CY
70422010-02-28 Chong Yidong <cyd@stupidchicken.com>
7043
7044 * charset.c (load_charset_map_from_file)
7045 (load_charset_map_from_vector): Zero out allocated
7046 charset_map_entries before using them.
7047
df7e1ea0
AS
70482010-02-27 Andreas Schwab <schwab@linux-m68k.org>
7049
7050 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
7051
fe69a722
CY
70522010-02-27 Chong Yidong <cyd@stupidchicken.com>
7053
4ed28cf4
CY
7054 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
7055 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 7056
7379cfce
KH
70572010-02-26 Kenichi Handa <handa@m17n.org>
7058
f88cc4d6
KH
7059 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
7060
7379cfce
KH
7061 * xdisp.c (reseat_to_string): Fix previous change.
7062
cf2fdcfb
CY
70632010-02-26 David Reitter <david.reitter@gmail.com>
7064
7065 * nsfont.m (nsfont_draw): ns_antialias_text should be a
7066 Lisp_Object (Bug#4736).
7067
cc6c7c75
KH
70682010-02-25 Kenichi Handa <handa@m17n.org>
7069
7070 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
7071
32e737d7
JD
70722010-02-24 Jan Djärv <jan.h.d@swipnet.se>
7073
7074 * xterm.c (XTflash): Move declarations before statements.
7075
7076 * gtkutil.c (xg_get_gdk_display): Remove (unused).
7077 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
7078 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
7079 (xg_create_tool_bar): Remove unused variables.
7080 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 7081 (xg_create_frame_widgets): Remove variable grav.
32e737d7 7082
676cae9f
CY
70832010-02-21 Chong Yidong <cyd@stupidchicken.com>
7084
7085 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
7086
886cc2b8
SM
70872010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
7088
7089 * term.c (fatal): Add a final \n if needed (bug#5596).
7090
ddb2d8e2
CY
70912010-02-18 Chong Yidong <cyd@stupidchicken.com>
7092
7093 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
7094
2a4f8d3d
GM
70952010-02-18 Glenn Morris <rgm@gnu.org>
7096
7097 * callint.c (Finteractive): Doc fix.
7098
ebaf11b6
KH
70992010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
7100
886cc2b8
SM
7101 * coding.c (record_conversion_result):
7102 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
7103 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
7104 memory allocation error.
7105
d0396581
KH
71062010-02-17 Kenichi Handa <handa@m17n.org>
7107
886cc2b8
SM
7108 * coding.c (decode_coding_ccl): Don't setup ccl program here.
7109 Fix for the case that the output buffer is fullfilled.
d0396581
KH
7110 (decode_coding): Setup ccl program here. Keep looping when the
7111 decoder stopped because the output buffer is
7112 fullfilled (bug#5534).
7113
7114 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
7115
98599f74
JD
71162010-02-13 Jan Djärv <jan.h.d@swipnet.se>
7117
471e4f04 7118 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 7119 bug #5571.
886cc2b8 7120 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 7121 overdrawn.
98599f74 7122
182659ae
JD
71232010-02-10 Jan Djärv <jan.h.d@swipnet.se>
7124
7125 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
7126 doing_interact here.
7127 (ice_connection_closed): New function.
7128 (x_session_check_input, smc_die_CB, ice_io_error_handler)
7129 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
7130 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
7131 returns I/O error.
7132 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
7133 bug #5512.
7134
9be32c4e 71352010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
7136
7137 * nsfont.m (nsfont_open): The system's value for the font descent
7138 is negative, so round it down to avoid clipping.
7139
a2f3eb19
CY
71402010-02-06 Chong Yidong <cyd@stupidchicken.com>
7141
7142 * charset.c (load_charset_map_from_file)
7143 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 7144 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 7145
3088147c
CY
71462010-02-05 Chong Yidong <cyd@stupidchicken.com>
7147
7148 * charset.c (load_charset_map_from_file): Allocate large
7149 charset_map_entries structure on the heap rather than the stack.
7150 (Bug#5526).
7151
b57d9029
KH
71522010-01-31 Kenichi Handa <handa@m17n.org>
7153
7154 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 7155 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 7156
c67d885b
CY
71572010-01-31 Chong Yidong <cyd@stupidchicken.com>
7158
7159 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
7160 <deactivated@gmail.com> (Bug#3605).
7161
8fab2362
CY
71622010-01-31 David De La Harpe Golden <david@harpegolden.net>
7163
7164 * fileio.c (Frename_file): Correctly rename symlinks to
7165 directories (Bug#5496).
7166
cb2a62f2
CY
71672010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
7168
7169 * nsterm.m (ns_ring_bell): Handle visible bell like X.
7170
944c7a26
AS
71712010-01-30 Andreas Schwab <schwab@linux-m68k.org>
7172
7173 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
7174
c024ac08
CY
71752010-01-29 Chong Yidong <cyd@stupidchicken.com>
7176
7177 * frame.c (DEFAULT_ROWS): Change default to 35.
7178
7179 * xfns.c (x_default_font_parameter): Change default XFT font to
7180 monospace-10 (Bug#3643).
7181
af93af83
EZ
71822010-01-29 Eli Zaretskii <eliz@gnu.org>
7183
7184 * w32inevt.c (key_event): Remove unnecessary comparison of
7185 event->uChar.AsciiChar with 128.
7186
ca0eb708
CY
71872010-01-28 Chong Yidong <cyd@stupidchicken.com>
7188
b242dbfc
CY
7189 * fileio.c (Frename_file): Fix last change (Bug#5487).
7190
ca0eb708
CY
7191 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
7192
7193 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
7194
45d45af5
JD
71952010-01-28 Jan Djärv <jan.h.d@swipnet.se>
7196
7197 * xfns.c (Fx_create_frame): Remove window size matching code from
7198 2010-01-15.
a73f9c9d 7199 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 7200
7e233730
JR
72012010-01-27 Jason Rumney <jasonr@gnu.org>
7202
7203 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 7204 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 7205
86e893e3
KH
72062010-01-27 Kenichi Handa <handa@m17n.org>
7207
7208 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 7209 pattern string (Bug#4209).
86e893e3 7210
8719abec
CY
72112010-01-27 David De La Harpe Golden <david@harpegolden.net>
7212
7213 * fileio.c (Frename_file): Call copy-directory and
7214 delete-directory for directories, in order to handle cross-device
7215 renaming (Bug#3353).
7216
844794c8
JD
72172010-01-25 Jan Djärv <jan.h.d@swipnet.se>
7218
aa3e13b5 7219 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 7220 sizes 24 and 10. Bug #3643.
844794c8 7221
bd4b5750
SM
72222010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
7223
8dc1adf6 7224 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
7225 * keymap.c (shadow_lookup): Add `remap' arg.
7226 (describe_map, describe_vector): Update calls to shadow_lookup.
7227 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
7228 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
7229 perform remapping during shadow_lookup check of remapped_sequences.
7230
285d07e2
CY
72312010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
7232
7233 * image.c (png_load): Use png_sig_cmp instead of the obsolete
7234 png_check_sig, which has been removed in libpng 1.4.
7235
c6d09b8d
CY
72362010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
7237
7238 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
7239 lacks this header file).
7240
3d782998
YM
72412010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7242
7243 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
7244 as in Emacs 22.
7245
2aff7c53
YM
72462010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7247
7248 * lisp.h (make_pure_string): String pointer arg now points to const.
7249
7250 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
7251 args now point to const.
7252
74327f7a
EZ
72532010-01-22 Eli Zaretskii <eliz@gnu.org>
7254
7255 * lread.c (Fload): Don't treat files without .elc extension as
7256 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
7257 them. (bug#5303)
7258
4d1e6632
KH
72592010-01-20 Kenichi Handa <handa@m17n.org>
7260
7261 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
7262 treat the source as actual byte sequence.
7263
1fdede8f
AM
72642010-01-19 Alan Mackenzie <acm@muc.de>
7265
7266 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 7267 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
7268 `signal_after_change_p' to `coherent_change_p', and make the
7269 invocation of `modify_region' conditional on it.
7270
67477f30
JD
72712010-01-19 Jan Djärv <jan.h.d@swipnet.se>
7272
7273 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
7274 for debug purpose.
7275 (syms_of_xsettings): Declare xft-settings.
7276
244b023e
CY
72772010-01-18 Chong Yidong <cyd@stupidchicken.com>
7278
7279 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
7280
617364fe
CY
72812010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
7282
7283 * xterm.c (event_handler_gdk): Block input (Bug#5037).
7284
4fe22cdf
CY
72852010-01-16 Chong Yidong <cyd@stupidchicken.com>
7286
7287 * emacs.c (standard_args): Adjust arg priorities to reflect how
7288 they are processed in startup.el.
7289
e118d2be
AS
72902010-01-16 Andreas Schwab <schwab@linux-m68k.org>
7291
7292 * Makefile.in (lisp, shortlisp): Update.
7293
523ae620
SM
72942010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
7295
7296 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
7297 code, link the new kboard into all_kboard before running Lisp code,
7298 and protect the new terminal with GCPRO (Bug#5365).
7299 (x_term_init): Remove unused var `atom'.
7300 (x_delete_display, x_delete_terminal): Remove unused var `i'.
7301
f0d13888
JD
73022010-01-15 Jan Djärv <jan.h.d@swipnet.se>
7303
7304 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
7305 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
7306 to find out usable size of the desktop. Don't make frames larger than
ac146f82 7307 this. Bug #3643.
f0d13888 7308
cc320f07
KH
73092010-01-15 Kenichi Handa <handa@m17n.org>
7310
7311 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
7312
7ffdf101
CY
73132010-01-15 Chong Yidong <cyd@stupidchicken.com>
7314
7315 * nsterm.m (Qnone): Define.
7316
7317 * nsfns.m (Qnone): Move definition to nsterm.m.
7318
d12bd917
KH
73192010-01-14 Kenichi Handa <handa@m17n.org>
7320
7321 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
7322 systems.
7323
d9a7c140
KH
73242010-01-14 Kenichi Handa <handa@m17n.org>
7325
7326 Make auto-composition work on all buffers even if they are
7327 fundamental mode.
7328
7329 * composite.c (Vauto_composition_mode): New variable.
7330 (composition_compute_stop_pos): Check Vauto_composition_mode
7331 instead of Vauto_composition_function.
7332 (composition_adjust_point, Ffind_composition_internal): Likewise.
7333 (syms_of_composite): Declare Lisp variable
7334 "auto-composition-mode" here.
7335
63286bb2
CY
73362010-01-13 Chong Yidong <cyd@stupidchicken.com>
7337
7338 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
7339 during call to vendor-specific-keysyms (Bug#5365).
7340
c2623ee7
YM
73412010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7342
7343 * keyboard.c (input_available_signal) [SYNC_INPUT]:
7344 Call SIGNAL_THREAD_CHECK (Bug#5333).
7345
7346 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
7347 Call SIGNAL_THREAD_CHECK.
7348
0b5397c2
SM
73492010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
7350
7351 Try to fix bug#5314. This is probably not the final word, tho.
7352 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
7353 recent-auto-save-p as a side-effect.
7354 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
7355 * buffer.c (Fkill_buffer, reset_buffer):
7356 * editfns.c (Fsubst_char_in_region):
7357 * fileio.c (Finsert_file_contents, Fdo_auto_save)
7358 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
7359
dc954cb2
KH
73602010-01-13 Kenichi Handa <handa@m17n.org>
7361
7362 Display buffer name, etc. in mode line by composing correctly.
7363
7364 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
7365 STRING is not nil.
0b5397c2 7366 (display_mode_element): Adjust for the change of
dc954cb2
KH
7367 decode_mode_spec and display_line.
7368 (decode_mode_spec): Change arg MULTIBYTE to STRING.
7369 (display_string): Handle the case that STRING is non-null and
7370 LISP_STRING is not nil.
7371
0b5397c2
SM
7372 * xterm.c (x_draw_composite_glyph_string_foreground):
7373 Pay attention to s->face->overstrike.
dc954cb2
KH
7374
7375 * composite.c (composition_reseat_it): Don't check PT if STRING is
7376 non nil.
7377
4a00eaca
YM
73782010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7379
7380 * keyboard.c (read_char): Don't apply previous change when current
7381 buffer is unchanged by command execution.
7382
60abb287
JD
73832010-01-12 Jan Djärv <jan.h.d@swipnet.se>
7384
7385 * keyboard.c (read_char): Return after executing from special map.
7386
893db5bc
GM
73872010-01-12 Glenn Morris <rgm@gnu.org>
7388
7389 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
7390 bug-gnu-emacs rather than emacs-pretest-bug.
7391
4d03ece0
CY
73922010-01-11 Chong Yidong <cyd@stupidchicken.com>
7393
7394 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
7395 initializing the Lisp variables that depend on them.
7396
1df47e38
YM
73972010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7398
7399 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
7400 Clear areas that will not be updated after change of menu bar lines.
7401 Clear the menu bar window's current matrix when the window gets empty.
7402
2f1c6384
CY
74032010-01-09 Chong Yidong <cyd@stupidchicken.com>
7404
e398c61c
CY
7405 * intervals.h, textprop.c (extend_property_ranges): Return value
7406 and args changed. Discard properties that begin at or after the
7407 new end (Bug#5306).
7408
7409 * editfns.c (Fformat): Caller changed.
7410
e5a29a10
CY
7411 * nsterm.m (ns_set_default_prefs): Delete function.
7412 (syms_of_nsterm): Initialize ns_command_modifier,
7413 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
7414 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
7415
2f1c6384
CY
7416 * xdisp.c (pos_visible_p): Check for invisible text at the correct
7417 position (Bug#4040).
7418
d427a9fa
EZ
74192010-01-09 Eli Zaretskii <eliz@gnu.org>
7420
7421 * editfns.c (Ffloat_time): Doc fix.
7422
21b9df2f
JD
74232010-01-09 Jan Djärv <jan.h.d@swipnet.se>
7424
7425 * xfns.c (Fx_create_frame): Don't create frame larger than display
7426 by default bug#3643.
7427
4b00d3b1
YM
74282010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7429
7430 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
7431 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
7432 windows above internal border.
7433
7434 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
7435 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
7436 windows above internal border.
7437
7438 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
7439 tool bar windows specially.
7440
7441 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
7442
7443 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
7444 specially.
7445 (XTflash): Take account of menu bar height.
7446
7447 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
7448 specially.
7449
5075d853
JD
74502010-01-08 Jan Djärv <jan.h.d@swipnet.se>
7451
ac146f82 7452 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
7453 also be true before we can return early (bug #5339).
7454
474217c8
CY
74552010-01-06 David Reitter <david.reitter@gmail.com>
7456
7457 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
7458 (Fns_display_usable_bounds): Rewrite, computing bounds properly
7459 (Bug#3233).
7460
c0e6d47d
JD
74612010-01-06 Jan Djärv <jan.h.d@swipnet.se>
7462
d0cf45b7
JD
7463 * font.c (font_open_entity): Enable chache and call cached_font_ok
7464 for the driver if defined.
7465 (QCuser_spec): New symbol.
7466 (font_spec_from_name): Save name as user-spec.
7467 (font_load_for_lface): Keep user-spec instead of name.
7468 (font_open_by_name): Save name as user-spec.
7469 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 7470 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
7471
7472 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
7473 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
7474 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
7475
7476 * font.h (struct font_driver): Add cached_font_ok.
7477
c0e6d47d
JD
7478 * xterm.c (x_clear_frame): Queue draw for scroll bars.
7479
7c583cd8
JD
74802010-01-05 Jan Djärv <jan.h.d@swipnet.se>
7481
7482 * xterm.c (x_new_font): Move code for setting rows/cols before
7483 resizing ...
ac146f82 7484 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
7485
7486 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
7487 (xg_frame_resized, xg_frame_set_char_size):
7488 Call xg_clear_under_internal_border.
7c583cd8 7489 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 7490
03f77f0a
CY
74912010-01-05 Chong Yidong <cyd@stupidchicken.com>
7492
7493 * keyboard.c (read_key_sequence): Catch keyboard switch after
7494 making a new tty frame (Bug#5095).
7495
2a1ef5be
KH
74962010-01-05 Kenichi Handa <handa@m17n.org>
7497
7498 * fontset.c (fontset_find_font): Fix getting the frame pointer.
7499
e3eb1dae
SM
75002010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
7501
7502 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
7503 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
7504 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
7505
777013f2
MA
75062010-01-03 Michael Albinus <michael.albinus@gmx.de>
7507
7508 * dbusbind.c (xd_add_watch): Improve debug message.
7509 (xd_remove_watch): Improve debug message. If DATA is the session
7510 bus, unset D-Bus session environment.
7511 (Fdbus_init_bus): Pass the bus as argument to
7512 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 7513
8932b1c2
CY
75142010-01-01 Chong Yidong <cyd@stupidchicken.com>
7515
87231e2c
CY
7516 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
7517
4801c5fa
CY
7518 * lread.c (syms_of_lread): Make it clearer that these are the
7519 names of loaded files (Bug#5068).
7520
8932b1c2
CY
7521 * eval.c (run_hook_with_args): Handle the case where the global
7522 value has the obsolete single-function form (Bug#5026).
7523
11e3c684
CY
75242009-12-27 Chong Yidong <cyd@stupidchicken.com>
7525
7526 * minibuf.c (Fall_completions): Minor optimization.
7527
5b28ce35
EZ
75282009-12-26 Eli Zaretskii <eliz@gnu.org>
7529
5ce6e4f4
JB
7530 * .gdbinit (pgx): Fix display of composite glyphs.
7531 Display cmp.from and cmp.to as well.
7532 (pitx): Fix last change.
5b28ce35 7533
bcffff46
KH
75342009-12-25 Kenichi Handa <handa@m17n.org>
7535
7536 * composite.h (composition_adjust_point): Update prototype.
7537
7538 * composite.c (composition_reseat_it): Don't make a composition
7539 spanning over point.
7540 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
7541 composable characters.
7542 (composition_adjust_point): New arg NEW_PT. Callers changed.
7543
7544 * keyboard.c (command_loop_1): Force redisplay if the last point
7545 was within a composition.
7546 (adjust_point_for_property): Don't adjust point for automatic
7547 composition when called after buffer modification.
7548
3f670e9a
EZ
75492009-12-19 Eli Zaretskii <eliz@gnu.org>
7550
5ce6e4f4
JB
7551 * .gdbinit (pitx): Don't use enum names, use their values.
7552 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
7553 (pgx): Don't use enum names, use their values.
7554 (pitmethod): New helper command.
7555 (pitx): Use it to display iteration method.
7556 (pgrowit): New command.
7557
ad903955
EZ
7558 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
7559
3f670e9a
EZ
7560 Update dependencies in Makefile.in.
7561
7562 * Makefile.in (alloc.o): Depend on termhooks.h.
7563 (atimer.o): Depend on blockinput.h.
7564 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
7565 and frame.h.
7566 (callint.o): Depend on systime.h, coding.h, and composite.h.
7567 (callproc.o): Depend on buffer.h.
7568 (casefiddle.o): Don't depend on charset.h.
7569 (casetab.o): Depend on character.h.
7570 (ccl.o): Depend on composite.h.
7571 (chartab.o): Depend on ccl.h.
7572 (cm.o): Depend on dispextern.h.
7573 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
7574 (coding.o): Don't depend on $(INTERVALS_H).
7575 (composite.o): Don't depend on dispextern.h explicitly (it's in
7576 $(INTERVALS_H)). Depend on ccl.h.
7577 (data.o): Depend on systime.h, coding.h, composite.h,
7578 dispextern.h, font.h, and ccl.h.
7579 (dired.o): Depend on composite.h.
7580 (dispnew.o): Depend on coding.h. Don't depend explicitly on
7581 composite.h (it's in $(INTERVALS_H)).
7582 (doc.o): Depend on systime.h, coding.h, and composite.h.
7583 (editfns.o): Don't depend explicitly on dispextern.h.
7584 (emacs.o): Depend on frame.h and coding.h.
7585 (eval.o): Depend on coding.h, composite.h, and xterm.h.
7586 (fileio.o): Depend on frame.h and commands.h. Don't depend
7587 explicitly on dispextern.h.
7588 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
7589 composite.h.
7590 (fns.o): Don't depend on termhooks.h.
7591 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
7592 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
7593 coding.h, $(INTERVALS_H), window.h, xterm.h.
7594 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
7595 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
7596 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
7597 fontset.h, ccl.h, and ftfont.h.
7598 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
7599 (gtkutil.o): Depend on dispextern.h and composite.h.
7600 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
7601 termhooks.h, and ccl.h.
7602 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
7603 (intervals.o): Depend on systime.h and coding.h.
7604 (keyboard.o): Depend on composite.h and coding.h.
7605 (keymap.o): Depend on coding.h and frame.h.
7606 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
7607 (macros.o): Depend on systime.h, coding.h, and composite.h.
7608 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
7609 and atimer.h.
7610 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
7611 dispextern.h explicitly.
0b5397c2
SM
7612 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
7613 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
7614 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
7615 (regex.o): Don't depend on charset.h.
7616 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
7617 (search.o): Don't depend explicitly on composite.h.
7618 (sound.o): Depend on atimer.h and systime.h.
7619 (syntax.o): Don't depend explicitly on composite.h.
7620 (sysdep.o): Depend on coding.h and composite.h.
7621 (term.o): Depend on xterm.h and buffer.h.
7622 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
7623 (textprop.o): Don't depend on dispextern.h explicitly.
7624 (undo.o): Depend on dispextern.h.
7625 (window.o): Depend on coding.h and termhooks.h. Don't depend on
7626 dispextern.h and composite.h explicitly.
7627 (xdisp.o): Depend on ccl.h.
7628 (xfaces.o): Depend on coding.h and ccl.h.
7629 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
7630 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
7631 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
7632 ftfont.h.
7633 (xgselect.o): New dependency.
7634 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
7635 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
7636 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
7637 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
7638 (xsmfns.o): Depend on frame.h and dispextern.h.
7639 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
7640 sysselect.h.
7641
7a6f7fea
AS
76422009-12-19 Andreas Schwab <schwab@linux-m68k.org>
7643
7644 * font.c (Fclear_font_cache): Pass correct cache argument to
7645 font_clear_cache.
7646
f4c21026
AS
76472009-12-16 Andreas Schwab <schwab@linux-m68k.org>
7648
7649 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
7650 twice.
7651
f7ab0997
CY
76522009-12-15 Chong Yidong <cyd@stupidchicken.com>
7653
7654 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
7655 calling file-remote-p. Reported by Jim Meyering.
7656
fa8e045a
MA
76572009-12-15 Michael Albinus <michael.albinus@gmx.de>
7658
7659 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 7660 avoid compiler warnings. (Bug #5217)
fa8e045a 7661
a63dba42
KH
76622009-12-14 Kenichi Handa <handa@m17n.org>
7663
7664 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
7665 in 8-bit encoding.
7666
5ce6e4f4 76672009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
7668
7669 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
7670 tooltip windows.
7671
223e5fc6
JD
76722009-12-13 Jan Djärv <jan.h.d@swipnet.se>
7673
36acb2a7
JD
7674 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
7675 Xatom_net_window_type.
7676
7677 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
7678 Xatom_net_window_type.
7679
b8f00677
JD
7680 * xterm.c (my_log_handler): New function.
7681 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 7682 so we can filter out buggy messages. (Bug #5120).
b8f00677 7683
e5f0bc9a
JD
7684 * xterm.c (xg_scroll_callback): Parameter list changed,
7685 use parameter GtkScrollType to determine scroll/line/page.
7686 Only allow dragging if a button < 4 is grabbed (bug #5177).
7687 (xg_end_scroll_callback): New function.
7688 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
7689 xg_create_scroll_bar.
7690
7691 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
7692 (scroll_end_callback): Remove.
7693 (xg_create_scroll_bar): Add parameter end_callback, bind it to
7694 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 7695 bug #5177.
e5f0bc9a
JD
7696 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
7697 bug #5177.
7698
7699 * gtkutil.h (XG_LAST_SB_DATA): Remove.
7700 (xg_create_scroll_bar): Add GCallback end_callback.
7701
223e5fc6
JD
7702 * xftfont.c (QClcdfilter): New variable.
7703 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
7704 (syms_of_xftfont): Initialize QClcdfilter.
7705
3c055b77
JD
77062009-12-12 Jan Djärv <jan.h.d@swipnet.se>
7707
7708 * xsettings.c (struct xsettings): Add member seen.
7709 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 7710 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
7711 (apply_xft_settings): Only update Xft settings with what member seen
7712 indicates as new.
7713
05fe33ff
EZ
77142009-12-12 Eli Zaretskii <eliz@gnu.org>
7715
c4cc8b9a 7716 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
7717 (struct glyph): Use EMACS_INT for charpos.
7718 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
7719 region_beg_charpos, region_end_charpos,
7720 redisplay_end_trigger_charpos, and also for
7721 iterator_stack_entry.end_charpos and
7722 iterator_stack_entry.stop_charpos.
7723
e8d7886a
JD
77242009-12-12 Jan Djärv <jan.h.d@swipnet.se>
7725
5ce6e4f4 7726 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
7727 (xg_create_scroll_bar): Call scroll_end_callback on button release
7728 event (bug #5177).
7729 (xg_event_is_for_scrollbar): != replaced with ==.
7730
d0db2ec8
KH
77312009-12-12 Kenichi Handa <handa@m17n.org>
7732
7733 * ftfont.c (struct ftfont_info): New member matrix.
7734 (ftfont_open): Setup xftfont_info->matrix.
7735 (MFLTFontFT): New member matrix.
7736 (FLOOR, CEIL, ROUND): New macros.
7737 (ftfont_get_metrics): Handle matrix transformation.
7738 (ftfont_shape_by_flt): New arg matrix. Callers changed.
7739
7740 * xftfont.c (struct xftfont_info): New member matrix.
7741 (xftfont_open): Setup xftfont_info->matrix.
7742
77432009-12-10 Kenichi Handa <handa@m17n.org>
7744
7745 * xdisp.c (append_space_for_newline): Consider face-remapping.
7746
2cc7b62f
AS
77472009-12-09 Andreas Schwab <schwab@linux-m68k.org>
7748
b87dd913
AS
7749 * xsettings.c: Include "keyboard.h".
7750
eba5eb94
AS
7751 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
7752
2cc7b62f
AS
7753 Fix implicit function declarations.
7754 * cmds.c: Include "frame.h".
7755 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
7756 * frame.h: Move declaration of delete_frame outside of
7757 HAVE_WINDOW_SYSTEM.
7758
a4ef73c8
CY
77592009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
7760
7761 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
7762
7763 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
7764 GTK builds.
7765
944a300c
AS
77662009-12-07 Andreas Schwab <schwab@linux-m68k.org>
7767
7768 * unexelf.c (unexec): Don't search for .data twice.
7769
022eef62
CY
77702009-12-05 Chong Yidong <cyd@stupidchicken.com>
7771
426ac949
CY
7772 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
7773 if push failed.
7774 (handle_line_prefix): Set avoid_cursor_p here. Check return value
7775 of push_display_prop (Bug#5000).
7776
022eef62
CY
7777 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
7778 value of font_list_entities (Bug#5085).
7779
be95bee9
JB
77802009-12-04 Juanma Barranquero <lekktu@gmail.com>
7781
7782 Fix `string-to-number' to deal consistently with integers and floats.
7783 * lread.c (isfloat_string): New argument ignore_trailing to accept all
7784 trailing characters, not just whitespace.
7785 (read1): Pass new arg 0 to keep old behavior.
7786 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
7787 trailing chars, as it is already done for integers. Doc fixes.
7788 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
7789
24c2d7ce
EZ
77902009-12-04 Eli Zaretskii <eliz@gnu.org>
7791
0b5397c2
SM
7792 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
7793 Delete unused enumeration value.
24c2d7ce 7794
7e694795
EZ
77952009-12-03 Eli Zaretskii <eliz@gnu.org>
7796
7797 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
7798
84b31826
SM
77992009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
7800
7801 * process.c (Fmake_network_process): Fix up the tests for
7802 "connectionless socket", so they DTRT for seqpacket sockets as well.
7803
f00c449b
SM
78042009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
7805
7806 * process.c (Qseqpacket): New symbol.
7807 (HAVE_SEQPACKET): New macro.
7808 (Fmake_network_process): Accept new :type `seqpacket'.
7809 (init_process): Add `seqpacket' feature when applicable.
7810 (syms_of_process): Initialize Qseqpacket.
7811
8096a0ff
YM
78122009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7813
7814 * font.c (font_load_for_lface, font_open_by_name): Don't store name
7815 if entity is Qnil.
7816
3e0de07f
SM
78172009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
7818
7819 * print.c (print_preprocess): Preprocess the key_and_value table of
7820 hashtables, even tho they're "hidden" (bug#5082).
7821
abeafb2a
JD
78222009-11-29 Jan Djärv <jan.h.d@swipnet.se>
7823
7824 * frame.c (frame_make_pointer_invisible)
7825 (frame_make_pointer_visible): Declare f before statements.
7826
4bf47195
EZ
78272009-11-28 Eli Zaretskii <eliz@gnu.org>
7828
7829 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
7830 omitted dependencies on lisp.h.
7831
c525b3f2
JD
78322009-11-27 Jan Djärv <jan.h.d@swipnet.se>
7833
ece2d4ed
JD
7834 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
7835 is NULL.
7836
7837 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
7838
7839 * frame.c (frame_make_pointer_invisible)
3e0de07f 7840 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
7841 frame.
7842
c525b3f2
JD
7843 * search.c (simple_search): Remove warning by making *p const.
7844
2f00e299
DN
78452009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
7846
7847 * xdisp.c (power_letter): Remove duplicate const.
7848
084b049b
JD
78492009-11-25 Jan Djärv <jan.h.d@swipnet.se>
7850
a1fadc6f
JD
7851 * term.c (delete_tty): Remove check for last terminal (bug#4970).
7852
5ce6e4f4 7853 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
7854 defaults (bug #5025).
7855
28259cac
SM
78562009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
7857
7858 * insdel.c (adjust_markers_for_delete): Move it in the
7859 right direction! (bug#4803)
7860
e8e14166
YM
78612009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7862
7863 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
7864
7865 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
7866
86677b58
GM
78672009-11-24 Glenn Morris <rgm@gnu.org>
7868
7869 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
7870
581e51e8
JD
78712009-11-23 Jan Djärv <jan.h.d@swipnet.se>
7872
cfc86c7a
JD
7873 * Makefile.in: Must create deps for ecrt0.o in its rule.
7874
581e51e8
JD
7875 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
7876 because that is what Gtk+ font dialog understands.
7877
7878 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
7879 of Fcopy_sequence.
7880 (font_open_by_name): Put name given into QCname for font-object returned.
7881
7882 * frame.c (x_set_font): Save original font name as frame parameter
7883 font-parameter.
7884
7885 * xsettings.c (set_default_xft_settings): New function.
7886 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
7887 is found.
7888
8b264ecb
AS
78892009-11-22 Andreas Schwab <schwab@linux-m68k.org>
7890
7891 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
7892 searching backwards through multibyte buffer.
7893
872870b2
JD
78942009-11-21 Jan Djärv <jan.h.d@swipnet.se>
7895
7896 * xterm.c: #include xgselect.h.
7897 (x_initialize): Call xgselect_initialize.
7898
7899 * xsettings.c (something_changedCB): C++ comments => C comments.
7900 (init_gconf): Do not deal with any GLib file descriptors, xg_select
7901 does that now.
7902
7903 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
7904 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
7905 (scroll_bar_button_cb): Remove.
5ce6e4f4 7906 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
7907 event.
7908 (xg_create_scroll_bar): Don't bind button-press-event and
7909 button-release-event.
7910
7911 * process.c: Include xgselect.h if defined (USE_GTK) ||
7912 defined (HAVE_GCONF).
7913 (wait_reading_process_output): Call xg_select for the same condition.
7914
7915 * xgselect.c (xg_select): New function to better integrate with
7916 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
7917
7918 * xgselect.h: New file, declare xg_select, xgselect_initialize.
7919
7920 * Makefile.in (XOBJ): Add xgselect.o.
7921
62a6e103
AS
79222009-11-21 Andreas Schwab <schwab@linux-m68k.org>
7923
0b5397c2
SM
7924 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
7925 Remove ignored second argument. All callers changed.
62a6e103
AS
7926 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
7927 (RE_STRING_CHAR_AND_LENGTH): Likewise.
7928 * xdisp.c (string_char_and_length): Likewise.
7929
b0ca0f33
DN
79302009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
7931
7932 * xterm.c (x_new_font):
7933 * print.c (print_object):
7934 * cmds.c (Fself_insert_command): Move declarations before statements.
7935
dd5a6279
CY
79362009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
7937
7938 * s/cygwin.h: Remove unneeded linker flags.
7939
4a8e097d
JD
79402009-11-20 Jan Djärv <jan.h.d@swipnet.se>
7941
0d1d0d26
JD
7942 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
7943
7944 * xsettings.h: Declare xsettings_get_system_font.
7945
7946 * xsettings.c (xsettings_get_system_font): New function.
7947 (init_gconf): No use initiating gconf unless we have Xft also.
7948 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
7949 HAVE_GCONF.
7950
4a8e097d
JD
7951 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
7952 add a blank entry so it doesn't collapse into nothing.
7953
8ab1650e
SM
79542009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
7955
7956 * lread.c (Funintern): Comment out last change.
7957
82c602f0
RS
79582009-11-19 Richard Stallman <rms@gnu.org>
7959
7960 * lread.c (Funintern): Error if symbol is t or nil.
7961
87e32266
SM
79622009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
7963
7964 * insdel.c (make_gap_larger): Don't make as many assumptions about the
7965 representation of Lisp integers.
7966 Reported by MJ Chan <mjchan.inbox@gmail.com>.
7967
1b9ac145
AS
79682009-11-17 Andreas Schwab <schwab@linux-m68k.org>
7969
7970 * lisp.h: Remove declaration of Ffont_get_system_font.
7971 * xfns.c: Move include of "xsettings.h".
7972 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
7973
dfb3c4c6
JD
79742009-11-17 Jan Djärv <jan.h.d@swipnet.se>
7975
87e32266
SM
7976 * xsettings.c (something_changedCB, Ffont_get_system_font):
7977 Check use_system_font.
dfb3c4c6
JD
7978 (syms_of_xsettings): DEFVAR font-use-system-font.
7979
9370c1d8
AS
79802009-11-17 Andreas Schwab <schwab@linux-m68k.org>
7981
25fe851a
AS
7982 * xfns.c (x_default_font_parameter): Remove dead assignment.
7983
9370c1d8
AS
7984 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
7985
637fa988
JD
79862009-11-17 Jan Djärv <jan.h.d@swipnet.se>
7987
87e32266 7988 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 7989 not have FC_LCD_*. #define them if not there.
a6eb20d8 7990
87e32266 7991 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 7992
637fa988
JD
7993 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
7994
7995 * xterm.c (handle_one_xevent): Call xft_settings_event for
7996 ClientMessage, PropertyNotify and DestroyNotify.
7997 (x_term_init): If we have XFT, get DPI from Xft.dpi.
7998 Call xsettings_initialize.
7999
8000 * xftfont.c (xftfont_fix_match): New function.
8001 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
8002 Call xftfont_fix_match after XftFontMatch.
8003
8004 * xfont.c (xfont_driver): Initialize all members.
8005
87e32266
SM
8006 * xfns.c (x_default_font_parameter):
8007 Try font from Ffont_get_system_font.
637fa988
JD
8008 Do not get font from x_default_parameter if we got one from
8009 Ffont_get_system_font.
87e32266 8010 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
8011
8012 * w32font.c (w32font_driver): Initialize all members.
8013
8014 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
8015
8016 * lisp.h: Declare syms_of_xsettings.
8017
87e32266
SM
8018 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
8019 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
8020
8021 * ftfont.c (ftfont_filter_properties): New function.
8022
8023 * frame.c (x_set_font): Remove unused variable lval.
8024
87e32266 8025 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
8026
8027 * font.c (font_put_extra): Don't return if val is nil, it means
8028 boolean option is off.
8029 (font_parse_fcname): Collect all extra properties in extra_props
8030 and call filter_properties for all drivers with extra_props and
8031 font as parameter.
87e32266
SM
8032 (font_open_entity): Do not use cache, it does not pick up new
8033 fontconfig settings like hinting.
637fa988
JD
8034 (font_load_for_lface): If spec had a name in it, store it in entity.
8035
a73f9c9d 8036 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
8037
8038 * config.in: HAVE_GCONF is new.
8039
8040 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
8041 xsettings.o is new.
8042
5a942932
KH
80432009-11-17 Kenichi Handa <handa@m17n.org>
8044
8045 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
8046 back to the default font in case that no suitable font is found.
8047
b7c7a4d1
SM
80482009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
8049
8050 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
8051 Suggested by Chad Brown <yandros@mit.edu>.
8052 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
8053
072f1e39
JD
80542009-11-16 Jan Djärv <jan.h.d@swipnet.se>
8055
8056 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
8057
5d1e70a2
AS
80582009-11-14 Andreas Schwab <schwab@linux-m68k.org>
8059
87e32266 8060 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 8061
a53cfbe5
JD
80622009-11-14 Jan Djärv <jan.h.d@swipnet.se>
8063
473a99b7
JD
8064 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
8065 has a parent.
8066
a53cfbe5 8067 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 8068 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
8069
8070 * config.in: Generated (AUTO_DEPEND).
8071
f04bb9b2
MA
80722009-11-13 Michael Albinus <michael.albinus@gmx.de>
8073
b7c7a4d1 8074 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
8075 Vdbus_registered_functions_table, because it contains also
8076 properties. Fix docstring.
b7c7a4d1 8077 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 8078
8f11f7ec
SM
80792009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
8080
8081 * alloc.c (mark_object): Don't reprocess marked strings.
8082 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
8083 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
8084
8a605fe8
KH
80852009-11-13 Kenichi Handa <handa@m17n.org>
8086
8f11f7ec 8087 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
8088 semantics of Vword_combining_categories.
8089 (Vword_combining_categories): Describe the slight change of the
8090 semantics.
8091
241c4680
EZ
80922009-11-13 Eli Zaretskii <eliz@gnu.org>
8093
8094 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
8095
8096 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
8097
5d58e44c
SM
80982009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
8099
8100 * xdisp.c (syms_of_xdisp): Fix typo in last change.
8101
5e13f9d3
JB
81022009-11-12 Juanma Barranquero <lekktu@gmail.com>
8103
8104 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
8105
cf54c754
DR
81062009-11-11 David Reitter <david.reitter@gmail.com>
8107
8108 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
8109 variables to fix 2009-11-09 change.
8110
a4ada374
DN
81112009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
8112
91433552
DN
8113 * process.c (ifflag_def): Make flag_sym constant.
8114 (Fnetwork_interface_info): Use a constant pointer.
8115 (ifflag_table):
8116 * xfns.c (cursor_bits):
8117 * xdisp.c (power_letter):
8118 * termcap.c (speeds, esctab):
8119 * sysdep.c (baud_convert):
8120 * keyboard.c (lispy_accent_codes, modifier_names):
8121 * image.c (xbm_format, xpm_format, pbm_format, png_format)
8122 (jpeg_format, tiff_format, gif_format, svg_format)
8123 (interlace_start, interlace_increment, gs_format):
8124 * gtkutil.c (separator_names):
8125 * fringe.c (swap_nibble):
8126 * fns.c (base64_value_to_char, base64_char_to_value):
8127 * fileio.c (make_temp_name_tbl):
8128 * coding.c (suffixes): Make constant.
8129
f4265f6c
DN
8130 * frame.c (make_initial_frame):
8131 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
8132 build_string.
8133 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
8134
04420943
DN
8135 * s/freebsd.h:
8136 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
8137
0a5d24ae
DN
8138 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
8139 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
8140
a4ada374
DN
8141 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
8142 * xterm.c (syms_of_xterm):
8143 * xfaces.c (syms_of_xfaces):
8144 * xdisp.c (syms_of_xdisp):
8145 * lread.c (syms_of_lread):
8146 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
8147 build_string.
91433552 8148
a4ada374
DN
8149 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
8150
af98fc7f
SM
81512009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
8152
8ab1650e 8153 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 8154
e90292a9
JD
81552009-11-10 Jan Djärv <jan.h.d@swipnet.se>
8156
8157 * keyboard.h: Declare timer_check.
8158
8159 * keyboard.c (timer_check_2): New function that does what the old
8160 timer_check did.
8161 (timer_check): Call timer_check_2 until -1 or a non-zero time is
8162 returned, i.e. don't return -1 with timers pending.
8163
8164 * process.c: Remove extern declaration of timer_check.
8165
8166 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
8167 even if timer_check returned -1.
8168
af98fc7f
SM
8169 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
8170 xg_dialog_data.
e90292a9
JD
8171 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
8172 the event loop.
8173 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
8174 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
8175 Destroy the dialog after xg_dialog_run.
8176
045b83c0
SM
81772009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
8178
8179 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
8180
1fb99a3a
JD
81812009-11-10 Jan Djärv <jan.h.d@swipnet.se>
8182
8183 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
8184
04e452cb
JB
81852009-11-09 Juanma Barranquero <lekktu@gmail.com>
8186
8187 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
8188
ef7417fd
SM
81892009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
8190
8191 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
8192 w32menu.c, and nsmenu.m.
8193 Simplify the obsolete case where position is nil.
8194 (cleanup_popup_menu): New function, moved from nsmenu.m.
8195 (struct skp): Remove slot `notreal'.
8196 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
8197 adjust callers.
8198 (single_menu_item): Adjust call to parse_menu_item.
8199 (syms_of_menu): Defsubr x-popup-menu.
8200 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
8201 (keymap_panes): Don't export any more.
8202 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
8203 (xmenu_show): Declare.
8204 * keyboard.c (parse_menu_item): Remove arg `notreal'.
8205 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
8206 * keyboard.h (parse_menu_item): Update declaration.
8207 * xmenu.c (Fx_popup_menu): Remove.
8208 (syms_of_xmenu): Don't defsubr x-popup-menu.
8209 * w32menu.c (Fx_popup_menu): Remove.
8210 (syms_of_w32menu): Don't defsubr x-popup-menu.
8211 * nsmenu.m (cleanup_popup_menu): Remove.
8212 (ns_menu_show): Rename from ns_popup_menu and remove all the code
8213 moved to menu.c's Fx_popup_menu.
8214 (Fx_popup_menu): Remove.
8215 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
8216 menu_items (it's done in menu.c already).
8217
424d6179
SM
82182009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
8219
8220 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
8221 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
8222
c0df13a6 82232009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
8224
8225 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 8226 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
8227 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
8228 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
8229
2de9f71c
SM
82302009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
8231
8232 Let integers use up 2 tags to give them one extra bit and thus double
8233 their range.
8234 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
8235 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
8236 New macros.
8237 (enum Lisp_Type): Use them. Give explicit values.
8238 (Lisp_Type_Limit): Remove.
8239 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
8240 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
8241 Pay attention to USE_2_TAGS_FOR_INTS.
8242 (INTEGERP): Use LISP_INT_TAG_P.
8243 * fns.c (internal_equal): Simplify the default case.
8244 (sxhash): Use case_Lisp_Int.
8245 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
8246 any more.
8247 (Ftype_of): Use case_Lisp_Int.
8248 (store_symval_forwarding): Take into account the fact that Ints can
8249 now have more than one tag.
8250 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 8251 (buffer_slot_type_mismatch):
2de9f71c
SM
8252 * xfaces.c (face_attr_equal_p):
8253 * print.c (print_object):
8254 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
8255 Use case_Lisp_Int.
8256
323637a2
EZ
82572009-11-06 Eli Zaretskii <eliz@gnu.org>
8258
7ac65b38
EZ
8259 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
8260
323637a2
EZ
8261 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
8262 warning.
8263
e511451f
JD
82642009-11-06 Jan Djärv <jan.h.d@swipnet.se>
8265
8266 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
8267
8268 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
8269
8270 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
8271 ButtonPressRelease and MotionNotify (bug#4870).
8272
5e2327cf
DN
82732009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
8274
5adc433e
DN
8275 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
8276
d67b4f80
DN
8277 * xterm.c (syms_of_xterm):
8278 * xselect.c (syms_of_xselect):
8279 * xmenu.c (syms_of_xmenu):
8280 * xfns.c (syms_of_xfns):
8281 * xfaces.c (syms_of_xfaces):
8282 * xdisp.c (syms_of_xdisp):
8283 * window.c (syms_of_window):
8284 * w32fns.c (syms_of_w32fns):
8285 * undo.c (syms_of_undo):
8286 * textprop.c (syms_of_textprop):
8287 * terminal.c (syms_of_terminal):
8288 * syntax.c (syms_of_syntax):
8289 * sound.c (syms_of_sound):
8290 * search.c (syms_of_search):
8291 * print.c (syms_of_print):
8292 * minibuf.c (syms_of_minibuf):
8293 * macros.c (syms_of_macros):
8294 * keymap.c (syms_of_keymap, initial_define_key)
8295 (initial_define_lispy_key):
8296 * keyboard.c (syms_of_keyboard):
8297 * insdel.c (syms_of_insdel):
8298 * image.c (syms_of_image):
8299 * fringe.c (syms_of_fringe):
8300 * frame.c (syms_of_frame):
8301 * fontset.c (syms_of_fontset):
8302 * fns.c (syms_of_fns):
8303 * fns.c (syms_of_fns):
8304 * fileio.c (syms_of_fileio):
8305 * fileio.c (syms_of_fileio):
8306 * eval.c (syms_of_eval):
8307 * doc.c (syms_of_doc):
8308 * dispnew.c (syms_of_display):
8309 * dired.c (syms_of_dired):
8310 * dbusbind.c (syms_of_dbusbind):
8311 * data.c (syms_of_data):
8312 * composite.c (syms_of_composite):
8313 * coding.c (syms_of_coding):
8314 * cmds.c (syms_of_cmds):
8315 * charset.c (define_charset_internal, syms_of_character):
8316 * ccl.c (syms_of_ccl):
8317 * category.c (syms_of_category, init_category_once):
8318 * casetab.c (syms_of_casetab):
8319 * casefiddle.c (syms_of_casefiddle):
8320 * callint.c (syms_of_callint):
8321 * bytecode.c (syms_of_bytecode):
8322 * buffer.c (keys_of_buffer, syms_of_buffer):
8323 * alloc.c (syms_of_alloc):
8324 * process.c (syms_of_process, init_process):
8325 * lread.c (syms_of_lread, init_obarray):
8326 * font.c (build_style_table):
8327 * emacs.c (syms_of_emacs, main): Replace calls to intern with
8328 intern_c_string, calls to make_pure_string with
8329 make_pure_c_string. Use pure_cons instead of Fcons.
8330
5e2327cf
DN
8331 * process.c (socket_options): Make it const.
8332 (set_socket_option, init_process): Use a const pointer.
8333
8334 * lread.c (intern_c_string): New function.
8335 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
8336 (defvar_int): Uset it. Make the name const char*.
8337
8338 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
8339 (defvar_int): Update prototypes.
8340 (DEFUN, EXFUN): Support for prototypes is now required.
8341 (intern_c_string): New prototype.
8342 (struct Lisp_Subr): Make symbol_name constant.
8343
8344 * font.c (struct table_entry): Remove unused member. Make NAMES
8345 constant.
8346 (weight_table, slant_table, width_table): Make constant.
8347
8348 * emacs.c (struct standard_args): Make name and longname constant.
8349
8350 * character.h (DEFSYM): Use intern_c_string.
8351
a56eaaef
DN
83522009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
8353
8354 * alloc.c (make_pure_c_string): New function.
8355
8356 * eval.c (Fautoload): Purecopy all arguments.
8357
f6a07420
KH
83582009-11-05 Kenichi Handa <handa@m17n.org>
8359
8360 * fileio.c (Finsert_file_contents): Be sure set coding-system of
8361 the buffer in case of replace.
8362
5d28d4b1
DN
83632009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
8364
8365 * puresize.h (BASE_PURESIZE): Increase to 1620000.
8366
b349d111
SM
83672009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
8368
d528b1ce
SM
8369 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
8370 when applicable (bug#4851).
8371
b349d111
SM
8372 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
8373 (P_): Support for prototypes is now required.
8374
c38eb027
CY
83752009-10-31 Chong Yidong <cyd@stupidchicken.com>
8376
8377 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
8378 (Bug#4827).
8379
0405f8d9
EZ
83802009-10-30 Eli Zaretskii <eliz@gnu.org>
8381
d528b1ce 8382 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 8383
ca0a881a
DN
83842009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
8385
8386 * puresize.h (BASE_PURESIZE): Increase to 1470000.
8387
d528b1ce
SM
8388 * lread.c (Fload): Purecopy the file name when building
8389 Vpreloaded_file_list.
ca0a881a 8390
47e0e0e4
JR
83912009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
8392
8393 * w32fns.c (syms_of_w32fns): Change default value of
8394 w32-scroll-lock-modifier to nil. (Bug#2827)
8395
057bce6f
JB
83962009-10-26 Juanma Barranquero <lekktu@gmail.com>
8397
782a943e 8398 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 8399
242bc74c
AS
84002009-10-26 Andreas Schwab <schwab@redhat.com>
8401
8402 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
8403
522d013a
JB
84042009-10-26 Juanma Barranquero <lekktu@gmail.com>
8405
8406 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
8407 For delta < 0, skip check that only makes sense when the mini-window
8408 is going to be enlarged. (Bug#4534)
8409
18060980
CY
84102009-10-25 Chong Yidong <cyd@stupidchicken.com>
8411
8412 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
8413 string in menu maps (Bug#4471).
8414
fec8f0fe
CY
84152009-10-24 Chong Yidong <cyd@stupidchicken.com>
8416
8417 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
8418 FRAME_NS_VIEW on terminal frames (Bug#4765).
8419
10d66ec0
AS
84202009-10-24 Andreas Schwab <schwab@linux-m68k.org>
8421
1cae01f7
AS
8422 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
8423 DBUS_TYPE_UINTnn separately to get proper sign extension.
8424
58a12889
AS
8425 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
8426 can properly handle unsigned types.
d528b1ce 8427 (make_uid, make_gid): Remove.
58a12889 8428
987c9327
AS
8429 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
8430 types again.
8431
522d013a 8432 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
8433 (system_process_attributes): Likewise.
8434
905a9ed3
DN
84352009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
8436
8437 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
8438
8439 * eval.c (Fautoload): Purecopy the filename. Simplify.
8440
8441 * category.c (Fdefine_category): Purecopy docstring.
8442
a599b3e8
AS
84432009-10-23 Andreas Schwab <schwab@linux-m68k.org>
8444
7b792fc9
AS
8445 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
8446
a599b3e8
AS
8447 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
8448
b35ac83e
CY
84492009-10-23 Chong Yidong <cyd@stupidchicken.com>
8450
8451 * window.c (Fwindow_edges, Fwindow_pixel_edges)
8452 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
8453 (Bug#4775).
8454
e8903e00
SM
84552009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
8456
8457 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
8458 (init_fileio_once):
8459 * lisp.h (init_fileio_once): Remove.
8460 * emacs.c (main): Don't call init_fileio_once.
8461
8f43cbf3
DN
84622009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
8463
8464 * puresize.h (BASE_PURESIZE): Increase to 1430000.
8465
26898943
AS
84662009-10-21 Andreas Schwab <schwab@linux-m68k.org>
8467
8468 * doprnt.c (doprnt): Fix overflow check.
8469
5c646d5a
JD
84702009-10-21 Jan Djärv <jan.h.d@swipnet.se>
8471
3132a7ea
JD
8472 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
8473
5c646d5a
JD
8474 * xterm.h (x_wait_for_event): Declare it.
8475
8476 * xterm.c (pending_event_wait): New variable.
8477 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
8478 see pending_event_wait.eventtype.
8479 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
8480 (x_new_font): Call change_frame_size with new rows/columns before we
8481 try to resize the frame.
5c646d5a 8482 (x_wait_for_event): New function.
d528b1ce
SM
8483 (x_set_window_size_1): Don't change gravity unless change_gravity
8484 is set.
5c646d5a
JD
8485 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
8486 don't change frame size, instead wait for the ConfigureNotify.
8487 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
8488 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
8489 (x_initialize): Initialize pending_event_wait.
8490
8491 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
8492 size.
8493
8494 * widget.c (EmacsFrameSetValues): Add comment.
8495 (EmacsFrameSetCharSize): Just call x_set_window_size.
8496
8497 * gtkutil.c (xg_frame_set_char_size): Flush events and call
8498 x_wait_for_event.
d528b1ce 8499 (flush_and_sync): Remove again.
5c646d5a
JD
8500 (xg_get_font_name): Suggest monospace if no previous font is known.
8501
e9c1637d
SM
85022009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
8503
8504 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 8505 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 8506
5a72cccb
YM
85072009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8508
8509 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
8510 processing pending events when event is filtered for input method.
ab04798f 8511 (Bug#3681)
5a72cccb 8512
2629aa37
JB
85132009-10-20 Juanma Barranquero <lekktu@gmail.com>
8514
8515 * fns.c: Add #endif accidentally removed in previous change.
8516
c3417a74
DN
85172009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
8518
8519 * fns.c: Remove code for unsupported system: MAC_OS.
8520 * image.c: Likewise. Include setjmp.h.
8521
9685cef2
JD
85222009-10-19 Jan Djärv <jan.h.d@swipnet.se>
8523
8524 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
8525 pixel -1 (bug #4742).
8526
d7306fe6
DN
85272009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
8528
019d2c4c
DN
8529 * process.c (create_pty): Remove conditionals for no longer
8530 supported systems: UNIPLUS and RTU.
8531
ee6bacd4
DN
8532 * xterm.c:
8533 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
8534
d7306fe6
DN
8535 * alloc.c: Do not define struct catchtag.
8536 * eval.c: Move struct catchtag definition ...
8537 * lisp.h: ... here.
8538
8539 * image.c: Move png.h #include earlier to avoid warnings.
8540
8541 * xterm.c:
8542 * xsmfns.c:
8543 * xselect.c:
8544 * xrdb.c:
8545 * xmenu.c:
8546 * xftfont.c:
8547 * xfont.c:
8548 * xfns.c:
8549 * xfaces.c:
8550 * xdisp.c:
8551 * window.c:
8552 * widget.c:
8553 * w32xfns.c:
8554 * w32uniscribe.c:
8555 * w32term.c:
8556 * w32select.c:
8557 * w32reg.c:
8558 * w32proc.c:
8559 * w32menu.c:
8560 * w32inevt.c:
8561 * w32heap.c:
8562 * w32font.c:
8563 * w32fns.c:
8564 * w32console.c:
8565 * w32.c:
8566 * w16select.c:
8567 * vm-limit.c:
8568 * unexsol.c:
8569 * unexec.c:
8570 * unexcw.c:
8571 * unexaix.c:
8572 * undo.c:
8573 * tparam.c:
8574 * textprop.c:
8575 * terminfo.c:
8576 * terminal.c:
8577 * termcap.c:
8578 * term.c:
8579 * syntax.c:
8580 * sound.c:
8581 * sheap.c:
8582 * search.c:
8583 * scroll.c:
8584 * region-cache.c:
8585 * regex.c:
8586 * ralloc.c:
8587 * process.c:
8588 * print.c:
b024548b
DN
8589 * nsterm.m:
8590 * nsselect.m:
8591 * nsmenu.m:
8592 * nsimage.m:
8593 * nsfont.m:
8594 * nsfns.m:
d7306fe6
DN
8595 * msdos.c:
8596 * minibuf.c:
8597 * menu.c:
8598 * marker.c:
8599 * macros.c:
8600 * keymap.c:
8601 * keyboard.c:
8602 * intervals.c:
8603 * insdel.c:
8604 * indent.c:
8605 * gtkutil.c:
8606 * ftxfont.c:
8607 * ftfont.c:
8608 * fringe.c:
8609 * frame.c:
8610 * fontset.c:
8611 * font.c:
8612 * fns.c:
8613 * floatfns.c:
8614 * filelock.c:
8615 * fileio.c:
8616 * emacs.c:
8617 * editfns.c:
8618 * dosfns.c:
8619 * doprnt.c:
8620 * doc.c:
8621 * dispnew.c:
8622 * dired.c:
8623 * dbusbind.c:
8624 * data.c:
8625 * composite.c:
8626 * coding.c:
8627 * cmds.c:
8628 * cm.c:
8629 * chartab.c:
8630 * charset.c:
8631 * character.c:
8632 * ccl.c:
8633 * category.c:
8634 * casetab.c:
8635 * casefiddle.c:
8636 * callproc.c:
8637 * callint.c:
8638 * bytecode.c:
8639 * buffer.c:
8640 * atimer.c: Include setjmp.h. (Bug#4643)
8641
fd5f21e6
SM
86422009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
8643
4c0354d7
SM
8644 Remove leftover table unibyte_to_multibyte_table.
8645 * character.c (unibyte_to_multibyte_table): Remove.
8646 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
8647 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
8648 * character.h (UNIBYTE_TO_CHAR): New macro.
8649 (MAKE_CHAR_MULTIBYTE): Use it.
8650 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
8651 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
8652 (message_dolog, set_message_1):
8653 * search.c (Freplace_match):
8654 * editfns.c (Fcompare_buffer_substrings):
8655 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
8656 (concat):
8657 * insdel.c (copy_text, count_size_as_multibyte):
8658 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
8659 * term.c (produce_glyphs):
8660 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
8661 * regex.c (RE_CHAR_TO_MULTIBYTE):
8662 * cmds.c (internal_self_insert):
8663 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
8664
fd5f21e6
SM
8665 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
8666
4418646e
DN
86672009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
8668
8669 * puresize.h (BASE_PURESIZE): Increase to 1310000.
8670
35f5c1d2
JB
86712009-10-16 Juanma Barranquero <lekktu@gmail.com>
8672
8673 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
8674
a0cd8f6b
AR
86752009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8676
8677 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
8678 still needed under Tiger.
8679
8680 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
8681
8682 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
8683 __Apple__.
8684
8685 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
8686
01a8d3fa
KH
86872009-10-15 Kenichi Handa <handa@m17n.org>
8688
8689 * print.c (print_object): Escape a symbol like "2E10" too.
8690
bf6c75c9 86912009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
8692
8693 Cleanups and changes for 64-bit compile under Snow Leopard.
8694 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
8695
8696 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
8697
c5959062 8698 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
8699 (ns_findfonts, nsfont_list_family): Use long format in printf, and
8700 cast argument.
8701 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 8702 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
8703
8704 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
8705
8706 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
8707 where appropriate.
8708
8709 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
8710 where appropriate.
6e4780c5
JB
8711 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
8712 Use stringWithUTF8String.
bf6c75c9
AR
8713 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
8714
6e4780c5
JB
8715 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
8716 Add formal protocol mention to inheritance.
bf6c75c9
AR
8717 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
8718
6e4780c5
JB
8719 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
8720 Fix printf format.
bf6c75c9
AR
8721 (ns_query_color): Use CGFloat where appropriate.
8722 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 8723 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
8724 argument.
8725
3d87f118
AR
8726 * config.in (NS_HAVE_NSINTEGER): Drop.
8727
a95c8102
AR
8728 * dbusbind.c (dbus-method-return-internal)
8729 (dbus-method-error-internal): Use long format in printf, and cast
8730 argument.
8731
8732 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
8733 in printf, and cast argument.
8734
6873acca 8735 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
8736 cast argument.
8737
9ec6f100
GM
87382009-10-11 Glenn Morris <rgm@gnu.org>
8739
8740 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
8741
5be883cd
JD
87422009-10-08 Jan Djärv <jan.h.d@swipnet.se>
8743
8744 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
8745 menu bar with a small width so it doesn't enlarge the frame.
8746
d7a39b51
JB
87472009-10-08 Juanma Barranquero <lekktu@gmail.com>
8748
8749 * fontset.c (Fset_fontset_font): Fix typos in error messages.
8750
0c2b6f8e
GM
87512009-10-06 Glenn Morris <rgm@gnu.org>
8752
8753 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
8754 SOME_MACHINE_LISP (this enters indirectly via DOC).
8755
e02131a2
EZ
87562009-10-05 Eli Zaretskii <eliz@gnu.org>
8757
8758 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
8759
b4744254
EZ
87602009-10-04 Eli Zaretskii <eliz@gnu.org>
8761
8762 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
8763 Doc fix.
8764
dbf64827
JB
87652009-10-03 Martin Rudalics <rudalics@gmx.at>
8766
8767 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
8768
e9a0aef8
MA
87692009-10-02 Michael Albinus <michael.albinus@gmx.de>
8770
d528b1ce 8771 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
8772 used anymore outside fileio.c.
8773
8774 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
8775
64eb2b56
JB
87762009-10-01 Juanma Barranquero <lekktu@gmail.com>
8777
8778 * lisp.h (Qdelete_directory_internal):
8779 Declare, instead of Qdelete_directory.
8780
8781 * w32fns.c (Fsystem_move_file_to_trash): Use it.
8782
9d28c33e
SM
87832009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
8784
8785 * eval.c (Fcalled_interactively_p): Add `kind' argument.
8786
9d8f3bd9
MA
87872009-10-01 Michael Albinus <michael.albinus@gmx.de>
8788
9d28c33e 8789 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
8790 Fdelete_directory. It is not a command anymore. It has no file
8791 name handler.
8792
9694740b
SM
87932009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
8794
8795 * xdisp.c (get_next_display_element): Use an enum in last change.
8796
748e162f
KH
87972009-09-28 Kenichi Handa <handa@m17n.org>
8798
9694740b 8799 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
8800 unibyte_display_via_language_environment in handling
8801 Vnobreak_char_display.
8802
17efd58d
AR
88032009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8804
8805 * nsterm.h (ns_app_name): New extern variable.
8806
8807 * nsterm.m (ns_app_name): New variable.
8808 (ns_term_init): Set and use it.
8809 (ns_term_shutdown): Use it.
8810
8811 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
8812 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
8813
8814 * nsfns.m (ns_set_name_iconic, ns_set_name)
8815 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
8816 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
8817
9694740b
SM
8818 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
8819 Remove double-casting in client_data comparison.
31c2d412 8820
3208cb35
YM
88212009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8822
8823 * keyboard.c (make_lispy_event): Remember last wheel direction.
8824 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
8825
b7d552d6
GM
88262009-09-26 Glenn Morris <rgm@gnu.org>
8827
8828 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
8829 internal.elc. Add term/pc-win.elc.
8830 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
8831 term/x-win.elc.
8832 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
8833 term/w32-win.elc.
8834 (NS_SUPPORT): New.
8835 (lisp): Add NS_SUPPORT.
8836 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
8837
4ff670a8
DR
88382009-09-25 David Reitter <david.reitter@gmail.com>
8839
8840 * nsmenu.m (EmacsMenu-clear): Recognize application menu
8841 on Mac OS X 10.6+ (bug#4513).
8842
feabfb6c
JB
88432009-09-24 Juanma Barranquero <lekktu@gmail.com>
8844
8845 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
8846 some parts of Emacs code (like font selection) don't grok them.
8847 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 8848
de59072a
AS
88492009-09-24 Andreas Schwab <schwab@redhat.com>
8850
8851 * coding.c (decode_coding_iso_2022): Fix operator precedence.
8852
a489517b
JB
88532009-09-24 Juanma Barranquero <lekktu@gmail.com>
8854
8855 * dired.c (Fdirectory_files): Fix typo in docstring.
8856
0592970c
AR
88572009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8858
8859 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
8860 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
8861 (EmacsScroller-setPosition:portion:whole:): Remove -display call
8862 under GNUstep.
8863 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
8864
8865 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
8866 glyph advancement.
8867
48e8a88b
AR
88682009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8869
8870 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 8871 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
8872
8873 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
8874 deleted (bug #4492).
8875
e14f0a78
AR
8876 * nsfont.m (Vns_reg_to_script): New lisp variable.
8877 (syms_of_nsfont): Declare it.
8878 (ns_registry_to_script): New function.
8879 (ns_get_req_script): Call it.
8880 (ns_findfonts): Don't give up on non-unicode registry.
8881
8882 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
8883
5b650faa
SM
88842009-09-20 Tom Tromey <tromey@redhat.com>
8885
8886 * eval.c (find_handler_clause): Make stack-trace-on-error work in
8887 batch mode (bug#4228).
8888
a489517b 88892009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
8890
8891 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 8892 carefully. (Bug #4339)
0bae4e09 8893
fcfe06f3
CY
88942009-09-18 Chong Yidong <cyd@stupidchicken.com>
8895
d798ba87 8896 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 8897
31642728
AR
88982009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
8899
8900 * emacs.c (inhibit_x_resources): Update doc string for NS.
8901 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 8902 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
8903
8904 * nsterm.h (ns_no_defaults): Remove.
8905
8906 * nsterm.m (ns_no_defaults): Remove.
8907 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
8908 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
8909 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
8910 don't update the NSWindow itself.
8911 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 8912 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
8913
8914 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
8915 ns_use_qd_smoothing.
8916
8917 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
8918 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 8919 (x-close-connection): Drop PSFlush() under OS X.
a489517b 8920 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 8921
8686ac71
JB
89222009-09-17 Juanma Barranquero <lekktu@gmail.com>
8923
8924 * emacs.c (inhibit_x_resources): New variable.
8925 (main) [HAVE_NS]: Don't process --quick command line option.
8926 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
8927
8928 * lisp.h (inhibit_x_resources): Declare it extern.
8929
8930 * w32reg.c (x_get_string_resource):
8931 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
8932
e227ba05
EZ
89332009-09-17 Eli Zaretskii <eliz@gnu.org>
8934
362654a6
JB
8935 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
8936 Add lisp/term/internal.elc.
e227ba05 8937
742d40e8
SM
89382009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
8939
8940 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
8941 (bug#4461).
8942
005bd5a2
DN
89432009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
8944
8945 * puresize.h (BASE_PURESIZE): Increase to 1290000.
8946
8947 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
8948 (OBJECTS_MACHINE): Remove, unused.
8949
f9af9719
SM
89502009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
8951
8952 * frame.c (x_get_resource_string): Remove unused.
8953
0307c7d2
JD
89542009-09-15 Jan Djärv <jan.h.d@swipnet.se>
8955
8956 * xterm.c (x_new_font): Call change_frame_size before calling
8957 x_set_window_size, in case frame size won't change.
8958
8959 * frame.c (x_set_font): Remove dead code.
8960
428b13d6
SM
89612009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
8962
8963 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
8964
5766c380
SM
89652009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8966
8967 * lread.c (Fload): Don't output a message after loading an obsolete
8968 package any more (done in Lisp now).
8969
2fd0161b
CY
89702009-09-12 Chong Yidong <cyd@stupidchicken.com>
8971
8972 * fns.c (syms_of_fns): Doc fix (Bug#4227).
8973
bc5e75b6
SM
89742009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8975
8976 * keymap.c (Fwhere_is_internal): Use nconc2.
8977
c31c985e
AM
89782009-09-11 Alan Mackenzie <acm@muc.de>
8979
8980 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
8981 batch mode.
8982
78012bd2
AS
89832009-09-11 Andreas Schwab <schwab@linux-m68k.org>
8984
8985 * xdisp.c (display_mode_element): Detect cycles.
8986
9d889332
SM
89872009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
8988
8989 * keymap.c (where_is_internal): Don't erroneously return nil right after
8990 filling the cache.
8991 (where_is_internal_1): Fix up typo.
8992
7ab5d780
GM
89932009-09-11 Glenn Morris <rgm@gnu.org>
8994
8995 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
8996 share a common doc-string.
8997
5238a749
SM
89982009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
8999
66d77eda
SM
9000 * keymap.c (get_keymap): Return the actual keymap symbol rather than
9001 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
9002
5238a749
SM
9003 * keymap.c (QCadvertised_binding): New constant.
9004 (syms_of_keymap): Initialize it.
9005 (Fwhere_is_internal): Try and use bindings from :advertised-binding
9006 if applicable.
9007
19f48442
SM
90082009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
9009
50d4ba39
SM
9010 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
9011 (parse_menu_item): Streamline since bindings are recomputed all the
9012 time anyway. Don't bother checking Vdefine_key_rebound_commands any
9013 more and don't support lmenu's menu-alias any more either.
9014
a88a5372
SM
9015 * keymap.c (where_is_internal_data): Make noindirect a boolean.
9016 (where_is_internal): Strip it down to only traverse the keymaps.
9017 Move the cache handling from Fwhere_is_internal to here.
9018 (Fwhere_is_internal): Move the handling of remapping and the choice of
9019 the best binding from where_is_internal to here.
9020 Unify the cached/noncached paths, so remapping is also handled
9021 correctly when the cache is used, and so the cache can be used to
9022 speed up remap-handling when applicable.
9023 Give preference to non-remapped bindings.
9024 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
9025 non-remapped bindings.
9026 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
9027 command remapping.
9028
19f48442
SM
9029 * xdisp.c (display_mode_element): Move list length limit from 50 to
9030 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
9031
599498c3 90322009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
9033
9034 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
9035
f9b7b5ac
SM
90362009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
9037
a53af587
JB
9038 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
9039 (Bug#4334)
9040
f9b7b5ac
SM
9041 * keymap.c (where_is_internal): Filter out shadowed remappings.
9042 Assume that where_is_internal returns unshadowed bindings to simplify
9043 the code and get rid of the gotos. Use ASIZE.
9044
04f4b72d
JD
90452009-09-04 Jan Djärv <jan.h.d@swipnet.se>
9046
4da146f2
JD
9047 * xterm.c (x_focus_changed): If we get a focusout and pointer
9048 is invisible, make it visible.
9049
04f4b72d
JD
9050 * xterm.h: Remove condition for declaration of
9051 x_*_window_to_frame.
9052
7cef7ce3
SM
90532009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
9054
9055 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
9056 initial terminal as well.
9057
a54fa5b7
JD
90582009-09-02 Jan Djärv <jan.h.d@swipnet.se>
9059
9060 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 9061 x_menubar_window_to_frame.
a54fa5b7 9062
50426a04 9063 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
9064 (XTmouse_position): Do not return valid positions
9065 for clicks in the menubar and the toolbar for Gtk+.
9066
9067 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
9068 if the widget for the event has the same top level as a frame,
9069 return the frame.
9070 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
9071 internal windows, bug #4122.
9072 (x_non_menubar_window_to_frame): Remove.
9073
5a021dd0
GM
90742009-09-02 Glenn Morris <rgm@gnu.org>
9075
9076 * buffer.c (default-major-mode): Move most of the doc from here...
9077 (major-mode): ... to here.
9078
548fe2f3
NR
90792009-08-30 Nick Roberts <nickrob@snap.net.nz>
9080
9081 * process.c (wait_reading_process_output): Keep the descriptor
9082 when pty is used by a non-child process, e.g., in I/O buffer of
9083 GDB this allows inferior to be restarted.
9084
e0840eef
EZ
90852009-08-29 Eli Zaretskii <eliz@gnu.org>
9086
9087 * xdisp.c (redisplay_internal): Remove redundant test and collapse
9088 both branches into one.
9089
82e98df4
SM
90902009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
9091
9092 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
9093 (main): Use enable-multibyte-characters rather than
9094 default-enable-multibyte-characters. Output a warning message when
9095 running a unibyte session.
9096
890617cb
YM
90972009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9098
9099 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
9100 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
9101 (copy_data_segment): Also copy __program_vars section.
9102 (copy_dyld_info) [LC_DYLD_INFO]: New function.
9103 (dump_it) [LC_DYLD_INFO]: Use it.
9104
9105 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
9106
e7adeadc
EZ
91072009-08-28 Eli Zaretskii <eliz@gnu.org>
9108
9109 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
9110 $(SRC)/buildobj.h.
9111 (buildobj.h): Renamed from $(SRC)/buildobj.h.
9112 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
9113 $(SRC)/buildobj.h.
9114 (clean): Add buildobj.h.
9115
3ed8bbdc
TZ
91162009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
9117
9118 * print.c (print_object): Set escapeflag to 1 when printing
9119 hashtable keys and values.
9120
155a6764
SM
91212009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
9122
9123 * lread.c (read_integer): Use doubles (and potentially return a float
9124 number) as we do in string-to-number.
9125 (read1): Use strtol to read integers, signal errors on strtol's
9126 overflow and use floats if strtol's output is too large for
9127 Elisp integers.
9128
877610de
EZ
91292009-08-27 Eli Zaretskii <eliz@gnu.org>
9130
9131 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
9132 (make-buildobj-SH): Fix last change.
9133 (SRC): Move to before where it's first used.
9134
ef73e7be
KH
91352009-08-27 Kenichi Handa <handa@m17n.org>
9136
550c8289
KH
9137 * process.c (send_process): Use encode_coding_object instead of
9138 encode_coding_string to perform eol-conversion even if the string
9139 is unibyte.
9140
60afa08d
KH
9141 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
9142 character.
9143
ef73e7be 9144 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 9145 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 9146
7b3a82d7
DN
91472009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
9148
5654bf63
DN
9149 * callproc.c (Fcall_process): Remove always true #if.
9150
7b3a82d7
DN
9151 * lisp.h: Replace #if 0 code for checking with text pointing to
9152 the --enable-checking configure flag.
9153
9154 * emacs.c (main): Mention the --enable-profiling configure flag
9155 instead of using CFLAGS.
9156
878bde49
KR
91572009-08-26 Ken Raeburn <raeburn@raeburn.org>
9158
9159 * Makefile.in (buildobj.h): New target.
9160 (doc.o): Depend on it.
9161 (temacs${EXEEXT}): Don't generate buildobj.lst.
9162 (mostlyclean): Delete buildobj.h, not buildobj.lst.
9163 * makefile.w32-in ($(SRC)/buildobj.h): New target.
9164 ($(BLD)/doc.$(O)): Depend on it.
9165 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
9166 provided by Eli Zaretskii.)
9167 ($(TEMACS)): Don't generate buildobj.lst.
9168 * doc.c: Include buildobj.h.
9169 (buildobj): New static variable.
9170 (Fsnarf_documentation): Use it, instead of opening and reading
9171 buildobj.lst.
9172
1574224c
MA
91732009-08-25 Michael Albinus <michael.albinus@gmx.de>
9174
9175 * dbusbind.c (Fdbus_call_method)
9176 (Fdbus_call_method_asynchronously): Use English numeric format for
9177 timeout values in doc string.
9178
d9da2f45
KH
91792009-08-25 Kenichi Handa <handa@m17n.org>
9180
ef73e7be
KH
9181 * alloc.c (mark_char_table): New function.
9182 (mark_object): Use mark_char_table for a char-table.
9183
d9da2f45
KH
9184 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
9185 (CHAR_TABLE_REF): Use it.
9186
c8edcc01
KR
91872009-08-23 Ken Raeburn <raeburn@raeburn.org>
9188
9189 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
9190 before invoking the newly build emacs to check for load-path
9191 shadowing.
9192
7763401b
GM
91932009-08-22 Glenn Morris <rgm@gnu.org>
9194
9195 * Makefile.in (bootstrap_exe): New variable.
9196 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
9197 Use ${bootstrap_exe}.
9198
729eadda
EZ
91992009-08-22 Eli Zaretskii <eliz@gnu.org>
9200
9201 * coding.h (encode_coding_string): Don't encode unibyte strings.
9202 (Bug#4047)
9203
eb4c6ace
MA
92042009-08-22 Michael Albinus <michael.albinus@gmx.de>
9205
9206 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
9207
9208 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
9209 intended as hotfix only.
9210 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
9211
36e34d1b
AR
92122009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9213
9214 * nsterm.m (ns_get_color): Update documentation properly for last
9215 change, and clean up loose ends in the code left by it. Fix
9216 longstanding bug with 16-bit hex parsing, and add support for
9217 yet another X11 format (rgb:r/g/b) for compatibility.
9218 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
9219 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
9220
f983eb8a
SM
92212009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
9222
9223 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
9224
3f56d3c6
MA
92252009-08-20 Michael Albinus <michael.albinus@gmx.de>
9226
9227 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
9228 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
9229 (xd_initialize, xd_pending_messages): Check, whether
9230 $DBUS_SESSION_BUS_ADDRESS is set.
9231
fb641d68
YM
92322009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9233
9234 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
9235
9236 * nsterm.m (ns_get_color): Remove incompatible color formats again.
9237
cf59a374
GM
92382009-08-20 Glenn Morris <rgm@gnu.org>
9239
9240 * emacs.c (system-type): Doc fix.
9241
1373f3be
SM
92422009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
9243
9244 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
9245 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
9246
058ed861
MA
92472009-08-18 Michael Albinus <michael.albinus@gmx.de>
9248
1373f3be
SM
9249 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
9250 New functions.
058ed861
MA
9251 (xd_initialize): Revert change from 2009-08-16.
9252
563a866e 92532009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
9254
9255 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 9256 font-group vector, return nil.
5fc05db0 9257
e42bdf01
CY
92582009-08-17 Chong Yidong <cyd@stupidchicken.com>
9259
9260 * process.c (status_notify): Don't perform redisplay.
9261 (Fdelete_process, list_processes_1, process_send_signal):
9262 Expliticly perform redisplay.
9263 (wait_reading_process_output): Always check process status, but
9264 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
9265
4230ab74
KR
92662009-08-17 Ken Raeburn <raeburn@raeburn.org>
9267
1373f3be 9268 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
9269 (XFLOAT_INIT): New macro for storing a float value.
9270 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
9271 * fns.c (sxhash): Copy out the value of a float in order to
9272 examine its bytes.
9273 * dbusbind.c (xd_append_arg): Likewise.
9274
4230ab74
KR
9275 * emacs.c (main): Don't call syms_of_data twice.
9276
a0645cdd
MA
92772009-08-16 Michael Albinus <michael.albinus@gmx.de>
9278
9279 * dbusbind.c (xd_initialize): Add connection file descriptor to
9280 input_wait_mask, in order to let select() detect, whether a new
9281 message has been arrived.
ca4f31ea 9282 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 9283
485db0ba
MA
92842009-08-15 Michael Albinus <michael.albinus@gmx.de>
9285
1373f3be
SM
9286 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
9287 New functions.
485db0ba
MA
9288
9289 * lisp.h (xd_pending_messages): Declare.
9290
9291 * keyboard.c (readable_events): Call xd_pending_messages.
9292
b5b98ff4
CY
92932009-08-15 Chong Yidong <cyd@stupidchicken.com>
9294
1373f3be 9295 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 9296
f8354c6e
CY
9297 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
9298
b5b98ff4
CY
9299 * buffer.c (set_buffer_internal_1)
9300 (swap_out_buffer_local_variables): Check for unbound local
9301 variables (Bug#4138).
9302
8b9fc636
EZ
93032009-08-14 Eli Zaretskii <eliz@gnu.org>
9304
9305 * process.c (create_pty): Fix last change.
9306
ce959360
CY
93072009-08-13 Chong Yidong <cyd@stupidchicken.com>
9308
9309 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
9310 (xbm_load_image): Caller changed.
64b807c9 9311 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 9312
c7baf7e9
NR
93132009-08-13 Nick Roberts <nickrob@snap.net.nz>
9314
9315 * process.c (create_pty): New function.
9316 (Fstart_process): Use it to allow Emacs to just associate a pty
9317 with the buffer. See associated change in gdb-mi.el.
9318 (list_processes_1): Deal with no program name.
9319 (start_process_unwind): Use pid == -2 to mean no process.
9320
1ac9108a
SM
93212009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
9322
9323 * cmds.c (nonundocount): New global variable.
9324 (keys_of_cmds): Initialize it.
9325 (Fself_insert_command): Use it to combine upto 20 sequential chars
9326 into a single undo entry, just like the Qself_insert_command code in
9327 keyboard.c does.
9328 Call frame_make_pointer_invisible, also like the Qself_insert_command
9329 code in keyboard.c does.
9330 * keyboard.c (command_loop_1): Use the new global nonundocount rather
9331 than its own local replacement for it.
9332
e267324c
KR
93332009-08-10 Ken Raeburn <raeburn@raeburn.org>
9334
1ac9108a 9335 * fns.c (concat): Don't re-set string length to its current value.
77437343 9336
1ac9108a
SM
9337 * coding.h (decode_coding_string, encode_coding_string):
9338 Use SBYTES macro.
f0bed503 9339
1ac9108a 9340 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
9341 (doprnt): Merge with doprnt1, discarding lispstrings code.
9342 * lisp.h (doprnt_lisp): Don't declare.
9343
416e006d
JL
93442009-08-07 Juri Linkov <juri@jurta.org>
9345
9346 * puresize.h (BASE_PURESIZE): Increase to 1270000.
9347
6f7d5780
DN
93482009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
9349
9350 * print.c (syms_of_print): Undo previous change.
9351
f19a0f5b
TZ
93522009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
9353
9354 * lread.c (read1, syms_of_lread): Read hashtables back from the
9355 readable format.
9356
9357 * print.c (print_preprocess, print_object): Print hashtables fully
9358 and readably.
9359 (syms_of_print): Provide 'hashtable-print-readable.
9360
b9173dc2
AR
93612009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9362
9363 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
9364 no family set.
9365 (nsfont_open): Handle case when entity has no family.
9366
1586503c
AR
93672009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9368
9369 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
9370 element, not a list, for match case.
9371
087048cd
KH
93722009-07-28 Kenichi Handa <handa@m17n.org>
9373
9374 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
9375 rigidly.
9376
9377 * xfont.c (xfont_list_pattern): Don't ignore the return value of
9378 font_parse_xlfd. Check font properties more rigidly.
9379
780c2506
DN
93802009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
9381
31fd7c5c
JB
9382 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
9383 bsd-common.h.
780c2506 9384
a8c0cc18
KH
93852009-07-27 Kenichi Handa <handa@m17n.org>
9386
9387 * xfaces.c (face_with_height): Call font_clear_prop.
9388
4fbe2306
CY
93892009-07-26 Chong Yidong <cyd@stupidchicken.com>
9390
111d9af3
CY
9391 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
9392
9393 * xterm.c (x_term_init): Use Qx.
9394
4fbe2306
CY
9395 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
9396
1ac9108a 9397 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
9398 (ns_get_color): Revert 2009-07-16 change.
9399
beb0b7f9
EZ
94002009-07-25 Eli Zaretskii <eliz@gnu.org>
9401
9402 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 9403 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 9404
2baf5e76
KR
94052009-07-25 Ken Raeburn <raeburn@raeburn.org>
9406
1ac9108a
SM
9407 * coding.h (decode_coding_string, encode_coding_string):
9408 Use SCHARS macro.
8890e5f5 9409
2baf5e76 9410 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 9411 (load_depth): Delete.
2baf5e76
KR
9412 (Qload_in_progress): New variable.
9413 (load_unwind): Don't reference load_depth or load_in_progress.
9414 (Fload): Likewise; specbind Qload_in_progress instead.
9415 (init_lread): Don't initialize load_depth.
9416 (syms_of_lread): Initialize and protect Qload_in_progress.
9417
1395c6f5
AR
94182009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9419
9420 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
9421
4e2f36cf
AR
94222009-07-23 Yavor Doganov <yavor@gnu.org>
9423
9424 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
9425
5dd9a6f7
AR
94262009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
9427
9428 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
9429 Bugs 3792, 3720, 2402.
9430 (ns_lookup_indexed_color): Check for bad index.
9431 (ns_index_color): Init unused slot to 0.
9432 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
9433 Bug 3714, possibly 3082.
5dd9a6f7 9434
c902b920
JR
94352009-07-22 Jason Rumney <jasonr@gnu.org>
9436
1ac9108a
SM
9437 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
9438 Position IME window at cursor (Bug#2570).
c902b920
JR
9439 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
9440 (globals_of_w32fns): Dynamically load functions required above.
9441
9442 * w32term.c (w32_draw_window_cursor): Send message to reposition
9443 any IME window.
9444
090101cf
CY
94452009-07-21 Chong Yidong <cyd@stupidchicken.com>
9446
9447 * fileio.c: Revert 2009-07-16 changes.
9448 (Vauto_save_include_big_deletions): New variable.
9449 (Fdo_auto_save): Disable auto-save only if
9450 auto-save-include-big-deletions is nil.
9451
e6583e3d
CY
94522009-07-21 Chong Yidong <cyd@stupidchicken.com>
9453
9454 * xdisp.c (move_it_to): For continued lines ending in a tab, take
9455 the overflowed pixels into account (Bug#3879).
9456
ece435a5
KR
94572009-07-21 Ken Raeburn <raeburn@raeburn.org>
9458
9459 * lread.c (load_depth): New variable.
9460 (Fload, load_unwind, init_lread): Set it to the load recursion
9461 depth; set load_in_progress as a simple boolean based on the
9462 current load_depth. (Bug#3892)
9463
40b2d973
AR
94642009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9465
9466 * nsfont.m (ns_has_attribute): Remove.
9467 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
9468
10be7e0d
JL
94692009-07-18 Juri Linkov <juri@jurta.org>
9470
9471 * process.c (Fset_process_query_on_exit_flag): Mention killing
9472 a buffer in docstring.
9473
fa055055
KH
94742009-07-17 Kenichi Handa <handa@m17n.org>
9475
9476 * casetab.c (shuffle): Fix the logic of setting up the cycle.
9477
042f7b69
YM
94782009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9479
9480 * nsfns.m (Fns_set_alpha): Remove function.
9481 (syms_of_nsfns): Don't defsubr it.
9482
9483 * nsterm.m (ns_get_color): Remove incompatible color formats.
9484 (ns_color_to_lisp): Generate #rrggbb color format string.
9485
4be941e3
RS
94862009-07-16 Richard Stallman <rms@gnu.org>
9487
9488 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
9489 (Fset_buffer_auto_saved): Handle save_length = -2.
9490
4e6b227d
CY
94912009-07-16 Chong Yidong <cyd@stupidchicken.com>
9492
9493 * xterm.c (Qx_gtk_map_stock): New var.
9494
9495 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
9496 of calling intern each time.
9497
a1856973
YM
94982009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9499
9500 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
9501 does tiling.
9502
9503 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
9504
497e54d8
KH
95052009-07-14 Kenichi Handa <handa@m17n.org>
9506
72d36834
KH
9507 * font.c (font_vconcat_entity_vectors): New function.
9508 (struct font_sort_data): New member font_driver_preference.
9509 (font_compare): Check font_driver_preference.
9510 (font_sort_entities): The format of the first argument changed.
9511 (font_delete_unmatched): Likewise.
9512 (font_list_entities): The return type changed.
9513 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
9514 (font_find_for_lface): Adjuste for the above changes.
9515 Don't suppress the checking of C even if the repertory supports it.
9516 (Flist_fonts): Adjust for the above changes.
72d36834 9517
1ac9108a
SM
9518 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
9519 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
9520 Reject a font who has adstyle property that is different from a
9521 langname derived from registry property.
1ac9108a 9522 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 9523
b6046155
EZ
95242009-07-13 Eli Zaretskii <eliz@gnu.org>
9525
9526 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
9527 local copy of dirfilename.
9528
fb6b6049
KH
95292009-07-13 Kenichi Handa <handa@m17n.org>
9530
e2402a5e
KH
9531 * chartab.c (sub_char_table_ref_and_range): Fix the range check
9532 against max_char.
9533
fb6b6049
KH
9534 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
9535 calling XSYMBOL (sym).
9536
65156807
EZ
95372009-07-11 Eli Zaretskii <eliz@gnu.org>
9538
1ac9108a
SM
9539 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
9540 New function.
9541 (directory_files_internal) [WINDOWSNT]:
9542 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
9543 the filesystem of the directory is fast or slow.
9544
9545 * w32.c (logon_network_drive): Don't assume PATH is an absolute
9546 file name.
9547 (is_slow_fs): New function.
9548 (stat): Use it to determine whether to issue more system calls to
9549 get accurate file attributes, when w32-get-true-file-attributes is
9550 `local'.
9551
e0ab5fcf
JD
95522009-07-10 Jan Djärv <jan.h.d@swipnet.se>
9553
9554 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 9555 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
9556 parameter font-parameter as default to the font dialog.
9557
784ceded
KH
95582009-07-10 Kenichi Handa <handa@m17n.org>
9559
9560 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
9561
fb8edc0b
EZ
95622009-07-09 Eli Zaretskii <eliz@gnu.org>
9563
1ac9108a 9564 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 9565
fb8edc0b
EZ
9566 * w32.c (stat): Treat UNC file names as residing on remote
9567 drives. (Bug#3542)
9568
635c75b1
KH
95692009-07-09 Kenichi Handa <handa@m17n.org>
9570
9571 * fontset.c (fontset_find_font): Fix previous change.
9572
c1d5ce94
MA
95732009-07-08 Michael Albinus <michael.albinus@gmx.de>
9574
9575 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
9576 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
9577 error flag.
9578
edb61b39
KH
95792009-07-08 Kenichi Handa <handa@m17n.org>
9580
374bf7e4
KH
9581 * fontset.c (fontset_find_font): Fix the logic of handling
9582 charset_matched.
9583 (font_for_char): Delete unused var.
9584 (generate_ascii_font_name): Delete it.
9585
edb61b39
KH
9586 * coding.h (JIS_TO_SJIS2): Fix the code range check.
9587
9588 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
9589 (encode_coding_sjis): Fix the code range check.
9590
0f3f018c
CY
95912009-07-07 Chong Yidong <cyd@stupidchicken.com>
9592
9593 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
9594 (Fexpand_file_name): Copy string data properly (Bug#3772).
9595
fcaf6f3a
JD
95962009-07-07 Jan Djärv <jan.h.d@swipnet.se>
9597
9598 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
9599 first MapNotify.
9600
6809ca75
KH
96012009-07-07 Kenichi Handa <handa@m17n.org>
9602
9603 * character.h (unibyte_has_multibyte_table): Delete extern.
9604 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
9605
9606 * charset.c (Fset_charset_priority): Update charset_unibyte.
9607 (syms_of_charset): Initialize charset_unibyte.
9608
9609 * character.c (unibyte_has_multibyte_table): Delete it.
9610 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
9611 charset_unibyte.
9612 (multibyte_char_to_unibyte_safe): Likewise.
9613 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
9614
1ac9108a 9615 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
9616 (x_produce_glyphs): Likewise.
9617
9618 * .gdbinit (xcharset): Fix the treating $arg0.
9619
ad9e2d54
EZ
96202009-07-04 Eli Zaretskii <eliz@gnu.org>
9621
9622 Emulation of `getloadavg' on MS-Windows.
50426a04 9623 * w32.c: Include float.h.
ad9e2d54
EZ
9624 (g_b_init_get_native_system_info, g_b_init_get_system_times)
9625 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
9626 (get_native_system_info, get_system_times): New functions.
9627 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
9628 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
9629 (globals_of_w32): Initialize g_b_init_get_native_system_info,
9630 g_b_init_get_system_times, and num_of_processors.
9631
0a3472c7
JR
96322009-07-03 Jason Rumney <jasonr@gnu.org>
9633
9634 * w32term.c (w32_initialize): Use standard types.
9635
80904120
EZ
96362009-07-03 Eli Zaretskii <eliz@gnu.org>
9637
9638 * dired.c (Ffile_attributes): Decode user and group names by the
9639 locale's encoding. (Bug#3443)
9640
6978862d
DN
96412009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
9642
f8d23104
DN
9643 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
9644 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
9645
9646 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
9647
9648 * term.c (init_tty): Remove spurious #ifdef.
9649
6978862d
DN
9650 * m/mips.h: Mention this file is also used for netbsd.
9651 * m/pmax.h: Remove file.
9652
e044e4fc
JD
96532009-07-03 Jan Djärv <jan.h.d@swipnet.se>
9654
9655 * xterm.h (struct x_display_info): Add invisible_cursor.
9656 (struct x_output): Add current_cursor.
9657
9658 * xterm.c (XTtoggle_invisible_pointer): New function.
9659 (x_define_frame_cursor): Don't define cursor if invisible or the
9660 same as before. Set current_cursor.
9661 (x_create_terminal): Set toggle_invisible_pointer_hook.
9662
9663 * xfns.c (make_invisible_cursor): New function.
9664 (x_set_mouse_color): Call make_invisible_cursor.
9665 Set current_cursor.
9666 (x_window): Set current_cursor.
9667
9668 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
9669
9670 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
9671 inserting a character.
9672 (read_avail_input): Call frame_make_pointer_visible.
9673
9674 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
9675 (frame_make_pointer_invisible, frame_make_pointer_visible):
9676 New functions.
e044e4fc
JD
9677 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
9678
9679 * frame.h: Declare frame_make_pointer_invisible and
9680 frame_make_pointer_visible.
9681 (struct frame): Add pointer_invisible.
9682
574c8efa
JD
96832009-07-02 Jan Djärv <jan.h.d@swipnet.se>
9684
7b507248
JD
9685 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
9686 frame isn't visible.
9687 (xg_frame_resized): If width/height is -1, get size of window
9688 from X server.
9689
9690 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
9691 for MapNotify.
9692
835bdaa7 9693 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 9694 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 9695 (flush_and_sync): Reintroduce.
574c8efa 9696
3f1c6666 96972009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 9698
31fd7c5c 9699 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
9700
9701 * xterm.c (x_handle_net_wm_state): Also look for sticky.
9702 (x_term_init): Initialize Xatom_net_wm_state_sticky.
9703
9704 * frame.h: Declare Qsticky.
9705
cad9ef74
JD
9706 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
9707
9708 * nsfns.m (ns_frame_parm_handlers): Ditto.
9709
9710 * frame.c: Declare Qsticky.
9711 (frame_parms): Add sticky.
9712
9713 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
9714
9715 * xterm.h: Declare x_set_sticky.
9716
9717 * xterm.c (x_set_sticky): New function.
9718
69b16610
JD
9719 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
9720 (xg_tool_bar_menu_proxy): Attach enter/leave events to
9721 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
9722
9723 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
9724
9725 * frame.c: Qmaximized is new.
9726 (x_set_frame_parameters): Do not handle fullscreen specially.
9727 Only set width and height if explicitly set.
9728 (x_set_fullscreen): Handle Qmaximized.
9729 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
9730 (syms_of_frame): Initialize Qmaximized.
9731
1ac9108a
SM
9732 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
9733 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
9734
9735 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
9736 for Expose event. Add call to x_check_fullscreen for MapNotify event.
9737 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
9738 set gravity to NorthWestGravity when USE_GTK.
9739 (set_wm_state): New function.
31fd7c5c 9740 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
9741 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
9742 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 9743 or the case when no window manager is running. That means remove calls
3f1c6666
JD
9744 to x_real_positions and x_fullscreen_adjust.
9745
9746 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
9747 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
9748 flush_and_sync.
9749 (xg_height_changed): New function.
9750 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
9751 and gtk_window_set_policy. Set frame gravity after parsing the
9752 geometry string.
3f1c6666
JD
9753 (xg_update_frame_menubar, free_frame_menubar)
9754 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
9755 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
9756 Remove calls to xg_frame_set_char_size.
9757
fd503d99
KH
97582009-07-01 Kenichi Handa <handa@m17n.org>
9759
9760 * keyboard.c (decode_keyboard_code): New function.
9761 (tty_read_avail_input): Decode the input bytes if necessary.
9762
1ac9108a
SM
9763 * coding.c (setup_coding_system):
9764 Initialize coding->carryover_bytes to 0.
fd503d99
KH
9765 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
9766 use Qno_conversion.
9767
24ed93fb
YM
97682009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9769
9770 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
9771
99061dfc
CY
97722009-06-30 Chong Yidong <cyd@stupidchicken.com>
9773
1ac9108a 9774 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 9775
ff90fbde
JR
97762009-06-30 Jason Rumney <jasonr@gnu.org>
9777
9778 * w32term.c (w32_initialize): Use GetModuleHandle for library that
9779 is already loaded.
9780 Set user model ID if supported (bug#1849).
9781
5f445726
JM
97822009-06-29 Jim Meyering <meyering@redhat.com>
9783
9784 Remove useless if-before-xfree test.
9785 * nsfont.m (nsfont_close): Remove useless test.
9786 * term.c (delete_tty): Likewise.
9787 * w32.c (system_process_attributes): Likewise.
9788 * w32font.c (w32font_close): Likewise.
9789 * xfaces.c (x_free_gc): Likewise.
9790 * xselect.c (buffer): Likewise.
9791
b9607587
AS
97922009-06-28 Andreas Schwab <schwab@linux-m68k.org>
9793
9794 * process.c (send_process): Keep decoded string in a local
9795 variable and protect it from GC. (Bug#3521)
9796
89ba96f4
EZ
97972009-06-28 Eli Zaretskii <eliz@gnu.org>
9798
9799 * term.c (create_tty_output) [MSDOS]: #ifdef away.
9800 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
9801
098a1589
CY
98022009-06-28 Chong Yidong <cyd@stupidchicken.com>
9803
485422be
CY
9804 * xdisp.c (start_display, handle_face_prop)
9805 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
9806 (redisplay_window, try_window_id, produce_image_glyph):
9807 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 9808
098a1589
CY
9809 * xterm.c (x_update_window_begin, x_new_focus_frame)
9810 (x_scroll_bar_handle_click, handle_one_xevent)
9811 (handle_one_xevent, XTread_socket, x_focus_on_frame)
9812 (x_make_frame_visible, x_make_frame_invisible)
9813 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
9814 code chunks that are now obsolete.
9815
78c38319
MA
98162009-06-28 Michael Albinus <michael.albinus@gmx.de>
9817
9818 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
9819 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
9820 for hours, when optimzation is enabled.
9821 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
9822 (xd_read_message): Make them static.
9823
4189ed40
CY
98242009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
9825
9826 * term.c (turn_on_face): Allow simultaneously bold and dim
9827 terminal faces (Bug#3530).
9828
cd9b5e16
CY
98292009-06-27 Chong Yidong <cyd@stupidchicken.com>
9830
4e23bedb
CY
9831 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
9832
cd9b5e16
CY
9833 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
9834 truncation glyphs (Bug#3686).
9835
07cc3c35
GM
98362009-06-27 Glenn Morris <rgm@gnu.org>
9837
9838 * m/pmax.h: Restore file, with only netbsd portions.
9839
31fd7c5c 98402009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 9841
cd9b5e16 9842 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 9843
42d4a64f
KH
98442009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
9845
9846 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
9847 the arg FORCE_SYMBOL.
9848
930fe55b 98492009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
9850
9851 * fontset.c (fontset_find_font): When a usable rfont_def is found
9852 in a fallback font-group, make it the first element of the group.
9853
57ebc3fd
CY
98542009-06-24 Chong Yidong <cyd@stupidchicken.com>
9855
9856 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
9857
f084f942
KH
98582009-06-24 Kenichi Handa <handa@m17n.org>
9859
9860 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
9861 set for C.
9862 (fontset_font): Record the availability of a font for C both in
9863 the realized fontsets of the current one and the default one.
9864
2f686c87
DN
98652009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
9866
9867 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
9868 conditional, it is always defined on AIX.
9869
666e158e
MB
98702009-06-23 Miles Bader <miles@gnu.org>
9871
9872 * window.c (Vrecenter_redisplay): New variable.
9873 (syms_of_window): Initialize it.
9874 (Qtty): New extern declaration.
9875 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
9876
c6da7cd2
JM
98772009-06-23 Jim Meyering <meyering@redhat.com>
9878
1ac9108a
SM
9879 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
9880 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 9881 pointer dereferences are guaranteed to be valid.
c6da7cd2 9882
678dca3d
KH
98832009-06-23 Kenichi Handa <handa@m17n.org>
9884
74d75424
KH
9885 * emacs.c (main): Call init_font ().
9886
9887 * font.h (Vfont_log): Extern it.
9888 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
9889
9890 * font.c (font_sort_entities, font_list_entities)
9891 (font_matching_entity, font_open_entity)
9892 (font_close_object): Change font_add_log to FONT_ADD_LOG.
9893 (Vfont_log): Delete static.
9894 (font_log_env_checked): Delete this variable.
9895 (font_add_log): Don't check font_log_env_checked.
9896 (font_deferred_log): Check Vfont_log.
9897 (init_font): New function.
9898
678dca3d
KH
9899 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
9900
9901 * w32font.c: Change font_add_log to FONT_ADD_LOG.
9902
9903 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
9904
9905 * xfont.c: Change font_add_log to FONT_ADD_LOG.
9906
9907 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
9908 (face_for_char): Don't call font_deferred_log here.
9909 (font_for_char): Likewise.
9910
8a668709
CY
99112009-06-22 Chong Yidong <cyd@stupidchicken.com>
9912
9a01ee33
CY
9913 * w32term.c (x_draw_glyph_string): Use the glyph string's width
9914 rather than its background_width for drawing the overline and
9915 underline (Bug#489).
9916
9917 * xterm.c (x_draw_glyph_string): Use the glyph string's width
9918 rather than its background_width for drawing the overline and
9919 underline (Bug#489).
ec7c9926
CY
9920 (xg_default_icon_file): New variable.
9921 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
9922 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 9923
8a668709
CY
9924 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
9925 (load_overlay_strings): Remove externs.
9926 (fast_find_position): Function deleted.
9927 (mouse_face_from_buffer_pos): New function, based on
9928 fast_find_position. Correctly handle before-strings,
9929 display-strings, and after-strings (Bug#1220).
9930 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
9931
4d4c02d8
CY
99322009-06-21 Chong Yidong <cyd@stupidchicken.com>
9933
1ac9108a 9934 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
9935 (move_it_in_display_line_to, move_it_in_display_line_to)
9936 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
9937
70243478
CY
99382009-06-21 Chong Yidong <cyd@stupidchicken.com>
9939
9940 * Branch for 23.1.
9941
13087e59
JR
99422009-06-21 Jason Rumney <jasonr@gnu.org>
9943
9944 * w32term.c (keyboard_codepage): New static variable.
9945 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
9946 (w32_read_socket) [WM_CHAR]: Use it to decode character
9947 input (bug#3237).
9948 (w32_initialize): Initialize it.
9949 (codepage_for_locale): New function.
9950
4735b74e
KR
99512009-06-20 Ken Raeburn <raeburn@raeburn.org>
9952
9953 * process.c (status_message): Pass Faset index argument as a lisp
9954 object, so as to work with USE_LISP_UNION_TYPE.
9955
0e727afa
YM
99562009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9957
9958 * coding.c (Ffind_coding_systems_region_internal):
9959 Cache checked characters.
9960
cf299835
KH
99612009-06-18 Kenichi Handa <handa@m17n.org>
9962
1ac9108a 9963 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 9964
90f20d94
AS
99652009-06-18 Andreas Schwab <aschwab@redhat.com>
9966
9967 * xdisp.c (redisplay_internal): Check that the frame is still
9968 live after redisplay of its windows.
9969 (redisplay_windows): Check that the window is still live.
9970
7f1faf1c
KH
99712009-06-17 Andreas Schwab <schwab@linux-m68k.org>
9972
9973 * coding.c (detect_coding_utf_16): Fix previous change.
9974
cc13543e
KH
99752009-06-16 Kenichi Handa <handa@m17n.org>
9976
9977 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
9978 UTF-16 by checking the dispersion of Eth and Oth bytes.
9979
977b85f4
AS
99802009-06-15 Andreas Schwab <schwab@linux-m68k.org>
9981
9982 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
9983
66bd43d1
KH
99842009-06-15 Kenichi Handa <handa@m17n.org>
9985
9986 * process.c (status_message): Fix previous change. Be sure to
9987 decode a localized string.
9988
cb5ca9c5
YM
99892009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9990
9991 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
9992 add comment explaining why.
9993
ec7709ba 99942009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 9995
ec7709ba 9996 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 9997
4b7f335c
AR
99982009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
9999
10000 * nsfont.m (ns_attribute_value): Remove.
10001 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
10002 (ns_has_attribute): Shrink the normal range.
10003 (ns_findfonts): Don't worry about requested spec in determining
10004 need for synthItal.
e41820ee 10005 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 10006
73b26103
SZ
100072009-06-14 Seiji Zenitani <zenitani@mac.com>
10008
10009 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
10010
5753e4da
KH
100112009-06-11 Kenichi Handa <handa@m17n.org>
10012
10013 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
10014 overhang for the static composition case.
10015
3561b671
KH
100162009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10017
5753e4da
KH
10018 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
10019 overhang for the automatic composition case.
10020
3561b671
KH
10021 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
10022 composition case.
10023
852bbd41
CY
100242009-06-10 Chong Yidong <cyd@stupidchicken.com>
10025
10026 * xdisp.c (get_next_display_element): When handling wrap-prefix
10027 and line-prefix, treat \n as a control character (bug#3502).
10028
9903d1e6
KH
100292009-06-10 Kenichi Handa <handa@m17n.org>
10030
10031 * font.c (font_parse_family_registry): Fix for one-char foundry.
10032 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
10033
0bcbaaaa
CY
100342009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
10035
10036 * process.c (status_message): Fix handling of multibyte signal
10037 string (Bug#3499).
10038
40aa3f13
JM
100392009-06-09 Jim Meyering <meyering@redhat.com>
10040
1f80c7e2
CY
10041 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
10042 color name is missing.
40aa3f13 10043
72d51285
KH
100442009-06-09 Kenichi Handa <handa@m17n.org>
10045
10046 * charset.c (Fmap_charset_chars): In docstring, state clearly that
10047 FROM-CODE and TO-CODE are codepoints of CHARSET.
10048
c1d04d84
AR
100492009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
10050
10051 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
10052
100532009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
10054
10055 Changes to support :script/:lang/:otf in NS font driver.
10056 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
10057 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
10058 indicate not part of font driver interface, and change callers.
10059 (ns_get_family): Remove pointless null check.
10060 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
10061 ns_spec_to_descriptor, ns_descriptor_to_entity.
10062 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
10063 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
10064 (ns_spec_to_descriptor, ns_descriptor_to_entity)
10065 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
10066 (ns_get_req_script, ns_accumulate_script_ranges)
10067 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
10068 New functions.
10069 (nsfont_list, nsfont_match): Use ns_findfonts.
10070 (nsfont_open): Use font descriptor instead of traits.
10071 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
10072 (dump_glyphstring): Rename to ns_dump_glyphstring.
10073
c7eb9816
AR
10074 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
10075
c1d04d84
AR
10076 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
10077
10078 * fontset.c (fontset_from_font): Remove NS-specific code.
10079
ec7709ba 100802009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
10081
10082 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
10083 nonactive windows.
10084
31fd7c5c 100852009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 10086
1ac9108a 10087 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 10088
68852c13 100892009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
10090
10091 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
10092
6756cd1d
CY
100932009-06-07 Chong Yidong <cyd@stupidchicken.com>
10094
10095 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
10096 account for the overflowing of newlines into the last glyph on the
10097 display line (Bug#3482).
10098
28bf482a
DR
100992009-06-05 David Reitter <david.reitter@gmail.com>
10100
ec7709ba
JB
10101 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
10102 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
10103 Fns_selection_exists_p, Fns_selection_owner_p.
10104
fdb55376
JR
101052009-06-03 Jason Rumney <jasonr@gnu.org>
10106
10107 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
10108 available. (Bug#3379)
10109
05129fbe
KH
101102009-05-29 Kenichi Handa <handa@m17n.org>
10111
1ac9108a
SM
10112 * coding.c (get_translation_table):
10113 Check Venable_character_translation.
05129fbe 10114
ec7709ba 101152009-05-26 David Reitter <david.reitter@gmail.com>
15891144 10116
ec7709ba
JB
10117 * nsterm.m (ns_raise_frame): Only raise frame if visible.
10118 (x_make_frame_visible): Move frame to front rather than calling
15891144 10119 ns_raise_frame().
ec7709ba 10120 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 10121 isn't key window.
ec7709ba 10122 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
10123 drawRect may be called by NSView even if the frame is hidden.
10124
ec7709ba
JB
10125 * nsfns.m (Fx_create_frame): Follow other ports in
10126 determining visibility; default to t. Ensure async_visible is set.
15891144 10127
21f73755
EZ
101282009-05-23 Eli Zaretskii <eliz@gnu.org>
10129
10130 * dired.c (Ffile_attributes): Doc fix.
10131
34001e41
CY
101322009-05-22 Chong Yidong <cyd@stupidchicken.com>
10133
10134 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
10135
46306a17
SM
101362009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
10137
10138 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
10139 and xfont_scratch_props.
10140 (syms_of_xfont): Do it here instead.
10141 (xfont_find_ccl_program): Delete, unused.
10142 (xfont_open): Delete unused var `i'.
10143
ef6e0694
KH
101442009-05-21 Kenichi Handa <handa@m17n.org>
10145
10146 * fontset.c (Qlatin): Don't make it static.
10147
46306a17
SM
10148 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
10149 New functions.
ef6e0694
KH
10150 (xfont_scripts_cache, xfont_scratch_props): New variables.
10151 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
10152 (xfont_list_pattern): Argument changed. Callers changed.
10153 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
10154 (xfont_list): Don't reject a font spec with :script property.
10155 (xfont_has_char): Fix setting of encoding.
10156 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
10157 xfont_scratch_props.
10158
101592009-05-19 Kenichi Handa <handa@m17n.org>
10160
46306a17 10161 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
10162 Callers changed.
10163
101642009-05-18 Kenichi Handa <handa@m17n.org>
10165
10166 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
10167
ac71ced7
SM
101682009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
10169
10170 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
10171 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
10172
1c6d1051
YM
101732009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10174
10175 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
10176 (x_delete_terminal): Dissociate resource database from display and
10177 then call XrmDestroyDatabase before closing display.
10178
9b9b779c
AR
101792009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
10180
10181 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
10182 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
10183 whether selected frame is viable before raising it (based on patch
10184 by David Reitter), and improve commentary.
10185 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 10186
cccd42d5
KH
101872009-05-15 Kenichi Handa <handa@m17n.org>
10188
10189 * font.c (Ffont_spec): Check arguments.
10190
337fbd17
CY
101912009-05-14 Chong Yidong <cyd@stupidchicken.com>
10192
10193 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
10194 weight when testing attributes (Bug#3282).
10195
47a6002f
JD
101962009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10197
10198 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
10199 what we expect to get in the next ConfigureNotify event.
10200
9cb363db
YM
10201 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
10202 before Xft one (Bug#1696).
10203
b9126609
CY
102042009-05-07 David Reitter <david.reitter@gmail.com>
10205
10206 * nsfns.m (Fx_display_planes): Compute bitplanes using
10207 NSBitsPerPixelFromDepth (Bug#3207).
10208
27a69fd9
CY
102092009-05-10 Chong Yidong <cyd@stupidchicken.com>
10210
10211 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
10212
00f37552
TTN
102132009-05-10 Ulrich Mueller <ulm@gentoo.org>
10214
10215 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
10216
2d82a920
DR
102172009-05-07 David Reitter <david.reitter@gmail.com>
10218
ec7709ba
JB
10219 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
10220 Respect mouse face background.
2d82a920 10221
46b0d52d
DR
102222009-05-07 David Reitter <david.reitter@gmail.com>
10223
ec7709ba
JB
10224 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
10225 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
10226 in ns_update_begin and ns_update_end.
10227
ce1b23bb
SM
102282009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
10229
5996e1b7
SM
10230 * nsfns.m (ns_get_screen): Rewrite.
10231 Don't presume selected-frame is of type `ns'.
10232
ba98e3a0
SM
10233 * font.c (font_update_drivers): Sanity fallback to avoid disabling
10234 all drivers.
10235
ce1b23bb
SM
10236 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
10237
bcda200f
YM
102382009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10239
10240 * keyboard.h (add_user_signal): Fix typo in extern.
10241
10242 * lisp.h (add_user_signal): Remove extern.
10243
10244 * unexelf.c (unexec): Consider a section to precede the .bss section
10245 if its addresses overlap that of .bss.
10246 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
10247 instead of dumping process.
10248
864660a2
SM
102492009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
10250
10251 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
10252
50da4e56
SM
102532009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
10254
10255 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
10256
51520a1a
DN
102572009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
10258
10259 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
10260 any statements.
10261
409ea3a1
AS
102622009-05-02 Andreas Schwab <schwab@linux-m68k.org>
10263
59c4c60f
AS
10264 * process.c (read_process_output): Make sure the current buffer is
10265 always restored.
10266
409ea3a1
AS
10267 * coding.c (record_conversion_result): Don't modify
10268 Vlast_code_conversion_error for successful result.
10269 (alloc_destination): Don't clobber conversion result. (Bug#1650)
10270
56f00ed2
KH
102712009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10272
10273 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 10274 (load_charset_map): Remove unnecessary code.
56f00ed2 10275
4491c9d2
DR
102762009-04-30 David Reitter <david.reitter@gmail.com>
10277
35f5b128 10278 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
10279 through f24.
10280
6970f632
CY
102812009-04-30 Chong Yidong <cyd@stupidchicken.com>
10282
10283 * xfaces.c (face_at_buffer_position): New arg base_face_id.
10284
10285 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
10286 face_at_buffer_position.
10287 (face_before_or_after_it_pos, get_next_display_element)
10288 (note_mouse_highlight): Update face_at_buffer_position call.
10289
10290 * term.c (term_mouse_highlight):
10291 * msdos.c (IT_note_mouse_highlight):
10292 * fontset.c (Finternal_char_font):
35f5b128 10293 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
10294
10295 * dispextern.h (face_at_buffer_position): Update prototype.
10296
0c616f63
KH
102972009-04-30 Kenichi Handa <handa@m17n.org>
10298
35f5b128 10299 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 10300
ad3aaf33
AS
103012009-04-29 Andreas Schwab <schwab@linux-m68k.org>
10302
10303 * callproc.c (Fcall_process): Fix GC protection. Make sure
10304 current buffer is always restored.
10305
c3c963a0
YM
103062009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10307
10308 * atimer.c (init_atimer): Also clear stopped_atimers.
10309
10310 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
10311
7e3386cb
YM
10312 * process.c (create_process): Clean up merger residues of
10313 2008-07-17 change.
10314
91f68422
CY
103152009-04-29 Ulrich Mueller <ulm@gentoo.org>
10316
10317 * lread.c (Vread_circle): New variable.
10318 (read1): Disable recursive read if Vread_circle is nil.
10319
24b34550
KH
103202009-04-29 Kenichi Handa <handa@m17n.org>
10321
10322 * fontset.h (set_default_ascii_font): Delete extern.
10323
10324 * fontset.c (set_default_ascii_font): Delete this unused function.
10325
10326 * frame.c (x_set_font): When ARG is a font-object, check if the
10327 font-object matches with the ASCII font-spec of the frame's
9c358bda 10328 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 10329
77bf07e1
AS
103302009-04-28 Andreas Schwab <schwab@linux-m68k.org>
10331
10332 * fns.c (Flocale_info): Protect vector from GC during decoding.
10333
10334 * process.c (Fstart_process): Protect argv strings from GC during
10335 encoding.
10336
2c55aacf
AS
103372009-04-27 Andreas Schwab <schwab@linux-m68k.org>
10338
10339 * sysdep.c: Include <ctype.h>.
10340
b892d3c9
DR
103412009-04-27 David Reitter <david.reitter@gmail.com>
10342
35f5b128 10343 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
10344 Remove commented-out code.
10345
9d0644c4
JB
103462009-04-26 Johan Bockgård <bojohan@gnu.org>
10347
10348 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
10349
b7053016
JR
103502009-04-25 Jason Rumney <jasonr@gnu.org>
10351
10352 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
10353
4e8231f3
YM
103542009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10355
10356 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
10357 Swap bytes in short integer if fringe bitmap width > 8.
10358
493dcf2c
KH
103592009-04-23 Kenichi Handa <handa@m17n.org>
10360
10361 * xfaces.c (Fx_list_fonts): If a font size is specified in
10362 PATTERN, set it in returned scalable fonts.
10363
401e9e57
CY
103642009-04-22 Chong Yidong <cyd@stupidchicken.com>
10365
708e05dc
CY
10366 * keyboard.c (Fset_input_meta_mode): Doc fix.
10367
10368 * dispnew.c (Fsend_string_to_terminal): Doc fix.
10369
1ac9108a 10370 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
10371
10372 * coding.c (Fterminal_coding_system): Doc fix.
10373
10374 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
10375 (Fx_display_pixel_height, Fx_display_planes)
10376 (Fx_display_color_cells, Fx_server_max_request_size)
10377 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
10378 (Fx_display_mm_height, Fx_display_mm_width)
10379 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
10380 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
10381 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
10382 (check_x_display_info): Handle terminal objects instead of
10383 terminal ids.
10384
401e9e57
CY
10385 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
10386 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
10387 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
10388 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 10389
df80c7f0
KH
103902009-04-21 Kenichi Handa <handa@m17n.org>
10391
5a8f12af 10392 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 10393 (font_score): Check AVGWIDTH too.
908567ef 10394
df80c7f0
KH
10395 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
10396 worst case.
1ac9108a
SM
10397 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
10398 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 10399
705af33f
JR
104002009-04-19 Jason Rumney <jasonr@gnu.org>
10401
10402 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 10403 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
10404
10405 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
10406 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
10407 get_phys_cursor_geometry.
10408
b71ac3dd 10409 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
10410 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
10411 using get_phys_cursor_geometry.
10412
10413 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
10414 correctly calculated.
10415
dc2933eb
JD
104162009-04-19 Jan Djärv <jan.h.d@swipnet.se>
10417
1ac9108a
SM
10418 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
10419 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
10420 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
10421 is deprecated.
10422
973e7849
AS
104232009-04-18 Andreas Schwab <schwab@linux-m68k.org>
10424
10425 * font.c (font_put_frame_data): Use xfree instead of free.
10426
314d66f4
JB
104272009-04-17 Juanma Barranquero <lekktu@gmail.com>
10428
10429 * w32font.c (Qja, Qko): Remove declarations.
10430 (syms_of_w32font): Don't DEFSYM them.
10431
cf702558
CY
104322009-04-17 Chong Yidong <cyd@stupidchicken.com>
10433
10434 * font.c (Qja, Qko): Move definitions here from ftfont.c.
10435
10436 * font.h (Qja, Qko): Extern them.
10437
10438 * ftfont.c (Qja, Qko): Remove declarations.
10439
10440 * xfont.c (Qja, Qko): Remove declarations.
10441
b50504f5
KH
104422009-04-17 Kenichi Handa <handa@m17n.org>
10443
bde25748
KH
10444 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
10445 string from a vector to handle Latin-1 characters correctly.
10446
b50504f5
KH
10447 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
10448 entity even if the cache hits.
10449
f4646fff
AS
104502009-04-16 Andreas Schwab <schwab@linux-m68k.org>
10451
10452 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 10453 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 10454
e7deaab0
AS
10455 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
10456 * lisp.h: Adjust prototypes.
10457
0a0e7d49
CY
104582009-04-16 Chong Yidong <cyd@stupidchicken.com>
10459
10460 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
10461 change (Bug#3003).
10462
3c908a57
KH
104632009-04-16 Kenichi Handa <handa@m17n.org>
10464
1ac9108a 10465 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
10466
10467 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
10468 adstyle.
10469
10470 * ftfont.c (Qja, Qko): Don't make them static.
10471 (enum ftfont_cache_for): New enum.
10472 (fc_charset_table): Undo the previous change.
10473 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
10474 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
10475 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
10476 non-scarable font, try to get AVERAGE_WIDTH.
10477 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
10478 Change ft_face_cache from a list of a hash-table. Don't check
10479 `ja' and `ko' adstyle here.
10480 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
10481 FTFONT_CACHE_FOR_CHARET.
10482 (ftfont_get_charset): Undo the previous change.
1ac9108a 10483 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
10484 (ftfont_close): Likewise.
10485 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
10486
10487 * font.c (font_sort_entites): Change the meaning of the arg
10488 BEST-ONLY. Don't optimize for VEC of lenght 1.
10489 (font_select_entity): Just return the value of font_sort_entites.
10490
10491 * xfaces.c (merge_face_vectors): Reflect font properties in
10492 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
10493 font_clear_prop if a face attribute doesn't change.
10494
3c908a57
KH
10495 * charset.h (charset_ksc5601): Extern it.
10496
10497 * charset.c (charset_ksc5601): New variable.
10498 (Fdefine_charset_internal): Set charset_ksc5601.
10499 (init_charset_once): Initialize charset_ksc5601 to -1.
10500
d65859c3
DN
105012009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
10502
10503 * fileio.c (history_delete_duplicates): Remove unused declaration.
10504
10505 * callint.c (history_delete_duplicates): New declaration.
10506 (Fcall_interactively): Remove command history duplicates when
10507 history_delete_duplicates is true.
10508
3ba010e5
EZ
105092009-04-14 Eli Zaretskii <eliz@gnu.org>
10510
10511 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
10512
06f19b91
KH
105132009-04-14 Kenichi Handa <handa@m17n.org>
10514
10515 * font.c (Ffont_info): Fix docstring. Fix the second element of
10516 the returned value (bug#2949).
10517
2cce8bfc
CY
105182009-04-14 Chong Yidong <cyd@stupidchicken.com>
10519
10520 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
10521
d156542d
KH
105222009-04-14 Kenichi Handa <handa@m17n.org>
10523
10524 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
10525 encoding charset is ascii_compatible.
10526
10527 * charset.c (Fdefine_charset_internal): Make charset
10528 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
10529 code_offset is 0, and covers all ASCII characters.
10530
86fa089e
SM
105312009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
10532
10533 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
10534 (ns_string_to_pasteboard_internal):
10535 * nsmenu.m (process_dialog):
10536 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
10537 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
10538 * lisp.h (Fx_load_color_file): Declare.
10539
a8a3728b
KH
105402009-04-13 Kenichi Handa <handa@m17n.org>
10541
1ac9108a 10542 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
10543 (font_select_entity): Suppress the code to optimize for the same
10544 kind of fonts.
10545 (font_load_for_lface): Get a font that supports at least ASCII
10546 characters.
10547
10548 * ftfont.c (Qja, Qko): New variables.
10549 (fc_charset_table): Delete uniquifier data for iso8859-1.
10550 (ftfont_get_latin1_charset): New function.
10551 (get_adstyle_property): New function.
10552 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
10553 bitmap fonts.
10554 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
10555 Delete iso-8859-1 range from the charset of fonts whose adstyle is
10556 `ko' or `ja'.
10557 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 10558 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
10559 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
10560 property.
10561 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
10562 (syms_of_ftfont): DEFSYM Qja and Qko.
10563
483670b5
KH
105642009-04-09 Kenichi Handa <handa@m17n.org>
10565
12b55765
KH
10566 * charset.c (map_charset_chars): For a charset of `superset'
10567 method, fix calculation of code range.
10568
483670b5
KH
10569 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
10570 from the list of extra properties.
10571 (font_clear_prop): Be sure to delete `:name' font property.
10572
57d3b93b
KH
105732009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10574
b4b2c2ca
YM
10575 * dispnew.c (redraw_overlapping_rows): Fix detection of
10576 overlapping for topmost and bottommost rows.
10577
1ac9108a 10578 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 10579
472c3609
JR
105802009-04-06 Jason Rumney <jasonr@gnu.org>
10581
10582 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
10583
ab193662
KH
105842009-04-06 Kenichi Handa <handa@m17n.org>
10585
10586 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
10587
10588 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
10589
0c26f026
KH
105902009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10591
10592 * ftfont.c (ftfont_open): Fix checking of the return value of
10593 FT_Load_Char. Fix setting font->underline_thickness.
10594
e173bbce
CY
105952009-04-04 Chong Yidong <cyd@stupidchicken.com>
10596
10597 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
10598 (Fterminal_parameters, Fterminal_parameter)
10599 (Fset_terminal_parameter): In doc string, refer to terminal
10600 objects rather than terminal ids.
10601
693a2698
EZ
106022009-04-04 Eli Zaretskii <eliz@gnu.org>
10603
10604 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
10605 ret_lim_data. (Bug#2867)
10606
d5221487
CY
106072009-04-03 Chong Yidong <cyd@stupidchicken.com>
10608
10609 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
10610 so they don't get wider than the window, matching 2006-01-23
10611 change to the partner function in xdisp.c (Bug#2800).
10612
223509a3
KH
106132009-04-03 Kenichi Handa <handa@m17n.org>
10614
10615 * print.c (print_object): Make each lowest sub_char_table start a
10616 new line (Bug#2866).
10617
74fcd0b1
KH
106182009-04-02 Kenichi Handa <handa@m17n.org>
10619
10620 * fontset.c (fontset_font): Record no-font when a fontset
10621 explicitly tells not to try another font-specs.
10622
c542407d
SM
106232009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
10624
10625 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
10626
e3869731
KH
106272009-03-30 Kenichi Handa <handa@m17n.org>
10628
d8d2f142
KH
10629 * fontset.c (fontset_from_font): Specify only registry in a
10630 font-spec for all characters supported by that registry.
10631
e3869731
KH
10632 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
10633 even if HAVE_M17N_FLT is not defined.
10634
5da5f805
CY
106352009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
10636
10637 * ftfont.c: Conditionalize prototyping and use of
10638 ftfont_variation_glyphs.
10639
ab226c50
SM
106402009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
10641
9628fed7
SM
10642 * frame.c (delete_frame): Work around compiler bug.
10643
10644 * editfns.c (general_insert_function): Adjust to insdel.c changes.
10645 * insdel.c (prepare_to_modify_buffer, signal_before_change):
10646 Some more EMACS_INT.
10647 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
10648
10649 * xdisp.c (dump_glyph): Fix typo.
10650
ae19ba7c
SM
10651 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
10652 (adjust_markers_gap_motion, adjust_markers_for_delete)
10653 (adjust_markers_for_insert, adjust_point)
10654 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
10655 (make_gap, copy_text, count_size_as_multibyte, insert)
10656 (insert_and_inherit, insert_before_markers)
10657 (insert_before_markers_and_inherit, insert_1)
10658 (count_combining_before, count_combining_after, insert_1_both)
10659 (insert_from_string, insert_from_string_before_markers)
10660 (insert_from_string_1, insert_from_gap, insert_from_buffer)
10661 (insert_from_buffer_1, adjust_after_replace)
10662 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
10663 (replace_range_2, del_range, del_range_1, del_range_byte)
10664 (del_range_both, del_range_2, modify_region)
10665 (prepare_to_modify_buffer, signal_before_change)
10666 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
10667 for buffer positions and sizes.
10668 * lisp.h: Adjust prototypes accordingly.
10669
10670 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
10671 (non_regular_inserted, non_regular_nbytes, read_non_regular)
10672 (Finsert_file_contents): Use EMACS_INT for buffer positions.
10673
ab226c50
SM
10674 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
10675
46dfb8fb
JD
106762009-03-27 Jan Djärv <jan.h.d@swipnet.se>
10677
10678 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
10679 lines and columns so we keep the same pixel height and width.
10680
10681 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
10682 the property _NET_WM_STATE has changed.
46dfb8fb
JD
10683 (x_handle_net_wm_state): New function to update frame parameter
10684 fullscreen.
10685 (x_term_init): Initialize atoms for _NET_WM_STATE.
10686
10687 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
10688
d347e494
SM
106892009-03-27 Kevin Ryde <user42@zip.com.au>
10690
10691 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
10692 Gpm_GetEvent as an error that justifies closing the filedescriptor.
10693 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
10694 (Fgpm_mouse_stop): Pass that new parameter.
10695 * termhooks.h (close_gpm): Adjust prototype.
10696
84db11d6
SM
106972009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
10698
c95a5008
SM
10699 * lisp.h (Fx_focus_frame): Declare.
10700
84db11d6
SM
10701 * callint.c (Fcall_interactively): For '^' just delegate the work to
10702 handle-shift-selection.
10703 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
10704
0a1958d6
CY
107052009-03-24 Chong Yidong <cyd@stupidchicken.com>
10706
0bfdff23
CY
10707 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
10708
0a1958d6
CY
10709 * data.c (Qinteractive_form): New variable.
10710 (Finteractive_form): Use it.
10711
10712 * eval.c (Fcommandp): Use Qinteractive_form.
10713
58aec0d6
JR
107142009-03-24 Jason Rumney <jasonr@gnu.org>
10715
10716 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
10717 Calculate total size precisely. Decode environment variables
10718 before substituting. (Bug#38)
10719
553dd618
KH
107202009-03-24 Kenichi Handa <handa@m17n.org>
10721
10722 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 10723 encoding (Bug#2722).
553dd618 10724
c39ea606
JD
107252009-03-23 Jan Djärv <jan.h.d@swipnet.se>
10726
10727 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
10728 that gdpy is set.
10729
bc9b2b5e
AM
107302009-03-22 Alan Mackenzie <acm@muc.de>
10731
10732 * callint.c (Finteractive): Clarify the doc string - even
10733 promptless elements need \n separators.
10734
9f995a76
JR
107352009-03-22 Jason Rumney <jasonr@gnu.org>
10736
10737 * w32term.c (syms_of_w32term): Doc fix for
10738 x-use-underline-position-properties.
10739
22749e9a
EZ
107402009-03-21 Eli Zaretskii <eliz@gnu.org>
10741
10742 * w32.c (getpwuid): Change argument type to unsigned.
10743 (struct w32_id): Change type of `rid' member to unsigned.
10744 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
10745 argument ID to unsigned. All callers changed.
10746 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
10747
e00553bf
EZ
107482009-03-20 Eli Zaretskii <eliz@gnu.org>
10749
10750 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
10751 negative, produce a float value.
10752
10753 * dired.c (make_uid, make_gid): New functions.
10754 (Ffile_attributes): Use them to avoid negative UID and GID.
10755
f761d6b6
JB
107562009-03-20 Juanma Barranquero <lekktu@gmail.com>
10757
10758 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
10759 (syms_of_keyboard) <command-hook-internal, input-method-function>:
10760 Fix typos in docstrings.
10761
d507f8d7
KH
107622009-03-19 Kenichi Handa <handa@m17n.org>
10763
10764 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
10765 changed, use font_load_for_lface to get a new font object.
10766 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
10767
10768 * frame.c (x_set_font): Handle the case that ARG is a cons.
10769
c68845e0
GM
107702009-03-19 Glenn Morris <rgm@gnu.org>
10771
10772 * fileio.c (Fsubstitute_in_file_name): Doc fix.
10773
bfa49dd1
CY
107742009-03-19 Chong Yidong <cyd@stupidchicken.com>
10775
10776 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
10777
8458d4c1
KH
107782009-03-19 Kenichi Handa <handa@m17n.org>
10779
10780 * charset.c (load_charset_map_from_file): When a mapfile can't be
10781 loaded, signal an error.
10782
78e7d1fe
EZ
107832009-03-18 Eli Zaretskii <eliz@gnu.org>
10784
10785 * dired.c (Ffile_attributes): Make sure UID and GID are always
10786 positive, even if the value is too large for a positive EMACS_INT.
10787 Doc fix.
10788
10789 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
10790
5da9fdfa
YM
107912009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10792
10793 * xmenu.c (xdialog_show): Move Fredisplay call ...
10794 (Fx_popup_dialog): ... here.
10795
7519c40d
SM
107962009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
10797
10798 * dired.c (file_name_completion): Disable the first optimization just
10799 installed, since it is not implemented correctly.
10800
2cd298e2
SM
108012009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
10802
10803 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 10804 only if the entry can affect bestmatch.
2cd298e2
SM
10805 Stop the search early, as Ftry_completion already does.
10806
48d37adf
CY
108072009-03-17 Chong Yidong <cyd@stupidchicken.com>
10808
e10c9c93 10809 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 10810
9286b16a
CY
108112009-03-15 Chong Yidong <cyd@stupidchicken.com>
10812
10813 * keyboard.c (parse_menu_item): Don't display remappings as menu
10814 equivalent bindings (Bug#788).
10815
f7b146dc
JR
108162009-03-15 Jason Rumney <jasonr@gnu.org>
10817
10818 * w32term.h (WM_EMACS_PAINT): New message.
10819 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
10820 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
10821 before passing to lisp thread. (Bug#950)
10822
f761d6b6 108232009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 10824
d93f9575
CY
10825 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
10826 variable as it was never reset.
10827 (ns_term_init): Remove initialization of Lisp-settable defaults
10828 and ns_expand_space.
10829 (-setPanelFromDefaultValues): Remove ns_expand_space.
10830 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
10831 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
10832 i.e. no additional spacing, similar to Carbon port.
10833
d93f9575
CY
10834 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
10835 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 10836
305018ec
JD
108372009-03-14 Jan Djärv <jan.h.d@swipnet.se>
10838
10839 * sound.c (alsa_configure): Remove call to deprecated
10840 snd_pcm_sw_params_set_xfer_align.
10841
f761d6b6 108422009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
10843
10844 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
10845 after clicking in a detached tool bar.
10846 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
10847
46e722a9
SM
108482009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
10849
348db3dd
SM
10850 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
10851 int/Lisp_Object mixup).
46e722a9 10852
a3d16f39
KH
108532009-03-13 Kenichi Handa <handa@m17n.org>
10854
10855 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 10856 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
10857 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
10858 (set_fontset_font): Change ARG to a vector. Handle range_list in
10859 ARG correctly.
10860 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 10861 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
10862 the above change.
10863 (fontset_from_font): Fix previous change.
fe24f56a 10864 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
10865 entry. If FONTSET is the default fontset, don't set the extra
10866 slot of the returning char-table.
10867
b066e6b6
JB
108682009-03-12 Juanma Barranquero <lekktu@gmail.com>
10869
10870 * nsfns.m (Fx_close_connection): Doc fix.
10871 (Fns_do_applescript): Reflow docstring.
10872 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
10873 (Fx_display_pixel_width, Fx_display_pixel_height)
10874 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
10875 Fix typos in docstrings.
10876 (Fns_set_alpha): Fix typos in error messages.
10877
d472514e 108782009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 10879
d472514e 10880 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
10881 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
10882 were used for such events.
10883
d472514e
JB
10884 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
10885 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 10886
d472514e 10887 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
10888 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
10889
fb930676
KH
108902009-03-11 Kenichi Handa <handa@m17n.org>
10891
ff85581a
KH
10892 * font.h (font_open_by_spec): Extern it.
10893
c50b7e98
KH
10894 * font.c (font_open_by_spec): New function.
10895 (font_open_by_name): Use font_open_by_spec.
10896
fb930676
KH
10897 * frame.c (x_set_font): When ARG is a font-object, don't alter the
10898 fontset of the frame.
10899
10900 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
10901 modify the default font of frames that use this fontset.
10902 (num_auto_fontsets): New variable.
10903 (fontset_from_font): Use num_auto_fontsets to decide a fontset
10904 name. Be sure to set FONTSET_ASCII to the correct font name.
10905 (update_auto_fontset_alist): New function.
10906
df4e8455
JB
109072009-03-11 Juanma Barranquero <lekktu@gmail.com>
10908
10909 * makefile.w32-in: Update dependencies.
10910
0a375797
AR
109112009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10912
10913 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
10914
61313fa3
SM
109152009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
10916
10917 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
10918
b55103fb
CY
109192009-03-10 Chong Yidong <cyd@stupidchicken.com>
10920
10921 * lread.c (Feval_buffer): Doc fix.
10922
dde2559c
KH
109232009-03-09 Kenichi Handa <handa@m17n.org>
10924
10925 * charset.c (Qfile_name_handler_alist): Extern it.
10926 (load_charset_map_from_file): Temporarily bind
10927 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
10928
df4e8455 109292009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 10930
47f588bb
GM
10931 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
10932 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 10933
4ddf94bd
AR
109342009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10935
4c9bdfc2
AR
10936 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
10937 (x_set_window_size): Change back to calculated method of setting
10938 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
10939 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
10940 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
10941
fe41ae9e
AR
10942 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
10943
4c9bdfc2
AR
10944 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
10945 accelerator in parens under GNUstep.
10946
825d0875
KH
109472009-03-06 Kenichi Handa <handa@m17n.org>
10948
10949 These changes are to detect incorrect composition sequence without
f3b3be74 10950 looking ahead the source. (Bug#2370)
825d0875
KH
10951
10952 * coding.h: Include "composite.h".
10953 (enum compisition_state): New enum.
10954 (struct compisition_status): New struct.
10955 (struct iso_2022_spec): New member cmp_status.
10956 (struct emacs_mule_spec): New struct.
10957 (struct coding_system): New members ctext_extended_segment_len and
10958 embedded_utf_8. Change the union member
10959 spec.emacs_mule_full_support to spec.emacs_mule.
10960
10961 * coding.c (CODING_ISO_CMP_STATUS): New macro.
10962 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 10963 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
10964 (ADD_COMPOSITION_DATA): New arg nbytes.
10965 (emacs_mule_char): New arg cmp_status.
10966 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
10967 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
10968 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
10969 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
10970 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
10971 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
10972 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
10973 (EMACS_MULE_COMPOSITION_END): New macro.
10974 (emacs_mule_finish_composition): New function.
10975 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
10976 (decode_coding_emacs_mule): Avoid long looking ahead while
10977 handling composition.
10978 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
10979 (ENCODE_COMPOSITION_RULE): New macro.
10980 (finish_composition): New function.
10981 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
10982 (DECODE_COMPOSITION_START): New implementation.
10983 (DECODE_COMPOSITION_END): Likewise.
10984 (STORE_COMPOSITION_RULE): New macro.
10985 (decode_coding_iso_2022): Avoid long looking ahead while handling
10986 composition, CTEXT extended segment, and embedded UTF-8.
10987 (setup_coding_system): For a coding of type iso-2022, reset
10988 CODING_ISO_EXTSEGMENT_LEN (coding) and
10989 CODING_ISO_EMBEDDED_UTF_8 (coding).
10990 (get_translation): Delete arguments last_block, from_nchars,
10991 to_nchars. Callers changed.
10992 (produce_chars): Don't modify charbuf. Adjusted for the change of
10993 get_translation.
98a326f7 10994 (produce_composition): Adjust for the new annotation sequence.
825d0875 10995 (handle_composition_annotation): Likewise.
98a326f7 10996 (consume_chars): Adjust for the change of get_translation.
825d0875 10997
ccbc4452
AR
109982009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
10999
4ddf94bd 11000 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 11001
988a7ddb
KH
110022009-03-05 Kenichi Handa <handa@m17n.org>
11003
11004 * font.c (font_select_entity): New function.
11005 (font_find_for_lface): Use font_select_entity to select a font.
11006
11007 * fontset.c (fontset_find_font): If a font found without
a8a3728b 11008 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
11009 font with C restriction.
11010
98a326f7 110112009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 11012
be1bce46 11013 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 11014
10ea2b82
JR
110152009-03-04 Jason Rumney <jasonr@gnu.org>
11016
2c93b248 11017 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 11018 characters that have already been read. (Bug#2569)
2c93b248 11019
10ea2b82
JR
11020 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
11021 Log an error message if check_image_size failed.
11022 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 11023 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 11024
71a0c011
EZ
110252009-03-02 Eli Zaretskii <eliz@gnu.org>
11026
11027 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
11028 when decoding process output.
11029
2f63bba8
RS
110302009-03-01 Richard M Stallman <rms@gnu.org>
11031
11032 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
11033
11034 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
11035
0a9564cb
EZ
110362009-02-28 Eli Zaretskii <eliz@gnu.org>
11037
11038 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
11039 (decode_coding_emacs_mule, decode_coding_iso_2022)
11040 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11041 (decode_coding_raw_text, decode_coding_charset)
11042 (setup_coding_system, decode_eol, decode_coding, consume_chars):
11043 Honor inhibit-eol-conversion. (Bug #2186)
11044
449148b3
JR
110452009-02-28 Jason Rumney <jasonr@gnu.org>
11046
11047 * coding.c (detect_coding_charset): If not checking latin extra,
11048 fail on characters between 0x80 and 0xA0. (Bug#2354)
11049
a4aee864
EZ
110502009-02-28 Eli Zaretskii <eliz@gnu.org>
11051
11052 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 11053 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 11054
d88bee5a
GM
110552009-02-27 Glenn Morris <rgm@gnu.org>
11056
11057 * callint.c (Finteractive): Doc fix.
11058
a808f22d
KH
110592009-02-27 Kenichi Handa <handa@m17n.org>
11060
11061 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
11062
caf8d60c
CY
110632009-02-27 Chong Yidong <cyd@stupidchicken.com>
11064
11065 * font.c (font_style_to_value): Set value for unknown symbols to
11066 100 instead of 255.
b61137ea
CY
11067 (weight_table, slant_table, width_table): Treat "unspecified" as
11068 the default value.
caf8d60c 11069
1a0de25c
JB
110702009-02-26 Juanma Barranquero <lekktu@gmail.com>
11071
11072 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
11073
8fc45744
JB
110742009-02-25 Juanma Barranquero <lekktu@gmail.com>
11075
107bd7d1
JB
11076 * lread.c (Fload): Stop checking Vloads_in_progress and signal
11077 error as soon as a recursive load is detected.
8fc45744 11078
f097e223
AR
110792009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11080
11081 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
11082 before caching.
11083
8810a12f
KH
110842009-02-24 Kenichi Handa <handa@m17n.org>
11085
11086 * fontset.c (fontset_find_font): Fix the condition for checking
11087 unavailable font.
11088
2c7d1565
GM
110892009-02-24 Glenn Morris <rgm@gnu.org>
11090
11091 * xfaces.c (Finternal_set_font_selection_order): Remove leading
11092 whitespace that confuses documentation.
11093
a20878b6
MB
110942009-02-23 Miles Bader <miles@gnu.org>
11095
11096 * process.c (Flist_system_processes, Fprocess_attributes)
11097 (syms_of_process): Rename `system-process-attributes' to
11098 `process-attributes'.
11099
b3b58c01
AS
111002009-02-22 Andreas Schwab <schwab@linux-m68k.org>
11101
1b3b981b
AS
11102 * coding.h (struct coding_system): Make safe_charsets a pointer to
11103 unsigned char.
11104 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
11105 being 255.
11106 (SAFE_CHARSET_P): Likewise.
11107 (setup_iso_safe_charsets): Properly setup safe_charsets.
11108 (Fdefine_coding_system_internal): Likewise.
11109 (setup_coding_system): Likewise. Remove unneeded casts.
11110 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
11111 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
11112 unneeded casts.
11113
b3b58c01
AS
11114 * insdel.c (del_range_2): Don't modify gap contents when called
11115 from decode_coding_object. (Bug#1809)
11116
0b6f228c
CY
111172009-02-21 Chong Yidong <cyd@stupidchicken.com>
11118
11119 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
11120 Qfont_object.
11121 (Ftype_of): Recognize font objects.
11122
11123 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
11124
11125 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
11126 moved to data.c.
11127
52f8870b
AR
111282009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11129
11130 * nsterm.m (x_make_frame_invisible): Unset async_visible,
11131 async_iconified. Based on a patch by Christian Lynbech
11132 <christian.lynbech@tieto.com>.
11133 (EmacsView-windowDidMiniaturize:): Unset async_visible.
11134
7087d5e9
GM
111352009-02-20 Glenn Morris <rgm@gnu.org>
11136
11137 * syntax.c (Fskip_chars_forward): Fix doc typo.
11138
41d2ceef
CY
111392009-02-20 Chong Yidong <cyd@stupidchicken.com>
11140
11141 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
11142
1a3b7ca6
CY
111432009-02-19 Chong Yidong <cyd@stupidchicken.com>
11144
11145 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
11146
73cce38d
KH
111472009-02-19 Kenichi Handa <handa@m17n.org>
11148
11149 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 11150 Don't overflow coding->carryover. (Bug#2370)
73cce38d 11151
a51092ee
DN
111522009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
11153
11154 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
11155
c423ecca
KH
111562009-02-18 Kenichi Handa <handa@m17n.org>
11157
11158 * font.c (font_check_otf_features): Fix handling of `nil' element.
11159 (Ffont_spec): Describe :lang and :otf in the docstring.
11160
4c1958f4
AS
111612009-02-16 Andreas Schwab <schwab@suse.de>
11162
11163 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
11164 string.
11165
5704f39a
KH
111662009-02-16 Kenichi Handa <handa@m17n.org>
11167
11168 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 11169 (Bug#1723)
5704f39a 11170
8f0085aa
CY
111712009-02-14 Chong Yidong <cyd@stupidchicken.com>
11172
a057d86a 11173 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
11174
11175 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
11176 (handle_line_prefix): Suppress wrapping of wrap prefixes.
11177
aff01dd9
EZ
111782009-02-14 Eli Zaretskii <eliz@gnu.org>
11179
11180 * msdos.c (MAX_SCREEN_BUF): New macro.
11181 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
11182 Encode the entire run of glyphs sharing the same face, instead of
11183 doing that one glyph at a time (fixes a bug with displaying
11184 double-size characters).
11185
ba301db3
AR
111862009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
11187
11188 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
11189
11190 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
11191 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 11192 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
11193
11194 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 11195 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 11196
51d861de
SM
111972009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
11198
ac146f82 11199 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
11200 invisible areas.
11201
7fed8996
JR
112022009-02-12 Jason Rumney <jasonr@gnu.org>
11203
631ea4fb
JR
11204 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
11205 (add_font_entity_to_list): Call check_face_name even when family
11206 is unspecified.
11207
cb4a3e42
JR
11208 * w32term.c (x_display_pixel_height, x_display_pixel_width):
11209 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 11210 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 11211
7fed8996 11212 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 11213 raster fonts. (Bug#2219)
7fed8996 11214
895416e3
KH
112152009-02-12 Kenichi Handa <handa@m17n.org>
11216
11217 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
11218 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
11219 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 11220 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
11221 (find_automatic_composition): While looking forward and backward,
11222 check static composition. Fix where to stop looking forward.
11223 (composition_adjust_point): Fix checking of static composition.
11224 (Fcomposition_get_gstring): Pay attention to
1dacf998 11225 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
11226
11227 * lisp.h (fast_looking_at): Extern it.
11228
11229 * search.c (fast_looking_at): New function.
11230
51d861de 11231 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
11232 <struct glyph>.u.cmp.to.
11233 (append_composite_glyph): Likewise.
11234
51d861de 11235 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
11236 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
11237 composition.
51d861de 11238 (append_composite_glyph): Adjust for the change of
895416e3
KH
11239 <strcut glyph>.u.cmp.to.
11240
8510724d
JB
112412009-02-11 Juanma Barranquero <lekktu@gmail.com>
11242
11243 * casetab.c (init_casetab_once):
11244 * coding.c (ALLOC_CONVERSION_WORK_AREA):
11245 * font.c (font_update_lface):
11246 * fontset.c (Fnew_fontset):
11247 * ftfont.c (ftfont_drive_otf):
11248 * xfont.c (xfont_open):
11249 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
11250
294fa707
SM
112512009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
11252
11253 * fileio.c (Fwrite_region): !NILP -> CONSP.
11254
b5bfebec
AS
112552009-02-10 Andreas Schwab <schwab@suse.de>
11256
11257 * process.c (send_process): Properly relocate pointer into data
adab88bd 11258 when using encoded data. (Bug#2272)
b5bfebec 11259
cb84a2be
KH
112602009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
11261
11262 * coding.c (detect_coding_charset): Fix previous change.
11263
89e09428
JR
112642009-02-08 Jason Rumney <jasonr@gnu.org>
11265
11266 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 11267 disappeared while hourglass was displayed. (Bug #2193)
89e09428 11268
4470a277
AS
112692009-02-07 Andreas Schwab <schwab@suse.de>
11270
11271 * unexelf.c (unexec): Fix error message.
11272
3175b12a
AR
112732009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
11274
11275 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 11276 when modal window is active. (Bug #2152)
3175b12a
AR
11277 (applicationShouldTerminate:): Remove now-unneeded while loop
11278 around NSRunAlertPanel.
11279
11280 * nsmenu.m (popupSession): New file-global variable.
11281 (pop_down_menu): End the popupSession before closing dialog.
11282 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
11283 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
11284 don't query NSApp for events (just sleep instead).
11285
8434d0b8
EZ
112862009-02-07 Eli Zaretskii <eliz@gnu.org>
11287
51d861de
SM
11288 * coding.c (syms_of_coding) <translation-table-for-input>:
11289 Modify doc string to discourage use for character code unification.
8434d0b8 11290
aa82edfd
CY
112912009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11292
11293 * atimer.c (run_timers): Update pending_atimers.
11294
2d283c7c
CY
112952009-02-06 Chong Yidong <cyd@stupidchicken.com>
11296
eb306cab
CY
11297 * image.c (svg_load_image): Fix last change.
11298
2d283c7c
CY
11299 * xfns.c (Fx_create_frame): Signal an error if no font is
11300 found (Bug#2147).
11301
4d8e170e
JB
113022009-02-05 Juanma Barranquero <lekktu@gmail.com>
11303
11304 * character.c (syms_of_character) <script-representative-chars>:
11305 Fix typo in docstring.
11306
c96169a0
AR
113072009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11308
11309 * nsmenu.m (pop_down_menu): New function.
11310 (ns_popup_dialog): Call it on unwind.
11311 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
11312 call timer_check() (Bug#2154).
11313 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
11314 handling_signal is set.
11315 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
11316
31fd7c5c 11317 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
11318
11319 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
11320
11321 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
11322
51d861de
SM
11323 * keyboard.c (poll_for_input_1, handle_async_input):
11324 Set handling_signal under HAVE_NS.
c96169a0 11325
aacd8ba1
GM
113262009-02-04 Glenn Morris <rgm@gnu.org>
11327
11328 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
11329
4cb75c4b
KH
113302009-02-04 Kenichi Handa <handa@m17n.org>
11331
11332 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
11333
11334 * charset.c (Fchar_charset): New optional arg restriction.
11335
11336 * coding.h (coding_system_charset_list): Extern it.
11337
11338 * coding.c (coding_system_charset_list): New function.
11339
11340 * composite.c: Include coding.h and termhooks.h.
11341 (composition_gstring_p): Fix for the terminal case.
11342 (composition_gstring_width): Likewise.
11343 (fill_gstring_body): Likewise.
11344 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
11345 the frame.
11346 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
11347 is within a composition.
867d4bb3 11348 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
11349
11350 * term.c (encode_terminal_code): Fix handling of composition.
11351 (produce_composite_glyph): For static composition, get pixel_width
11352 from struct composition.
11353
826ba17e
AS
113542009-02-02 Andreas Schwab <schwab@suse.de>
11355
11356 * unexelf.c (unexec): Handle unaligned bss offset.
11357
8ad093db
AR
113582009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11359
11360 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
11361 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 11362
8ad093db
AR
11363 * keyboard.c (handle_interrupt): Don't call
11364 quit_throw_to_read_char() under NS.
d0a76a6e 11365
8ad093db
AR
11366 * blockinput.h: Remove NS-specific code.
11367
4d18a7a2
DN
113682009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
11369
db878925
DN
11370 * dispnew.c (window_change_signal): Don't try to get the size of a
11371 suspended tty frame.
11372 * term.c (Fresume_tty): Resize if the size has changed while the
11373 tty was suspended.
11374
4d18a7a2
DN
11375 * alloc.c (mark_stack): Properly conditionalize previous change.
11376
8984df7c
JB
113772009-01-30 Juanma Barranquero <lekktu@gmail.com>
11378
11379 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
11380 * w32term.c (w32_read_socket) [SYNC_INPUT]:
11381 Remove; this code is not used on Windows.
11382
75f4f1ac
EZ
113832009-01-30 Eli Zaretskii <eliz@gnu.org>
11384
11385 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
11386 EOLs that also has stray ^M characters.
11387
07a1e794
JB
113882009-01-30 Juanma Barranquero <lekktu@gmail.com>
11389
11390 * atimer.c (run_timers, alarm_signal_handler):
11391 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
11392 * w32inevt.c (w32_console_read_socket):
11393 * w32term.c (w32_read_socket):
11394 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
11395
a8b11cc9
CY
113962009-01-30 Chong Yidong <cyd@stupidchicken.com>
11397
11398 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
11399 Initialize it as a relative filename pattern.
11400 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
11401 (Fcall_process_region): Simplify temp file creation using
11402 temporary-file-directory.
11403
c279587b
EZ
114042009-01-29 Eli Zaretskii <eliz@gnu.org>
11405
11406 * msdos.c: Rename pending_signals to msdos_pending_signals.
11407 (sig_suspender, sigprocmask): Adjust.
11408
a8fe3242
CY
114092009-01-29 Chong Yidong <cyd@stupidchicken.com>
11410
11411 * keyboard.c (pending_signals): New var.
11412 (poll_for_input, input_available_signal, init_keyboard): Set it.
11413 (process_pending_signals): New function.
11414
11415 * lisp.h (QUIT): Check pending_signals instead of
11416 interrupt_input_pending. Use process_pending_signals.
11417
51d861de 11418 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 11419
51d861de 11420 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
11421
11422 * sysdep.c (emacs_write): Use process_pending_signals.
11423
11424 * xterm.c (XTread_socket): Update pending_signals.
11425
11426 * w32term.c (w32_read_socket): Update pending_signals.
11427
11428 * w32inevt.c (w32_console_read_socket): Update pending_signals.
11429
6570a1c4
KH
114302009-01-29 Kenichi Handa <handa@m17n.org>
11431
11432 * xftfont.c (xftfont_has_char): New function.
11433 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
11434
d72a4afa
AR
114352009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
11436
11437 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
11438 under GNUstep.
11439 (ns_query_color): New declaration.
11440
11441 * nsterm.m (ns_confirm_quit): New variable.
11442 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
11443 (EmacsApp-applicationShouldTerminate:): Use it.
11444 (EmacsPrefsController): Let user set it.
11445 (ns_query_color): New function.
11446 (ns_defined_color): Use it.
11447 (ns_initialize): Drop.
11448 (ns_term_init): Add two lines from ns_initialize(), and set
11449 input_interrupt_mode to nil.
11450
11451 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 11452 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 11453
9fe78804
KH
114542009-01-28 Kenichi Handa <handa@m17n.org>
11455
11456 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
11457 (fontset_get_font_group): Remember that no font-group is specified
11458 for C.
9fe78804 11459
fa57de36
CY
114602009-01-27 Chong Yidong <cyd@stupidchicken.com>
11461
930600e9
CY
11462 * fns.c (concat): Check for string overflow (bug#1787).
11463
fa57de36
CY
11464 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
11465 Quadruple undo limits (bug#1501).
11466
7179ce7b
KH
114672009-01-27 Kenichi Handa <handa@m17n.org>
11468
11469 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
11470 directly use GT_Get_Char_index.
11471
11472 * xftfont.c (struct xftfont_info): New member `index'.
11473
11474 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 11475 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 11476
5be8fcc0
CY
114772009-01-26 Kenichi Handa <handa@m17n.org>
11478
11479 * fontset.c (fontset_find_font): Fix handling of non-cons return
11480 value of fontset_get_font_group.
11481 (fontset_font): Revert last change.
11482
19ae3e61
JR
114832009-01-26 Jason Rumney <jasonr@gnu.org>
11484
11485 * w32font.c (w32font_list_internal): Return quickly if registry is
11486 unknown. Simplify final return.
11487 (add_font_entity_to_list): Break complex logic down into more
11488 manageable chunks. Move unknown registry check to
11489 w32font_list_internal.
11490
8612b71a
AR
114912009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
11492
11493 Changes to remove Feval calls from GUI under NS.
11494
d8038940
JB
11495 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
11496 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
11497 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
11498
11499 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
11500 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
11501 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
11502 instead of NON_ASCII_KEYSTROKE_EVENT.
11503 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
11504 (EmacsApp-applicationShouldTerminate:): Query user.
11505 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
11506 instead of Feval.
11507
11508 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
11509
11510 * keyboard.c (kbd_buffer_get_event): Check for it.
11511 (keys_of_keyboard): Define lispy keys for
11512 ns-put/unput-working-text.
11513
11514 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
11515 versions.
11516 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
11517
6288ae55
CY
115182009-01-25 Chong Yidong <cyd@stupidchicken.com>
11519
11520 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 11521 setting current_buffer directly. (Bug#2044)
6288ae55 11522
289e7f8f
CY
115232009-01-24 Chong Yidong <cyd@stupidchicken.com>
11524
5ce87308 11525 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 11526 any work. (Bug#1952, bug#1990).
5ce87308 11527
64cc3cf6 11528 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 11529
b3243e6f
AR
115302009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
11531
11532 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
11533 (ns_no_defaults): New declaration.
11534 (main): Use it.
e0d2e69a 11535
d900b2af 11536 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 11537
d900b2af 11538 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 11539
d900b2af
AR
11540 * nsterm.m (ns_no_defaults): New variable.
11541 (ns_initialize): Don't read defaults when ns_no_defaults.
11542 (EmacsView-readSelectionFromPasteboard:)
11543 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 11544 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
11545 (ns_dumpglyphs_stretch): New function.
11546 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 11547 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 11548
e0d2e69a
AR
11549 * nsimage.m (setPixmapData:): Set to ignore image DPI.
11550
3ac71f5d
CY
115512009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
11552
11553 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
11554 call for Sparc64.
11555
3fe53a83
AR
115562009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11557
11558 * nsfns.m:
11559 * nsgui.h:
11560 * nsmenu.m:
11561 * nsselect.m:
11562 * nsterm.h:
11563 * nsterm.m: Remove '23' comments that indicated code added during
11564 update from emacs-20 -> emacs-23.
11565
10f87c6f 115662009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
11567
11568 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 11569 ns_alternate_modifier. (Bug#1217)
a3b53a85 11570
c7cef62d
AR
11571 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
11572 Display all shortcuts, including those w/o super modifier.
11573
575fb8bd
AR
11574 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
11575
918b848b
CY
115762009-01-22 Chong Yidong <cyd@stupidchicken.com>
11577
11578 * fileio.c (Vwrite_region_post_annotation_function)
11579 (Vwrite_region_annotation_buffers): New vars.
11580 (build_annotations_unwind): Just reset
11581 Vwrite_region_annotation_buffers.
11582 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
11583 Call write-region-post-annotation-function.
11584 (build_annotations): Add to Vwrite_region_annotation_buffers if
11585 buffer changes.
11586
a39e2539
AR
115872009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11588
11589 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
11590 Tiger.
51d861de
SM
11591 * nsfns.m (ns_do_applescript):
11592 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 11593
35ed44db
AR
115942009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
11595
11596 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
11597
cbe0b5bf
AR
115982009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11599
11600 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 11601
6049d3a0
AR
11602 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
11603
11604 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
11605 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
11606 handle Ctrl-tab. (Bug#1841)
11607 (ns_get_color): Use unsigned long long for scanned hex string value.
11608 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 11609 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 11610 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 11611 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 11612 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 11613 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 11614 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 11615
d3810c21 11616 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 11617 DPI. (Bug#1316)
d3810c21
AR
11618 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
11619 values in onTiger section.
4c7077c3 11620
e301e634
CY
116212009-01-19 Chong Yidong <cyd@stupidchicken.com>
11622
7f82490b
CY
11623 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
11624 Check return value of font_spec_from_name.
64cc3cf6 11625 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
11626
11627 * font.c (font_spec_from_name): Return Qnil if font name could not
11628 be parsed.
11629 (font_parse_name): Treat a `?' character as part of an XLFD.
11630
e301e634
CY
11631 * fns.c (Fsubstring): Doc fix.
11632
1c0db158
KH
116332009-01-19 Kenichi Handa <handa@m17n.org>
11634
51d861de 11635 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
11636 (ftfont_list): Likewise.
11637
acf20901
JB
116382009-01-18 Juanma Barranquero <lekktu@gmail.com>
11639
fff4e459
JB
11640 * dbusbind.c (Fdbus_register_signal):
11641 * process.c (conv_sockaddr_to_lisp):
11642 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
11643
acf20901
JB
11644 * callproc.c (Fgetenv_internal): Doc fix.
11645
e7abcdfb
CY
116462009-01-16 Chong Yidong <cyd@stupidchicken.com>
11647
11648 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
11649 it is not even used.
11650
b60861e6
GM
116512009-01-16 Glenn Morris <rgm@gnu.org>
11652
11653 * font.c (Ffont_variation_glyphs): Silence compiler.
11654
8db52afe
JB
116552009-01-15 Juanma Barranquero <lekktu@gmail.com>
11656
11657 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
11658 Reported by David Robinow <drobinow@gmail.com>.
11659
4cddb209
KH
116602009-01-15 Kenichi Handa <handa@m17n.org>
11661
51d861de 11662 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 11663
f247f67b
JR
116642009-01-14 Jason Rumney <jasonr@gnu.org>
11665
11666 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 11667 never a fontset. (Bug#1562)
f247f67b 11668
f56a4450
KH
116692009-01-14 Kenichi Handa <handa@m17n.org>
11670
11671 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 11672 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 11673
4e99855e
CY
116742009-01-13 Chong Yidong <cyd@stupidchicken.com>
11675
11676 * font.c (font_clear_prop): If clearing the family, clear the font
11677 width index too.
11678
fff4e459 11679 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 11680
24f01470
JB
116812009-01-12 Juanma Barranquero <lekktu@gmail.com>
11682
11683 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
11684 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
11685 functions, use sizeof.
11686
a41240a3
MR
116872009-01-12 Martin Rudalics <rudalics@gmx.at>
11688
11689 * keyboard.c (read_char): Fix case where last_nonmenu_event
11690 returned a bad value with submenus. (Bug#447)
11691
944636b8
CY
116922009-01-12 Chong Yidong <cyd@stupidchicken.com>
11693
11694 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
11695 family, clear the font width index too.
11696
0dad7c6f
JR
116972009-01-11 Jason Rumney <jasonr@gnu.org>
11698
11699 * keyboard.c (cmd_error_internal): Exit when errors occur before
11700 frame creation and not in daemon mode. (Bug#1836)
11701
7c2363af
CY
117022009-01-10 Chong Yidong <cyd@stupidchicken.com>
11703
11704 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
11705 of a display vector, backtrack.
11706 (try_window_reusing_current_matrix): Check glyph type before
11707 referencing charpos member.
11708
97b1b294
EZ
117092009-01-10 Eli Zaretskii <eliz@gnu.org>
11710
11711 Fix Bug #876:
11712
11713 * coding.c (inhibit_null_byte_detection): New variable.
11714 (detect_coding, detect_coding_system): Don't pay attention to null
11715 bytes if inhibit_null_byte_detection is non-zero.
51d861de 11716 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
11717 <inhibit-iso-escape-detection>: Doc fix.
11718
4624b6e3
JR
117192009-01-09 Jason Rumney <jasonr@gnu.org>
11720
11721 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 11722 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
11723 Only report Unicode Plane 2 fonts as unicode-sip.
11724
323b840c
CY
117252009-01-09 Chong Yidong <cyd@stupidchicken.com>
11726
51d861de
SM
11727 * xfaces.c (Fx_font_family_list): Delete function.
11728 Move compatibility version to faces.el.
323b840c 11729
51d861de 11730 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 11731
eba7400d
MR
117322009-01-09 Martin Rudalics <rudalics@gmx.at>
11733
11734 * frame.c (x_set_frame_parameters): Remember requested value for
11735 fullscreen before it's reset by the parameter handler.
11736
4b09796d
GM
117372009-01-09 Glenn Morris <rgm@gnu.org>
11738
11739 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 11740 (last_command_event): ... and update all users.
4b09796d
GM
11741 (last_input_char): For clarity, rename to...
11742 (last_input_event): ... and update all users.
11743 (last-command-char, last-input-char): Move to subr.el as aliases.
11744 * cmds.c, commands.h: Update for last_command_char rename.
11745
14ccea62
CY
117462009-01-08 Chong Yidong <cyd@stupidchicken.com>
11747
51d861de 11748 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 11749
5f004711
JR
117502009-01-08 Jason Rumney <jasonr@gnu.org>
11751
11752 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
11753 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
11754 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
11755 Don't declare.
fff4e459 11756 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
11757 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
11758
b71f6f73
KH
117592009-01-07 Kenichi Handa <handa@m17n.org>
11760
50b06221 11761 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 11762 remember the coding system used for decoding in
50b06221
KH
11763 coding_system (Bug#1039).
11764
b71f6f73 11765 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 11766 breaking the loop. (Bug#870)
b71f6f73
KH
11767 (decode_coding_utf_16, decode_coding_emacs_mule)
11768 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11769 (decode_coding_charset): Likewise.
11770
56f668f7
MR
117712009-01-05 Martin Rudalics <rudalics@gmx.at>
11772
11773 * frame.c (x_set_frame_parameters): Make sure height (width) get
11774 applied when fullwidth (fullheight) is set. (Bug#1522)
11775
5da9424d
JB
117762009-01-04 Juanma Barranquero <lekktu@gmail.com>
11777
11778 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
11779 (utc_base): Declare as ULONGLONG, not long double.
11780 (convert_time_raw): Delete.
11781 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
11782 (initialize_utc_base): New function.
11783 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
11784 (convert_from_time_t): Use initialize_utc_base; compute result with
11785 64-bit arithmetic.
11786 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
11787
c4605e09
EZ
117882009-01-03 Eli Zaretskii <eliz@gnu.org>
11789
9acef61c 11790 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
11791 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
11792 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
11793 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
11794 [!subprocesses]: Define.
11795 (syms_of_process) [!subprocesses]: Intern and staticpro them.
11796 (Flist_system_processes, Fsystem_process_attributes)
11797 [!subprocesses]: Call list_system_processes and
11798 system_process_attributes instead of returning Qnil.
11799
9acef61c
JB
11800 * dosfns.c (system_process_attributes, list_system_processes):
11801 New functions.
c4605e09
EZ
11802
11803 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
11804
11805 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
11806 Don't use the default (no-op) implementation.
11807
8b7d0a16
JR
118082009-01-03 Jason Rumney <jasonr@gnu.org>
11809
a6d46bc1
JR
11810 * keyboard.c (parse_modifiers_uncached): Wheel events are
11811 clicks (bug#687).
11812
8b7d0a16
JR
11813 * w32term.c (x_query_colors, x_query_color): New functions.
11814
11815 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
11816 (svg_load_image): Cast returned pointers from dynamically loaded
11817 functions. Eliminate W32 specific code.
11818
bfe11752
DN
118192009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
11820
89e2438a
DN
11821 * nsfns.m (x_set_foreground_color, x_set_background_color)
11822 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
11823 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
11824 x_ prefix instead of ns_. Update references.
11825 (syms_of_nsfns): Add a FIXME comment.
11826
11827 * nsterm.m (x_set_cursor_type): New prototype.
11828 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
11829
bfe11752
DN
11830 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
11831 for Solaris instead of incorrectly providing Qutime and Qcutime.
11832
031da700
EZ
118332009-01-02 Eli Zaretskii <eliz@gnu.org>
11834
11835 * w32.c (process_times): Compute sum of utime and stime.
11836 (system_process_attributes): Add Qtime to the alist.
11837
11838 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
11839 and add them to the alist.
11840
11841 * process.c (top level) <Qtime, Qctime>: New variables.
11842 (syms_of_process): staticpro them.
11843 (Fsystem_process_attributes): Add their documentation to the doc
11844 string.
11845
11846 * process.h: Declare Qtime and Qctime.
11847
df23bf08
JR
118482009-01-02 Jason Rumney <jasonr@gnu.org>
11849
9acef61c 11850 * image.c (Qgobject): New symbol.
df23bf08
JR
11851 (syms_of_image): Initialize it.
11852 (init_svg_functions): Load some functions from gobject library.
11853
5bbdf7aa
DN
118542009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
11855
11856 * frame.c (make_terminal_frame): Remove redundant code and useless
11857 block.
11858
63136da6
AS
118592009-01-01 Andreas Schwab <schwab@suse.de>
11860
11861 * process.c (conv_sockaddr_to_lisp): Add workaround for
11862 getsockname bug on BSD.
11863
9ef69046
CY
118642009-01-01 Chong Yidong <cyd@stupidchicken.com>
11865
d6fafbe0
CY
11866 * xfns.c (x_create_tip_frame): Set border width of the X window.
11867
51d861de 11868 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 11869
f9c34147
JR
118702009-01-01 Jason Rumney <jasonr@gnu.org>
11871
9acef61c 11872 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
11873 Don't block input, as per earlier xterm.c changes.
11874
f5497e45
AR
118752008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
11876
11877 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
11878 (ns_appkit_version_int): New function.
11879 (x-server-version): Use ns_appkit_version_int and follow 21+
11880 convention of returning 3 integers.
11881
c19cab20
KH
118822008-12-30 Kenichi Handa <handa@m17n.org>
11883
11884 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
11885 (CHAR_SURROGATE_PAIR_P): New macro.
11886
11887 * font.h (struct font_driver): New member get_variation_glyphs.
11888
9acef61c 11889 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
11890 (Ffont_variation_glyphs): New function.
11891 (syms_of_font): Defsubr it.
11892
11893 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
11894 ftfont_variation_glyphs.
11895 (setup_otf_gstring): New function.
11896 (ftfont_drive_otf): Use it.
11897 (ftfont_shape_by_flt): Handle variation selector.
11898 (ftfont_variation_glyphs): New function.
11899
28cd591f
MR
119002008-12-30 Martin Rudalics <rudalics@gmx.at>
11901
11902 * frame.c (Vemacs_iconified): Remove.
11903
7f714baf
JR
119042008-12-30 Jason Rumney <jasonr@gnu.org>
11905
11906 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 11907 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 11908
9d2d22ab
CY
119092008-12-30 Chong Yidong <cyd@stupidchicken.com>
11910
11911 * indent.c (Fvertical_motion): Don't advance iterator if we have
11912 reseated to the desired position.
11913
11914 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
11915 checking for pos match.
11916
545312c2
KH
119172008-12-30 Kenichi Handa <handa@m17n.org>
11918
1ede3eb6
KH
11919 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
11920 just get the low 8-bit of the code.
11921
545312c2
KH
11922 * font.c (font_intern_prop): Validate str as multibyte.
11923
bd7bbf29
DN
119242008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
11925
31e0750e
DN
11926 * dispextern.h (struct face): Move lface and hash from the middle
11927 of bitfields.
11928
bd7bbf29
DN
11929 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
11930
b5672e7c
DN
119312008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
11932
11933 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
11934 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
11935 instead of intervals.h.
11936
d704470f
AS
119372008-12-26 Andreas Schwab <schwab@suse.de>
11938
11939 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
11940 cons.
11941
54b33868
MR
119422008-12-26 Martin Rudalics <rudalics@gmx.at>
11943
11944 * textprop.c (Qminibuffer_prompt): New variable.
11945 (syms_of_textprop): Initialize it.
11946 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
11947 in minibuffer-prompt face. (Bug#1662)
11948
40b615d6
JR
119492008-12-25 Jason Rumney <jasonr@gnu.org>
11950
11951 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
11952
baae5c2d
JR
119532008-12-24 Jason Rumney <jasonr@gnu.org>
11954
11955 * ralloc.c (r_alloc_reset_variable): New function.
11956
11957 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 11958 record of what points where. (Bug#716)
baae5c2d 11959
a9051c88
DN
119602008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
11961
11962 * minibuf.c (read_minibuf): Follow the non-interactive case when
11963 running as a daemon, before detaching.
11964
8b146312
AS
119652008-12-22 Andreas Schwab <schwab@suse.de>
11966
11967 * buffer.c (init_buffer): Use realloc instead of xrealloc.
11968 * gtkutil.c (free_widget_value): Use xfree instead of free.
11969
56f2de10
MR
119702008-12-22 Martin Rudalics <rudalics@gmx.at>
11971
11972 * frame.c (delete_frame): New function derived from
11973 Fdelete_frame to handle Qnoelisp value for FORCE argument.
11974 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
11975 (Fdelete_frame): Call delete_frame. Remove line from doc-string
11976 saying that FORCE non-nil doesn't run `delete-frame-functions'.
11977 * frame.h: Extern delete_frame.
11978 * window.c (window_loop):
11979 * terminal.c (delete_terminal):
11980 * xterm.c (x_connection_closed):
11981 * xfns.c (Fx_hide_tip):
9acef61c 11982 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 11983
1fc200d6
JR
119842008-12-21 Jason Rumney <jasonr@gnu.org>
11985
11986 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
11987 when character maps to .notdef character.
11988
5e252df2
SM
119892008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
11990
11991 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
11992
99b72cc4
JR
119932008-12-20 Jason Rumney <jasonr@gnu.org>
11994
11995 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 11996 a graphical frame on Windows. (Bug#1325)
99b72cc4 11997
acc49a52
JD
119982008-12-20 Jan Djärv <jan.h.d@swipnet.se>
11999
12000 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
12001
6ea15123
CY
120022008-12-20 Chong Yidong <cyd@stupidchicken.com>
12003
12004 * minibuf.c (Fread_buffer): Doc fix.
12005
b2dab6c8
JR
120062008-12-20 Jason Rumney <jasonr@gnu.org>
12007
54ea0c87 12008 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 12009 server name in UNC paths. (Bug#719)
54ea0c87 12010
b2dab6c8 12011 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 12012 charbuf. (Bug#1035)
b2dab6c8 12013
6d1921be
DN
120142008-12-19 Daniel Engeler <engeler@gmail.com>
12015
12016 * sysdep.c (serial_configure): Fix typo.
12017
53934c98
DN
120182008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
12019
12020 * sysdep.c: Include alloca.h.
f4f634e8
DN
12021 (system_process_attributes): Add implementation for Solaris.
12022
12023 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 12024
06e111a6
DN
120252008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
12026
12027 Reorganize implementation of Flist_system_processes and
12028 Fsystem_process_attributes. No functional changes.
12029 * process.c: Don't #include pwd.h, grp.h and limits.h.
12030 (Flist_system_processes): Just call list_system_processes.
12031 (Fsystem_process_attributes): Just call system_process_attributes.
12032 (procfs_list_system_processes, time_from_jiffies)
12033 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
12034 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
12035
12036 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
12037 (list_system_processes): Rename from
12038 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
12039 Provide a do nothing implementation.
12040 (system_process_attributes): Rename from
12041 procfs_list_system_processes.
12042 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 12043 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
12044
12045 * w32.c (list_system_processes): Rename from
12046 w32_list_system_processes.
12047 (system_process_attributes): Rename from
12048 w32_system_process_attributes.
12049
12050 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
12051
12052 * process.h (w32_list_system_processes)
12053 (w32_system_process_attributes): Remove.
362654a6
JB
12054 (list_system_processes, system_process_attributes):
12055 New prototypes.
06e111a6 12056
6a705b23
KH
120572008-12-19 Kenichi Handa <handa@m17n.org>
12058
12059 * xfont.c (xfont_decode_coding_xlfd): New function.
12060 (xfont_encode_coding_xlfd): New function.
12061 (xfont_list_pattern): Decode XLFD by iso-8859-1.
12062 (xfont_list): Decode and encode XLFD by iso-8859-1.
12063 (xfont_match): Likewise.
12064 (xfont_list_family): Likewise.
12065 (xfont_open): Likewise.
12066
d66c0241 12067 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
12068 names are utf-8.
12069
d66c0241 12070 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
12071 names are utf-8.
12072
5a130941
JD
120732008-12-18 Jan Djärv <jan.h.d@swipnet.se>
12074
12075 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
12076 changed.
bfd20325
JD
12077 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
12078 clicked on a detached tool bar button.
5a130941 12079
fd95644b
DN
120802008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
12081
12082 * emacs.c (main): Print and error and exit when no data is read
12083 from the pipe.
12084
e6eee6ae
JR
120852008-12-17 Jason Rumney <jasonr@gnu.org>
12086
12087 * w32font.c (w32font_has_char): Always return -1.
12088
a35dd56b
KH
120892008-12-16 Kenichi Handa <handa@m17n.org>
12090
12091 * font.c (font_open_entity): Fix previous change.
12092
0e3635c2
DN
120932008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
12094
12095 * process.c: Include <limits.h>.
12096
d4835507 120972008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
12098
12099 * font.c (font_update_drivers): Fix mistake in reconstructing the
12100 driver list.
12101
121022008-12-16 Chong Yidong <cyd@stupidchicken.com>
12103
12104 * font.c (font_clear_cache): Fix format of font cache data.
12105
e2cbc401
CY
121062008-12-15 Chong Yidong <cyd@stupidchicken.com>
12107
12108 * xftfont.c (xftfont_open): Free Xft font pattern if
12109 XftFontOpenPattern fails.
12110
12111 * xterm.c (x_free_frame_resources): Remove extraneous call to
12112 free_frame_faces.
12113
b131d535
CY
121142008-12-13 Chong Yidong <cyd@stupidchicken.com>
12115
12116 * xterm.c (x_delete_display): Move xim_close_dpy call to
12117 x_delete_terminal.
12118 (x_delete_terminal): Call xim_close_dpy.
12119
e6df5336
JR
121202008-12-13 Jason Rumney <jasonr@gnu.org>
12121
12122 * w32font.c (intern_font_name): New function.
12123 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
12124 (w32font_open_internal, Fx_select_font): Decode font name.
12125 (fill_in_logfont, list_all_matching_fonts): Encode font name.
12126
12127 * w32font.h (intern_font_name): Declare new function.
12128
12129 * w32uniscribe.c (add_opentype_font_name_to_list):
12130 Use intern_font_name.
12131
20d68145
CY
121322008-12-13 Chong Yidong <cyd@stupidchicken.com>
12133
9f2554de
CY
12134 * frame.c (Fdelete_frame): Call free_font_driver_list.
12135
3d9bec9a
CY
12136 * font.c (free_font_driver_list): Implement missing function.
12137
20d68145
CY
12138 * w32term.c (w32_term_init): Don't initialize the image cache
12139 here; it will be done in init_frame_faces.
12140
12141 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
12142 (struct x_display_info): Remove unused member null_pixel. New
12143 member xim_callback_data.
12144
12145 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
12146 (xim_initialize): Save pointer to callback function data.
12147 (xim_close_dpy): Free callback function data. Call XCloseIM,
12148 reverting 2008-11-04 change by David Smith.
12149 (x_term_init): Don't initialize the image cache here; it will be
12150 done in init_frame_faces. Remove ancient "null_pixel" cruft.
12151 (x_delete_display): Free x_dnd_atoms member.
12152
96f9306b
KH
121532008-12-13 Kenichi Handa <handa@m17n.org>
12154
6dec9044
JB
12155 * font.c (font_rescale_ratio): Moved from xfaces.c.
12156 Argument type changed. Handle a font-spec too.
96f9306b 12157 (font_score): Check Vface_font_rescale_alist.
6dec9044 12158 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
12159
12160 * xfaces.c (font_rescale_ratio): Moved to font.c.
12161
8d5b4964
CY
121622008-12-13 Chong Yidong <cyd@stupidchicken.com>
12163
12164 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
12165
e6df5336
JR
121662008-12-12 Jason Rumney <jasonr@gnu.org>
12167
12168 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
12169 Vwindow_system_version to the real w32 major version.
12170
97c6058a
DN
121712008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
12172
12173 * term.c (init_tty): Move setting the terminal name before the
12174 potential user: maybe_fatal.
12175
ec4e88d7
CY
121762008-12-11 Chong Yidong <cyd@stupidchicken.com>
12177
d4835507
JB
12178 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
12179 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 12180
b4233ec9
JR
121812008-12-11 Jason Rumney <jasonr@gnu.org>
12182
8ec71e23 12183 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 12184 SYMBOL_CHARSET. (Bug#547)
8ec71e23 12185
b4233ec9 12186 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 12187 size for surrogates. (Bug#1096, bug#872)
b4233ec9 12188
011a0143
JB
121892008-12-11 Juanma Barranquero <lekktu@gmail.com>
12190
12191 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
12192
3c309f34
JB
121932008-12-11 Juanma Barranquero <lekktu@gmail.com>
12194
12195 * process.c (Fsystem_process_attributes, syms_of_process):
12196 Fix typo in name of Ssystem_process_attributes.
12197 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
12198
fedc6ab5
JB
121992008-12-11 Juanma Barranquero <lekktu@gmail.com>
12200
12201 * syntax.c (Fmodify_syntax_entry): Doc fix.
12202
ba3de0e8
JB
122032008-12-10 Juanma Barranquero <lekktu@gmail.com>
12204
12205 * font.c (Ffont_spec): Move usage to end of docstring.
12206
174f1c74
JR
122072008-12-10 Jason Rumney <jasonr@gnu.org>
12208
12209 * w32font.c (Qcham): New symbol.
12210 (font_supported_scripts): Add cham, and comments for other new
12211 scripts in bitfield from OpenType spec.
9d32f818
JR
12212 (add_font_entity_to_list): Limit unicode-sip fonts to those that
12213 contain characters beyond the bmp.
174f1c74 12214
7b649478
KH
122152008-12-10 Kenichi Handa <handa@m17n.org>
12216
12217 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 12218 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
12219 Qunicode_sip.
12220
2133e2d1
JB
122212008-12-10 Juanma Barranquero <lekktu@gmail.com>
12222
12223 * coding.c (QCdefault_char): Rename from QCdefalut_char.
12224 (Fcoding_system_put): Use QCdefault_char.
12225 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
12226
9af886ee
CY
122272008-12-09 Chong Yidong <cyd@stupidchicken.com>
12228
74d819eb
CY
12229 * xftfont.c (syms_of_xftfont): Fix typo.
12230
4ccfa1c0 12231 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 12232
7c19d3ae
DN
122332008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
12234
12235 * emacs.c (main): Close daemon_pipe on exec.
12236
567826bb
CY
122372008-12-08 Chong Yidong <cyd@stupidchicken.com>
12238
12239 * termchar.h (struct tty): New members termcap_term_buffer and
12240 termcap_strings_buffer.
12241
12242 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 12243 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
12244 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
12245 All callers changed.
12246 (init_tty): Store termcap data and string buffers in new struct
12247 tty members termcap_term_buffer and termcap_strings_buffer.
12248 (delete_tty): Free them.
4ccfa1c0 12249 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 12250
aa96c42b
SZ
122512008-12-07 Seiji Zenitani <zenitani@mac.com>
12252
12253 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 12254 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 12255
b7e1d896
CY
122562008-12-06 Chong Yidong <cyd@stupidchicken.com>
12257
12258 * coding.c (make_conversion_work_buffer): Disable buffer
12259 modification hooks in the work buffer.
12260
b5ec91a5
EZ
122612008-12-05 Eli Zaretskii <eliz@gnu.org>
12262
12263 * process.c (procfs_system_process_attributes): If `nread' has a
12264 negative value, assign zero to it.
12265
a5d2a52b
CY
122662008-12-05 Chong Yidong <cyd@stupidchicken.com>
12267
68c5540b 12268 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 12269
7bf1bb21
KH
122702008-12-05 Kenichi Handa <handa@m17n.org>
12271
12272 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
12273 second character is a combining character.
12274
2fdc7d00
EZ
122752008-12-05 Eli Zaretskii <eliz@gnu.org>
12276
12277 * process.c (procfs_system_process_attributes): Don't use cmd,
12278 cmdsize, and q without initializing them first.
12279
bf6bfba8
JR
122802008-12-04 Jason Rumney <jasonr@gnu.org>
12281
12282 * w32font.c (w32font_draw): Initialize orig_clip before getting
12283 it, and delete it when finished.
12284
a3b1a468
DN
122852008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
12286
12287 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
12288 case when running as a daemon before detaching.
12289
8b8be8eb
JB
122902008-12-03 Juanma Barranquero <lekktu@gmail.com>
12291
805f2638 12292 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 12293
b1bde622
KH
122942008-12-03 Kenichi Handa <handa@m17n.org>
12295
e500c47d
KH
12296 * font.c (font_at): Set `multibyte' at first.
12297
ca516334
KH
12298 * coding.c (decode_coding_charset): Check type of an element of
12299 vector VALIDS.
7bf1bb21 12300 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 12301
4ccfa1c0 12302 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
12303 (font_for_char): Likewise.
12304
1e5ecd37
CY
123052008-12-03 Chong Yidong <cyd@stupidchicken.com>
12306
d5b01609 12307 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
12308 (font_update_lface): Handle fonts with corrupted size specs,
12309 i.e. non-int and non-float.
d5b01609 12310
11e3a6e4 12311 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 12312 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 12313 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 12314
ab06788b
CY
12315 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
12316
1e5ecd37 12317 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 12318 underline_minimum_offset for underline position.
1e5ecd37 12319
63c125ab
DN
123202008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
12321
12322 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
12323
12324 * character.c (c_string_width): Specify the type for LEN.
12325
3a8406e1
KH
123262008-12-03 Kenichi Handa <handa@m17n.org>
12327
4ccfa1c0 12328 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 12329 (decode_coding_utf_8): Likewise.
4ccfa1c0 12330 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 12331 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 12332
651df7d9
CY
123332008-12-02 Chong Yidong <cyd@stupidchicken.com>
12334
12335 * keyboard.c (make_lispy_position): Only use PT if the selected
12336 window is current.
12337
1f625c6c
AS
123382008-12-02 Andreas Schwab <schwab@suse.de>
12339
f7741ce9
AS
12340 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
12341
1f625c6c
AS
12342 * doprnt.c (doprnt1): Fix size of charbuf.
12343
92bc2678
CY
123442008-12-02 Chong Yidong <cyd@stupidchicken.com>
12345
12346 * keyboard.c (timer_check): Revert last change.
12347
93b9e8cc
JB
123482008-12-02 Juanma Barranquero <lekktu@gmail.com>
12349
12350 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
12351
fd7a37d5
JB
123522008-12-01 Juanma Barranquero <lekktu@gmail.com>
12353
12354 * makefile.w32-in: Update dependencies.
12355 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
12356
c115043b
AS
123572008-12-01 Andreas Schwab <schwab@suse.de>
12358
12359 * font.c (register_font_driver): Use xmalloc.
12360 (font_put_frame_data): Likewise.
12361
f5668d2a
CY
123622008-12-01 Chong Yidong <cyd@stupidchicken.com>
12363
860d96be
CY
12364 * xfaces.c (realize_x_face): Make abort condition clearer.
12365
f5668d2a
CY
12366 * gtkutil.c (update_frame_tool_bar): Initialize variable.
12367
379c17e7
CY
123682008-11-30 Chong Yidong <cyd@stupidchicken.com>
12369
12370 * keyboard.c (timer_check): After a timer runs, ensure that the
12371 selected window's buffer is current.
12372
35f36d65
JB
123732008-11-30 Juanma Barranquero <lekktu@gmail.com>
12374
f952c61c
JB
12375 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
12376 It was accidentally restored by the Unicode merge.
12377
35f36d65
JB
12378 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
12379
b23077df
JB
123802008-11-29 Juanma Barranquero <lekktu@gmail.com>
12381
12382 * w32proc.c: Include "coding.h".
12383 (Fw32_short_file_name): Encode filename passed to Windows API.
12384 (Fw32_long_file_name): Encode filename passed to Windows API and
12385 decode back the result. (Bug#1433)
12386
b8ebe9dd
KH
123872008-11-29 Kenichi Handa <handa@m17n.org>
12388
8cc53f96
KH
12389 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
12390 not before accessing it.
12391
b8ebe9dd
KH
12392 * charset.c (Fdefine_charset_internal): After calculating
12393 min_char, max_char, and fastmap, copy the charset structure again.
12394 (encode_char): Fix the previous change.
12395
59bc82c0
SZ
123962008-11-28 Seiji Zenitani <zenitani@mac.com>
12397
12398 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
12399
12400 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
12401
12402 * nsterm.m (x_set_frame_alpha): New function.
12403
32247e3d
EZ
124042008-11-27 Eli Zaretskii <eliz@gnu.org>
12405
12406 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
12407
b003e5ff
JB
124082008-11-27 Juanma Barranquero <lekktu@gmail.com>
12409
12410 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
12411 pointer to check_face_name.
12412
708550f5
KH
124132008-11-27 Kenichi Handa <handa@m17n.org>
12414
12415 * category.h (SET_CATEGORY_SET): Call set_category_set.
12416 (set_category_set): Extern it.
12417
12418 * category.c (hash_get_category_set): New function.
12419 (Fmodify_category_entry): Adjusted for the change of
12420 char_table_ref_and_range. Call hash_get_category_set to get a
12421 category set to store in the table.
12422
12423 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
12424 Funify_charset.
12425
2ae37cf0 12426 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
12427 (DECODE_CHAR): Check if the decoder vector is ready.
12428 (ENCODE_CHAR): Check if the encoder char-table is ready.
12429 (maybe_unify_char): Extern it.
12430
12431 * charset.c (Vchar_unified_charset_table): Delete it.
12432 (inhibit_load_charset_map): New variable.
12433 (temp_charset_work): New variable.
12434 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
12435 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
12436 New macros.
12437 (load_charset_map): Meaning of control_flag changed. If
12438 inhibit_load_charset_map is nonzero, setup a table in
12439 temp_charset_work.
12440 (load_charset): New argument control_flag.
12441 (map_charset_for_dump): New function.
12442 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
12443 map_charset_for_dump.
12444 (Fdefine_charset_internal): If the charset method is MAP, load
12445 mapping tables by calling load_charset.
12446 (Funify_charset): Don't load a mapping table but directly set
12447 Vchar_unify_table.
12448 (maybe_unify_char): New function.
12449 (decode_char): Don't handle the deleted method MAP_DEFERRED.
12450 Handle the case of inhibit_load_charset_map being nonzero.
12451 (encode_char): Don't handle the deleted method MAP_DEFERRED.
12452 Handle the case of inhibit_load_charset_map being nonzero.
12453 (Fclear_charset_maps): Just free temp_charset_work.
12454 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
12455 variable.
12456
12457 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
12458 change of char_table_ref_and_range.
12459 (char_table_ref_and_range): Change the meaning of argument FROM
12460 and TO. Now the caller must provide initial values for *FROM
12461 and *TO.
12462
12463 * fontset.c (fontset_add): Adjusted for the change of
12464 char_table_ref_and_range.
12465 (fontset_get_font_group): Likewise.
12466 (Ffontset_info): Likewise.
12467
12468 * keymap.c (describe_vector): Adjusted for the change of
12469 char_table_ref_and_range. For char-table, put boundary between
12470 non-ASCII and 8-bit characters.
12471
12472 * print.c (print_object): For bool-vector, delete unnecessary
12473 check of ASCII_BYTE_P.
12474
9196133b
JR
124752008-11-26 Jason Rumney <jasonr@gnu.org>
12476
12477 * w32font.c (w32font_open_internal): Don't include external
9acef61c 12478 leading in font height. (Bug#879)
9196133b 12479
9f688acf
GM
124802008-11-26 Glenn Morris <rgm@gnu.org>
12481
12482 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
12483 redefinition with ifdef. (Bug#1383)
12484
90d19aff
AR
124852008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
12486
12487 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
12488
4ccfa1c0 124892008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
12490
12491 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
12492 New EmacsView methods.
12493 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
12494 Fixes bug #1048,1357,1414.
12495
124962008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
12497
12498 Fix bug #1362.
12499 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
12500 is not an indexed color.
12501 * nsterm.m (free_indexed_color): Add argument checking.
12502 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
12503
e7d5ecb3
CY
125042008-11-24 Chong Yidong <cyd@stupidchicken.com>
12505
12506 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
12507 Document confirm-after-completion value for
12508 minibuffer-completion-confirm.
12509
c285743c
JR
125102008-11-24 Jason Rumney <jasonr@gnu.org>
12511
12512 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
12513 warning.
12514
b0857706
JR
125152008-11-23 Jason Rumney <jasonr@gnu.org>
12516
12517 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
12518 restored before returning.
12519
12520 * w32font.c (check_face_name): New function.
12521 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 12522 fonts. (Bug#642)
b0857706 12523
ee50ff07
MR
125242008-11-22 Martin Rudalics <rudalics@gmx.at>
12525
12526 * buffer.c (Fswitch_to_buffer): Reword and mention new option
12527 confirm-nonexistent-file-or-buffer in doc-string.
12528
b8ff72fa
SM
125292008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
12530
12531 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
12532 Fix copy/paste typo. Add checks.
12533
cee53ed4
KH
125342008-11-21 Kenichi Handa <handa@m17n.org>
12535
12536 * coding.c (detect_coding_iso_2022): Reject invalid composition
12537 sequence.
12538 (DECODE_COMPOSITION_START): If the current source is the last
12539 block, and the current composition doesn't end, regard this
12540 sequence as invalid.
12541 (decode_coding_iso_2022): Handle invalid composition sequence.
12542
f6ef1e65
MR
125432008-11-20 Martin Rudalics <rudalics@gmx.at>
12544
12545 * window.c (coordinates_in_window): Don't return
12546 ON_VERTICAL_BORDER for the rightmost position of a mode/header
12547 line when the window is not the rightmost one. (Bug#1372)
12548
e08b1705
MR
125492008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
12550
12551 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
12552
ad98e89f
EZ
125532008-11-15 Eli Zaretskii <eliz@gnu.org>
12554
12555 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
12556 and bright_bg if noninteractive is non-zero.
12557
fb098a4b
CY
125582008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12559
12560 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
12561 x_draw_glyph_string_background.
12562
12563 * w32term.c (x_draw_glyph_string): Likewise.
12564
ce952b6e
CY
125652008-11-15 Chong Yidong <cyd@stupidchicken.com>
12566
12567 * xterm.c (x_draw_glyph_string): Stop drawing the background of
12568 the next glyph string once past the overhang width.
12569
12570 * nsterm.m (ns_draw_glyph_string): Likewise.
12571
12572 * w32term.c (x_draw_glyph_string): Likewise.
12573
26ea7079
CY
125742008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
12575
12576 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
12577 double file close.
12578
1c33c906
MR
125792008-11-14 Martin Rudalics <rudalics@gmx.at>
12580
12581 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
12582 dedicated status of window before attempting to display another
12583 buffer in it.
12584
8fc29035
JB
125852008-11-14 Juanma Barranquero <lekktu@gmail.com>
12586
12587 * msdos.c (Fmsdos_long_file_names):
12588 (syms_of_msdos) <dos-unsupported-char-glyph>:
12589 * dosfns.c (Fint86): Fix typos in docstrings.
12590
55fb4286
EZ
125912008-11-14 Eli Zaretskii <eliz@gnu.org>
12592
12593 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
12594
3fda0315
KY
125952008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
12596
12597 * puresize.h (BASE_PURESIZE): Increase to 1260000.
12598
7e849c17
CY
125992008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
12600
12601 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
12602
12603 * frame.h: Negative alpha means "don't touch".
12604
12605 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
12606
12607 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
12608
b9fd67bd
DN
126092008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
12610
12611 * hftctl.c:
12612 * chpdef.h:
12613 * acldef.h: Remove files used only for systems no longer supported.
12614
12615 * Makefile.in: Fix .o alphabetical ordering.
12616 (hftctl.o): Remove dependency, file removed.
12617 (keymap.o, print.o): Depend on charset.h.
12618
d5998e03
KH
126192008-11-10 Kenichi Handa <handa@m17n.org>
12620
2ae37cf0 12621 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 12622
be70e183
CY
126232008-11-08 Chong Yidong <cyd@stupidchicken.com>
12624
12625 * dired.c (file_name_completion): If completion_ignore_case is
12626 enabled, ignore case when checking completion-regexp-list.
12627
7cf94eac
EZ
126282008-11-08 Eli Zaretskii <eliz@gnu.org>
12629
12630 * vm-limit.c (get_lim_data): Fix last change.
12631
ee107a89
KH
126322008-11-08 Kenichi Handa <handa@m17n.org>
12633
12634 * character.c (Fget_byte): New function.
12635 (syms_of_character): Defsubr Fget_byte.
12636
5fd15622
CY
126372008-11-07 Chong Yidong <cyd@stupidchicken.com>
12638
12639 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
12640 cursor position is valid after scrolling.
12641
13d62fad
JB
126422008-11-06 Juanma Barranquero <lekktu@gmail.com>
12643
12644 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
12645
a1dd2936
GM
126462008-11-06 Glenn Morris <rgm@gnu.org>
12647
12648 * xterm.c (handle_one_xevent): Don't let popup menus cause
12649 mouse-autoselect-window related window switching. (Bug#1261)
12650
860cd236
CY
126512008-11-04 David Smith <davidsmith@acm.org> (tiny change)
12652
12653 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
12654
653a3150
AS
126552008-11-04 Andreas Schwab <schwab@suse.de>
12656
12657 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
12658
870f5cac
CY
126592008-11-03 Chong Yidong <cyd@stupidchicken.com>
12660
12661 * xfns.c (Fx_wm_set_size_hint): New function.
12662
1e02f3cb
MR
126632008-11-03 Martin Rudalics <rudalics@gmx.at>
12664
12665 * textprop.c (Fprevious_single_char_property_change): Return 0
12666 when there's no change in a string. (Bug#1301)
12667
e630dfc6
MR
126682008-11-02 Martin Rudalics <rudalics@gmx.at>
12669
12670 * frame.c (do_switch_frame): New argument NORECORD passed to
12671 Fselect_window.
12672 (Fselect_frame): New argument NORECORD passed to
12673 do_switch_frame.
12674 (Fset_frame_selected_window): New argument NORECORD passed to
12675 Fselect_frame.
12676 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
12677 in call of do_switch_frame.
12678 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
12679 Handle NORECORD argument in call of Fselect_frame.
12680 * lisp.h (do_switch_frame, Fselect_frame)
12681 (Fset_frame_selected_window): Adjust declarations.
12682 * window.c (select_frame_norecord): New function.
12683 (run_window_configuration_change_hook): Use it and call
12684 Fselect_frame with NORECORD set.
12685 (Fselect_window): Pass NORECORD to Fselect_frame.
12686 (Fset_window_configuration): Handle NORECORD argument in call of
12687 do_switch_frame.
12688 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
12689 Fset_frame_selected_window.
12690 * keyboard.c (command_loop_1): Handle NORECORD in call of
12691 Fselect_frame (currently ifdefd).
12692
9020b223
GM
126932008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
12694
12695 * emacs.c (USAGE2): Untabify.
12696
793ffee8
SM
126972008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
12698
12699 * composite.c (fill_gstring_header): Fix copy/paste typo.
12700
ab6d1131
MR
127012008-10-31 Martin Rudalics <rudalics@gmx.at>
12702
12703 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
12704 (Fother_window): Rename argument and rewrite doc-string.
12705 (select_window_norecord): Fix return value. (Bug#1276)
12706
601a9cf1
JB
127072008-10-30 Juanma Barranquero <lekktu@gmail.com>
12708
12709 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
12710 new frames overriding foreground for tooltips. Based on similar patch
12711 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
12712
813b0652
CY
127132008-10-29 Chong Yidong <cyd@stupidchicken.com>
12714
12715 * emacs.c (Fdaemon_initialized): Initialize nfd.
12716
4414f58f
MR
127172008-10-29 Martin Rudalics <rudalics@gmx.at>
12718
12719 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
12720 (Fwindow_text_height): Clarify doc-strings.
12721 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
12722 doc-string of window-scroll-functions.
12723
ecdcaa09
RS
127242008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
12725
12726 * category.c (syms_of_category): Fix typo in docstring.
12727
23fe745a
JB
127282008-10-28 Juanma Barranquero <lekktu@gmail.com>
12729
12730 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
12731 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
12732 Fix typos in docstrings.
12733
ff808935
DN
127342008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
12735
12736 * emacs.c (daemon_pipe): Make non-static.
12737 (IS_DAEMON): Move definition ...
12738 * lisp.h (IS_DAEMON): ... here.
12739 (daemon_pipe): Declare.
12740 (is_daemon): Remove.
12741 * dispnew.c (init_display): Use IS_DAEMON.
12742
fc012771
SM
127432008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
12744
12745 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
12746 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
12747
12748 * emacs.c (is_daemon): Remove.
12749 (main): Don't set is_daemon.
12750 (IS_DAEMON): New macro.
12751 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 12752 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
12753 parent exits.
12754 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
12755
d8bdbe6f
CY
127562008-10-27 Chong Yidong <cyd@stupidchicken.com>
12757
d1a072bf
CY
12758 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
12759 over-sized glyph, draw it with the default glyph width.
12760
e2e325aa
CY
12761 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
12762 glyph, draw it with the default glyph width.
12763
12764 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
12765 glyph, draw it with the default glyph width.
12766
d8bdbe6f
CY
12767 * xdisp.c (try_scrolling): When computing the distance from the
12768 scroll margin to PT, try moving some distance past the window
12769 bottom before giving up.
12770
7bfac547
MR
127712008-10-27 Martin Rudalics <rudalics@gmx.at>
12772
12773 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
12774 (Fset_window_buffer): Explain in doc-string that a window can be
12775 "strongly" dedicated to its buffer.
12776
4ff029f6
DN
127772008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
12778
12779 * emacs.c (daemon_name): New variable.
12780 (main): Deal with --daemon=SERVER_NAME.
12781 (Fdaemonp): Return a name if one was passed to --daemon.
12782
5790ef40
DN
127832008-10-26 Romain Francoise <romain@orebokech.com>
12784
f9bd0df9 12785 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
12786 (main): Create a pipe before forking, make the parent exit only after
12787 the child has closed its end of the pipe. Move closing the
12788 descriptors ...
12789 (Fdaemon_initialized): ... here. New function.
12790
f5385255
SM
127912008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
12792
4d632321
SM
12793 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
12794 the previous unoptimized table.
12795
f5385255
SM
12796 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
12797 the distinction between non-nil and non-t value of `dedicated'.
12798
6c56a0f3
CY
127992008-10-25 Chong Yidong <cyd@stupidchicken.com>
12800
12801 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 12802 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 12803
fec89261
MR
128042008-10-25 Martin Rudalics <rudalics@gmx.at>
12805
12806 * window.c (Fget_buffer_window, Fdelete_windows_on)
12807 (Freplace_buffer_in_windows): Make buffer argument optional and
12808 rename to buffer_or_name.
12809
34fcddd0
CY
128102008-10-24 Chong Yidong <cyd@stupidchicken.com>
12811
f5385255
SM
12812 * xdisp.c (handle_single_display_spec, handle_display_prop):
12813 Undo 2005-05-16 change.
34fcddd0
CY
12814 (handle_stop): Pop iterator if it's loaded with an empty string.
12815 (get_overlay_strings_1): Don't save iterator if it's loaded with
12816 an empty string (bug#1201).
12817
064766f2
KH
128182008-10-24 Kenichi Handa <handa@m17n.org>
12819
12820 * ftfont.c (ftfont_otf_features): Fix previous change.
12821 (ftfont_otf_capability): Check FeatureList.FeatureCount before
12822 calling ftfont_otf_features.
12823
f9bd0df9 128242008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
12825
12826 * font.c (font_match_p): Fix for the case that a vector of
12827 characters is in script-representative-chars.
12828
1dae9197
MA
128292008-10-24 Michael Albinus <michael.albinus@gmx.de>
12830
12831 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 12832 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
12833 (xd_read_queued_messages): Catch Qdbus_error from the macros.
12834 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 12835 macro. (Bug#1186)
1dae9197 12836
f9bd0df9 128372008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
12838
12839 * s/sol2-10.h: New file.
12840
878a4584
JB
128412008-10-23 Juanma Barranquero <lekktu@gmail.com>
12842
12843 * xdisp.c (fill_glyph_string): Fix typo in source (though the
12844 poor beast has survived 9+ years and the jump from xterm.c!).
12845
cd265ca6
MR
128462008-10-23 Martin Rudalics <rudalics@gmx.at>
12847
12848 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
12849 Reword doc-string.
f5385255 12850 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 12851
472a4dc9
JB
128522008-10-23 Juanma Barranquero <lekktu@gmail.com>
12853
12854 * character.c (syms_of_character) <script-representative-chars>:
12855 <unicode-category-table>: Doc fixes.
12856
159bd5a2
NF
128572008-10-23 Noah Friedman <friedman@splode.com>
12858
12859 * coding.c (make_conversion_work_buffer): Check that
12860 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
12861 Fget_buffer_create.
12862
49f9c344
KH
128632008-10-23 Kenichi Handa <handa@m17n.org>
12864
12865 * font.c (font_add_log): Check the values of extra properties.
12866
12bb3111
MR
128672008-10-22 Martin Rudalics <rudalics@gmx.at>
12868
12869 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
12870 Reword doc-string.
12871 (Fset_window_parameter): Use NILP.
12872 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 12873 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 12874
bbeb4e99
JB
128752008-10-22 Juanma Barranquero <lekktu@gmail.com>
12876
12877 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
12878
128792008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
12880
12881 * nsfns.m (ns_appkit_version): New function.
12882 (x-server-version): Use it.
12883 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
12884 (x-server-vendor): Don't check_ns().
12885
12886 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
12887
a9b555d3
JB
128882008-10-22 Juanma Barranquero <lekktu@gmail.com>
12889
12890 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
12891 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
12892
4626499f
KH
128932008-10-22 Kenichi Handa <handa@m17n.org>
12894
e3681952
KH
12895 * syntax.c (scan_words): Call word_boundary_p instead of comparing
12896 scripts.
12897
4626499f
KH
12898 * category.c (word_boundary_p): Check scripts instead of charset.
12899 Handle nil value in word-separating-categories and
12900 word-combining-categories.
12901 (syms_of_category): Fix docstrings of word-separating-categories
12902 and word-combining-categories.
12903
1560f91a
EZ
129042008-10-21 Eli Zaretskii <eliz@gnu.org>
12905
12906 * coding.c (Fencode_coding_region, Fdecode_coding_region)
12907 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
12908
f4668441
MR
129092008-10-21 Martin Rudalics <rudalics@gmx.at>
12910
12911 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
12912 Rename arg "buffer" to "buffer_or_name".
12913 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
12914 it optional.
12915 (no_switch_window): Remove since the return value is not used.
a9b555d3 12916 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
12917 Consider window as dedicated when Fwindow_dedicated_p returns a
12918 non-nil value.
12919 * lisp.h: Remove prototype for no_switch_window.
12920
fd75ddb2
JD
129212008-10-21 Jan Djärv <jan.h.d@swipnet.se>
12922
12923 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 12924 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 12925
07295713
KH
129262008-10-21 Kenichi Handa <handa@m17n.org>
12927
12928 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
12929 check Vlatin_extra_code_table.
12930
712adc82
EZ
129312008-10-20 Eli Zaretskii <eliz@gnu.org>
12932
12933 * fileio.c (Fset_file_modes): Doc fix.
12934
f549eb0b
MA
129352008-10-19 Michael Albinus <michael.albinus@gmx.de>
12936
12937 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
12938 in arrays.
12939
aac0c6e3
MR
129402008-10-19 Martin Rudalics <rudalics@gmx.at>
12941
12942 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
12943 Mention kill-buffer in doc-string.
12944 (Fset_window_buffer): Reinsert tem check removed in last commit.
12945 (Fenlarge_window, Fshrink_window): Have argument names and
12946 doc-string follow Elisp manual more closely.
12947
129482008-10-18 Eli Zaretskii <eliz@gnu.org>
12949
12950 * fileio.c (Fset_file_modes): Doc fix.
12951
129522008-10-18 Martin Rudalics <rudalics@gmx.at>
12953
12954 * window.c (Fwindow_width, Fset_window_start)
12955 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
12956 (Fdelete_windows_on, Freplace_buffer_in_windows):
12957 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
12958 (Fwindow_dedicated_p): Make window argument optional.
12959 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
12960 (Fset_window_buffer): Respect any non-nil dedicated value for
12961 window. Rename "buffer" argument to "buffer_or_name".
12962
129632008-10-18 Ulrich Mueller <ulm@gentoo.org>
12964
12965 * m/sh3.h: New file, machine description for SuperH.
12966
129672008-10-17 Martin Rudalics <rudalics@gmx.at>
12968
12969 * window.c (Fsplit_window): Rename arg horflag to horizontal.
12970
129712008-10-17 Kenichi Handa <handa@m17n.org>
12972
12973 * ftfont.c (ftfont_otf_features): Fix indexing
12974 gsub_gpos->FeatureList.Feature. Check the validity of indices.
12975
129762008-10-16 Magnus Henoch <mange@freemail.hu>
12977
12978 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
12979 (Fdbus_call_method_asynchronously): Ditto.
12980 This change makes C-h f display the argument list.
12981
129822008-10-16 Chong Yidong <cyd@stupidchicken.com>
12983
12984 * fileio.c (Fexpand_file_name): Doc fix.
12985
12986 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
12987 of :foreground and :background equivalent to unspecified (20.x
12988 compatibility).
12989
129902008-10-15 Eli Zaretskii <eliz@gnu.org>
12991
12992 * buffer.c (syms_of_buffer): Doc fix.
12993
129942008-10-14 Kenichi Handa <handa@m17n.org>
12995
12996 * font.c (font_clear_prop): When clearing font width, clear the
12997 average width field too.
12998
129992008-10-12 Andreas Schwab <schwab@suse.de>
13000
13001 * ftfont.c (ftfont_shape_by_flt): Make static.
13002 * ftfont.h (ftfont_shape_by_flt): Don't declare.
13003
13004 * font.c: Don't include <m17n-flt.h>.
13005
130062008-10-10 Eli Zaretskii <eliz@gnu.org>
13007
13008 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
13009
130102008-10-09 Eli Zaretskii <eliz@gnu.org>
13011
13012 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
13013 away code.
13014
130152008-10-09 Chong Yidong <cyd@stupidchicken.com>
13016
13017 * dispnew.c (update_text_area): Avoid looping due to large glyph
13018 overhangs (bug#1070).
13019
130202008-10-09 Kenichi Handa <handa@m17n.org>
13021
13022 * fontset.c (face_for_char): If face->fontset is negative, just
13023 return ascii_face.
13024
f5385255
SM
13025 * font.c (font_delete_unmatched): Fix previous change.
13026 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
13027
130282008-10-09 Martin Rudalics <rudalics@gmx.at>
13029
13030 * frame.c (Fraise_frame): On text-only terminals select frame in
13031 order to make it visible. (Bug#1061)
13032
130332008-10-08 Chong Yidong <cyd@stupidchicken.com>
13034
13035 * fontset.c (fontset_find_font): Check frame validity.
13036
130372008-10-07 Chong Yidong <cyd@stupidchicken.com>
13038
a9b555d3 13039 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
13040 (xg_display_close): Allow Emacs to close all displays (bug#985).
13041
130422008-10-06 Andreas Schwab <schwab@suse.de>
13043
f5385255 13044 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
13045
130462008-10-06 Chong Yidong <cyd@stupidchicken.com>
13047
f5385255 13048 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 13049
a9b555d3 13050 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
13051
13052 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
13053 during initialization.
13054
130552008-10-04 Eli Zaretskii <eliz@gnu.org>
13056
13057 * xdisp.c (redisplay_internal): If frame switched, redisplay the
13058 whole thing on MSDOS frames as well as on a TTY.
13059
13060 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
13061 well as for TTY.
13062 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
13063 well as on a TTY.
13064
13065 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
13066 as well as for TTY.
13067
13068 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
13069
13070 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
13071 MSDOS frames as well.
13072
130732008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
13074
13075 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
13076 correct arguments.
b71ac3dd 13077 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
13078
130792008-10-03 Glenn Morris <rgm@gnu.org>
13080
13081 * emacs.c (USAGE1): Add --daemon.
13082
130832008-10-02 Eli Zaretskii <eliz@gnu.org>
13084
13085 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
13086 100, so it's in percents as advertised.
13087
130882008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
13089
13090 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
13091 (ns_output.current_cursor, ns_output.desired_cursor)
13092 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
13093 (FRAME_NEW_CURSOR_COLOR): Remove.
13094
13095 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 13096 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
13097 enumeration (HOLLOW_BOX_CURSOR, etc.).
13098
13099 * nsterm.m (ns_frame_rehighlight): Remove commented code.
13100 (draw_window_cursor): Simplify code.
f5385255
SM
13101 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
13102 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 13103 updates manually.
a9b555d3
JB
13104 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
13105 Use core Emacs cursor types.
aac0c6e3 13106
b8ff72fa 13107 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
13108
131092008-10-02 Martin Rudalics <rudalics@gmx.at>
13110
13111 * process.c (Faccept_process_output): Fix doc-string.
13112
131132008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
13114
13115 * gmalloc.c (__sbrk): Also define for uClibc.
13116
13117 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
13118 for uClibc.
13119
131202008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13121
13122 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
13123 styles.
13124 (nsfont_open): Reenable the cache.
13125
131262008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13127
13128 * font.c (font_matching_entity): Reflect ATTRS in font selection.
13129 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
13130
131312008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
13132
13133 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
13134 a suspended terminal.
13135
131362008-09-30 Michael Albinus <michael.albinus@gmx.de>
13137
13138 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
13139
131402008-09-30 Eli Zaretskii <eliz@gnu.org>
13141
13142 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
13143
131442008-09-30 Chong Yidong <cyd@stupidchicken.com>
13145
13146 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
13147 in a continued line coincides with a line beginning.
13148
131492008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
13150
13151 * nsfont.m (nsfont_trait_distance): Fix bug.
13152 (nsfont_list): Return a list rather than a vector (syncs with Handa
13153 changes of 2008-05-14).
13154 (nsfont_open): Improve logging.
13155
131562008-09-29 Andreas Schwab <schwab@suse.de>
13157
13158 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
13159
131602008-09-28 Martin Rudalics <rudalics@gmx.at>
13161
13162 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
13163 name as char-resolve-modifiers.
13164 Reported by: Markus Triska <markus.triska@gmx.at>
13165
131662008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
13167
13168 * dispnew.c (init_display): Return earlier when running as a daemon.
13169
131702008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
13171
13172 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
13173
131742008-09-27 Eli Zaretskii <eliz@gnu.org>
13175
13176 * composite.c (Fcomposition_get_gstring)
13177 (Fcompose_region_internal, Fcompose_string_internal)
13178 (Ffind_composition_internal): Doc fix.
13179 (syms_of_composite) <compose-chars-after-function>: Doc fix.
13180 (syms_of_composite) <auto-composition-function>: Doc fix.
13181 (syms_of_composite) <composition-function-table>: Doc fix.
13182
131832008-09-25 Chong Yidong <cyd@stupidchicken.com>
13184
13185 * search.c (wordify): New argument for lax word-ends.
13186 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
13187
131882008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
13189
13190 * lisp.h (is_daemon): Declare.
13191 * dispnew.c (init_display): Do not try to initialize the terminal
13192 when running as a daemon.
13193
131942008-09-22 Chong Yidong <cyd@stupidchicken.com>
13195
13196 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
13197 x_display_pixel_height.
13198
131992008-09-22 Martin Rudalics <rudalics@gmx.at>
13200
13201 * undo.c (record_point): Don't call Fundo_boundary for first
13202 change. (Bug#731)
13203
132042008-09-22 Juanma Barranquero <lekktu@gmail.com>
13205
13206 * emacs.c (Fdaemonp): Doc fix.
13207
132082008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
13209
13210 * emacs.c (main): Place #ifdef in the proper place.
13211
132122008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
13213
13214 * emacs.c (standard_args): Add --daemon.
13215 (main): Disconnect from the terminal when --daemon is passed.
13216 (is_daemon): New variable.
13217 (Fdaemonp): New function.
13218 (syms_of_emacs): Defsubr it.
13219
132202008-09-20 Chong Yidong <cyd@stupidchicken.com>
13221
13222 * xdisp.c (get_next_display_element): Handle string display
13223 correctly when checking for the end of a box run.
13224
132252008-09-20 Glenn Morris <rgm@gnu.org>
13226
13227 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
13228 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
13229 (Frename_file): Avoid copying to trash if a rename involves
13230 a delete. (Bug#964).
13231
132322008-09-20 Eli Zaretskii <eliz@gnu.org>
13233
13234 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
13235 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
13236 frames as well as termcap frames.
13237 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
13238 get_named_tty.
13239
132402008-09-19 Eli Zaretskii <eliz@gnu.org>
13241
13242 * process.c (procfs_system_process_attributes): Fix cmdline in
13243 case /proc/PID/cmdline is empty.
13244
13245 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
13246 x_display_pixel_height.
13247
132482008-09-19 Juanma Barranquero <lekktu@gmail.com>
13249
13250 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
13251
13252 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
13253 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
13254
132552008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
13256
13257 * dispextern.h (struct it): Move line_wrap away from the middle of
13258 bitfields. Move voffset in struct iterator_stack_entry after the
13259 bitfields. Move tab_width near after another short.
13260
132612008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
13262
13263 * frame.h (struct frame): Move alpha from the middle of bitfields.
13264
13265 * window.h (struct window): Move frozen_window_start_p after the
13266 rest of the bitfields to reduce padding.
13267
132682008-09-18 Chong Yidong <cyd@stupidchicken.com>
13269
13270 * xterm.h (x_display_info): Remove `height' and `width' members.
13271
13272 * nsterm.h (ns_display_info): Remove `height' and `width' members.
13273
13274 * w32term.h (w32_display_info): Remove `height', `width',
13275 `height_in', and `width_in' members.
13276
b8ff72fa
SM
13277 * xterm.c (x_display_pixel_height, x_display_pixel_width):
13278 New functions.
aac0c6e3
MR
13279 (x_calc_absolute_position): Use them.
13280 (x_term_init): Omit removed `height' and `width' members.
13281
b8ff72fa
SM
13282 * w32term.c (x_display_pixel_height, x_display_pixel_width):
13283 New functions.
aac0c6e3
MR
13284 (w32_read_socket, x_calc_absolute_position): Use them.
13285 (w32_initialize_display_info, w32_term_init): Omit removed members
13286 of w32_display_info.
13287
b8ff72fa
SM
13288 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
13289 New functions.
13290 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 13291
b8ff72fa
SM
13292 * xterm.c (x_display_pixel_height, x_display_pixel_width):
13293 New functions.
aac0c6e3
MR
13294 (x_calc_absolute_position): Use them.
13295 (x_term_init): Omit removed `height' and `width' members.
13296
13297 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
13298 (compute_tip_xy):
13299 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
13300 * xmenu.c (menu_position_func): Use x_display_pixel_height and
13301 x_display_pixel_width.
13302
133032008-09-18 Kenichi Handa <handa@m17n.org>
13304
13305 * composite.c (fill_gstring_header): Don't check FROM and TO here.
13306 (composition_compute_stop_pos): Fix handling of static composition.
13307 (Fcomposition_get_gstring): Check FROM and TO at first.
13308
133092008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
13310
46e722a9 13311 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
13312 mixup (YAILOM).
13313
133142008-09-17 Chong Yidong <cyd@stupidchicken.com>
13315
13316 * indent.c (Fvertical_motion): Use position reported by iterator
13317 instead of PT for determining screen motion (bug#943).
13318
133192008-09-17 Romain Francoise <romain@orebokech.com>
13320
13321 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
13322
133232008-09-17 Kenichi Handa <handa@m17n.org>
13324
13325 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
13326
13327 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
13328 if necessary.
13329
133302008-09-16 Kenichi Handa <handa@m17n.org>
13331
13332 * coding.c (make_conversion_work_buffer): Avoid calling
13333 Fget_buffer_create if it is not necessary.
13334
133352008-09-15 Martin Rudalics <rudalics@gmx.at>
13336
13337 * window.c (Fselect_window): Don't update window_select_count and
13338 use_time when norecord is not nil.
13339
133402008-09-14 Kenichi Handa <handa@m17n.org>
13341
13342 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
13343 specpdl_ptr.
13344
133452008-09-12 Kenichi Handa <handa@m17n.org>
13346
13347 * indent.c (scan_for_column): Don't handle automatic composition
13348 if the current buffer is not associated with a window.
13349
13350 * composite.c (composition_reseat_it): If the current buffer is
13351 not associated with a window, ignore the automatic composition.
13352 (find_automatic_composition): Likewise.
13353
133542008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
13355
13356 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
13357 (Fgpm_mouse_stop): Use it.
13358 * termhooks.h (close_gpm): Declare.
13359 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
13360 connection if Gpm_GetEvent fails.
13361
13362 * window.c (set_window_buffer): Always preserve current-buffer.
13363
133642008-09-12 Glenn Morris <rgm@gnu.org>
13365
13366 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
13367
133682008-09-11 Glenn Morris <rgm@gnu.org>
13369
13370 * charset.c (charset-map-path): Doc fix.
13371
133722008-09-10 Kenichi Handa <handa@m17n.org>
13373
13374 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
13375
13376 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
13377 compose a grapheme cluster with the preceding base glyph.
13378
13379 * composite.c (composition_compute_stop_pos): Fix previous change.
13380 Reset cmp_it->id to -1 at first.
13381
133822008-09-10 Glenn Morris <rgm@gnu.org>
13383
13384 * Makefile.in (character.o, chartab.o): Fix config.h typo.
13385
133862008-09-09 Chong Yidong <cyd@stupidchicken.com>
13387
13388 * keyboard.c (read_key_sequence): Reapply translation maps when
13389 switching keyboards.
13390
133912008-09-09 Kenichi Handa <handa@m17n.org>
13392
13393 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
13394 characters.
13395
13396 * composite.c (FORWARD_CHAR): Fix calculation
13397 of (POSITION).pos_byte.
13398 (composition_compute_stop_pos): Limit the search of composition to
13399 at most 500 characters ahead. If we reach the limit or find a
13400 newline, set cmp_it->ch to -2 and return 0.
13401 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
13402
134032008-09-08 Kenichi Handa <handa@m17n.org>
13404
13405 * indent.c (Fvertical_motion): Be sure to set
13406 it_overshoot_expected if it.cmp_it.id is non-negative.
13407
134082008-09-07 Andreas Schwab <schwab@suse.de>
13409
13410 * callproc.c (Fcall_process): Don't hold references to string data
13411 across garbage collection. Move initialisation of new_argv down
13412 to avoid compiler bug.
13413
134142008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
13415
13416 * process.c (Fsystem_process_attributes): Doc fix.
13417
134182008-09-07 Chong Yidong <cyd@stupidchicken.com>
13419
13420 * callproc.c (Fcall_process): Canonicalize current directory name.
13421
13422 * xdisp.c (move_it_to): When moving by vpos, ensure that the
13423 iterator advances to the next line if the current line ends in a
13424 continued tab.
13425
134262008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
13427
13428 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
13429 member to point to cmp_from.
13430
13431 * xdisp.c: Doc fix for references to gidx data member.
13432
134332008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
13434
13435 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
13436
134372008-09-07 Kenichi Handa <handa@m17n.org>
13438
13439 * composite.c (FORWARD_CHAR): Check STOP after
13440 incrementing (POSITION).pos.
13441
134422008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
13443
13444 * process.c (Fsystem_process_attributes): Doc fix.
13445
134462008-09-06 Chong Yidong <cyd@stupidchicken.com>
13447
13448 * keyboard.c (Ftop_level): Doc fix.
13449
134502008-09-06 Eli Zaretskii <eliz@gnu.org>
13451
13452 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
13453 minibuffer, don't let lower part of menu invade the echo area.
13454
13455 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
13456 "char *q" to access menu text and advance through it. Revert the
13457 change that displayed ">" instead of ASCII character 0x10.
13458
134592008-09-05 Eli Zaretskii <eliz@gnu.org>
13460
13461 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
13462 toggle boxes and radio buttons on MS-DOS as well.
13463
134642008-09-05 Kenichi Handa <handa@m17n.org>
13465
13466 * composite.c (autocmp_chars): Check lookback count.
13467 (composition_compute_stop_pos): Set cmp_it->lookback.
13468 (composition_reseat_it): Check lookback count.
13469 (struct position_record): New struct.
13470 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
13471 (find_automatic_composition): New function.
13472 (composition_adjust_point): Use find_automatic_composition.
13473
13474 * dispextern.h (struct composition_it): New member lookback.
13475
134762008-09-02 Chong Yidong <cyd@stupidchicken.com>
13477
13478 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
13479 if moving by a single line.
13480
134812008-09-02 Andreas Schwab <schwab@suse.de>
13482
13483 * xterm.c (x_delete_display): Fix merge error.
13484
13485 * fileio.c (Fexpand_file_name): Remove unused variables.
13486
134872008-09-02 Eli Zaretskii <eliz@gnu.org>
13488
13489 * fileio.c (Fexpand_file_name): Copy argument `name' into local
13490 storage on all platforms, not just on DOS_NT.
13491
134922008-09-02 Jason Rumney <jasonr@gnu.org>
13493
b8ff72fa
SM
13494 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
13495 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
13496
134972008-09-01 Chong Yidong <cyd@stupidchicken.com>
13498
13499 * xfaces.c (Finternal_set_alternative_font_family_alist)
13500 (Finternal_set_alternative_font_registry_alist): Properly copy
13501 entire alist structure.
13502
135032008-09-01 Kenichi Handa <handa@m17n.org>
13504
d66c0241 13505 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 13506 representative chars of the script is a vector.
d66c0241
JB
13507 (ftfont_list): Handle the case where the representative chars of
13508 the script is a vector.
aac0c6e3
MR
13509
13510 * character.c (syms_of_character): Docstring of
13511 script-representative-chars fixed.
13512
135132008-08-31 Eli Zaretskii <eliz@gnu.org>
13514
13515 * msdos.c (BUILD_CHAR_GLYPH): New macro.
13516 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
13517 the menu. Allocate larger buffer for `text', to account for
13518 possible ^C characters.
13519
135202008-08-31 Martin Rudalics <rudalics@gmx.at>
13521
13522 * xdisp.c (prepare_menu_bars): Don't call
13523 Vwindow_size_change_functions with arg Qt.
13524
135252008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
13526
13527 * font.h (font_range):
13528 * fileio.c (report_file_error):
46e722a9
SM
13529 * composite.c (composition_update_it): Yet another int/Lisp_Object
13530 mixup (YAILOM).
aac0c6e3
MR
13531
135322008-08-30 Glenn Morris <rgm@gnu.org>
13533
13534 * data.c (Fmake_variable_frame_local): Doc fix.
13535
13536 * frame.c (Fmodify_frame_parameters): Doc fix.
13537
135382008-08-30 Eli Zaretskii <eliz@gnu.org>
13539
13540 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
13541 needed by GetTokenInformation.
13542 (w32_system_process_attributes): Check return values of all system
13543 APIs.
13544
13545 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
13546 only when the state changes.
13547 (IT_update_begin, IT_update_end): Add termscript trace.
13548
13549 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
13550 clipboard is unavailable. Set dst to NULL if it doesn't point to
13551 malloc'ed data.
13552 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
13553 passing random values to xfree.
13554
13555 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 13556 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
13557
135582008-08-29 Jason Rumney <jasonr@gnu.org>
13559
13560 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
13561
135622008-08-29 Eli Zaretskii <eliz@gnu.org>
13563
13564 * composite.c (fill_gstring_body): Avoid compiler warnings.
13565
13566 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
13567 LGLYPH_SET_CODE to avoid compiler warnings.
13568
2ae37cf0 13569 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
13570
13571 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
13572
13573 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
13574 LGLYPH_SET_CODE.
13575
135762008-08-29 Kenichi Handa <handa@m17n.org>
13577
13578 * fileio.c (report_file_error): Don't downcase the first character
13579 of errstring if it is still unibyte.
13580
135812008-08-29 Kenichi Handa <handa@m17n.org>
13582
13583 These changes are to re-implement the automatic composition so
13584 that it doesn't use text properties.
13585
13586 * Makefile.in (ftfont.o): Depend on composite.h.
13587 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
13588
13589 * character.h (Vunicode_category_table): Extern it.
13590
13591 * character.c (Vunicode_category_table): New variable.
13592 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
13593
13594 * chartab.c (optimize_sub_char_table): Perform more greedy
13595 optimization.
13596
b8ff72fa
SM
13597 * composite.h (enum composition_method):
13598 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
13599 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
13600 (Vcomposition_function_table): Extern it.
13601 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
13602 (composition_gstring_put_cache, composition_gstring_from_id)
13603 (composition_gstring_p, composition_gstring_width)
13604 (composition_compute_stop_pos, composition_reseat_it)
13605 (composition_update_it, composition_adjust_point): Extern them.
13606 (Fcomposition_get_gstring): EXFUN it.
13607
d66c0241 13608 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
13609 (Vcomposition_function_table)
13610 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
13611 (gstring_hash_table, gstring_work, gstring_work_headers):
13612 New variables.
aac0c6e3
MR
13613 (gstring_lookup_cache, composition_gstring_put_cache)
13614 (composition_gstring_from_id, composition_gstring_p)
13615 (composition_gstring_width, fill_gstring_header)
13616 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
13617 (composition_reseat_it, composition_update_it)
b8ff72fa 13618 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
13619 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
13620 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 13621 Defsubr composition_get_gstring.
aac0c6e3
MR
13622
13623 * dispextern.h (struct glyph): New union u.cmp. Delete the member
13624 cmp_id.
13625 (struct glyph_string): Delete the member gidx. New members
13626 cmp_id, cmp_from, and cmp_to.
13627 (enum it_method): Delete GET_FROM_COMPOSITION.
13628 (struct composition_it): New struct.
13629 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
13630 Delete c, len, cmp_id, cmp_len in u.comp.
13631
13632 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 13633 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 13634 (enum lglyph_indices): Likewise.
b8ff72fa 13635 (font_range): Adjust extern.
aac0c6e3
MR
13636 (font_fill_lglyph_metrics): Extern it.
13637
13638 * font.c (QCf): New variable.
13639 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
13640 (font_prepare_composition): Delete this function.
13641 (font_range): Type and arguments changed.
13642 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
13643 (font_fill_lglyph_metrics): New function.
b8ff72fa 13644 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 13645 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
13646 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
13647 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
13648
13649 * fontset.h (font_for_char): Extern it.
13650
13651 * fontset.c (font_for_char): New function.
13652
13653 * ftfont.c: Include composite.h.
13654 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 13655 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
13656
13657 * indent.c: Include composite.h and dispextern.h.
13658 (check_composition): Delete this function.
13659 (scan_for_column): Handle composition by
13660 composition_compute_stop_pos, composition_reseat_it, and
13661 composition_update_it.
13662 (compute_motion): Likewise.
13663 (Fvertical_motion): Fix checking of composition.
13664
13665 * keyboard.c (adjust_point_for_property): Check composition by
13666 composition_adjust_point.
13667
b8ff72fa 13668 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
13669 struct glyph_string.
13670
b8ff72fa
SM
13671 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
13672 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
13673 struct glyph.
13674 (produce_composite_glyph): Likewise.
13675
b8ff72fa
SM
13676 * w32term.c (x_draw_composite_glyph_string_foreground):
13677 Adjust for the change of struct glyph_string.
aac0c6e3
MR
13678 (x_draw_glyph_string): Likewise.
13679
13680 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
13681 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
13682
13683 * xdisp.c: Include font.h.
13684 (it_props): Delete the entry for Qauto_composed.
13685 (init_iterator): Initialize it->cmp_it.id to -1.
13686 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 13687 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
13688 (handle_auto_composed_prop): Delete it.
13689 (handle_composition_prop): Handle only static composition.
13690 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
13691 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 13692 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
13693 (pop_it): Likewise.
13694 (get_next_element): Delete next_element_from_composition.
13695 (CHAR_COMPOSED_P): New macro.
13696 (get_next_display_element): For automatic composition, get a face
13697 from the font in the glyph-string.
13698 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 13699 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
13700 (next_element_from_string): Check if the character at the current
13701 position is composed by CHAR_COMPOSED_P.
13702 (next_element_from_buffer): Likewise.
d66c0241
JB
13703 (next_element_from_composition): Adjust for the change of struct it.
13704 Update it->cmp_it.
b8ff72fa
SM
13705 (dump_glyph): Adjust for the change of struct glyph.
13706 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
13707 it and struct glyph. Don't handle automatic composition here.
13708 (fill_gstring_glyph_string): New function.
13709 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 13710 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
13711 (BUILD_GSTRING_GLYPH_STRING): New macro.
13712 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
13713 automatic composition.
b8ff72fa 13714 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 13715 struct glyph.
b8ff72fa 13716 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 13717
b8ff72fa 13718 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
13719 the change of struct glyph_string.
13720 (x_draw_glyph_string): Likewise.
13721
137222008-08-29 Glenn Morris <rgm@gnu.org>
13723
13724 * buffer.c (word-wrap): Doc fix.
13725 * xdisp.c (truncate-partial-width-windows): Doc fix.
13726 Increase default to 50.
13727
137282008-08-29 Chong Yidong <cyd@stupidchicken.com>
13729
13730 * xdisp.c (update_tool_bar_unwind): New function.
13731 (update_tool_bar): Temporarily set selected frame before building
13732 tool-bar items.
13733
137342008-08-28 Michael Albinus <michael.albinus@gmx.de>
13735
13736 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
13737 snprintf, respectively.
13738 (xd_append_arg): Convert strings with Fstring_make_unibyte.
13739
137402008-08-28 Chong Yidong <cyd@stupidchicken.com>
13741
13742 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
13743 LDFLAGS to GNUstep CC invocation.
13744
137452008-08-27 Chong Yidong <cyd@stupidchicken.com>
13746
13747 * indent.c (Fvertical_motion): Revert last change. Handle the
13748 general case where we are moving forward, and PT spans multiple
13749 screen lines.
13750
13751 * eval.c (find_handler_clause): Temporarily increase
13752 max-lisp-eval-depth while printing the backtrace buffer, to
13753 guarantee that help-mode code can run.
13754
137552008-08-27 Eli Zaretskii <eliz@gnu.org>
13756
13757 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
13758 colors under -rv.
13759 (IT_set_frame_parameters): Don't swap foreground and background
13760 colors if `(reverse . t)' is present in the frame properties.
13761 (internal_terminal_init): Call init_frame_faces only for the
13762 initial frame.
13763
137642008-08-27 Andreas Schwab <schwab@suse.de>
13765
13766 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
13767
137682008-08-27 Andreas Schwab <schwab@suse.de>
13769
13770 * search.c (search_buffer): Set char_base to zero only at the end.
13771
137722008-08-27 Kenichi Handa <handa@m17n.org>
13773
b8ff72fa 13774 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
13775
137762008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
13777
13778 * xterm.c (x_term_init): Temporarily hide the partially
13779 initialized terminal while calling vendor-specific-keysyms.
13780
137812008-08-26 Eli Zaretskii <eliz@gnu.org>
13782
13783 * msdos.c (internal_terminal_init): Most initializations done only
13784 once, especially initial_screen_colors[] and termscript open.
13785
137862008-08-26 Chong Yidong <cyd@stupidchicken.com>
13787
13788 * eval.c (Fcondition_case): Doc fix.
13789
13790 * widgetprv.h (EmacsFramePart): Change font member to the new font
13791 struct.
13792
13793 * widget.c: Include character.h and font.h for XSETFONT.
13794 (setup_frame_gcs): Compute X font id from font struct, just once.
13795
137962008-08-26 Eli Zaretskii <eliz@gnu.org>
13797
13798 * term.c (get_named_tty): Fix last change.
13799
138002008-08-26 Chong Yidong <cyd@stupidchicken.com>
13801
13802 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 13803 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
13804
138052008-08-25 Eli Zaretskii <eliz@gnu.org>
13806
13807 * frame.c (do_switch_frame): Mark previously displayed frame as
13808 obscured for FRAME_MSDOS_P frames as well.
13809
138102008-08-24 Eli Zaretskii <eliz@gnu.org>
13811
13812 * frame.c (make_terminal_frame): Initialize f->terminal,
13813 f->terminal->reference_count, and scroll bars on MS-DOS as well.
13814 Set the top frame to newly created frame.
13815 (Fmake_terminal_frame): Reuse the_only_display_info.
13816
13817 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
13818 estimating available memory.
13819
b97439ce 138202008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
13821
13822 * nsterm.m (ns_draw_window_cursor): Don't call
13823 NSDisableScreenUpdates and NSEnableScreenUpdates on
13824 non-NS_IMPL_COCOA systems.
13825
138262008-08-23 Andreas Schwab <schwab@suse.de>
13827
13828 * process.c (procfs_system_process_attributes): Fix use of
13829 uninitialized variables.
13830
138312008-08-23 Eli Zaretskii <eliz@gnu.org>
13832
13833 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
13834
13835 * dispnew.c (init_display): Remove MS-DOS specific conditions for
13836 calling tty-set-up-initial-frame-faces.
13837
b8ff72fa
SM
13838 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
13839 Allow MSDOS frames along with X frames.
aac0c6e3
MR
13840
13841 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
13842 addition to output_termcap.
13843
13844 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
13845
13846 * termchar.h (FRAME_TTY): Support output_msdos_raw.
13847 (struct tty_display_info) [MSDOS]: Add fields related to mouse
13848 highlight.
13849
13850 * process.c [!subprocesses]: Define QCname.
13851 (syms_of_process): Intern and staticpro it.
13852
13853 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
13854 Adjust for changes in encoding/decoding routines.
13855 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
13856 encode_coding and decode_coding.
13857
b8ff72fa 13858 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
13859
13860 * dosfns.c: Include frame.h before termhooks.h.
13861 (dos_cleanup): Use CURTTY ()->termscript instead of a global
13862 variable termscript.
13863
13864 * s/msdos.h (USER_FULL_NAME): Define.
13865 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
13866
13867 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
13868 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
13869 pw->pw_gecos.
13870
13871 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
13872 SELECTED_FRAME as additional (1st) argument.
13873 (tty_read_avail_input): Handle output_msdos_raw in
13874 addition to output_termcap.
13875
13876 * msdos.c: Include frame.h before termhooks.h.
13877 (mouse_on, mouse_off, mouse_moveto, mouse_init)
13878 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
13879 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
13880 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
13881 (IT_set_terminal_modes, IT_reset_terminal_modes)
13882 (IT_set_frame_parameters): Use tty->termscript instead of a global
13883 variable termscript.
13884 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
13885 global variable terminal_coding. Don't refer to
13886 Vnonascii_translation_table.
13887 (internal_terminal_init): Set Vwindow_system in current_kboard.
13888 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
13889 Announce date and time of session start, if termscript is open.
13890 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
13891 term.c:init_tty). Open termscript only of not already open.
13892 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
13893 here instead of dos_ttraw. Don't initialize display if this is an
13894 initial tty. Don't set FRAME_FONT.
13895 (Vwindow_system_version): Bump to 23.
13896 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
13897 is available, set up mouse_position_hook.
13898 (dos_ttraw, IT_set_terminal_modes): If called with initial
13899 terminal, do nothing.
13900 (IT_set_frame_parameters): Handle the Qtty_type frame
13901 parameter by calling internal_terminal_init.
13902 (dos_set_window_size, show_mouse_face)
13903 (clear_mouse_face, IT_note_mode_line_highlight)
13904 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
13905 (dos_rawgetc): Use tty_display_info instead of x_display_info.
13906 (initialize_msdos_display): New function.
13907 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
13908 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
13909 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
13910 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 13911 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
13912 (request_sigio, unrequest_sigio): Don't define, now defined on
13913 sysdep.c.
13914 (IT_write_glyphs): Rewrite to use encode_terminal_code.
13915
13916 * term.c [MSDOS]: Include msdos.h.
13917 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
13918 conditional to DOS_NT. Allow only one call to this function in a
13919 session. Don't allocate a new struct tty_display_info; instead,
13920 reuse the_only_display_info. Call get_tty_size to get screen
13921 dimensions. Call init_baud_rate to set bad_rate.
13922 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
13923 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 13924 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
13925 (get_tty_terminal, get_named_tty, Ftty_type)
13926 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
13927 output_termcap.
b8ff72fa
SM
13928 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
13929 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 13930 only when subprocesses are supported.
aac0c6e3
MR
13931
13932 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
13933 f->output_data.x.
13934 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
13935 terminal devices.
13936
5582fbc7 13937 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
13938 x_output.
13939 (FRAME_FONT): Use output_data.tty.
13940 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
13941 (struct x_display_info): Rename from display_info. Update all users in
13942 msdos.c.
aac0c6e3 13943 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 13944 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
13945 (dos_ttraw): Update prototype.
13946
13947 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
13948 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
13949
139502008-08-23 Jason Rumney <jasonr@gnu.org>
13951
13952 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
13953 (fn_TIFFSetDirectory): New library function used.
13954 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
13955 (tiff_load): Use :index to select among multiple images. Set count
13956 property when multiple images exist.
13957 (gif_format): Use :index, not :image.
13958
139592008-08-23 Chong Yidong <cyd@stupidchicken.com>
13960
13961 * xdisp.c (try_scrolling): Check INT_MAX instead of
13962 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
13963 to obtain INT_MAX.
13964
139652008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
13966
13967 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
13968
139692008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
13970
13971 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
13972 GNUstep library location.
13973
139742008-08-21 Chong Yidong <cyd@stupidchicken.com>
13975
13976 * xfaces.c (x_update_menu_appearance): Check validity of menu font
13977 before using it.
13978
13979 * puresize.h (BASE_PURESIZE): Increase to 1250000.
13980
139812008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13982
13983 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
13984 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
13985 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
13986 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
13987 (EmacsApp-cursor_blink_handler): Remove declaration.
13988 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
13989 match 01 Feb 2008 changes in xterm.c.
13990 (ns_read_socket): Add cast to avoid warning.
13991 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
13992 GNUstep.
13993
139942008-08-20 Chong Yidong <cyd@stupidchicken.com>
13995
13996 * xselect.c (x_get_foreign_selection): Return nil if desired
13997 selection could not be obtained, instead of signalling an error.
13998
139992008-08-20 David Reitter <david.reitter@gmail.com>
14000
14001 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
14002 * nsterm.m: Remove ns-specific code for cursor blinking.
14003 (ns_draw_window_cursor): Clear cursor properly rather than
14004 redrawing the area. Respect width of bar cursors.
14005 These changes enable the use of generic blink-cursor-mode and
14006 generic cursor types in NS and support smooth cursor movements (do
14007 not blink off after command).
14008 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
14009 Nextstep, too.
14010
140112008-08-19 Kenichi Handa <handa@m17n.org>
14012
14013 * font.c (Vfont_log_deferred): New variable.
14014 (font_add_log): Check Vfont_log_deferred.
14015 (font_deferred_log): New function.
14016
14017 * font.h (font_deferred_log): Extern it.
14018
14019 * fontset.c (reorder_font_vector): Use encoding charset of fonts
14020 for sorting.
14021 (face_for_char): Use deferred log.
14022
140232008-08-18 Kenichi Handa <handa@m17n.org>
14024
14025 * fontset.c (face_for_char): Add font log.
14026
14027 * font.c (font_add_log): Add the font properties :script, :lang,
14028 and :otf in the log.
14029
140302008-08-17 Chong Yidong <cyd@stupidchicken.com>
14031
14032 * xdisp.c: Remove dead code.
14033 (handle_invisible_prop, next_overlay_string): Defer call to
14034 setup_for_ellipsis.
14035 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
14036
140372008-08-15 Chong Yidong <cyd@stupidchicken.com>
14038
14039 * xfaces.c (lookup_derived_face): Properly handle possible zero
14040 return value of get_lface_attributes.
14041 (merge_faces): Don't tell lookup_derived_face to signal an error
14042 if face is not found.
14043
14044 * dired.c (Fdirectory_files): Doc fix.
14045
14046 * process.c (make_process): Initialize kill_without_query struct
14047 member.
14048
140492008-08-15 Eli Zaretskii <eliz@gnu.org>
14050
14051 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
14052 Alternative calculation of totphys for Visual Studio 6.
14053
14054 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
14055
14056 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
14057 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
14058 All users changed.
14059 (stat): Only root directory passed to GetDriveType. Allow RAM
14060 disk as well as local fixed disk when w32-get-true-file-attributes
14061 is set to `local'.
14062 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
14063 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
14064 (w32_cached_id, w32_add_to_cache): New functions.
14065 (get_name_and_id): Look account names in the cache before calling
14066 lookup_account_sid.
14067 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
14068 New initialization flags.
14069 (globals_of_w32): Initialize them to zero.
14070 (w32_system_process_attributes): Use w32_cached_id and
14071 w32_add_to_cache.
14072
140732008-08-14 Lawrence Mitchell <wence@gmx.li>
14074
14075 * lread.c (Fread_char, Fread_char_exclusive): If no character
14076 event is read before timeout is reached, return nil, rather than
14077 converting to a number.
14078
140792008-08-14 Chong Yidong <cyd@stupidchicken.com>
14080
14081 * fns.c (use_dialog_box): Doc fix.
14082
14083 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
14084 on OS X.
14085
140862008-08-13 Chong Yidong <cyd@stupidchicken.com>
14087
14088 * frame.c (Qns_parse_geometry): New var.
14089 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
14090
140912008-08-11 Chong Yidong <cyd@stupidchicken.com>
14092
14093 * xdisp.c (x_produce_glyphs): Handle the case when font has no
14094 space character in calculating tabs.
14095
140962008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
14097
14098 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
14099
141002008-08-10 Glenn Morris <rgm@gnu.org>
14101
14102 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
14103 silence gcc "limited range of data type" warnings in some
14104 make_fixnum_or_float calls.
14105
141062008-08-09 Eli Zaretskii <eliz@gnu.org>
14107
14108 * w32.c (w32_system_process_attributes): If the process does not
14109 exist, return nil.
14110
14111 * w32.c: Include thelp32.h, psapi.h and coding.h.
14112 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
14113 declarations.
14114 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
14115 (Process32Next_Proc): New typedefs.
14116 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
14117 (g_b_init_process32_next, g_b_init_open_thread_token)
14118 (g_b_init_impersonate_self, g_b_init_revert_to_self)
14119 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
14120 (g_b_init_get_process_working_set_size)
14121 (g_b_init_global_memory_status_ex): New static variables.
14122 (globals_of_w32): Initialize them.
14123 (create_toolhelp32_snapshot, process32_first, process32_next)
14124 (open_thread_token, impersonate_self, revert_to_self)
14125 (get_process_memory_info, get_process_working_set_size)
14126 (global_memory_status, global_memory_status_ex): New wrapper
14127 functions.
14128 (w32_list_system_processes, w32_system_process_attributes)
14129 (enable_privilege, restore_privilege, ltime, process_times):
14130 New functions.
14131 (convert_time_raw): New function.
14132 (convert_time): Remove conversion of FILETIME into time in 100
14133 nsec units, call convert_time_raw instead.
14134
14135 * process.h (w32_list_system_processes, w32_system_process_attributes):
14136 Add prototypes.
14137 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
14138 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
14139 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
14140 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
14141
14142 * process.c (Fsystem_process_attributes): Doc fix.
14143
141442008-08-08 Chong Yidong <cyd@stupidchicken.com>
14145
14146 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
14147 a continued multi-char glyph; if so, advance to the actual glyph.
14148
141492008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
14150
14151 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
14152
14153 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
14154 (.m.o): Use it.
14155 * config.in: Regenerate.
14156
141572008-08-07 Chong Yidong <cyd@stupidchicken.com>
14158
14159 * xdisp.c (redisplay_window): Revert last change.
14160 (try_window): Check bottom scroll margin too.
14161
141622008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
14163
14164 * config.in: Regenerate.
14165
14166 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
14167 -list-load-path-shadows'.
14168 (nsgui.h): Reduce number of things depending on it.
14169
141702008-08-06 Chong Yidong <cyd@stupidchicken.com>
14171
14172 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
14173 instead of window-end which does the wrong thing at eob.
14174 (try_cursor_movement): Minor optimization.
14175 (redisplay_window): If scroll margin is defined, don't assume
14176 window doesn't need scrolling.
14177
141782008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
14179
14180 * config.in: Regenerate.
14181
14182 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
14183 (mostlyclean): Don't delete *.d under NS.
14184
14185 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
14186
141872008-08-06 Kenichi Handa <handa@m17n.org>
14188
14189 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
14190
141912008-08-06 Andreas Schwab <schwab@suse.de>
14192
14193 * config.in: Regenerate.
14194
141952008-08-05 Chong Yidong <cyd@stupidchicken.com>
14196
14197 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
14198 forcing a window start.
14199
14200 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
14201 (auto_save_1): Update modtime when auto-save-list-file-name is on.
14202
142032008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
14204
14205 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
14206 argument.
14207
142082008-08-05 Juanma Barranquero <lekktu@gmail.com>
14209
14210 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
14211 <scroll-down-aggressively, before-change-functions>:
14212 <after-change-functions>: Reflow docstrings.
14213
142142008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 14215 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
14216
14217 Dock menu customization, based on a patch by Ken Raeburn, plus some
14218 other fixes.
14219 * nsmenu.m (dockMenu): New variable.
14220 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
14221
14222 * nsterm.h (dockMenu): Declare.
14223
14224 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
14225 (ns_term_init): Initialize dockMenu.
14226 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
14227 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
14228 left.
14229
14230 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
14231
142322008-08-04 Chong Yidong <cyd@stupidchicken.com>
14233
14234 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
14235
14236 * config.in: Regenerate.
14237
142382008-08-04 Seiji Zenitani <zenitani@mac.com>
14239
14240 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
14241
142422008-08-04 Chong Yidong <cyd@stupidchicken.com>
14243
14244 * nsterm.h (find_and_call_menu_selection): Fix prototype.
14245
142462008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
14247
14248 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
14249
14250 * keyboard.h: Comment an #endif.
14251
14252 * lisp.h (have_menus_p): Adjust comment.
14253
14254 * menu.c (find_and_return_menu_selection): Fix comparison with
14255 client_data.
14256
14257 * nsmenu.m (popup_activated_flag): New variable.
14258 (popup_activated): New function.
14259 (menu-or-popup-active-p): New exported lisp definition.
14260 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
14261 when popup done.
14262 (ns_popup_dialog): Set popup_activated_flag.
14263
14264 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
14265 version for GNUstep (handled by conditional typedef in nsterm.m).
14266 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
14267 in rgb.txt).
14268
14269 * process.c (init_process): Use DARWIN_OS, not DARWIN.
14270
14271 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
14272
14273 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
14274
14275 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
14276 shortcircuit if popup_activated like GTK and X toolkit.
14277
14278 * m/inter386.h: Change DARWIN to DARWIN_OS.
14279
14280 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
14281 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
14282 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
14283 comment on NO_SOCK_SIGIO.
14284
142852008-08-03 Chong Yidong <cyd@stupidchicken.com>
14286
14287 * nsterm.m (windowDidResize): Remove stopModal call.
14288
142892008-08-03 Andreas Schwab <schwab@suse.de>
14290
14291 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
14292 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
14293
142942008-08-02 Chong Yidong <cyd@stupidchicken.com>
14295
14296 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
14297 Don't use uninitialized pointer variable when using getrlimit.
14298
142992008-08-02 Jason Rumney <jasonr@gnu.org>
14300
14301 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
14302
143032008-08-02 Eli Zaretskii <eliz@gnu.org>
14304
14305 * alloc.c (NSTATICS): Bump to 0x640.
14306
14307 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
14308
14309 * lisp.h: Add prototype for directory_files_internal.
14310
14311 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
14312 New functions.
14313 (syms_of_process): Defsubr them. Add initializations for various
14314 Q* symbols used in procfs_system_process_attributes.
14315 (procfs_list_system_processes, procfs_system_process_attributes)
14316 [HAVE_PROCFS]: New functions.
14317 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
14318 (procfs_get_total_memory): New functions.
14319
143202008-08-01 Juanma Barranquero <lekktu@gmail.com>
14321
14322 * xfaces.c (Fx_load_color_file): Fix previous change;
14323 it is #ifdef WINDOWSNT, not WINDOWS_NT.
14324
143252008-08-01 Michael Albinus <michael.albinus@gmx.de>
14326
14327 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
14328
143292008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14330
14331 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
14332
143332008-08-01 Chong Yidong <cyd@stupidchicken.com>
14334
14335 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
14336
14337 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
14338 define NSApplicationDelegateReplySuccess.
14339 (EmacsView -converstationIdentifier): Use long instead of
14340 NSInteger for GNUstep, since it doesn't have NSInteger.
14341
14342 * xmenu.c: Revert last change.
14343
14344 * keyboard.h: Fix last change.
14345
143462008-08-01 Juanma Barranquero <lekktu@gmail.com>
14347
14348 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
14349 on Windows.
14350
143512008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14352
14353 Warning clearing and clean-up in NS port.
14354 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
14355 Add prototypes.
14356 * nsgui.h (FACE_DEFAULT): Remove, unused.
14357 (XGCValues): Change colors to unsigned long.
14358 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
14359 nsterm.m.
14360 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
14361 (ns_list_fonts): Remove, unused.
14362 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
14363 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
14364 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
14365 (nsfont_draw): Compare face colors to 0, not nil.
14366 * nsmenu.m (struct widget_value): Drop unneeded declaration.
14367 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
14368 (-addSubmenuWithTitle:): Use NSMenuItem class.
14369 (ns_popup_menu): Use NO, not NULL, for enabled setting.
14370 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
14371 (ns_clip_to_row): Make gc arg a BOOL.
14372 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
14373 ns_clip_to_row() call.
14374 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
14375 used). Cast FRAME_FONT assignments.
14376 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
14377 (ns_string_to_lispmod): Change arg to const char.
14378 (ns_term_init): Use NSMenuItem class.
14379 (EmacsApp -openFile:): Move to different section of file.
14380 (EmacsApp -application:openFiles:): Don't return a value, call
14381 -replyToOpenOrPrint:.
14382 (EmacsView -keyDown:): Fix up cast.
14383 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
14384 (EmacsView -menuDown:): Cast tag in call to
14385 find_and_call_menu_selection().
14386 (ns_list_fonts): Remove, unused.
14387 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
14388 (ns_fontname_to_xlfd): Make static.
14389 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
14390 Remove prototypes (now in keyboard.h).
14391 (next_menubar_widget_id): Remove, unused.
14392 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
14393 Remove prototypes (now in keyboard.h).
14394 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
14395
143962008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
14397
14398 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
14399 (floatfns.o): Depend on syssignal.h.
14400 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
14401
14402 * systty.h: Fix previous change that removed BSD_TERMIOS.
14403 Add comments to #ifdefs.
14404
144052008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14406
14407 * w32fns.c (w32-load-color-file): Remove.
14408 (x-open-connection): Use renamed Fx_load_color_file.
14409 * xfaces.c (x-load-color-file): Add.
14410 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
14411 Emacs.clr.
14412 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
14413
144142008-07-31 Michael Albinus <michael.albinus@gmx.de>
14415
14416 * dbusbind.c (Fdbus_call_method_asynchronously)
14417 (Fdbus_method_error_internal): New defuns.
14418 (xd_read_message): Handle also reply messages.
14419 (Vdbus_registered_functions_table): Extend docstring.
14420
144212008-07-31 Juanma Barranquero <lekktu@gmail.com>
14422
14423 * keyboard.c (gobble_input): Fix previous change.
14424
144252008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
14426
14427 * bitmaps/README:
14428 * xfns.c:
14429 * termcap.c:
14430 * term.c:
14431 * syswait.h:
14432 * systty.h:
14433 * systime.h:
14434 * syssignal.h:
14435 * sysdep.c:
14436 * process.h:
14437 * process.c:
14438 * print.c:
14439 * ndir.h:
14440 * lread.c:
14441 * keyboard.c:
14442 * getpagesize.h:
14443 * floatfns.c:
14444 * fileio.c:
14445 * emacs.c:
14446 * doc.c:
14447 * dispnew.c:
14448 * dired.c:
14449 * data.c:
14450 * callproc.c:
14451 * buffer.c:
14452 * README:
14453 * Makefile.in:
14454 * s/template.h:
14455 * s/msdos.h:
14456 * m/vax.h: Remove VMS support.
14457 * s/vms.h:
14458 * vlimit.h:
14459 * uaf.h:
14460 * temacs.opt:
14461 * param.h:
14462 * ioctl.h: Remove file.
14463
144642008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
14465
14466 * s/ms-w32.h (MULTI_KBOARD): Remove.
14467 * xterm.c:
14468 * xselect.c:
14469 * xfns.c:
14470 * window.c:
14471 * w32term.c:
14472 * w32fns.c:
14473 * terminal.c:
14474 * termhooks.h:
14475 * term.c:
14476 * sysdep.c:
14477 * keyboard.h:
14478 * keyboard.c:
14479 * frame.h:
14480 * frame.c:
14481 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
14482 * config.in: Regenerate.
14483
144842008-07-30 Jason Rumney <jasonr@gnu.org>
14485
14486 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
14487
14488 * w32font.c (w32font_encode_char): Leave as unicode if in range.
14489 (w32font_open_internal): Get unicode version of textmetrics.
14490 Don't enable or disable glyph indices here.
14491 (w32font_open): Disable use of glyph indices.
14492
14493 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
14494
144952008-07-30 Chong Yidong <cyd@stupidchicken.com>
14496
14497 * minibuf.c (Vread_buffer_function): Doc fix.
14498
144992008-07-30 John Paul Wallington <jpw@pobox.com>
14500
14501 * minibuf.c (read_buffer_completion_ignore_case): New var.
14502 (Fread_buffer): Use it.
14503
145042008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
14505
14506 * systty.h (sensemode): Remove empty #if. Remove reference to
14507 BSD_TERMIOS, unused.
14508
14509 * sysdep.c: Remove reference to DGUX.
14510 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
14511
14512 * config.in: Regenerate.
14513
145142008-07-30 Jason Rumney <jasonr@gnu.org>
14515
14516 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
14517
145182008-07-29 Jason Rumney <jasonr@gnu.org>
14519
14520 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
14521 is populated.
14522 (uniscribe_encode_char): Always use uniscribe.
14523 Avoid using context if cache is populated.
14524
145252008-07-29 Jan Djärv <jan.h.d@swipnet.se>
14526
14527 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
14528 open menu.
14529
14530 * gtkutil.c (menu_nav_ended): Remove.
14531 (create_menus): Remove signal connect for menu_nav_ended.
14532
145332008-07-28 Chong Yidong <cyd@stupidchicken.com>
14534
14535 * xdisp.c (redisplay_window): Check return value of
14536 compute_window_start_on_continuation_line before forcing a window
14537 start.
14538
145392008-07-28 Jason Rumney <jasonr@gnu.org>
14540
14541 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
14542
14543 * w32term.c (w32_enable_unicode_output, cleartype_active):
14544 Remove obsolete display options.
14545 (x_draw_glyph_string_background): Don't use old cleartype_active
14546 workaround.
14547 (w32_initialize): Remove cleartype_active initialization.
14548 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
14549
145502008-07-28 Andreas Schwab <schwab@suse.de>
14551
14552 * lisp.h (init_weak_hash_tables, syms_of_font)
14553 (xd_read_queued_messages, syms_of_dbusbind): Declare.
14554 (remove_hash_entry): Don't declare.
14555 * eval.c (maybe_call_debugger): Make static and move before use.
14556 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
14557 * xdisp.c: Include "gtkutil.h" if USE_GTK.
14558 * xterm.h (x_set_frame_alpha): Declare.
14559
145602008-07-28 Jan Djärv <jan.h.d@swipnet.se>
14561
14562 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
14563 (create_menus): Connect selection-done to menu_nav_ended.
14564
145652008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
14566
14567 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
14568 Set Vx_resource_name to a fallback. Replace read of 'buffered'
14569 parameter with read of 'alpha' one.
14570 (Qns_frame_parameter): Remove.
5582fbc7 14571 * nsselect.m (selection-coding-system)
aac0c6e3
MR
14572 (next-selection-coding-system, Vselection_coding_system)
14573 (Vnext_selection_coding_system): Drop.
14574
145752008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
14576
14577 * nsfns.m (do-applescript, do_applescript): Rename to
14578 ns-do-applescript, ns_do_applescript, and move within file.
14579
145802008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
14581
14582 Remove support for Mac Carbon.
14583 * mactoolbox.c:
14584 * macterm.h:
14585 * macterm.c:
14586 * macselect.c:
14587 * macmenu.c:
14588 * macgui.h:
14589 * macfns.c:
14590 * mac.c: Remove file.
14591 * s/darwin.h:
14592 * m/intel386.h:
14593 * xfaces.c:
14594 * xdisp.c:
14595 * window.c:
14596 * tparam.c:
14597 * termhooks.h:
14598 * termcap.c:
14599 * term.c:
14600 * syssignal.h:
14601 * sysselect.h:
14602 * sysdep.c:
14603 * process.c:
14604 * lread.c:
14605 * lisp.h:
14606 * keyboard.c:
14607 * image.c:
14608 * fringe.c:
14609 * frame.h:
14610 * frame.c:
14611 * fontset.c:
14612 * font.h:
14613 * font.c:
14614 * fns.c:
14615 * fileio.c:
14616 * emacs.c:
14617 * dispnew.c:
14618 * dispextern.h:
14619 * config.in:
14620 * atimer.c:
2ae37cf0 14621 * Makefile.in: Remove code for Carbon.
aac0c6e3 14622
f0131492 146232008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
14624
14625 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
14626
146272008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14628
14629 * macterm.h (kCGBitmapByteOrder32Host): New define for
14630 non-universal SDKs.
14631
14632 * image.c (mac_create_cg_image_from_image, image_load_image_io)
14633 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
14634
14635 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
14636 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
14637
146382008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
14639
14640 * w32inevt.c: Include dispextern.h.
14641
146422008-07-26 Andreas Schwab <schwab@suse.de>
14643
14644 * print.c (print_object): Fix off-by-one in last change.
14645
146462008-07-25 Juanma Barranquero <lekktu@gmail.com>
14647
14648 * term.c (syms_of_term): Don't initialize default_orig_pair,
14649 default_set_foreground and default_set_background on Windows.
14650
146512008-07-25 Jason Rumney <jasonr@gnu.org>
14652
14653 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
14654 ScriptItemize. Clean up return value checking. Remove unused
14655 variables.
14656 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
14657 shaping engine.
14658
14659 * w32font.c (w32font_has_char): Handle the case where we can't
14660 determine the script for a character.
14661
146622008-07-25 Chong Yidong <cyd@stupidchicken.com>
14663
14664 * term.c (syms_of_term): Initialize default_orig_pair,
14665 default_set_foreground, and default_set_background.
14666
14667 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
14668 clash (bug#86).
14669 (getloadavg): Callers changed.
14670
14671 * image.c (svg_load_image): Fix last change.
14672 (svg_load_image): Use rsvg_handle_get_dimensions to check that
14673 image size is valid. Use g_object_unref instead of deprecated
14674 rsvg_handle_free to free rsvg handle.
14675 (x_from_xcolors): Don't initialize pixmap (silence compiler).
14676
146772008-07-25 Jason Rumney <jasonr@gnu.org>
14678
14679 * w32font.c (w32font_encode_char): Encode characters outside BMP as
14680 surrogates before looking up glyph index.
14681 (w32font_text_extents): Encode as surrogates if falling back to
14682 functions that need UTF-16 wide chars.
14683
14684 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
14685 BMP as surrogates before looking up glyph index.
14686
146872008-07-25 Chong Yidong <cyd@stupidchicken.com>
14688
14689 * image.c (svg_load_image): Check for failure in return value of
14690 rsvg_handle_get_pixbuf. Free rsvg handle when done.
14691
146922008-07-25 Jason Rumney <jasonr@gnu.org>
14693
14694 * w32font.c (Fx_select_font): Reverse sense of second arg.
14695
146962008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
14697
14698 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
14699 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
14700
14701 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
14702 (PURESIZE): Use it.
14703
147042008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
14705
14706 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
14707 * m/alpha.h (TEXT_END):
14708 * m/ibmrs6000.h (TEXT_END):
14709 * m/macppc.h (TEXT_END):
14710 * s/darwin.h (TEXT_END):
14711 * s/msdos.h (TEXT_END): Remove, unused.
14712 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
14713 * s/cygwin.h: Remove comment.
14714
14715 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
14716 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
14717 * m/intel386.h (DOT_GLOBAL_START):
14718 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
14719 (USG): Remove, file not used on USG platforms.
14720
14721 * Makefile.in (HAVE_X11): Remove empty #else.
14722
147232008-07-24 Andreas Schwab <schwab@suse.de>
14724
14725 * fileio.c (Finsert_file_contents): Properly adjust undo list
14726 after format conversion.
14727
147282008-07-24 Jan Djärv <jan.h.d@swipnet.se>
14729
14730 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
14731 (menu_nav_ended): Remove.
14732 (create_menus): Remove signal connect for menu_nav_ended.
14733 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
14734 create_menus.
14735 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
14736
147372008-07-23 Jason Rumney <jasonr@gnu.org>
14738
14739 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
14740 with opened font.
14741 (w32font_open): Set font type to gdi.
14742
14743 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
14744
147452008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
14746
14747 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
14748 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
14749 defines it.
14750 * unexec.c (ADDR_CORRECT): Define unconditionally.
14751
14752 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
14753
14754 * unexec.c: Remove code depending on !COFF and USG, the file is
14755 not used for such systems.
14756
14757 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
14758 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
14759 (LD_SWITCH_SYSTEM_1): Remove, update users.
14760
14761 * s/darwin.h (DATA_END):
14762 * m/intel386.h (DATA_END):
14763 * m/ibmrs6000.h (DATA_END):
14764 * m/alpha.h (DATA_END): Remove, unused.
14765
14766 * config.in: Regenerate.
14767 * s/ms-w32.h (subprocesses): Define unconditionally.
14768 * s/template.h (subprocesses): Update comment.
14769 * s/vms.h (subprocesses):
14770 * s/usg5-4.h (subprocesses):
14771 * s/hpux10-20.h (subprocesses):
14772 * s/gnu-linux.h (subprocesses):
14773 * s/cygwin.h (subprocesses):
14774 * s/bsd-common.h (subprocesses):
14775 * s/aix4-2.h (subprocesses):
14776 * s/darwin.h (subprocesses): Do not define, defined by default now.
14777
14778 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
14779 Remove all references.
14780 (temacs): Add GNUstep specific ld flags.
14781
14782 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
14783 similarly to what X does.
14784
147852008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
14786
14787 * nsfns.m (x-list-fonts): Remove.
14788 (syms_of_nsfns): Drop the x-list-fonts declaration.
14789 * nsterm.m: Get rid of remaining "//" comments.
14790
147912008-07-22 Chong Yidong <cyd@stupidchicken.com>
14792
14793 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
14794
14795 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
14796 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
14797 (Fns_own_selection_internal, Fx_disown_selection_internal)
14798 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
14799
14800 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
14801 ... */' style of docstrings. Doc fixes.
14802
148032008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
14804
14805 * terminfo.c (UP, BC, PC): Undo previous change.
14806
14807 * nsfns.m: Rename ns prefixed functions/variables to the
14808 corresponding x versions. Update references.
14809
148102008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
14811
14812 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
14813
148142008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
14815
14816 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
14817 Remove forwarding functions.
14818 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
14819 non-static.
14820 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
14821 non-static.
14822 (ns_frame_parm_handlers): Use the new names.
14823 (syms_of_nsfns): Move to the end of file.
14824
14825 * nsterm.m (syms_of_nsterm): Move to the end of file.
14826
14827 * dispnew.c (init_display): Remove code for X10.
14828
148292008-07-22 Jason Rumney <jasonr@gnu.org>
14830
14831 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
14832 bare drive.
14833
148342008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
14835
14836 * nsterm.m (syms_of_nsterm): Remove debugging println.
14837
148382008-07-22 David Reitter <david.reitter@gmail.com>
14839
14840 * nsfns.m (do_applescript, F_do_applescript): NS version of the
14841 Carbon implementation of the same functionality: execute arbitrary
14842 AppleScript code.
14843
148442008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
14845
14846 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
14847 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
14848 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
14849 (Fx_display_mm_height, Fx_display_mm_width)
14850 (Fx_display_backing_store, Fx_display_visual_class)
14851 (Fx_display_save_under, Fx_open_connection)
14852 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
14853 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
14854 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
14855 (Fx_display_pixel_width, Fx_display_pixel_height)
14856 (Fx_display_usable_bounds, Fx_display_planes)
14857 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
14858 ... */' style of docstrings.
14859
148602008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
14861
14862 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
14863 on this platform.
14864 (mips):
14865 * m/iris4d.h (mips): Do not define.
14866 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
14867
14868 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
14869
14870 * image.c:
14871 * nsfns.m:
14872 * nsselect.m:
14873 * nsterm.h:
14874 * nsterm.m: Rename ns prefixed functions/variables to the
14875 corresponding x versions. Update references.
14876
14877 * m/ibms390x.h (NO_REMAP): Do not undefine.
14878
14879 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
14880
148812008-07-21 Chong Yidong <cyd@stupidchicken.com>
14882
14883 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
14884 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
14885 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
14886 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
14887 (Fns_display_mm_height, Fns_display_mm_width)
14888 (Fns_display_backing_store, Fns_display_visual_class)
14889 (Fns_display_save_under, Fns_open_connection)
14890 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
14891 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
14892 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
14893 (Fns_display_pixel_width, Fns_display_pixel_height)
14894 (Fns_display_usable_bounds, Fx_display_planes)
14895 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
14896
148972008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
14898
14899 * print.c (print_object): Check print_depth before searching for
14900 circularities.
14901
149022008-07-21 Michael Albinus <michael.albinus@gmx.de>
14903
14904 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
14905 only sprintf.
14906
149072008-07-21 Kenichi Handa <handa@m17n.org>
14908
14909 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
14910
149112008-07-20 Andreas Schwab <schwab@suse.de>
14912
14913 * syntax.c (find_start_pos, find_start_value)
14914 (find_start_value_byte, find_start_begv, find_defun_start)
14915 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
14916
149172008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
14918
14919 * s/sol2-3.h: Insert contents of s/sol2.h.
14920 (LD_SWITCH_SYSTEM): Remove redundant definition.
14921 * s/sol2.h: Remove, unused.
14922
149232008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14924
14925 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
14926
149272008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14928
14929 * Makefile.in (ns_appdir): Fix typo in find command.
14930
149312008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
14932
14933 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
14934
14935 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
14936 added not supported anymore.
14937
14938 * s/usg5-4-2.h (LIBS_SYSTEM):
14939 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
14940
14941 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
14942 * s/lynxos.h (GETPGRP_NO_ARG):
14943 * s/hpux10-20.h (NO_SIOCTL_H):
14944 * s/gnu.h (GETPGRP_NO_ARG):
14945 * s/gnu-linux.h (NO_SIOCTL_H):
14946 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
14947 * s/cygwin.h (GETPGRP_NO_ARG):
14948 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
14949 (C_DEBUG_SWITCH): Remove duplicate definition.
14950
14951 * m/ibms390.h: Remove boilerplate comments.
14952
14953 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
14954
14955 * process.c (HAVE_SERIAL): Consolidate ifdefs.
14956 (wait_reading_process_output): Remove code for SunOS, platform not
14957 supported anymore. Use SOLARIS2 instead of sun.
14958
149592008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14960
14961 * font.c (font_open_by_name): Under NS, default lface height to zero.
14962 (font_open_for_lface): Under NS, set size based on frame fontsize.
14963 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
14964 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
14965
149662008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14967
14968 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
14969 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
14970 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
14971 YES/NO.
14972 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
14973 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
14974 * Makefile.in (clean): Clear out build destination dir.
14975
149762008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14977
14978 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
14979 xterm, xselect.
14980 * lisp.h: Remove declaration of hash_remove.
14981 * nsgui.h: Remove redefinitions of hash_remove.
14982 * fns.c (hash_remove): Rename to hash_remove_from_table.
14983
149842008-07-19 Seiji Zenitani <zenitani@mac.com>
14985
14986 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
14987 strdup() the family UTF8String before modifying it.
14988
149892008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14990
14991 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
14992 NS_FACE_BACKGROUND with 0 instead of nil.
14993 * nsfont.m (nsfont_draw): Same.
14994
149952008-07-19 Chong Yidong <cyd@stupidchicken.com>
14996
14997 * nsfns.m (ns_set_background_color): Fix crash.
14998
149992008-07-18 Chong Yidong <cyd@stupidchicken.com>
15000
15001 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
15002
150032008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
15004
15005 * puresize.h (BASE_PURESIZE): Increase to 1240000.
15006
150072008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15008
15009 * gtkutil.c: Include <config.h> instead of "config.h".
15010
15011 * lisp.h (Foverlay_buffer): Add EXFUN.
15012
15013 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
15014 child process to complete child_setup. Undo 2005-09-21 change.
15015
15016 * s/darwin.h: Mention setsid after vfork.
15017
150182008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15019
15020 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
15021 Depend on macgui.h.
15022
15023 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
15024 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
15025
15026 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
15027 and f19.
15028 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
15029
15030 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
15031 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
15032 Remove enumerators.
15033
15034 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
15035 Check if FACE_FROM_ID returns NULL.
15036
150372008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
15038
15039 * w32inevt.c (change_frame_size): Remove extern declaration.
15040 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
15041 change_frame_size.
15042
150432008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
15044
15045 * getloadavg.c: Revert last change (2008-07-15).
15046
150472008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
15048
15049 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 15050 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
15051 from configure.
15052
150532008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
15054
15055 * s/sol2.h:
15056 * s/sol2-4.h: Reorganize conditionals.
15057
15058 * ecrt0.c: Remove code depending on m68000, not used anymore.
15059
15060 * fns.c (hash_remove): Make static.
15061 * lisp.h (hash_remove): Don't prototype.
15062
15063 * m/ibmrs6000.h:
15064 * m/ibms390x.h:
15065 * m/macppc.h: Remove boilerplate comments.
15066
15067 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
15068 Solaris, which does not need them.
15069
15070 * m/vax.h: Remove comments about unsupported systems.
15071
15072 * s/darwin.h: Reorganize ifdefs.
15073
150742008-07-17 Andreas Schwab <schwab@suse.de>
15075
15076 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
15077
150782008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
15079
15080 Use SDATA. Follow coding convention of placing operators at
15081 beginning of next line rather than end of previous line, and placing
15082 spaces around infix operators.
15083
15084 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
15085 in case it was defined already.
15086 USE @GNUSTEP_MAKEFILES@ rather than envvars.
15087 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
15088 ns_default.
15089 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
15090 Lisp_Objects.
15091 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
15092 (ns_defined_color, ns_color_to_lisp): Declare.
15093 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
15094 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
15095 it's accepted even with USE_LISP_UNION_TYPE.
15096 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
15097 (update_frame_tool_bar): Remove apparently obsolete tests for
15098 non-integerness of f->tool_bar_lines.
15099 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
15100 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
15101 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
15102 (nsfont_open): Don't confuse NULL for Qnil.
15103 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
15104 * menu.h (find_and_call_menu_selection):
15105 * menu.c (find_and_call_menu_selection): Use just int for vector size.
15106 (find_and_return_menu_selection): Always return something.
15107 * frame.h: Include dispextern.h for Display_Info.
15108 (display_x_get_resource): Declare.
15109
151102008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
15111
15112 * syntax.c: Remove stdio.h include accidentally introduced in
15113 Emacs.app commit.
15114 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
15115 NS_IMPL_COCOA.
15116 * keyboard.c (handle_async_input, input_available_signal): Remove
15117 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
15118
151192008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
15120
15121 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
15122 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
15123 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
15124 Use SDATA.
15125
15126 * keymap.c: Remove all NS-specific code.
15127 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
15128 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
15129 where_is_preferred_modifier, return a different value depending on how
15130 preferred is the binding.
15131 (where_is_internal): Adjust accordingly.
15132 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
15133 Adjust to new preferred_sequence_p.
15134 (syms_of_keymap): Declare `where-is-preferred-modifier'.
15135 * keyboard.c (parse_solitary_modifier): Not static any more.
15136 * keyboard.h (parse_solitary_modifier): Declare.
15137
151382008-07-16 Andreas Schwab <schwab@suse.de>
15139
15140 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
15141 of easymenu.
15142
151432008-07-16 Chong Yidong <cyd@stupidchicken.com>
15144
15145 * xdisp.c (move_it_in_display_line): Account for word wrap, so
15146 that we don't move off the line.
15147
151482008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
15149
15150 * keyboard.c (Qsuper): Remove.
15151 (parse_menu_item): Don't call where_is_internal specially for NS.
15152
151532008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
15154
15155 * s/gnu-linux.h: Remove boilerplate comments.
15156
15157 * m/alpha.h (__ELF__): Consolidate conditions.
15158
15159 * m/m68k.h (linux): Use GNU_LINUX instead.
15160 Remove boilerplate comments.
15161
15162 * m/intel386.h: Undo refactoring from previous change.
15163 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
15164 too, remove dead code.
15165 (linux): Use GNU_LINUX instead.
15166
151672008-07-16 Jason Rumney <jasonr@gnu.org>
15168
15169 * w32gui.h: Repeat 26 June changes lost by last change.
15170
151712008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
15172
15173 * systty.h: Remove code for Aix on 386, unsupported platform.
15174
15175 * s/ms-w32.h: Remove boilerplate comments.
15176 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
15177
15178 * s/gnu-linux.h (TERM): Remove support.
15179 (HAVE_SYSVIPC): Remove, unused.
15180 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
15181 for this system.
15182
15183 * process.c: Remove support for IRIS, unused.
15184 Remove support for TERM, not relevant anymore.
15185
15186 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
15187 used with the definition.
15188
15189 * s/aix4-2.h (static): Do not undef.
15190
15191 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
15192 only used on Aix.
15193 (HAVE_SYSVIPC): Remove, unused.
15194
15195 * m/hp800.h (CANNOT_DUMP): Do not undef.
15196
15197 * m/alpha.h: Fix comment.
15198
15199 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
15200 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
15201 used by this configuration.
15202 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
15203 * unexec.c: Remove code depending on HPUX and
15204 USG_SHARED_LIBRARIES, not used with this file. Remove code
15205 depending on IRIS, unused. Remove if 0-ed code.
15206
15207 * s/template.h: Remove comments about static.
15208
15209 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
15210 Remove if 0-ed code.
15211 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
15212 were the same as the default.
15213 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
15214 Remove boilerplate comments.
15215 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
15216 (HAVE_SYSVIPC): Remove, unused.
15217 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
15218
15219 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
15220 Remove boilerplate comments.
15221 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
15222 Remove boilerplate comments.
15223 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
15224 Remove boilerplate comments.
15225 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
15226
15227 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
15228 USG systems which do not use DATA_SEG_BITS.
15229 Refactor code. Remove boilerplate comments.
15230
15231 * m/ibms390.h:
15232 * m/m68k.h:
15233 * s/bsd-common.h:
15234 * s/cygwin.h:
15235 * s/darwin.h:
15236 * s/freebsd.h:
15237 * s/gnu.h:
15238 * s/msdos.h: Remove boilerplate comments.
15239
15240 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 15241 do not use this file.
aac0c6e3
MR
15242 (IRIS_4D): Remove, unused.
15243
15244 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 15245 do not use this file.
aac0c6e3
MR
15246 (SIGN_EXTEND_CHAR):
15247 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
15248 * unexmips.c: Remove file, unused.
15249
15250 * editfns.c (Fuser_full_name): Replace the only use of
15251 USER_FULL_NAME with its value.
15252 * config.in: Regenerate.
15253
152542008-07-16 David Reitter <david.reitter@gmail.com>
15255
15256 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
15257 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
15258
152592008-07-16 Glenn Morris <rgm@gnu.org>
15260
15261 * emacs.c (system-type): Doc fix.
15262
152632008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
15264
15265 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
15266 If the cache doesn't work, let's fix it, rather than work around it.
15267
152682008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
15269
15270 * Makefile.in: Correct additions for nsfont.o in last commit.
15271 * nsfont.m: New file (forgot last commit).
15272
152732008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
15274
15275 * callproc.c (set_initial_environment): Initialize
15276 Vprocess_environment under CANNOT_DUMP (fixes crash when
15277 batch-compiling for bootstrap).
15278
152792008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 15280 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 15281
c4cc8b9a
JB
15282 * frame.c (make_initial_frame): Call init_frame_faces(f) in
15283 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
15284
152852008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
15286
15287 Changes and additions for NeXTstep windowing system (Cocoa and
15288 GNUstep) support.
15289
15290 * Makefile.in:
15291 * config.in: Support defines and build commands for NS port.
15292 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
15293 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
15294 * dispextern.h: Include nsgui.h and add needed typedefs under NS
15295 windowing.
15296 (struct face): Add synth_ital field.
15297 * dispnew.c: Include nsterm.h when compiling under NS windowing.
15298 (init_display): Initialize Vinitial_window_system to "ns" when so
15299 compiled.
15300 * emacs.c: Include GSConfig.h when compiling under GNUstep.
15301 (display_arg): Use under NS.
15302 (main): Under NS, allocate autorelease pool and handle command line
15303 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
15304 (standard_args): Add NS-specific args.
15305 (shut_down_emacs): Shut down NS terminal if compiled under NS.
15306 * font.c (DEFAULT_ENCODING): New variable.
15307 (font_find_for_lface): Use it.
15308 (syms_of_font): Load syms_of_nsfont under NS.
15309 * font.h: Declare nsfont_driver when compiled under NS.
15310 * fontset.c: When compiling under NS, include nsterm.h.
15311 (fontset_from_font): Autoconstruct fontset under NS.
15312 * frame.c (various): Under NS, include nsterm.h, add Qns window system
15313 symbol, document and use it.
15314 (do_switch_frame): When for_deletion under Cocoa, add
15315 Fraise_frame(Qnil).
15316 (x_set_frame_parameters): Ensure font attribute changes are picked up.
15317 (x_get_arg): Allow "yes" and "no" as boolean values.
15318 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
15319 Qright under Cocoa.
15320 (focus-follows-mouse): Default to 0 under NS.
15321 * frame.h (enum output_method): Add output_ns.
15322 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
15323 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
15324 (FRAME_WINDOW_P): NS-specific definition.
15325 * fringe.c (max_used_fringe_bitmap): Make public.
15326 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
15327 (getloadavg): Use NeXT code under descendant OS's.
15328 * image.c (includes and header section, x_create_bitmap_from_data)
15329 (x_create_bitmap_from_file, free_bitmap_record, image_background)
15330 (image_background_transparent, x_clear_image_1)
15331 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
15332 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
15333 (x_to_xcolors, x_from_xcolors, x_disable_image)
15334 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
15335 other GUIs, including XPM support using code originally written for
15336 Carbon GUI.
15337 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
15338 using NS API.
15339 (image_ascent): Use font metrics macros instead of direct struct field
15340 access.
15341 * keyboard.c (includes): Add nsterm.h when compiling under NS.
15342 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
15343 Also, handle NS as GTK for menu bar purposes.
15344 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
15345 toolkit where they differ.
15346 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
15347 use cachelist, still needed under NS.
15348 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
15349 (struct widget_value): Define it here for menu.c.
15350 * keymap.c (includes): Include modifier internals.
15351 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
15352 NS.
15353 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
15354 support for preferring sequences using certain modifiers, specified by
15355 the FIRSTONLY argument.
15356 * lisp.h (hash_remove): Rename to avoid name clash when compiling
15357 under NS GNUstep implementation.
15358 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
15359 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
15360 * menu.c: Include nsterm.h under NS.
15361 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
15362 (free_menubar_widget_tree_value, update_submenu_strings)
15363 (find_and_call_menu_selection): Treat NS as X and NT.
15364 (find_and_return_menu_selection): New function, used for popup menus.
15365 * nsgui.h:
15366 * nsterm.h:
15367 * nsfns.m:
15368 * nsimage.m:
15369 * nsmenu.m:
15370 * nsselect.m:
15371 * nsterm.m: New files.
15372 * process.c (wait_reading_process_output): Under NS, call ns_select()
15373 instead of plain select().
15374 * syntax.c (char_quoted): Under NS, avoid a crash when called near
15375 beginning of buffer.
15376 * sysselect.h (init_process): Rename when compiling under Cocoa to
15377 avoid name conflict.
15378 * termhooks.h (display_info): Add ns_display_info to union.
15379 * terminal.c (Fterminal_live_p): Add ns to terminal types.
15380 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
15381 COCOA environment.
15382 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
15383 unexec() signature. (Note, this will dump, but the resulting file
15384 crashes; unexosx is used instead; keeping around for reference and
15385 possible aid in getting dump working under GNUstep.)
15386 * w32gui.h (button_type, widget_value): Remove definitions (now in
15387 keyboard.h).
15388 * window.c: Include nsterm.h when compiling under NS.
15389 * xdisp.c (includes): Include nsterm.h when compiling under NS.
15390 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
15391 other GUI windowing systems.
15392 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
15393 GTK.
15394 (x_consider_frame_title): Under NS, set icon type and frame
15395 modified-state indicator; use ns_set_name_as_filename() when using
15396 formatted title.
15397 (update_window_cursor): Make public when compiling under NS.
15398 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
15399 (hourglass_atimer, Vhourglass_delay
15400 * xfaces.c (header section, init_frame_faces, clear_font_table)
15401 (defined_color, unload_color, x_face_list_fonts)
15402 (prepare_face_for_display): Add NS support parallel to other GUIs.
15403 Emulate GCs like other non-X GUIs.
15404 (split_font_name): Don't lowercase font name under NS.
15405 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
15406 under NS.
15407 * s/darwin.h: Add support for compilation under NS.
15408
154092008-07-15 Jason Rumney <jasonr@gnu.org>
15410
15411 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
15412 (w32_show_hourglass): Rename from show_hourglass.
15413 (w32_hide_hourglass): Rename from hide_hourglass.
15414 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
15415 (Vhourglass_delay): Declare extern.
15416 (hourglass_started): Remove.
15417
15418 * xdisp.c (Vhourglass_delay): Remove static.
15419 (hourglass_started, start_hourglass, cancel_hourglass):
15420 Don't include these versions on WINDOWSNT.
15421
154222008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
15423
15424 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
15425 variables (formerly in xfns.c).
15426 (show_hourglass, hide_hourglass): New prototypes (same).
15427 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
15428 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
15429 in xfns.c).
15430 (syms_of_xdisp): Declare/initialize display-hourglass,
15431 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
15432 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
15433 formerly in xfns.c.
15434 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
15435 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
15436 (start_hourglass, cancel_hourglass): Remove.
15437 (show_hourglass, hide_hourglass): Remove prototypes and static
15438 modifiers.
15439 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
15440 hourglass_atimer, hourglass_shown_p declaration/initialization.
15441 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
15442 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
15443 (start_hourglass, cancel_hourglass): Remove.
15444 (show_hourglass, hide_hourglass): Remove prototypes and static
15445 modifiers.
15446 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
15447 hourglass_atimer, hourglass_shown_p declaration/initialization.
15448 * w32fns.c (display_hourglass_p, Vhourglass_delay)
15449 (DEFAULT_HOURGLASS_DELAY): Remove.
15450 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
15451 hourglass_shown_p declaration/initialization.
15452
154532008-07-14 Jason Rumney <jasonr@gnu.org>
15454
15455 * w32fns.c (w32_get_arg): Remove wrapper function.
15456 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
15457 directly.
15458 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
15459
154602008-07-14 Kenichi Handa <handa@m17n.org>
15461
15462 * xfont.c (xfont_open): Add workaround for X's bug.
15463
154642008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
15465
15466 * fontset.c: Include <stdio.h> unconditionally.
15467
154682008-07-13 Michael Albinus <michael.albinus@gmx.de>
15469
15470 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
15471 for filtering.
15472
154732008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
15474
15475 * s/vms.h: Use __GNUC__ instead of _GNUC_.
15476
15477 * m/macppc.h:
15478 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
15479
c4cc8b9a 15480 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
15481 (SPECIAL_EMACS_INT):
15482 * m/ia64.h (SPECIAL_EMACS_INT):
15483 * m/amdx86-64.h (SPECIAL_EMACS_INT):
15484 * s/gnu.h (NLIST_STRUCT):
15485 * s/aix4-2.h (X11R5_INHIBIT_I18N):
15486 * s/gnu-linux.h (LINUX):
15487 * s/msdos.h (HAVE_FACES):
15488 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
15489
15490 * systty.h:
15491 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
15492 anymore.
15493
154942008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
15495
15496 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
15497 always defined as int.
15498
15499 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
15500 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
15501 * s/gnu-linux.h (HAVE_WAIT_HEADER):
15502 * s/freebsd.h (HAVE_WAIT_HEADER):
15503 * s/bsd-common.h (HAVE_UNION_WAIT):
15504 * s/aix4-2.h (HAVE_WAIT_HEADER):
15505 * m/mips.h (HAVE_UNION_WAIT):
15506 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
15507 (COFF, static): Do not define, they are undefined later in the file.
15508
15509 * process.c (update_status): Don't use a union.
15510 (status_convert):
15511 (sigchld_handler): Use int instead of WAITTYPE.
15512
155132008-07-12 Chong Yidong <cyd@stupidchicken.com>
15514
15515 * indent.c (Fvertical_motion): Restore hscroll before moving to
15516 goal column.
15517
155182008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
15519
15520 * lisp.h: Remove left over code.
15521
155222008-07-11 Andreas Schwab <schwab@suse.de>
15523
15524 * lisp.h: Fix logic in last change.
15525
15526 * menu.h: New file.
15527 * menu.c: Include it.
15528 * xmenu.c: Likewise.
15529 * Makefile.in: Update dependencies.
15530
155312008-07-11 Kenichi Handa <handa@m17n.org>
15532
15533 * fontset.c (fontset_from_font): Cancel the previous change.
15534
155352008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
15536
15537 * lisp.h:
15538 * w32heap.c:
15539 * emacs.c:
15540 * alloc.c: Replace all references of NO_UNION_TYPE with
15541 USE_LISP_UNION_TYPE.
15542
15543 * m/xtensa.h (NO_UNION_TYPE):
15544 * m/vax.h (NO_UNION_TYPE):
15545 * m/template.h (NO_UNION_TYPE):
15546 * m/sparc.h (NO_UNION_TYPE):
15547 * m/mips.h (NO_UNION_TYPE):
15548 * m/macppc.h (NO_UNION_TYPE):
15549 * m/m68k.h (NO_UNION_TYPE):
15550 * m/iris4d.h (NO_UNION_TYPE):
15551 * m/intel386.h (NO_UNION_TYPE):
15552 * m/ibms390x.h (NO_UNION_TYPE):
15553 * m/ibms390.h (NO_UNION_TYPE):
15554 * m/ibmrs6000.h (NO_UNION_TYPE):
15555 * m/ia64.h (NO_UNION_TYPE):
15556 * m/hp800.h (NO_UNION_TYPE):
15557 * m/arm.h (NO_UNION_TYPE):
15558 * m/amdx86-64.h (NO_UNION_TYPE):
15559 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
15560 defining it the same.
15561
155622008-07-10 Chong Yidong <cyd@stupidchicken.com>
15563
15564 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
15565
155662008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
15567
15568 * fileio.c:
50426a04 15569 * sysdep.c:
aac0c6e3
MR
15570 * systty.h:
15571 * m/ibmrs6000.h:
15572 * m/iris4d.h:
15573 * s/aix4-2.h:
15574 * s/freebsd.h:
15575 * s/gnu-linux.h:
15576 * s/hpux10-20.h:
15577 * s/hpux11.h:
15578 * s/netbsd.h:
15579 * s/sol2-3.h:
15580 * s/sol2-4.h:
15581 * s/sol2.h:
15582 * s/usg5-4.h:
15583 * s/vms.h: Remove references to unused variables.
15584
155852008-07-10 Andreas Schwab <schwab@suse.de>
15586
15587 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
15588 pattern before matching the generic family.
15589
155902008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
15591
15592 * unexec.c:
15593 * s/vms.h:
15594 * s/usg5-4-2.h:
15595 * s/sol2-5.h:
15596 * s/freebsd.h:
15597 * s/darwin.h: Remove dead code.
15598
15599 * m/template.h:
15600 * m/sparc.h:
15601 * m/mips.h:
15602 * m/m68k.h:
15603 * m/iris4d.h:
15604 * m/intel386.h:
15605 * m/ibms390x.h:
15606 * m/ibms390.h:
15607 * m/ia64.h:
15608 * m/hp800.h:
15609 * m/arm.h:
15610 * m/amdx86-64.h: Remove dead code and references to unused
15611 and compiler defined symbols.
15612
15613 * unexmips.c:
15614 * unexelf.c: Remove references to desupported systems.
15615
15616 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
15617
15618 * m/powermac.h: Remove boilerplate comments.
15619 (NO_REMAP): Remove unused definition.
15620
15621 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
15622 define them.
15623
156242008-07-10 Kenichi Handa <handa@m17n.org>
15625
15626 * xfont.c (xfont_open): Log the reason of failure.
15627
156282008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
15629
15630 * fontset.c (fontset_get_font_group):
15631 * font.c (font_check_otf): Specify argument types.
15632
156332008-07-09 Kenichi Handa <handa@m17n.org>
15634
15635 * coding.c (detect_coding_utf_8): Set detect_info->found only when
15636 non-ASCII char is found.
15637
15638 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
15639 (reorder_font_vector): Change the arg preferred_family to font.
15640 Prefer the spec matching with font.
15641 (fontset_get_font_group): New function.
15642 (fontset_find_font): Change the format of an element of a realized
15643 fontset. Use fontset_get_font_group.
15644 (fontset_font): Try the current fontset, the default fontset, the
15645 fallbacks of the current fontset, and the fallbacks of the default
15646 fontset in this order.
15647 (face_for_char): Delete the shortcut to use the current font.
15648 (fontset_from_font): Don't set fonts for Latin in the fontset.
15649
15650 * font.h (font_make_object, font_match_p): Adjust prototypes.
15651
15652 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
15653
15654 * font.c (font_make_object): New arg entity and pixelsize.
15655 (font_check_otf_features, font_check_otf): New functions.
15656 (font_match_p): Check :lang, :script, and :otf properties.
15657
15658 * xfont.c (xfont_open): Adjust it for the change of
15659 font_make_object.
15660 (xfont_text_extents): Fix initial setting of metrics.
15661
15662 * ftfont.c (struct ftfont_info): New member index, delete member
15663 fc_charset_idx. Make the member order compatible with struct
15664 xftfont_info.
15665 (fc_charset_table): Change charset names to registry names.
15666 (ftfont_pattern_entity): Delete the args registry and
15667 fc_charset_idx. Change the value of :font-entity property
15668 to (FONTNAME . INDEX). Always set :registry property to
15669 `iso10646-1'.
15670 (struct ftfont_cache_data): New struct.
15671 (ftfont_lookup_cache): New arg for_face.
15672 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
15673 (ftfont_driver): Set the member otf_capability.
15674 (ftfont_get_charset): Adjust it for the change of
15675 fc_charset_table.
15676 (OTF_TAG_SYM): New macro.
15677 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
15678 for the change of fc_charset_table.
15679 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
15680 ftfont_pattern_entity. Add FC_INDEX to objset.
15681 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
15682 and ftfont_pattern_entity.
15683 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
15684 font_make_object, struct ftfont_info.
15685 (ftfont_has_char): Use ftfont_get_fc_charset.
15686 (ftfont_otf_features, ftfont_otf_capability): New functions.
15687 (ftfont_shape): Use ftfont_get_otf.
15688 (ftfont_text_extents): Fix initial setting of metrics.
15689
15690 * xftfont.c (struct xftfont_info): New member ft_size. Make the
15691 member order compatible with struct ftfont_info.
15692 (xftfont_open): Add FC_CHARSET to the pattern. Set
15693 xftfont_info->ft_size. Don't unlock the face. Check BDF
15694 properties if appropriate.
15695 (xftfont_close): Unlock the face.
15696 (xftfont_anchor_point, xftfont_shape): Deleted.
15697 (syms_of_xftfont): Don't set members anchor_point and shape of
15698 xftfont_driver.
15699
15700 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
15701 font_make_object.
15702
15703 * w32font.c (w32font_open): Adjust it for the change of
15704 font_make_object.
15705 (w32font_open_internal): Don't set properties of font_object here.
15706
157072008-07-08 Chong Yidong <cyd@stupidchicken.com>
15708
15709 * macfns.c (x_create_tip_frame):
15710 * w32fns.c (x_create_tip_frame):
15711 * xfns.c (x_create_tip_frame): Pass parameter argument to
15712 face-set-after-frame-default.
15713
15714 * xfaces.c (Finternal_merge_in_global_face): Save merged
15715 attributes for the default face back into the face vector.
15716
157172008-07-08 Andreas Schwab <schwab@suse.de>
15718
15719 * fontset.h: Declare fontset_from_font. Don't declare
15720 new_fontset_from_font and fontset_from_font_name.
15721 * xterm.c: Include "fontset.h".
15722 * Makefile.in (xterm.o): Update dependencies.
15723
157242008-07-08 Glenn Morris <rgm@gnu.org>
15725
15726 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
15727 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
15728
157292008-07-07 Chong Yidong <cyd@stupidchicken.com>
15730
15731 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
15732 (x_set_frame_parameters): Don't bind it.
15733
157342008-07-07 Juanma Barranquero <lekktu@gmail.com>
15735
15736 * w32fns.c (map_w32_filename): Declare extern.
15737
157382008-07-07 Jason Rumney <jasonr@gnu.org>
15739
15740 * w32term.c (WS_EX_LAYERED): Define if not already.
15741
157422008-07-06 Chong Yidong <cyd@stupidchicken.com>
15743
15744 * xfaces.c (set_font_frame_param): Don't try to set the font
15745 parameter if it is still unspecified in the lface.
15746
157472008-07-05 Chong Yidong <cyd@stupidchicken.com>
15748
15749 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
15750 face if it didn't already exist.
15751
15752 * xdisp.c (try_window_id): Give up if word-wrapping is on.
15753
157542008-07-05 Andreas Schwab <schwab@suse.de>
15755
15756 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
15757
157582008-07-05 Chong Yidong <cyd@stupidchicken.com>
15759
15760 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
15761 word-wrapping.
15762 (IT_DISPLAYING_WHITESPACE): New macro.
15763 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
15764 when word-wrapping. Simplify word-wrapping logic. Use correct
15765 pixel positions when saving copies of the iterator.
15766 (display_line): Use proper wrap point if the last character on a
15767 line was preceded by whitespace.
15768
157692008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
15770
15771 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
15772
157732008-07-04 Kenichi Handa <handa@m17n.org>
15774
15775 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
15776
15777 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
15778
157792008-07-02 Jason Rumney <jasonr@gnu.org>
15780
15781 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 15782 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
15783
15784 * xdisp.c (next_element_from_display_vector): Move assignment out
15785 of if statement.
15786
157872008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
15788
15789 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
15790
15791 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
15792 (syms_of_fileio): Initialize and export them.
15793 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
15794
15795 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
15796 (Fsystem_move_file_to_trash): New function.
15797 (syms_of_w32fns): Export it to lisp.
15798
157992008-07-01 Jason Rumney <jasonr@gnu.org>
15800
15801 * w32font.c (w32font_text_extents): Don't count overhang as part
15802 of width.
15803
158042008-06-30 Miles Bader <miles@gnu.org>
15805
15806 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
15807 Add `avoid_cursor_p' field.
15808
15809 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
15810 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
15811 (append_glyph, append_composite_glyph, produce_image_glyph)
15812 (append_stretch_glyph): Initialize avoid_cursor_p.
15813 (get_it_property): Rename from `get_line_height_property'.
15814 (x_produce_glyphs): Use get_it_property.
15815 (handle_line_prefix, push_display_prop): New functions.
15816 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
15817 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
15818 New variables.
15819 (syms_of_xdisp): Initialize them.
15820
158212008-06-30 Kenichi Handa <handa@m17n.org>
15822
15823 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
15824 XftDefaultSubstitute (they are called in XftFontMatch).
15825 (xftfont_open): Fix args to ftfont_font_format.
15826
15827 * ftfont.c (fc_charset_table): New member lang.
15828 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 15829 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
15830 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
15831 (ftfont_open): Fix args to ftfont_font_format.
15832 (ftfont_font_format): New arg filename.
15833
158342008-06-30 Chong Yidong <cyd@stupidchicken.com>
15835
15836 * xfaces.c (Finternal_merge_in_global_face): If default face was
15837 modified, realize it again. Update the font face attribute.
15838
158392008-06-29 Jason Rumney <jasonr@gnu.org>
15840
15841 * w32term.c (x_set_frame_alpha): Fix logic.
15842
158432008-06-29 Kenichi Handa <handa@m17n.org>
15844
15845 * fontset.c (Finternal_char_font): Return font-object instead of
15846 font-name.
15847
15848 * composite.c (get_composition_id): Fix the width calculation for TAB.
15849
158502008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
15851
15852 * indent.c (Fvertical_motion): Properly handle float column arg.
15853
158542008-06-28 Jason Rumney <jasonr@gnu.org>
15855
15856 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
15857 (pfnSetLayeredWindowAttributes): New function pointer.
15858 (w32_initialize): Initialize it when supported.
15859 (x_set_frame_alpha): New function.
15860
15861 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
15862 (w32_frame_parm_handlers): Set alpha handler.
15863
15864 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
15865
158662008-06-27 Jason Rumney <jasonr@gnu.org>
15867
15868 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
15869 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
15870 (w32_to_x_charset, x_to_w32_charset)
15871 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
15872 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
15873 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
15874 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
15875 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
15876 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
15877 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
15878 (Qw32_charset_unicode): Remove.
15879 (syms_of_w32fns): Update for above changes.
15880
15881 * w32font.c (w32_to_x_charset, x_to_w32_charset)
15882 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
15883 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
15884 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
15885 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
15886 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
15887 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
15888 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
15889 (syms_of_w32font): Update for above changes.
15890
158912008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
15892
15893 * s/usg5-4.h: Fix previous change: keep the correct branch of a
15894 removed #if.
15895 (USG_SHARED_LIBRARIES): Remove duplicate definition.
15896
158972008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 15898 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
15899
15900 * makefile.w32-in (LOCAL_FLAGS):
15901 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
15902
15903 * sysdep.c (_spawnlp, _getpid):
15904 Declare with explicit _cdecl instead of _CRTAPI1.
15905
15906 * editfns.c (Fget_internal_run_time):
15907 Check for WINDOWSNT with #ifdef, not #if.
15908
159092008-06-26 Jason Rumney <jasonr@gnu.org>
15910
15911 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
15912
15913 * w32term.c (x_draw_glyph_string_foreground)
15914 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
15915 Use FONT_HANDLE macro.
15916 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
15917
15918 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
15919 (uniscribe_encode_char): Use FONT_HANDLE macro.
15920
15921 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
15922 (w32font_text_extents): Use precast w32_font.
15923 (w32font_close): Free cached metrics.
15924 (w32font_open_internal): Allocate space for name on stack.
15925
159262008-06-26 Chong Yidong <cyd@stupidchicken.com>
15927
15928 * xdisp.c (extend_face_to_end_of_line): Fix last change.
15929
159302008-06-26 Jason Rumney <jasonr@gnu.org>
15931
15932 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
15933 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
15934
159352008-06-26 Juanma Barranquero <lekktu@gmail.com>
15936
15937 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
15938
159392008-06-26 Jason Rumney <jasonr@gnu.org>
15940
15941 * w32bdf.c, w32bdf.h: Remove obsolete files.
15942
15943 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
15944
15945 * w32gui.h: Don't include w32bdf.h.
15946 (XCharStruct, enum w32_char_font_type, W32FontStruct):
15947 Remove obsolete font support.
15948
15949 * w32font.h (struct w32font_info): Remove compat_w32_font.
15950 Add hfont member.
15951 (FONT_COMPAT): Remove obsolete macro.
15952
15953 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
15954 (w32font_encode_char, w32font_text_extents): Use new hfont member.
15955 (w32font_open_internal): Remove compat code. Set new hfont member.
15956 (Fx_select_font): Use new hfont member.
15957
15958 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
15959 (uniscribe_encode_char): Use new hfont member.
15960
15961 * w32term.c (x_draw_glyph_string_foreground)
15962 (x_draw_composite_glyph_string_foreground): Use new hfont member.
15963 (x_draw_glyph_string): Use metrics in w32font_info.
15964
159652008-06-26 Kenichi Handa <handa@m17n.org>
15966
15967 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
15968
159692008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
15970
15971 * unexnext.c:
15972 * m/ews4800.h:
15973 * m/hp9000s300.h:
15974 * m/ibm370aix.h:
15975 * m/mips-siemens.h:
15976 * m/ncr386.h:
15977 * m/next.h:
15978 * m/pmax.h:
15979 * m/powerpcle.h:
15980 * m/tandem-s2.h:
15981 * s/386bsd.h:
15982 * s/bsd386.h:
15983 * s/bsd4-1.h:
15984 * s/bsd4-2.h:
15985 * s/bsdos2-1.h:
15986 * s/bsdos2.h:
15987 * s/bsdos3.h:
15988 * s/bsdos4.h:
15989 * s/nextstep.h:
15990 * s/ultrix4-3.h:
15991 * s/usg5-0.h:
15992 * s/usg5-2-2.h:
15993 * s/usg5-2.h:
15994 * s/usg5-4-3.h:
15995 * s/ux4800.h:
15996 * s/uxpds.h:
15997 * s/uxpv.h: Remove support for obsolete systems.
15998 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 15999 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
16000 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
16001 Remove, insert contents in s/aix4-2.h.
16002 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
16003 * s/bsd4-3.h: Rename to ...
16004 * s/bsd-common.h: ... this.
16005 * data.c:
16006 * doc.c:
16007 * ecrt0.c:
16008 * emacs.c:
16009 * fileio.c:
16010 * floatfns.c:
16011 * keyboard.c:
16012 * mem-limits.h:
16013 * print.c:
16014 * process.c:
16015 * sysdep.c:
16016 * syssignal.h:
16017 * systty.h:
16018 * syswait.h:
16019 * term.c:
16020 * unexec.c:
16021 * unexelf.c:
16022 * unexhp9k800.c:
16023 * m/hp800.h:
16024 * m/ibmrs6000.h:
16025 * m/mips.h:
16026 * m/vax.h:
16027 * s/darwin.h:
16028 * s/freebsd.h:
16029 * s/gnu.h:
16030 * s/ms-w32.h:
16031 * s/msdos.h:
16032 * s/netbsd.h:
16033 * s/template.h: Remove references to obsolete variables.
16034
16035 * Makefile.in: Add dependencies for all unexec files.
16036 (admindir): Remove unused variable.
16037 (UNEXEC_SRC): Remove references.
16038
160392008-06-25 Chong Yidong <cyd@stupidchicken.com>
16040
16041 * xfns.c (x_default_font_parameter): If Xft is available, first
16042 try Monospace-12 for the default font.
16043
160442008-06-25 Jason Rumney <jasonr@gnu.org>
16045
16046 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
16047
160482008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
16049
16050 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
16051
16052 * buffer.c (syms_of_buffer): Remove default-word-wrap.
16053
160542008-06-25 Juanma Barranquero <lekktu@gmail.com>
16055
16056 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
16057 <scroll-conservatively>: Fix typo in docstring.
16058
16059 * xselect.c (Fx_send_client_event): Doc fix.
16060
160612008-06-25 Kenichi Handa <handa@m17n.org>
16062
16063 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
16064
16065 * font.c (font_parse_fcname): Remove unused variables.
16066 (font_sort_entites): Delete the arg SPEC. Caller changed.
16067 Fix for the case of ! best_only.
16068 (font_delete_unmatched): Check DPI and AVGWIDTH too.
16069
16070 * lisp.h (Fstring_to_unibyte): EXFUN it.
16071
16072 * character.h (str_to_unibyte): Extern it.
16073
16074 * character.c (str_to_unibyte): New function.
16075
16076 * fns.c (Fstring_to_unibyte): New function.
16077 (syms_of_fns): Defsubr it.
16078
160792008-06-24 Kenichi Handa <handa@m17n.org>
16080
16081 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
16082 DPI too.
16083 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
16084
160852008-06-24 Andreas Schwab <schwab@suse.de>
16086
16087 * Makefile.in (${lispsource}loaddefs.el): Rename from
16088 ../lisp/loaddefs.el.
16089 (bootstrap-clean): Do what distclean does but don't remove
16090 Makefile.
16091 (distclean): Depend on bootstrap-clean and remove Makefile.
16092
160932008-06-24 Chong Yidong <cyd@stupidchicken.com>
16094
16095 * buffer.h (struct buffer): New member word_wrap.
16096
16097 * buffer.c (syms_of_buffer): New variables default-word-wrap and
16098 word-wrap.
16099 (init_buffer_once): Initialize them.
16100
16101 * dispextern.h (struct it): Replace bool truncate_lines_p with a
16102 line_wrap enum possessing three possible values.
16103
16104 * termopts.h: Replace truncate_partial_width_windows with
16105 Vtruncate_partial_width_windows.
16106
16107 * dispnew.c (direct_output_for_insert): Avoid direct output when
16108 inserting a space with word wrap on.
16109
16110 * indent.c (compute_motion): Obey integer values of
16111 truncate-partial-width-windows.
16112
16113 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
16114 replacing truncate_partial_width_windows.
16115 (init_iterator): If Vtruncate_partial_width_windows is an integer,
16116 truncate only if the window width is below that integer.
16117 (start_display, resize_mini_window, produce_stretch_glyph)
16118 (display_string, move_it_in_display_line_to): Use line_wrap.
16119 (back_to_previous_visible_line_start, reseat_1): Reset
16120 string_from_display_prop_p.
16121 (display_line): Extend default face to end of line when wrapping.
16122
161232008-06-24 Kim F. Storm <storm@cua.dk>
16124
16125 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
16126 to wrap continued lines at word boundaries.
16127
161282008-06-24 Jason Rumney <jasonr@gnu.org>
16129
16130 * font.c (Ffont_face_attributes): Multiply pixel size before point
16131 conversion to avoid multiplying rounding error.
16132
161332008-06-23 Jason Rumney <jasonr@gnu.org>
16134
16135 * w32term.c (x_draw_glyph_string_background)
16136 (x_draw_glyph_string): Remove old bdf font code.
16137
16138 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
16139
161402008-06-22 Kenichi Handa <handa@m17n.org>
16141
16142 * font.c (font_find_for_lface): Try the adstyle specified in
16143 the property of LFACE_FONT of LFACE (if any).
16144
161452008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 16146 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
16147
16148 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
16149
161502008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
16151
16152 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
16153 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
16154 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
16155 (witness-emacs): Remove.
16156 (lisp, shortlisp): Move loaddefs.el earlier.
16157 (mostlyclean): Forget about witness-emacs.
16158
161592008-06-22 Glenn Morris <rgm@gnu.org>
16160
16161 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
16162 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
16163
161642008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
16165
16166 * Makefile.in (PRECOMP): Remove.
16167 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
16168 (witness-emacs): Run `compile-first'.
16169 (.el.elc): Use the new compile-onefile target.
16170
161712008-06-21 Kenichi Handa <handa@m17n.org>
16172
16173 * xftfont.c (xftfont_open): Handle QCembolden only when
16174 FC_EMBOLDEN is defined.
16175
161762008-06-21 Andreas Schwab <schwab@suse.de>
16177
16178 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
16179 (.el.elc): Likewise.
16180
161812008-06-21 Miles Bader <miles@gnu.org>
16182
16183 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
16184 build dir, not the lisp source dir.
16185
161862008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
16187
16188 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
16189 (bootstrapclean): Remove.
16190 (.el.elc): New rule.
16191 (PRECOMP): New var.
16192 (../lisp/subdirs.el): Remove.
16193 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
16194 (witness-emacs): New target.
16195 (mostlyclean): Remove witness-emacs as well.
16196 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
16197 Add witness-emacs dependency.
16198
161992008-06-20 Chong Yidong <cyd@stupidchicken.com>
16200
16201 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
16202 defined by the font.
16203
162042008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
16205
16206 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
16207 (bootstrap-clean): New target that keeps TAGS around.
16208 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
16209 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
16210
162112008-06-20 Jason Rumney <jasonr@gnu.org>
16212
16213 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
16214 Remove obsolete font code.
16215
16216 * w32font.c (font_matches_spec): Use csb bitfield from font signature
16217 to determine language support.
16218
162192008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
16220
16221 * sysdep.c (cfsetspeed): New fun extracted from the code.
16222 (cfmakeraw): Move before first use.
16223
162242008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
16225
16226 * sysdep.c (cfmakeraw): Provide fallback implementation.
16227 (serial_configure): Provide fallback implementation of cfsetspeed.
16228
162292008-06-20 Kenichi Handa <handa@m17n.org>
16230
16231 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
16232 the pattern.
16233
16234 * fontset.c (fontset_from_font): Copy font_spec before changing
16235 the elements.
16236
16237 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
16238
162392008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
16240
16241 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
16242 for explicit `font' parameters.
16243
16244 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
16245
162462008-06-19 Kenichi Handa <handa@m17n.org>
16247
16248 * frame.c: Include <ctype.h>.
16249 (x_set_font_backend): Allow spacing characters in the X resource
16250 for FontBackend.
16251
162522008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
16253
16254 * w32fns.c, xfns.c (Qfont_param): New var.
16255 (syms_of_w32fns): Initialize it.
16256 (x_default_font_parameter): Record explicit `font' into
16257 `font-parameter'.
16258
162592008-06-18 Kenichi Handa <handa@m17n.org>
16260
16261 * font.c (font_parse_xlfd): Fix previous change.
16262 (font_parse_fcname): Don't use :fc-unknown-spec.
16263 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
16264 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
16265 (font_add_log): Prepend the driver name to the resulting fonts.
16266
16267 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
16268 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
16269 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
16270
16271 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
16272 (QCembolden): New variables.
16273 (syms_of_xftfont): DEFSYM them.
16274 (xftfont_open): Call XftFontMatch. Don't trust the result of
16275 XftTextExtents8 if the pixel_size is less than 5.
16276
162772008-06-18 Andreas Schwab <schwab@suse.de>
16278
16279 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
16280 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
16281
162822008-06-18 Jason Rumney <jasonr@gnu.org>
16283
16284 * w32font.c (w32font_list, w32font_match): Add logging.
16285
16286 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
16287
162882008-06-17 Chong Yidong <cyd@stupidchicken.com>
16289
16290 * font.c (font_parse_fcname): Store divider characters for
16291 unknown-spec list. For known key symbols, intern using correct
16292 symbol name.
16293
162942008-06-17 Kenichi Handa <handa@m17n.org>
16295
16296 * xfaces.c (realize_default_face): If the frame is not on window
16297 system, set the fontset of face to nil.
16298
162992008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
16300
16301 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
16302
163032008-06-16 Juanma Barranquero <lekktu@gmail.com>
16304
16305 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
16306 (build_font_name_from_vector): Delete externs.
16307
16308 * xfaces.c (struct font_name): Don't declare.
16309
163102008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
16311
16312 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
16313
163142008-06-16 Chong Yidong <cyd@stupidchicken.com>
16315
16316 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
16317
163182008-06-16 Juanma Barranquero <lekktu@gmail.com>
16319
16320 * font.c (Ffont_spec): Fix usage in docstring.
16321 (Ffont_face_attributes): Doc fix.
16322
163232008-06-16 Andreas Schwab <schwab@suse.de>
16324
16325 * font.c (Ffont_face_attributes): Fix definition.
16326
163272008-06-16 Jason Rumney <jasonr@gnu.org>
16328
16329 * font.h (font_style_symbolic_from_value): Remove.
16330
16331 * font.c (font_style_symbolic_from_value): Remove.
16332 (font_style_symbolic): Revert to pre 2008-06-13 version.
16333
16334 * w32font.c (w32_to_fc_weight): New function.
16335 (w32font_full_name, logfont_to_fcname): Use it.
16336
163372008-06-16 Kenichi Handa <handa@m17n.org>
16338
16339 * font.c (font_check_object): Delete it.
16340 (font_clear_cache): Check if a font-object is alive.
16341 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
16342 font-object to nil.
16343 (font_close_object): Don't check FONT_CLOSE_OBJECT.
16344 (font_at): Don't call font_check_object.
16345 (Ffont_get): Return a symbol for :weight, :slant, and :width.
16346
163472008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
16348
16349 * puresize.h (BASE_PURESIZE): Increase to 1230000.
16350
163512008-06-16 Chong Yidong <cyd@stupidchicken.com>
16352
16353 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
16354
163552008-06-15 Chong Yidong <cyd@stupidchicken.com>
16356
16357 * font.c (font_parse_fcname): Only one decimal point.
16358 (font_unparse_fcname): Handle data in family and foundry indices
16359 as symbols, not strings.
16360 (font_unparse_gtkname, Ffont_face_attributes): New functions.
16361
16362 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
16363
16364 * font.h (font_unparse_gtkname): Add prototype.
16365
163662008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
16367
16368 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
16369
163702008-06-15 Andreas Schwab <schwab@suse.de>
16371
16372 * font.c (font_update_drivers): Fix crash when no drivers match.
16373
163742008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
16375
16376 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
16377 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
16378
163792008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
16380
16381 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
16382
163832008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
16384
16385 * process.c (Fserial_process_configure, Fprocess_send_eof):
16386 Use EQ to compare Lisp_Objects.
16387
163882008-06-13 Jason Rumney <jasonr@gnu.org>
16389
16390 * w32fns.c (Fw32_select_font): Remove old font API function.
16391
16392 * w32font.c (logfont_to_fcname): New function.
16393 (Fx_select_font): New font dialog function compatible with
16394 GTK/fontconfig version.
16395
16396 * font.c (font_style_symbolic_from_value): New function.
16397 (font_style_symbolic): Use it.
16398
16399 * font.h (font_style_symbolic_from_value): Declare new function.
16400
164012008-06-13 Juanma Barranquero <lekktu@gmail.com>
16402
16403 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
16404 <font-width-table>: Fix typos in docstrings.
16405
164062008-06-13 Daniel Engeler <engeler@gmail.com>
16407
16408 These changes add serial port access.
16409 * process.c: Add HAVE_SERIAL.
16410 (Fdelete_process, Fprocess_status, Fset_process_buffer)
16411 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
16412 (list_processes_1, select_wrapper, Fstop_process)
16413 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
16414 (status_notify): Modify to handle serial processes.
16415 [HAVE_SERIAL] (Fserial_process_configure)
16416 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
16417 New functions.
16418 * process.h (struct Lisp_Process): Add `type'.
16419 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
16420 New functions.
16421 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
16422 serial ports.
b71ac3dd 16423 (serial_open, serial_configure): New functions.
aac0c6e3
MR
16424 * w32.h: Add FILE_SERIAL.
16425 (struct _child_process): Add ovl_read, ovl_write.
16426
164272008-06-13 Kenichi Handa <handa@m17n.org>
16428
16429 * dispextern.h (enum lface_attribute_index): New member
16430 LFACE_FOUNDRY_INDEX.
16431
16432 * font.c (font_score): Delete arg alternate_families. Check only
16433 weight, slant, width, and size. Ignore the difference of alias
16434 style symbols.
16435 (font_sort_entites): Adjust for the above change. Reflect the
16436 order of font-driver to scores.
16437 (font_list_entities): Don't check alternate_familes here.
16438 (font_clear_prop): Handle foundry.
16439 (font_update_lface): Don't parse "foundry-family" form here.
16440 Handle FONT_FOUNDRY_INDEX.
16441 (font_find_for_lface): Likewise. Handle alternate families here.
16442 If registry is nil, try iso8859-1 and ascii-0.
16443 (font_open_for_lface): Pay attention to size in ENTITY.
16444 (font_open_by_name): Simplify by calling font_load_for_lface.
16445 (free_font_driver_list): Delete it.
16446 (font_update_drivers): Preserve the order of backends.
16447 (syms_of_font): Setting of sort_shift_bits adjusted for the change
16448 of font_score and font_sort_entites.
16449 (font_update_sort_order): Likewise.
16450
16451 * xfaces.c (LFACE_FOUNDRY): New macro.
16452 (check_lface_attrs): Check foundry.
16453 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
16454 (merge_face_vectors): Check foundry.
16455 (merge_face_ref): Likewise.
16456 (Finternal_set_lisp_face_attribute): Likewise.
16457 (x_update_menu_appearance): Likewise.
16458 (Finternal_get_lisp_face_attribute): Likewise.
16459 (lface_hash): Likewise.
16460 (lface_same_font_attributes_p): Likewise.
16461 (x_supports_face_attributes_p): Likewise.
16462 (tty_supports_face_attributes_p): Likewise.
16463 (Finternal_set_alternative_font_family_alist): Intern strings.
16464 (Finternal_set_alternative_font_registry_alist): Downcase strings.
16465 (realize_default_face): Set LFACE_FOUNDRY (lface).
16466
16467 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
16468 font-driver at first.
16469
16470 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
16471
164722008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
16473
16474 * lread.c (Fload): Use xfree, not free on saved_doc_string.
16475
164762008-06-12 Jim Meyering <meyering@redhat.com>
16477
16478 Make unexec_free handle NULL the same way free does.
16479 * unexmacosx.c (unexec_free): Ignore a NULL argument.
16480
164812008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
16482
16483 * character.h (CHAR_TO_BYTE_SAFE): New macro.
16484 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
16485 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
16486 (WEAK_ALIAS): Simplify.
16487 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
16488 when searching a unibyte buffer.
16489
164902008-06-12 Chong Yidong <cyd@stupidchicken.com>
16491
16492 * xfns.c (Fx_select_font): Rename from x-font-dialog.
16493
164942008-06-12 Juanma Barranquero <lekktu@gmail.com>
16495
16496 * w32font.c: Include ctype.h.
16497
164982008-06-11 Jason Rumney <jasonr@gnu.org>
16499
16500 * w32font.c (w32font_encode_char): Detect missing glyphs that are
16501 misreported as space.
16502 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
16503 as aliases for registry iso10646-1.
16504
165052008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
16506
16507 * buffer.c (clone_per_buffer_values): Skip `name'.
16508
165092008-06-11 Chong Yidong <cyd@stupidchicken.com>
16510
16511 * font.c (font_parse_fcname): Fix last change; accept decimal
16512 points in font size.
16513
165142008-06-10 Jason Rumney <jasonr@gnu.org>
16515
16516 * w32uniscribe.c (add_opentype_font_name_to_list):
16517 Skip non unicode fonts.
16518
165192008-06-10 Chong Yidong <cyd@stupidchicken.com>
16520
16521 * xfns.c (Fx_font_dialog): New function.
16522
16523 * gtkutil.c (xg_dialog_response_cb): Rename from
16524 xg_file_response_callback.
16525 (pop_down_dialog): Rename from pop_down_file_dialog.
16526 (xg_get_file_name): Callers changed.
16527 (xg_get_font_name): New function.
16528
16529 * gtkutil.h (xg_get_font_name): Insert prototype.
16530
165312008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
16532
16533 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
16534 x_underline_minimum_display_offset.
16535 (syms_of_xdisp): Declare it here rather than in xterm.c.
16536 * dispextern.h (underline_minimum_offset): Declare it.
16537 * w32term.c (x_draw_glyph_string): Use it.
16538 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
16539 (syms_of_xterm): Don't declare it any more.
16540 (x_draw_glyph_string): Adjust to the new name.
16541
8719abec 165422008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
16543
16544 * xterm.c (x_underline_minimum_display_offset): New var.
16545 (x_draw_glyph_string): Use it.
16546 (syms_of_xterm): Declare it.
16547
165482008-06-10 Chong Yidong <cyd@stupidchicken.com>
16549
16550 * font.c (font_parse_fcname): Accept GTK-style font names too.
16551
165522008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
16553
16554 * dired.c (file_name_completion): Don't return t if the match is exact
16555 but with different capitalization.
16556 * minibuf.c (Ftry_completion): Simplify.
16557
16558 * window.c (Vwindow_point_insertion_type): New var.
16559 (set_window_buffer): Use it.
16560 (syms_of_window): Init and export it to Lisp.
16561
165622008-06-10 Kenichi Handa <handa@m17n.org>
16563
16564 * font.h (font_intern_prop): Prototype adjusted.
16565
16566 * font.c (font_intern_prop): New arg force_symbol.
16567 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
16568 Adjust for the change of font_intern_prop.
16569
16570 * ftfont.c (ftfont_pattern_entity):
16571 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
16572 (w32_registry):
16573 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
16574 the change of font_intern_prop.
16575
165762008-06-09 Juanma Barranquero <lekktu@gmail.com>
16577
16578 * w32menu.c (digest_single_submenu): Declare extern.
16579
165802008-06-09 Jason Rumney <jasonr@gnu.org>
16581
16582 * w32term.c (x_make_frame_visible): Use alternate restore flags.
16583
16584 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
16585 (parse_single_submenu): Remove.
16586 (digest_single_submenu): Remove.
16587 (syms_of_w32menu): Don't initialise variables that have moved
16588 to menu.c.
16589 (set_frame_menubar): Sync with version in xmenu.c.
16590 (w32_menu_show): Sync with xmenu_show in xmenu.c.
16591
16592 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
16593 Make static again.
16594
165952008-06-09 Jason Rumney <jasonr@gnu.org>
16596
16597 Changes to w32 files related to the move of common menu code
16598 to menu.c on 2008-06-08 by Chong Yidong.
16599
16600 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
16601 defs to w32gui.h.
16602 (single_keymap_panes, push_menu_item, push_menu_pane):
16603 Make globally visible.
16604
16605 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
16606 (local_free, malloc_widget_value, free_widget_value)
16607 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
16608 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
16609 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
16610 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
16611 (menu_items, menu_items_allocated, menu_items_used)
16612 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
16613 (init_menu_items, finish_menu_items, discard_menu_items)
16614 (grow_menu_items, push_submenu_start, push_submenu_end)
16615 (push_left_right_boundary, push_menu_pane, push_menu_item)
16616 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
16617 (free_menubar_widget_tree_value, parse_single_submenu)
16618 (update_submenu_strings): Remove functions.
16619 (xmalloc_widget_value): Remove and declare extern.
16620
16621 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
16622 (OBJ1): Build it.
16623
16624 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
16625 (local_heap, local_alloc, local_free, malloc_widget_value)
16626 (free_widget_value): Define here.
16627
166282008-06-09 Kenichi Handa <handa@m17n.org>
16629
16630 * font.h (Qascii_0): Extern it.
16631
16632 * font.c (Qascii_0): New variable.
16633 (syms_of_font): DEFSYM it.
16634 (font_open_by_name): If the registry "iso8859-1" fails, try also
16635 "ascii-0".
16636
16637 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
16638
166392008-06-08 Kenichi Handa <handa@m17n.org>
16640
16641 * .gdbinit (xfont): New command.
16642
166432008-06-08 Andreas Schwab <schwab@suse.de>
16644
16645 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
16646 * Makefile.in (menu.o): Update dependencies.
16647
16648 * Makefile.in (obj): Always add menu.o.
16649 * emacs.c (main): Always call syms_of_menu.
16650 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
16651
166522008-06-08 Chong Yidong <cyd@stupidchicken.com>
16653
16654 * Makefile.in: Compile menu.c.
16655
16656 * lisp.h: Declare syms_of_menu.
16657
16658 * emacs.c (main): Call syms_of_menu.
16659
16660 * keyboard.h: Relocate platform-independent menu definitions from
16661 xmenu.c.
16662
16663 * menu.c: New file. Relocate platform-independent menu
16664 definitions from xmenu.c. Suggested by Adrian Robert.
16665
16666 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 16667 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
16668 (menu_items_used, menu_items_n_panes)
16669 (menu_items_submenu_depth): Move to keyboard.h.
16670 (init_menu_items, finish_menu_items, unuse_menu_items)
16671 (discard_menu_items, restore_menu_items, save_menu_items)
16672 (grow_menu_items, push_submenu_start, push_submenu_end)
16673 (push_left_right_boundary, push_menu_pane, push_menu_item)
16674 (keymap_panes, single_keymap_panes, single_menu_item)
16675 (list_of_panes, list_of_items, find_and_call_menu_selection)
16676 (xmalloc_widget_value, free_menubar_widget_value_tree)
16677 (parse_single_submenu, digest_single_submenu)
16678 (update_submenu_strings): Move to menu.c.
16679
166802008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
16681
16682 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
16683
166842008-06-06 Miles Bader <miles@gnu.org>
16685
16686 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
16687 face, not frame default.
16688
166892008-06-05 Martin Rudalics <rudalics@gmx.at>
16690
16691 * window.c (pop_up_windows, pop_up_frames)
16692 (display_buffer_reuse_frames, Vpop_up_frame_function)
16693 (Vdisplay_buffer_function, Veven_window_heights)
16694 (Vspecial_display_buffer_names, Vspecial_display_regexps)
16695 (Vspecial_display_function, Vsame_window_buffer_names)
16696 (Vsame_window_regexps, split_height_threshold)
16697 (Vsplit_window_preferred_function): Move those vars to window.el.
16698 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
16699 (Fdisplay_buffer): Move those functions to window.el.
16700 (syms_of_window): Remove corresponding declarations.
16701 (display_buffer): New function.
16702 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
16703 * dispnew.c (Flast_nonminibuf_frame): New function.
16704 * buffer.c (Fpop_to_buffer): Move to window.el.
16705
167062008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
16707
16708 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
16709
167102008-06-05 Kenichi Handa <handa@m17n.org>
16711
16712 * coding.c (detect_coding): Fix previous change.
16713 (detect_coding_system): Likewise.
16714
167152008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
16716
16717 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
16718
16719 * keymap.c (Vminibuffer_local_filename_must_match_map):
16720 Rename from Vminibuffer_local_must_match_filename_map.
16721 (syms_of_keymap):
16722 * minibuf.c (Fcompleting_read): Adjust accordingly.
16723 * commands.h: Rename declaration as well.
16724
167252008-06-05 Kenichi Handa <handa@m17n.org>
16726
16727 * font.c (Ffont_spec): Don't use font_parse_family_registry for
16728 family name.
16729 (Ffont_put): Likewise.
16730
16731 * fontset.c (fontset_find_font): Call font_open_for_lface with the
16732 current font-spec.
16733
16734 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
16735 is unspecified.
16736
16737 * xfaces.c (realize_x_face): If the font-related face attributes
16738 are the same as those of default face, realize a new fontset from
16739 default->fontset.
16740 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
16741
167422008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
16743
16744 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
16745 (move_it_in_display_line): New wrapper.
16746
16747 * window.c (window_scroll_pixel_based_preserve_x)
16748 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
16749 (window_scroll_pixel_based, window_scroll_line_based):
16750 Use them to preserve column positions.
16751 (syms_of_window): Initialize them.
16752
16753 * indent.c (Fvertical_motion): Extend first arg to allow passing an
16754 (HPOS . VPOS) pair.
16755
16756 * dispextern.h (move_it_in_display_line): Declare.
16757
167582008-06-05 Juanma Barranquero <lekktu@gmail.com>
16759
16760 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
16761 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
16762 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
16763
167642008-06-04 Juanma Barranquero <lekktu@gmail.com>
16765
16766 * window.c (Fset_window_parameter): Doc fix.
16767 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
16768
167692008-06-04 Joakim Verona <joakim@verona.se>
16770
16771 * window.h (struct window): Add new member window_parameters.
16772
16773 * window.c (Fwindow_parameters, Fwindow_parameter)
16774 (Fset_window_parameter): New defuns.
16775 (syms_of_window): Defsubr the new defuns.
16776 (make_window): Initialize window_parameters to nil.
16777
167782008-06-04 John Paul Wallington <jpw@pobox.com>
16779
16780 * eval.c (Fdefmacro): Doc fix.
16781
167822008-06-04 Kenichi Handa <handa@m17n.org>
16783
16784 * coding.c (detect_coding): Fix handling of coding->head_ascii.
16785 Be sure to call setup_coding_system when we find a proper coding system.
16786 (detect_coding_system): Fix handling of coding->head_ascii.
16787
167882008-06-03 Andreas Schwab <schwab@suse.de>
16789
16790 * font.c (font_prop_validate_spacing): Fix last change.
16791
167922008-06-03 Kenichi Handa <handa@m17n.org>
16793
16794 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
16795 (font_parse_fcname): Fix handling of unknown key.
16796
16797 * xfont.c (xfont_list): Try an alias.
16798
16799 * charset.c (char_charset): Return NULL if the arg charset_list is
16800 specified and C doesn't belong to any of them.
16801
168022008-06-02 Chip Coldwell <coldwell@redhat.com>
16803
16804 * font.c (font_pixel_size): Don't take cdr of an integer.
16805
168062008-06-02 Jim Meyering <meyering@redhat.com>
16807
16808 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
16809 * alloc.c (xfree): Return right away for a NULL arg.
16810 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
16811 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
16812 * mac.c (create_apple_event_from_event_ref): Likewise.
16813 (create_apple_event_from_drag_ref, cfstring_create_normalized):
16814 Likewise.
16815 * doprnt.c (doprnt1): Likewise.
16816 * frame.c (frame): Likewise.
16817 * keyboard.c (wipe_kboard): Likewise.
16818 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
16819 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
16820 * term.c (tty_default_color_capabilities, maybe_fatal)
16821 (delete_tty): Likewise.
16822 * w16select.c (string): Likewise.
16823 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
16824 * w32bdf.c (w32_free_bdf_font): Likewise.
16825 * w32fns.c (w32_unload_font): Likewise.
16826 * w32font.c (w32font_close): Likewise.
16827 * window.c (size_window): Likewise.
16828 * xselect.c (receive_incremental_selection): Likewise.
16829 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
16830 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
16831 * w32.c (stat): Likewise.
16832
16833 Remove useless if-before-free tests.
16834 * editfns.c (Fset_time_zone_rule): Likewise.
16835 * lread.c (nosuffix): Likewise.
16836 * ralloc.c (get_bloc): Likewise.
16837 * regex.c (reg_free): Likewise.
16838 * xftfont.c (xftfont_open, xftfont_close): Likewise.
16839 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
16840 * xsmfns.c (smc_save_yourself_CB): Likewise.
16841
168422008-06-02 Kenichi Handa <handa@m17n.org>
16843
16844 * font.c (font_find_for_lface): Handle float font size.
16845 (font_open_for_lface): Likewise.
16846
16847 * xfaces.c (x_supports_face_attributes_p): Check face->font before
16848 comparing the properties.
16849
168502008-06-01 Jason Rumney <jasonr@gnu.org>
16851
16852 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
16853 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
16854 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
16855 Don't add empty script list.
16856 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
16857
168582008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
16859
16860 * Makefile.in (dot, dotdot): Remove, update users.
16861 ".." has been used elsewhere in the file for a long time.
16862 (LIBXT_STATIC): Remove conditional based on unused variable.
16863
168642008-06-01 Miles Bader <miles@gnu.org>
16865
16866 * xfaces.c (Vface_remapping_alist): New variable.
16867 (syms_of_xfaces): Initialize it.
16868 (enum named_merge_point_kind): New type.
16869 (struct named_merge_point): Add `named_merge_point_kind' field.
16870 (push_named_merge_point): Make cycle detection respect different
16871 named-merge-point kinds.
16872 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
16873 Remove face-name alias resolution.
16874 (lface_from_face_name): New definition using
16875 `lface_from_face_name_no_resolve'.
16876 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
16877 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
16878 (get_lface_attributes): New definition that layers face-remapping on
16879 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
16880 (lookup_basic_face): New function.
16881 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
16882 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
16883 `get_lface_attributes'.
16884 (face_at_buffer_position): Use `lookup_basic_face' to lookup
16885 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
16886 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
16887
16888 * xdisp.c (init_iterator): Pass base_face_id through
16889 `lookup_basic_face' when we actually use it as a face-id.
16890 (handle_single_display_prop): Use `lookup_basic_face' to lookup
16891 DEFAULT_FACE_ID.
16892
16893 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
16894 lookup the initial face-id.
16895
16896 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
16897
168982008-06-01 Juanma Barranquero <lekktu@gmail.com>
16899
16900 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
16901 (Fremove_text_properties): Fix typos in docstrings.
16902
169032008-05-31 Kenichi Handa <handa@m17n.org>
16904
16905 * font.c (font_list_entities): Fix the car part of data to be
16906 stored in the cache.
16907
16908 * ftfont.c (ftfont_font_format): Don't use strcasestr.
16909
169102008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
16911
16912 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
16913 Add a `test' argument so another predicate than `equal' can be used.
16914 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
16915 (map_char_table): Remove unused vars `c' and `i'.
16916 * lisp.h (Foptimize_char_table): Adjust declaration.
16917 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
16918
169192008-05-30 Kenichi Handa <handa@m17n.org>
16920
16921 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
16922 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
16923 defined.
16924
169252008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
16926
16927 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
16928 (Fmake_variable_frame_local): Disallow mixing buffer-local and
16929 frame-local settings for the same variable.
16930
169312008-05-30 Kenichi Handa <handa@m17n.org>
16932
16933 * fontset.c (Ffont_info): Move to font.c.
16934 (syms_of_fontset): Delete defsubr of Sfont_info.
16935
16936 * font.c (font_style_to_value, font_score): Delete casting of the
16937 args to xstcasecmp.
16938 (register_font_driver): Increment num_font_drivers only when
16939 registering the driver globally.
16940 (Ffont_info): Move from fontset.c. Handle a font object too.
16941 (syms_of_font): Defsubr Sfont_info.
16942
169432008-05-29 Kenichi Handa <handa@m17n.org>
16944
16945 * coding.h (enum define_coding_utf8_arg_index): New enum.
16946 (enum coding_attr_index): Change coding_attr_utf_16_bom to
16947 coding_attr_utf_bom.
16948 (enum utf_bom_type): Rename from utf_16_bom_type.
16949 (struct utf_16_spec): Adjust for the above change.
16950 (struct coding_system): Add utf_8_bom in `spec' union.
16951
16952 * coding.c (CODING_UTF_8_BOM): New macro.
16953 (enum coding_category): Delete coding_category_utf_8, add
16954 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
16955 coding_category_utf_8_sig.
16956 (CATEGORY_MASK_UTF_8): Delete it.
16957 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
16958 (CATEGORY_MASK_UTF_8_SIG): New macros.
16959 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
16960 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
16961 CATEGORY_MASK_UTF_8_SIG.
16962 (CATEGORY_MASK_UTF_8): New macro.
16963 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
16964 (detect_coding_utf_8): Check BOM.
16965 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
16966 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
16967 (encode_coding_utf_16): Likewise.
16968 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
16969 (detect_coding, detect_coding_system): Handle utf-8-auto.
16970 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
16971 (syms_of_coding): Fix setting up of Vcoding_category_table.
16972
169732008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
16974
16975 * process.c (Faccept_process_output): If `millisec' is non-nil,
16976 `seconds' default to 0.
16977 (wait_reading_process_output): Also return non-nil if we read output
16978 from a non-running process.
16979
169802008-05-29 Jason Rumney <jasonr@gnu.org>
16981
16982 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
16983 `raster' specified.
16984 (add_font_entity_to_list): Allow non-opentype truetype fonts back
16985 in the uniscribe backend, but disallow any font that has no
16986 unicode subrange support.
16987
169882008-05-29 Juanma Barranquero <lekktu@gmail.com>
16989
16990 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
16991 Fix typos in docstrings.
16992
169932008-05-29 Kenichi Handa <handa@m17n.org>
16994
16995 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
16996 (Fx_family_fonts): Set frame correctly.
16997
169982008-05-28 Jason Rumney <jasonr@gnu.org>
16999
17000 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
17001
170022008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
17003
17004 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
17005 calling build_annotations.
17006
170072008-05-28 Juanma Barranquero <lekktu@gmail.com>
17008
17009 * coding.c (Fdecode_coding_region, Fencode_coding_region)
17010 (Fencode_coding_string):
17011 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
17012 <latin-extra-code-table>: Fix typos in docstrings.
17013 (syms_of_coding) <coding-system-alist>: Doc fix.
17014 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
17015
170162008-05-28 Kenichi Handa <handa@m17n.org>
17017
17018 * fontset.c (Ffont_info): Don't call font_close_object.
17019
17020 * font.c (font_parse_family_registry): Use Ffont_put to validate
17021 foundry and family.
17022 (font_delete_unmatched): Don't check spacing.
17023 (font_list_entities): Add spacing to the spec to list fonts.
17024
17025 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
17026 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
17027
17028 * coding.c (encode_coding_raw_text): Fix previous change.
17029 (encode_coding_object): When the dst_object is a buffer and is
17030 different from src_object, move gap to PT.
17031
170322008-05-27 Chong Yidong <cyd@stupidchicken.com>
17033
17034 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
17035
170362008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
17037
17038 * coding.c (encode_coding_raw_text): Set coding->produced_char for
17039 all branches. Compute it differently.
17040
17041 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
17042
170432008-05-27 Juanma Barranquero <lekktu@gmail.com>
17044
17045 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
17046 into "else if () ... else ...".
17047
170482008-05-27 Jason Rumney <jasonr@gnu.org>
17049
17050 * w32font.c (w32font_open_internal): Determine if glyph indices
17051 are likely to work here.
17052
170532008-05-27 Chong Yidong <cyd@stupidchicken.com>
17054
17055 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
17056 draw overlap glyphs with appropriate highlighting.
17057
170582008-05-27 Kenichi Handa <handa@m17n.org>
17059
17060 * xfont.c (xfont_open): Fix calculation of font->average_width.
17061
170622008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
17063
17064 * casefiddle.c (casify_object): Try to guess better whether the
17065 argument is a byte or a char.
17066
170672008-05-26 Andreas Schwab <schwab@suse.de>
17068
17069 * xselect.c (x_reply_selection_request): Properly handle format == 32.
17070 Always send multiples of format size.
17071
17072 * xterm.c (x_set_frame_alpha): Fix type mismatch.
17073
170742008-05-26 Jason Rumney <jasonr@gnu.org>
17075
17076 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
17077 (compute_metrics): Don't set failure if we just cleared the cache.
17078 (w32_weight_table): Remove unused variable.
17079 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
17080 backwards compatibility.
17081
170822008-05-25 Kenichi Handa <handa@m17n.org>
17083
17084 * w32term.c (x_draw_glyph_string):
17085 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
17086
17087 * xfaces.c: Delete unused function prototypes.
17088 (xstrlwr, font_frame): Delete them.
17089 (clear_face_cache): Delete unused variable.
17090
17091 * xftfont.c (xftfont_open): Delete unused variable.
17092 If underline_thickness is not 1, adjust underline_position.
17093
17094 * ftxfont.c (ftxfont_open): Delete unused variable.
17095
17096 * fontset.c (face_for_char): Optimize for the case of no charset
17097 property.
17098
17099 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
17100 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
17101 (otf_open, font_otf_capability, generate_otf_features)
17102 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
17103 Comment out by surrounding "#if 0" and "#endif" for the moment.
17104 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
17105 (syms_of_font): Codes for accessing above commented out.
17106
171072008-05-24 Eli Zaretskii <eliz@gnu.org>
17108
17109 * w32proc.c: Include dispextern.h.
17110
17111 * w32.c: Include dispextern.h.
17112
171132008-05-23 Juanma Barranquero <lekktu@gmail.com>
17114
17115 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
17116 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
17117 Fix typos in docstrings.
17118
171192008-05-23 Jason Rumney <jasonr@gnu.org>
17120
17121 * xsmfns.c: Remove includes that are already included by config.h.
17122
171232008-05-23 Kenichi Handa <handa@m17n.org>
17124
17125 * charset.c (Qemacs, charset_emacs): New variables.
17126 (char_charset): Fix for non-Unicode characters.
17127 (syms_of_charset): Define charset_emacs.
17128
17129 * w32term.c (x_draw_glyph_string): Be sure to update
17130 s->underline_thickness and s->underline_position. Be sure to draw
17131 underline within the current line area.
17132
17133 * xterm.c (x_draw_glyph_string): Be sure to update
17134 s->underline_thickness and s->underline_position. Be sure to draw
17135 underline within the current line area.
17136
17137 * fontset.c: Delete unused variables and add casting for char *
17138 throughout the file.
17139 (fontset_font): Try the fallback fonts of the current fontset
17140 before consulting the default fontset.
17141
17142 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
17143
17144 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
17145
171462008-05-22 Jason Rumney <jasonr@gnu.org>
17147
17148 * font.c: Don't include strings.h.
17149
17150 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
17151
17152 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
17153 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
17154 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
17155 to call xstrcasecmp.
17156
17157 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
17158
17159 * fontset.c (fs_query_fontset): Use xstrcasecmp.
17160
17161 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
17162
17163 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
17164
171652008-05-22 Kenichi Handa <handa@m17n.org>
17166
17167 * puresize.h (BASE_PURESIZE): Increase to 1220000.
17168
17169 * font.c (font_prop_validate_style): Adjust for the format
17170 change of font_style_table.
17171
17172 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
17173 two args.
17174
17175 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
17176 two args.
17177
171782008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
17179
17180 * minibuf.c (keys_of_minibuf): Delete.
17181 * lisp.h (keys_of_minibuf): Delete.
17182 * emacs.c (main): Don't call keys_of_minibuf.
17183
171842008-05-22 Kenichi Handa <handa@m17n.org>
17185
17186 * ftfont.c (ftfont_resolve_generic_family): Rename from
17187 ftfont_list_generic_family. Return a single family for each
17188 generic family.
17189 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
17190 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
17191 Call font_add_log.
17192 (ftfont_match): Call font_add_log.
17193
17194 * font.h (Ffont_xlfd_name): EXFUN adjusted.
17195 (FONT_DEBUG): Define it.
17196 (font_add_log): Extern it.
17197 (font_assert): Rename from xassert.
17198
17199 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
17200 (xfont_list_family): Call font_add_log.
17201 (xfont_match): Likewise.
17202 (memq_no_quit): Delete.
17203
17204 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
17205 call of Ffont_xlfd_name.
17206
17207 * xfaces.c (struct table_entry, slant_table, weight_table)
17208 (swidth_table): Move to font.c.
17209
17210 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
17211 xassert are changed to font_assert. Delete many unused variables.
17212 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
17213 New variables.
17214 (struct table_entry): Move from xfaces.c and modified.
17215 (weight_table, slant_table, width_table): Move from xfaces.c and
17216 contents adjusted for the change of struct table_entry.
17217 (font_style_to_value, font_style_symbolic): Adjust for the
17218 format change of font_style_table.
17219 (font_parse_family_registry): Don't overwrite existing foundry and
17220 family of font_spec.
17221 (font_score): Fix calculation of diff for sizes.
17222 (font_sort_entites): Call font_add_log.
17223 (font_delete_unmatched): Return a newly created list.
17224 (font_list_entities): Fix previous change. Call font_add_log.
17225 (font_matching_entity, font_open_entity, font_close_entity):
17226 Call font_add_log.
17227 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
17228 (Finternal_set_font_style_table): Delete.
17229 (BUILD_STYLE_TABLE): New macro.
17230 (build_style_table): New function.
17231 (Vfont_log, font_log_env_checked): New variables.
17232 (font_add_log): New function.
17233 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
17234 Declare Lisp variables "font-weight-table", "font-slant-table",
17235 "font-width-table", and "font-log". Initialize font_style_table.
17236
172372008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
17238
17239 * xterm.c (x_set_frame_alpha): Move declarations before statements.
17240
172412008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 17242 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
17243
17244 * frame.c (Qalpha): Add a new frame parameter `alpha'.
17245 (Vframe_alpha_lower_limit): New variable.
17246 (x_set_alpha): New function.
17247
17248 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
17249
17250 * xfns.c (x-create-frame, Qalpha):
17251 Initialize the frame parameter `alpha'.
17252 * xterm.c (OPAQUE, OPACITY): New.
17253 (x_set_frame_alpha): New function.
17254 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
17255
17256 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
17257 * w32fns.c (w32_frame_parm_handlers): Likewise.
17258
172592008-05-20 Jason Rumney <jasonr@gnu.org>
17260
17261 * w32font.c (add_font_entity_to_list): Don't add non-opentype
17262 truetype fonts to opentype list.
17263
172642008-05-20 Juanma Barranquero <lekktu@gmail.com>
17265
17266 * fontset.c (Ffontset_info): Doc fix.
17267 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
17268 <ignore-relative-composition>: Fix typos in docstrings.
17269
17270 * font.c (syms-of-font) <font-encoding-alist>:
17271 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
17272 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
17273 (Ffont_otf_alternates): Doc fixes.
17274
172752008-05-20 Kenichi Handa <handa@m17n.org>
17276
17277 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
17278 font.h through out the file.
17279 (FONT_DRIVERS): Rename from FONTOBJ.
17280 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
17281 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
17282
17283 * emacs.c (main): Call syms_of_font unconditionally.
17284
17285 * font.h (find_font_encoding): Extern it.
17286
17287 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
17288 fontset.c.
194d44e7 17289 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
17290 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
17291 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
17292 only when HAVE_WINDOW_SYSTEM is defined.
17293 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
17294 when HAVE_WINDOW_SYSTEM is defined.
17295
17296 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
17297 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
17298
17299 * xfaces.c: Include font.h unconditionally.
17300 (merge_face_ref, merge_face_vectors)
17301 (Finternal_set_lisp_face_attribute): Cancel the previous change.
17302
173032008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
17304
17305 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
17306 indirect_variable.
17307 * eval.c (lisp_indirect_variable): New fun.
17308 (Fuser_variable_p): Use it.
17309
173102008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
17311
17312 * lisp.h (indirect_variable):
17313 * data.c (indirect_variable, let_shadows_buffer_binding_p):
17314 Use Lisp_Symbol pointers rather than Lisp_Object.
17315 Adjust callers.
17316 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
17317 To this end, change calling-convention.
17318
17319 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
17320 if some non-hidden buffers are selected by string&pred.
17321
173222008-05-19 Chong Yidong <cyd@stupidchicken.com>
17323
17324 * process.c (wait_reading_process_output): Always check status
17325 when in batch mode.
17326
173272008-05-19 Kenichi Handa <handa@m17n.org>
17328
17329 * font.c (font_list_entities): Fix handling of cache.
17330 (font_matching_entity): Likewise.
17331
17332 * ftfont.c (cs_iso8859_1): Delete.
17333 (ft_face_cache): New variable.
17334 (struct ftfont_info): New member fc_charset_idx.
17335 (ftfont_build_basic_charsets): Delete.
17336 (fc_charset_table): New variable.
17337 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
17338 . FC_CHARSET_IDX) as :font-entity property in the font entity.
17339 Callers changed.
17340 (ftfont_lookup_cache, ftfont_get_charset): New functions.
17341 (ftfont_spec_pattern): New argument fc_charset_idx.
17342 Check registry more rigidly. Change callers.
17343 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
17344 change of :font-entity property of the font.
17345
17346 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
17347 property of the font.
17348
173492008-05-18 Juanma Barranquero <lekktu@gmail.com>
17350
17351 * coding.c (Fcoding_system_p): Rename argument to match docstring.
17352 (Funencodable_char_position, Fcheck_coding_systems_region)
17353 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
17354 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
17355 (Ffind_operation_coding_system, Fset_coding_system_priority)
17356 (Fcoding_system_eol_type): Doc fixes.
17357
173582008-05-17 Glenn Morris <rgm@gnu.org>
17359
17360 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
17361
173622008-05-16 Eli Zaretskii <eliz@gnu.org>
17363
17364 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
17365 and st_gid.
17366
17367 * frame.c (Fdelete_frame): Don't call font_update_drivers if
17368 HAVE_WINDOW_SYSTEM is not defined.
17369
17370 * xfaces.c (merge_face_ref, merge_face_vectors)
17371 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
17372 HAVE_WINDOW_SYSTEM is defined.
17373 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
17374
173752008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
17376
17377 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
17378
173792008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17380
17381 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
17382
173832008-05-15 Kenichi Handa <handa@m17n.org>
17384
17385 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
17386 preference.
17387
173882008-05-15 Glenn Morris <rgm@gnu.org>
17389
17390 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
17391
173922008-05-15 Chong Yidong <cyd@stupidchicken.com>
17393
17394 * fns.c (init_fns): Don't initialize weak_hash_tables here.
17395 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
17396
17397 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
17398
173992008-05-15 Kenichi Handa <handa@m17n.org>
17400
17401 * ftfont.c (ftfont_list): Downcase family name to check generic
17402 families.
17403
17404 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
17405 font-spec for QCfont value.
17406
17407 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
17408 buffer. Check the return value of it.
17409
174102008-05-14 Jason Rumney <jasonr@gnu.org>
17411
17412 * w32term.c (w32_get_glyph_overhangs): Remove.
17413 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
17414
174152008-05-14 Kenichi Handa <handa@m17n.org>
17416
17417 * font.c (font_prop_validate): Make nil a valid value.
17418 (font_clear_cache): Check if the cached vector of entities is nil
17419 or not.
17420
174212008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17422
17423 * emacs.c (main_thread): Conditionalize on
17424 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
17425 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
17426
17427 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
17428 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
17429 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
17430
174312008-05-14 Kenichi Handa <handa@m17n.org>
17432
17433 * coding.c (detect_coding_iso_2022): Ignore a coding category that
17434 has no corresponding coding system.
17435
174362008-05-14 Jason Rumney <jasonr@gnu.org>
17437
17438 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
17439
17440 * w32font.h (w32font_open_internal): Update declaration.
17441
17442 * w32font.c (w32font_open_internal): Change last argument from
17443 w32font_info struct to font object. Fill in font object from
17444 font_entity. Get Outline metrics if possible. Use them to
17445 calculate underline position and thickness. Use xlfd name as name
17446 property. Don't set codepage.
17447 (w32font_open): Pass font_object to w32font_open_internal. Don't
17448 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
17449 (w32font_draw): Use s->font.
17450 (clear_cached_metrics): Don't clear non-existent blocks.
17451
17452 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
17453 font was not found.
17454 (x_draw_glyph_string): Use underline position and thickness from font.
17455
17456 * w32uniscribe.c (uniscribe_open): Pass font_object to
17457 w32font_open_internal.
17458
174592008-05-14 Kenichi Handa <handa@m17n.org>
17460
17461 These changes are to delete all legacy font-handling codes, and
17462 make Emacs use only font-backends.
17463
17464 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
17465 (frame.o, image.o, print.o): Depend on $(FONTSRC).
17466
17467 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
17468
17469 * charset.h (Vcharset_non_preferred_head)
17470 (Vcurrent_iso639_language): Extern them.
17471
17472 * charset.c (Vcharset_non_preferred_head): New variable.
17473 (Vcurrent_iso639_language): New variable.
17474 (syms_of_charset): Declare it as a Lisp variable.
17475 (char_charset): Don't check non preferred charsets. As a last
17476 resort, return charset_unicode.
17477 (Fset_charset_priority): Update Vcharset_non_preferred_head.
17478
17479 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
17480 conditionals. Don't check enable_font_backend. Delete all codes
17481 used only when USE_FONT_BACKEND is not defined.
17482
17483 * dispextern.h (struct glyph_string): Change type of `font' to
17484 `struct font *'.
17485 (struct glyph_string): New member underline_position and
17486 underline_thickness.
17487 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
17488 (struct face): Change type of `font' to `struct font *'. Remove
17489 members `font_name', `font_info_id'.
17490 (per_char_metric, encode_char): Delete externs.
17491 (calc_pixel_width_or_height): Adjust the prototype.
17492
17493 * emacs.c (enable_font_backend): Delete extern.
17494 (main): Don't set enable_font_backend. Don't check the command
17495 line argument "-disable-font-backend".
17496
17497 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
17498 (enum font_property_index): New members FONT_DPI_INDEX,
17499 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
17500 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
17501 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
17502 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
17503 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
17504 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
17505 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
17506 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
17507 (struct font_spec, struct font_entity): New structs.
17508 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
17509 (struct font): Many members from old "struct font_info" moved to
17510 here. Members font and entity deleted.
17511 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
17512 the new font-related objects.
17513 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
17514 (CHECK_FONT_GET_OBJECT): Likewise.
17515 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
17516 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
17517 (struct font_driver): New members case_sensitive anc check. Type
17518 of the member list and open changed.
17519 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
17520 (font_symbolic_width, font_find_object, font_get_spec)
17521 (font_set_lface_from_name): Delete extern.
17522 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
17523
17524 * font.c: Include <strings.h>.
17525 (enable_font_backend): Delete it.
17526 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
17527 (CHECK_VALIDATE_FONT_SPEC): Delete it.
17528 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
17529 (null_string): Delete it.
17530 (null_vector): Make it static.
17531 (font_family_alist): Delete it.
17532 (Qnormal): Extern it.
17533 (QCextra, QClanguage): Delete it.
17534 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
17535 (font_make_spec, font_make_entity, font_make_object)
17536 (font_intern_prop): Renamed from intern_downcase. Don't downcase
17537 the string. Callers changed.
17538 (font_pixel_size): Adjusted for the format change of font-related
17539 objects.
17540 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
17541 (font_style_to_value, font_style_symbolic): New function.
17542 (build_font_family_alist): Delete it.
17543 (font_registry_charsets): Use Fassoc_string instead of
17544 assq_no_quit.
17545 (font_prop_validate_symbol): Don't return null_string.
17546 (font_prop_validate_style): Adjusted for the change of
17547 style-related values in a font vector.
17548 (font_property_table): Delete entries for QClanguage and
17549 QCantialias, add entries for QCavgwidth.
17550 (get_font_prop_index): Delete the 2nd argument FROM.
17551 (font_prop_validate): Arguments changed.
17552 (font_put_extra): Adjusted for the change of font-related objects.
17553 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
17554 (font_parse_fcname, font_unparse_fcname)
17555 (font_prepare_composition): Likewise.
17556 (font_parse_family_registry): Renamed from font_merge_old_spec.
17557 (otf_open): Delete the 1st arg entity.
17558 (font_otf_capability): Adjusted for the above change.
17559 (font_score): New arg alternate_families. Adjusted for the change
17560 of font-related objects.
17561 (font_sort_entites): New arg best_only.
17562 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
17563 Delete them.
17564 (font_match_p): Check alternate families.
17565 (font_find_object): Delete it.
17566 (font_check_object): New function.
17567 (font_clear_cache): Adjusted for the change of font-related objects.
17568 (font_delete_unmatched): New arg.
17569 (font_list_entities): Call font_driver->list with a spec that
17570 doesn't specify style-related properties.
17571 (font_matching_entity): Arguments changed. Caller changed.
17572 (font_open_entity): Adjusted for the change of font-related objects.
17573 (font_close_object, font_has_char, font_encode_char)
17574 (font_get_name, font_get_spec): Likewise.
17575 (font_spec_from_name, font_clear_prop, font_update_lface):
17576 New functions.
17577 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
17578 (font_prepare_for_face, font_done_for_face, font_open_by_name)
17579 (font_at): Adjusted for the change of font-related objects.
17580 (font_range): New function.
17581 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
17582 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
17583 (Fcopy_font_spec, Fmerge_font_spec): New function.
17584 (Ffont_family_list): Renamed from list-families.
17585 (Finternal_set_font_style_table): Arguments changed.
17586 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
17587 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
17588 change of font-related objects.
17589 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
17590
17591 * fontset.h (struct font_info): Delete it. Most members go to
17592 struct font.
17593 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
17594 (enum FONT_SPEC_INDEX): Delete it.
17595 (font_info, list_fonts_func, load_font_func, query_font_func)
17596 (set_frame_fontset_func, find_ccl_program_func)
17597 (get_font_repertory_func, new_fontset_from_font_name): Delete
17598 externs.
17599 (fontset_from_font_name): Extern it.
17600 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
17601 (FONT_INFO_FROM_FACE): Deleted.
17602 (face_for_font): Adjust prototype.
17603
17604 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
17605 conditionals. Don't check enable_font_backend. Delete all codes
17606 used only when USE_FONT_BACKEND is not defined.
17607 (get_font_info_func, list_font_func, load_font_func)
17608 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
17609 (get_font_repertory_func): Delete them.
17610 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
17611 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
17612 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
17613 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
17614 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
17615 (fontset_compare_rfontdef): New function.
17616 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
17617 rfont-defs by qsort. Adjusted for the change of font-group vector.
17618 (load_font_get_repertory): Deleted.
17619 (fontset_find_font): Use new macros to ref/set elements of
17620 font-def and rfont-def.
17621 (fontset_font): Fix the timing of remembering that no font for C.
17622 (free_face_fontset): Do nothing if the face has no fontset.
17623 (face_suitable_for_char_p): Use new macros to ref/set elements of
17624 rfont-def.
17625 (face_for_char): Likewise. Call face_for_char with font_object.
17626 (fs_load_font): Delete. Delete #pragma surrounding it.
17627 (fs_query_fontset): Use strcasecmp instead of strcmp.
17628 (generate_ascii_font_name): Adjusted for the format change of
17629 font-spec.
17630 (Fset_fontset_font): Likewise. Use new macros to set elements of
17631 font-def.
17632 (Fnew_fontset): Use font_unparse_xlfd to generate
17633 FONTSET_ASCII (fontset).
17634 (new_fontset_from_font_name): Deleted.
17635 (fontset_from_font): Renamed from new_fontset_from_font. Check if
17636 a fontset is already created for the font. FIx updating of
17637 Vfontset_alias_alist.
17638 (fontset_ascii_font): Deleted.
17639 (Ffont_info): Adjusted for the format change of font-spec.
17640 (Finternal_char_font): Likewise.
17641 (Ffontset_info): Likewise.
17642 (syms_of_fontset): Don't check load_font_func.
17643
17644 * fns.c (internal_equal): Handle PREV_FONT.
17645
17646 * frame.h: Delete USE_FONT_BACKEND conditional.
17647
17648 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
17649 conditionals. Don't check enable_font_backend. Delete all codes
17650 used only when USE_FONT_BACKEND is not defined.
17651 (x_set_font): Call x_new_font, not x_new_fontset2.
17652 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
17653 already set for the frame.
17654
17655 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
17656 a font-entity by font_make_entity. Use font_intern_prop instead
17657 of intern_downcase. Use FONT_SET_STYLE to set a style-related
17658 font property. If a font is scalable, set avgwidth property to 0.
17659 Set font-entity property by font_put_extra.
17660 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
17661 (ffont_driver): Adjusted for the change of struct font_driver.
17662 (ftfont_spec_pattern): New function.
17663 (ftfont_list): Return a list, not vector.
17664 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
17665 (ftfont_list_family): Don't downcase names.
17666 (ftfont_free_entity): Deleted.
17667 (ftfont_open): Return a font-object. Adjusted for the change of
17668 struct font. Get underline_thickness and underline_position from
17669 font property. Don't update dpyinfo->smallest_font_height and
17670 dpyinfo->smallest_char_width.
17671 (ftfont_close): Don't free `struct font'.
17672 (ftfont_has_char): Adjusted for the format change of font-entity.
17673 (ftfont_encode_char, ftfont_text_extents): Likewise.
17674
17675 * ftxfont.c (ftxfont_list): Return a list, not vector.
17676 (ftxfont_open): Return a font-object. Adjusted for the change of
17677 struct font. Get underline_thickness and underline_position from
17678 font property. Don't update dpyinfo->smallest_font_height and
17679 dpyinfo->smallest_char_width.
17680 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
17681 (ftxfont_draw): Adjusted for the change of struct font.
17682
17683 * image.c (image_ascent): Don't include "charset.h". Include
17684 "character.h" and "font.h".
17685
17686 * lisp.h (enum pvec_type): New member PREV_FONT.
17687 (Fassoc_string): EXFUN it.
17688
17689 * print.c: Include font.h.
17690 (print_object): Handle font-related objects.
17691
17692 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
17693 conditionals. Don't check enable_font_backend. Delete all codes
17694 used only when USE_FONT_BACKEND is not defined.
17695 (handle_auto_composed_prop): Do nothing if it->f is not on a
17696 window system. Check how many following characters can be
17697 displayed by the same font.
17698 (calc_pixel_width_or_height): Type of the 4th arg is changed to
17699 'struct font *'.
17700 (get_char_face_and_encoding): Assign the whole encoding task to
17701 the `encode-char' method of a font driver.
17702 (fill_composite_glyph_string): Adjusted for the change of `struct
17703 face' and `struct glyph_string'.
17704 (fill_glyph_string): Likewise.
17705 (get_per_char_metric): Arguments changed.
17706 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
17707 and `struct glyph_string'.
17708 (produce_stretch_glyph, calc_line_height_property)
17709 (x_produce_glyphs): Likewise.
17710
17711 * xfaces.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. Use
17714 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
17715 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
17716 (Qp): Extern them.
17717 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
17718 Deleted.
17719 (struct font_name): Deleted.
17720 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
17721 (compare_fonts_by_sort_order): New function.
17722 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
17723 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
17724 Deleted.
17725 (Fx_family_fonts): Use font_list_entities, and sort fonts by
17726 compare_fonts_by_sort_order.
17727 (Fx_font_family_list): Call Ffont_family_list.
17728 (face_numeric_value, face_numeric_weight, face_numeric_slant)
17729 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
17730 (face_symbolic_slant, face_symbolic_swidth)
17731 (split_font_name_into_vector, build_font_name_from_vector)
17732 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
17733 (font_rescale_ratio, split_font_name, build_font_name)
17734 (free_font_names, sort_fonts, x_face_list_fonts)
17735 (face_font_available_p, sorted_font_list, cmp_font_names)
17736 (font_list_1, concat_font_list, font_list, remove_duplicates):
17737 Deleted.
17738 (Fx_list_fonts): Use Ffont_list.
17739 (LFACE_AVGWIDTH): Deleted.
17740 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
17741 by FONTP.
17742 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
17743 (set_lface_from_font_name): Delete it.
17744 (set_lface_from_font): Renamed from
17745 set_lface_from_font_and_fontset. Caller changed. Don't set
17746 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
17747 for face.
17748 (merge_face_vectors): Copy font-spec if necessary.
17749 Clear properties of the font-spec if necessary.
17750 (merge_face_ref): Clear properties of the font-spec if necessary.
17751 (Finternal_set_lisp_face_attribute): Likewise.
17752 (set_font_frame_param): Use font_load_for_lface to load a
17753 font-object, and call Fmodify_frame_parameters with it.
17754 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
17755 font name by Ffont_xlfd_name.
17756 (Finternal_lisp_face_attribute_values): Don't check QCweight,
17757 QCslant, and QCwidth.
17758 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
17759 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
17760 Compare fonts by EQ.
17761 (lookup_non_ascii_face): Deleted.
17762 (face_for_font): The 2nd argument changed.
17763 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
17764 Check atomic font properties by case insensitive.
17765 (realize_non_ascii_face): Set face->overstrike correctly.
17766 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
17767 (dump_realized_face): Get font name from
17768 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
17769
17770 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
17771 conditionals. Don't check enable_font_backend. Delete all codes
17772 used only when USE_FONT_BACKEND is not defined.
17773 (xic_create_xfontset): Original code deleted and renamed from
17774 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
17775 (x_make_gc): Don't set GCFont in GCs.
17776 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
17777 opened by "fixed".
17778 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
17779 find_ccl_program_func, query_font_func, set_frame_fontset_func,
17780 get_font_repertory_func.
17781
17782 * xfont.c: Include <stdlib.h> and "ccl.h".
17783 (struct xfont_info): New structure.
17784 (xfont_query_font): Deleted.
17785 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
17786 moved from xterm.c.
17787 (xfont_driver): Adjusted for the change of struct font_driver.
17788 (compare_font_names): New function.
17789 (xfont_list_pattern): Sort font names case insensitively. Make
17790 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
17791 (xfont_list): Return a list, not vector.
17792 (xfont_match): If the font doesn't have QCname property, generate
17793 a name from the other font properties.
17794 (xfont_open): Return a font-object. Adjusted for the change of
17795 struct font. Get underline_thickness and underline_position from
17796 font property. Don't update dpyinfo->smallest_font_height and
17797 dpyinfo->smallest_char_width.
17798 (xfont_close): Don't free struct font.
17799 (xfont_prepare_face): Adjusted for the change of struct font.
17800 (xfont_done_face): Deleted.
17801 (xfont_has_char): Adjusted for the change of struct font.
17802 (xfont_encode_char, xfont_draw): Likewise.
17803 (xfont_check): New function.
17804
17805 * xftfont.c (xftfont_list): Adjusted for the change of `list'
17806 callback function.
17807 (xftfont_match): Adjusted for the format change of font-entity.
17808 (xftfont_open): Adjusted for the format change of font-entity and
17809 font-object. Adjusted for the change of struct font. Return a
17810 font-object. Don't update dpyinfo->smallest_font_height and
17811 dpyinfo->smallest_char_width.
17812 (xftfont_close): Block input while calling XftFontClose.
17813 (xftfont_prepare_face): Don't block input while calling
17814 xftfont_get_colors. Adjusted for the change of struct font.
17815 (xftfont_shape): Return value of error case fixed.
17816
17817 * xrdb.c (x_load_resources): Don't setup a fontset resource.
17818
17819 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
17820 conditionals.
17821 (FONT_WIDTH): Return (f)->max_width.
17822 (struct x_display_info): Delete member `font'.
17823 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
17824 (x_find_ccl_program, x_get_font_repertory): Delete externs.
17825 (struct x_output): Change type of `font' to `struct font *'.
17826
17827 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
17828 conditionals. Don't check enable_font_backend. Delete all codes
17829 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
17830 (x_per_char_metric, x_encode_char): Deleted.
17831 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
17832 (x_compute_glyph_string_overhangs): Adjusted for the change of
17833 `struct face'.
17834 (x_draw_glyph_string_foreground)
17835 (x_draw_composite_glyph_string_foreground): Likewise.
17836 (x_draw_glyph_string): Likewise. Use font->underline_position and
17837 font->underline_thickness.
17838 (x_new_font): Renamed from x_new_fontset2.
17839 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
17840 (x_check_font): Call `check' method of a font driver.
17841 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
17842 (x_query_font, x_get_font_repertory): Deleted.
17843 (x_find_ccl_program): Renamed and moved to xfont.c.
17844 (x_redisplay_interface): Adjusted for the change of `struct
17845 redisplay_interface'.
17846
17847 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
17848 conditionals. Don't check enable_font_backend. Delete all codes
17849 used only when USE_FONT_BACKEND is not defined. Surround non-used
17850 code by "#ifdef OLD_FONT" and "endif".
17851 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
17852
17853 * w32font.h (struct w32font_info): New member.
17854 (FONT_COMPAT): New macro.
17855 (w32font_open_internal): Prototype adjusted.
17856
17857 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
17858 OLD_FONT" and "endif".
17859
17860 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
17861 conditionals. Don't check enable_font_backend. Delete all codes
17862 used only when USE_FONT_BACKEND is not defined.
17863 (w32font_open): Return a font-object. Make a font-object by
17864 font_make_object. Adjusted for the change of struct w32font_info.
17865 (w32font_close): Don't free struct font. Adjusted for the change
17866 of struct w32font_info.
17867 (w32font_encode_char, w32font_text_extents, w32font_draw):
17868 Adjusted for the change of struct w32font_info.
17869 (w32font_draw): Likewise.
17870 (w32font_list_internal): Return a list, not vector.
17871 (w32font_open_internal): Change the 4th arg to font-object.
17872 Adjusted for the change of struct w32font_info and font-object format.
17873 (add_font_name_to_list): Don't downcase names.
17874 (w32_enumfont_pattern_entity): Make a font-entity by
17875 font_make_entity. Adjusted for the format change of font-entity.
17876 Use FONT_SET_STYLE to set a style-related font property. If a
17877 font is scalable, set avgwidth property to 0. Set font-entity
17878 property by font_put_extra.
17879 (font_matches_spec): Adjusted for the format change of font-entity.
17880 (w32_weight_table, w32_decode_weight): New variables.
17881 (w32_encode_weight): New function.
17882 (fill_in_logfont): Adjusted for the format change of font-spec.
17883 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
17884 weight value.
17885 (w32font_driver): Adjusted for the change of struct font_driver.
17886
17887 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
17888 conditionals. Don't check enable_font_backend. Surround non-used
17889 code by "#ifdef OLD_FONT" and "endif".
17890 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
17891 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
17892
17893 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
17894 conditionals. Don't check enable_font_backend. Delete all codes
17895 used only when USE_FONT_BACKEND is not defined. Surround non-used
17896 code by "#ifdef OLD_FONT" and "endif".
17897
17898 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
17899 (uniscribe_open): Return value changed to font-object.
17900 Adjusted for the format change of font-object.
17901 (uniscribe_otf_capability): Adjusted for the change of struct font.
17902 (add_opentype_font_name_to_list): Don't downcase names.
17903 (uniscribe_font_driver): Adjusted for the change of struct
17904 font_driver.
17905
179062008-05-13 Chong Yidong <cyd@stupidchicken.com>
17907
17908 * dispnew.c (update_frame_1): Check if tty output is still valid
17909 before flushing it.
17910
179112008-05-13 Jan Djärv <jan.h.d@swipnet.se>
17912
17913 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
17914 to Gtk+ menus.
17915
179162008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
17917
17918 * dired.c (file_name_completion): Tweak the code so as to always do it
17919 in a single pass. Tighten the scope of some variables.
17920
17921 * dired.c (Qdefault_directory): New var.
17922 (file_name_completion): Use it instead of Fexpand_file_name.
17923 (syms_of_dired): Initialize it.
17924
179252008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
17926
17927 * fileio.c (double_dollars): Remove dead code.
17928
179292008-05-10 Eli Zaretskii <eliz@gnu.org>
17930
17931 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
17932 Mention w32-get-true-file-attributes in doc string.
17933
17934 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
17935
179362008-05-09 Glenn Morris <rgm@gnu.org>
17937
17938 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
17939 2008-04-23.
17940
179412008-05-09 Eli Zaretskii <eliz@gnu.org>
17942
17943 Support for reporting owner and group of each file on MS-Windows:
17944 * dired.c (stat_uname, stat_gname): New functions, with special
17945 implementation for w32.
17946 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
17947
17948 * w32.c: Rename the_passwd_* to dflt_passwd_*.
17949 (dflt_group_name): New static variable.
17950 (dflt_group): Rename from the_group.
17951 (init_user_info): Init dflt_group fields. Get user's group name
17952 from LookupAccountSid.
17953 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
17954 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
17955 New initialization states.
17956 (globals_of_w32): Initialize them to zero. Initialize the default
17957 group name to "None".
17958 (GetFileSecurity_Name): New global var, the name of the function
17959 to call for GetFileSecurity.
17960 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
17961 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
17962 (get_file_security, get_security_descriptor_owner)
17963 (get_security_descriptor_group, is_valid_sid)
17964 (get_file_security_desc, get_rid, get_name_and_id)
17965 (get_file_owner_and_group): New functions.
17966 (stat): Use get_file_security_desc and get_file_owner_and_group to
17967 report the owner and primary group of each file. Don't ignore the
17968 high 32 bits of file's size, now that st_size is 64-bit wide.
17969 Fix test when to get true file attributes.
17970 (init_user_info): Use get_rid instead of equivalent inline code.
17971 (fstat): Don't ignore the high 32 bits of file's size.
17972
179732008-05-09 Chong Yidong <cyd@stupidchicken.com>
17974
17975 * image.c (png_load): Use correct bit-depth for setting background
17976 color.
17977
179782008-05-08 Eli Zaretskii <eliz@gnu.org>
17979
17980 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
17981 epa-hook.elc.
17982
179832008-05-08 Juanma Barranquero <lekktu@gmail.com>
17984
17985 * font.c (Ffont_match_p): Don't use `iff' in docstring.
17986
179872008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
17988
17989 * macfns.c (Fx_create_frame): Make a copy of frame parameters
17990 because the original parameters are in pure storage now.
17991 (mac_window): Remove unused params. Update callers.
17992
179932008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
17994
17995 * lread.c (substitute_object_recurse): Use lower-level primitives.
17996 Don't signal errors when traversing sub-char-tables.
17997 Don't loop over all the possible characters when traversing char-tables.
17998
17999 * print.c (print_preprocess): Add sub-char-tables to the print-table,
18000 just like we do in print.c.
18001
180022008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
18003
18004 * minibuf.c (Ftry_completion): Remove code left over from when we used
18005 scmp instead of Fcompare_strings.
18006
180072008-05-04 Juanma Barranquero <lekktu@gmail.com>
18008
18009 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
18010
180112008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18012
18013 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
18014 Create bitmap context in native byte order.
18015
18016 * macterm.c (XDrawLine)
18017 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
18018 context in native byte order.
18019
180202008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18021
18022 * config.in: Regenerate.
18023
18024 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
18025 New definitions for Image I/O support.
18026 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
18027 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
18028 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
18029 (mac_data_provider_release_data, image_load_image_io)
18030 [USE_MAC_IMAGE_IO]: New functions.
18031 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
18032 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
18033 (init_image_func_pointer) [MAC_OSX]: Remove function.
18034 (image_load_quartz2d) [MAC_OSX]: Check availability of
18035 CGImageCreateWithPNGDataProvider at compile time.
18036 Use lowercase `false' for boolean constant.
18037 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
18038 Use image_load_image_io.
18039 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
18040 Don't check MyCGImageCreateWithPNGDataProvider.
18041 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
18042 Don't call init_image_func_pointer.
18043
18044 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
18045
18046 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
18047 Make variable non-static.
18048 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
18049 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
18050
18051 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
18052 (RED_FROM_ULONG): Mask off higher bits.
18053 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
18054
18055 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
18056 Include AvailabilityMacros.h.
18057 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
18058 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
18059
180602008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
18061
18062 * chartab.c (Fset_char_table_range): If range is t, really set all
18063 chars to that value.
18064
180652008-05-03 Eli Zaretskii <eliz@gnu.org>
18066
18067 * dired.c (Ffile_attributes): Don't allow the device number become
18068 negative.
18069
180702008-05-02 Daiki Ueno <ueno@unixuser.org>
18071
18072 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
18073
180742008-05-02 Juri Linkov <juri@jurta.org>
18075
18076 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
18077 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
18078 DEFAULT argument as a list of default values in docstrings.
18079
180802008-05-01 Chong Yidong <cyd@stupidchicken.com>
18081
18082 * puresize.h (BASE_PURESIZE): Increase to 1210000.
18083
180842008-05-01 Martin Rudalics <rudalics@gmx.at>
18085
18086 * dispnew.c (change_frame_size_1): Preserve small windows when
18087 shrinking frames by calling set_window_height|width with third
18088 arg 2.
18089
18090 * window.h (struct window): Replace field too_small_ok by field
18091 resize_proportionally.
18092
18093 * window.c (make_window): Initialize resize_proportionally.
18094 (enlarge_window): Temporarily set resize_proportionally to make
18095 sure that shrink_windows does scale the window proportionally.
18096 (shrink_windows): When window has resize_proportionally set try
18097 to shrink it proportionally by stealing from other windows.
18098 (struct saved_window, Fset_window_configuration)
18099 (compare_window_configurations): Handle resize_proportionally.
18100 (WINDOW_TOTAL_SIZE): New macro.
18101 (window_min_size, shrink_windows, size_window): Use it.
18102 (check_min_window_sizes): Remove. Invalid values of
18103 window-min-height|width are handled by window_min_size_2 now.
18104 (size_window, Fsplit_window, enlarge_window)
18105 (adjust_window_trailing_edge, grow_mini_window): Don't call
18106 check_min_window_sizes.
18107 (window_min_size_2, window_min_size_1, window_min_size):
18108 New argument safe_p for retrieving "safe" minimum sizes.
18109 (Fdisplay_buffer, Fsplit_window, enlarge_window)
18110 (adjust_window_trailing_edge, grow_mini_window):
18111 Adjust arguments of window_min_size... functions.
18112 (shrink_windows): Argument min_size removed. New argument
18113 safe_p allows shrinking windows to their safe minimum sizes.
18114 Calculate minimum size and decide whether a window shall be
18115 deleted for each window individually.
18116 (size_window): When nodelete_p equals 2, tell shrink_windows to
18117 delete windows only if their new minimum size is no more safe.
18118 (shrink_window_lowest_first): Call window_min_size_1 to make
18119 sure to preserve modeline of bottom-most window when resizing
18120 the minibuffer.
18121 (Fset_window_configuration, Fcurrent_window_configuration)
18122 (compare_window_configurations): Do not handle
18123 window-min-height|width any more.
18124 (syms_of_window): Clarify window-min-height|width doc-strings.
18125
181262008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
18127
18128 * dired.c (file_name_completion): Fix up the encoding/decoding issue
18129 some more. Copy some of the code from Ftry_completions.
18130 Remove special case code that dates back to initial revision when the
18131 slash was only added when necessary and that can't trigger nowadays.
18132
181332008-04-27 Kenichi Handa <handa@m17n.org>
18134
18135 * font.c (font_prop_validate): Signal `error' instead of `font'.
18136
181372008-04-29 Jason Rumney <jasonr@gnu.org>
18138
18139 * w32fns.c (Fw32_battery_status): New defun.
18140 (syms_of_w32fns): Defsubr it.
18141
181422008-04-28 Andreas Schwab <schwab@suse.de>
18143
18144 * dired.c (file_name_completion): Fix another mixing of encoded
18145 and decoded names.
18146
181472008-04-28 Juanma Barranquero <lekktu@gmail.com>
18148
18149 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
18150
181512008-04-27 Juanma Barranquero <lekktu@gmail.com>
18152
18153 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
18154
181552008-04-27 Andreas Schwab <schwab@suse.de>
18156
18157 * dired.c (file_name_completion): Fix inappropriate mixing of
18158 encoded and decoded names.
18159
18160 * xterm.c (XTread_socket): Fix use of uninitialized variable.
18161
18162 * puresize.h (BASE_PURESIZE): Increase to 1200000.
18163
181642008-04-26 Eli Zaretskii <eliz@gnu.org>
18165
18166 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
18167 2008-03-31, it's not needed anymore with `struct stat' definition
18168 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
18169 for the same reasons.
18170
181712008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
18172
18173 * m/sparc.h: Additional redefinitions for GNU/Linux.
18174
181752008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18176
18177 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
18178 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
18179 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
18180 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
18181 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
18182 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
18183 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
18184 Likewise.
18185
18186 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
18187 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
18188 (mac_ax_number_of_characters): Add externs.
18189 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
18190 [USE_MAC_TSM]: Likewise.
18191 (mac_handle_text_input_event) [MAC_OSX]:
18192 Handle kEventTextInputOffsetToPos for no active input area case.
18193 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
18194 (mac_handle_document_access_event)
18195 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
18196 (install_application_handler) [MAC_OSX]: Register handlers for
18197 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
18198 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
18199 Register mac_handle_document_access_event.
18200
18201 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
18202 Make functions non-static.
18203
182042008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
18205
18206 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
18207 (read_file_name_completion_ignore_case, insert_default_directory)
18208 (Qdefault_directory): Move to minibuffer.el.
18209 (Fread_file_name): Call the new `read-file-name' instead.
18210
182112008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18212
18213 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
18214 Make function non-static.
18215 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
18216 Remove function.
18217 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
18218 Move to mactoolbox.c.
18219 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
18220
18221 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
18222 (mac_rect_make): New macro.
18223
18224 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
18225 instead of float.
18226 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
18227 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
18228 (XSetBackground) [USE_CG_DRAWING]: Likewise.
18229 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
18230 CGRectMake.
18231 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
18232 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
18233 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
18234 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
18235 instead of WindowRef in argument type.
18236 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
18237 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
18238 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
18239 instead of DISPLAY. All uses changed.
18240 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
18241 (x_calc_absolute_position): Simplify so as not to use
18242 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
18243
18244 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
18245 instead of WindowRef in argument type.
18246 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
18247 [TARGET_API_MAC_CARBON]: Remove externs.
18248 (create_apple_event, mac_event_parameters_to_lisp)
18249 [TARGET_API_MAC_CARBON]: Add externs.
18250
18251 * mactoolbox.c (Vmac_ts_script_language_on_focus)
18252 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
18253 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
18254 is clicked.
18255 (x_activate_menubar): Remove extern for saved_menu_event_location.
18256 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
18257 Move from mac.c.
18258
182592008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18260
18261 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
18262 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
18263
182642008-04-23 Jason Rumney <jasonr@gnu.org>
18265
18266 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
18267 attributes only for local files.
18268
18269 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
18270 default to Qlocal.
18271
182722008-04-22 Juri Linkov <juri@jurta.org>
18273
18274 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
18275 read-buffer-to-switch instead of using the letter "B".
18276
182772008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
18278
18279 * fileio.c (Qdefault_directory): New variable.
18280 (Fread_file_name): Use it to pass `dir' to the completion functions.
18281
182822008-04-20 Chong Yidong <cyd@stupidchicken.com>
18283
18284 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
18285
182862008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
18287
18288 * keyboard.c (Vpre_help_message): Remove.
18289 (show_help_echo): Remove default C code.
18290
18291 * dired.c (directory_files_internal, file_name_completion):
18292 Only call ENCODE_FILE if the string is indeed decoded.
18293
182942008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
18295
18296 * Makefile.in (TOOLKIT_DEFINES): Remove.
18297 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
18298
182992008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18300
18301 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
18302 (mactoolbox.o): New target.
18303
18304 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
18305 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
18306
18307 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
18308 Use mac_set_frame_window_background instead of XSetWindowBackground.
18309 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
18310 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
18311 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
18312 instead of SetWindowTitleWithCFString.
18313 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
18314 Move function to mactoolbox.c.
18315 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
18316 Use mac_set_window_modified instead of SetWindowModified.
18317 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
18318 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
18319 (Fx_focus_frame): Use mac_front_non_floating_window instead of
18320 FrontNonFloatingWindow. Use mac_activate_window instead of
18321 ActivateWindow. Use mac_active_non_floating_window instead of
18322 ActiveNonFloatingWindow.
18323 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
18324 Use mac_show_hourglass and mac_hide_hourglass.
18325 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
18326 instead of GetGlobalMouse.
18327 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
18328 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
18329 Use mac_bring_window_to_front instead of BringToFront.
18330 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
18331 mactoolbox.c.
18332 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
18333 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
18334 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
18335 mactoolbox.c.
18336
18337 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
18338 (XtPointer): Move typedef from macmenu.c.
18339 (enum button_type): Move enum from macmenu.c.
18340 (widget_value): Move typedef from macmenu.c.
18341 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
18342 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
18343 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
18344 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
18345 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
18346 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
18347 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
18348 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
18349 (Selection): Move typedef from macselect.c.
18350 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
18351 macterm.c.
18352 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
18353 (mac_is_window_collapsed, mac_bring_window_to_front)
18354 (mac_send_window_behind, mac_hide_window, mac_show_window)
18355 (mac_collapse_window, mac_front_non_floating_window)
18356 (mac_active_non_floating_window, mac_activate_window)
18357 (mac_move_window_structure, mac_move_window, mac_size_window)
18358 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
18359
18360 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
18361 (enum mac_menu_kind): Move enum to mactoolbox.c.
18362 (min_menu_id): Move variable to mactoolbox.c.
18363 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
18364 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
18365 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
18366 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
18367 [TARGET_API_MAC_CARBON]: Likewise.
18368 (XtPointer): Move typedef to macgui.h.
18369 (enum button_type): Move enum to macgui.h.
18370 (widget_value): Move typedef to macgui.h.
18371 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
18372 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
18373 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
18374 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
18375 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
18376 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
18377 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
18378 (popup_activated_flag): Make variable non-static.
18379 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
18380 (add_menu_item, fill_menu, dispose_menus):
18381 Move functions to mactoolbox.c.
18382 (restore_show_help_function, menu_target_item_handler)
18383 (install_menu_target_item_handler, mac_handle_dialog_event)
18384 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
18385 [TARGET_API_MAC_CARBON]: Likewise.
18386 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
18387 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
18388 (find_and_call_menu_selection, name_is_separator): Make function
18389 non-static.
18390 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
18391 to mactoolbox.c.
18392 (set_frame_menubar): Don't call install_menu_quit_handler.
18393 (menu_item_selection): New variable.
18394 (mac_menu_show): Use create_and_show_popup_menu.
18395 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
18396 selection but set variable menu_item_selection. All uses changed.
18397 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
18398 Call install_menu_quit_handler. Move to mactoolbox.c.
18399
18400 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
18401 (Selection): Move typedef to macgui.h.
18402 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
18403 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
18404 Make variables non-static.
18405 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
18406 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
18407 Make functions non-static.
18408 (Vmac_service_selection) [MAC_OSX]: Likewise.
18409 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
18410 (mac_valid_selection_target_p, mac_clear_selection)
18411 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
18412 (mac_put_selection_value, mac_selection_has_target_p)
18413 (mac_get_selection_value, mac_get_selection_target_list)
18414 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
18415 Move functions to mactoolbox.c.
18416 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
18417 Likewise.
18418 (copy_scrap_flavor_data, mac_handle_service_event)
18419 (install_service_handler) [MAC_OSX]: Likewise.
18420 (syms_of_macselect) <Vmac_dnd_known_types>:
18421 Use mac_dnd_default_known_types.
18422
18423 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
18424 Move to mactoolbox.c.
18425 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
18426 (Fx_selection_owner_p): Add EXFUN.
18427 (install_window_handler, remove_window_handler, XSetWindowBackground):
18428 Remove externs.
18429 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
18430 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
18431 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
18432 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
18433 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
18434 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
18435 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
18436 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
18437 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
18438 (create_and_show_popup_menu, mac_get_selection_from_symbol)
18439 (mac_valid_selection_target_p, mac_clear_selection)
18440 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
18441 (mac_put_selection_value, mac_selection_has_target_p)
18442 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
18443 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
18444 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
18445 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
18446 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
18447 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
18448 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
18449 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
18450 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
18451
18452 * mactoolbox.c: New file.
18453
184542008-04-18 Jason Rumney <jasonr@gnu.org>
18455
18456 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
18457
184582008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
18459
18460 * character.c (Fmultibyte_char_to_unibyte):
18461 Return latin1 chars unchanged.
18462
18463 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
18464 relocated if it points to `name'.
18465
184662008-04-17 Kenichi Handa <handa@m17n.org>
18467
18468 * data.c (Faset): Allow setting a multibyte character in an
18469 ASCII-only unibyte string.
18470
18471 * lisp.h (STRING_SET_MULTIBYTE): New macro.
18472
184732008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
18474
18475 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
18476 done in config.h.
18477
184782008-04-16 Juanma Barranquero <lekktu@gmail.com>
18479
18480 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
18481 (Fchar_direction): Add usage in the docstring.
18482
184832008-04-15 Chong Yidong <cyd@stupidchicken.com>
18484
18485 * keyboard.c (read_key_sequence): Remove always-true checks.
18486
184872008-04-14 Jason Rumney <jasonr@gnu.org>
18488
18489 * w32font.c (w32font_open_internal): Set max_bounds.descent in
18490 compatibility struct, for better underline positioning.
18491
184922008-04-13 David Hansen <david.hansen@gmx.net>
18493
18494 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
18495 string.
18496
184972008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
18498
18499 * m/hp800.h (XUINT, XSET): Remove.
18500
185012008-04-12 Juanma Barranquero <lekktu@gmail.com>
18502
18503 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
18504 previous change.
18505
185062008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
18507
18508 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
18509 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
18510
185112008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
18512
18513 * keymap.h (map_keymap_canonical): Declare.
18514 * xmenu.c (single_keymap_panes): Use it.
18515
185162008-04-11 Glenn Morris <rgm@gnu.org>
18517
18518 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
18519 set the target's value to that of the alias.
18520
185212008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
18522
18523 * term.c (set_tty_color_mode): Left over typo.
18524
185252008-04-10 Michael Albinus <michael.albinus@gmx.de>
18526
18527 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
18528 only after check for file name handler functions. Signal, when
18529 native functionality is not supported.
18530 (syms_of_fileio): Declare it unconditionally.
18531
185322008-04-10 Jason Rumney <jasonr@gnu.org>
18533
18534 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
18535 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
18536
18537 * w32.c (logon_network_drive): Also logon to remote drives that
18538 are mapped to drive letters.
18539
185402008-04-10 Glenn Morris <rgm@gnu.org>
18541
18542 * xdisp.c (truncate-partial-width-windows): Doc fix.
18543
185442008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
18545
18546 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
18547 Move functions to minibuffer.el.
18548 (syms_of_fileio): Don't declare them.
18549
185502008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
18551
18552 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
18553 (syms_of_minibuf): Remove its initialization.
18554
18555 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
18556
185572008-04-09 Juanma Barranquero <lekktu@gmail.com>
18558
18559 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
18560
185612008-04-09 Jason Rumney <jasonr@gnu.org>
18562
18563 * makefile.w32-in (distclean): Delete makefile too.
18564 (maintainer-clean): New target.
18565
18566 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
18567
18568 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
18569 for new font backend and composite cases.
18570
185712008-04-09 Jan Djärv <jan.h.d@swipnet.se>
18572
18573 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
18574 Most of the code moved to run_timers.
18575 (do_pending_atimers): Call run_timers.
18576 (run_timers): New function.
18577
18578 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
18579 run atimers.
18580
18581 * process.c (wait_reading_process_output): The same as above.
18582
185832008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
18584
18585 * minibuf.c (last_exact_completion): Remove variable.
18586 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
18587 (complete_and_exit_1, complete_and_exit_2)
18588 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
18589 (Fdisplay_completion_list, display_completion_list_1)
18590 (Fminibuffer_completion_help, Fself_insert_and_exit)
18591 (Fexit_minibuffer, Fminibuffer_message): Move functions to
18592 minibuffer.el.
18593 (syms_of_minibuf): Remove corresponding initializations.
18594
18595 * keyboard.c (Qdeactivate_mark): New var.
18596 (command_loop_1): Use it to call `deactivate-mark'.
18597 (syms_of_keyboard): Initialize it.
18598
18599 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
18600 to another frame.
18601 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
18602 Don't call set_tty_color_mode.
18603 (store_frame_param): Reset previous_frame rather than call
18604 set_tty_color_mode.
18605 * term.c (set_tty_color_mode): Rewrite.
18606 * dispextern.h (set_tty_color_mode): New type.
18607 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
18608
186092008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
18610
18611 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
18612 for generic chars, which do not exist any more in emacs-unicode.
18613
186142008-04-08 Michael Albinus <michael.albinus@gmx.de>
18615
18616 * coding.c (detect_coding_emacs_mule)
18617 (Ffind_operation_coding_system): Fix typo.
18618
186192008-04-08 Jason Rumney <jasonr@gnu.org>
18620
18621 * w32uniscribe.c (SNAME): Extract only symbol name.
18622
18623 * w32font.h (struct w32_metric_cache): New struct.
18624 (w32font_info): Use it.
18625 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
18626 (CACHE_BLOCKSIZE): New constants.
18627
18628 * w32font.c (Qja, Qko, Qzh): New symbols.
18629 (syms_of_w32font): Initialise them.
18630 (font_matches_spec): Use them to filter by language.
18631 (recompute_cached_metrics): Remove function.
18632 (compute_metrics, clear_cached_metrics): New functions.
18633 (w32font_encode_char): Use them to manage metric cache.
18634 (w32font_text_extents): Cache metrics for all glyphs on demand.
18635 Delay converting glyph indices to WORD until needed.
18636 (w32font_open_internal): Initialize metric cache to empty.
18637 (registry_to_w32_charset): Charset should always be a symbol.
18638 (fill_in_logfont, list_all_matching_fonts): Family should
18639 always be a symbol.
18640
186412008-04-06 Jason Rumney <jasonr@gnu.org>
18642
18643 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
18644 Give up if glyph indices not supported. Use uniscribe obtained
18645 ABC widths for individual metrics. Map glyph clusters back to
18646 characters using fClusterStart flag. Return number of glyphs
18647 produced, not chars processed.
18648 (uniscribe_shape): Map char at FROM to current glyph.
18649
186502008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18651
18652 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
18653 Use SetMenuItemHierarchicalMenu.
18654
186552008-04-05 Jason Rumney <jasonr@gnu.org>
18656
18657 * image.c (pbm_load): Allow color values up to 65535.
18658 Throw an error if max_color_idx is outside the supported range.
18659 Report an error when image size is invalid.
18660 Read two bytes at a time when raw images have max_color_idx above 255.
18661
aac0c6e3
MR
186622008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
18663
18664 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
18665 append "CCL: Quitted" when the CCL program is quitted.
18666 (setup_ccl_program): Initialize ccl->quit_silently to zero.
18667
18668 * ccl.h (struct ccl_program): New member quit_silently.
18669
186702008-04-05 Chong Yidong <cyd@stupidchicken.com>
18671
18672 * search.c (compile_pattern_1): Treat non-nil and non-string of
18673 search-spaces-regexp as nil.
18674
18675 * minibuf.c (Fassoc_string): Tweak docstring.
18676
186772008-04-05 Eli Zaretskii <eliz@gnu.org>
18678
18679 * dired.c (Ffile_attributes): Support inode numbers wider than 32
18680 bits. Remove ugly WINDOWSNT-specific kludge introduced on
18681 2008-03-14 to force inode be positive.
18682
18683 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
18684 _S_* ones, since we now use our own sys/stat.h.
18685 (stat, fstat): Don't mangle the inode number.
18686 (init_user_info): Don't restrict UID and GID to 0-60000 range.
18687
186882008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
18689
18690 * frame.h (struct frame): Give one more bit to `visible' since we use
18691 values larger than 1 to indicate obscured frames on ttys.
18692
18693 * keymap.c (Qkeymap_canonicalize): New var.
18694 (Fmap_keymap_internal): New fun.
18695 (describe_map): Use keymap-canonicalize.
18696
18697 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
18698 (Fundo_boundary): Set them.
18699 (syms_of_undo): Initialize them.
18700 (record_point): Use them instead of last_point_position*.
18701 (last_undo_buffer): Change type.
18702
187032008-04-04 Jason Rumney <jasonr@gnu.org>
18704
18705 * w32font.c (w32font_text_extents): Use font's ascent and descent.
18706 (recompute_cached_metrics): Don't set ascent and descent per char.
18707
18708 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
18709 (uniscribe_check_otf): Add GC protection before consing.
18710 Rearrange loop for counting features.
18711
187122008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
18713
18714 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
18715 buffer with byte-size of source buffer.
18716
187172008-04-03 Chong Yidong <cyd@stupidchicken.com>
18718
18719 * callint.c (Fcall_interactively): Handle temporary region even
18720 when shift-select-mode is off.
18721
187222008-04-03 Jason Rumney <jasonr@gnu.org>
18723
18724 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
18725
187262008-04-03 Kenichi Handa <handa@m17n.org>
18727
18728 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
18729 (CATEGORY_MASK_UTF_16): Likewise.
18730 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
18731 binary file.
18732 (detect_coding): Add null-byte detection for a binary file.
18733 (detect_coding_system): Likewise.
18734
187352008-04-03 Jason Rumney <jasonr@gnu.org>
18736
18737 * w32uniscribe.c: New file.
18738
18739 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
18740
18741 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
18742
18743 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
18744 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
18745 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
18746 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
18747 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
18748 (Qphonetic): New symbols.
18749 (syms_of_w32font): Initialize them.
18750 (font_supported_scripts): Use them.
18751 (w32font_list_family): List all charsets.
18752 (w32font_text_extents, recompute_cached_metrics): Fix metric
18753 calculations.
18754 (w32_enumfont_pattern_entity): Make full_type a DWORD.
18755 Give opentype fonts their own format.
18756 (font_matches_spec): New arguments backend and logfont.
18757 Handle :otf spec for uniscribe backend.
18758 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
18759 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
18760
18761 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
18762 font backend.
18763 (globals_of_w32fns): Initialize uniscribe font backend.
18764
18765 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
18766 dependencies.
18767 (w32uniscribe.$(O)): New file to build.
18768 (FONT_OBJ): Include w32uniscribe.$(O).
18769 (LIBS): Add uniscribe libraries.
18770
18771 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
18772
187732008-04-02 Chong Yidong <cyd@stupidchicken.com>
18774
18775 * callint.c (Vshift_select_mode): New var.
18776 (Finteractive): Document new ^ spec.
18777 (Fcall_interactively): Call handle-shift-selection if the ^ spec
18778 is present.
18779
18780 * keyboard.c (Vthis_command_keys_shift_translated): New var.
18781 (command_loop_1): Avoid running the direct display versions of
18782 forward-char and backward-char if shift-selection may occur.
18783 (read_key_sequence): Set Vthis_command_keys_shift_translated if
18784 shift-translation takes place.
18785
18786 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
18787 avoid clobbering by define-minor-mode.
18788
18789 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
18790 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
18791
18792 * syntax.c (Fforward_word): Add ^ interactive spec.
18793
18794 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
18795 (Fscroll_right): Add ^ interactive spec.
18796
187972008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
18798
18799 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
18800
18801 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
18802
18803 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
18804
188052008-03-31 Juri Linkov <juri@jurta.org>
18806
18807 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
18808
188092008-03-30 Jan Djärv <jan.h.d@swipnet.se>
18810
18811 * gtkutil.c (xg_set_geometry): Fix indentation.
18812 (xg_resize_outer_widget): Remove.
18813 (x_wm_size_hint_off): Fix indentation.
18814 (xg_frame_set_char_size): Call flush_and_sync after
18815 gtk_window_resize.
18816 (x_wm_set_size_hint): Pass NULL as geometry window to
18817 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
18818 Add menu bar and tool bar height to base height.
18819 (xg_update_frame_menubar, free_frame_menubar)
18820 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
18821 (update_frame_tool_bar, free_frame_tool_bar):
18822 Change xg_resize_outer_widget to xg_frame_set_char_size.
18823
188242008-03-30 Michael Albinus <michael.albinus@gmx.de>
18825
18826 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
18827 (Fdbus_call_method): New parameter TIMEOUT.
18828 (dbus-send-signal): Optimize UNGCPRO call.
18829
188302008-03-29 Juri Linkov <juri@jurta.org>
18831
18832 * window.c (Fdisplay_buffer): Move call to
18833 Vsplit_window_preferred_function out of conditions that check
18834 if window is eligible for vertical splitting.
18835 When Vsplit_window_preferred_function is non-nil, call it and use
18836 its non-nil return value as window. Otherwise, continue doing
18837 vertical splitting using Fsplit_window with arg horflag=nil.
18838 (syms_of_window) <Vsplit_window_preferred_function>: Change the
18839 default value from `split-window' to nil.
18840
188412008-03-29 Juri Linkov <juri@jurta.org>
18842
18843 * callint.c (Fcall_interactively): Revert 2008-03-16 change
18844 for interactive code letters 'b' and 'B'.
18845
188462008-03-29 Eli Zaretskii <eliz@gnu.org>
18847
18848 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
18849 multibyte string.
18850
188512008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
18852
18853 * keyboard.c (pending_funcalls): New var.
18854 (timer_check): Run it.
18855 (syms_of_keyboard): Initialize it.
18856 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
18857 (Vdelete_terminal_functions): New vars.
18858 (syms_of_terminal): Initialize them.
18859 (Fdelete_terminal): Run delete-terminal-functions.
18860 * xdisp.c (safe_eval): Rewrite.
18861 (safe_call2): New fun.
18862 * frame.c (Qdelete_frame_functions): New var.
18863 (syms_of_frame): Initialize it.
18864 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
18865 * lisp.h (safe_call2, pending_funcalls): Declare.
18866
188672008-03-28 Andreas Schwab <schwab@suse.de>
18868
18869 * indent.c (Fmove_to_column): Move declaration before statements.
18870
188712008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
18872
18873 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
18874 (struct frame): Use bit fields for boolean vars.
18875
18876 * process.c (server_accept_connection): Simplify naming.
18877 (emacs_get_tty_pgrp): Use SDATA.
18878
18879 * coding.c (decode_coding_object): Fix last change.
18880
188812008-03-27 Jason Rumney <jasonr@gnu.org>
18882
18883 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
18884
188852008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
18886
18887 * charset.c (Fdefine_charset_internal): Change the way of
18888 registering charsets in Vcharset_order_list.
18889 (syms_of_charset): Make the charset `eight-bit' supplementary.
18890
188912008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
18892
18893 * regex.c (EXTEND_BUFFER): Change order of pointer addition
18894 operations, to avoid having the difference between pointers
18895 overflow.
18896
188972008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
18898
18899 * indent.c (check_display_width): New fun.
18900 (scan_for_column): Use it.
18901
18902 * data.c (syms_of_data): Mark most-positive-fixnum and
18903 most-negative-fixnum as constants.
18904
18905 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
18906
18907 * indent.c (scan_for_column): Extract from current_column_1.
18908 Merge with the same code from Fmove_to_column.
18909 (current_column_1, Fmove_to_column): Use it.
18910
189112008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
18912
18913 * keymap.c (map_keymap_internal): New fun.
18914 (map_keymap): Use it.
18915 (Fmap_keymap_internal): New fun.
18916 (Fmap_keymap): Remove left-out test from before make_save_value.
18917
18918 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
18919
18920 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
18921 Use XCAR/XCDR.
18922
18923 * process.h (struct Lisp_Process): Remove filter_multibyte.
18924 * process.c (QCfilter_multibyte): Remove.
18925 (setup_process_coding_systems): Don't use filter_multibyte.
18926 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
18927 (read_process_output): Don't adjust multibyteness to filter_multibyte.
18928 (Fset_process_filter_multibyte): Change the coding-system to
18929 approximate the previous behavior.
18930 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
18931 coding-system.
18932
18933 * coding.c (decode_coding_object): When not decoding into a buffer,
18934 obey the coding system's preference of (uni|multi)byte.
18935
189362008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
18937
18938 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
18939 every char is changed and has a different byte-length.
18940 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
18941 Fix int -> EMACS_INT.
18942
189432008-03-23 David Hansen <david.hansen@gmx.net>
18944
18945 * dbusbind.c (xd_read_message): Remove extra copying of message
18946 strings. Check for NULL `interface' or `member'.
18947
189482008-03-22 Eli Zaretskii <eliz@gnu.org>
18949
18950 * w32.c (readdir): If FindFirstFile/FindNextFile return in
18951 cFileName a file name that includes `?' characters, use the 8+3
18952 alias in cAlternateFileName instead.
18953
189542008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
18955
18956 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
18957
189582008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
18959
18960 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
18961 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
18962 work on current_buffer only instead (that was already the case
18963 for some of the code anyway).
18964 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
18965 (temp_set_point, temp_set_point_both): Use EMACS_INT.
18966 (SET_PT, SET_PT_BOTH): Adjust.
18967 * intervals.h (set_point, temp_set_point, set_point_both)
18968 (temp_set_point_both): Remove redundant declarations.
18969
189702008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
18971
18972 * fileio.c (Finsert_file_contents):
18973 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
18974 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
18975 when buffer != current_buffer anyway.
18976
189772008-03-20 Andreas Schwab <schwab@suse.de>
18978
18979 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
18980 as default.
18981
189822008-03-19 Jason Rumney <jasonr@gnu.org>
18983
18984 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
18985 (syms_of_w32fns): Initialize them.
18986 (HOURGLASS_ID): New constant.
18987 (x_window_to_frame): Don't check hourglass_window.
18988 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
18989 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
18990 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
18991 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
18992 Only change the cursor if hourglass is not active.
18993 (Fx_create_frame): Initialize frame's current_cursor.
18994 (hourglass_atimer): Remove.
18995 (hourglass_started): New function.
18996 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
18997 (show_hourglass): Adapt to w32, changing argument to frame.
18998
18999 * w32term.h (struct w32_output): Remove hourglass_window.
19000 Add current_cursor.
19001
19002 * eval.c (call_debugger, Fsignal):
19003 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
19004 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
19005 (Fexecute_extended_command, cancel_hourglass_unwind):
19006 * minibuf.c (read_minibuf):
19007 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
19008
190092008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
19010
19011 * window.c (run_funs): New fun.
19012 (run_window_configuration_change_hook): Use it to run the buffer-local
19013 and the global part of the hook.
19014
19015 * xdisp.c (format_mode_line_unwind_data): Add window argument.
19016 (unwind_format_mode_line): Restore selected window.
19017 (x_consider_frame_title, Fformat_mode_line): Set selected window.
19018
190192008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
19020
19021 * editfns.c (Fchar_equal): Check they are valid characters.
19022
19023 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
19024
190252008-03-17 Andreas Schwab <schwab@suse.de>
19026
19027 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
19028 against a charset.
19029
19030 * lisp.h (Fbuffer_list): Declare.
19031
190322008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 19033
aac0c6e3
MR
19034 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
19035 handlebox_widget is != 0.
19036
190372008-03-16 Juri Linkov <juri@jurta.org>
19038
19039 * callint.c (Fcall_interactively): For interactive code letters
19040 'b' and 'B' put the buffer list into the list of default "future"
19041 values of the minibuffer.
19042
190432008-03-16 Andreas Schwab <schwab@suse.de>
19044
19045 * keyboard.c (read_key_sequence): Fix downcasing of letters with
19046 modifiers.
19047
19048 * regex.c (re_match_2_internal): Correct matching of a charset
19049 against latin-1 characters.
19050
190512008-03-16 Kenichi Handa <handa@m17n.org>
19052
19053 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
19054 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
19055 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
19056 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
19057 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
19058 CHAR_STRING_ADVANCE.
19059 (produce_chars): Fix for the case that the source and the
19060 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
19061 instead of CHAR_STRING_ADVANCE.
19062 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
19063 STRING_CHAR_ADVANCE.
19064
190652008-03-15 Andreas Schwab <schwab@suse.de>
19066
19067 * regex.c (re_match_2_internal): Correct matching of eight bit
19068 characters in unibyte strings.
19069
190702008-03-15 Martin Rudalics <rudalics@gmx.at>
19071
19072 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
19073 at end of range when it coincides with the end of the buffer.
19074
190752008-03-14 Eli Zaretskii <eliz@gnu.org>
19076
19077 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
19078
19079 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
19080
190812008-03-14 Jason Rumney <jasonr@gnu.org>
19082
19083 * editfns.c (initial_tz): New variable.
19084 (syms_of_editfns): Initialize it.
19085 (Fset_time_zone_rule): Set it when first called.
19086 Use it when TZSTRING is nil.
19087
19088 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
19089 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
19090 (monitor_from_point_fn, get_monitor_info_fn): New globals.
19091 (globals_of_w32fns): Initialize them.
19092 (compute_tip_xy): Use them to position tooltips.
19093
190942008-03-14 Glenn Morris <rgm@gnu.org>
19095
19096 * emacs.c (main): Revert previous change.
19097 (standard_args): Revert -internal-script back to -scriptload,
19098 and remove the long-option form.
19099
191002008-03-13 Glenn Morris <rgm@gnu.org>
19101
19102 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
19103 Remove option -enable-font-backend.
19104
191052008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
19106
19107 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
19108
191092008-03-11 Jan Djärv <jan.h.d@swipnet.se>
19110
19111 * xterm.c (x_connection_closed): For GTK: If this is the last
19112 terminal just exit without closing the display.
19113
191142008-03-11 Jason Rumney <jasonr@gnu.org>
19115
19116 * w32font.c (w32font_full_name): Use floor to round.
19117
f0131492 191182008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
19119
19120 * sound.c (alsa_configure): Declare vol at beginning of block.
19121
19122 * fontset.c (Ffontset_info): Remove extra semicolon.
19123
191242008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
19125
19126 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
19127 size of resulting string.
19128
191292008-03-10 Jason Rumney <jasonr@gnu.org>
19130
19131 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
19132
191332008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19134
19135 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
19136 Don't pretend as if characters with display property haven't been
19137 consumed for string-replacing-string case.
19138
191392008-03-08 Kim F. Storm <storm@cua.dk>
19140
19141 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
19142 (get_next_display_element, next_element_from_string)
19143 (next_element_from_ellipsis, next_element_from_buffer): Use it.
19144
191452008-03-08 Andreas Schwab <schwab@suse.de>
19146
19147 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
19148
191492008-03-06 Jason Rumney <jasonr@gnu.org>
19150
19151 * w32font.c (w32_registry): Take font_type argument. Use ANSI
19152 when charset not specified. Only translate ANSI to unicode when
19153 font_type is truetype.
19154 (w32font_coverage_ok): New function.
19155 (add_font_entity_to_list): Use it to filter unsuitable fonts.
19156
191572008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
19158
19159 * lread.c (Fread_char): Resolve modifiers.
19160 (Fread_char_exclusive): Likewise.
19161
19162 * character.c (char_resolve_modifier_mask): New function.
19163 (char_string): Use char_resolve_modifier_mask.
19164 (Fchar_resolve_modifiers): New function.
19165 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
19166 function.
19167
191682008-03-04 Jason Rumney <jasonr@gnu.org>
19169
19170 * makefile.w32-in: Always include w32font.c in the build.
19171 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
19172
191732008-03-04 Andreas Schwab <schwab@suse.de>
19174
19175 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
19176 (versionclean): Likewise.
19177
191782008-03-04 Juanma Barranquero <lekktu@gmail.com>
19179
19180 * .cvsignore: Add oo.
19181
191822008-03-03 Andreas Schwab <schwab@suse.de>
19183
19184 * coding.c (decode_coding_object): Inhibit gap shrinking while
19185 decoding in place.
19186
191872008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
19188
19189 * w32term.c: Remove unused include "gnu.h".
19190 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
19191
19192 * gnu.h: Rename to ...
19193 * emacs-icon.h: ... this.
19194 * xterm.c: Use emacs-icon.h instead of gnu.h.
19195 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
19196
191972008-03-03 Juanma Barranquero <lekktu@gmail.com>
19198
19199 * w32font.c: Include math.h.
19200
192012008-03-03 Jason Rumney <jasonr@gnu.org>
19202
19203 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
19204 Compute options separately.
19205 (w32font_open_internal): Set glyph_idx before caching metrics.
19206
19207 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
19208 Define if system headers don't.
19209 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
19210 (w32font_encode_char): Don't declare here.
19211
19212 * w32font.c (Quniscribe, QCformat): New symbols.
19213 (syms_of_w32font): Define them.
19214 (w32font_has_char): Indicate uncertainty.
19215 (w32font_encode_char): Encode as glyph point. Make static.
19216 (recompute_cached_metrics): New function.
19217 (w32font_open_internal): Use it. Set font to use glyph points
19218 initially. Set format based on type of font.
19219 (w32font_text_extents, w32font_draw): Optionally use glyph points.
19220 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
19221 on it. Set format based on information available here.
19222 (add_font_entity_to_list): Identify backend based on opentype_only.
19223
192242008-03-02 Andreas Schwab <schwab@suse.de>
19225
19226 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
19227
19228 * coding.c (decode_coding_big5, produce_chars):
19229 Fix typos in last change.
19230
192312008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
19232
19233 * gnu.h: New icon.
19234
192352008-03-02 Kenichi Handa <handa@m17n.org>
19236
19237 * coding.c (decode_coding_utf_8): When eol-type of CODING is
19238 `dos', don't decode '\r' if that is the last in the source.
19239 (decode_coding_utf_16, decode_coding_emacs_mule)
19240 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19241 (decode_coding_raw_text, decode_coding_charset): Likewise.
19242 (produce_chars): Don't decode EOL here. Use EMACS_INT.
19243
192442008-03-01 Jason Rumney <jasonr@gnu.org>
19245
19246 * w32font.c (w32font_full_name): Report point size for scalable fonts.
19247
192482008-03-01 Kim F. Storm <storm@cua.dk>
19249
19250 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
19251
192522008-03-01 Jason Rumney <jasonr@gnu.org>
19253
19254 * w32font.c (w32font_full_name): New function.
19255 (w32font_open_internal): Use it.
19256
192572008-03-01 Kim F. Storm <storm@cua.dk>
19258
19259 * dispnew.c (line_draw_cost): Fix invalid glyph check.
19260
192612008-03-01 Jason Rumney <jasonr@gnu.org>
19262
19263 * font.c (font_unparse_fcname): Increase len when style is a symbol.
19264
192652008-03-01 Jan Djärv <jan.h.d@swipnet.se>
19266
19267 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
19268 xg_frame_resized when the event is for the edit widget.
19269
19270 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
19271
19272 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
19273 set_char_size.
19274 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
19275 operations on widgets here. Just set frame size if needed.
19276 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
19277 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
19278 (x_wm_set_size_hint): Set size hints on the edit widget only, not
19279 the whole frame.
19280 (xg_create_tool_bar): Move attachment of the tool bar to
19281 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
19282 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
19283
192842008-03-01 Jason Rumney <jasonr@gnu.org>
19285
19286 * w32fns.c (w32_msg_pump): Disable debug code.
19287
192882008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19289
19290 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
19291
192922008-02-29 Chong Yidong <cyd@stupidchicken.com>
19293
19294 * xdisp.c (next_overlay_string): Don't set
19295 overlay_strings_at_end_processed_p if we're currently reading from
19296 a display string.
19297
192982008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
19299
19300 * xdisp.c (get_overlay_strings_1): Fix typo.
19301
193022008-02-29 Chong Yidong <cyd@stupidchicken.com>
19303
19304 * xdisp.c (get_overlay_strings_1): Add missing argument type.
19305
193062008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
19307
19308 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
19309
19310 * xdisp.c (display_mode_element): Cancel the previous change.
19311 (decode_mode_spec): Likewise.
19312 (handle_auto_composed_prop): Don't make composition if it->string
19313 is a string.
19314
193152008-02-27 Kim F. Storm <storm@cua.dk>
19316
19317 * lisp.h (GLYPH): Change type from int to struct with separate char
19318 and face_id members.
19319 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
19320 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
19321 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
19322 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
19323 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
19324 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
19325 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
19326 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
19327 handle new Lisp glyph code encoding, either an integer or a cons.
19328
19329 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
19330 (GLYPH_ALIAS): Delete.
19331 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
19332 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
19333 (GLYPH_FROM_CHAR): Replace macro by ...
19334 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
19335
19336 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
19337 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
19338 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
19339 (GLYPH_INVALID_P): New macro.
19340 (spec_glyph_lookup_face): Update prototype.
19341
19342 * dispnew.c (line_draw_cost): Adapt to new glyph type.
19343 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
19344 new glyph code encoding.
19345 (spec_glyph_lookup_face): No return value; update passed glyph instead.
19346 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
19347
19348 * xdisp.c (get_next_display_element, next_element_from_display_vector):
19349 Adapt to new glyph type and new glyph code encoding.
19350
19351 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
19352
19353 * indent.c (current_column, current_column_1, Fmove_to_column)
19354 (compute_motion): Adapt to new glyph code encoding.
19355
19356 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
19357
193582008-02-27 Chong Yidong <cyd@stupidchicken.com>
19359
19360 * process.c (wait_reading_process_output): Check for window
19361 changes caused by timers.
19362 Suggested by Johan Bockgård.
19363
193642008-02-27 Glenn Morris <rgm@gnu.org>
19365
19366 * emacs.c (USAGE1): Add `--disable-font-backend'.
19367
193682008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
19369
19370 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
19371 is made to the buffer.
19372
193732008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
19374
19375 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
19376 (face_at_string_position):
19377 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
19378 (face_at_string_position):
19379 * xdisp.c (display_string, next_overlay_change):
19380 * buffer.h (overlays_at):
19381 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
19382 Update callers.
19383
193842008-02-26 Chong Yidong <cyd@stupidchicken.com>
19385
19386 * editfns.c (Fformat): Doc fix.
19387
193882008-02-26 Juanma Barranquero <lekktu@gmail.com>
19389
19390 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
19391 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
19392 (Ffont_otf_alternates, Fquery_font): Doc fixes.
19393
193942008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
19395
19396 * buffer.c (Fbuffer_swap_text): New function.
19397 (syms_of_buffer): Defsubr it.
19398
193992008-02-25 Chong Yidong <cyd@stupidchicken.com>
19400
19401 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
19402
194032008-02-25 Jason Rumney <jasonr@gnu.org>
19404
19405 * w32font.c (w32font_draw): Draw one character at a time when padding.
19406
194072008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
19408
19409 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
19410 Handle a nil arg. Use run_window_configuration_change_hook.
19411 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
19412 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
19413 Use run_window_configuration_change_hook.
19414
194152008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
19416
19417 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
19418 1-pixel width.
19419
194202008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
19421
19422 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
19423 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
19424 if the glyph in the font is zero pixel with.
19425
19426 * dispextern.h (struct glyph_string): New member padding_p.
19427
19428 * w32font.c (w32font_draw): Pay attention to s->padding_p.
19429
19430 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
19431
19432 * xfont.c (xfont_draw): Pay attention to s->padding_p.
19433
19434 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
19435
19436 * font.c: If the font driver doesn't have `shape' function, return Qnil.
19437
194382008-02-25 Jason Rumney <jasonr@gnu.org>
19439
19440 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
19441
194422008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
19443
19444 Allow fine-grained image-cache flushing.
19445 * dispextern.h (struct image): Add `dependencies' field.
19446 (clear_image_caches): Change arg to Lisp_Object.
19447 * image.c (make_image): Initialize `dependencies' field.
19448 (clear_image_cache): Change arg to allow fine-grained flushing.
19449 Perform the flush even if image-cache-eviction-delay is nil.
19450 (clear_image_caches): Change arg to Lisp_Object.
19451 (Fclear_image_cache): Expand meaning of the argument.
19452 (mark_image): Mark `dependencies' field.
19453 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
19454 (lface_hash): Use XHASH rather than XFASTINT.
19455 (face_at_buffer_position): Fix int -> EMACS_INT position.
19456 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
19457 (select_frame_for_redisplay): Remove code duplication.
19458 (redisplay_internal): Adapt arg to call to clear_image_caches.
19459
194602008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
19461
19462 * s/vms4-0.h:
19463 * s/vms4-2.h:
19464 * s/vms4-4.h:
19465 * s/vms5-5.h: Remove, unused.
19466
19467 * s/irix5-2.h:
19468 * s/irix6-0.h:
19469 * s/riscos5.h:
19470 * s/mach-bsd4-3.h:
19471 * m/mips4.h: Remove files for obsolete systems.
19472
19473 * Makefile.in:
19474 * filelock.c:
19475 * unexmips.c:
19476 * m/hp9000s300.h:
19477 * m/iris4d.h:
19478 * s/aix3-1.h:
19479 * s/hpux.h:
19480 * s/msdos.h:
19481 * s/usg5-0.h:
19482 * s/usg5-2-2.h:
19483 * s/usg5-2.h:
19484 * s/usg5-3.h: Remove references to obsolete variables.
19485
19486 * s/irix5-0.h: Remove, move all the contents ...
19487 * s/irix6-5.h: ... here. Simplify.
19488 * config.in: Regenerate.
19489
194902008-02-24 Jason Rumney <jasonr@gnu.org>
19491
19492 * w32term.c (x_draw_glyph_string_background): Clear the background
19493 manually when cleartype is in use.
19494 (x_draw_glyph_string_foreground): Draw text transparently when
19495 cleartype is in use.
19496
19497 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
19498 a font into it unless we have to.
19499
195002008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
19501
19502 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
19503 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 19504
aac0c6e3
MR
195052008-02-18 Jason Rumney <jasonr@gnu.org>
19506
19507 * w32fns.c (Fw32_shell_execute): Encode parameters.
19508
195092008-02-09 Eli Zaretskii <eliz@gnu.org>
19510
19511 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
19512
195132008-02-05 Juanma Barranquero <lekktu@gmail.com>
19514
19515 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
19516
195172008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
19518
19519 * xterm.c (x_set_offset): Don't change the gravity if
19520 CHANGE_GRAVITY is -1.
19521
195222008-02-23 Chong Yidong <cyd@stupidchicken.com>
19523
19524 * fileio.c (auto_save_error_occurred): New var.
19525 (auto_save_error): Set it.
19526 (Fdo_auto_save): Don't overwrite the error message if an auto-save
19527 error occurred.
19528
195292008-02-23 Eli Zaretskii <eliz@gnu.org>
19530
19531 * w32.c (globals_of_w32): Add initializations for
19532 g_b_init_get_sid_sub_authority and
19533 g_b_init_get_sid_sub_authority_count.
19534
195352008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
19536
19537 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
19538 (font_parse_xlfd): Use them for sanity check.
19539 (Finternal_set_font_style_table): Make sure the table is bijective.
19540
19541 Consolidate the image_cache to the terminal struct.
19542 * termhooks.h (P_): Remove redundant def.
19543 (struct terminal): New field `image_cache'.
19544 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
19545 of FRAME_X_IMAGE_CACHE.
19546 * xterm.h (struct x_display_info): Remove image_cache field.
19547 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
19548 * w32term.h (struct w32_display_info): Remove image_cache field.
19549 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
19550 * macterm.h (struct mac_display_info): Remove image_cache field.
19551 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
19552 * xterm.c (x_term_init):
19553 * w32term.c (w32_term_init):
19554 * macterm.c (mac_term_init): Set the image_cache in the terminal.
19555 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
19556 Remove declarations.
19557 (clear_image_caches, mark_image_cache): New declarations.
19558 * xfaces.c (clear_face_cache):
19559 * xdisp.c (redisplay_internal): Use clear_image_caches.
19560 * image.c (clear_image_cache): Don't check that a frame is on
19561 a window-system before checking if it shares the same cache.
19562 (clear_image_caches): New function.
19563 (Fclear_image_cache): Use it.
19564 (mark_image): Move from allo.c.
19565 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
19566 * alloc.c (mark_image, mark_image_cache): Move to image.c.
19567 (mark_object): Don't call mark_image_cache for frames.
19568 (mark_terminals): Call mark_image_cache.
19569
19570 * lisp.h (Fdelete_terminal): Declare.
19571
19572 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
19573 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
19574 wrong_type_argument.
19575
195762008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
19577
19578 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
19579 malayalam.el, and tamil.el. Add sinhala.el.
19580
195812008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
19582
19583 * xterm.c (x_connection_closed): Consolidate identical tests.
19584 (x_delete_terminal): Don't crash if called via x_connection_closed.
19585
195862008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
19587
19588 * xdisp.c (decode_mode_spec): New arg string.
19589 (display_mode_element): Adjust for the above change.
19590
195912008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
19592
19593 * callint.c (Fcall_interactively): Use AREF.
19594
195952008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
19596
19597 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
19598
195992008-02-18 Jan Djärv <jan.h.d@swipnet.se>
19600
19601 * xfns.c (Fx_show_tip): Set string to " " if empty.
19602
196032008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
19604
19605 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
19606 with Qt.
19607
196082008-02-17 Kenichi Handa <handa@m17n.org>
19609
19610 * ftfont.c (ftfont_shape): Return Lispy number.
19611
19612 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
19613 for GCs.
19614 (Finternal_set_font_selection_order): Call font_update_sort_order
19615 only when enable_font_backend is set.
19616 (realize_x_face): Set face->font_info to that of default face only
19617 when enable_font_backend is set.
19618
19619 * xdisp.c (handle_composition_prop): Set it->c to the fist
19620 character of the composed region.
19621 (fill_composite_glyph_string): Set base_face->font_info to
19622 s->font_info. Get a face for ascii from base_face->ascii_face.
19623 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
19624 with a face already decided.
19625 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
19626 non-negative.
19627 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
19628 call font_prepare_composition unconditionally.
19629
19630 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
19631
19632 * xterm.h (struct x_display_info): New member font.
19633
19634 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
19635 (x_set_mouse_face_gc, x_new_font): Likewise.
19636 (x_term_init): Setup display_info->font.
19637 (x_delete_terminal): Free display_info->font.
19638
19639 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
19640
19641 * ftxfont.c (ftxfont_default_fid): Delete it.
19642 (ftxfont_open): Set xfont->fid to 0.
19643 (ftxfont_end_for_frame): Clear data specific to the frame and the
19644 font-driver.
19645
19646 * xftfont.c (xftfont_default_fid): Delete it.
19647 (xftfont_open): Set xfont->fid to 0.
19648
19649 * fontset.c (FONTSET_OBJLIST): New macro.
19650 (fontset_find_font): Update font-object list of the fontset.
19651 (free_realized_fontset): New function.
19652 (free_face_fontset): Call free_realized_fontset.
19653 (Ffont_info): Call font_close_object only when enable_font_backend
19654 is set.
19655
19656 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
19657 [HAVE_NTGUI]: Include w32term.h.
19658 [MAC_OS]: Include macterm.ch.
19659 (font_otf_ValueRecord): Use make_number.
19660 (font_finish_cache): Fix handling of reference count.
19661 (font_clear_cache): Update num_fonts.
19662 (font_open_entity): Update smallest_char_width and
19663 smallest_font_height of the frame.
19664 (font_close_object): Update num_fonts.
19665 (Fclear_font_cache): Fix finding the target cache data.
19666
196672008-02-16 Glenn Morris <rgm@gnu.org>
19668
19669 * fontset.c (Finternal_char_font): Fix compilation warning.
19670
196712008-02-16 Eli Zaretskii <eliz@gnu.org>
19672
19673 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
19674 instead of char arrays. Enlarge the size of array passed to
19675 get_token_information.
19676
19677 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
19678 warnings.
19679
196802008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
19681
19682 * .gdbinit: Don't set `args', it breaks gdb --args.
19683
196842008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
19685
19686 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
19687 within a narrowed buffer.
19688
196892008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
19690
19691 * coding.c (decode_coding_object, encode_coding_object):
19692 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
19693
196942008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
19695
19696 * coding.c (coding_set_destination): Use BEG_BYTE rather than
19697 hardcoding 1.
19698 (detect_coding_system):
19699 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
19700 (string_char_to_byte, string_byte_to_char, insert_from_gap):
19701 * insdel.c (insert_from_gap):
19702 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
19703 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
19704 (string_to_multibyte):
19705 * character.c (chars_in_text, multibyte_chars_in_text):
19706 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
19707
19708 * character.h (FETCH_STRING_CHAR_ADVANCE)
19709 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
19710 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
19711 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
19712
19713 * casefiddle.c (casify_region): Only call after-change and composition
19714 functions on the part of the region that was changed.
19715
19716 * keyboard.c (read_avail_input):
19717 * frame.c (Fdelete_frame): Call Fdelete_terminal.
19718
197192008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
19720
19721 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
19722 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
19723
197242008-02-11 Juanma Barranquero <lekktu@gmail.com>
19725
19726 * w32menu.c (push_submenu_start, push_submenu_end)
19727 (push_left_right_boundary, push_menu_pane, push_menu_item):
19728 * keyboard.c (read_key_sequence): Don't pass args with side effects
19729 to AREF, it fails when compiling with -DENABLE_CHECKING.
19730
197312008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
19732
19733 * Makefile.in (${lispsource}international/charprop.el):
19734 Delete this target.
19735
19736 * search.c (boyer_moore): Fix incorrect synching of the trunk and
19737 emacs-unicode-2.
19738
197392008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
19740
19741 * terminal.c (Fdelete_terminal): Clean up the `force' path.
19742
197432008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
19744
19745 * frame.c (Qnoelisp): New symbol.
19746 (syms_of_frame): Initialize it.
19747 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
19748 harmless Elisp code, from a strong `force' from x_connection_closed.
19749 * frame.h (Qnoelisp): Declare.
19750 * xterm.c (x_connection_closed): Pass `noelisp'.
19751
19752 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
19753 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
19754 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
19755 rather than `int' for the type of `type'.
19756
197572008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
19758
19759 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
19760
19761 * Makefile.in (GNUC): Remove support for gcc-1.x.
19762
197632008-02-10 Richard Stallman <rms@gnu.org>
19764
19765 * lisp.h (ASET): Use AREF, not ASLOT.
19766
197672008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
19768
19769 * lisp.h (ASET): Check bounds.
19770
197712008-02-10 Glenn Morris <rgm@gnu.org>
19772
19773 * buffer.c (mode-name): Doc fix.
19774
197752008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
19776
19777 * Makefile.in:
19778 * emacs.c:
19779 * gmalloc.c:
19780 * keyboard.c:
19781 * lisp.h:
19782 * m/ibm370aix.h:
19783 * process.c:
19784 * regex.c:
19785 * s/hpux.h:
19786 * sysdep.c:
19787 * sysselect.h:
19788 * systty.h:
19789 * unexec.c:
19790 * w32term.c:
19791 * xsmfns.c:
19792 * xterm.c: Remove code that deals with obsolete variables.
19793
19794 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
19795
19796 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
19797 nothing else needs it anymore.
19798
197992008-02-09 Eli Zaretskii <eliz@gnu.org>
19800
19801 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
19802 instead of unibyte_char_to_multibyte.
19803
198042008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
19805
19806 * s/gnu-linux.h: Remove commented out code.
19807
19808 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
19809
19810 * Makefile.in: Update what RMS says about using autoconf.
19811 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
19812 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
19813 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
19814 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
19815
198162008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
19817
19818 * keymap.c (Fkey_description): Move side effect outside of macro call.
19819
19820 * xfaces.c (Finternal_make_lisp_face):
19821 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
19822
19823 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
19824 (syms_of_fontset): Use ASET.
19825
19826 * fns.c (concat): Move side effect outside of macro call.
19827 (hash_clear): Use ASET.
19828
198292008-02-08 Richard Stallman <rms@gnu.org>
19830
19831 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
19832 If FORCE, and frame has a surrogate minibuffer for another frame,
19833 delete the other frame first.
19834
198352008-02-07 Timo Savola <timo.savola@iki.fi>
19836
19837 * xterm.c (x_detect_focus_change): Handle embed client message.
19838 (handle_one_xevent): Ditto.
19839 (handle_one_xevent): If embedded and we get a button press/release,
19840 request focus.
19841 (xembed_set_info, xembed_send_message): New functions.
19842 (x_make_frame_visible): Call xembed_set_info if embedded.
19843 (x_make_frame_invisible): Call xembed_set_info if embedded.
19844 (x_term_init): Initialize Xatom_XEMBED.
19845 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
19846 (x_iconify_frame): Ditto.
19847
19848 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
19849 (enum xembed_info, enum xembed_message, enum xembed_focus)
19850 (enum xembed_modifier, enum xembed_accelerator): New.
19851 (xembed_set_info, xembed_send_message): Declare.
19852 (FRAME_X_EMBEDDED_P): New.
19853
19854 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
19855 gtk_plug_new.
19856
19857 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
19858 window ID of a frame.
19859 (x_window): Reparent frame if embedded.
19860 (Fx_create_frame): Don't set border width if embedded.
19861
19862 * emacs.c (USAGE3): Add --parent-id.
19863 (standard_args): Ditto.
19864
198652008-02-07 Jan Djärv <jan.h.d@swipnet.se>
19866
19867 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
19868
198692008-02-07 Jim Meyering <meyering@redhat.com>
19870
19871 Use "do...while (0)", not "if (1)...else" in macro definitions.
19872 The latter provokes a warning from gcc about the empty else, when
19873 followed by ";". Also, without that trailing semicolon, it would
19874 silently swallow up any following statement.
19875 * syntax.h (SETUP_SYNTAX_TABLE)
19876 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
19877 * buffer.h (DECODE_POSITION): Likewise.
19878 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
19879 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
19880 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
19881 (FETCH_CHAR_ADVANCE): Likewise.
19882 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
19883
198842008-02-07 Jim Meyering <meyering@redhat.com>
19885
19886 * lread.c [lint]: Don't include <sys/inode.h>.
19887
198882008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
19889
19890 * xselect.c (x_handle_dnd_message):
19891 * xmenu.c (digest_single_submenu, xmenu_show):
19892 * xdisp.c (with_echo_area_buffer_unwind_data)
19893 (format_mode_line_unwind_data, unwind_format_mode_line)
19894 (display_menu_bar):
19895 * eval.c (Ffetch_bytecode):
19896 * doc.c (store_function_docstring):
19897 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
19898 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
19899 * buffer.c (add_overlay_mod_hooklist): Use ASET.
19900
199012008-02-07 Kenichi Handa <handa@m17n.org>
19902
19903 * ftxfont.c (ftxfont_open): Don't set
19904 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
19905
19906 * ftfont.c (ftfont_open): Fix previous change.
19907
199082008-02-06 Jason Rumney <jasonr@gnu.org>
19909
19910 * w32font.c (w32font_text_extents): Fill in lbearing metric.
19911 Use cached metrics for ASCII characters.
19912 (w32font_open_internal): Don't set font's owning_frame.
19913 Cache metrics for ASCII characters.
19914
19915 * w32font.h (struct w32font_info): Add ascii_metrics.
19916 Remove owning_frame.
19917
199182008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
19919
19920 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
19921 to negative value.
19922
19923 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
19924
19925 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
19926
19927 * charset.c (syms_of_charset): Set QCtest and Qeq.
19928
199292008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
19930
19931 * process.c (Fstart_process):
19932 * callproc.c (Fcall_process): Handle the case where
19933 Funhandled_file_name_directory returns nil.
19934
19935 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
19936 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
19937 * font.c (check_gstring): Use them and AREF to access the vector before
19938 we know it's really a gstring.
19939 (Ffont_shape_text): Fix typo.
46e722a9 19940 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
19941
19942 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
19943 Declare.
19944
19945 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
19946
199472008-02-05 Jason Rumney <jasonr@gnu.org>
19948
19949 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
19950 Set smallest_font_height and smallest_char_width in display info.
19951
199522008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
19953
19954 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
19955
199562008-02-05 Miles Bader <miles@gnu.org>
19957
19958 * xfaces.c (get_lface_attributes, merge_named_face)
19959 (lookup_named_face, lookup_derived_face, realize_named_face):
19960 Revert 2008-02-01 change by cyd@stupidchicken.com.
19961
199622008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
19963
19964 * fontset.c (Ffontset_info): Handle the case of inhibitting the
19965 fallback fonts.
19966 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
19967
199682008-02-04 Jason Rumney <jasonr@gnu.org>
19969
19970 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
19971 set full_name.
19972 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
19973
199742008-02-03 Jason Rumney <jasonr@gnu.org>
19975
19976 * makefile.w32-in (OBJ1): Include font.o here.
19977 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
19978
199792008-02-02 Jason Rumney <jasonr@gnu.org>
19980
19981 * makefile.w32-in (temacs): Bump EMHEAP to 21.
19982
199832008-02-01 Jason Rumney <jasonr@gnu.org>
19984
19985 * s/cygwin.h: Define VIRT_ADDR_VARIES.
19986
19987 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
19988
199892008-02-01 Andreas Schwab <schwab@suse.de>
19990
19991 * Makefile.in (shortlisp, lisp): Update for rename of
19992 ../lisp/language/myanmar.el.
19993
199942008-02-01 Chong Yidong <cyd@stupidchicken.com>
19995
19996 * xfaces.c (get_lface_attributes): Delete function.
19997 (merge_named_face, lookup_named_face, lookup_derived_face)
19998 (realize_named_face): Call lface_from_face_name directly, and use
19999 the fact that merge_face_vectors does not alter its FROM argument.
20000
200012008-02-01 Jason Rumney <jasonr@gnu.org>
20002
20003 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
20004 input in the default locale. Handle non-Unicode multibyte input.
20005
200062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20007
20008 * fontset.c (reorder_font_vector): Exclude nil elements from the
20009 font group. Don't try multiple fonts.
20010 (fontset_font): Adjust for the above change.
20011 (Finternal_char_font): Return nil if the found font doesn't
20012 contain the character ch.
20013
20014 * Makefile.in (lisp, shortlisp): Add cham.el.
20015
200162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20017
20018 * font.h (FONTP): Make it return 1 also for a font-object.
20019
20020 * .gdbinit (xfontset): New function.
20021
20022 * font.c (font_find_for_lface): Check if the character C is
20023 supported or not only for the first font.
20024
20025 * fontset.c (reorder_font_vector): Fix typo.
20026 (fontset_find_font): Don't add a font-spec specifying a script.
20027 Use 0 (not Qt) for the indication of empty font-group. Change the
20028 format of RFONT-DEF. Return Qt if no font in the font-group
20029 support the character.
20030 (fontset_font): Adjust for the above change. If no font was
20031 found the character, remember that.
20032 (face_for_char): Adjust for the change of RFONT-DEF.
20033 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
20034 no font for the target.
20035 (Finternal_char_font): Adjust for the change of RFONT-DEF.
20036
200372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20038
20039 * font.c (font_load_for_face): Handle the case that the font in
20040 face->lface is a string.
20041
200422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20043
20044 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
20045
200462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20047
20048 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
20049 Fix previous change. If the frame is not on a window system,
20050 signal an error.
20051
200522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20053
20054 * coding.c (decode_coding_object, encode_coding_object): Adjust
20055 marker positions after conversion.
20056
20057 * lisp.h (struct Lisp_Marker): New member need_adjustment.
20058
200592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20060
20061 * font.c (font_find_for_lface): Fix the handling of the return
20062 value of font_has_char.
20063 (Ffont_shape_text): Fix previous change.
20064
20065 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
20066 (fontset_ref_and_range): Delete it.
20067 (fontset_find_font): Call char_table_ref_and_range instead of
20068 FONTSET_REF_AND_RANGE.
20069 (make_fontset): Don't setup font groups of Latin here.
20070 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
20071 (new_fontset_from_font): Make the specified font the default for
20072 all Latin characters.
20073
200742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20075
20076 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
20077 is on a window system before accessing the fontset of the frame.
20078
200792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20080
20081 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
20082
20083 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
20084 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
20085
20086 * font.c (Ffont_shape_text): If the font driver doesn't have a
20087 shaper function, make zero-width glyphs to have at least one-pixel
20088 width. Fix setting of `to' field of glyphs.
20089
200902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20091
20092 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
20093 glyphs.
20094
20095 * font.h (struct font_driver): Improve docstring of member `shape'.
20096
200972008-02-01 Kenichi Handa <handa@m17n.org>
20098
20099 * composite.c (syms_of_composite): Fix docstring of
20100 auto-composition-function.
20101
20102 * font.h (LGLYPH_SIZE): New macro.
20103
20104 * font.c (Ffont_fill_gstring): Stop filling when a character not
20105 supported by the font is found.
20106 (Ffont_shape_text): When a shape callback function returns nil,
20107 try at most two more times with larger gstring.
20108 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
20109
20110 * xdisp.c (handle_auto_composed_prop): Change the argument to
20111 auto-composition-function.
20112
20113 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
20114 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
20115 Lispy glyph and store it in the lgstring.
20116
20117 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
20118
20119 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
20120
201212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20122
20123 * font.c (Ffont_shape_text): Avoid unnecessary composition.
20124
20125 * fontset.c (Vfont_encoding_charset_alist): New variable.
20126 (syms_of_fontset): DEFVAR it.
20127 (reorder_font_vector, fontset_find_font): Optimize for the case of
20128 no need of reordering.
20129 (face_for_char): Map the charset property by
20130 Vfont_encoding_charset_alist.
20131
201322008-02-01 Jason Rumney <jasonr@gnu.org>
20133
20134 * w32font.c (logfonts_match): Don't check adstyle here.
20135 (font_matches_spec): Check here against physical font instead.
20136 (add_font_entity_to_list): Avoid some substitutions.
20137
20138 * font.c (font_parse_fcname): Default weight and slant to normal.
20139 (font_score): Prefer normal fonts if weight or slant unspecified.
20140 (font_score) [WINDOWSNT]: Scale weight difference down to closer
20141 match freetype scores.
20142
201432008-02-01 Jason Rumney <jasonr@gnu.org>
20144
20145 * w32font.c (w32font_text_extents): Don't use the frame stored in the
20146 font, as it may have been deleted.
20147 (w32_enumfont_pattern_entity): Map generic family to adstyle using
20148 most common hyphenless variation.
20149 (logfonts_match): Check generic family.
20150 (font_matches_spec): Don't check generic family here.
20151 (fill_in_logfont): Set generic family based on adstyle.
20152
20153 * w32font.h (w32font_get_cache): Update declaration.
20154
201552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20156
20157 * ftfont.c (ftfont_get_cache): Adjust the argument type.
20158
20159 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
20160 If none of the new drivers are available, call font_update_drivers
20161 with the old drivers.
20162
20163 * w32font.c (w32font_get_cache): Adjust the argument type.
20164
20165 * xfont.c (xfont_get_cache): Adjust the argument type.
20166
20167 * font.h (struct font_driver): Change argument type of get_cache.
20168
20169 * xftfont.c (xftfont_start_for_frame): Delete prototype.
20170
20171 * font.c (Ffont_get): Fix arguments to Fassoc.
20172 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
20173 (font_clear_cache): New function.
20174 (font_list_entities, font_matching_entity): Use font_get_cache.
20175 (font_update_drivers): Call font_clear_cache when finishing a driver.
20176
20177 * fontset.c (fontset_find_font): Fix previous change.
20178
201792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20180
20181 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
20182 dpyinfo->font_table.
20183 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
20184 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
20185
20186 * font.c (font_at): Handle the case that the arg C is negative.
20187 Handle the unibyte case.
20188 (Ffont_at): Call font_at with the arg C -1.
20189
20190 * xdisp.c (handle_auto_composed_prop): Don't get a character at
20191 the position here, and call font_at with the arg C -1.
20192 Don't check the range of the existing composition at the point.
20193
201942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20195
20196 * fontset.c (fontset_add): New args charset_id and family.
20197 Change caller.
20198 (load_font_get_repertory, fontset_find_font): Assume that
20199 font_spec is always a font-spec object.
20200 (Fset_fontset_font): Always store a font-spec object in a fontset.
20201
20202 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
20203 instead of get_property_and_range.
20204
202052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20206
20207 * xftfont.c (struct xftfont_info): Delete the member ft_face.
20208 (xftfont_open): Don't keep locking face.
20209 (xftfont_close): Don't unlock face.
20210 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
20211
20212 * fontset.c (fontset_find_font): Don't prefer a font of
20213 supplementary charset.
20214
202152008-02-01 Kenichi Handa <handa@m17n.org>
20216
20217 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
20218 script, langsys_tag to langsys, new member script.
20219 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 20220 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
20221 listing to the script specified in that property. Fix arg to
20222 OTF_check_features.
20223
202242008-02-01 Jason Rumney <jasonr@gnu.org>
20225
20226 * w32font.h: New file.
20227
20228 * w32font.c: Include it.
20229 (struct w32font_info): Add owning_frame field. Move to w32font.h.
20230 (w32font_open): Set owning_frame.
20231 (w32font_text_extents): Use owning_frame.
20232 (struct font_callback_data): Add opentype_only field.
20233 (add_font_entity_to_list): Use it to filter fonts.
20234 Don't check against full name.
20235 (w32font_list_internal): New function.
20236 (w32font_list): Use it.
20237 (w32font_match_internal): New function.
20238 (w32font_match): Use it.
20239 (w32font_open_internal): New function.
20240 (w32font_open): Use it.
20241 (w32font_get_cache, w32font_close, w32font_has_char)
20242 (w32font_encode_char, w32font_text_extents, w32font_draw):
20243 Make non-static.
20244
20245 * makefile.w32-in (w32font.o): Depend on w32font.h.
20246
202472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20248
20249 * charset.c (Fdefine_charset_internal): Record a supplementary
20250 charset at the tail of Vcharset_order_list.
20251
20252 * font.c (Ffont_shape_text): Fix the return value.
20253
20254 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
20255
20256 * xdisp.c (handle_auto_composed_prop): Fix previous change.
20257
202582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20259
20260 * ftfont.c (struct OpenTypeSpec): New struct.
20261 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
20262 (ftfont_get_open_type_spec): New function.
20263 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
20264
20265 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
20266
202672008-02-01 Jason Rumney <jasonr@gnu.org>
20268
20269 * w32font.c (add_font_entity_to_list): Compare only the beginning
20270 of full name.
20271
202722008-02-01 Kenichi Handa <handa@m17n.org>
20273
20274 * xdisp.c (handle_auto_composed_prop): Simplify the code.
20275 Never return HANDLED_RECOMPUTE_PROPS.
20276
202772008-02-01 Kenichi Handa <handa@m17n.org>
20278
20279 * font.c (font_gstring_produce): Delete it.
20280
20281 * composite.h (COMPOSITION_METHOD):
20282 Handle COMPOSITION_WITH_GLYPH_STRING.
20283
202842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20285
20286 * xfont.c (Qx): Delete.
20287 (syms_of_xfont): Don't initialize Qx.
20288
20289 * composite.h (enum composition_method):
20290 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
20291
202922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20293
20294 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
20295 (choose_face_font): Accept new form of font-spec.
20296
20297 * frame.h (font_driver_list): Declare it unconditionally.
20298 (struct frame): Define members font_driver_list and font_data_list
20299 unconditionally.
20300
20301 * fontset.c: Include "font.h" unconditionally.
20302 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
20303 (Fset_fontset_font): Accept a font-spec object.
20304
20305 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
20306 PIXEL_SIZE part a wild card.
20307
20308 * dispextern.h (struct glyph_string): Define members clip and
20309 num_clips unconditionally.
20310 (struct face): Define members font_info and extra unconditionally.
20311
20312 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
20313 ftfont_info only when HAVE_LIBOTF is defined.
20314
203152008-02-01 Andreas Schwab <schwab@suse.de>
20316
20317 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
20318 and end.
20319
203202008-02-01 Jason Rumney <jasonr@gnu.org>
20321
20322 * w32font.c (w32font_driver): Add new fields.
20323
203242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20325
20326 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
20327 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
20328 (LIBES): Add @M17N_FLT_CFLAGS@.
20329
20330 * composite.c (compose_text): Don't treat the new style
20331 composition specially.
20332
20333 * emacs.c (main): Call syms_of_font unconditionally.
20334
20335 * font.h (FONT_ENTITY_NOT_LOADABLE)
20336 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
20337 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
20338 (struct font_driver): New member shape.
20339 (font_registry_charsets): Extern it.
20340 (font_find_for_lface, font_prepare_composition): Adjust prototype.
20341 (font_otf_capability, font_drive_otf): Delete their externs.
20342
20343 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
20344 (font_charset_alist, font_registry_charsets): Move from xfont.c
20345 and rename.
20346 (font_prop_validate_otf): New function.
20347 (font_property_table): Register it for QCotf.
20348 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
20349 (font_drive_otf): Delete.
20350 (font_prepare_composition): New arg F. Adjust for the change of
20351 lispy gstring.
20352 (font_find_for_lface): New arg C.
20353 (font_load_for_face): Adjust for the change of font_find_for_lface.
20354 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
20355 lispy gstring.
20356 (Ffont_shape_text): New function.
20357 (Fopen_font): If the font size is not given, use 12-pixel.
20358 (Ffont_at): New arg STRING.
40b1a3a9 20359 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
20360 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
20361 conditionally.
20362
20363 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
20364 fonts of the same font-spec. Change the format of RFONT-DEF.
20365 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
20366 Adjust for the change of RFONT-DEF.
20367 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
20368
20369 * ftfont.h: New file.
20370
20371 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
20372 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
20373 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
20374 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
20375 font_otf_capability and font_drive_otf, set ftfont_shape.
20376 (ftfont_list): Adjust for the change of :otf property value.
20377 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
20378 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
20379 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
20380 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
20381 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
20382 (otf_gstring, gstring, m17n_flt_initialized): New variables.
20383
20384 * w32term.c (x_draw_composite_glyph_string_foreground):
20385 Adjust for the change of lispy gstring.
20386
20387 * xdisp.c (handle_composition_prop): Adjust for the change of
20388 lispy gstring. Call a function for auto-composition with the
20389 third arg it->window.
20390 (fill_composite_glyph_string): Adjust for the change of lispy string.
20391 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
20392
20393 * xfaces.c (set_font_frame_param): Adjust for the change of
20394 font_find_for_lface.
20395
20396 * xfont.c (x_font_charset_alist): Move to font.c and rename.
20397 (xfont_registry_charsets): Likewise. Change caller.
20398 (syms_of_xfont): Don't handle x_font_charset_alist.
20399
20400 * xftfont.c: Include "ftfont.h".
20401 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
20402 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
20403 (xftfont_close) [HAVE_LIBOTF]: Close otf.
20404 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
20405 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
20406 Set xftfont_driver.shape to xftfont_shape.
20407
20408 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
20409 the change of lispy gstring.
20410
204112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20412
20413 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
20414
204152008-02-01 Jason Rumney <jasonr@gnu.org>
20416
20417 * w32font.c (w32font_draw): Fill background manually.
20418
204192008-02-01 Jason Rumney <jasonr@gnu.org>
20420
20421 * font.c (Qfontp): Remove unused symbol.
20422 (QCantialias): New symbol.
20423 (syms_of_font): Define it.
20424 (font_property_table): Set a validator for QCantialias.
20425
20426 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
20427 Define if not already.
20428 (QCfamily): Share with xfaces.c.
20429 (Qstandard, Qsubpixel, Qnatural): New symbols.
20430 (syms_of_w32font): Define them. Don't define QCfamily here.
20431 (w32_antialias_type, lispy_antialias_type): New functions.
20432 (w32_enumfont_pattern_entity): New arg requested_font.
20433 Set antialias parameter if non-default was requested.
20434 (fill_in_logfont): Fill in lfQuality if :antialias specified.
20435
204362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20437
20438 * lread.c (read1): Undo the previous change.
20439
204402008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
20441
20442 * frame.c (Fdelete_frame): Call font_update_drivers only when
20443 USE_FONT_BACKEND is defined.
20444
204452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20446
20447 * font.h (struct font_bitmap): New member bits_per_pixel.
20448 (struct font_driver): New members start_for_frame and end_for_frame.
20449 (struct font_data_list): New struct.
20450 (font_put_frame_data, font_get_frame_data): Extern them.
20451
20452 * frame.h (struct frame): New member font_data_list.
20453
20454 * font.c (font_update_drivers): Call driver->start_for_frame and
20455 driver->end_for_frame at proper timings.
20456 (font_put_frame_data, font_get_frame_data): New functions.
20457 (Ffont_spec): Add usage in the docstring.
20458
20459 * frame.c (make_frame): Initialize f->font_data_list to NULL.
20460 (Fdelete_frame): Call font_update_drivers.
20461
20462 * xftfont.c (struct xftface_info): Delete the member xft_draw.
20463 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
20464 (xftfont_get_xft_draw): New function.
20465 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
20466 (xftfont_end_for_frame): New function.
20467 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
20468
20469 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
20470 Change argument. Cache GCs in the per-frame data.
20471 (struct ftxfont_frame_data): New struct.
20472 (ftxfont_draw_bitmap): New arg gc_fore and flush.
20473 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
20474 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
20475 (ftxfont_end_for_frame): New function.
20476 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
20477
20478 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
20479
204802008-02-01 Kenichi Handa <handa@m17n.org>
20481
20482 * xselect.c (Vselection_coding_system)
20483 (Vnext_selection_coding_system): Delete them.
20484 (syms_of_xselect): Don't declare selection-coding-system and
20485 next-selection-coding-system. They are declared in select.el.
20486
204872008-02-01 Jason Rumney <jasonr@gnu.org>
20488
20489 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
20490
20491 * w32fns.c: Include imm.h.
20492 (get_composition_string_fn, get_ime_context_fn): New optional
20493 system functions.
20494 (globals_of_w32fns): Load them from imm32.dll.
20495 (ignore_ime_char): New flag.
20496 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
20497 WM_IME_ENDCOMPOSITION messages.
20498
20499 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
20500 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
20501
205022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20503
20504 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
20505 (READCHAR_REPORT_MULTIBYTE): New macro.
20506 (readchar): New 2nd arg MULTIBYTE.
20507 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
20508 Make symbol's name multibyte according to the multibyteness of the
20509 source.
20510
205112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20512
20513 * xfaces.c (face_for_overlay_string): Call lookup_face with
20514 correct arguments (fix of synching with the trunk).
20515
205162008-02-01 Kenichi Handa <handa@m17n.org>
20517
20518 * font.c (font_prop_validate_symbol, font_prop_validate_style)
20519 (font_prop_validate_non_neg, font_prop_validate_spacing):
20520 Delete argument prop_index.
20521 (font_property_table): Change arguments to validater. Change Callers.
20522 (font_lispy_object): Delete.
20523 (font_at): Use font_find_object instead fo font_lispy_object.
20524
205252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20526
20527 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
20528 and file names.
20529
205302008-02-01 Jason Rumney <jasonr@gnu.org>
20531
20532 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
20533 (font_matches_spec): Remove debug output.
20534 (add_font_entity_to_list): Avoid using substituted fonts.
20535
205362008-02-01 Jason Rumney <jasonr@gnu.org>
20537
20538 * doc.c (Fsnarf_documentation):
20539 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
20540
205412008-02-01 Miles Bader <miles@gnu.org>
20542
20543 * dispextern.h (struct glyph_row): Only define "clip" field if
20544 HAVE_WINDOW_SYSTEM is defined.
20545
205462008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
20547
20548 Fix up multi-tty merge.
20549
20550 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
20551 and indentation.
20552
20553 * xfaces.c (free_realized_face, clear_face_gcs):
20554 Include font_done_for_face in the input_blocked section, just in case.
20555
20556 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
20557 (get_char_face_and_encoding): Undo last change and remove the *other*
20558 duplicate definition (i.e. keep the one that's better scoped and that
20559 includes code for the font-backend).
20560
20561 * terminal.c (create_terminal): Default keyboard_coding to
20562 `no-conversion' and terminal_coding to `undecided'.
20563
20564 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
20565
20566 * fontset.c (free_realized_fontsets): Check that the table entry does
20567 contain a fontset before trying to compare it to `base'.
20568
20569 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
20570 syms_of_charset, and syms_of_coding earlier because init_window_once
20571 now needs Vcoding_system_hash_table to be setup.
20572
20573 * coding.h (default_buffer_file_coding): Remove.
20574
20575 * coding.c (default_buffer_file_coding): Remove.
20576 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
20577 than ->symbol, and use the terminal-local coding system.
20578 (syms_of_coding): Don't setup the coding-systems that are not
20579 terminal-local.
20580 (Fdefine_coding_system_internal): Use XCAR/XCDR.
20581
20582 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
20583 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
20584
20585 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
20586 in chartab.c and were re-added here by mistake.
20587 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
20588
20589 * doc.c (Fsnarf_documentation):
20590 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
20591 src to etc.
20592
20593 * ChangeLog.10: Add mistakenly removed entry.
20594
205952008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
20596
20597 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
20598
205992008-02-01 Miles Bader <miles@gnu.org>
20600
20601 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
20602 Add extra args to FACE_FOR_CHAR.
20603
206042008-02-01 Kenichi Handa <handa@m17n.org>
20605
20606 * keymap.c (where_is_internal_1): If key is a cons, store the copy
20607 in sequence.
20608
20609 * chartab.c (map_sub_char_table, map_char_table): If the range
20610 contains just one character, call the function with that character
20611 even if the depth is not 3.
20612
206132008-02-01 Jason Rumney <jasonr@gnu.org>
20614
20615 * w32font.c (w32font_text_extents): Calculate metrics for the
20616 whole string.
20617
206182008-02-01 Jason Rumney <jasonr@gnu.org>
20619
20620 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
20621
206222008-02-01 Jason Rumney <jasonr@gnu.org>
20623
20624 * w32term.c (x_set_glyph_string_clipping): Use
20625 get_glyph_string_clip_rects.
20626 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
20627 Adjust for the change of struct glyph_string.
20628
20629 * w32font.c (w32font_draw): Do clipping here.
20630
206312008-02-01 Kenichi Handa <handa@m17n.org>
20632
20633 * xftfont.c (xftfont_draw): Adjust for the change of struct
20634 glyph_string.
20635
20636 * xterm.c (x_set_glyph_string_clipping): Use
20637 get_glyph_string_clip_rects.
20638 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
20639 Adjust for the change of struct glyph_string.
20640
20641 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
20642 the resulting clip(s}.
20643 (expose_overlaps): Add arg r. Change callers. Set it to
20644 row->clip temporarily.
20645 (expose_window): Redraw rows overlapping the exposed area.
20646
20647 * dispextern.h (struct glyph_row): New member clip.
20648 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
20649 clip_height, new member clip, and num_clips.
20650
206512008-02-01 Kenichi Handa <handa@m17n.org>
20652
20653 * data.c (Fchar_or_string_p): Fix docstring.
20654
206552008-02-01 Kenichi Handa <handa@m17n.org>
20656
20657 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
20658 create a temporary XftDraw object.
20659
206602008-02-01 Kenichi Handa <handa@m17n.org>
20661
20662 * font.c (Ffontp): Fix docstring.
20663
20664 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
20665 strong evidence of ISO-2022.
20666
206672008-02-01 Kenichi Handa <handa@m17n.org>
20668
20669 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
20670 SYNTAX_ENTRY_FOLLOW_PARENT.
20671
206722008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
20673
20674 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
20675 its type.
20676 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
20677 Update to the new type of weak_hash_tables and next_weak.
20678
20679 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
20680 a plain C pointer to Lisp_Hash_Table.
20681
20682 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
20683 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
20684 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
20685 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
20686 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
20687 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
20688 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
20689 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
20690 (GC_EQ): Remove since they've been identical to their non-GC_
20691 alter-egos ever since the markbit was eradicated.
20692
20693 * alloc.c:
20694 * buffer.c:
20695 * buffer.h:
20696 * data.c:
20697 * fileio.c:
20698 * filelock.c:
20699 * fns.c:
20700 * frame.h:
20701 * lisp.h:
20702 * macterm.c:
20703 * print.c:
20704 * process.c:
20705 * w32fns.c:
20706 * w32menu.c:
20707 * w32term.c:
20708 * xfns.c:
20709 * xmenu.c:
20710 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
20711
207122008-02-01 Kenichi Handa <handa@m17n.org>
20713
20714 * chartab.c (map_sub_char_table): Make it work for the top-level
20715 char-table. Fix handling of parent char-table.
20716 (map_char_table): Adjust for the above change.
20717
207182008-02-01 Jason Rumney <jasonr@gnu.org>
20719
20720 * w32font.c (Qgdi): Rename from Qw32.
20721
207222008-02-01 Jason Rumney <jasonr@gnu.org>
20723
20724 * w32bdf.c (get_quoted_string): Make function static.
20725
207262008-02-01 Kenichi Handa <handa@m17n.org>
20727
20728 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
20729 bigger ascent and descent than those of the font, use them as
20730 font's ascent and descent.
20731
207322008-02-01 Kenichi Handa <handa@m17n.org>
20733
20734 * Makefile.in (${lispsource}international/charprop.el): Move this
20735 target within "#ifdef HAVE_UNIDATA" and "#endif".
20736
207372008-02-01 Kenichi Handa <handa@m17n.org>
20738
20739 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
20740 (shortlisp): Add ../lisp/language/tai-viet.el.
20741
207422008-02-01 Ulrich Mueller <ulm@gentoo.org>
20743
20744 * Makefile.in (${lispsource}international/charprop.el): Depend on
20745 temacs${EXEEXT}.
20746
207472008-02-01 Jason Rumney <jasonr@gnu.org>
20748
20749 * w32font.c (w32font_close): Delete the GDI font object.
20750
20751 * w32menu.c: Include character.h.
20752
20753 * w32proc.c: Likewise.
20754
20755 * w32select.c: Likewise.
20756
20757 * makefile.w32-in (w32proc.o): Depend on character.h.
20758
207592008-02-01 Jason Rumney <jasonr@gnu.org>
20760
20761 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
20762
20763 * w32menu.c (syms_of_w32menu): Likewise.
20764
20765 * w32proc.c (syms_of_ntproc): Likewise.
20766
20767 * w32select.c (syms_of_w32select): Likewise.
20768
20769 * w32term.c (syms_of_w32term): Likewise.
20770
207712008-02-01 Jason Rumney <jasonr@gnu.org>
20772
20773 * w32font.c (w32font_draw): Delete brush after using it.
20774
207752008-02-01 Jason Rumney <jasonr@gnu.org>
20776
20777 * w32font.c (w32font_open): Don't set font_idx.
20778 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
20779 to font settings.
20780 (w32font_draw): Fill background explicitly.
20781
207822008-02-01 Jason Rumney <jasonr@gnu.org>
20783
20784 * w32term.c (w32_initialize): Don't call w32font_initialize.
20785
20786 * w32font.c (w32font_info): Remove subranges.
20787 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
20788 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
20789 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
20790 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
20791 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
20792 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
20793 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
20794 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
20795 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
20796 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
20797 New symbols.
20798 (font_callback_data): New struct.
20799 (w32font_list, w32font_match): Use it.
20800 (w32font_open): Don't populate subranges.
20801 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
20802 (w32font_encode_char): Always return unicode code-point as-is.
20803 (w32font_text_extents): Supply a transformation matrix to
20804 GetGlyphOutline. Never look up by glyph index. Avoid looping
20805 twice. Use unicode version of GetTexExtentPoint32 instead of
20806 glyph index version.
20807 (set_fonts_frame): Remove.
20808 (w32_enumfont_pattern_entity): Add frame parameter, use it to
20809 set frame parameter. Use backward compatible fake foundries.
20810 Save generic family in extra slot under QCfamily. Make width slot
20811 constant. Save QCspacing value. Save list of scripts instead of
20812 binary subranges.
20813 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
20814 (add_font_entity_to_list): Use font_callback_data struct. Filter
20815 unwanted fonts.
20816 (add_one_font_entity_to_list): Use font_callback_data struct.
20817 (w32_registry): Default to iso10646_1.
20818 (fill_in_logfont): Use dpi from extra slot. Don't bother with
20819 string font registries. Don't fill in font name if it is a generic
20820 family name, fill family instead. Use spacing, family and script
20821 extra info to fill pitch, family and charset fields.
20822 (list_all_matching_fonts): Use font_callback_data struct.
20823 (unicode_range_for_char): Remove.
20824 (font_supported_scripts): New function.
20825 (w32font_initialize): Remove.
20826 (syms_of_w32font): Update which symbols are defined.
20827
208282008-02-01 Jason Rumney <jasonr@gnu.org>
20829
20830 * font.c (font_pixel_size): Reverse assq_no_quit args.
20831
20832 * w32term.h (FONT_WIDTH): Report max width, not average.
20833 (FONT_MAX_WIDTH): Remove.
20834 (FONT_AVG_WIDTH): New macro.
20835
20836 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
20837 redefinition of FONT_WIDTH.
20838
20839 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
20840 (w32_cache_char_metrics): Use FONT_WIDTH.
20841
20842 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
20843
208442008-02-01 Jason Rumney <jasonr@gnu.org>
20845
20846 * w32font.c (w32font_open): Make lfHeight negative.
20847
20848 * w32fns.c (x_default_font_parameter): Use new style font name.
20849 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
20850
208512008-02-01 Jason Rumney <jasonr@gnu.org>
20852
20853 * w32font.c (QCsubranges): New symbol.
20854 (w32font_open, w32font_has_char): Get subranges from subproperty
20855 of extra.
20856 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
20857 (syms_of_w32font): Define :subranges symbol.
20858
20859 * font.c (font_put_extra): Expose externally.
20860
20861 * font.h (font_put_extra): Move declaration from font.c.
20862
20863 * font.c (Ffont_get): Use font driver to determine otf capability.
20864 (adjust_anchor): Check if driver defines anchor_point before using.
20865
20866 * w32font.c (w32font_open): Handle size, height and pixel_size better.
20867 (w32font_draw): Use options.
20868 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
20869 Fix detection of truetype fonts.
20870 (registry_to_w32_charset): Handle charsets other than iso8859-1
20871 expressed as lisp symbols.
20872 (w32_registry): Express charset as lisp symbol.
20873 (fill_in_logfont): Reverse pixel and point height logic.
20874 Don't set width here. Set quality to default.
20875
20876 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
20877 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
20878
20879 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
20880 Remove redundant loop and allocation.
20881
20882 * makefile.w32-in (font.o, w32font.o): New objects.
20883 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
20884 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
20885
20886 * xdisp.c (fill_composite_glyph_string): Make the first arg to
20887 STORE_XCHARB a valid l-value.
20888
20889 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
20890 calculations for non-Truetype fonts.
20891 (x_draw_glyph_string): Sync with xterm.c.
20892 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
20893 Remove redundant code.
20894 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
20895
20896 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
20897 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
20898
20899 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
20900 (x_to_w32_charset, w32_to_x_charset): Expose externally.
20901
20902 * w32font.c: New file for w32 font backend.
20903
209042008-02-01 Kenichi Handa <handa@m17n.org>
20905
20906 * term.c: Don't include "buffer.h" twice.
20907
209082008-02-01 Kenichi Handa <handa@m17n.org>
20909
20910 * character.c (Funibyte_string): New function.
20911 (syms_of_character): Defsubr it.
20912
209132008-02-01 Jason Rumney <jasonr@gnu.org>
20914
20915 * w32term.c [USE_FONT_BACKEND]:
20916 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
20917 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
20918 (x_draw_glyph_string, x_draw_glyph_string_foreground)
20919 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
20920 (x_free_frame_resources): Sync with xterm.c.
20921
209222008-02-01 Andreas Schwab <schwab@suse.de>
20923
20924 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
20925 char-table size.
20926
209272008-02-01 Kenichi Handa <handa@m17n.org>
20928
20929 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
20930
209312008-02-01 Kenichi Handa <handa@m17n.org>
20932
20933 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
20934 font_otf_gpos, add font_drive_otf.
20935
20936 * fontset.c (fontset_find_font): Pay attention to font size
20937 specified for a font.
20938 (reorder_font_vector): Check contents of font_def.
20939
20940 * font.c (struct otf_list): Delete it.
20941 (otf_list): Make it a lisp variable.
20942 (otf_open): Use lispy otf_list.
20943 (generate_otf_features): Rename from parse_gsub_gpos_spec.
20944 (check_otf_features): New function.
20945 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
20946 New functions.
20947 (font_drive_otf): New function merging font_otf_gsub and
20948 font_otf_gpos.
20949 (font_open_for_lface): New arg spec. Change argument order.
20950 (font_load_for_face): Adjust for the change of font_open_for_lface.
20951 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
20952 Ffont_otf_gpos.
20953 (syms_of_font): Staticpro otf_list. Delete defsubr of
20954 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
20955
20956 * xfaces.c (set_font_frame_param): Adjust for the change of
20957 font_open_for_lface.
20958
20959 * font.h (font_open_for_lface): Adjust prototype.
20960 (struct font_driver): Delete members otf_gsub and otf_gpos, add
20961 member otf_drive.
20962 (font_otf_gsub, font_otf_gpos): Delete externs.
20963 (font_drive_otf): Extern it.
20964
209652008-02-01 Kenichi Handa <handa@m17n.org>
20966
20967 * font.c (font_at): If the window W is not on a window system,
20968 return Qnil.
20969
20970 * coding.c (produce_chars, encode_coding): Don't call
20971 insert_from_gap if no characters to produce.
20972
209732008-02-01 Kenichi Handa <handa@m17n.org>
20974
20975 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
20976 Fclear_face_cache.
20977
20978 * xfaces.c (face_for_font): Check also face->font==font->font.font.
20979
209802008-02-01 Miles Bader <miles@gnu.org>
20981
20982 * emacs.c (main): Change default value of `enable_font_backend' to 1.
20983 Parse "--disable-font-backend" option.
20984 (standard_args): Add "--disable-font-backend" option.
20985
209862008-02-01 Kenichi Handa <handa@m17n.org>
20987
20988 * fontset.c (fontset_find_font): New function.
20989 (fontset_font): Use fontset_find_font.
20990 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
20991 Register the specified font for all Latin characters.
20992 (new_fontset_from_font): Register the specified font for all Latin
20993 characters.
20994 (dump_fontset): For a realized fontset, include the base fontset
20995 name in the returned vector.
20996
209972008-02-01 Kenichi Handa <handa@m17n.org>
20998
20999 * character.h (CHAR_STRING): Cast C to unsigned on calling
21000 char_string.
21001
21002 * character.c (char_string): Type of arg C changed to unsigned.
21003 Signal an error if C is an invalid character code.
21004
21005 * editfns.c (general_insert_function, Fchar_to_string):
21006 Use CHARACTERP, not INTEGERP.
21007
210082008-02-01 Kenichi Handa <handa@m17n.org>
21009
21010 * character.h (MIN_MULTIBYTE_LEADING_CODE)
21011 (MAX_MULTIBYTE_LEADING_CODE): New macros.
21012
21013 * regex.c (analyse_first): Fix for multibyte characters in "case
21014 charset:" and "case categoryspec:".
21015
210162008-02-01 Andreas Schwab <schwab@suse.de>
21017
21018 * Makefile.in (LIBES): Move standard libraries to the end.
21019
210202008-02-01 Kenichi Handa <handa@m17n.org>
21021
21022 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
21023 nonzero, don't shrink the buffer nextb.
21024
21025 * buffer.h (struct buffer_text): New member inhibit_shrinking.
21026
21027 * coding.c (coding_alloc_by_making_gap): New arg offset.
21028 (alloc_destination): Call coding_alloc_by_making_gap with the arg
21029 offset.
21030 (decode_coding_iso_2022): Update coding->safe_charsets.
21031 (decode_coding_gap): Temporarily set
21032 current_buffer->text->inhibit_shrinking to 1.
21033
210342008-02-01 Kenichi Handa <handa@m17n.org>
21035
21036 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
21037 indexing into elements of s->cmp and s->char2b.
21038
210392008-02-01 Juanma Barranquero <lekktu@gmail.com>
21040
21041 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
21042
210432008-02-01 Kenichi Handa <handa@m17n.org>
21044
21045 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
21046 target_multibyte instead of multibyte.
21047 (re_match_2_internal): Call bcmp_translate with target_multibyte.
21048 (bcmp_translate): Change the argument name from multibyte to
21049 target_multibyte.
21050
210512008-02-01 Kenichi Handa <handa@m17n.org>
21052
21053 These changes are to compile a regexp into a pattern that can be
21054 used both for multibyte and unibyte targets.
21055
21056 * Makefile.in (search.o): Depend on charset.h.
21057
21058 * character.c (multibyte_char_to_unibyte_safe): New function.
21059
21060 * search.c: Include "charset.h".
21061 (compile_pattern_1): Delete argument multibyte. Don't set
21062 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
21063 (compile_pattern): Don't compare cp->buf.target_multibyte.
21064 Compare cp->buf.charset_unibyte.
21065 (compile_pattern): Set cp->buf.target_multibyte.
21066
21067 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
21068
21069 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
21070
21071 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
21072 multibyte. Change callers.
21073 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
21074 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
21075 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
21076 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
21077 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
21078 (regex_compile): Make the compiled pattern usable both for
21079 multibyte and unibyte targets.
21080 (analyse_first): Make the fastmap usable both for multibyte and
21081 unibyte targets.
21082 (TRANSLATE_VIA_MULTIBYTE): Delete.
21083 (re_match_2_internal): Pay attention to the case that the
21084 multibyteness of bufp and target may be different.
21085
210862008-02-01 Kenichi Handa <handa@m17n.org>
21087
21088 * xdisp.c (x_produce_glyphs): When a font is not found, make the
21089 empty box occupy at least one column width.
21090
210912008-02-01 Miles Bader <miles@gnu.org>
21092
21093 * Makefile.in: Remove redundant HAVE_XFT clause.
21094
210952008-02-01 Kenichi Handa <handa@m17n.org>
21096
21097 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
21098
210992008-02-01 Kenichi Handa <handa@m17n.org>
21100
21101 * fontset.c (Finternal_char_font): Fix for the case of POSITION
21102 being nil.
21103
211042008-02-01 Kenichi Handa <handa@m17n.org>
21105
21106 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
21107
211082008-02-01 Kenichi Handa <handa@m17n.org>
21109
21110 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
21111
211122008-02-01 Kenichi Handa <handa@m17n.org>
21113
21114 * search.c (simple_search): Fix previous change.
21115
211162008-02-01 Kenichi Handa <handa@m17n.org>
21117
21118 * xftfont.c (ftfont_font_format): Extern declaration.
21119
21120 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
21121
21122 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
21123 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
21124
21125 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
21126 (ftfont_font_format): Fix previous change.
21127
21128 * font.h (Ffont_xlfd_name): EXFUN it.
21129
21130 * font.c (font_parse_xlfd): Fix the array size of `f'.
21131 (register_font_driver): Use EQ to compare driver->type.
21132
21133 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
21134 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
21135 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
21136
211372008-02-01 Kenichi Handa <handa@m17n.org>
21138
21139 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
21140 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
21141
211422008-02-01 Kenichi Handa <handa@m17n.org>
21143
21144 * xfont.c (xfont_open): Set font->format.
21145
21146 * xftfont.c (xftfont_open): Set font->format.
21147
21148 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
21149 (ftfont_list): Include FC_FONTFORMAT in FcObject.
21150 (ftfont_open): Set font->format.
21151 (ftfont_font_format): New function.
21152
21153 * font.h (struct font): New member format.
21154
21155 * font.c (Qopentype): New variable.
21156 (syms_of_font): Defsym it.
21157 (Fquery_font): Change the format of the last element of the return
21158 value.
21159
211602008-02-01 Kenichi Handa <handa@m17n.org>
21161
21162 * xfns.c (xic_create_xfontset): Try the default fontset name as a
21163 last resort.
21164
211652008-02-01 Kenichi Handa <handa@m17n.org>
21166
21167 * coding.c (detect_coding_charset): Fix detection of multi-byte
21168 charset.
21169
211702008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
21171
21172 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
21173
211742008-02-01 Kenichi Handa <handa@m17n.org>
21175
21176 * xdisp.c (get_next_display_element): Set it->face_id for the
21177 first component of a composition.
21178 (x_produce_glyphs): Check if the font is changed or not for composition.
21179
211802008-02-01 Kenichi Handa <handa@m17n.org>
21181
21182 * fontset.c (Qlatin): New variable.
21183 (syms_of_fontset): Define it as a lisp symbol.
21184 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
21185
211862008-02-01 Kenichi Handa <handa@m17n.org>
21187
21188 * font.c (font_unparse_fcname): Pay attention to the case that
21189 some of font property is a null string.
21190
211912008-02-01 Kenichi Handa <handa@m17n.org>
21192
21193 * term.c: Include "composite.h".
21194 (encode_terminal_code): Output all components of composition.
21195 Check the size of encode_terminal_src.
21196 (produce_glyphs): For composition, call produce_composite_glyph.
21197 (append_composite_glyph, produce_composite_glyph): New functions.
21198
21199 * xdisp.c (x_produce_glyphs): In handling composition, if a font
21200 is not found, get font_info from the current ascii face.
21201
212022008-02-01 Kenichi Handa <handa@m17n.org>
21203
21204 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
21205 buffer-file-name to Qnil before calling insert_from_buffer.
21206
21207 * font.c (font_unparse_fcname): Pay attention to the case that
21208 foundry is a null string.
21209
212102008-02-01 Kenichi Handa <handa@m17n.org>
21211
21212 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
21213
21214 * font.c (Qunicode_sip): New variable.
21215 (syms_of_font): Declare it as a Lisp symbol.
21216
21217 * font.h (Qunicode_sip): Extern it.
21218
212192008-02-01 Kenichi Handa <handa@m17n.org>
21220
21221 * composite.c (get_composition_id): Pay attention to TAB component.
21222
21223 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
21224 TAB. Adjust for the change of s->char2b which always points to
21225 the first element of allocated memory.
21226
21227 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
21228
21229 * xdisp.c (handle_composition_prop): Set it->c to the first
21230 non-TAB component.
21231 (fill_composite_glyph_string): Change argument.
21232 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
21233 (x_produce_glyphs): Fix handling of left/right padding.
21234
212352008-02-01 Kenichi Handa <handa@m17n.org>
21236
21237 * coding.c (detect_coding_system): Fix for handling off
21238 inhibit_iso_escape_detection. Fix for the case that no coding
21239 system is defined for a specific coding category.
21240
212412008-02-01 Kenichi Handa <handa@m17n.org>
21242
21243 * font.c (font_matching_entity): Delete unused local var.
21244
21245 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
21246 opening a font.
21247
21248 * fileio.c (Finsert_file_contents): On recovering a file, assume
21249 Unix-like eol.
21250 (choose_write_coding_system): On auto-saving a file, force
21251 Unix-like eol.
21252
21253 * coding.c (setup_coding_system): Fix setting of
21254 coding->common_flags based on eol_type.
21255 (coding_inherit_eol_type): If PARENT is not nil, be sure to
21256 inherit from it.
21257
212582008-02-01 Kenichi Handa <handa@m17n.org>
21259
21260 * alloc.c (NSTATICS): Increas to 0x600.
21261
212622008-02-01 Kenichi Handa <handa@m17n.org>
21263
21264 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
21265 (ftfont_list): Don't check :name property.
21266 (ftfont_match): New function.
21267 (ftfont_pattern_entity): If the pattern doesn't contain
21268 FC_SPACING, don't assume FC_MONO.
21269
21270 * font.h (struct font_driver): New member `match'.
21271 (font_update_drivers): Adjust prototype.
21272
21273 * font.c (font_parse_fcname, font_parse_name): Don't change :name
21274 property of FONT.
21275 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
21276 them unconditionally.
21277 (font_matching_entity): New function.
21278 (font_open_by_name): Try font_matching_entity if exact match is
21279 not found.
21280 (font_update_drivers): Delete the arg FONT. Return a list of
21281 actually used backends. Don't free faces, font caches here.
21282 Don't store data in frame parameters. Don't call x_set_font.
21283 (Ffont_spec): Store :name property as is.
21284 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
21285 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
21286 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
21287 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
21288 Call font->driver->otf_gsub instead of font_otf_gsub.
21289
21290 * frame.c (x_set_font_backend): Do more works that were done in
21291 font_update_drivers before.
21292
21293 * xfont.c (xfont_match): New function.
21294 (xfont_driver): Set xfont_driver.match to xfont_match.
21295 (xfont_draw): Set font in GC if necessary.
21296
21297 * ftxfont.c (ftxfont_match): New function.
21298 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
21299
21300 * xftfont.c (xftfont_match): New function.
21301 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
21302
213032008-02-01 Kenichi Handa <handa@m17n.org>
21304
21305 * font.h (struct font): New member scalable.
21306 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
21307 (font_otf_gsub): Adjust prototype.
21308
21309 * font.c (font_otf_capability): Fix handling of the default langsys.
21310 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
21311 Check the contents of SPEC.
21312 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
21313 (check_gstring): New function.
21314 (REPLACEMENT_CHARACTER): New macro.
21315 (font_otf_gsub): New arg alternate_subst. Be sure to set all
21316 glyph codes of GSTRING.
21317 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
21318 (font_prepare_composition): Set cmp->glyph_len.
21319 (font_open_entity): Set font->scalable.
21320 (Ffont_get): Handle :otf property.
21321 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
21322 functions.
21323 (Fquery_font): Use font->font.full_name.
21324 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
21325 Sfont_otf_alternates.
21326
21327 * ftfont.c (ftfont_open): Set font->font.full_name and
21328 font->font.name properly. Fix calculation of font->font.height
21329 and font->min_width.
21330
21331 * ftxfont.c (ftxfont_create_gcs): New function.
21332 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
21333 (ftxfont_draw_backgrond): Fix filling region.
21334 (ftxfont_default_fid): New function.
21335 (ftxfont_open): Set xfont->fid to the return value of
21336 ftxfont_default_fid.
21337 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
21338 (ftxfont_done_face): Free only GCs that are created by
21339 ftxfont_create_gcs.
21340 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
21341
21342 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
21343 Clip to src->width, etc (not src->clip_XXX).
21344
21345 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
21346 FontBackend frame parameter.
21347
213482008-02-01 Kenichi Handa <handa@m17n.org>
21349
21350 * font.h (struct font_driver_list): New member `on'.
21351 (Fclear_font_cache): EXFUN it.
21352 (font_update_drivers): Extern it.
21353
21354 * font.c (font_unparse_fcname): Fix typo (swidth->width).
21355 (font_list_entities): Check driver_list->on.
40b1a3a9 21356 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
21357 (font_update_drivers): New function.
21358 (Fclear_font_cache): Check driver_list->on.
21359
21360 * frame.h (Qfont_backend): Extern it.
21361 (x_set_font_backend): Extern it.
21362
21363 * frame.c (Qfont_backend): New variable.
21364 (frame_parms): New element for font-backend.
21365 (x_set_font_backend): New function.
21366
21367 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
21368 FontBackend frame parameter.
21369 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
21370 x_set_font_backend.
21371
21372 * xfont.c (xfont_list): Don't try listing by :name property if the
21373 name is not for XLFD.
21374
213752008-02-01 Kenichi Handa <handa@m17n.org>
21376
21377 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
21378 (LGLYPH_SET_TO): New macros.
21379 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
21380 element of G is vector or not.
21381 (font_at): Extern it.
21382
21383 * font.c: Include window.h.
21384 (font_lispy_object): New function.
21385 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
21386 end of valid glyph.
21387 (font_close_object): Fix getting (struct font *).
21388 (font_at): New function.
21389 (Ffont_get): If FONT is a font-object, get entity from it.
21390 (Ffont_make_gstring): Initialize elements of glyphs with nil.
21391 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
21392 range check.
21393 (Ffont_at): New function.
21394 (syms_of_font): Defsubr Sfont_at.
21395
21396 * xdisp.c (it_props): Move the entry for Qauto_composed to just
21397 before the entry for Qcomposition.
21398 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
21399 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
21400 the font in gstring.
21401 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
21402 LGLYPH_FORM (g) to detect the end of valid glyph.
21403 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
21404 we are composing with gstring.
21405
21406 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
21407 Check if adjustment is vector or not.
21408
21409 * Makefile.in (font.o): Make it depends on window.h.
21410
214112008-02-01 Kenichi Handa <handa@m17n.org>
21412
21413 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
21414 adjustment is vector or not.
21415
214162008-02-01 Miles Bader <miles@gnu.org>
21417
21418 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
21419
214202008-02-01 Kenichi Handa <handa@m17n.org>
21421
21422 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
21423 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
21424 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
21425
21426 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
21427 (DEVICE_DELTA): Fix typo.
21428 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
21429 LGLYPH format.
21430
21431 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
21432 the change of LGLYPH format.
21433
214342008-02-01 Kenichi Handa <handa@m17n.org>
21435
21436 * ftfont.c (ftfont_list): Fix typo.
21437 (ftfont_build_basic_charsets): Don't include letters with diacritics.
21438
214392008-02-01 Jan Djärv <jan.h.d@swipnet.se>
21440
21441 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
21442
21443 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
21444 xftface_info is non-NULL.
21445
214462008-02-01 Jan Djärv <jan.h.d@swipnet.se>
21447
21448 * ftfont.c (ftfont_list): Move misplaced #endif.
21449
214502008-02-01 Kenichi Handa <handa@m17n.org>
21451
21452 * ftfont.c (ftfont_list): Pay attention to the case that
21453 FC_CAPABILITY is not defined.
21454
214552008-02-01 Kenichi Handa <handa@m17n.org>
21456
21457 * xftfont.c (xftfont_open): Set charset related members to -1.
21458
21459 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
21460 QCname.
21461 (ftfont_open): Set charset related members to -1.
21462
21463 * fontset.c (Votf_script_alist): New variable.
21464 (syms_of_fontset): Initialize it.
21465 (fontset_font): Delete unused variable.
21466
21467 * fontset.h (Votf_script_alist): Extern it.
21468
21469 * font.c (font_find_for_lface): Optimize code.
21470
21471 * font.h (font_close_object, font_merge_old_spec): Extern them.
21472
214732008-02-01 Kenichi Handa <handa@m17n.org>
21474
21475 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
21476 (syms_of_font): Initialize them.
21477 (font_pixel_size): Allow float value in dpi.
21478 (font_prop_validate_type): Delete.
21479 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
21480 Change caller.
21481 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
21482 (font_prop_validate_extra): Delete.
21483 (font_prop_validate_spacing): New function.
21484 (font_property_table): Add elements for all known properties.
21485 (get_font_prop_index): Rename from check_font_prop_name. New
21486 argument FROM. Change caller.
21487 (font_prop_validate): Validate all known properties.
21488 (font_put_extra): Delete argument force. Change caller.
21489 (font_expand_wildcards): Make it static. Fix the way of shrinking
21490 the possible range.
21491 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
21492 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
21493 Change caller.
21494 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
21495 (font_parse_fcname): Delete argument merge. Fix parsing of point
21496 size. Don't validate properties values here. Change caller.
21497 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
21498 (font_open_by_name): Delete unused variable.
21499 (Ffont_spec): Likewise. Validate property values.
21500 (Ffont_match_p): New function.
21501
21502 * font.h (QCscalable): Extern it.
21503 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
21504
21505 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
21506
21507 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
21508 (xfont_list_pattern): New function.
21509 (xfont_list): Use xfont_list_pattern.
21510
215112008-02-01 Kenichi Handa <handa@m17n.org>
21512
21513 * font.h (Flist_fonts): EXFUN it.
21514
215152008-02-01 Jason Rumney <jasonr@gnu.org>
21516
21517 * w32term.c (w32_initialize): Add back smoothing_type and
21518 smoothing_enabled definitions.
21519
215202008-02-01 Kenichi Handa <handa@m17n.org>
21521
21522 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
21523 s->face->font on determining underline position.
21524
215252008-02-01 Kenichi Handa <handa@m17n.org>
21526
21527 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
21528 (font_has_char): Accept font-object too.
21529 (font_find_for_lface): Try at first with a size specified in face.
21530
215312008-02-01 Kenichi Handa <handa@m17n.org>
21532
21533 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
21534 font_open_by_name.
21535
215362008-02-01 Kenichi Handa <handa@m17n.org>
21537
21538 * font.h (QCspacing, QCdpi): Extern them.
21539 (enum font_spacing): New enum.
21540 (FONT_PIXEL_SIZE_QUANTUM): New macro.
21541
21542 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
21543 (QCspacing, QCdpi): New variables.
21544 (syms_of_font): Initialize them.
21545 (font_pixel_size): New function.
21546 (font_put_extra): New function.
21547 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
21548 in FONT_EXTRA.
21549 (font_parse_fcname): Handle enumerated values (e.g. bold).
21550 Fix handling font size. Add QCname property that contains only
21551 unknown properties.
21552 (font_score): Change argument. Change caller. Pay attention to
21553 FONT_PIXEL_SIZE_QUANTUM.
21554 (font_sort_entites, font_list_entities, font_find_for_lface)
21555 (font_open_for_lface, font_open_by_name): Fix handling of font size.
21556 (Ffont_spec): Add QCname property that contains only unknown properties.
21557
21558 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
21559 include weight in listing pattern, instead check weight of each
21560 listed font. Don't include scalable in pattern. Pay attention to
21561 FONT_PIXEL_SIZE_QUANTUM.
21562
215632008-02-01 Kenichi Handa <handa@m17n.org>
21564
21565 * font.c (font_parse_fcname): Fix parsing of point-size.
21566 (font_unparse_fcname): Produce symbolic names for style properties.
21567 (font_list_entities): Handle float size correctly.
21568 (font_open_by_name): Prefer `normal' property values if the name
21569 doesn't specify them.
21570
21571 * fontset.c (Finternal_char_font): Use font_get_name, not
21572 Ffont_xlfd_name.
21573
21574 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
21575 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
21576 pattern. Don't force scalable.
21577
21578 * xftfont.c (xftfont_open): For generating a name, start from
21579 96-byte buffer.
21580
215812008-02-01 Jan Djärv <jan.h.d@swipnet.se>
21582
21583 * frame.h (x_new_fontset2): Fix prototype.
21584
215852008-02-01 Kenichi Handa <handa@m17n.org>
21586
21587 * font.h (struct font_driver): Delete member parse_name.
21588 (font_match_p, font_get_spec, font_parse_fcname)
21589 (font_unparse_fcname): Extern them.
21590 (font_get_name): Adjust prototype.
21591
21592 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
21593 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
21594 (font_expand_wildcards): Fix handling ENCODING field. Avoid
21595 unnecessary checks for weight, slant, and swidth.
21596 (font_parse_fcname): New function.
21597 (font_unparse_fcname): New function.
21598 (font_parse_name): New function.
21599 (font_match_p): New function.
21600 (font_get_name): Change return value to Lisp string.
21601 (font_get_spec): New function.
21602 (Qunspecified, Qignore_defface): Don't extern them.
21603 (font_find_for_lface): Assume that LFACE is fully specified.
21604 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
21605 object, use it for FACE.
21606 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
21607 driver->parse_name.
21608 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
21609
21610 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
21611 prototype.
21612
21613 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
21614 argument F. Don't call Fnew_fontset. Instead, directly call
21615 make_fontset.
21616
21617 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
21618
21619 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
21620 of x_new_fontset2.
21621
21622 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
21623 (Qsans__serif): New variables.
21624 (ftfont_generic_family_list): New variable.
21625 (syms_of_ftfont): Initialize the above variables.
21626 (ftfont_pattern_entity): Delete argument NAME.
21627 (ftfont_list_generic_family): New function.
21628 (ftfont_parse_name): Delete this function.
21629 (ftfont_list): Try generic family only when FcFontList found no font.
21630 (ftfont_list_family): Fix args to FcObjectSetBuild.
21631
21632 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
21633 object in attrs[LFACE_FONT_INDEX].
21634 (set_lface_from_font_name): Cancel all changes for font-backend.
21635 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
21636 function.
21637 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
21638 font object in QCfont attribute.
21639 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
21640 (realize_default_face) [USE_FONT_BACKEND]: Call
21641 set_lface_from_font_and_fontset.
21642
21643 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
21644 "fixed", and signal error here if no suitable font was found.
21645
21646 * xfont.c (xfont_parse_name): Delete this function.
21647
21648 * xftfont.c (xftfont_open): Change coding style of error
21649 handling. Generate fontconfig's fontname pattern.
21650
21651 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
21652 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
21653
21654 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
21655 Both args FONTSET and FONT_OBJECT must be existing ones.
21656
216572008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21658
21659 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
21660
216612008-02-01 Kenichi Handa <handa@m17n.org>
21662
21663 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
21664
21665 * font.h (struct font): Fix typo.
21666
21667 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
21668 XLFD_XXX_INDEX.
21669 (enum xlfd_field_mask): New enum.
21670 (intern_font_field): Changed argument. Change caller. If digits
21671 are followed by non-digits, return a symbol.
21672 (font_expand_wildcards): New function.
21673 (font_parse_xlfd): Fix wildcard handling.
21674 (Ffont_spec): If :name is specified, reflect the info in the other
21675 properties.
21676
21677 * ftfont.c (ftfont_pattern_entity): Fix typo.
21678 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
21679 locale.
21680
216812008-02-01 Kenichi Handa <handa@m17n.org>
21682
21683 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
21684
21685 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
21686 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
21687 registry doesn't specify encoding part.
21688 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
21689 (font_open_by_name): At first try parsing the name.
21690 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
21691 as Lisp symbols.
21692
21693 * fontset.c (reorder_font_vector): Pay attention to the case that
21694 the 3rd element of font_def is nil.
21695 (fontset_font): For the default fontset, append one more fontset
21696 elements for a script-based font specification. Don't add script
21697 attribute on finding a font.
21698 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
21699 font name.
21700 (fontset_ascii_font): If a font can't be opened, return nil.
21701
21702 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
21703 (ftfont_pattern_entity): New function.
21704 (ftfont_get_cache): Assume that freetype_font_cache is already
21705 initialized.
21706 (ftfont_list): Handle the case that a file is specified in font
21707 name. Use ftfont_pattern_entity to generate entities.
21708 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
21709 (syms_of_ftfont): Initialize freetype_font_cache.
21710
21711 * xftfont.c (xftfont_open): Make the font name fontconfig's
21712 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
21713 (xftfont_close): Free font->font.name if not NULL.
21714
21715 * xfont.c (xfont_list): If script is specified for a font, return
21716 null_vector.
21717 (xfont_list_family): Declare argument type.
21718
21719 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
21720 name, set LFACE_FONT (lface) to nil.
21721
21722 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
21723 return Qnil.
21724
217252008-02-01 Kenichi Handa <handa@m17n.org>
21726
21727 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
21728 (standard_args): Add "-enable-font-backend".
21729
217302008-02-01 Kenichi Handa <handa@m17n.org>
21731
21732 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
21733 (struct xftdraw_list, xftdraw_list): Delete them.
21734 (register_xftdraw, check_xftdraw): Delete them.
21735 (xftfont_prepare_face): Don't call register_xftdraw.
21736 (xftfont_done_face): Don't call check_xftdraw.
21737 (xftfont_draw): Get background color only when with_background is
21738 nonzero.
21739
21740 * xfont.c (xfont_encode_char): Fix calculation of char2b.
21741
217422008-02-01 Kenichi Handa <handa@m17n.org>
21743
21744 These changes are for the new font handling codes.
21745
21746 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
21747 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
21748 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
21749 (FONTSRC, FONTOBJ): New variables.
21750 (obj): Add $(FONTOBJ).
21751 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
21752 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
21753 @LIBOTF_LIBS@.
21754 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
21755 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
21756
21757 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
21758
21759 * character.h (Vscript_representative_chars): Extern it.
21760
21761 * character.c (Vscript_representative_chars): New variable.
21762 (syms_of_character): Declare it as a Lisp variable.
21763
21764 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
21765 enable_font_backend is nonzero, accept the composition method
21766 COMPOSITION_WITH_GLYPH_STRING.
21767
21768 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
21769 enumeration COMPOSITION_WITH_GLYPH_STRING.
21770
21771 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
21772 members clip_x, clip_y, clip_width, and clip_height.
21773 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
21774
21775 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
21776 --enable-font-backend. Call syms_of_font.
21777
21778 * fns.c (assoc_no_quit): New function.
21779
21780 * fontset.h (FONT_INFO_FROM_FACE): New macro.
21781 (face_for_font, new_fontset_from_font)
21782 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
21783
21784 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
21785 (fontset_font, fontset_ascii, face_for_char)
21786 (make_fontset_for_ascii_face, Ffont_info)
21787 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
21788 is nonzero, use font-backend mechanism.
21789 (find_font_encoding): Make it non-static.
21790 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
21791 New functions.
21792
21793 * frame.h (struct frame): New members resx and resy.
21794 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
21795 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
21796
21797 * frame.c [USE_FONT_BACKEND]: Include "font.h".
21798 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
21799
21800 * lisp.h (assoc_no_quit): Extern it.
21801
21802 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
21803 Through out the file, use FONT_INFO_FROM_FACE instead of
21804 FONT_INFO_FROM_ID, use get_per_char_metric instead of
21805 rif->per_char_metric.
21806 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
21807 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
21808 (get_glyph_face_and_encoding, fill_composite_glyph_string)
21809 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
21810 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
21811 nonzero, use font-backend mechanism.
21812 (get_per_char_metric): New function.
21813
21814 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
21815 (set_lface_from_font_name)
21816 (set_font_frame_param, free_realized_face)
21817 (prepare_face_for_display, clear_face_gcs)
21818 (Finternal_set_font_selection_order, realize_x_face)
21819 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
21820 font-backend mechanism.
21821 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
21822 (load_face_font) [USE_FONT_BACKEND]: Abort.
21823 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
21824 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
21825
21826 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
21827 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
21828 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
21829 nonzero, register all available font drivers. Call
21830 x_default_font_parameter for deciding a font.
21831 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
21832
21833 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
21834 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
21835 (x_set_glyph_string_clipping_exactly)
21836 (x_compute_glyph_string_overhangs)
21837 (x_draw_glyph_string_foreground)
21838 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
21839 (x_free_frame_resources) [USE_FONT_BACKEND]: If
21840 enable_font_backend is nonzero, use font-backend mechanism.
21841 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
21842
218432008-02-01 Kenichi Handa <handa@m17n.org>
21844
21845 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
21846 system_eol_type.
21847 (syms_of_coding): Initialize system_eol_type.
21848
21849 * process.c (Fset_process_coding_system): Inherit system's eol
21850 format if necessary.
21851
218522008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21853
21854 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
21855
218562008-02-01 Kenichi Handa <handa@m17n.org>
21857
21858 * coding.c (decode_eol): Pay attention to buffer relocation in
21859 del_range_2.
21860 (decode_coding): Call decode_eol before restoring undo_list.
21861
218622008-02-01 Kenichi Handa <handa@m17n.org>
21863
21864 * charset.c (Fdefine_charset_internal): Fix setting of
21865 emacs_mule_bytes.
21866
218672008-02-01 Kenichi Handa <handa@m17n.org>
21868
21869 * keyboard.c (read_char): Check if C is a character or not before
21870 looking up Vkeyboard_translate_table.
21871
218722008-02-01 Kenichi Handa <handa@m17n.org>
21873
21874 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
21875 condition to terminate the loop.
21876
218772008-02-01 Kenichi Handa <handa@m17n.org>
21878
21879 * coding.c (produce_composition): Compare charbuf[i] instead of
21880 args[i] against 0.
21881 (Fterminal_coding_system): Use EQ to compare Lisp objects.
21882
218832008-02-01 Kenichi Handa <handa@m17n.org>
21884
21885 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
21886 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
21887 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
21888 detect_coding.
21889 (emacs_mule_char): Handle old style (Emacs 20) component character
21890 of a composition.
21891 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
21892 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
21893 composition rule.
21894 (decode_coding_emacs_mule): Handle invalid bytes correctly.
21895
218962008-02-01 Kenichi Handa <handa@m17n.org>
21897
21898 * coding.c (encode_coding_ccl): Allocate destination dynamically
21899 when necessary.
21900
219012008-02-01 Kenichi Handa <handa@m17n.org>
21902
21903 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
21904 the loop. When quitted, show a proper error message.
21905
219062008-02-01 Kenichi Handa <handa@m17n.org>
21907
21908 * xterm.c (x_set_glyph_string_clipping_exactly): Set
21909 src->clip_head and src->clip_tail temporarily instead of src->hl.
21910
21911 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
21912 character sequence.
21913 (Fccl_execute_on_string): Use ASET, not XSET.
21914
219152008-02-01 Kenichi Handa <handa@m17n.org>
21916
21917 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
21918
219192008-02-01 Kenichi Handa <handa@m17n.org>
21920
21921 * coding.c (decode_coding): Fix the condition of terminating the
21922 decoding loop.
21923
219242008-02-01 Kenichi Handa <handa@m17n.org>
21925
21926 * data.c (Faset): On setting a character bigger than 255 in a
21927 unibyte string, signal an error instead of make the string multibyte.
21928
219292008-02-01 Kenichi Handa <handa@m17n.org>
21930
21931 * charset.c (map_charset_chars): Fix for ascii-compatible charset
21932 made by a mapping table.
21933
219342008-02-01 Kenichi Handa <handa@m17n.org>
21935
21936 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
21937 not.
21938 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
21939 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
21940
21941 * xterm.c (x_draw_composite_glyph_string_foreground): Check
21942 s->face is NULL or not.
21943
219442008-02-01 Kenichi Handa <handa@m17n.org>
21945
21946 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
21947 (x_draw_glyph_string): Fix drawing of right_overhang and
21948 left_overhang around/on cursor.
21949
21950 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
21951
219522008-02-01 Kenichi Handa <handa@m17n.org>
21953
21954 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
21955
219562008-02-01 Kenichi Handa <handa@m17n.org>
21957
21958 * coding.c (Fdefine_coding_system_internal)
21959 (Fdefine_coding_system_alias): Avoid a duplicated element in
21960 Vcoding_system_alist.
21961
219622008-02-01 Kenichi Handa <handa@m17n.org>
21963
21964 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
21965
21966 * coding.c (Qcoding_system_define_form): New variable.
21967 (syms_of_coding): Intern and staticpro it.
21968 (Fcoding_system_p): Check Qcoding_system_define_form.
21969 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
21970
21971 * coding.h (CODING_SYSTEM_P): If ID is not available, call
21972 Fcoding_system_p.
21973 (CHECK_CODING_SYSTEM): If ID is not available, call
21974 Fcheck_coding_system.
21975 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
21976 Try also Fcheck_coding_system.
21977
219782008-02-01 Kenichi Handa <handa@m17n.org>
21979
21980 * coding.c (code_conversion_restore): GCPRO arg.
21981
219822008-02-01 Kenichi Handa <handa@m17n.org>
21983
21984 * character.c (lisp_string_width): Check multibyteness of STRING.
21985
219862008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21987
21988 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
21989 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
21990 (decode_mac_font_name): Use decode_coding_c_string instead of
21991 decode_coding.
21992 (x_load_font): Initialize fontp->fontset to -1. Set
21993 fontp->encoding_type.
21994
219952008-02-01 Kenichi Handa <handa@m17n.org>
21996
21997 * search.c (search_buffer): Give up BM search on case-fold-search
21998 if one of a target character has a case-equivalence of different
3b59c351 21999 byte length even if that target character is an ASCII.
aac0c6e3
MR
22000 (simple_search): Fix calculation of byte length of matched text.
22001 (boyer_moore): Fix handling of case-equivalent multibyte characters.
22002
220032008-02-01 Kenichi Handa <handa@m17n.org>
22004
22005 * coding.c (decode_coding): Fix handling of invalid bytes.
22006
220072008-02-01 Kenichi Handa <handa@m17n.org>
22008
22009 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
22010 Unicode characters.
22011
220122008-02-01 Kenichi Handa <handa@m17n.org>
22013
22014 * coding.c (encode_coding_object): If a pre-write-conversion
22015 function makes a new buffer, kill it.
22016
220172008-02-01 Kenichi Handa <handa@m17n.org>
22018
22019 * coding.c (QCascii_compatible_p): New variable.
22020 (syms_of_coding): Initialize it.
22021 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
22022 calling string_char.
22023 (record_conversion_result): Add `default:' case.
22024 (coding_charset_list): Delete unused variable `coding_type'.
22025 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
22026 property in the plist of the coding system.
22027 (Fcoding_system_put): Check QCascii_compatible_p.
22028
220292008-02-01 Miles Bader <miles@gnu.org>
22030
22031 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
22032 removed calculation of frame `f', as it's now used.
22033
220342008-02-01 Kenichi Handa <handa@m17n.org>
22035
22036 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
22037 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
22038 (UNIDATA): New variable.
22039 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
22040 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
22041 $(RUN_TEMACS) unconditionally.
22042
220432008-02-01 Kenichi Handa <handa@m17n.org>
22044
22045 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
22046 (admindir): New variable.
22047 ($(lispsource)international/charprop.el): New target.
22048
220492008-02-01 Miles Bader <miles@gnu.org>
22050
22051 * character.c (chars-in-region): Remove obsolete function.
22052 (syms_of_character): Remove its initialization.
22053
220542008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
22055
22056 * w32select.c (validate_coding_system)
22057 (setup_windows_coding_system): New functions.
22058 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
22059 setup_windows_coding_system.
22060 (setup_config, Fw32_get_clipboard_data): Use
22061 validate_coding_system.
22062 (Fx_selection_exists): Move call to setup_config to a place
22063 where signals are allowed.
22064
22065 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
22066 (Fcheck_coding_system): Add declarations.
22067
220682008-02-01 Kenichi Handa <handa@m17n.org>
22069
22070 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
22071
220722008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22073
22074 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
22075 string as the second argument for x_new_fontset.
22076
220772008-02-01 Kenichi Handa <handa@m17n.org>
22078
22079 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
22080 (encode_coding_object): Use safe_call instead of call2.
22081
220822008-02-01 Kenichi Handa <handa@m17n.org>
22083
22084 * fontset.c (Fset_fontset_font): Check family element of a given vector.
22085
22086 * Makefile.in (lisp): Include charprop.el.
22087
220882008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22089
22090 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
22091 Not sure if it's unnecessary.
22092
220932008-02-01 Steven Tamm <steventamm@mac.com>
22094
22095 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
22096 some possibly unnecessary fontset checking code that crashed
22097 when creating a new frame.
22098
220992008-02-01 Kenichi Handa <handa@m17n.org>
22100
22101 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
22102 lookup_face.
22103
22104 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
22105
22106 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
22107
221082008-02-01 Kenichi Handa <handa@m17n.org>
22109
22110 * coding.c: Cancel the change done in HEAD on 2008-02-01.
22111 (coding_charset_list): New function.
22112
22113 * coding.h (coding_charset_list): Extern it.
22114
221152008-02-01 Kenichi Handa <handa@m17n.org>
22116
22117 * fontset.c (Fset_fontset_font): Call find_font_encoding with
22118 concatenation of family and registry.
22119
221202008-02-01 Kenichi Handa <handa@m17n.org>
22121
22122 * character.h (BYTE8_STRING): Fix typo.
22123
22124 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
22125 string to multibyte (sync to HEAD).
22126
22127 * casefiddle.c (casify_region): Handle changes in byte-length
22128 using replace_range_2 (sync to HEAD).
22129
221302008-02-01 Andreas Schwab <schwab@suse.de>
22131
22132 * chartab.c (map_char_table): GCPRO table and arg.
22133
221342008-02-01 Kenichi Handa <handa@m17n.org>
22135
22136 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
22137 already at limit.
22138
221392008-02-01 Kenichi Handa <handa@m17n.org>
22140
22141 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
22142 instead of fast_c_string_match_ignore_case.
22143 (find_font_encoding): Change argument to Lisp_Object. Use
22144 fast_string_match_ignore_case instead of
22145 fast_c_string_match_ignore_case. Change caller.
22146
221472008-02-01 Kenichi Handa <handa@m17n.org>
22148
22149 * xdisp.c (get_next_display_element): In unibyte case, decide to
22150 display in octal form by checking a character by
22151 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
22152
22153 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
22154
22155 * character.c (unibyte_has_multibyte_table): New variable.
22156
22157 * character.h (unibyte_has_multibyte_table): Extern it.
22158 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
22159
221602008-02-01 Kenichi Handa <handa@m17n.org>
22161
22162 * coding.c (encode_coding_iso_2022): Fix handling of charset
22163 annotation.
22164
221652008-02-01 Kenichi Handa <handa@m17n.org>
22166
22167 * coding.c (setup_coding_system): If coding_system is nil, use
22168 Qundecided.
22169 (Fterminal_coding_system): Return nil if terminal coding system is
22170 `undecided'.
22171 (syms_of_coding): Define coding-system `undecided' here. Setup
22172 terminal_coding as `undecided'.
22173
221742008-02-01 Kenichi Handa <handa@m17n.org>
22175
22176 * xdisp.c (message_dolog, set_message_1): Call
22177 unibyte_char_to_multibyte with arg type int.
22178
22179 * lread.c (read1): Fix reading of a char-table.
22180
22181 * print.c (print_object): Include sub char-table in circularities
22182 detection.
22183
221842008-02-01 Kenichi Handa <handa@m17n.org>
22185
22186 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
22187 Append the found sequences in car of ARGS instead of prepending.
22188
221892008-02-01 Kenichi Handa <handa@m17n.org>
22190
22191 * fileio.c (report_file_error): Make a unibyte string from
22192 strerror (errorno).
22193 (Fsubstitute_in_file_name): Fix the arg to
22194 unibyte_char_to_multibyte. It is evaluated twice.
22195
221962008-02-01 Kenichi Handa <handa@m17n.org>
22197
22198 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
22199
222002008-02-01 Kenichi Handa <handa@m17n.org>
22201
22202 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
22203 BOM is not found.
22204 (detect_coding, detect_coding_system): Optimization for ISO-2022
22205 when no 8-bit data is found.
22206
222072008-02-01 Jason Rumney <jasonr@gnu.org>
22208
22209 * w32fns.c (x_to_w32_font): Update to use new coding struct.
22210
222112008-02-01 Kenichi Handa <handa@m17n.org>
22212
22213 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
22214 CHARS.
22215
222162008-02-01 Steven Tamm <steventamm@mac.com>
22217
22218 * macterm.c (mac_encode_char): Add charset argument and update
22219 to use encoding_type.
22220 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
22221 switch to pure fontset.
22222 (decode_mac_font_name): Temporarily remove decoding.
22223 (x_font_name_to_mac_font_name): Temporarily remove encoding.
22224 (x_load_font): Temporarily remove encoding.
22225
222262008-02-01 Kenichi Handa <handa@m17n.org>
22227
22228 * xfaces.c (Fface_font): If frame is not on a window system,
22229 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
22230 refer to face->font.
22231 (split_font_name_into_vector, build_font_name_from_vector)
22232 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
22233 when HAVE_WINDOW_SYSTEM is defined.
22234
222352008-02-01 Kenichi Handa <handa@m17n.org>
22236
22237 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
22238 (x_produce_glyphs): Fix setting of members of cmp in case
22239 cmp->glyph_len is zero.
22240
22241 * fontset.c (Fset_fontset_font): Fix docstring.
22242 (Ffontset_info): Make it backward compatible. New arg ALL.
22243
222442008-02-01 Kim F. Storm <storm@cua.dk>
22245
22246 * process.c (read_process_output): Grow decoding_buf when needed;
22247 this could cause a crash in allocate_string and compact_small_strings.
22248
222492008-02-01 Kenichi Handa <handa@m17n.org>
22250
22251 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
22252
222532008-02-01 Kenichi Handa <handa@m17n.org>
22254
22255 * coding.c (setup_coding_system): Set coding->common_flags
22256 correctly for raw-text.
22257 (consume_chars): On encoding unibyte text by raw-text, don't check
22258 multibyte form.
22259 (encode_coding): On encoding by raw-text, never use translation tables.
22260
22261 * fileio.c (e_write): Short cut for the case of no encoding.
22262
222632008-02-01 Kenichi Handa <handa@m17n.org>
22264
22265 * coding.c (detect_coding, detect_coding_system): Delete unused
22266 variables.
22267
222682008-02-01 Kenichi Handa <handa@m17n.org>
22269
22270 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
22271 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
22272
222732008-02-01 Kenichi Handa <handa@m17n.org>
22274
22275 * coding.c (Ffind_coding_systems_region_internal): Include
22276 raw-text and no-conversion in the result.
22277
222782008-02-01 Kenichi Handa <handa@m17n.org>
22279
22280 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
22281 (load_font_get_repertory): Delete unnecessary check of ENCODING of
22282 FONT_DEF.
22283 (font_def_arg, add_arg, from_arg, to_arg): New args.
22284 (set_fontset_font): Change argument.
22285 (Fset_fontset_font): Fix for the case that TARGET is a script
22286 name and charset name.
22287 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
22288
222892008-02-01 Kenichi Handa <handa@m17n.org>
22290
22291 * fontset.c (fontset_font): Rename from fontset_face. Change return
22292 value.
22293 (face_suitable_for_char_p, face_for_char): Adjust for the change
22294 of fontset_font.
22295 (make_fontset_for_ascii_face): Fix setting of the fontset element
22296 for ASCII.
22297 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
22298 to get a font name.
22299 (Ffontset_info): Adjust for the change of fontset_font.
22300
22301 * coding.c (emacs_mule_char): Check invalid code more rigidly.
22302
22303 * character.h (LEADING_CODE_LATIN_1_MIN)
22304 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
22305
223062008-02-01 Kenichi Handa <handa@m17n.org>
22307
22308 * editfns.c (check_translation): New function.
22309 (Ftranslate_region_internal): Handle M:N mapping.
22310
223112008-02-01 Kenichi Handa <handa@m17n.org>
22312
22313 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
22314
223152008-02-01 Kenichi Handa <handa@m17n.org>
22316
22317 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
22318 goto invalid_code.
22319 (decode_coding_iso_2022): Fix handling of invalid designation.
22320
22321 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
22322 after calling code_conversion_save.
22323
223242008-02-01 Kenichi Handa <handa@m17n.org>
22325
22326 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
22327
22328 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
22329
22330 * fontset.c: Include "intervals.h".
22331 (fontset_face): Fix comparing of Lisp_Objects.
22332 (free_face_fontset, new_fontset_from_font_name): Fix
22333 Lisp_Object/int mixup.
22334
22335 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
22336
22337 * coding.c: Add many prototypes for static functions.
22338 (get_translation_table): Allow max_lookup to be NULL.
22339 (decode_coding, Ffind_coding_systems_region_internal)
22340 (Funencodable_char_position, Fcheck_coding_systems_region): Call
22341 get_translation_table with max_lookup NULL.
22342
223432008-02-01 Kenichi Handa <handa@m17n.org>
22344
22345 * coding.c (get_translation_table): Declare it as Lisp_Object.
22346 (LOOKUP_TRANSLATION_TABLE): New macro.
22347 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
22348 instead of CHAR_TABLE_REF.
22349
223502008-02-01 Kenichi Handa <handa@m17n.org>
22351
22352 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
22353 annotation data format.
22354 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
22355 Change arguments FROM and TO to single argument NCHARS. Change caller.
22356 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
22357 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
22358 (decode_coding_ccl, decode_coding_charset): Pay attention to
22359 coding->charbuf_used.
22360 (get_translation): New function.
22361 (produce_chars): New arguments translation_table and last_block.
22362 Translate characters here. Return number of carryover chars.
22363 Change caller.
22364 (produce_composition): New argument pos. Change caller.
22365 Adjust for the change of annotation data format.
22366 (produce_charset, produce_annotation): Likewise.
22367 (decode_coding, encode_coding): Don't call translate_chars.
22368 (consume_chars): New arg translation_table. Change caller.
22369 (translate_chars): Delete.
22370 (syms_of_coding): Make translation-table's number of extra slots 2.
22371
223722008-02-01 Kenichi Handa <handa@m17n.org>
22373
22374 * search.c (simple_search): Fix setting this_pos_byte in backward
22375 search.
22376
22377 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
22378 byte sequence.
22379 (detect_coding_ccl): Fix setting of the variable valids.
22380
223812008-02-01 Kenichi Handa <handa@m17n.org>
22382
22383 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
22384
22385 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
22386
22387 * editfns.c (Ftranslate_region_internal): Rename from
22388 Ftranslate_region. Accept a char-table in TABLE.
22389 (syms_of_editfns): Defsubr Stranslate_region_internal.
22390
22391 * xfaces.c (set_lface_from_font_name): If a font is specified for
22392 a frame, generate a fontset from the font.
22393 (build_scalable_font_name): If the scalable font is requested for
22394 a specific size, don't change that size.
22395 (try_font_list): Try a scalable font also in the case that a
22396 pattern string is specified.
22397
223982008-02-01 Kenichi Handa <handa@m17n.org>
22399
22400 * xfaces.c (Fface_font): New optional arg CHARACTER.
22401
224022008-02-01 Kenichi Handa <handa@m17n.org>
22403
22404 * charset.h (CHARSET_OFFSET): New macro.
22405
224062008-02-01 Kenichi Handa <handa@m17n.org>
22407
22408 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
22409
22410 * fontset.c (fontset_face): Handle the case that repertory is a
22411 char-table.
22412 (find_font_encoding): Return nil for unknown encoding.
22413 (Fset_fontset_font): Ignore a font of unknown encoding.
22414
224152008-02-01 Kenichi Handa <handa@m17n.org>
22416
22417 * keymap.c (describe_vector): Handle default value of a char table.
22418
22419 * fontset.c (fontset_face): Handle fallback fonts correctly.
22420 (Ffontset_info): Return infomation about fallback fonts.
22421
224222008-02-01 Kenichi Handa <handa@m17n.org>
22423
22424 * fontset.c (FONTSET_DEFAULT): New macro.
22425 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
22426 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
22427 the case that it is nil.
22428 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
22429 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
22430
22431 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
22432 subset or superset.
22433
224342008-02-01 Kenichi Handa <handa@m17n.org>
22435
22436 * emacs.c (main): Call init_charset after syms_of_XXX.
22437
22438 * charset.c (Vcharset_map_directory): Delete.
22439 (Vcharset_map_path): New variable.
22440 (load_charset_map_from_file): Use Vcharset_map_path instead.
22441 (init_charset): Initialize Vcharset_map_path.
22442 (syms_of_charset): Delete declaration of "charset-map-directory",
22443 add declaration of "charset-map-path".
22444
224452008-02-01 Kenichi Handa <handa@m17n.org>
22446
22447 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
22448 ASCII only string.
22449
22450 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
22451
22452 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
22453 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
22454
224552008-02-01 Kenichi Handa <handa@m17n.org>
22456
22457 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
22458
22459 * coding.c (QCmnemonic, QCdefalut_char)
22460 (QCdecode_translation_table, QCencode_translation_table)
22461 (QCpost_read_conversion, QCpre_write_conversion): New variables.
22462 (get_translation_table): Return a list of translation tables if
22463 necessary.
22464 (decode_coding): Call get_translation_table with ENCODEP 0.
22465 (char_encodable_p): If translation_table is non-nil, always call
22466 translate_char.
22467 (Fdefine_coding_system_internal): Accept list of translation
22468 tables as :encode-translation-table and :decode-translation-table.
22469 (Fcoding_system_put): New function.
22470 (syms_of_coding): Declare new symbols. Defsubr
22471 Scoding_system_put.
22472 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
22473 typically JISX0212.
22474
22475 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
22476 when the charset is superset type.
22477
22478 * character.c (translate_char): Accept list of translation tables.
22479
224802008-02-01 Kenichi Handa <handa@m17n.org>
22481
22482 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
22483 (CODING_ATTR_TRANS_TBL): New macro.
22484
22485 * coding.c (get_translation_table): New function.
22486 (translate_chars): Fix the bug of skipping annotation data.
22487 (decode_coding, encode_coding): Utilize get_translation_table.
22488 (char_encodable_p, Funencodable_char_position): Translate char if
22489 necessary.
22490 (Ffind_coding_systems_region_internal)
22491 (Fcheck_coding_systems_region): Setup translation table for encode
22492 in a coding system attribute vector in advance.
22493 (Fdefine_coding_system_internal): Allow a symbol as translation
22494 table. For shift-jis type coding system, allow 4th charset.
22495
224962008-02-01 Kenichi Handa <handa@m17n.org>
22497
22498 * coding.c (decode_coding_sjis): Check the first byte rigidly.
22499
22500 * xdisp.c (get_next_display_element): Pass -1 as POS to
22501 FACE_FOR_CHAR if displaying a C-string.
22502
225032008-02-01 Kenichi Handa <handa@m17n.org>
22504
22505 * composite.c (get_composition_id): Handle xoff and yoff in a
22506 composition rule.
22507
22508 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
22509 (struct composition): New member lbearing and rbearing.
22510
22511 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
22512 (x_get_glyph_overhangs): Handle a composition glyph.
22513 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
22514
22515 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
22516 composition glyph.
22517
225182008-02-01 Kenichi Handa <handa@m17n.org>
22519
22520 * print.c: Include charset.h.
22521 (Vprint_charset_text_property): New variable.
22522 (Qdefault): Extern it.
22523 (PRINT_STRING_NON_CHARSET_FOUND)
22524 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
22525 (print_check_string_result): New variable.
22526 (print_check_string_charset_prop): New function.
22527 (print_prune_charset_plist): New variable.
22528 (print_prune_string_charset): New function.
22529 (print_object): Call print_prune_string_charset if
22530 Vprint_charset_text_property is not t.
22531 (print_interval): Print nothing if interval->plist is nil.
22532 (syms_of_print): Declare Vprint_charset_text_property as a lisp
22533 variable. Init and staticpro print_prune_charset_plist.
22534
225352008-02-01 Kenichi Handa <handa@m17n.org>
22536
22537 * fontset.c (new_fontset_from_font_name): Use the specified font
22538 for all characters in the new fontset.
22539
22540 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
22541 OBJECT args.
22542
22543 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
22544 OBJECT args for composition too.
22545
22546 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
22547 OBJECT args.
22548
225492008-02-01 Kenichi Handa <handa@m17n.org>
22550
22551 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
22552
22553 * fontset.c (reorder_font_vector): Adjust for the change of
22554 FONT_DEF format.
22555 (fontset_face): New arg id. Change caller.
22556 (face_for_char): New args pos and object.
22557 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
22558 (fs_query_fontset): Check NAME by Fassoc too.
22559 (Fset_fontset_font): Allow non-XLFD font name.
22560 (Ffontset_info): Adjust for the change of FONT_DEF format.
22561
22562 * fontset.h (face_for_char): Adjust prototype.
22563
22564 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
22565 (append_space, extend_face_to_end_of_line)
22566 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
22567 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
22568
22569 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
22570 POS and OBJECT args.
22571
22572 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
22573 POS and OBJECT args.
22574
225752008-02-01 Jason Rumney <jasonr@gnu.org>
22576
22577 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
22578 of GlobalAlloc'ed memory.
22579
225802008-02-01 Kenichi Handa <handa@m17n.org>
22581
22582 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
22583
22584 * charset.h (charset_table_used): Delete extern.
22585
22586 * charset.c (charset_table_used): Make it static.
22587 (map_charset_chars): Fix args to c_function with.
22588
22589 * chartab.c (map_sub_char_table_for_charset): Fix args to
22590 c_function with.
22591
22592 * coding.h (enum coding_result_code): Delete
22593 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
22594
22595 * coding.c (Qinsufficient_source, Qinconsistent_eol)
22596 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
22597 (Vlast_code_conversion_error): New variables.
22598 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
22599 (ONE_MORE_BYTE): Record error if any instead of signaling an
22600 error. If non-ASCII multibyte char is found, return the negative
22601 value of the code. All callers changed to check it.
22602 (ONE_MORE_BYTE_NO_CHECK): Likewise.
22603 (record_conversion_result): New function. Change all codes setting
22604 coding->result to call this function.
22605 (detect_coding_utf_8, decode_coding_utf_8)
22606 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
22607 Don't use the local variable incomplete.
22608 (emacs_mule_char): Change the second arg to `const'.
22609 (decode_coding): Fix of flushing out unprocessed data.
22610 (make_conversion_work_buffer): Fix making of a work buffer.
22611 (decode_coding_object): Return coding->dst_object.
22612
22613 * fontset.c (set_fontset_font): Fix args.
22614
22615 * lisp.h (CHARACTERBITS): Define as 22.
22616
22617 * process.c (send_process): Be sure to set coding->src_multibyte.
22618
22619 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
22620
226212008-02-01 Kenichi Handa <handa@m17n.org>
22622
22623 * xdisp.c (handle_auto_composed_prop): Give limit to
22624 Fnext_single_char_property_change.
22625
226262008-02-01 Kenichi Handa <handa@m17n.org>
22627
22628 * composite.c (syms_of_composite): Don't make the composition hash
22629 table weak.
22630
22631 * fontset.c (Fset_fontset_font): Fix docstring.
22632
22633 * lisp.h (detect_coding_system): Adjust prototype.
22634
22635 * fileio.c (kill_workbuf_unwind): Delete this function.
22636 (Finsert_file_contents): Adjust the call of detect_coding_system.
22637 Get conversion_buffer by code_conversion_save. Use the macro
22638 CODING_MAY_REQUIRE_DECODING. After decoding, update
22639 coding_system.
22640
22641 * coding.h (make_conversion_work_buffer): Delete extern.
22642 (code_conversion_save): Extern it.
22643
22644 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
22645 (CODING_GET_INFO): Delete argument eol_type. Change callers.
22646 (decode_coding_utf_8): Don't do eol converion.
22647 (detect_coding_utf_16): Check coding->src_chars, not
22648 coding->src_bytes. Add heuristics for those that have no signature.
22649 (decode_coding_emacs_mule, decode_coding_iso_2022)
22650 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
22651 Don't do eol converion.
22652 (adjust_coding_eol_type): Return a new coding system.
22653 (detect_coding): Don't detect eol. Fix for utf-16 detection.
22654 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
22655 each change.
22656 (decode_coding): Pay attention to undo_list. Do eol conversion for
22657 all types of coding-systems (if necessary).
22658 (Vcode_conversion_work_buf_list): Delete it.
22659 (Vcode_conversion_reused_workbuf): Rename from
22660 Vcode_conversion_reused_work_buf.
22661 (Vcode_conversion_workbuf_name): New variable.
22662 (reused_workbuf_in_use): New variable.
22663 (make_conversion_work_buffer): Delete the arg DEPTH.
22664 (code_conversion_restore): Change argument to cons.
22665 (code_conversion_save): Delete the argument BUFFER. Change callers.
22666 (detect_coding_system): New argument src_chars. Change callers.
22667 Fix for utf-16 detection.
22668 (init_coding_once): Don't use ISO_carriage_return.
22669 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
22670 reused_workbuf_in_use.
22671
226722008-02-01 Kenichi Handa <handa@m17n.org>
22673
22674 * keymap.c (store_in_keymap): Pay attention to the case that idx
22675 is a cons specifying a character range.
22676
226772008-02-01 Kenichi Handa <handa@m17n.org>
22678
22679 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
22680 HANDLED_RECOMPUTE_PROPS.
22681
22682 * coding.c (Fdefine_coding_system_internal): Fix checking of
22683 ascii compatibility.
22684
226852008-02-01 Kenichi Handa <handa@m17n.org>
22686
22687 * charset.c (find_charsets_in_text): Delete unused locale variable.
22688 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
22689
22690 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
22691 Resync charset_list to Vemacs_mule_charset_list.
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 * composite.c (update_compositions): Bind inhibit-read-only, etc
22699 to t before calling remove-list-of-text-properties.
22700
22701 * print.c (print_object): Always print ASCII chars as is.
22702
227032008-02-01 Kenichi Handa <handa@m17n.org>
22704
22705 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
22706
22707 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
22708 is a char table.
22709
227102008-02-01 Kenichi Handa <handa@m17n.org>
22711
22712 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
22713
227142008-02-01 Kenichi Handa <handa@m17n.org>
22715
22716 * xfaces.c (set_lface_from_font_name): Fix for the case that
22717 FONTNAME is not fontset name.
22718
227192008-02-01 Kenichi Handa <handa@m17n.org>
22720
22721 * fns.c (base64_encode_1): Fix previous change.
22722
227232008-02-01 Kenichi Handa <handa@m17n.org>
22724
22725 * fontset.c (set_fontset_font): New function.
22726 (Fset_fontset_font): If a font is specified for a charset, use
22727 map_charset_chars to store the font spec in a fontset.
22728
227292008-02-01 Kenichi Handa <handa@m17n.org>
22730
22731 * fontset.c (fontset_face): Create a fallback fontset on demand.
22732 (make_fontset): Don't create a fallback fontset here.
22733 (free_face_fontset): Free a fallback fontset (if any) too.
22734 (n_auto_fontsets): Delete this variable.
22735 (auto_fontset_alist): New variable.
22736 (new_fontset_from_font_name): Check auto_fontset_alist.
22737 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
22738 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
22739 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
22740 Defsubr Sfontset_list_all.
22741
227422008-02-01 Kenichi Handa <handa@m17n.org>
22743
22744 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
22745
227462008-02-01 Kenichi Handa <handa@m17n.org>
22747
22748 * fontset.c (Fnew_fontset): Check NAME more rigidly.
22749
227502008-02-01 Kenichi Handa <handa@m17n.org>
22751
22752 * editfns.c (Fgoto_char): Fix docstring.
22753
227542008-02-01 Kenichi Handa <handa@m17n.org>
22755
22756 * insdel.c (insert_from_gap): Adjust intervals correctly.
22757
227582008-02-01 Jason Rumney <jasonr@gnu.org>
22759
22760 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
22761 (pfnGetFontUnicodeRanges): New dynamically loaded function.
22762 (w32_initialize): Try to load it.
22763 (x_get_font_repertory): Use it if available.
22764 (w32_encode_char): Add shortcut for unicode output.
22765
22766 * w32fns.c (w32_load_system_font): Default charset to -1.
22767 (x_to_w32_charset): Match all fonts for unicode.
22768 (w32_to_x_charset): New parameter matching. Don't return partial
22769 or wildcard charsets.
22770 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
22771 (w32_codepage_for_font): Return CP_UNICODE for unicode.
22772 (w32_to_x_font): Match charset to real charset.
22773 (enum_font_cb2): Always list unicode versions.
22774
22775 * makefile.w32-in (temacs): Increase EMHEAP.
22776
227772008-02-01 Jason Rumney <jasonr@gnu.org>
22778
22779 * w32term.c (w32_encode_char): New charset parameter.
22780 font_info.encoding becomes encoding_type.
22781 (x_get_font_repertory): New function. Warning: stub only!
22782 (x_new_font): Return quickly if font already set.
22783 (x_new_fontset): fontsetname parameter is Lisp_Object.
22784 Use new fs_query_fontset. Try new_fontset_from_font_name.
22785 Use fontset_name for return value.
22786
22787 * w32term.h: Declare x_get_font_repertory.
22788
22789 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
22790 place of find_charset_in_text. Use encode_coding_object in place
22791 of encode_coding.
22792 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
22793 decode_coding.
22794
22795 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
22796 of x_new_fontset.
22797 (w32_load_system_font): Initialize charset as unicode.
22798 font_info.encoding becomes encoding_type.
22799 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
22800 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
22801 (syms_of_w32fns): Set get_font_repertory_func.
22802
22803 * w32console.c: Include character.h. Use terminal_encode_buffer
22804 from term.c.
22805 (write_glyphs): Use new version of encode_terminal_code. Use
22806 encode_coding_object in place of encode_coding.
22807
22808 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
22809 encoding becomes encoding_type.
22810
22811 * term.c (terminal_encode_buffer): Make externally visible.
22812
22813 * makefile.w32-in: Add character.h dependancies.
22814 (character.o, chartab.o): New targets.
22815
228162008-02-01 Kenichi Handa <handa@m17n.org>
22817
22818 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
22819 CODING_ID_EOL_TYPE.
22820
228212008-02-01 Andreas Schwab <schwab@suse.de>
22822
22823 * coding.c (produce_chars): Revert last change.
22824
228252008-02-01 Kenichi Handa <handa@m17n.org>
22826
22827 * charset.h (charset_unicode): Extern it.
22828
22829 * charset.c (string_xstring_p): Check by (C >= 0x100).
22830 (find_charsets_in_text): Change format of the arc CHARSETS. New
22831 arg MULTIBYTE.
22832 (Ffind_charset_region, Ffind_charset_string): Adjust for the
22833 change of find_charsets_in_text.
22834 (Fsplit_char): Fix doc. Never return unknown.
22835
22836 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
22837
22838 * coding.c (Fdefine_coding_system_alias): Update
22839 Vcoding_system_list.
22840
22841 * fontset.c (load_font_get_repertory): Pay attention to the case
22842 that ENCODING of a font is specified by a char-table.
22843
22844 * xterm.c (x_get_font_repertory): Handle the case that the
22845 encoding of font is other than Unicode.
22846
228472008-02-01 Kenichi Handa <handa@m17n.org>
22848
22849 * term.c (encode_terminal_code): Don't handle glyph-table. Check
22850 if a character is encodable by the terminal coding system. If
22851 not, produces proper number of `?'s. Update
22852 terminal_encode_buffer and terminal_encode_buf_size if necessary.
22853 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
22854
228552008-02-01 Kenichi Handa <handa@m17n.org>
22856
22857 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
22858 variables.
22859 (encode_terminal_code): Change argument. Encode multiple
22860 characters at once. Store the result of encoding in
22861 terminal_encode_buffer.
22862 (write_glyphs, insert_glyphs): Adjust for the change of
22863 encode_terminal_code.
22864 (term_init): Initialize terminal_encode_buffer and
22865 terminal_encode_buf_size.
22866
22867 * coding.c (consume_chars): If coding->src_object is nil, don't
22868 check annotation.
22869
228702008-02-01 Kenichi Handa <handa@m17n.org>
22871
22872 * character.c (char_string): Use ASCII_CHAR_P instead of
22873 SINGLE_BYTE_CHAR_P.
22874
228752008-02-01 Kenichi Handa <handa@m17n.org>
22876
22877 * xdisp.c (handle_auto_composed_prop): Check if the last
22878 characters of auto-composed region is newly composed with the
22879 following characters.
22880 (handle_composition_prop): Fix checking of point being inside
22881 composition.
22882
228832008-02-01 Kenichi Handa <handa@m17n.org>
22884
22885 * fns.c (concat): Don't change multibyteness of the result by
22886 concatenating an 8-bit character.
22887
22888 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
22889 multibyteness of the result when newelt is an 8-bit character.
22890
228912008-02-01 Dave Love <fx@gnu.org>
22892
22893 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
22894 EMACS_INT.
22895
22896 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
22897
22898 * xfaces.c (face_numeric_value): Declare dim size_t.
22899 (Finternal_lisp_face_equal_p): Remove unused f.
22900
22901 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
22902 (MATRIX_ROW): Remove unused vars.
22903 (draw_glyphs, x_insert_glyphs, fast_find_position)
22904 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
22905 byte/char counts.
22906
22907 * regex.c (regex_compile): Remove unused var.
22908
22909 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
22910
22911 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
22912 (Faccessible_keymaps, where_is_internal): Remove unused vars.
22913
22914 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
22915
22916 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
22917
22918 * fileio.c (Fwrite_region): Remove unused var.
22919
22920 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
22921 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
22922
22923 * composite.c (Fremove_list_of_text_properties): Declare.
22924
22925 * coding.c (inhibit_pre_post_conversion): Remove (unused).
22926 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
22927 (coding_inherit_eol_type): Remove unused attrs.
22928 (detect_coding): Cast arg of detect_eol.
22929
22930 * charset.c (syms_of_charset): Remove unused var p.
22931 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
22932 byte/char counts.
22933
22934 * casetab.c (set_case_table): Remove unused var.
22935
22936 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
22937 unused vars.
22938
229392008-02-01 Dave Love <fx@gnu.org>
22940
22941 * xterm.c (x_bitmap_mask): Declare.
22942
229432008-02-01 Dave Love <fx@gnu.org>
22944
22945 * xterm.c (x_term_init): Fix type error.
22946
22947 * lisp.h: Add Funibyte_char_to_multibyte.
22948
22949 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
22950 (Fset_coding_system_priority): Doc fix.
22951
22952 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
22953
22954 * indent.c (check_composition): Make start and end EMACS_INT.
22955
22956 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
22957
22958 * xdisp.c (handle_composition_prop, check_point_in_composition):
22959 Make buffer positions EMACS_INT.
22960
22961 * composite.c (find_composition, run_composition_function)
22962 (update_compositions, Ffind_composition_internal): Make buffer
22963 positions EMACS_INT.
22964
22965 * composite.h (find_composition, update_compositions): Make
22966 position args EMACS_INT.
22967
22968 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
22969
22970 * intervals.c (get_property_and_range):
22971 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
22972
22973 * unexalpha.c: Don't include varargs.h.
22974
229752008-02-01 Dave Love <fx@gnu.org>
22976
22977 * coding.h (ENCODE_UTF_8): New.
22978
22979 * Makefile.in (gtkutil.o): Depend on coding.h.
22980
22981 * coding.c (Fset_coding_system_priority): Doc fix.
22982
229832008-02-01 Kenichi Handa <handa@m17n.org>
22984
22985 * fileio.c (Finsert_file_contents): Call setup_coding_system in
22986 the case of auto saving.
22987
229882008-02-01 Andreas Schwab <schwab@suse.de>
22989
22990 * chartab.c (map_char_table, map_char_table_for_charset): Protect
22991 `range' from GC.
22992
229932008-02-01 Kenichi Handa <handa@m17n.org>
22994
22995 * coding.c (decode_coding_sjis): Check bytes more rigidly.
22996
229972008-02-01 Kenichi Handa <handa@m17n.org>
22998
22999 * fileio.c (choose_write_coding_system): Return a decided coding system.
23000 (Fwrite_region): Set Vlast_coding_system_used to the return value
23001 of choose_write_coding_system.
23002
230032008-02-01 Kenichi Handa <handa@m17n.org>
23004
23005 * charset.c (Fset_charset_priority): Pay attention to duplicated
23006 arguments.
23007
23008 * coding.c (QCcategory): New variable.
23009 (syms_of_coding): Defsym it. Set all elements of
23010 Vcoding_category_table and their symbol values.
23011 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
23012 coding-category-XXX, and coding-category-list.
23013 (Fdefine_coding_system_internal): Add category in the plist.
23014
230152008-02-01 Kenichi Handa <handa@m17n.org>
23016
23017 * callproc.c (Fcall_process): Handle carryover correctly.
23018
23019 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
23020 (raw_text_coding_system): Check NILP (coding_system).
23021 (coding_inherit_eol_type): Check NILP (coding_system) and
23022 NILP (parent).
23023 (consume_chars): Fix for the case of raw-text.
23024
23025 * process.c (read_process_output): Handle carryover correctly.
23026
230272008-02-01 Dave Love <fx@gnu.org>
23028
23029 * regex.c (re_search_2): Fix last change.
23030
230312008-02-01 Kenichi Handa <handa@m17n.org>
23032
23033 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
23034 target_multibyte. Even in a unibyte case, return a converted
23035 multibyte char.
23036 (GET_CHAR_AFTER): New macro.
23037 (PATFETCH): Translate via multibyte char.
23038 (HANDLE_UNIBYTE_RANGE): Delete this macro.
23039 (SETUP_MULTIBYTE_RANGE): New macro.
23040 (regex_compile): Setup compiled code so that its multibyteness
23041 matches that of a target. Fix the handling of "[X-YZ]" using
23042 SETUP_MULTIBYTE_RANGE.
23043 (analyse_first) <charset>: For filling fastmap for all multibyte
23044 characters, don't check by BASE_LEADING_CODE_P.
23045 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
23046 the same as RE_MULTIBYTE_P (bufp) now.
23047 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
23048 (TARGET_CHAR_AND_LENGTH): Delete this macro.
23049 (TRANSLATE_VIA_MULTIBYTE): New macro.
23050 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
23051 It is the same as RE_MULTIBYTE_P (bufp) now.
23052 <exactn>: Translate via multibyte.
23053 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
23054 translate it.
23055 <charset, charset_not>: Fetch a character by
23056 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
23057 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
23058 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
23059 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
23060 by GET_CHAR_AFTER.
23061 (bcmp_translate): Likewise.
23062
23063 * search.c (compile_pattern): Check the member target_multibyte,
23064 not the member multibyte of buf.
23065
23066 * lread.c (read1): While reading a string, set force_singlebyte
23067 and force_multibyte correctly.
23068
23069 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
23070 up of unibyte_to_multibyte_table.
23071
230722008-02-01 Kenichi Handa <handa@m17n.org>
23073
23074 * coding.c (setup_coding_system): If coding has
23075 post-read-conversion or pre-write-conversion, set
23076 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
23077 respectively.
23078 (decode_coding_gap): Run post-read-conversion if any.
23079
23080 * fileio.c (Finsert_file_contents): Even if we read into a
23081 unibyte buffer, check if we must decode the result or not.
23082
230832008-02-01 Kenichi Handa <handa@m17n.org>
23084
23085 * coding.c (make_conversion_work_buffer): Change the work buffer
23086 name to the same one as that of Emacs 21.
23087
230882008-02-01 Kenichi Handa <handa@m17n.org>
23089
23090 * coding.h (make_conversion_work_buffer): Adjust prototype.
23091 (code_conversion_restore): Don't extern it.
23092
23093 * coding.c (detected_mask): Delete unused variable.
23094 (decode_coding_iso_2022): Pay attention to the byte sequence of
23095 CTEXT extended segment, and retain those bytes as is.
23096 (decode_coding_ccl): Delete unused variable `valids'.
23097 (setup_coding_system): Delete unused variable `category'.
23098 (consume_chars): Delete unused variable `category'. Make it work
23099 for non-multibyte case.
23100 (make_conversion_work_buffer): Change argument.
23101 (saved_coding): Delete unused variable.
23102 (code_conversion_restore): Don't check saved_coding->destination.
23103 (code_conversion_save): New function.
23104 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
23105 instead of record_unwind_protect.
23106 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
23107 (detect_coding_system): Delete unused variable `mask'.
23108 (Fdefine_coding_system_internal): Delete unused variable id.
23109
23110 * fileio.c (kill_workbuf_unwind): New function.
23111 (Finsert_file_contents): On replacing, call
23112 make_conversion_work_buffer with correct args, and call
23113 record_unwind_protect with the first arg kill_workbuf_unwind.
23114
23115 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
23116
231172008-02-01 Kenichi Handa <handa@m17n.org>
23118
23119 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
23120 (fontset_add): Fix for the case that TO is less than TO1.
23121 (Ffontset_info): Don't use fallback fontset on checking the
23122 default fontset.
23123 (dump_fontset): New function for debugging.
23124
23125 * coding.c (Fdefine_coding_system_internal): Fix for the case that
23126 coding_type is Qcharset.
23127
231282008-02-01 Kenichi Handa <handa@m17n.org>
23129
23130 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
23131 (map_char_table): Don't inherit the value from the parent on
23132 initializing VAL. Adjust for the above change.
23133
231342008-02-01 Kenichi Handa <handa@m17n.org>
23135
23136 * coding.c (Qsignature, Qendian): Delete these variables.
23137 (syms_of_coding): Don't initialize them.
23138 (CATEGORY_MASK_UTF_16_AUTO): New macro.
23139 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
23140 detect_info->found.
23141 (decode_coding_utf_16): Don't detect BOM here.
23142 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
23143 is NOT utf_16_without_bom.
23144 (setup_coding_system): For a coding system of type utf-16, check
23145 if the attribute :endian is Qbig or not (not nil or not), and set
23146 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
23147 (detect_coding): If coding type is utf-16 and BOM detection is
23148 required, detect it.
23149 (Fdefine_coding_system_internal): For a coding system of type
23150 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
23151
231522008-02-01 Kenichi Handa <handa@m17n.org>
23153
23154 * coding.c (coding_set_source): Fix for the case that the current
23155 buffer is different from coding->src_object.
23156 (decode_coding_object): Don't use the conversion work buffer if
23157 DST_OBJECT is a buffer.
23158
231592008-02-01 Dave Love <fx@gnu.org>
23160
23161 * lread.c (read_emacs_mule_char) [len==2]: Index
23162 emacs_mule_charset correctly.
23163
231642008-02-01 Dave Love <fx@gnu.org>
23165
23166 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
23167 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
23168 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
23169 treated specially.)
23170 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
23171 (detected_mask): Remove Big5 bits.
23172
231732008-02-01 Kenichi Handa <handa@m17n.org>
23174
23175 The following changes are to make the font rescaling facility
23176 compatible with Emacs 21.
23177
23178 * xfaces.c (Vface_font_rescale_alist): Rename from
23179 Vface_resizing_fonts.
23180 (struct font_name): Rename member resizing_ratio to rescale_ratio.
23181 (font_rescale_ratio): Rename from font_resizing_ratio.
23182 (split_font_name): Set font->rescale_ratio.
23183 (better_font_p): Pay attention to font->rescale_ratio.
23184 (build_scalable_font_name): Likewise. Change RESX, and RESY
23185 fields.
23186 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
23187
231882008-02-01 Kenichi Handa <handa@m17n.org>
23189
23190 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
23191 (Qutf_16_le): Remove these variables.
23192 (syms_of_coding): Don't DEFSYM them.
23193 (decode_coding_utf_16): Fix handling of BOM.
23194 (encode_coding_utf_16): Fix handling of BOM.
23195
231962008-02-01 Kenichi Handa <handa@m17n.org>
23197
23198 * fileio.c (Finsert_file_contents): On replacing, before decoding
23199 the file into the work buffer, set point of the work buffer to the end.
23200
232012008-02-01 Dave Love <fx@gnu.org>
23202
23203 * coding.c (Fcheck_coding_systems_region): Fix type errors.
23204
232052008-02-01 Dave Love <fx@gnu.org>
23206
23207 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
23208 and fix C types.
23209
232102008-02-01 Kenichi Handa <handa@m17n.org>
23211
23212 * xdisp.c (SKIP_GLYPHS): New macro.
23213 (set_cursor_from_row): Pay attention to string display properties.
23214
23215 * category.c (copy_category_entry): Fix for the case that RANGE
23216 is an integer.
23217
23218 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
23219
23220 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
23221
232222008-02-01 Kenichi Handa <handa@m17n.org>
23223
23224 * charset.c (Fcharset_id_internal): New function.
23225 (syms_of_charset): Defsubr it.
23226
23227 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
23228 with the last arg charset_list acquired from coding.
23229 (Fdefine_coding_system_internal): For ccl-based coding system, fix
23230 the attribute coding_attr_ccl_valids.
23231
23232 * coding.h (enum define_coding_ccl_arg_index): Set the first
23233 member coding_arg_ccl_decoder to coding_arg_max.
23234
23235 * ccl.h (ccl_driver): Adjust prototype.
23236
23237 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
23238 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 23239 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
23240 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
23241 last arg Qnil.
23242
232432008-02-01 Kenichi Handa <handa@m17n.org>
23244
23245 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
23246 call encode_char.
23247
23248 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
23249
232502008-02-01 Dave Love <fx@gnu.org>
23251
23252 * composite.c (syms_of_composite): Make composition_hash_table weak.
23253
232542008-02-01 Kenichi Handa <handa@m17n.org>
23255
23256 * dispextern.h (check_face_attributes, generate_ascii_font_name)
23257 (font_name_registry): Don't extern them.
23258 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
23259
23260 * fontset.h (Qfontset): Don't extern it.
23261 (new_fontset_from_font_name): Extern it.
23262
23263 * fontset.c: Give 8 extra slots to fontset objects.
23264 (Qfontset_info): New variable.
23265 (syms_of_fontset): Defsym it.
23266 (FONTSET_FALLBACK): New macro.
23267 (fontset_face): Try also the default fontset.
23268 (make_fontset): Realize a fallback fontset from the default fontset.
23269 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
23270 using split_font_name_into_vector and build_font_name_from_vector.
23271 (Fset_fontset_font): Access the elements of font_spec by enum
23272 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
23273 name by using split_font_name_into_vector.
23274 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
23275 generate a proper font name from the fontset name. Update
23276 Vfontset_alias_alist.
23277 (n_auto_fontsets): New variable.
23278 (new_fontset_from_font_name): New function.
23279 (Ffont_info): Store the information about fonts generated from the
23280 default fontset in the first extra slot of the returned char-table.
23281
23282 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
23283 (font_name_registry): Delete function.
23284 (split_font_name_into_vector): New function.
23285 (build_font_name_from_vector): New function.
23286 (font_list): The argument REGISTRY is now a list of registry names.
23287 (choose_face_font): If we are choosing an ASCII font, and ATTRS
23288 specifies an explicit font name, return the name as is. Make a
23289 list of registy names.
23290
23291 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
23292 of x_new_fontset.
23293 (Fx_create_frame): Don't call x_new_fontset here. Just use
23294 x_list_fonts to check the existence of fonts.
23295
23296 * xterm.h (x_new_fontset): Adjust prototype.
23297
23298 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
23299 string. Use new_fontset_from_font_name to create a fontset from a
23300 font name.
23301
233022008-02-01 Kenichi Handa <handa@m17n.org>
23303
23304 * syntax.c (Vfind_word_boundary_function_table): New name for
23305 Vnext_word_boundary_function_table.
23306 (find-word-boundary-function-table): New name for
23307 next-word-boundary-function-table.
23308
233092008-02-01 Dave Love <fx@gnu.org>
23310
23311 * Makefile.in: Fix some dependencies.
23312
23313 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
23314 set it to nil before returning.
23315
23316 * composite.c (update_compositions): Fix type error.
23317
23318 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
23319
233202008-02-01 Kenichi Handa <handa@m17n.org>
23321
23322 * xterm.c (x_new_font): Optimize for the case that the font is
23323 already set for the frame.
23324
233252008-02-01 Kenichi Handa <handa@m17n.org>
23326
23327 * chartab.c (char_table_ascii): Check if the char table contents
23328 is sub-char-table or not.
23329 (char_table_set, char_table_set_range): Fix argument to
23330 char_table_ascii.
23331
23332 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
23333 (detect_coding_utf_8, detect_coding_utf_16)
23334 (detect_coding_emacs_mule, detect_coding_iso_2022)
23335 (detect_coding_sjis, detect_coding_big5)
23336 (detect_coding_ccl, detect_coding_charset): Change argument MASK
23337 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
23338 sequence is valid in this coding system. Change callers.
23339 (MAX_ANNOTATION_LENGTH): New macro.
23340 (ADD_ANNOTATION_DATA): New macro.
23341 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
23342 ADD_ANNOTATION_DATA. Change the format of annotation data.
23343 (ADD_CHARSET_DATA): New macro.
23344 (emacs_mule_char): New argument ID. Change callers.
23345 (decode_coding_emacs_mule, decode_coding_iso_2022)
23346 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
23347 Produce charset annotation data in coding->charbuf.
23348 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
23349 to charset annotation data in coding->charbuf.
23350 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
23351 coding->common_flags if the coding system is iso-2022 based and
23352 uses designation.
23353 (produce_composition): Adjust for the new annotation data format.
23354 (produce_charset): New function.
23355 (produce_annotation): Handle charset annotation.
23356 (handle_composition_annotation, handle_charset_annotation): New
23357 functions.
23358 (consume_chars): Handle charset annotation. Utilize the above two
23359 functions.
23360 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
23361 buffer, get the deleted text as a string and set
23362 coding->src_object to that string.
23363 (detect_coding, detect_coding_system): Use the new struct
23364 coding_detection_info.
23365
23366 * coding.h (struct coding_detection_info): New structure.
23367 (struct coding_system): Adjust prototype of the member `detector'.
23368 (CODING_ANNOTATE_CHARSET_MASK): New macro.
23369
233702008-02-01 Kenichi Handa <handa@m17n.org>
23371
23372 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
23373
233742008-02-01 Dave Love <fx@gnu.org>
23375
23376 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
23377 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
23378 to new local and nullify apropos_accumulate before returning.
23379 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
23380
233812008-02-01 Kenichi Handa <handa@m17n.org>
23382
23383 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
23384 correctly.
e3eea1fc 23385
aac0c6e3
MR
233862008-02-01 Dave Love <fx@gnu.org>
23387
23388 * fns.c (Flanginfo): Call synchronize_system_time_locale.
23389
233902008-02-01 Kenichi Handa <handa@m17n.org>
23391
23392 The following changes are to make character composition happen
23393 automatically on displaying.
23394
23395 * Makefile.in (lisp, shortlisp): Add composite.elc.
23396
23397 * composite.h (Qauto_composed, Vauto_composition_function)
23398 (Qauto_composition_function): Extern them.
23399
23400 * composite.c (Vcomposition_function_table)
23401 (Qcomposition_function_table): Delete variables.
23402 (Qauto_composed, Vauto_composition_function)
23403 (Qauto_composition_function): New variables.
23404 (run_composition_function): Don't call
23405 compose-chars-after-function.
23406 (update_compositions): Clear `auto-composed' text property.
23407 (compose_chars_in_text): Delete this function.
23408 (syms_of_composite): Staticpro Qauto_composed and
23409 Qauto_composition_function. Declare Vauto_composition_function as
23410 a Lisp variable.
23411
23412 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
23413
23414 * xdisp.c (it_props): Add an entry for Qauto_composed.
23415 (handle_auto_composed_prop): New function.
23416
23417 * xselect.c (selection_data_to_lisp_data): Don't call
23418 compose_chars_in_text.
23419
234202008-02-01 Dave Love <fx@gnu.org>
23421
23422 * keyboard.c (read_char): Modify checking around use of
23423 Vkeyboard_translate_table.
23424
23425 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
23426 and fix C types.
23427
234282008-02-01 Kenichi Handa <handa@m17n.org>
23429
23430 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
23431 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
23432 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
23433 the case that the last byte is '\r' correctly.
23434 (decode_coding): Flush out the unprocessed data correctly.
23435 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
23436
234372008-02-01 Dave Love <fx@gnu.org>
23438
23439 * xterm.c (XTread_socket): Fix changes for defined keysyms.
23440 Add XK_ISO... case.
23441 (xaw_scroll_callback): Revert last change.
23442
234432008-02-01 Kenichi Handa <handa@m17n.org>
23444
23445 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
23446
234472008-02-01 Kenichi Handa <handa@m17n.org>
23448
23449 * xfaces.c (Vface_resizing_fonts): New variable.
23450 (struct font_name): New member `resizing_ratio'.
23451 (font_resizing_ratio): New function.
23452 (split_font_name): Set font->resizing_ratio.
23453 (better_font_p): Pay attention to font->resizing_ratio.
23454 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
23455 RESX, and RESY fields.
23456 (try_alternative_families): Try scalable fonts if
23457 Vscalable_fonts_allowed is not Qt.
23458 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
23459
234602008-02-01 Dave Love <fx@gnu.org>
23461
23462 * xterm.c (xaw_scroll_callback): Cast correctly.
23463
234642008-02-01 Dave Love <fx@gnu.org>
23465
23466 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
23467 (lispy_kana_keys): Comment out.
23468 (make_lispy_event) [XK_kana_A]: Comment out.
23469
23470 * xterm.c (xaw_scroll_callback): Cast call_data.
23471 (XTread_socket): Deal with ASCII keysyms.
23472 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
23473
234742008-02-01 Dave Love <fx@gnu.org>
23475
23476 * xterm.c (Vx_keysym_table): New.
23477 (syms_of_xterm): Initialize it.
23478 (XTread_socket): Use it.
23479 From head: Eliminate incorrect optimization that tried to avoid
23480 decoding the output of X*LookupString.
23481 (x_get_font_repertory): Delete charset declaration.
23482
234832008-02-01 Kenichi Handa <handa@m17n.org>
23484
23485 * coding.c (detect_coding_charset): If only ASCII bytes are found,
23486 return 0.
23487 (Fdefine_coding_system_internal): Setup
23488 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
23489
234902008-02-01 Dave Love <fx@gnu.org>
23491
23492 * coding.c (Fcheck_coding_system): Doc fix.
23493
23494 * editfns.c (Finsert_byte): Return a proper value.
23495
234962008-02-01 Kenichi Handa <handa@m17n.org>
23497
23498 * coding.c (decode_coding): Fix args to translate_chars. Pay
23499 attention to Vstandard_translation_table_for_decode.
23500 (encode_coding): Fix args to translate_chars. Pay attention to
23501 Vstandard_translation_table_for_encode.
23502
23503 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
23504 SINGLE_BYTE_CHAR_P.
23505
23506 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
23507 not by SINGLE_BYTE_CHAR_P.
23508
23509 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
23510 SINGLE_BYTE_CHAR_P.
23511
23512 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
23513 SINGLE_BYTE_CHAR_P.
23514
23515 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
23516 by SINGLE_BYTE_CHAR_P.
23517
23518 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
23519 SINGLE_BYTE_CHAR_P.
23520
235212008-02-01 Dave Love <fx@gnu.org>
23522
23523 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
23524
235252008-02-01 Dave Love <fx@gnu.org>
23526
23527 * fns.c (Flanginfo): Fix typo.
23528
23529 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
23530
235312008-02-01 Kenichi Handa <handa@m17n.org>
23532
23533 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
23534 (detect_coding_emacs_mule, detect_coding_iso_2022)
23535 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
23536 incomplete byte sequence. Don't update *mask when correctly detected.
23537 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
23538 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
23539 (detect_coding, detect_coding_system): Adjust for the changes above.
23540
235412008-02-01 Kenichi Handa <handa@m17n.org>
23542
23543 * character.c (char_string): Rename from
23544 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
23545 (string_char): Rename from string_char.
23546
23547 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
23548 if C is greater than MAX_3_BYTE_CHAR.
23549 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
23550 string_char instead of string_char_with_unification.
23551
235522008-02-01 Dave Love <fx@gnu.org>
23553
23554 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
23555
235562008-02-01 Kenichi Handa <handa@m17n.org>
23557
23558 * keymap.c (push_key_description): Pay attention to force_multibyte.
23559
23560 * regex.c (re_search_2): Fix for the case of unibyte buffer.
23561
235622008-02-01 Dave Love <fx@gnu.org>
23563
23564 * charset.c (define_charset_internal): Rename `supprementary'.
23565
23566 * Makefile.in (lisp, shortlisp): Remove latin-N.
23567
235682008-02-01 Dave Love <fx@gnu.org>
23569
23570 * xfns.c (x_window, x_window): Use use_xim.
23571
23572 * xterm.c (use_xim): Initialize.
23573 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
23574 (x_term_init): Maybe set use_xim.
23575
23576 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
23577
235782008-02-01 Kenichi Handa <handa@m17n.org>
23579
23580 * search.c (search_buffer): Fix case-fold-search of multibyte
23581 characters.
23582 (boyer_moore): Rename the last argument to char_high_bits.
23583
235842008-02-01 Kenichi Handa <handa@m17n.org>
23585
23586 * xdisp.c (display_string): Fix for the case of zero width glyph.
23587
23588 * xfns.c (x_set_font): Change the error message of the case that
23589 x_new_fontset returns Qt.
23590
23591 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
23592 (Finternal_set_lisp_face_attribute): Use signal_error for the
23593 error of invalid fontset.
23594
23595 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
23596 fontset, return Qt.
23597
235982008-02-01 Dave Love <fx@gnu.org>
23599
23600 * unexelf.c (unexec): Make .got handling not SGI-specific.
23601
23602 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
23603
23604 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
23605
23606 * keyboard.c (read_key_sequence): Fix type error.
23607
23608 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
23609 type error.
23610
23611 * fontset.c (fontset_add): Return Lisp_Object.
23612
236132008-02-01 Dave Love <fx@gnu.org>
23614
23615 * charset.h (charset_ordered_list_tick): Declare extern.
23616
236172008-02-01 Kenichi Handa <handa@m17n.org>
23618
23619 The following changes (and some of 2008-02-01 changes of mine) are
23620 for handling syntax, category, and case conversion for unibyte
23621 characters by converting them to multibyte on the fly. With these
23622 changes, we don't have to setup syntax and case tables for unibyte
23623 characters in each language environment.
23624
23625 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
23626 multibyte if necessary.
23627
23628 * bytecode.c (Fbyte_code): Likewise.
23629
23630 * character.h (LEADING_CODE_LATIN_1_MIN)
23631 (LEADING_CODE_LATIN_1_MAX): New macros.
23632 (unibyte_to_multibyte_table): Extern it.
23633 (unibyte_char_to_multibyte): New macro.
23634 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
23635 (CHAR_LEADING_CODE): New macro.
23636 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
23637
23638 * character.c (unibyte_to_multibyte_table): New variable.
23639 (unibyte_char_to_multibyte): Move to character.h and define as macro.
23640 (multibyte_char_to_unibyte): If C is an eight-bit character,
23641 convert it to the corresponding byte value.
23642
23643 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
23644 not 1, signals an error. Update the elements of
23645 unibyte_to_multibyte_table.
23646 (init_charset_once): Initialize unibyte_to_multibyte_table.
23647 (syms_of_charset): Define the charset `iso-8859-1'.
23648
23649 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
23650 as is without converting it to unibyte. In a unibyte buffer,
23651 convert C to multibyte before checking the syntax.
23652
23653 * lisp.h (unibyte_char_to_multibyte): Delete extern.
23654
23655 * minibuf.c (Fminibuffer_complete_word): Use the macro
23656 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
23657
23658 * regex.h (struct re_pattern_buffer): New member target_multibyte.
23659
23660 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
23661 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
23662 that is zero, convert an eight-bit char to multibyte.
23663 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
23664 non-emacs case.
23665 (PATFETCH): Convert an eight-bit char to multibyte.
23666 (HANDLE_UNIBYTE_RANGE): New macro.
23667 (regex_compile): Setup the compiled pattern for multibyte chars
23668 even if the given regex string is unibyte. Use PATFETCH_RAW
23669 instead of PATFETCH in many places. To handle `charset'
23670 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
23671 only for ASCII chars.
23672 (analyse_first) <exactn>: Simplify because the compiled pattern
23673 is multibyte.
23674 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
23675 <charset>: Use CHAR_LEADING_CODE to get leading codes.
23676 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
23677 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
23678 multibyte always 1.
23679 (re_search_2): In emacs, set the locale variable multibyte to 1,
23680 otherwise to 0. New local variable target_multibyte. Check it
23681 to decide the multibyteness of STR1 and STR2. If
23682 target_multibyte is zero, convert unibyte chars to multibyte
23683 before translating and checking fastmap.
23684 (TARGET_CHAR_AND_LENGTH): New macro.
23685 (re_match_2_internal): In emacs, set the locale variable multibyte
23686 to 1, otherwise to 0. New local variable target_multibyte. Check
23687 it to decide the multibyteness of STR1 and STR2. Use
23688 TARGET_CHAR_AND_LENGTH to fetch a character from D.
23689 <charset, charset_not>: If multibyte is nonzero, check fastmap
23690 only for ASCII chars. Call bcmp_translate with
23691 target_multibyte, not with multibyte.
23692 <begline>: Declare the local variable C as `unsigned'.
23693 (bcmp_translate): Change the last arg name to target_multibyte.
23694
23695 * search.c (compile_pattern_1): Don't adjust the multibyteness of
23696 the regexp pattern and the matching target. Set cp->buf.multibyte
23697 to the multibyteness of the regexp pattern. Set
23698 cp->but.target_multibyte to the multibyteness of the matching target.
23699 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
23700 FETCH_STRING_CHAR_ADVANCE.
23701 (Freplace_match): Convert unibyte chars to multibyte.
23702
23703 * syntax.c (char_quoted, back_comment, scan_words)
23704 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
23705 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
23706 unibyte chars to multibyte.
23707 (skip_chars): Delete the arg syntaxp, and move the code for
23708 handling syntaxes to skip_syntaxes. Change callers.
23709 Fix the case that the multibyteness of STRING and the current
23710 buffer doesn't match.
23711 (skip_syntaxes): New function.
23712 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
23713 SINGLE_BYTE_CHAR_P.
23714
237152008-02-01 Kenichi Handa <handa@m17n.org>
23716
23717 * xfaces.c (QCfontset): New variable.
23718 (LFACE_FONTSET): New macro.
23719 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
23720 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
23721 (Finternal_set_lisp_face_attribute)
23722 (Finternal_get_lisp_face_attribute): Handle QCfontset.
23723 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
23724 check also LFACE_FONTSET_INDEX.
23725 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
23726 attrs[LFACE_FONT_INDEX].
23727 (syms_of_xfaces): Intern and staticpro QCfontset.
23728
23729 * dispextern.h (enum lface_attribute_index): New member
23730 LFACE_FONTSET_INDEX.
23731
23732 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
23733
237342008-02-01 Kenichi Handa <handa@m17n.org>
23735
23736 * coding.c (coding_set_destination): Fix coding->destination for
23737 the case converting a region.
23738 (encode_coding_utf_8): Encode eight-bit chars as single byte.
23739 (encode_coding_object): Fix coding->dst_pos and
23740 coding->dst_pos_byte for the case converting a region.
23741
23742 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
23743
23744 * character.h (BYTE8_STRING): New macro.
23745
23746 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
23747
237482008-02-01 Kenichi Handa <handa@m17n.org>
23749
23750 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
23751 characters by octal form.
23752
23753 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
23754
23755 * buffer.h (_fetch_multibyte_char_len): Delete extern.
23756 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
23757 _fetch_multibyte_char_len.
23758 (FETCH_CHAR_AS_MULTIBYTE): New macro.
23759
23760 * casetab.c (set_canon, set_identity, shuffle): Simplify.
23761
23762 * casefiddle.c (casify_object): Simplify. Handle the case that
23763 the case conversion change the byte length.
23764 (casify_region): Likewise.
23765
23766 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
23767
23768 * character.c (_fetch_multibyte_char_len): Delete this variable.
23769 (syms_of_character): Setup Vprintable_chars.
23770
23771 * editfns.c (Fchar_equal): Fix for the unibyte case.
23772 (Finsert_byte): New function.
23773 (syms_of_editfns): Defsubr it.
23774
23775 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
23776 of direct code 0x3ffff.
23777
23778 * search.c (Freplace_match): Fix for the unibyte case.
23779
237802008-02-01 Kenichi Handa <handa@m17n.org>
23781
23782 * lread.c (safe_to_load_p): Fix the logic.
23783
23784 * syntax.c (scan_words): Don't treat characters belonging to
23785 different scripts as constituting a word.
23786
23787 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
23788
23789 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
23790
23791 * emacs.c (main): In the case of --unibyte, instead of aborting on
23792 finding non-empty buffer, make it unibyte.
23793
237942008-02-01 Kenichi Handa <handa@m17n.org>
23795
23796 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
23797 to create a fontset.
23798
237992008-02-01 Dave Love <fx@gnu.org>
23800
23801 * character.c (Funibyte_char_to_multibyte): Doc fix.
23802
23803 * xfns.c [HAVE_STDLIB_H]: Fix last change.
23804
238052008-02-01 Kenichi Handa <handa@m17n.org>
23806
23807 * fontset.c (fontset_add): Make the type `int'.
23808 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
23809
23810 * character.c (unibyte_char_to_multibyte)
23811 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
23812 charset_unibyte, not charset_primary.
23813
23814 * charset.h (charset_unibyte): Extern it instead of charset_primary.
23815
23816 * charset.c (charset_unibyte): Rename from charset_primary.
23817 (Funibyte_charset): Rename from Fprimary_charset.
23818 (Fset_unibyte_charset): Rename from Fset_primary_charset.
23819 (syms_of_charset): Adjust for the above changes.
23820
23821 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
23822 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
23823 it->multibyte_p is zero.
23824
23825 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
23826 Delete extern.
23827
238282008-02-01 Kenichi Handa <handa@m17n.org>
23829
23830 * coding.c (Fdefine_coding_system_internal): Fix category setting
23831 for a coding system of type iso-2022.
23832
238332008-02-01 Kenichi Handa <handa@m17n.org>
23834
23835 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
23836
238372008-02-01 Kenichi Handa <handa@m17n.org>
23838
23839 * syntax.c (Vnext_word_boundary_function_table): New variable.
23840 (next-word-boundary-function-table): Declare it as a Lisp variable
23841 in syms_of_syntax.
23842 (scan_words): Call functions in Vnext_word_boundary_function_table
23843 if any.
23844
23845 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
23846
23847 * fontset.c (fs_load_font): If fontp->charset is not negative,
23848 return fontp without setting its members.
23849
238502008-02-01 Dave Love <fx@gnu.org>
23851
23852 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
23853
23854 * m/sparc.h (HAVE_ALLOCA): Delete.
23855
23856 * s/irix6-5.h: Don't include strings.h.
23857 (bcopy, bzero, bcmp): Don't undef.
23858
23859 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
23860
23861 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
23862 (TIOCSIGSEND): Don't test IRIX6.
23863 (bcopy, bzero, bcmp): Define conditionally.
23864
238652008-02-01 Kenichi Handa <handa@m17n.org>
23866
23867 * buffer.c (Qas, Qmake, Qto): New variables.
23868 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
23869 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
23870
23871 * callproc.c (Fcall_process): Don't call insert_1_both directly if
23872 we are inserting a process output into a multibyte buffer.
23873
23874 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
23875 multibyte_char_to_unibyte.
23876
23877 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
23878 by the primary charset, make it eight-bit char.
23879 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
23880
23881 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
23882 (charset_8_bit__control, charset_8_bit_graphic)
23883 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
23884 (define_charset_internal): New function.
23885 (syms_of_charset): Call define_charset_internal for pre-defined
23886 charsets.
23887
23888 * charset.h (charset_8_bit): Extern it.
23889
23890 * coding.c (make_conversion_work_buffer): Adjust for the change
23891 of Fset_buffer_multibyte.
23892 (encode_coding_raw_text): Increment p0 in the loop.
23893
23894 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
23895
23896 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
23897 for the change of Fset_buffer_multibyte.
23898
23899 * fns.c (Fstring_to_multibyte): New function.
23900 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
23901
239022008-02-01 Dave Love <fx@gnu.org>
23903
23904 * xfns.c (x_put_x_image): Declare args.
23905
23906 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
23907 (try_font_list): Declare an arg.
23908
23909 * xdisp.c (message2_nolog, set_message): Declare an arg.
23910
23911 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
23912
23913 * syntax.c (scan_sexps_forward): Declare an arg.
23914
23915 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
23916 Declare an arg.
23917
23918 * lisp.h (Fnew_fontset): Declare.
23919
23920 * keymap.c (push_key_description): Call CHARACTERP correctly.
23921
23922 * fontset.c (fontset_add): Declare args. Call make_number correctly.
23923 (face_for_char): Delete unused vars.
23924 (Fset_fontset_font): Doc fix. Delete unused vars.
23925
23926 * doc.c (Fsubstitute_command_keys): Delete unused vars.
23927
23928 * composite.c (update_compositions): Declare arg.
23929
23930 * cm.c (calccost, cmgoto): Declare args.
23931
23932 * charset.c: Remove `emacs' conditional. Doc fixes.
23933 (map_char_table_for_charset): Declare.
23934
23935 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
23936
23937 * ccl.c: Remove `emacs' conditional.
23938
239392008-02-01 Kenichi Handa <handa@m17n.org>
23940
23941 The following changes are to allow specifying multiple font
23942 patterns for a character range (specified by script or charset).
23943
23944 * Makefile.in (abbrev.o): Depend on syntax.h.
23945 (xfaces.o): Depend on charset.h.
23946
23947 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
23948 SINGLE_BYTE_CHAR_P.
23949
23950 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
23951
23952 * character.h (Vchar_script_table): Extern it.
23953
23954 * character.c (Vscript_alist): Delete.
23955 (Vchar_script_table, Qchar_script_table): New variable.
23956 (syms_of_character): Declare Vchar_script_table as a lisp variable
23957 and initialize it.
23958
23959 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
23960 have property char-table-extra-slots, make no extra slot.
23961
23962 * dispextern.h (struct face): Delete member `charset'.
23963 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
23964 SINGLE_BYTE_CHAR_P.
23965 (choose_face_font, lookup_non_ascii_face, font_name_registry):
23966 Add prototypes.
23967 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
23968 (generate_ascii_font_name): Rename from generate_ascii_font.
23969
23970 * fontset.h (get_font_repertory_func): New prototype.
23971 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
23972 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
23973
23974 * fontset.c (Qprepend, Qappend): New variables.
23975 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
23976 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
23977 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
23978 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
23979 (fontset_ref_and_range, fontset_add, reorder_font_vector)
23980 (load_font_get_repertory): New functions.
23981 (fontset_set): Delete.
23982 (fontset_face): New arg FACE. Return face ID, not face.
23983 Complete re-write to handle new fontset structure. Change caller.
23984 (free_face_fontset): Use ASET istead of AREF (X) = Y.
23985 (face_for_char): Don't call lookup_face.
23986 (make_fontset_for_ascii_face): New arg FACE.
23987 (fs_load_font): New arg CHARSET_ID. Don't check
23988 Vfont_encoding_alist here.
23989 (find_font_encoding): New function.
23990 (list_fontsets): Use STRINGP, not ! NILP.
23991 (accumulate_script_ranges): New function.
23992 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
23993 re-written to handle new fontset structure.
23994 (Ffontset_font): Return a copy of element.
23995 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
23996 docstring of font-encoding-alist.
23997
23998 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
23999 (Fset_fotset_font): Fix arguments to 5.
24000
24001 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
24002
24003 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
24004 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
24005 (highlight_trailing_whitespace): Adjust for the change of
24006 lookup_named_face.
24007
24008 * xfaces.c: Include charset.h.
24009 (load_face_font): Delete argument C. Change caller.
24010 (generate_ascii_font_name): Rename from generate_ascii_font.
24011 (font_name_registry): New function.
24012 (cache_face): Store ascii faces before non-ascii faces in buckets.
24013 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
24014 Lookup only ascii faces.
24015 (lookup_non_ascii_face): New function.
24016 (lookup_named_face): Delete argument C. Change caller.
24017 (lookup_derived_face): Delete argument C. Change caller.
24018 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
24019 a string, just call font_list with it.
24020 (choose_face_font): Delete arguments FACE and C. New arg
24021 FONT_SPEC. Change caller.
24022 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
24023 Change caller.
24024 (realize_non_ascii_face): New function.
24025 (realize_x_face): Call load_face_font here.
24026 (realize_tty_face): Delete argument C. Change caller.
24027 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
24028 get a face ID.
24029 (dump_realized_face): Don't print charset of FACE.
24030
24031 * xfns.c (x_set_font): Always call x_new_fontset and
24032 store_frame_parameter.
24033 (Fx_create_frame): Call x_new_fontset, not x_new_font.
24034 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
24035
24036 * xterm.h (x_get_font_repertory): Extern it.
24037
24038 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
24039 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
24040 it->multibyte_p is zero.
24041 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
24042 (x_new_fontset): If FONTSETNAME doesn't match any existing
24043 fontsets, create a new one.
24044 (x_get_font_repertory): New function.
24045
240462008-02-01 Kenichi Handa <handa@m17n.org>
24047
24048 * coding.c (Ffind_coding_systems_region_internal): Detect an
24049 ASCII only string correctly.
24050
24051 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
24052 version is 0.
24053
240542008-02-01 Kenichi Handa <handa@m17n.org>
24055
24056 * lread.c: Include "coding.h".
24057 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
24058 (load_each_byte, unread_char): New variables.
24059 (readchar_backlog): Delete.
24060 (readchar): Return a character unless load_each_byte is nonzero.
24061 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
24062 cons. If unread_char is not -1, simply return it.
24063 (unreadchar): Handle the case that readcharfun is
24064 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
24065 (read_multibyte): Delete.
24066 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
24067 (read_emacs_mule_char): New functions.
24068 (Fload): Even if the file doesn't have the extension ".elc", if
24069 safe_to_load_p returns a positive version number, assume that the
24070 file contains bytecompiled code. If the version is less than 22,
24071 load the file while decoding multibyte sequences by emacs-mule.
24072 (readevalloop): Don't use readchar_backlog.
24073 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
24074 (Fread_from_string): Pay attention to the case that STREAM is a cons.
24075 (read_escape): Delete the arg BYTEREP.
24076 (read1): Set load_each_byte to 1 temporarily while handling
24077 #@NUMBER. Don't call read_multibyte.
24078 (read_vector): Call Fread with a cons. If readcharfun is
24079 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
24080 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
24081 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
24082 and Qload_force_doc_strings.
24083
240842008-02-01 Kenichi Handa <handa@m17n.org>
24085
24086 * xdisp.c (face_before_or_after_it_pos): Call
24087 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
24088
240892008-02-01 Kenichi Handa <handa@m17n.org>
24090
24091 * character.h (TRAILING_CODE_P): New macro.
24092 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
24093 (string_char_with_unification): Fix prototype.
24094 (Vscript_alist): Extern it.
24095
24096 * character.c (Vscript_alist): New variable.
24097 (string_char_with_unification, str_as_unibyte)
24098 (string_escape_byte8): Add `const' to local variables.
24099 (syms_of_character): Declare script-alist as a Lisp variable.
24100
24101 * charset.h (Vcharset_ordered_list): Extern it.
24102 (charset_ordered_list_tick): Extern it.
24103 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
24104 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
24105 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
24106 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
24107 (Funify_charset): Adjust for the change of Funify_charset.
24108
24109 * charset.c (charset_ordered_list_tick): New variable.
24110 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
24111 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 24112 deunify instead of unify a charset.
aac0c6e3
MR
24113 (string_xstring_p): Add `const' to local variables.
24114 (find_charsets_in_text): Add `const' to arguments and local variables.
24115 (encode_char): Adjust for the change of Funify_charset. Fix
24116 detecting of invalid code.
24117 (Fset_charset_priority): Increment charset_ordered_list_tick.
24118 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
24119 and TO_CODE.
24120
24121 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
24122 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
24123 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
24124 (decode_coding_ccl, consume_chars)
24125 (Ffind_coding_systems_region_internal)
24126 (Fcheck_coding_systems_region): Add `const' to local variables.
24127
24128 * print.c (print_object): Use octal form for printing the
24129 contents of a bool vector.
24130
241312008-02-01 Dave Love <fx@gnu.org>
24132
24133 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
24134 <version == 20>: Refuse to load.
24135
241362008-02-01 Dave Love <fx@gnu.org>
24137
24138 * fns.c: Move coding.h.
24139 (Qcodeset, Qdays, Qmonths): New.
24140 (concat): Use CHARACTERP instead of INTEGERP.
24141 (Flocale_codeset): Delete.
24142 (Flanginfo): New function.
24143 (syms_of_fns): Change accordingly.
24144
24145 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
24146
241472008-02-01 Dave Love <fx@gnu.org>
24148
24149 * casetab.c (init_casetab_once, init_casetab_once): Fix
24150 CHAR_TABLE_SET call.
24151
24152 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
24153
24154 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
24155
24156 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
24157 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
24158 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
24159
24160 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
24161
24162 * coding.c (ENCODE_DESIGNATION, decode_eol)
24163 (make_conversion_work_buffer, code_conversion_restore)
24164 (Fdefine_coding_system_internal): Convert Lisp types.
24165 (code_conversion_restore): Use EQ, not ==.
24166 (Fencode_coding_string): Fix code_convert_string call.
24167
24168 * coding.h (code_convert_region): Fix prototype.
24169
24170 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
24171
24172 * fontset.c (fontset_ref, fontset_set, fs_load_font)
24173 (Ffontset_info): Convert Lisp types.
24174
24175 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
24176
24177 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
24178
24179 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
24180
24181 * chartab.c: Include "...h", not <...h> in some cases.
24182
24183 * callproc.c (Fcall_process): Remove unused variables.
24184
241852008-02-01 Dave Love <fx@gnu.org>
24186
24187 * coding.c (Fset_coding_system_priority): Allow null arg list.
24188
241892008-02-01 Dave Love <fx@gnu.org>
24190
24191 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
24192 (Fself_insert_and_exit): Use CHARACTERP.
24193
24194 * callproc.c (Fcall_process): Remove unused vars.
24195
24196 * xterm.c (XTread_socket): Add extra dead keysyms.
24197
24198 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
24199
24200 * dispextern.h: Remove prototypes for redraw_frame,
24201 redraw_garbaged_frames.
24202
24203 * cmds.c (Fself_insert_command): Use CHARACTERP.
24204
24205 * chartab.c (make_sub_char_table): Remove unused var.
24206 (Fset_char_table_default, Fmap_char_table): Doc fix.
24207
24208 * keymap.c (access_keymap): Remove generic char code.
24209 (push_key_description): Use CHARACTERP.
24210
242112008-02-01 Dave Love <fx@gnu.org>
24212
24213 * charset.c: Doc fixes.
24214 (Funify_charset): Extra checking.
24215
242162008-02-01 Dave Love <fx@gnu.org>
24217
24218 * lread.c: Remove some unused variables.
24219 (safe_to_load_p): If safe, return the magic number version byte.
24220 (Fload): Maybe use load-with-code-conversion.
24221
242222008-02-01 Kenichi Handa <handa@m17n.org>
24223
24224 * category.c (Fmodify_category_entry): Don't modify the contents
24225 of category_set for characters out of the range. Avoid
24226 unnecessary modification.
24227
24228 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
24229 Vchar_unify_table. The default value of the table is now nil.
24230
24231 * character.c (syms_of_character): Setup Vchar_width_table for
24232 eight-bit-control and raw-byte chars.
24233
24234 * charset.h (enum define_charset_arg_index): Delete
24235 charset_arg_parents and add charset_arg_subset and
24236 charset_arg_superset.
24237 (enum charset_attr_index): Delete charset_parents and add
24238 charset_subset and charset_superset.
24239 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
24240 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
24241 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
24242 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
24243 (CHARSET_SUPERSET): New macros.
24244 (charset_work): Extern it.
24245 (ENCODE_CHAR): Use charset_work.
24246 (CHAR_CHARSET_P): Adjust for the change of encoder format.
24247 (map_charset_chars): Extern it.
24248
24249 * charset.c (load_charset_map): Set the default value of encoder
24250 and deunifier char-tables to nil.
24251 (map_charset_chars): Change argument. Change callers. Use
24252 map_char_table_for_charset instead of map_char_table.
24253 (Fmap_charset_chars): New optional args from_code and to_code.
24254 (Fdefine_charset_internal): Adjust for the change of
24255 `define-charset' (:parents -> :subset or :superset).
24256 (charset_work): New variable.
24257 (encode_char, syms_of_charset): Adjust for the change of
24258 Fdefine_charset_internal.
24259 (Ffind_charset_string): Setup the vector `charsets' correctly.
24260
24261 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
24262 the previous change.
24263 (char_table_ref_and_range): Adjust for the above change.
24264 (map_sub_char_table_for_charset): New function.
24265 (map_char_table_for_charset): New function.
24266
24267 * keymap.c (describe_vector): Handle a char-table directly here.
24268 (describe_char_table): Delete.
24269
24270 * lisp.h (map_charset_chars): Delete.
24271
242722008-02-01 Dave Love <fx@gnu.org>
24273
24274 * fns.c (count_combining): Comment out (unused).
24275 (Flocale_codeset): New.
24276 (syms_of_fns): Defsubr it.
24277
24278 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
24279 (size_t): Remove.
24280
242812008-02-01 Dave Love <fx@gnu.org>
24282
24283 * Makefile.in (chartab.o): Depend on charset.h.
24284
242852008-02-01 Kenichi Handa <handa@m17n.org>
24286
24287 * character.c (syms_of_character): Set the default value of
24288 Vprintable_chars to Qnil.
24289
242902008-02-01 Dave Love <fx@gnu.org>
24291
24292 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
24293
242942008-02-01 Kenichi Handa <handa@m17n.org>
24295
24296 * charset.c (load_charset_map): Handle the case that from < to
24297 correctly.
24298
24299 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
24300 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
24301 Pay attention to raw-8-bit chars.
24302
243032008-02-01 Kenichi Handa <handa@m17n.org>
24304
24305 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
24306 It is not bytecompiled now.
24307
24308 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
24309 (charset_jisx0208): New variables.
24310 (Fdefine_charset_internal): Setup them if appropriate.
24311 (init_charset_once): Initialize them to -1.
24312
24313 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
24314 (charset_jisx0208): Extern them.
24315
24316 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
24317 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
24318 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
24319 (setup_iso_safe_charsets): Fix arguments to Fassq.
24320 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
24321 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
24322 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
24323 (encode_coding_iso_2022): Change the 1st arg to
24324 ENCODE_ISO_CHARACTER to a variable.
24325
243262008-02-01 Kenichi Handa <handa@m17n.org>
24327
24328 * charset.h (enum define_charset_arg_index): New enums
24329 charset_arg_min_code and charset_arg_max_code.
24330 (struct charset): New member char_index_offset.
24331
24332 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
24333 Take charset->char_index_offset into account.
24334 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
24335 args[charset_arg_max_code]. Setup charset.char_index_offset.
24336 (syms_of_charset): Fix args to Fdefine_charset_internal.
24337
243382008-02-01 Dave Love <fx@gnu.org>
24339
24340 * coding.c (decode_coding_utf_8): Reject overlong sequences.
24341
243422008-02-01 Dave Love <fx@gnu.org>
24343
24344 * coding.c: Doc fixes.
24345 (Fcoding_system_aliases): Fix return value.
24346 (Qmac): Remove (duplicated) definition.
24347
243482008-02-01 Dave Love <fx@gnu.org>
24349
362654a6
JB
24350 * charset.c (Fcharset_priority_list, Fset_charset_priority):
24351 New functions.
aac0c6e3
MR
24352
24353 * character.c (Fstring): Doc fix.
24354
24355 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
24356
362654a6 24357 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
24358 (font-encoding-alist): Doc fix.
24359
243602008-02-01 Dave Love <fx@gnu.org>
24361
24362 * term.c (costs_set): Declare static, non-initialized for pcc.
24363 (encode_terminal_code): Remove unused var.
24364
24365 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
24366 for K&R.
24367
24368 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
24369
24370 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
24371 (suffixes): Move out of make_subsidiaries for K&R.
24372
24373 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
24374
24375 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
24376
243772008-02-01 Dave Love <fx@gnu.org>
24378
24379 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
24380
24381 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
24382
243832008-02-01 Yong Lu <lyongu@asia-infonet.com>
24384
24385 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
24386
24387 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
24388
243892008-02-01 Kenichi Handa <handa@m17n.org>
24390
24391 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
24392 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
24393
243942008-02-01 Kenichi Handa <handa@m17n.org>
24395
24396 * coding.c (decode_coding_charset): Adjust for the change of
24397 Fdefine_coding_system_internal.
24398 (Fdefine_coding_system_internal): For a coding system of
24399 `charset' type, store a list of charset IDs in
24400 `charset_attr_charset_valids' element of coding attributes.
24401
244022008-02-01 Kenichi Handa <handa@m17n.org>
24403
24404 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
24405 (emacs_mule_char): New arg src. Delete arg `composition'. Change
24406 caller. Handle 2-byte and 3-byte charsets correctly.
24407 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
24408 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
24409 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
24410 (DECODE_EMACS_MULE_21_COMPOSITION): Call
24411 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
24412 sequence.
24413 (decode_coding_emacs_mule): Handle composition correctly. Rewind
24414 `src' and `consumed_chars' correctly before calling emacs_mule_char.
24415 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
24416 and alt&rule composition.
24417 (decode_coding_iso_2022): Handle composition correctly.
24418 (init_coding_once): Setup emacs_mule_bytes for private charsets.
24419
24420 * charset.c (Fdefine_charset_internal): Fix bug for the case of
24421 re-defining a charset. If the charset has :emacs-mule-id, setup
24422 emacs_mule_bytes.
24423 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
24424
244252008-02-01 Kenichi Handa <handa@m17n.org>
24426
24427 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
24428 (encode_coding_big5, encode_coding_charset): If coding requires safe
24429 encoding, produce a character specified by
24430 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
24431
244322008-02-01 Dave Love <fx@gnu.org>
24433
24434 * xterm.c (XSetIMValues): Declare.
24435
24436 * process.c: Conditionally include sys/wait.h, pty.h.
24437
24438 * print.c (print_object): Fix print format for 64-bit systems.
24439
24440 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
24441
24442 * buffer.c (emacs_strerror): Declare.
24443
24444 * fontset.c (Fclear_face_cache): Declare.
24445 (accumulate_font_info): Comment-out (unused).
24446 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
24447 variables.
24448
24449 * character.h (string_escape_byte8): Declare.
24450
24451 * charset.c (load_charset_map, load_charset_map_from_file): Remove
24452 unused vars.
24453 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
24454 (Fmap_charset_chars): Doc fix.
24455
24456 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
24457 (Fset_coding_system_priority, Fset_coding_system_priority)
24458 (Fdefine_coding_system_internal): Doc fix.
24459
244602008-02-01 Dave Love <fx@gnu.org>
24461
24462 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
24463
244642008-02-01 Kenichi Handa <handa@m17n.org>
24465
24466 * character.c (string_escape_byte8): Make multibyte string with
24467 correct size.
24468
24469 * charset.c (Fmake_char): Delete unnecessary code.
24470
244712008-02-01 Kenichi Handa <handa@m17n.org>
24472
24473 * xfns.c (x_encode_text): Allocate coding.destination here, and
24474 call encode_coding_object with dst_object Qnil.
24475
24476 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
24477 multibyte form correctly.
24478
24479 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
24480 against Vfont_encoding_alist.
24481
24482 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
24483 handling of charset list.
24484 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
24485 (decode_coding_object): Move point to coding->dst_pos before
24486 calling post-read-conversion function.
24487 (encode_coding_object): Give correct arguments to
24488 pre-write-conversion. Ignore the return value of
24489 pre-write-conversion function. Pay attention to the case that
24490 pre-write-conversion changes the current buffer. If dst_object is
24491 Qt, even if coding->src_bytes is zero, allocate at least one byte
24492 to coding->destination.
24493
24494 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
24495
24496 * charset.c (Fmake_char): Make it more backward compatible.
24497 (Fmap_charset_chars): Fix docstring.
24498
244992008-02-01 Dave Love <fx@gnu.org>
24500
24501 * coding.c: Doc fixes.
24502 (Fdefine_coding_system_alias): Use names, not symbols, in
24503 coding-system-alist.
24504
245052008-02-01 Kenichi Handa <handa@m17n.org>
24506
24507 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
24508 of calling free_realized_face.
24509
245102008-02-01 Yong Lu <lyongu@asia-infonet.com>
24511
24512 * charset.c (read_hex): Don't treat SPC as a comment starter.
24513 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
24514 (Fdecode_char): Fix typo.
24515
245162008-02-01 Kenichi Handa <handa@m17n.org>
24517
24518 * charset.h (struct charset): New member `code_space_mask'.
24519
24520 * coding.c (coding_set_source): Delete the local variable beg_byte.
24521 (encode_coding_charset, Fdefine_coding_system_internal):
24522 Delete the local variable charset.
24523 (Fdefine_coding_system_internal): Setup
24524 attrs[coding_attr_charset_valids] correctly.
24525
24526 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
24527 member to check if CODE is valid or not.
24528 (Fdefine_charset_internal): Initialize `code_space_mask' member.
24529 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
24530 is within the range of charset->min_code and carset->max_code.
24531
245322008-02-01 Dave Love <fx@gnu.org>
24533
24534 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
24535
24536 * dispextern.h (generate_ascii_font): Fix return type.
24537
24538 * xfaces.c (generate_ascii_font): Fix arg declaration.
24539
24540 * coding.c (coding_inherit_eol_type)
24541 (Fset_terminal_coding_system_internal)
24542 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
24543
245442008-02-01 Kenichi Handa <handa@m17n.org>
24545
24546 * coding.c (decode_coding_charset, encode_coding_charset): Handle
24547 multiple charsets correctly.
24548
245492008-02-01 Kenichi Handa <handa@m17n.org>
24550
24551 * search.c (boyer_moore): Fix handling of multibyte character
24552 translation.
24553
24554 * xdisp.c (display_mode_element): When the variable `elt' is
24555 changed, update `this' and `lisp_string'.
24556
245572008-02-01 Kenichi Handa <handa@m17n.org>
24558
24559 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
24560
24561 * callproc.c (Fcall_process): Be sure to give the current buffer
24562 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
24563
24564 * charset.c (struct charset_map_entries): New struct.
24565 (load_charset_map): Rename from parse_charset_map. New args
24566 entries and n_entries. Change caller.
24567 (load_charset_map_from_file): Rename from load_charset_map.
24568 Change caller. New arg control_flag. Call load_charset_map at
24569 the tail.
24570 (load_charset_map_from_vector): New function.
24571 (Fdefine_charset_internal): Setup charset.compact_codes_p.
24572 (encode_char): If the charset is compact, change a character index
24573 to a code point.
24574
24575 * coding.c (coding_alloc_by_making_gap): Check the case that the
24576 source and destination are the same correctly.
24577 (decode_coding_raw_text): Set coding->consumed_char and
24578 coding->consumed to 0.
24579 (produce_chars): If coding->chars_at_source is nonzero, update
24580 coding->consumed_char and coding->consumed before calling
24581 alloc_destination.
24582 (Fdefine_coding_system_alias): Register ALIAS in
24583 Vcoding_system_alist.
24584 (syms_of_coding): Define `no-conversion' coding system at the tail.
24585
24586 * fileio.c (Finsert_file_contents): Set coding_system instead of
24587 val. If the current buffer is multibyte, always call
24588 decode_coding_gap.
24589
24590 * xfaces.c (try_font_list): Give higher priority to fontset's
24591 family than face's family.
24592
245932008-02-01 Kenichi Handa <handa@m17n.org>
24594
24595 * callproc.c (Fcall_process): Be sure to give the current buffer
24596 to decode_coding_c_string.
24597
24598 * xfaces.c (try_font_list): Give a family specified in a fontset
24599 higher priority than a family specified in a face.
24600
246012008-02-01 Kenichi Handa <handa@m17n.org>
24602
24603 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
24604 Fix arguments to insert_from_buffer.
24605
24606 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
24607
246082008-02-01 Kenichi Handa <handa@m17n.org>
24609
24610 * coding.c (produce_chars): Set the variable `multibytep' correctly.
24611 (decode_coding_gap): Set coding->dst_multibyte correctly.
24612
246132008-02-01 Kenichi Handa <handa@m17n.org>
24614
24615 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
24616 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
24617 (encode_coding_utf_16): Substitute coding->default_char for
24618 non-Unicode characters.
24619 (decode_coding): Don't call record_insert here.
24620 (setup_coding_system): Initialize `surrogate' of
24621 coding->spec.utf_16 to 0.
24622 (EMIT_ONE_BYTE): Fix for multibyte case.
24623
24624 * insdel.c (insert_from_gap): Call record_insert.
24625
246262008-02-01 Kenichi Handa <handa@m17n.org>
24627
24628 * casefiddle.c (casify_region): Fix multibyte case.
24629
24630 * character.c (c_string_width): Add return type `int'.
24631 (char_string_with_unification): Delete arg ADVANCED.
24632
24633 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
24634 (CHAR_STRING): Adjust for the change of char_string_with_unification.
24635 (CHAR_STRING_ADVANCE): Make it do-while statement.
24636
24637 * chartab.c (sub_char_table_set_range): Optimize for the case
24638 DEPTH == 3. Add workaround code for a GCC optimization bug.
24639
24640 * charset.c (parse_charset_map): Remove an unused variable.
24641
24642 * coding.c: Delete unused variables.
24643
24644 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
24645 earlier. If inserted is zero and the coding system doesn't
24646 require flushing, don't call decode_coding_gap.
24647
24648 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
24649
246502008-02-01 Kenichi Handa <handa@m17n.org>
24651
24652 The following changes are for using Unicode as an internal
24653 character model, and use UTF-8 format for buffer/string
24654 representation.
24655
24656 * .gdbinit (xchartable): Adjust for the change of char table structure.
24657 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
24658
24659 * Makefile.in (obj): Add character.o and chartab.o.
24660 (lisp, shortlisp): Remove utf-8.elc.
24661 (*.o): For many files, change dependency on charset.h to
24662 character.h, and add dependency on character.h.
24663 (character.o, chartab.o): New targets.
24664
24665 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
24666 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
24667 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
24668 of "charset.h".
24669
24670 * dired.c, filelock.c: Include "character.h".
24671
24672 * alloc.c: Include "character.h" instead of "charset.h".
24673 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
24674 (syms_of_alloc): Remove defsubr for Smake_char_table.
24675
24676 * buffer.c: Include "character.h" instead of "charset.h", don't
24677 include "coding.h".
24678 (Fset_buffer_multibyte): Adjust for UTF-8.
24679
24680 * buffer.h: EXFUN Fbuffer_live_p.
24681
24682 * callproc.c: Include "character.h" instead of "charset.h".
24683 (Fcall_process): Big change for the new code-conversion APIs.
24684
24685 * casetab.c: Include "character.h" instead of "charset.h".
24686 (set_canon, set_identity, shuffle): Adjust for the new
24687 map_char_table spec.
24688 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
24689 accessing the char table structure.
24690
24691 * chartab.c: New file that implements char table.
24692
24693 * category.c: Include "character.h".
24694 (copy_category_entry): New function.
24695 (copy_category_table): Call map_char_table and copy_category_entry.
24696 (Fmake_category_table): Initialize all top-level slots.
24697 (char_category_set): New function.
24698 (modify_lower_category_set): Delete.
24699 (Fmodify_category_entry): Call char_table_ref_and_range.
24700
24701 * category.h (CATEGORY_SET): Just call char_category_set.
24702
24703 * ccl.c: Include "character.h".
24704 (Qccl, Qcclp): New variables.
24705 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
24706 it's less than 256.
24707 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
24708 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
24709 and DST type.
24710 (ccl_driver): Change types of argument, adjust code accordingly.
24711 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
24712 ccl_driver.
24713 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
24714
24715 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
24716 New members src_multibyte, dst_multibyte, consumed, and produced.
24717 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
24718 (CODING_SPEC_CCL_PROGRAM): New macro.
24719 (ccl_driver): Update prototype.
24720 (Qccl, Qcclp, Fccl_program_p): Extern them.
24721 (CHECK_CCL_PROGRAM): New macro.
24722
24723 * character.c, character.h, chartab.c: New files.
24724
24725 * charset.c: Mostly re-written. Move character and multibyte sequence
24726 handling codes to character.c.
24727
24728 * charset.h: Mostly re-written. Move character and multibyte sequence
24729 handling codes to character.h.
24730
24731 * coding.c, coding.h: Mostly re-written.
24732
24733 * composite.c: Include "character.h" instead of "charset.h".
24734 (CHAR_WIDTH): Move to character.h.
24735 (HASH_KEY, HASH_VALUE): Delete.
24736
24737 * composite.h (enum composition_method): Change order of enumeration
24738 symbols.
24739
24740 * data.c: Include "character.h" instead of "charset.h".
24741 (Faref): Call CHAR_TABLE_REF for a char table.
24742 (Faset): Call CHAR_TABLE_SET for a char table.
24743
24744 * dispextern.h (free_realized_face, check_face_attribytes)
24745 (generate_ascii_font): Extern them.
24746 (free_realized_multibyte_face): Delete extern.
24747
24748 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
24749 table structure.
24750
24751 * editfns.c: Include "character.h" instead of "charset.h".
24752 (Fchar_to_string): Always call CHAR_STRING.
24753
24754 * emacs.c (main): Call init_charset_once, init_charset,
24755 syms_of_chartab, and syms_of_character.
24756
24757 * fileio.c: Include "character.h" instead of "charset.h".
24758 (Finsert_file_contents): Big change for the new code-conversion API.
24759 (choose_write_coding_system, Fwrite_region): Likewise.
24760 (build_annotations_2): Delete.
24761 (e_write): Big change for the new code-conversion API.
24762
24763 * fns.c: Include "character.h" instead of "charset.h".
24764 (copy_sub_char_table): Move to chartab.c.
24765 (Fcopy_sequence): Call copy_char_table for a char table.
24766 (concat): Delete codes calling count_multibyte.
24767 (string_char_to_byte, string_byte_to_char): Adjust for the new
24768 multibyte form.
24769 (internal_equal): Adjust for the change of char table structure.
24770 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
24771 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
24772 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
24773 (char_table_translate, optimize_sub_char_table)
24774 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
24775 chartab.c.
24776 (char_table_ref_and_index): Delete.
24777 (HASH_KEY, HASH_VALUE): Move to lisp.h.
24778 (Fmd5): Call preferred_coding_system instead of accessing
24779 Vcoding_category_list. Adjust for the new code-conversion API.
24780 (syms_of_fns): Move defsubr for char table related functions to
24781 chartab.c.
24782
24783 * fontset.c: Mostly re-written.
24784
24785 * fontset.h (struct font_info): Change type of the member encoding_type.
24786 (enum FONT_SPEC_INDEX): New enum.
24787 (fontset_font_pattern, fs_load_font): Update prototype.
24788 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
24789
24790 * indent.c: Include "character.h" instead of "charset.h".
24791 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
24792
24793 * insdel.c: Include "character.h" instead of "charset.h".
24794 (copy_text): Don't refer to Vnonascii_translation_table.
24795 (insert_from_gap): New function.
24796
24797 * keyboard.c: Include "character.h" instead of "charset.h".
24798 (command_loop_1): Never call direct_output_forward_char before
24799 a non-ASCII character.
24800 (read_char): If Vkeyboard_translate_table is a char table, always
24801 translate a character.
24802
24803 * keymap.c: Include "character.h".
24804 (store_in_keymap): Handle the case that IDX is a cons.
24805 (Fdefine_key): Handle the case that KEY is a cons and the car part
24806 is also a cons (range).
24807 (push_key_description): Adjust for the new character code.
24808 (describe_vector): Call describe_char_table for a char table.
24809 (describe_char_table): New function.
24810
24811 * keymap.h (describe_char_table): Extern it.
24812
24813 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
24814 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
24815 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
24816 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
24817 Delete.
24818 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
24819 structure.
24820 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
24821 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
24822 (CHARTAB_SIZE_BITS_3): New macros.
24823 (chartab_size): Extern it.
24824 (struct Lisp_Char_Table): Re-design.
24825 (struct Lisp_Sub_Char_Table): New structure.
24826 (HASH_KEY, HASH_VALUE): Move from fns.c.
24827 (CHARACTERBITS): Define as 22.
24828 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
24829 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
24830 (GC_SUB_CHAR_TABLE_P): New macro.
24831 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
24832 (code_convert_string_norecord): Deleted extern.
24833 (init_character_once, syms_of_character, init_charset)
24834 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
24835
24836 * lread.c: Include "character.h".
24837 (read_multibyte): New arg NBYTES.
24838 (read_escape): Change the meaning of returned *BYTEREP.
24839 (to_multibyte): Delete.
24840 (read1): Adjust the handling of char table and string.
24841
24842 * print.c: Include "character.h" instead of "charset.h".
24843 (print_string): Convert 8-bit raw bytes to octal form by
24844 string_escape_byte8.
24845 (print_object): Adjust for the new multibyte form. Print 8-bit
24846 raw bytes always in octal form. Handle sub char table correctly.
24847
24848 * process.c: Include "character.h" instead of "charset.h".
24849 (read_process_output, send_process): Adjust for the new
24850 code-conversion API.
24851
24852 * puresize.h (BASE_PURESIZE): Increase.
24853
24854 * regex.c: Include "character.h" instead of "charset.h".
24855 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
24856 (regex_compile): Accept a range whose starting and ending
24857 character have different leading bytes.
24858 (analyse_first): Adjust for the above change.
24859
24860 * search.c: Include "character.h" instead of "charset.h".
24861 (search_buffer, boyer_moore): Adjust for the new multibyte form.
24862 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
24863
24864 * syntax.c: Include "character.h" instead of "charset.h".
24865 (syntax_parent_lookup): Delete.
24866 (Fmodify_syntax_entry): Accept a cons as CHAR.
24867 (skip_chars): Adjust for the new multibyte form.
24868 (init_syntax_once): Call char_table_set_range instead of directly
24869 accessing the structure of a char table.
24870
24871 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
24872 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
24873 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
24874 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
24875
24876 * term.c: Include "buffer.h" and "character.h".
24877 (encode_terminal_code, write_glyphs): Adjust for the new
24878 code-conversion API.
24879 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
24880
24881 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
24882
24883 * xdisp.c: Include "character.h".
24884 (get_next_display_element): Adjust for the new multibyte form.
24885 (disp_char_vector): Adjust for the new char table structure.
24886 (decode_mode_spec_coding): Adjust for the new structure of
24887 coding system.
24888 (decode_mode_spec): Adjust for the new code-conversion API.
24889
24890 * xfaces.c: Include "character.h" instead of "charset.h".
24891 (load_face_font): Adjust for the change of choose_face_font and
24892 FS_LOAD_FONT.
24893 (generate_ascii_font): New function.
24894 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
24895 (set_font_frame_param): Adjust for the change of choose_face_font.
24896 (free_realized_face): Make it public.
24897 (free_realized_faces_for_fontset): Rename from
24898 free_realized_multibyte_face. Free also faces realized for ASCII.
24899 (choose_face_font): Change arguments. Adjust for the change of
24900 fontset_font_pattern and FS_LOAD_FONT.
24901
24902 * xfns.c: Include "character.h".
24903 (x_encode_text): Adjust for the new code-conversion API.
24904
24905 * xselect.c: Don't include "charset.h".
24906 (selection_data_to_lisp_data): Adjust for the new code conversion API.
24907
24908 * xterm.c: Include "character.h".
24909 (x_encode_char): New argument CHARSET. Change caller.
24910 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
24911 Call ENCODE_CHAR instead of SPLIT_CHAR.
24912 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
24913 CHAR_WIDTH instead of CHARSET_WIDTH.
24914 (XTread_socket): Adjust for the new code-conversion API.
24915 (x_new_font): Adjust for the change of FS_LOAD_FONT.
24916 (x_load_font): Adjust for the change of struct font.
24917
249182008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
24919
24920 * xfaces.c (face_at_buffer_position): Remove unused vars.
24921
249222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24923
24924 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
24925 Fix overflow checking.
24926
249272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24928
24929 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
24930 Cancel previous change.
24931
249322008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
24933
24934 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
24935 ccl->eight_bit_control. Fix check for buffer overflow.
24936 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
24937 (ccl_driver): Initialize extra_bytes to 0.
24938
249392008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
24940
24941 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
24942 return it ORed with ctrl_modifier.
24943
249442008-01-29 Miles Bader <miles@gnu.org>
24945
24946 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
24947
249482008-01-28 Jason Rumney <jasonr@gnu.org>
24949
24950 * w32.c (stat): Don't double check for networked drive.
24951
249522008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
24953
24954 * window.c (run_window_configuration_change_hook): New function.
24955 Code extracted from set_window_buffer. Set the selected frame.
24956 (set_window_buffer): Use it.
24957 * window.h (run_window_configuration_change_hook): Declare.
24958 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
24959
24960 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
24961
249622008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
24963
24964 * Makefile.in: Remove references to unused macros.
24965
249662008-01-26 Eli Zaretskii <eliz@gnu.org>
24967
24968 * w32.c (g_b_init_get_sid_sub_authority)
24969 (g_b_init_get_sid_sub_authority_count): New static variables.
24970 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
24971 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
24972 (init_user_info): Use them to retrieve uid and gid.
24973 Use 500/513, the Windows defaults, as Administrator's uid/gid.
24974 (fstat): Use pw_uid and pw_gid from the_passwd structure for
24975 st_uid and st_gid of the file.
24976
249772008-01-26 Jason Rumney <jasonr@gnu.org>
24978
24979 * w32.c (logon_network_drive): New function.
24980 (stat): Use it.
24981
249822008-01-26 Chong Yidong <cyd@stupidchicken.com>
24983
24984 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
24985 invisible text covered with an ellipsis.
24986
249872008-01-25 Richard Stallman <rms@gnu.org>
24988
24989 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
24990 jump back to beginning. Move some other initializations after that.
24991 (Qwindow_text_change_functions, Vwindow_text_change_functions):
24992 New variables.
24993 (syms_of_xdisp): Init them.
24994
24995 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
24996
24997 * buffer.c (reset_buffer_local_variables):
24998 Implement `permanent-local-hook'.
24999 (Qpermanent_local_hook): New variable.
25000 (syms_of_buffer): Init and staticpro it.
25001
250022008-01-25 Michael Albinus <michael.albinus@gmx.de>
25003
25004 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
25005
250062008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
25007
25008 * fns.c (Fclrhash): Return TABLE.
25009
250102008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25011
25012 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
25013 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
25014 is set even without positional changes.
25015 (x_scroll_bar_clear): Set bar->redraw_needed_p.
25016
25017 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
25018
250192008-01-23 Jason Rumney <jasonr@gnu.org>
25020
25021 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
25022
25023 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
25024 the unicode range available in MULE by locale-coding-system.
25025 Improve dbcs lead byte detection. Set event timestamp and modifiers
25026 earlier.
25027
250282008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25029
25030 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
25031 [MAC_OSX] (init_mac_osx_environment): Initialize it.
25032 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
25033 when used on child processes.
25034
250352008-01-21 Michael Albinus <michael.albinus@gmx.de>
25036
25037 * dbusbind.c (Fdbus_method_return_internal): Rename from
25038 Fdbus_method_return.
25039 (Fdbus_unregister_object): Move to dbus.el.
25040 (Fdbus_call_method, Fdbus_method_return_internal)
25041 (Fdbus_send_signal): Improve debug messages.
25042
250432008-01-20 Martin Rudalics <rudalics@gmx.at>
25044
25045 * undo.c (undo_inhibit_record_point): New variable.
25046 (syms_of_undo): Initialize it.
25047 (record_point): Don't record point when undo_inhibit_record_point
25048 is set.
25049
250502008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
25051
25052 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
25053
25054 * xdisp.c (Qauto_hscroll_mode): New var.
25055 (syms_of_xdisp): Initialize it.
25056 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
25057 window's buffer.
25058 (hscroll_windows): Don't check automatic_hscrolling_p here.
25059
25060 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
25061 vscroll if we're setting window-buffer to the value it already has.
25062
250632008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
25064
25065 * m/intel386.h: Remove references to XENIX.
25066
250672008-01-17 Andreas Schwab <schwab@suse.de>
25068
25069 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
25070 instead of HAVE_X86_64_LIB64_DIR.
25071 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
25072
250732008-01-17 Glenn Morris <rgm@gnu.org>
25074
25075 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
25076 to HAVE_X86_64_LIB64_DIR.
25077
250782008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
25079
25080 * s/irix3-3.h:
25081 * s/irix4-0.h:
25082 * s/386-ix.h:
25083 * s/domain.h:
25084 * s/hpux9-x11r4.h:
25085 * s/hpux9shxr4.h: Remove files for systems no longer supported.
25086
25087 * sysdep.c: Remove code containing references to symbols defined
25088 by unsupported systems.
25089
250902008-01-16 Glenn Morris <rgm@gnu.org>
25091
25092 * coding.c (select-safe-coding-system-function): Doc fix.
25093
250942008-01-15 Glenn Morris <rgm@gnu.org>
25095
25096 * config.in: Revert 2008-01-13 change: this is a generated file.
25097
250982008-01-13 Tom Tromey <tromey@redhat.com>
25099
25100 * lisp.h: Fix typo.
25101
251022008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
25103
25104 * m/sequent-ptx.h:
25105 * m/sequent.h:
25106 * s/ptx.h:
25107 * s/ptx4-2.h:
25108 * s/ptx4.h: Remove files for systems no longer supported.
25109
25110 * callproc.c (Fcall_process): Fix previous change.
25111
251122008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
25113
25114 * unexsunos4.c: Remove file, system not supported anymore.
25115
25116 * m/mips.h:
25117 * m/intel386.h:
25118 * callproc.c:
25119 * config.in:
25120 * ecrt0.c:
25121 * emacs.c:
25122 * fileio.c:
25123 * frame.c:
25124 * getpagesize.h:
25125 * keyboard.c:
25126 * lread.c:
25127 * process.c:
25128 * puresize.h:
25129 * sysdep.c:
25130 * systty.h:
25131 * syswait.h:
25132 * unexec.c:
25133 * xdisp.c:
25134 * alloc.c: Remove code containing references to symbols defined by
25135 unsupported systems.
25136
251372008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
25138
25139 * coding.c (detect_coding_mask): Fix previous change.
25140
251412008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
25142
25143 * coding.c (detect_coding_iso2022): New arg
25144 latin_extra_code_state. Allow Latin extra codes only
25145 when *latin_extra_code_state is nonzero.
25146 (detect_coding_mask): If there is a NULL byte, detect the encoding
25147 as UTF-16 or binary. If Latin extra codes exist, detect the
25148 encoding as ISO-2022 only when there's no other proper encoding is
25149 found.
25150
251512008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25152
25153 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
25154 #ifdef MAC_OS.
25155
251562008-01-08 Richard Stallman <rms@gnu.org>
25157
25158 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
25159
251602008-01-06 Nick Roberts <nickrob@snap.net.nz>
25161
25162 * keyboard.c (parse_menu_item): Don't enclose key bindings on
25163 menu bar in parentheses.
25164
251652008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
25166
25167 * m/7300.h:
25168 * m/acorn.h:
25169 * m/alliant-2800.h:
25170 * m/alliant.h:
25171 * m/alliant1.h:
25172 * m/alliant4.h:
25173 * m/altos.h:
25174 * m/amdahl.h:
25175 * m/apollo.h:
25176 * m/att3b.h:
25177 * m/aviion-intel.h:
25178 * m/aviion.h:
25179 * m/celerity.h:
25180 * m/clipper.h:
25181 * m/cnvrgnt.h:
25182 * m/convex.h:
25183 * m/cydra5.h:
25184 * m/delta88k.h:
25185 * m/dpx2.h:
25186 * m/dual.h:
25187 * m/elxsi.h:
25188 * m/f301.h:
25189 * m/gould-np1.h:
25190 * m/gould.h:
25191 * m/i860.h:
25192 * m/ibmps2-aix.h:
25193 * m/ibmrt-aix.h:
25194 * m/ibmrt.h:
25195 * m/irist.h:
25196 * m/is386.h:
25197 * m/isi-ov.h:
25198 * m/mega68.h:
25199 * m/mg1.h:
25200 * m/news-r6.h:
25201 * m/news-risc.h:
25202 * m/news.h:
25203 * m/nh3000.h:
25204 * m/nh4000.h:
25205 * m/ns16000.h:
25206 * m/ns32000.h:
25207 * m/nu.h:
25208 * m/orion.h:
25209 * m/orion105.h:
25210 * m/paragon.h:
25211 * m/pfa50.h:
25212 * m/plexus.h:
25213 * m/pyramid.h:
25214 * m/pyrmips.h:
25215 * m/sh3el.h:
25216 * m/sps7.h:
25217 * m/sr2k.h:
25218 * m/stride.h:
25219 * m/sun1.h:
25220 * m/sun2.h:
25221 * m/sun3-68881.h:
25222 * m/sun3-fpa.h:
25223 * m/sun3-soft.h:
25224 * m/sun3.h:
25225 * m/sun386.h:
25226 * m/symmetry.h:
25227 * m/tad68k.h:
25228 * m/tahoe.h:
25229 * m/targon31.h:
25230 * m/tek4300.h:
25231 * m/tekxd88.h:
25232 * m/tower32.h:
25233 * m/tower32v3.h:
25234 * m/ustation.h:
25235 * m/wicat.h:
25236 * m/xps100.h:
25237 * s/cxux.h:
25238 * s/cxux7.h:
25239 * s/dgux.h:
25240 * s/dgux4.h:
25241 * s/dgux5-4-3.h:
25242 * s/dgux5-4r2.h:
25243 * s/esix.h:
25244 * s/esix5r4.h:
25245 * s/hiuxmpp.h:
25246 * s/hiuxwe2.h:
25247 * s/iris3-5.h:
25248 * s/iris3-6.h:
25249 * s/isc2-2.h:
25250 * s/isc3-0.h:
25251 * s/isc4-0.h:
25252 * s/isc4-1.h:
25253 * s/newsos5.h:
25254 * s/newsos6.h:
25255 * s/osf1.h:
25256 * s/osf5-0.h:
25257 * s/riscix1-1.h:
25258 * s/riscix12.h:
25259 * s/sco4.h:
25260 * s/sco5.h:
25261 * s/sunos4-0.h:
25262 * s/sunos4-1.h:
25263 * s/sunos413.h:
25264 * s/sunos4shr.h:
25265 * s/umax.h:
25266 * s/unipl5-2.h:
25267 * s/xenix.h:
25268 * cxux-crt0.s:
25269 * unexapollo.c:
25270 * unexconvex.c:
25271 * unexenix.c:
25272 * unexsni.c: Remove files for systems no longer supported.
25273
25274 * m/intel386.h: Remove references to unsupported systems.
25275
25276 * w32.c (get_emacs_configuration): Remove reference to i860.
25277
25278 * sysdep.c: Remove dead code.
25279
252802008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
25281
25282 * s/rtu.h:
25283 * m/masscomp.h: Remove files. Platform is obsolete.
25284
252852008-01-04 Michael Albinus <michael.albinus@gmx.de>
25286
25287 * dbusbind.c (Fdbus_method_return): New function.
25288 (xd_read_message): Add the serial number to the event.
25289 (Fdbus_register_method): Activate the function.
25290
252912008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
25292
25293 * keyboard.c (read_key_sequence): Fix typo.
25294
252952008-01-03 Michael Albinus <michael.albinus@gmx.de>
25296
25297 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
25298 (xd_signature, xd_append_arg): Handle element type detection for
25299 empty arrays.
25300 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
25301 SDATA () calls; this must be solved more general.
25302 (Fdbus_register_signal): Use SBYTES instead of strlen.
25303
253042008-01-03 Magnus Henoch <magnus@zemdatav>
25305
25306 * dbusbind.c (xd_append_arg): Use unsigned char instead of
25307 unsigned int for byte values (necessary for big-endian platform).
25308 (Fdbus_call_method): Handle the case of no returned arguments.
25309
253102007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
25311
25312 * dbusbind.c (xd_read_message): Use non-static input_event struct.
25313
253142007-12-31 Magnus Henoch <mange@freemail.hu>
25315
25316 * dbusbind.c (xd_signature): Signature of variant is just "v".
25317
253182007-12-30 Michael Albinus <michael.albinus@gmx.de>
25319
25320 * dbusbind.c: Fix several errors and compiler warnings.
25321 Reported by Tom Tromey <tromey@redhat.com>.
25322 (XD_ERROR, XD_DEBUG_MESSAGE)
25323 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
25324 (xd_append_arg): Part for basic D-Bus types rewritten.
25325 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
25326 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
25327 appropriate.
25328 (xd_read_message): Return Qnil. Don't signal an error; it is not
25329 useful during event reading.
25330 (Fdbus_register_signal): Signal an error if the check for
25331 FUNCTIONP fails.
25332 (Fdbus_register_method): New function. The implementation is not
25333 complete, the call of the function signals an error therefore.
25334 (Fdbus_unregister_object): New function, renamed from
25335 Fdbus_unregister_signal. The initial check signals an error, if
25336 the object is not well formed.
25337
253382007-12-30 Richard Stallman <rms@gnu.org>
25339
25340 * textprop.c (get_char_property_and_overlay):
25341 Signal error if POSITION is out of range in a buffer.
25342
253432007-12-29 Martin Rudalics <rudalics@gmx.at>
25344
25345 * w32fns.c (Fx_create_frame): Make copy of frame parameters
25346 because the original parameters are in pure storage now.
25347
253482007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25349
25350 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
25351
253522007-12-22 Eli Zaretskii <eliz@gnu.org>
25353
25354 * callint.c (syms_of_callint) <command-history>: Add reference to
25355 history-length in the doc string.
25356
253572007-12-17 Jason Rumney <jasonr@gnu.org>
25358
25359 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
25360 before passing as wParam.
25361
253622007-12-22 Michael Albinus <michael.albinus@gmx.de>
25363
25364 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
25365 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
25366 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
25367 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
25368 as number.
25369 (Fdbus_call_method): Fix docstring.
25370
253712007-12-21 Michael Albinus <michael.albinus@gmx.de>
25372
25373 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
25374 New macros.
25375 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
25376 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
25377 Simplify.
25378 (xd_signature): New function.
25379 (xd_append_arg): Compute also signatures. Major rewrite.
25380 (xd_retrieve_arg): Make debug messages friendly.
25381 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
25382 Check for signatures of arguments.
25383
253842007-12-19 Michael Albinus <michael.albinus@gmx.de>
25385
25386 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
25387 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
25388 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
25389 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
25390 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
25391 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
25392 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
25393 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
25394 (xd_retrieve_value): Remove. Functionality included in ...
25395 (xd_append_arg): New function.
25396 (Fdbus_call_method, Fdbus_send_signal): Apply it.
25397
253982007-12-16 Michael Albinus <michael.albinus@gmx.de>
25399
25400 * dbusbind.c (top): Include <stdio.h>.
25401 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
25402 dbus_message_new_method_call and dbus_message_new_signal.
25403 (Fdbus_register_signal): Rename unique_name to uname.
25404 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
25405 non-existing unique name. Fix typos in matching rule. Return an
25406 object which is useful in Fdbus_unregister_signal.
25407 (Fdbus_unregister_signal): Reimplementation, in order to remove
25408 only the corresponding entry.
25409 (Vdbus_registered_functions_table): Change the order of entries.
25410 Apply these changes in xd_read_message and Fdbus_register_signal.
25411
254122007-12-16 Andreas Schwab <schwab@suse.de>
25413
25414 * fileio.c (Finsert_file_contents): Fix overflow check to not
25415 depend on undefined integer overflow.
25416
254172007-12-14 Jason Rumney <jasonr@gnu.org>
25418
25419 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
25420 for characters above 127.
25421
254222007-12-13 Jason Rumney <jasonr@gnu.org>
25423
25424 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
25425 before dereferencing array.
25426 (lookup_vk_code): Remove zero comparison.
25427
254282007-12-14 Michael Albinus <michael.albinus@gmx.de>
25429
25430 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
25431 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
25432 Use `unsigned int' instead of `uint'.
25433 (xd_read_message, Fdbus_register_signal): Split expressions into
25434 multiple lines before operators "&&" and "||", according to the
25435 GNU Coding Standards.
25436
254372007-12-14 Eli Zaretskii <eliz@gnu.org>
25438
25439 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
25440
254412007-12-12 Juri Linkov <juri@jurta.org>
25442
25443 * buffer.c (Frename_buffer): In interactive spec replace
25444 `read-buffer' with `read-string' that uses `buffer-name-history'
25445 as history, and the current buffer's name as default.
25446
254472007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
25448
25449 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
25450 manipulating the backtrace manually.
25451 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
25452 (struct backtrace, backtrace_list): Remove.
25453 (command_loop_1): Remove dead var `no_direct'.
25454
25455 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
25456 preserve non-built-in buffer-local variables.
25457 (Fkill_all_local_variables): Don't re-create&re-set permanent
25458 buffer-local variables.
25459
254602007-12-09 Juri Linkov <juri@jurta.org>
25461
25462 * buffer.c (Frename_buffer): Change interactive spec from "s" to
25463 Lisp code that uses `read-buffer' with current buffer as default.
25464
254652007-12-08 Michael Albinus <michael.albinus@gmx.de>
25466
25467 * dbusbind.c (xd_read_message): Generate an event for every
25468 registered handler. There might be several handlers registered
25469 for the same signal.
25470 (Fdbus_register_signal): Don't overwrite a registration for the
25471 same signal. Add a new registration if handlers are different.
25472 (Vdbus_registered_functions_table): Rework doc string.
25473
254742007-12-07 Michael Albinus <michael.albinus@gmx.de>
25475
25476 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
25477 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
25478 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
25479 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
25480 Unify argument lists.
25481 (xd_read_message, Fdbus_register_signal): Reorder and extend event
25482 arguments and hash table keys. Use unique name for service.
25483 (Fdbus_unregister_signal): Remove checks.
25484 (Vdbus_registered_functions_table): Fix doc string.
25485
254862007-12-05 Magnus Henoch <mange@freemail.hu>
25487
25488 * process.c (make_process): Initialize pty_flag to 0.
25489
254902007-12-05 Jason Rumney <jasonr@gnu.org>
25491
25492 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
25493 specified XBMs.
25494
254952007-12-05 Richard Stallman <rms@gnu.org>
25496
25497 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
25498
254992007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25500
25501 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
25502 New variable.
25503 (mac_try_close_socket) [MAC_OSX]: New function.
25504 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
25505 Update cfsockets_for_select. Replace invalid CFRunLoop source.
25506
25507 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
25508 Use mac_try_close_socket.
25509
255102007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25511
25512 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
25513 reloc_base.
25514 (copy_dysymtab): Compute relocation base here.
25515 (rebase_reloc_address) [__ppc64__]: New function.
25516 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
25517 changed.
25518
255192007-12-05 Jason Rumney <jasonr@gnu.org>
25520
25521 * w32proc.c (sys_spawnve): Quote args with wildcards.
25522
255232007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25524
25525 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
25526 __objc_* sections.
25527 (unrelocate) [_LP64]: Set relocation base to address of data segment.
25528
255292007-12-05 Michael Albinus <michael.albinus@gmx.de>
25530
25531 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
25532 Move check for Vdbus_registered_functions_table to
25533 xd_read_queued_messages.
25534 (xd_read_queued_messages): Protect xd_read_message calls by
25535 internal_condition_case_1.
25536
255372007-12-04 Michael Albinus <michael.albinus@gmx.de>
25538
25539 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
25540 Qdbus_system_bus and Qdbus_session_bus, respectively.
25541 (Vdbus_intern_symbols): Remove.
25542 (Vdbus_registered_functions_table): New hash table.
25543 (XD_SYMBOL_INTERN_SYMBOL): Remove.
25544 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
25545 Rewrite in order to manage registered functions by hash table
25546 Vdbus_registered_functions_table.
25547
255482007-12-03 Jan Djärv <jan.h.d@swipnet.se>
25549
25550 * xterm.c: Update URL to Window Manager Specification in comment.
25551
255522007-12-02 Michael Albinus <michael.albinus@gmx.de>
25553
25554 * config.in (HAVE_DBUS): Add.
25555
25556 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
25557 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
25558 (obj): Add $(DBUS_OBJ).
25559 (LIBES): Add $(DBUS_LIBS).
25560 (dbusbind.o): New target.
25561
25562 * dbusbind.c: New file.
25563
25564 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
25565
25566 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
25567 (Qdbus_event): New Lisp symbol.
25568 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
25569 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 25570 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
25571
25572 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
25573
255742007-12-01 Richard Stallman <rms@gnu.org>
25575
25576 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
25577
255782007-11-30 Jason Rumney <jasonr@gnu.org>
25579
25580 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
25581 (w32con_reset_terminal_modes): Clear screen buffer.
25582 (w32_face_attributes): Don't use color indexes that are out of range.
25583 Only reverse the default colors.
25584
25585 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
25586 WINDOWSNT.
25587
25588 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
25589
255902007-11-29 Jason Rumney <jasonr@gnu.org>
25591
25592 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
25593 (w32_face_attributes): Use Vtty_defined_color_alist to determine
25594 if the terminal colors are initialized.
25595 (unspecified_fg, unspecified_bg): Remove unused declarations.
25596
255972007-11-29 Andreas Schwab <schwab@suse.de>
25598
25599 * keyboard.c (apply_modifiers): Fix typo.
25600
256012007-11-29 Richard Stallman <rms@gnu.org>
25602
25603 * keymap.c (Fcurrent_local_map): Doc fix.
25604
256052007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
25606
25607 * s/gnu-kfreebsd.h: New file.
25608
256092007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
25610
25611 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
25612 Don't cast redundantly.
25613
25614 * keyboard.c (KEY_TO_CHAR): New macro.
25615 (parse_modifiers, apply_modifiers): Accept integer arguments.
25616 (read_key_sequence): Use them to unify the "shift->unshift" mapping
25617 for chars and symbol keys.
25618 After doing such remapping, apply function-key-map again.
25619
256202007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
25621
25622 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
25623 compiled anymore.
25624
256252007-11-26 Andreas Schwab <schwab@suse.de>
25626
25627 * process.c (list_processes_1): Fix indentation level of the
25628 command column.
25629
256302007-11-23 Andreas Schwab <schwab@suse.de>
25631
25632 * editfns.c (Fformat): Handle %c specially since it requires the
25633 argument to be of type int.
25634
256352007-11-23 Markus Triska <markus.triska@gmx.at>
25636
25637 * emacs.c (main): Call init_editfns before init_process, since
25638 init_process sets Vprocess_connection_type depending on OS release.
25639
256402007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
25641
25642 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
25643 (find_symbol_value): Use do_symval_forwarding.
25644
25645 * data.c (set_internal): Set the value in the `cons-cell' (for
25646 Buffer_Local_values) not only for frame-local variables.
25647
256482007-11-22 Andreas Schwab <schwab@suse.de>
25649
25650 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
25651 values to sprintf.
25652 * keymap.c (Fsingle_key_description): Likewise.
25653 * print.c (print_object): Likewise.
25654
256552007-11-22 Jan Djärv <jan.h.d@swipnet.se>
25656
25657 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
25658 file for image is nil.
25659
256602007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
25661
25662 * term.c: Include stdarg.h.
25663 (fatal): Implement using varargs.
25664 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
25665
256662007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
25667
25668 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
25669 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
25670 Update call to buffer_slot_type_mismatch.
25671 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
25672 (buffer_slot_type_mismatch): Update.
25673 * buffer.c (buffer_local_types): Remove.
25674 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
25675 (defvar_per_buffer): Set the type in the buffer_objfwd.
25676
256772007-11-21 Jason Rumney <jasonr@gnu.org>
25678
25679 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
25680 CreateFileMapping returns NULL on failure.
25681
256822007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
25683
25684 * search.c (Fset_match_data): Remove the `evaporate' feature.
25685 (unwind_set_match_data): Don't use the `evaporate' feature.
25686
256872007-11-21 Jason Rumney <jasonr@gnu.org>
25688
25689 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
25690
25691 * w32console.c (w32con_write_glyphs): Remove unused variables.
25692
256932007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
25694
25695 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
25696
25697 * s/darwin.h (MULTI_KBOARD): Remove.
25698
25699 * macfns.c (x_create_tip_frame, Fx_create_frame)
25700 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
25701
257022007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
25703
25704 * buffer.c (Fbuffer_local_value): Remove redundant test.
25705 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
25706 than in `current-buffer' to match the comment.
25707 Do the swap using swap_in_global_binding.
25708
25709 * data.c (store_symval_forwarding, set_internal):
25710 * eval.c (specbind): Remove dead code.
25711
25712 * coding.c (detect_coding, Fupdate_coding_systems_internal):
25713 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
25714 Since we do not want to see internal Lisp_*fwd objects here.
25715
257162007-11-18 Jan Djärv <jan.h.d@swipnet.se>
25717
25718 * sysdep.c (init_system_name): Use getaddrinfo if available.
25719
25720 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
25721 (x_scroll_bar_note_movement): start, end, with, height in struct
25722 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
25723
257242007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
25725
25726 * puresize.h (BASE_PURESIZE): Increase to 1190000.
25727
257282007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
25729
25730 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
25731 This undoes Richard's change of 14-Oct-2002.
25732
25733 * alloc.c (allocate_other_vector):
25734 * lisp.h (allocate_other_vector): Remove.
25735
25736 * window.c (struct save_window_data): Move non-lisp data to the end
25737 and make it `int' rather than Lisp_Object.
25738 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
25739 Done wrap/unwrap integer values.
25740 (Fset_window_configuration, compare_window_configurations):
25741 Update use of fields to their new types.
25742
25743 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
25744 Turn integer fields into `int'. Merge x_window_low and x_window_high.
25745 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
25746 (SET_SCROLL_BAR_X_WINDOW): Remove.
25747 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
25748 Access the new x_window field directly.
25749 * xterm.c (x_scroll_bar_create): Use a pseudovector.
25750 Don't wrap/unwrap integers into Lisp_Objects.
25751 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
25752 (x_scroll_bar_report_motion):
25753 Don't wrap/unwrap integers into Lisp_Objects.
25754 (x_term_init): Use SDATA.
25755 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
25756 (x_scroll_bar_set_handle, x_scroll_bar_remove)
25757 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
25758 (x_scroll_bar_report_motion, x_scroll_bar_clear):
25759 * xfns.c (x_set_background_color):
25760 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
25761 Access the new x_window field directly.
25762
25763 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
25764 (allocate_pseudovector): Make non-static.
25765
25766 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
25767 (allocate_pseudovector): Declare.
25768 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
25769
257702007-11-15 Andreas Schwab <schwab@suse.de>
25771
25772 * editfns.c (Fformat): Correctly format EMACS_INT values.
25773 Also take precision into account when formatting an integer.
25774
25775 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
25776
257772007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
25778
25779 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
25780 (syms_of_keyboard): Defsubr it.
25781
25782 * data.c (swap_in_global_binding): Fix longstanding bug where
25783 store_symval_forwarding was not called with the right second argument,
25784 thus causing objfwd-ing from being dropped.
25785
257862007-11-14 Juanma Barranquero <lekktu@gmail.com>
25787
25788 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
25789 (Fx_display_pixel_height, Fx_display_planes)
25790 (Fx_display_color_cells, Fx_server_max_request_size)
25791 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
25792 (Fx_display_visual_class, Fx_display_save_under):
25793 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
25794 (Fx_display_pixel_height, Fx_display_planes)
25795 (Fx_display_color_cells, Fx_server_max_request_size)
25796 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
25797 (Fx_display_mm_height, Fx_display_mm_width)
25798 (Fx_display_backing_store, Fx_display_visual_class)
25799 (Fw32_select_font, Fx_display_save_under):
25800 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
25801 (Fx_display_pixel_height, Fx_display_planes)
25802 (Fx_display_color_cells, Fx_server_max_request_size)
25803 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
25804 (Fx_display_save_under): Fix typos in docstrings.
25805
258062007-11-14 Juanma Barranquero <lekktu@gmail.com>
25807
25808 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
25809 corresponding to deleted entries; they are an implementation detail.
25810 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
25811 Remove variables.
25812 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
25813 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
25814 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
25815 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
25816 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
25817 (Fw32_define_rgb_color, Fw32_load_color_file)
25818 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
25819 Fix typos in docstrings.
25820 (Fx_server_version): Reflow docstring.
25821 (Fw32_shell_execute): Doc fixes.
25822
258232007-11-13 Juanma Barranquero <lekktu@gmail.com>
25824
25825 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
25826 if w32_parse_hot_key returned nil.
25827
258282007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
25829
25830 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
25831
258322007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 25833
aac0c6e3
MR
25834 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
25835
25836 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
25837
25838 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
25839 Remove W32_SCROLL_BAR_CLICK_EVENT.
25840
25841 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
25842 Add MULTIMEDIA_KEY_EVENT.
25843
25844 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
25845 (lispy_multimedia_keys) [WINDOWSNT]: New array.
25846 (make_lispy_event) [WINDOWSNT]: Use it to translate
25847 MULTIMEDIA_KEY_EVENT.
25848
25849 * w32term.h (WM_APPCOMMAND): Define if not already.
25850 (GET_APPCOMMAND_LPARAM): Likewise.
25851
25852 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
25853 WM_APPCOMMAND.
25854
25855 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
25856 (syms_of_w32fns): Export and initialize it.
25857 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
25858
258592007-11-09 Chong Yidong <cyd@stupidchicken.com>
25860
25861 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
25862 twice.
25863
25864 * xdisp.c (handle_face_prop): Fix last change.
25865
258662007-11-09 Richard Stallman <rms@gnu.org>
25867
25868 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
25869 not just for after-strings and before-strings.
25870 Call face_for_overlay_string and pass the overlay to it.
25871 (handle_display_prop): Determine whether property came from an overlay.
25872 Pass OVERLAY arg to handle_single_display_spec.
25873 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
25874 (load_overlay_strings): Fill in it->string_overlays.
25875 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
25876
25877 * xfaces.c (face_for_overlay_string): Function renamed from
25878 face_at_buffer_position_no_overlays, and add arg OVERLAY.
25879
25880 * dispextern.h (struct it): New elt string_overlays.
25881 New elt from_overlay, also in stack.
25882 Rearrange a few elements.
25883 (face_for_overlay_string): Decl renamed from
25884 face_at_buffer_position_no_overlays, and add argument.
25885
258862007-11-09 Richard Stallman <rms@gnu.org>
25887
25888 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
25889 to get the base face for an overlay string.
25890
25891 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
25892
25893 * xfaces.c (face_at_buffer_position_no_overlays): New function.
25894
25895 * xdisp.c (handle_stop): Move some code out of loop.
25896
258972007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25898
25899 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
25900 Fix conversion from Lisp object to ATSUFontID.
25901
259022007-11-09 Jason Rumney <jasonr@gnu.org>
25903
25904 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
25905
259062007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25907
25908 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
25909 Don't assume regions are aligned to page boundary.
25910 (print_load_command_name): Add LC_UUID if defined.
25911
259122007-11-09 Richard Stallman <rms@gnu.org>
25913
25914 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
25915
259162007-11-07 Jason Rumney <jasonr@gnu.org>
25917
25918 * s/windows95.h: Remove.
25919
259202007-11-06 Jan Djärv <jan.h.d@swipnet.se>
25921
25922 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
25923 abort with a message on unhandled store_type values.
25924
259252007-11-01 Jan Djärv <jan.h.d@swipnet.se>
25926
25927 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
25928 Remove HAVE_X11R5 and HAVE_X11R4.
25929
259302007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
25931
25932 * Makefile.in: Remove references to sunfns.c and sunfns.o.
25933
259342007-11-01 Johan Bockgård <bojohan@gnu.org>
25935
25936 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
25937 Don't set s->stippled_p here, since it has already been set by
25938 x_set_glyph_string_gc from x_draw_glyph_string.
25939
259402007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
25941
25942 * sunfns.c: Remove file.
25943
25944 * m/sun386.h:
25945 * m/sun2.h:
25946 * m/sparc.h: Remove Sun windows code.
25947
259482007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
25949
25950 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
25951 (init_keyboard): Set current_kboard's window-system to nil.
25952 (tty_read_avail_input): Typo.
25953 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
25954
259552007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
25956
25957 * s/usg5-4.h:
25958 * s/usg5-3.h:
25959 * s/ptx.h:
25960 * m/is386.h:
25961 * m/ibmps2-aix.h:
25962 * Makefile.in: Remove all mentions of X10.
25963
25964 * dispnew.c (syms_of_display): Don't mention version 10.
25965
259662007-10-28 Juanma Barranquero <lekktu@gmail.com>
25967
25968 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
25969 ($(BLD)/abbrev.$(O)): Remove.
25970
259712007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
25972
25973 Rewrite abbrev.c in Elisp.
25974 * image.c (Qcount): Don't declare as extern.
25975 (syms_of_image): Initialize and staticpro `Qcount'.
25976 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
25977 * emacs.c (main): Don't call syms_of_abbrev.
25978 * Makefile.in (obj): Remove abbrev.o.
25979 (abbrev.o): Remove.
25980 * abbrev.c: Remove.
25981
259822007-10-26 Martin Rudalics <rudalics@gmx.at>
25983
25984 * window.c (window_min_size_2): Don't count header-line.
25985
259862007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
25987
25988 * frame.h (struct frame): Move all bit fields after the first bit
25989 field to take advantage of the available space. Group all the
25990 chars together to reduce wasted space due to padding.
25991
259922007-10-26 Juanma Barranquero <lekktu@gmail.com>
25993
25994 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
25995
25996 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
25997 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
25998 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
25999 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
26000 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
26001 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
26002 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
26003 (last_marked, mark_object_loop_halt): Make static.
26004
26005 * frame.c (syms_of_frame) <delete-frame-functions>:
26006 Fix typo in docstring.
26007
260082007-10-25 Juanma Barranquero <lekktu@gmail.com>
26009
26010 * w32.c (init_environment): Fix tiny memory leak.
26011 (w32_get_resource): Remove unused variable `ok'.
26012
260132007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
26014
26015 Make `window-system' into a keyboard-local variable (rather than
26016 frame-local as done originally by multi-tty).
26017
26018 * keyboard.h (struct kboard): Add Vwindow_system.
26019 * keyboard.c (init_kboard): Set a default for Vwindow_system.
26020 (mark_kboards): Mark Vwindow_system.
26021
26022 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
26023 (init_display): Don't set the obsolete `window-system' frame-param.
26024
26025 * xterm.c (x_term_init):
26026 * w32term.c (w32_create_terminal):
26027 * term.c (init_tty): Set Vwindow_system.
26028 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
26029 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
26030
26031 * xfns.c (Fx_create_frame, x_create_tip_frame):
26032 * w32fns.c (Fx_create_frame, x_create_tip_frame):
26033 * macfns.c (Fx_create_frame):
26034 Don't set the obsolete `window-system' frame-param.
26035
26036 * frame.h (Qwindow_system): Remove.
26037 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
26038 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
26039
260402007-10-24 Richard Stallman <rms@gnu.org>
26041
26042 * frame.c (x_figure_window_size): For fullscreen case,
26043 set USPosition | PPosition without clobbering rest of window_prompting.
26044
26045 * keyboard.c (Fcurrent_idle_time): Doc fix.
26046
26047 * print.c (Fwith_output_to_temp_buffer): Doc fix.
26048
260492007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
26050
26051 * process.c (unwind_request_sigio): Only define if __ultrix__.
26052
26053 * callproc.c (child_setup): Remove spurious *.
26054
26055 * lisp.h (Fget_text_property): Declare.
26056 (have_menus_p): Declare it here rather than in sys-dep header files.
26057 * macterm.h (have_menus_p):
26058 * msdos.h (have_menus_p):
26059 * xterm.h (have_menus_p): Remove.
26060
26061 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
26062 (Fmake_variable_frame_local): Just check the variable's const-ness
26063 rather than checking nil or t.
26064
260652007-10-22 Jason Rumney <jasonr@gnu.org>
26066
26067 * w32fns.c: Include math.h.
26068 (w32_abort): Declaration moved to nt/config.nt.
26069
26070 * s/ms-w32.h (HAVE_STDLIB_H): Define.
26071 (abort): Redefinition moved to nt/config.nt.
26072
26073 * m/windowsnt.h: Remove.
26074
260752007-10-22 Juanma Barranquero <lekktu@gmail.com>
26076
26077 * emacs.c (Fdump_emacs): Fix typo in message.
26078 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
26079 <installation-directory>: Reflow docstring.
26080
260812007-10-22 Juri Linkov <juri@jurta.org>
26082
26083 * minibuf.c: Allow minibuffer default to be a list of default values.
26084 With empty input use the first element of this list as returned default.
26085 (string_to_object)
26086 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
26087 (read_minibuf): If defalt is cons, set histstring to its car.
26088 (Fread_string): If default_value is cons, set val to its car.
26089 (Fread_buffer): If def is cons, use its car.
26090 (Fcompleting_read): If defalt is cons, set val to its car.
26091
260922007-10-21 Michael Albinus <michael.albinus@gmx.de>
26093
26094 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
26095
260962007-10-20 Juanma Barranquero <lekktu@gmail.com>
26097
26098 * doc.c (Fdocumentation): Check for advice in all cases.
26099
261002007-10-19 Chong Yidong <cyd@stupidchicken.com>
26101
26102 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
26103
261042007-10-19 Richard Stallman <rms@gnu.org>
26105
26106 * doc.c (Fdocumentation): Check for and handle an advised function.
26107
261082007-10-19 Juanma Barranquero <lekktu@gmail.com>
26109
26110 * process.c (Fset_process_filter): Doc fix.
26111
261122007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
26113
26114 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
26115 which caused key-translation-map to applied repeatedly (thus breaking
26116 double-mode).
26117
261182007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
26119
26120 * xselect.c (x_own_selection, x_handle_selection_clear)
26121 (x_clear_frame_selections):
26122 * w32menu.c (list_of_panes, list_of_items):
26123 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
26124 * textprop.c (validate_plist, interval_has_all_properties)
26125 (interval_has_some_properties, interval_has_some_properties_list)
26126 (add_properties, text_property_list):
26127 * process.c (Fget_buffer_process, list_processes_1, status_notify):
26128 * minibuf.c (Fassoc_string):
26129 * macselect.c (x_own_selection, x_clear_frame_selections)
26130 (Fx_disown_selection_internal):
26131 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
26132 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
26133
261342007-10-17 Chong Yidong <cyd@stupidchicken.com>
26135
26136 * process.c: Link to libs for calling res_init() if available.
26137 (Fmake_network_process): Call res_init() before getaddrinfo or
26138 gethostbyname, if possible.
26139
261402007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
26141
26142 * lread.c (read1): Set pvectype for char_tables.
26143
26144 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
26145 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
26146 Add type checks.
26147 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
26148
26149 * alloc.c (free_misc): Use XMISCTYPE.
26150 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
26151
261522007-10-17 Glenn Morris <rgm@gnu.org>
26153
26154 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
26155 (syms_of_minibuf): Add Qcompletion_ignore_case.
26156 * dired.c (Qcompletion_ignore_case): Change to external.
26157 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
26158 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
26159 (Fread_file_name): Use it rather than intern'ing.
26160
26161 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
26162 (Fread_coding_system): Ignore case of user input.
26163
261642007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26165
26166 * xdisp.c (handle_display_prop): Ignore display specs after
26167 replacing one when string text is being replaced.
26168 (handle_single_display_spec): Pretend as if characters with display
26169 property haven't been consumed only when buffer text is being replaced.
26170
261712007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
26172
26173 * xfns.c (Fx_create_frame, Fx_display_list):
26174 * window.c (window_fixed_size_p, enlarge_window)
26175 (shrink_window_lowest_first):
26176 * macterm.c (init_font_name_table):
26177 * macfns.c (Fx_create_frame, Fx_display_list):
26178 * lread.c (close_load_descs):
26179 * keyboard.c (read_char_x_menu_prompt):
26180 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
26181 * coding.c (code_convert_region_unwind): Test the type of an object
26182 rather than just !NILP before extracting data from it.
26183
26184 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
26185
26186 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
26187 (XMISCANY): New macro.
26188 (XMISCTYPE): Use it.
26189 (struct Lisp_Misc_Any): New type.
26190 (union Lisp_Misc): Use it.
26191 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
26192 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
26193 (find_symbol_value, set_internal, default_value, Fset_default)
26194 (Fmake_variable_buffer_local, Fmake_local_variable)
26195 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
26196 (Flocal_variable_if_set_p, Fvariable_binding_locus):
26197 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
26198 * alloc.c (allocate_buffer): Set the size and tag.
26199 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
26200 Use XMISCANY.
26201 (die): Follow the GNU convention for error messages.
26202 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
26203 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
26204 tag any more.
26205 (set_buffer_internal_1):
26206 * frame.c (store_frame_param):
26207 * eval.c (specbind):
26208 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
26209
26210 * doc.c (Fsnarf_documentation): Simplify.
26211
262122007-10-14 Juanma Barranquero <lekktu@gmail.com>
26213
26214 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
26215 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
26216
262172007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
26218
26219 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
26220
262212007-10-14 Juanma Barranquero <lekktu@gmail.com>
26222
26223 * eval.c (do_autoload): Don't save autoloads.
26224
26225 * data.c (Ffset): Save autoload of the function being set.
26226
262272007-10-07 John Paul Wallington <jpw@pobox.com>
26228
26229 * xfns.c (x_create_tip_frame): Set the `display-type' frame
26230 parameter before setting up faces.
26231
262322007-10-13 Eli Zaretskii <eliz@gnu.org>
26233
26234 * ccl.c (Fregister_code_conversion_map):
26235 * keyboard.c (append_tool_bar_item): Reformat last change.
26236
26237 * lisp.h (eabs): Rename from `abs'. All callers changed.
26238
262392007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
26240
26241 * buffer.c (add_overlay_mod_hooklist):
26242 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
26243 * fontset.c (make_fontset):
26244 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
26245 (append_tool_bar_item):
26246 * macmenu.c (grow_menu_items):
26247 * w32menu.c (grow_menu_items):
26248 * xmenu.c (grow_menu_items): Use larger_vector.
26249
262502007-10-13 Eli Zaretskii <eliz@gnu.org>
26251
26252 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
26253 selected frame'' on MSDOS).
26254
262552007-10-12 Martin Rudalics <rudalics@gmx.at>
26256
26257 * frame.c (Qexplicit_name): New variable.
26258 (x_report_frame_params): Report it in parameter alist.
26259 (syms_of_frame): Intern and staticpro it.
26260
262612007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
26262
26263 * macfns.c (x_create_tip_frame): Set terminal for frame.
26264
262652007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
26266
26267 * frame.c (Qenvironment): Remove.
26268 (syms_of_frame) <Qenvironment>: Don't initialize.
26269 (Fdelete_frame): Don't treat the `environment' param specially.
26270 * frame.h (Qenvironment): Don't declare.
26271 * callproc.c (set_initial_environment): Don't set unused frame param.
26272
26273 * frame.c (Fframe_with_environment): Remove.
26274 (syms_of_frame) <Sframe_with_environment>: Don't declare.
26275
26276 * lisp.h (Fframe_with_environment): Don't declare.
26277
262782007-10-10 Juanma Barranquero <lekktu@gmail.com>
26279
26280 * indent.c (indent_tabs_mode, last_known_column)
26281 (last_known_column_modified): Make static.
26282 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
26283
262842007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
26285
26286 * puresize.h (BASE_PURESIZE): Increase to 1170000.
26287
262882007-10-09 Jason Rumney <jasonr@gnu.org>
26289
26290 * w32term.c (x_set_window_size): Disable code that attempts to tell
26291 Lisp code about a size change before it actually happens.
26292
262932007-10-09 Richard Stallman <rms@gnu.org>
26294
26295 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
26296 return HANDLED_RETURN.
26297
262982007-10-08 Martin Rudalics <rudalics@gmx.at>
26299
26300 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
26301 when there's an unread command event.
26302
26303 * frame.c (focus_follows_mouse): Move here from frame.el to allow
26304 window autoselection act appropriately when leaving selected frame.
26305 (syms_of_frame): Initialize focus_follows_mouse.
26306 * frame.h (focus_follows_mouse): Extern it.
26307 * macterm.c (XTread_socket): When focus_follows_mouse is nil
26308 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
26309 * msdos.c (dos_rawgetc): Likewise.
26310 * w32term.c (w32_read_socket): Likewise.
26311 * xterm.c (handle_one_xevent): Likewise.
26312 * xdisp.c (syms_of_xdisp): In doc-string of
26313 mouse-autoselect-window mention focus-follows-mouse.
26314
263152007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26316
26317 * macterm.c (mac_load_query_font): Fix missing return value.
26318 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
26319 Add BLOCK_INPUT.
26320
263212007-10-08 Richard Stallman <rms@gnu.org>
26322
26323 * xdisp.c (get_window_cursor_type): Implement documented behavior
26324 for cursor-in-non-selected-windows = t.
26325
263262007-10-08 Jason Rumney <jasonr@gnu.org>
26327
26328 * w32.c (w32_get_resource): Always close registry keys.
26329
263302007-10-08 Jason Rumney <jasonr@gnu.org>
26331
26332 * makefile.w32-in (LIBS): Add COMCTL32.
26333
26334 * w32fns.c (globals_of_w32fns): Init common controls.
26335
263362007-10-08 Richard Stallman <rms@gnu.org>
26337
26338 * image.c (our_memory_buffer): Rename from omfib_buffer.
26339
263402007-10-08 Richard Stallman <rms@gnu.org>
26341
26342 * buffer.c (Foverlays_at): Doc fix.
26343
263442007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
26345
26346 * fns.c (Fplist_put): Preserve uneven tail data.
26347
263482007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
26349
26350 * termhooks.h (enum event_kind): Remove trailing comma.
26351
26352 * frame.h (enum): Remove trailing comma.
26353
263542007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
26355
26356 * w32proc.c (delete_child): Don't terminate threads of zombies.
26357
263582007-10-08 Martin Rudalics <rudalics@gmx.at>
26359
26360 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
26361
26362 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
26363 last-repeatable-command.
26364 (init_kboard): Initialize Vlast_repeatable_command.
26365 (command_loop_1): Set it to real_this_command unless that was
26366 bound to an input event.
26367 (mark_kboards): Mark it.
26368
263692007-10-08 Richard Stallman <rms@gnu.org>
26370
26371 * eval.c (condition-case): Doc fix.
26372
263732007-10-08 Masatake YAMATO <jet@gyve.org>
26374
26375 * xfaces.c (tty_supports_face_attributes_p): Fix code
26376 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
26377 was copied and not edited.
26378
263792007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
26380
26381 Add new `input-decode-map' keymap and use it for terminal
26382 escape sequences.
26383 * keyboard.h (struct kboard): Add Vinput_decode_map.
26384 Remove Vlocal_key_translation_map.
26385 * keyboard.c (read_key_sequence): Add support for input-decode-map.
26386 (init_kboard): Init input-decode-map.
26387 Replace local-key-translation-map back with key-translation-map.
26388 (syms_of_keyboard): Declare input-decode-map.
26389 Remove local-key-translation-map. Update docstrings.
26390 (mark_kboards): Mark Vinput_decode_map.
26391 Don't mark Vlocal_key_translation_map.
26392 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
26393 Replace local-key-translation-map back with key-translation-map.
26394 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
26395 Bind in input-decode-map rather than function-key-map.
26396
26397 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
26398 This was made redundant by the previous introduction of XSETPVECTYPE.
26399
264002007-10-09 Richard Stallman <rms@gnu.org>
26401
26402 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
26403
264042007-09-29 Richard Stallman <rms@gnu.org>
26405
26406 * eval.c (internal_condition_case_2, internal_condition_case_1)
26407 (internal_condition_case): Reenable abort if x_catching_errors ()
26408 to see if that really happens and why.
26409
264102007-10-06 Andreas Schwab <schwab@suse.de>
26411
26412 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
26413
264142007-10-04 Juanma Barranquero <lekktu@gmail.com>
26415
26416 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
26417
264182007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
26419
26420 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
26421
264222007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
26423
26424 * window.h (struct window):
26425 * window.c (struct save_window_data, struct saved_window):
26426 * termhooks.h (struct terminal):
26427 * process.h (struct Lisp_Process):
26428 * frame.h (struct frame):
26429 * buffer.h (struct buffer):
26430 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
26431 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
26432 The size field of (pseudo)vectors is now unsigned.
26433 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
26434
26435 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
26436 Turn `count' into an integer.
26437
26438 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
26439 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
26440 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
26441 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
26442 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
26443
26444 * alloc.c (allocate_pseudovector): New fun.
26445 (ALLOCATE_PSEUDOVECTOR): New macro.
26446 (allocate_window, allocate_terminal, allocate_frame)
26447 (allocate_process): Use it.
26448 (mark_vectorlike): New function.
26449 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
26450 (mark_terminals): Use it.
26451 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
26452 (Fmake_byte_code): Use XSETPVECTYPE.
26453
26454 * frame.c (Fframe_parameters): Minor simplification.
26455
26456 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
26457
26458 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
26459
26460 * buffer.c (Fget_buffer_create, init_buffer_once):
26461 * lread.c (defsubr):
26462 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
26463
26464 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
26465 defined differently in the m/*.h files.
26466 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
26467 (XSETPVECTYPE): New macro.
26468 (XSETPSEUDOVECTOR): Use it.
26469
26470 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
26471 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
26472
26473 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
26474 * lread.c (defvar_per_buffer):
26475 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
26476
26477 * window.c (candidate_window_p): Only consider as visible frames that
26478 are on the same terminal.
26479
26480 * m/ibms390x.h (MARKBIT): Remove unused macro.
26481
264822007-10-01 Juanma Barranquero <lekktu@gmail.com>
26483
26484 * lread.c (Fload): Fix typo in docstring.
26485
264862007-10-01 Michaël Cadilhac <michael@cadilhac.name>
26487
26488 * floatfns.c (Fexpt): Manually check for overflows, so that a power
26489 of a non-zero value can't yield zero.
26490
264912007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
26492
26493 * term.c (term_clear_mouse_face, term_mouse_highlight)
26494 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
26495
26496 * print.c (safe_debug_print): Use XHASH.
26497
26498 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
26499 Lisp elements such as tags.
26500 (XHASH): New macro.
26501 (EQ): Use it.
26502 (SREF, SSET, STRING_COPYIN): Use SDATA.
26503 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
26504
26505 * alloc.c (mark_terminal): Remove left-over declaration.
26506 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
26507 (allocate_vectorlike): Remove type argument. Adjust callers.
26508 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
26509 Only handle the one remaining MEM_TYPE_VECTORLIKE.
26510
26511 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
26512 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
26513 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
26514 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
26515 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
26516 Use them.
26517
26518 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
26519 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
26520 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
26521
265222007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
26523
26524 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
26525 loaded by default.
26526
265272007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
26528
26529 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
26530 on this tty.
26531 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
26532
26533 * term.c (mouse_face_window): Rename from Qmouse_face_window.
26534 Update all users.
26535 (handle_one_term_event): Use Gpm_DrawPointer.
26536 (Fgpm_mouse_start): Rename from Fterm_open_connection.
26537 Signal errors instead of returning nil. Always return nil.
26538 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
26539 Make it a noop if gpm-mouse was not activated.
26540 (syms_of_term): Update names.
26541
265422007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
26543
26544 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
26545 (init_sys_modes): Check that gpm_tty is the current tty.
26546
26547 * alloc.c (allocate_terminal): Set the vector size to only count the
26548 lisp fields. Initialize those to nil.
26549 (mark_object): Don't treat terminals specially.
26550 (mark_terminal): Remove.
26551 (mark_terminals): Use mark_object instead.
26552
26553 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
26554 the GC to the beginning.
26555
26556 * indent.h:
26557 * indent.c: Use EMACS_INT for ints coming from Elisp data.
26558
26559 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
26560
265612007-09-25 Jason Rumney <jasonr@gnu.org>
26562
26563 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
26564
26565 * w32console.c (create_w32cons_output): Remove.
26566
26567 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
26568
26569 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
26570 (reset_sys_modes): Use reset_terminal_modes_hook.
26571
265722007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
26573
26574 * eval.c (do_autoload): Don't output any message.
26575
265762007-09-24 Juri Linkov <juri@jurta.org>
26577
26578 * emacs.c (standard_args): Change priority of "--no-splash"
26579 from 40 to 3. Add "--no-desktop" with the same priority.
26580
265812007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
26582
26583 * alloc.c (gc_sweep): Check cons cell mark bits word by word
26584 and optimize the case where they are all 1.
26585
265862007-09-23 Johannes Weiner <hannes@saeurebad.de>
26587
26588 * lisp.h (abs): Define if not defined.
26589 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
26590 Don't define `abs', since it's defined in lisp.h.
26591
265922007-09-22 Eli Zaretskii <eliz@gnu.org>
26593
26594 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
26595 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
26596 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
26597 (init_tty): Use DEV_TTY instead of "/dev/tty".
26598 [WINDOWSNT]: No need to protect from NAME arg being null.
26599
266002007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
26601
26602 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
26603 up the tty state.
26604
266052007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
26606
26607 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
26608 (gpm_tty): Change its type.
26609 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
26610 (gpm_tty): Change its type and initialize it.
26611 (Fterm_open_connection): Check the frame is indeed a tty.
26612 Use the new gpm_tty.
26613 (Fterm_close_connection): Use the new gpm_tty.
26614 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
26615 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
26616
266172007-09-21 Juanma Barranquero <lekktu@gmail.com>
26618
26619 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
26620 underline_color, to draw strike-through.
26621
266222007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
26623
26624 * lisp.h (allocate_terminal): Declare.
26625
26626 * window.c (candidate_window_p): Consider frames that are being placed
26627 by the user as somewhere between visible and iconified.
26628 (window_loop): Prefer windows on the current frame.
26629 (Fselect_window): Move the use of select-frame to the beginning so we
26630 can just delegate all the work (it'll call us back anyway).
26631
26632 * frame.c (Qdisplay_environment_variable):
26633 * frame.h (Qdisplay_environment_variable): Delete.
26634
26635 * .gdbinit (xbacktrace): Print the arg's address rather than the value
26636 of the first arg, since that value may be a union.
26637
26638 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
26639 parameter rather than Qdisplay_environment_variable. If all else
26640 fails, look for DISPLAY in initial-environment.
26641
266422007-09-21 Glenn Morris <rgm@gnu.org>
26643
26644 * Makefile.in (emacstool): Remove target.
26645 (lisp, shortlisp): Remove termdev.elc.
26646
266472007-09-21 Markus Triska <markus.triska@gmx.at>
26648
26649 * xterm.c (x_delete_display): Compile session management conditionally.
26650
266512007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
26652
26653 * callproc.c (getenv_internal_1): New function.
26654 (getenv_internal): Use it.
26655 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
26656
26657 * terminal.c (get_terminal): Don't accept ints to represent terminals.
26658 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
26659 (Fset_terminal_parameter): Work with dead terminals as well.
26660 (Fmodify_terminal_parameters): Remove.
26661
26662 * terminal.c (get_terminal): Handle terminals.
26663 Make sure the terminal returned is live.
26664 (create_terminal): Use allocate_terminal.
26665 (mark_terminals): Move to alloc.c.
26666 (delete_terminal): Use terminal->name as liveness status.
26667 NULL out fields after freeing their contents.
26668 Don't deallocate the object.
26669 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
26670 rather than an int.
26671 (Fterminal_live_p): Accept non-integer arguments.
26672 (Fterminal_list): Return terminal objects rather than an ints.
26673
26674 * alloc.c (enum mem_type): New member for `terminal' objects.
26675 (allocate_terminal): New function.
26676 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
26677 Handle terminals.
26678 (mark_terminal): New fun.
26679 (mark_terminals): Move from terminal.c.
26680
26681 * term.c (get_tty_terminal): Don't treat output_initial specially.
26682 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
26683 (delete_tty): Use terminal->name as liveness status.
26684
26685 * termhooks.h (struct terminal): Make it into a pseudovector.
26686 Remove `deleted' replaced by checking `name's nullness.
26687
26688 * print.c (print_object): Handle terminals.
26689
26690 * lisp.h (enum pvec_type): New `terminal' pseudovector.
26691 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
26692
26693 * frame.c (make_terminal_frame):
26694 * keyboard.c (tty_read_avail_input):
26695 * w32term.c (x_delete_terminal):
26696 * xfns.c (Fx_create_frame, x_create_tip_frame):
26697 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
26698
266992007-09-20 Glenn Morris <rgm@gnu.org>
26700
26701 * process.c (Fmake_network_process): Doc fix.
26702
267032007-09-19 Jason Rumney <jasonr@gnu.org>
26704
26705 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
26706
267072007-09-19 Michaël Cadilhac <michael@cadilhac.name>
26708
26709 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
26710 Fix a C warning regarding variable constness.
26711
26712 * xterm.c (handle_one_xevent): Fix a C warning.
26713
267142007-09-18 Jason Rumney <jasonr@gnu.org>
26715
26716 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
26717
267182007-09-17 Jan Djärv <jan.h.d@swipnet.se>
26719
26720 * gtkutil.c (gdpy_def): New variable.
26721 (xg_initialize): Initialize gdpy_def.
26722 (xg_display_close): If no other display exists, set gdpy_def to a
26723 new connection.
26724
267252007-09-16 Jan Djärv <jan.h.d@swipnet.se>
26726
26727 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
26728 when we have no file name for the icon.
26729 (xg_tool_bar_expose_callback): Remove.
26730 (xg_create_tool_bar): Don't connect expose signal to
26731 xg_tool_bar_expose_callback.
26732 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
26733
267342007-09-16 Andreas Schwab <schwab@suse.de>
26735
26736 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
26737 values instead of zapping them.
26738
267392007-09-14 Glenn Morris <rgm@gnu.org>
26740
26741 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
26742 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
26743 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
26744 scope and rename to omfib_buffer for clarity.
26745 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
26746
267472007-09-14 Kenichi Handa <handa@m17n.org>
26748
26749 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
26750
267512007-09-13 Jason Rumney <jasonr@gnu.org>
26752
26753 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
26754
26755 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
26756
26757 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
26758 (mac_term_init): Call here instead, passing rif.
26759
267602007-09-13 Glenn Morris <rgm@gnu.org>
26761
26762 * s/hpux.h: No longer define `static' as nothing.
26763
267642007-09-13 Johan Bockgård <bojohan@gnu.org>
26765
26766 * callint.c (Fcall_interactively): Remove unused var `fun'.
26767
267682007-09-12 Romain Francoise <romain@orebokech.com>
26769
26770 * window.c (prefer_window_split_horizontally, display_buffer):
26771 Revert 2007-09-08 change.
26772
267732007-09-12 Glenn Morris <rgm@gnu.org>
26774
26775 * alloca.c: Remove file.
26776 * Makefile.in (alloca): Do not undef.
26777 (allocaobj, alloca.o): Remove.
26778 (otherobj): Remove allocaobj.
26779 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
26780 * regex.c (C_ALLOCA): Remove all references and code that was only
26781 used when this was defined.
26782 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
26783 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
26784 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
26785
26786 * Makefile.in (SOURCES, unlock, relock): Delete.
26787
26788 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
26789 (menu_grab_callback): All uses changed.
26790
26791 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
26792 (x_reply_selection_request): All uses changed.
26793
267942007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
26795
26796 * lread.c (load_warn_old_style_backquotes): Change message to look
26797 better when it appears in the middle of byte-compiler messages.
26798
267992007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
26800
26801 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
26802
26803 * xterm.c (x_create_terminal): Add comment.
26804
26805 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
26806
268072007-09-10 Richard Stallman <rms@gnu.org>
26808
26809 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
26810
268112007-09-10 Michaël Cadilhac <michael@cadilhac.name>
26812
26813 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
26814 (DEFUN): Document `intspec', use it instead of `prompt'.
26815
26816 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
26817
26818 * data.c (Finteractive_form): If the interactive specification starts
26819 with a `(', use it as a Lisp form.
26820
26821 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
26822 name and file modes.
26823
26824 * callint.c (Fcall_interactively): Comment fixes.
26825
268262007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
26827
26828 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
26829 and compiled functions.
26830
268312007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
26832
26833 * window.c (prefer_window_split_horizontally): New variable.
26834 (display_buffer): Consider splitting window horizontally depending
26835 on prefer_window_split_horizontally.
26836
268372007-09-08 Eli Zaretskii <eliz@gnu.org>
26838
26839 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
26840
268412007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
26842
26843 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
26844
26845 * frame.c (x_set_frame_parameters): Check number is positive before
26846 using XFASTINT.
26847
26848 * window.c (freeze_window_start): Don't presume selected_window holds
26849 a window object.
26850 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
26851
268522007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
26853
26854 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
26855
268562007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
26857
26858 * window.c (Vsplit_window_preferred_function): New var.
26859 (Fdisplay_buffer): Use it.
26860 (syms_of_window): Export, and initialize it.
26861
268622007-09-06 Pixel <pixel@mandriva.com> (tiny change)
26863
26864 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
26865
268662007-09-06 Glenn Morris <rgm@gnu.org>
26867
26868 * gtkutil.c (menu_grab_callback) <cnt>:
26869 * xselect.c (x_reply_selection_request) <cnt>: Move static
26870 variable to file scope.
26871
268722007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
26873
26874 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
26875 consistent values of selected_frame and selected_window.
26876
268772007-09-04 Jason Rumney <jasonr@gnu.org>
26878
26879 * w32console.c (initialize_w32_display): Zero unused hooks.
26880
268812007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
26882
26883 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
26884 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
26885
268862007-09-04 Jason Rumney <jasonr@gnu.org>
26887
26888 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
26889 in w32console.c. Set up input. Remove XXX comments that have been
26890 confirmed as correct.
26891
26892 * s/ms-w32.h (MULTI_KBOARD): Define.
26893
26894 * w32console.c (one_and_only_w32cons): Remove.
26895 (initialize_w32_display): Take terminal argument.
26896
26897 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
26898 initialize_w32_display.
26899 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
26900
26901 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
26902
26903 * keyboard.c (discard_mouse_events): Discard it.
26904 (make_lispy_event): Translate it to a lisp event.
26905 (lispy_wheel_names): Add wheel-left and right events.
26906 (syms_of_keyboard): Enlarge wheel_syms.
26907
26908 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
26909 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
26910
26911 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
26912
26913 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
26914 from WM_MOUSEHWHEEL.
26915 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
26916
26917 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
26918 terminal.
26919
26920 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
26921 keyboard for the terminal.
26922
269232007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
26924
26925 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
26926 (Vresume_tty_hook): Rename from Vresume_tty_functions.
26927 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
26928 and resume-tty-function to resume-tty-hook.
26929 (Fsuspend_tty, Fresume_tty): Use new names.
26930
269312007-09-02 Jan Djärv <jan.h.d@swipnet.se>
26932
26933 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
26934 if it starts with "n:".
26935
269362007-08-31 Jan Djärv <jan.h.d@swipnet.se>
26937
26938 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
26939
269402007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
26941
26942 * frame.h:
26943 * frame.c (Qterm_environment_variable): Remove.
26944 (syms_of_frame): Don't init and staticpro it.
26945
26946 * callproc.c (getenv_internal): Remove special case for $TERM.
26947
26948 * callproc.c (Vinitial_environment): New variable.
26949 (set_initial_environment): Initialize it.
26950 (syms_of_callproc): Declare it.
26951 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
26952 TERM under which a process runs is never related to the TERM in which
26953 Emacs is running.
26954
269552007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
26956
26957 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
26958 * s/darwin.h: ... do it here.
26959
269602007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
26961
26962 * lisp.h (set_initial_environment): Rename from set_global_environment.
26963
26964 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
26965 removed by mistake on the multi-tty branch.
26966
26967 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
26968 (Fmodify_frame_parameters): Return a value.
26969
26970 * image.c (png_load): Comment-out var only used in commented-out code.
26971
26972 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
26973 before passing it to mark_object.
26974
26975 * xfaces.c (internal_resolve_face_name): Return a value.
26976 (internal_resolve_face_name, resolve_face_name_error): Comment out.
26977
26978 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
26979 (x_icon): Comment-out var only used in commented-out code.
26980
269812007-08-29 Romain Francoise <romain@orebokech.com>
26982
26983 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
26984 QUIT hasn't been provided.
26985
269862007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
26987
26988 * callproc.c (child_setup, getenv_internal): Use the
26989 display-environment-variable and term-environment-variable frame params.
26990 (set_initial_environment): Initialise Vprocess_environment.
26991
26992 * config.in: Disable multi-keyboard support on a mac.
26993
26994 * frame.c (Qterm_environment_variable)
26995 (Qdisplay_environment_variable): New variables.
26996 (syms_of_frame): Intern and staticpro them.
26997 (Fmake_terminal_frame): Disable output method test.
26998
26999 * frame.h: Declare them here.
27000
27001 * macfns.c (x_set_mouse_color): Get rif from the frame.
27002 (x_set_tool_bar_lines): Don't use updating_frame.
27003 (mac_window): Add 2 new parameters for consistency with other systems.
27004 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
27005 frame parameters following what is done in X11 and w32. Don't use
27006 FRAME_MAC_DISPLAY_INFO.
27007 (Fx_open_connection, start_hourglass): Remove window-system check.
27008 (x_create_tip_frame): Get the keyboard from the terminal.
27009
27010 * macmenu.c: Reorder includes.
27011 (Fx_popup_menu): Use terminal specific mouse_position_hook.
27012
27013 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
27014 terminal parameter.
27015 (x_clear_frame): Add a frame parameter.
27016 (note_mouse_movement): Get rif from the frame.
27017 (mac_term_init): Initialize the terminal.
27018 (mac_initialize): Make static and move terminal initialization ...
27019 (mac_create_terminal): ... to this new function.
27020
27021 * macterm.h (struct mac_display_info): Add terminal.
27022 (mac_initialize): Delete declaration.
27023
27024 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
27025
27026 * sysdep.c: Comment out text after #endif.
27027
27028 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
27029 is defined. Better initialize ttys in windows. Use terminal
27030 specific mouse_position_hook.
27031
27032 * termhooks.h (union display_info): Add mac_display_info.
27033
27034 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
27035 Set the default minibuffer frame, window_system and the rest of the
27036 frame parameters following what is done in X11.
27037
27038 * w32term.c (w32_initialize): Make static.
27039
27040 * xselect.c (x_handle_selection_clear): Only access
27041 terminal->kboard when MULTI_KBOARD is defined.
27042
27043 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
27044 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
27045
270462007-08-29 Jason Rumney <jasonr@gnu.org>
27047
27048 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
27049 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
27050
27051 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
27052 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
27053
27054 * keyboard.c (restore_kboard_configuration): Only define when
27055 MULTI_KBOARD defined.
27056
27057 * makefile.w32-in: Update dependancies from Makefile.in.
27058 (OBJ1): Add terminal.$(O)
27059
27060 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
27061 Don't define function body.
27062 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
27063
27064 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
27065
27066 * w32.c (request_sigio, unrequest_sigio): Remove.
27067
27068 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
27069 (w32con_clear_frame, w32con_clear_end_of_line)
27070 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
27071 (w32con_delete_glyphs, w32con_set_terminal_window)
27072 (scroll_line, w32_sys_ring_bell): Add frame arg.
27073 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
27074 Add terminal arg.
27075 (PICK_FRAME): Remove.
27076 (w32con_write_glyphs): Use frame specific terminal coding.
27077 (one_and_only_w32cons): New global variable.
27078 (initialize_w32_display): Use it for storing hooks.
27079 (create_w32cons_output): New function.
27080
27081 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
27082 arg a frame.
27083
27084 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
27085 Set window_system.
27086 (x_set_tool_bar_lines): Don't use updating_frame.
27087 (Fx_create_frame): Set terminal and ref count.
27088 (Fx_open_connection): Remove window-system check.
27089
27090 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
27091
27092 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
27093 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
27094 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
27095 Add frame arg.
27096 (x_delete_terminal, w32_create_terminal): New functions.
27097 (w32_term_init): Create a terminal.
27098 (w32_initialize): Move terminal specific initialization to
27099 w32_create_terminal.
27100
27101 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
27102 (w32_clear_rect, w32_clear_area): Use background from frame.
27103 (w32_display_info): Add terminal.
27104 (w32_sys_ring_bell, x_delete_display): Declare here.
27105
27106 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
27107
27108 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
27109
271102007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
27111
27112 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
27113 Fix get_named_tty calls for the controlling tty.
27114
271152007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
27116
194d44e7 27117 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
27118
271192007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
27120
27121 * term.c (tty_insert_glyphs): Add missing first parameter.
27122
271232007-08-29 Károly Lőrentey <karoly@lorentey.hu>
27124
27125 * buffer.c (Fbuffer_list, Fbury_buffer):
27126 Take frame->buried_buffer_list into account.
27127
27128 * cm.c (current_tty): New variable, for cmputc().
27129 (cmputc): Use it.
27130 (cmcheckmagic): Add tty parameter, look up terminal streams there.
27131 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
27132 (cmgoto): Add tty parameter. Pass it on to calccost().
27133 Use emacs_tputs() instead of tputs().
27134
27135 * cm.h (emacs_tputs): New macro to set current_tty, and then call
27136 tputs().
27137 (current_tty): New variable, for cmputc().
27138 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
27139
27140 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
27141 (internal_condition_case, internal_condition_case_1)
27142 (internal_condition_case_2): Don't abort when x_catching_errors.
27143
27144 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
27145 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
27146 prevent crashes caused by bogus longjmps in read_char.
27147
27148 * keymap.h (Fset_keymap_parent): Add EXFUN.
27149
27150 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
27151 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
27152 Remove redundant definition.
27153
27154 * macfns.c (x_set_mouse_color, x_make_gc):
27155 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
27156
27157 * w32term.c (x_free_frame_resources):
27158 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
27159 (w32_initialize): Use the accessor macros for terminal characteristics.
27160
27161 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
27162 Use the accessor macros for terminal characteristics.
27163 * msdos.c (internal_terminal_init): Use the accessor macros for
27164 terminal characteristics.
27165 (ScreenVisualBell, internal_terminal_init):
27166 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
27167
27168 * termopts.h (no_redraw_on_reenter): Declare.
27169
27170 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
27171 (mark_terminals, mark_ttys): Declare.
27172 (Fgarbage_collect): Call them.
27173 (mark_object): Mark buried_buffer_list.
27174
27175 * prefix-args.c: Include stdlib.h for exit.
27176
27177 * syssignal.h: Add comment.
27178
27179 * indent.c: Include stdio.h.
27180
27181 * window.h (Vinitial_window_system): Declare.
27182 (Vwindow_system): Delete declaration.
27183
27184 * fontset.c (Finternal_char_font): Use FRAME_RIF.
27185
27186 * image.c (lookup_image): Don't initialize `c' until the xasserts
27187 have been run.
27188
27189 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
27190 FRAME_FOREGROUND_PIXEL.
27191
27192 * print.c (print_preprocess): Don't lose print_depth levels while
27193 iterating.
27194
27195 * widget.c (update_from_various_frame_slots):
27196 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
27197
27198 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
27199 frames.
27200 (window_internal_height): Remove bogus make_number call.
27201 (init_window_once): Call make_terminal_frame with two zero parameters.
27202
27203 * fileio.c (Fread_file_name): Update comment.
27204
27205 * callint.c (Fcall_interactively):
27206 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
27207 Make sure it is correctly unwound.
27208
27209 * xsmfns.c (x_session_close): New function.
27210
27211 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
27212 Delete declarations.
27213
27214 * xterm.h: Remove declaration for x_fully_uncatch_errors.
27215 (x_output): Remove background_pixel and foreground_pixel fields.
27216 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
27217 (x_delete_device, x_session_close): Declare.
27218
27219 * lread.c: Include setjmp.h. Update declaration of `read_char'.
27220 (read_filtered_event): Call `read_char' with a local
27221 `wrong_kboard_jmpbuf'.
27222
27223 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
27224 Don't call single_kboard_state. Use FRAME_RIF.
27225
27226 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
27227 systems.
27228
27229 * lisp.h (set_process_environment): Rename to `set_global_environment'.
27230 (Fframe_with_environment, Fset_input_meta_mode)
27231 (Fset_quit_char): EXFUN.
27232 (x_create_device, tty_output, terminal, tty_display_info): Declare.
27233 (init_sys_modes, reset_sys_modes): Update prototypes.
27234 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
27235
27236 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
27237 Vlocal_key_translation_map, and Vkeyboard_translate_table.
27238 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
27239 Delete declarations.
27240 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
27241 (temporarily_switch_to_single_kboard, tty_read_avail_input):
27242 New declarations.
27243
27244 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
27245 already does that during init_display(). Call syms_of_keymap
27246 before syms_of_keyboard. Call `syms_of_terminal'.
27247 Call set_initial_environment, not set_process_environment.
27248 (shut_down_emacs): Call reset_all_sys_modes() instead of
27249 reset_sys_modes().
27250
27251 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
27252 (internal_resolve_face_name, resolve_face_name_error): New functions.
27253 (resolve_face_name): Protect against loops and errors thrown by Fget.
27254 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
27255 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
27256
27257 * scroll.c: Replace CURTTY() with local variables throughout the
27258 file (where applicable).
27259 (calculate_scrolling, calculate_direct_scrolling)
27260 (scrolling_1, scroll_cost): Use the accessor macros for terminal
27261 characteristics.
27262
27263 * keymap.c (Vfunction_key_map): Remove.
27264 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
27265 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
27266 (Vkey_translation_map): Remove.
27267 (syms_of_keymap): Remove DEFVAR for key-translation-map.
27268 (Fdescribe_buffer_bindings)
27269 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
27270 Update for terminal-local key-translation-map.
27271
27272 * Makefile.in (callproc.o): Update dependencies.
27273 (lisp, shortlisp): Add termdev.elc.
27274 (obj): Add terminal.o.
27275 (terminal.o): Add dependencies.
27276 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
27277 (data.o, fns.o): Add termhooks.h dependency.
27278 (SOME_MACHINE_LISP): Add dnd.elc.
27279 (minibuf.o): Fix typo.
27280 Update dependencies.
27281
27282 * data.c (do_symval_forwarding, store_symval_forwarding)
27283 (find_symbol_value): Use the selected frame's keyboard, not
27284 current_kboard.
27285
27286 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
27287 Vwindow_system.
27288
27289 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
27290 Fmenu_bar_open.
27291 (syms_of_xmenu): Update defsubr.
27292 (mouse_position_for_popup, Fx_popup_menu)
27293 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
27294 (set_frame_menubar, free_frame_menubar)
b97439ce 27295 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
27296 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
27297 an X frame.
27298
27299 * xselect.c (x_own_selection): Abort if not an X frame.
27300 (some_frame_on_display): Check if it is an X frame.
27301 (x_handle_selection_clear): Deal with MULTI_KBOARD.
27302
27303 * coding.c: Include frame.h and termhooks.h.
27304 (terminal_coding, keyboard_coding): Delete.
27305 (Fset_terminal_coding_system_internal)
27306 (Fset_keyboard_coding_system_internal)
27307 (Fkeyboard_coding_system)
27308 (Fterminal_coding_system): Add a terminal parameter.
27309 Get terminal_coding from the terminal.
27310 (init_coding_once): Don't call setup_coding_system here.
27311
27312 * dispextern.h (set_scroll_region, turn_off_insert)
27313 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
27314 (tty_clear_end_of_line, tty_setup_colors)
27315 (delete_tty, updating_frame)
27316 (produce_special_glyphs, produce_glyphs, write_glyphs)
27317 (insert_glyphs): Remove.
27318 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
27319 (tty_turn_off_highlight, get_tty_size): Add declaration.
27320 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
27321
27322 * frame.h (enum output_method): Add output_initial.
27323 (struct x_output): Delete.
27324 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
27325 Access foreground_pixel and background_pixel directly from the frame.
27326 (tty_display): Delete.
27327 (struct frame): Add buried_buffer_list, foreground_pixel,
27328 background_pixel and terminal. Delete kboard.
27329 (union output_data): Add tty.
27330 (FRAME_KBOARD): Get the kboard from the terminal.
27331 (FRAME_INITIAL_P): New macro.
27332 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
27333 (Qterm_environment_variable, Qdisplay_environment_variable)
27334 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
27335 New declarations.
27336
27337 * termchar.h (tty_output, tty_display_info): New structures.
27338 (tty_list): Declare.
27339 (FRAME_TTY, CURTTY): New macros.
27340 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
27341 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
27342 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
27343 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
27344
27345 * callproc.c: Include frame.h and termhooks.h, for terminal
27346 parameters.
27347 (add_env): New function.
27348 (child_setup): Use it.
27349 (child_setup, getenv_internal): Handle the new Vprocess_environment.
27350 (getenv_internal): Fix get_terminal_param call.
27351 (Fgetenv_internal, egetenv): Update doc.
27352 (syms_of_callproc): Initialize Vprocess_environment to nil.
27353 Register and initialize them. Remove obsolete defvars. Update doc
27354 strings.
27355 (child_setup): Handle Vlocal_environment_variables.
27356 (getenv_internal): Add terminal parameter.
27357 Handle Vlocal_environment_variables.
27358 (Fgetenv_internal): Add terminal parameter.
27359 (child_setup, getenv_internal, Fgetenv_internal): Store the local
27360 environment in a frame (not terminal) parameter. Update doc strings.
27361 (set_initial_environment): Rename from set_global_environment.
27362 Store Emacs environment in initial frame parameter.
27363
27364 * xdisp.c (redisplay_internal): Update references to
27365 `previous_terminal_frame'.
27366 (display_mode_line, Fformat_mode_line): Replace calls to
27367 `push_frame_kboard' with `push_kboard'.
27368 (get_glyph_string_clip_rects): Add extra parentheses and
27369 braces to prevent compiler warnings.
27370 (calc_pixel_width_or_height): Add xassert to check that the
27371 frame is alive. Don't call `lookup_image' on a termcap frame.
27372 (message2_nolog, message3_nolog, redisplay_internal)
27373 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
27374 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
27375 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
27376 (Fx_display_pixel_width, Fx_display_pixel_height)
27377 (Fx_display_planes, Fx_display_color_cells)
27378 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
27379 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
27380 (Fx_display_backing_store, Fx_display_visual_class)
27381 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
27382 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
27383
27384 * xfns.c (x_set_foreground_color x_set_background_color)
27385 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
27386 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
27387 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
27388 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
27389 terminal that is being deleted.
27390 (Fx_create_frame): Use `store_frame_param' to set `window-system'
27391 frame parameter, and make sure it overrides any user-supplied setting.
27392 (Fx_close_connection, Fx_synchronize): Unify argument names with
27393 the rest of the DEFUNs.
27394
27395 * dispnew.c (Fsend_string_to_terminal): Update call to
27396 `get_tty_terminal'.
27397 (Fredraw_frame, Fsend_string_to_terminal)
27398 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
27399 FRAME_TERMCAP_P and FRAME_TTY.
27400 (window_change_signal): Don't believe width/height values that are
27401 impossibly small.
27402 (Vinitial_window_system): Rename from Vwindow_system.
27403 (termscript, Wcm, rif): Delete.
27404
27405 * termhooks.h (struct terminal): New struct containing the
27406 previously global text display hooks and new members NAME,
27407 DELETED and PARAM_ALIST.
27408 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
27409 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
27410 (FRAME_RIF): New macros.
27411 (get_terminal_param, get_device): New declarations.
27412 (termscript): Delete declaration.
27413
27414 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
27415 (XTflash, x_free_frame_resources, x_scroll_bar_create)
27416 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
27417 FRAME_FOREGROUND_PIXEL.
27418 (x_fully_uncatch_errors): Disable definition.
27419 (x_scroll_bar_expose): Fix reference to foreground pixel.
27420 (XTread_socket): Disable loop on all X displays.
27421 (x_delete_terminal): Don't set terminal->deleted and let
27422 delete_terminal delete the frames on the terminal.
27423 (x_delete_display): Doc update to reflect changes in
27424 delete_terminal.
27425 (x_display_info) <terminal>: Move member earlier in the struct.
27426 (deleting_tty): Remove old variable.
27427 (Fsuspend_tty): Call clear_tty_hooks.
27428 (Fresume_tty, init_tty): Call set_tty_hooks.
27429 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
27430 errors on X frames.
27431 (x_catch_errors_unwind): Abort if x_error_message is NULL.
27432 (handle_one_xevent): Initialize `f' to NULL.
27433 (x_delete_terminal, x_create_terminal): New functions.
27434 (XTset_terminal_modes, XTreset_terminal_modes)
27435 (XTread_socket, x_connection_closed, x_term_init)
27436 (x_term_init, x_delete_display): Add terminal parameter.
27437 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
27438 X connections.
27439
27440 * frame.c: Include termchar.h.
27441 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
27442 (Qwindow_system, Qenvironment, Qterm_environment_variable)
27443 (Qdisplay_environment_variable): New vars.
27444 (Fframep): Deal with output_initial.
27445 (Fframe-live-p): Doc fix.
27446 (Fwindow-system): New function.
27447 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
27448 (make_terminal_frame): Don't create frames on a terminal that is
27449 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
27450 (store_frame_param): Check for found_for_frame before calling XFRAME.
27451 (Fmake_terminal_frame): Handle NULL tty names correctly.
27452 (syms_of_frame): Enhance doc string of `default-frame-alist'.
27453 (Fdelete_frame): Remove unused variable `count'. Don't allow other
27454 frames to refer to a deleted frame in their 'environment parameter.
27455 (Fframe_with_environment): New function.
27456 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
27457 (get_future_frame_param): New function.
27458 (Fmake_terminal_frame): Use it.
27459 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
27460
27461 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
27462 * sysdep.c (reset_sys_modes): Update for renames.
27463
27464 * keyboard.c (tty_read_avail_input): New function.
27465 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
27466 (syms_of_keyboard): Defsubr them.
27467 (Fset_input_meta_mode, Fset_quit_char): New functions.
27468 (Fset_input_mode): Split to above functions.
27469 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
27470 parameter. Use it in call to `read_char'.
27471 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
27472 Set wrong_kboard_jmpbuf correctly in recursive calls.
27473 Use current_kboard to access Vkeyboard_translate_table.
27474 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
27475 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
27476 Update longjmp invocations. Remember the original current_kboard,
27477 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
27478 changes it. Comment out unnecessary calls to
27479 `record_single_kboard_state' and `any_kboard_state'.
27480 Update recursive calls.
27481 (wrong_kboard_jmpbuf): Remove global variable.
27482 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
27483 Handle deleted interrupted_kboards correctly; that is a legal
27484 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
27485 and read_char calls. Abort if interrupted_kboard died in read_char.
27486 (any_kboard_state, single_kboard_state)
27487 (push_frame_kboard): Remove function.
27488 (pop_kboard): Switch out of single_kboard mode if the kboard has
27489 been deleted. Remove unused variable. Help debugging by not
27490 changing current_kboard unnecessarily. Set current_kboard to the
27491 kboard of the selected frame when the stored kboard object has
27492 been deleted before pop_kboard.
27493 (temporarily_switch_to_single_kboard): Change first parameter to a
27494 frame pointer. Throw an error when caller wants to change kboards
27495 while in single_kboard mode. Don't push_kboard if we weren't in
27496 single kboard state. Don't pop_kboard if we popped into any
27497 kboard state.
27498 (restore_kboard_configuration): Abort if pop_kboard changed the
27499 kboard in single_kboard mode. Call pop_kboard only after setting
27500 up single_kboard mode.
27501 (Frecursive_edit): Switch to single_kboard mode only in nested
27502 command loops.
27503 (cmd_error, command_loop, command_loop_1, timer_check):
27504 Comment out unnecessary call to `any_kboard_state' and
27505 `record_single_kboard_state'.
27506 (delete_kboard): Exit single_kboard mode if we have just deleted
27507 that kboard. Use FRAME_KBOARD.
27508 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
27509 `fatal_error_signal'.
27510 (record_single_kboard_state): Don't push_kboard if we weren't in
27511 single kboard state. Don't pop_kboard if we popped into any
27512 kboard state.
27513 (push_frame_kboard): Rename to push_kboard.
27514 (kbd_buffer_get_event): Use FRAME_TERMINAL.
27515 (read_avail_input): Read input from all terminals.
27516 (mark_kboards): Also mark Vkeyboard_translate_table.
27517 (kbd_buffer_store_event_hold): Simplify condition.
27518 (read_key_sequence): Reinitialize fkey and keytran at each replay.
27519 (Vkeyboard_translate_table): Move to struct kboard.
27520 (init_kboard): Initialize Vkeyboard_translate_table.
27521 (syms_of_keyboard): Use DEFVAR_KBOARD to define
27522 Vkeyboard_translate_table. Update doc strings. Update docs of
27523 local-function-key-map and function-key-map.
27524
27525 * terminal.c: New file.
27526
27527 * term.c: Include errno.h.
27528 (Vring_bell_function, device_list, initial_device)
27529 (next_device_id, ring_bell, update_begin, update_end)
27530 (set_terminal_window, cursor_to, raw_cursor_to)
27531 (clear_to_end, clear_frame, clear_end_of_line)
27532 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
27533 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
27534 (syms_of_term): Move their initialization to terminal.c.
27535 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
27536 (Ftty_display_color_cells)
27537 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
27538 (clear_tty_hooks, set_tty_hooks)
27539 (init_tty, maybe_fatal): New functions.
27540 (Ftty_type): Return nil if terminal is not on a tty instead of
27541 throwing an error. Doc update.
27542 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
27543 Doc update. Initialize new subrs and variables.
27544 (delete_tty): Use terminal->deleted.
27545 (tty_set_terminal_modes): Rename from set_terminal_modes.
27546 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
27547 (set_scroll_region): Rename to `tty_set_scroll_region'.
27548 (turn_on_insert): Rename to `tty_turn_on_insert'.
27549 (turn_off_insert): Rename to `tty_turn_off_insert'.
27550 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
27551 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
27552 (toggle_highligh): Rename to `tty_toggle_highlight'.
27553 (background_highlight): Rename to `tty_background_highlight'.
27554 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
27555 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
27556 (tty_set_scroll_region, tty_background_highlight)
27557 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
27558 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
27559 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
27560 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
27561 Add static modifier.
27562 (tty_reset_terminal_modes, tty_set_terminal_window)
27563 (tty_set_scroll_region, tty_background_highlight)
27564 (tty_highlight_if_desired, tty_cursor_to)
27565 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
27566 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
27567 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
27568 renames.
27569
275702007-08-28 Jan Djärv <jan.h.d@swipnet.se>
27571
27572 * keyboard.c: Qrtl is new.
27573 (parse_tool_bar_item): Handle :rtl keyword.
27574 (syms_of_keyboard): Intern :rtl keyword.
27575
27576 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
27577
27578 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
27579 so no Lisp code is executed.
27580 (file_for_image, find_rtl_image): New functions.
27581 (xg_get_image_for_pixmap): Use file_for_image.
27582 (update_frame_tool_bar): If direction is RTL, use RTL image if
27583 defined. Use Gtk stock images if defined.
27584
275852007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27586
27587 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
27588 for nonexistent or zero-width glyph in composition glyph.
27589
275902007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
27591
27592 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
27593
27594 * xdisp.c (Finvisible_p): New function.
27595 (syms_of_xdisp): defsubr it.
27596
275972007-08-24 Juanma Barranquero <lekktu@gmail.com>
27598
27599 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
27600 Doc fixes.
27601
276022007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27603
27604 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
27605
276062007-08-24 Martin Rudalics <rudalics@gmx.at>
27607
27608 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
27609 whether decoding has modified buffer contents.
27610
276112007-08-24 Jason Rumney <jasonr@gnu.org>
27612
27613 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
27614 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
27615 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
27616 (init_svg_functions) [HAVE_NTGUI]: New function.
27617 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
27618 (svg_load_image): Use them.
27619 (svg_load_image) [HAVE_NTGUI]: Implement background.
27620
276212007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27622
27623 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
27624 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
27625 (LIBX): Remove @RSVG_LIBS@.
27626 (LIBES): Add $(RSVG_LIBS).
27627
27628 * image.c (svg_load_image): Blend with specified background if exists.
27629 Use IMAGE_BACKGROUND. Add Mac OS Support.
27630
27631 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
27632 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
27633 Remove macros.
27634 [MAC_OSX] (socket_callback): Do nothing.
27635 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
27636 ReceiveNextEvent.
27637 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
27638 socket_callback.
27639 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
27640
276412007-08-22 Glenn Morris <rgm@gnu.org>
27642
27643 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
27644
276452007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
27646
27647 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
27648
27649 * image.c: Add support for SVG images. Some additional comments
27650 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
27651 (svg_image_p): New function to test for SVG image.
27652 (svg_load): New function to load SVG image.
27653 (svg_load_image): New function, helper for svg_load.
27654 (Qsvg): New Lisp_object.
27655 (svg_keyword_index): New enum.
27656 (svg_format): New static `image_keyword' struct.
27657 (svg_type): New static `image_type' struct.
27658 (librsvg/rsvg.h): Include it.
27659
276602007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
27661
27662 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
27663
276642007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
27665
27666 * lread.c (Qold_style_backquotes): New var.
27667 (syms_of_lread): Init and staticpro it.
27668 (load_warn_old_style_backquotes): New fun.
27669 (Fload): Use them to warn about old style backquotes.
27670 (end_of_file_error, Fload): Remove unused vars.
27671
27672 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
27673
27674 * lread.c (Vold_style_backquotes): New var.
27675 (syms_of_lread): Init and export it to Elisp.
27676 (read1): Set it when we find an old-style (back)quote.
27677
276782007-08-22 Jason Rumney <jasonr@gnu.org>
27679
27680 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
27681
276822007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
27683
27684 * puresize.h (BASE_PURESIZE): Increase to 1140000.
27685
276862007-08-19 Richard Stallman <rms@gnu.org>
27687
27688 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
27689
276902007-08-19 Andreas Schwab <schwab@suse.de>
27691
27692 * alloc.c (pure): Round PURESIZE up.
27693
276942007-08-17 Jan Djärv <jan.h.d@swipnet.se>
27695
27696 * xterm.c (handle_one_xevent): Remove check that mouse click is in
27697 active frame.
27698
276992007-08-16 Richard Stallman <rms@gnu.org>
27700
27701 * eval.c (Fcommandp): Add parens to clarify.
27702
27703 * minibuf.c (Fall_completions): Use enum for type of table.
27704
27705 * emacs.c (USAGE2): Improve text.
27706
277072007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
27708
27709 * term.c (tty_default_color_capabilities): Declare static
27710 variables in file scope, to avoid HPUX compiler problem.
27711
277122007-08-13 Jan Djärv <jan.h.d@swipnet.se>
27713
27714 * gtkutil.c (update_frame_tool_bar): Use -1 as index
27715 to gtk_toolbar_insert.
27716
277172007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
27718
27719 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
27720
27721 * insdel.c (reset_var_on_error): New fun.
27722 (signal_before_change, signal_after_change):
27723 Use it to reset (after|before)-change-functions to nil in case of error.
27724 Bind inhibit-modification-hooks to t.
27725 Don't bind (after|before)-change-functions to nil while they run.
27726
277272007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27728
27729 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
27730 filling pixmap with stippled background.
27731
277322007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27733
27734 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
27735 Don't use invisible frame as parent window for repositioning.
27736
277372007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
27738
27739 * print.c (new_backquote_output): Rename from old_backquote_output.
27740 (print): Inverse its logic (according to its name) so as to match the
27741 behavior of new_backquote_flag in lread.c.
27742
277432007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27744
27745 * gmalloc.c (posix_memalign): New function.
27746
27747 * macterm.c (frame_highlight, frame_unhighlight): Don't call
27748 ActivateControl/DeactivateControl here.
27749 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
27750 frame-notice-user-settings is non-nil.
27751 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
27752 for kEventParamFMFontStyle.
27753 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
27754 mac_pass_command_to_system and mac_pass_control_to_system here.
27755 (XTread_socket): Call ActivateControl/DeactivateControl here.
27756 (XTread_socket) [TARGET_API_MAC_CARBON]:
27757 Check mac_pass_command_to_system and mac_pass_control_to_system here.
27758 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
27759 for window repositioning.
27760
277612007-08-08 Glenn Morris <rgm@gnu.org>
27762
27763 * Replace `iff' in doc-strings and comments.
27764
277652007-08-07 Chong Yidong <cyd@stupidchicken.com>
27766
27767 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
27768
277692007-08-07 Martin Rudalics <rudalics@gmx.at>
27770
27771 * fileio.c (Finsert_file_contents): Run format-decode and
27772 after_insert_file_functions on entire buffer when REPLACE is
27773 non-nil and inhibit modification_hooks and point_motion_hooks.
27774 For consistency, run after_insert_file_functions iff something
27775 got inserted. Move signal_after_change and update_compositions
27776 after code running after_insert_file_functions. Make sure that
27777 undo_list doesn't record intermediate steps of the decoding process.
27778
277792007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27780
27781 * emacs.c (main)
27782 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
27783 Call malloc_enable_thread on interactive startup.
27784
27785 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
27786 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
27787 [USE_PTHREAD]: Conditionalize with it.
27788 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
27789 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
27790 New functions.
27791
277922007-08-06 Chong Yidong <cyd@stupidchicken.com>
27793
27794 * xdisp.c (redisplay_window): When restoring original buffer
27795 position, make sure it is still valid.
27796
27797 * image.c (png_load): Ignore png-supplied background color.
27798
277992007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27800
27801 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
27802 Use kCFAbsoluteTimeIntervalSince1970.
27803
27804 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
27805 New variable.
27806 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
27807 event loop should be quit.
27808 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
27809 Quit dialog event loop if quit_dialog_event_loop is set.
27810
27811 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
27812 (Selection): New typedef. Use instead of ScrapRef.
27813 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
27814 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
27815 (mac_clear_selection): Rename from clear_scrap.
27816 (get_flavor_type_from_symbol): New argument SEL and subsume function of
27817 scrap_has_target_type. All uses changed.
27818 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
27819 (mac_selection_has_target_p): New functions.
27820 (mac_put_selection_value): Rename from put_scrap_string.
27821 (mac_get_selection_value): Rename from get_scrap_string.
27822 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
27823 (put_scrap_private_timestamp, scrap_has_target_type)
27824 (get_scrap_private_timestamp): Remove functions.
27825 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
27826 (x_own_selection, x_get_local_selection):
27827 Use mac_valid_selection_value_p.
27828 (x_own_selection): Don't use put_scrap_private_timestamp.
27829 Record OWNERSHIP-INFO into Vselection_alist instead.
27830 (x_get_local_selection): Don't check type if request is local.
27831 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
27832 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
27833
278342007-08-04 Jan Djärv <jan.h.d@swipnet.se>
27835
27836 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
27837 add comment explaining why.
27838
278392007-08-03 Richard Stallman <rms@gnu.org>
27840
27841 * fileio.c (Fvisited_file_modtime): Use make_time.
27842
278432007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
27844
27845 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
27846 build.
27847
278482007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
27849
27850 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
27851
278522007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
27853
27854 * puresize.h (BASE_PURESIZE): Increase to 1130000.
27855
278562007-07-30 Richard Stallman <rms@gnu.org>
27857
27858 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
27859
278602007-07-29 Jan Djärv <jan.h.d@swipnet.se>
27861
27862 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
27863
278642007-07-28 Nick Roberts <nickrob@snap.net.nz>
27865
27866 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
27867 remote default-directory.
27868
27869 * buffer.c (mode-line-format): Update doc string.
27870
278712007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27872
27873 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
27874 scroll bar gap.
27875 (x_scroll_bar_create): Set bar->fringe_extended_p.
27876 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
27877 on frame edge. Check fringe background extension. Don't clear
27878 extended fringe background area.
27879
27880 * w32term.h (struct scroll_bar): New member fringe_extended_p.
27881 (w32_fill_area): Enclose multiple statements with do ... while (0).
27882
27883 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
27884 Extend fringe background to scroll bar gap.
27885 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
27886 Set bar->fringe_extended_p.
27887 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
27888 Put leftmost/rightmost scroll bars on frame edge. Check fringe
27889 background extension. Don't clear extended fringe background area.
27890
27891 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
27892 New member fringe_extended_p.
27893
278942007-07-25 Glenn Morris <rgm@gnu.org>
27895
27896 * Relicense all FSF files to GPLv3 or later.
27897
27898 * COPYING: Switch to GPLv3.
27899
279002007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
27901
27902 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
27903
27904 * data.c (Finteractive_form): Check for the presence of an
27905 `interactive-form' symbol property more thoroughly.
27906
27907 * data.c (Finteractive_form): Use an `interactive-form' property if
27908 present, analogous to the function-documentation property.
27909
279102007-07-24 Jason Rumney <jasonr@gnu.org>
27911
27912 * w32fns.c (x_real_positions): Get real position from OS instead of
27913 calculating it.
27914
279152007-07-23 Jason Rumney <jasonr@gnu.org>
27916
27917 * filelock.c (current_lock_owner): Allow for @ sign in username.
27918
279192007-07-22 Nick Roberts <nickrob@snap.net.nz>
27920
27921 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
27922 remote default-directory.
27923
27924 * buffer.c (mode-line-format): Describe above case in doc string.
27925
279262007-07-20 Eli Zaretskii <eliz@gnu.org>
27927
27928 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
27929 Define if not defined.
27930
279312007-07-18 Jason Rumney <jasonr@gnu.org>
27932
27933 * w32proc.c (w32_executable_type): Handle 64 bit executables.
27934
279352007-07-18 Richard Stallman <rms@gnu.org>
27936
27937 * data.c (Fsetq_default): Doc fix.
27938
27939 * eval.c (Fsetq): Doc fix.
27940
279412007-07-18 Juanma Barranquero <lekktu@gmail.com>
27942
27943 * coding.c (Ffind_operation_coding_system):
27944 * eval.c (For, Fand): Doc fixes.
27945 Reported by Johan Bockgård.
27946
279472007-07-18 Jan Djärv <jan.h.d@swipnet.se>
27948
27949 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
27950
27951 * xterm.h: Declare x_ewmh_activate_frame.
27952
27953 * xterm.c (x_ewmh_activate_frame): New function.
27954 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
27955
279562007-07-17 Martin Rudalics <rudalics@gmx.at>
27957
27958 * window.c (Fdisplay_buffer): If largest or LRU window is the
27959 only window, split it even if it is not eligible for splitting.
27960 This restores the original behavior broken by the 2007-07-15
27961 change.
27962
279632007-07-17 Glenn Morris <rgm@gnu.org>
27964
27965 * abbrev.c (abbrev_check_chars): New function.
27966 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
27967 Call abbrev_check_chars to check abbrev characters are word
27968 constituents. Doc fix.
27969
279702007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
27971
27972 * process.c (Fstart_process, Fmake_network_process)
27973 (read_process_output): Fix up last changes.
27974
279752007-07-16 Eli Zaretskii <eliz@gnu.org>
27976
27977 * makefile.w32-in (clean): Don't delete *~.
27978
279792007-07-16 Andreas Schwab <schwab@suse.de>
27980
27981 * window.c (Fdisplay_buffer): Use NILP.
27982 (Fset_window_scroll_bars): Likewise.
27983
279842007-07-15 Martin Rudalics <rudalics@gmx.at>
27985
27986 * window.c (window_min_size_2): New function.
27987 (window_min_size_1, size_window, Fdisplay_buffer)
27988 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
27989 windows without mode- or header-lines when window-min-height is
27990 too small.
27991 (size_window): Reset nodelete_p after testing it, following an
27992 earlier note by Kim F. Storm.
27993 (display_buffer): Do not set split_height_threshold to twice the
27994 value of window_min_height to avoid changing the value of a
27995 customizable variable. Rather explicitly check whether the
27996 height of the window that shall be splitted is at least as large
27997 as split_height_threshold.
27998 (Fwindow_full_width_p): New defun.
27999 (syms_of_window): Defsubr it.
28000
28001 * window.h: Add EXFUN for Fwindow_full_width_p.
28002
280032007-07-14 Jason Rumney <jasonr@gnu.org>
28004
28005 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
28006
280072007-07-14 Richard Stallman <rms@gnu.org>
28008
28009 * eval.c (maybe_call_debugger): New function.
28010 (find_handler_clause): Use maybe_call_debugger.
28011 Call it when the handler says `debug'.
28012 Eliminate DEBUGGER_VALUE_PTR.
28013 (Fsignal): Eliminate debugger_value.
28014 (Qdebug): New variable.
28015 (syms_of_eval): Initialize it.
28016
280172007-07-14 Juanma Barranquero <lekktu@gmail.com>
28018
28019 * eval.c (Fprogn):
28020 * keyboard.c (Ftrack_mouse):
28021 * print.c (Fwith_output_to_temp_buffer):
28022 * window.c (Fsave_window_excursion): Doc fix.
28023
280242007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
28025
28026 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
28027
280282007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
28029
28030 * process.h (struct Lisp_Process): Turn slots infd, outfd,
28031 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
28032 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
28033 read_output_delay, and read_output_skip from Lisp_Objects to ints.
28034 Remove unused encoding_carryover.
28035 * process.c: Adjust all functions accordingly.
28036
280372007-07-12 Richard Stallman <rms@gnu.org>
28038
28039 * term.c: Include unistd.h only if HAVE_UNISTD_H.
28040
280412007-07-11 Jason Rumney <jasonr@gnu.org>
28042
28043 * makefile.w32-in (LIBS): Include OLE32.
28044
28045 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
28046 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
28047
280482007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
28049
28050 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
28051 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
28052 from a Lisp_Object into a bare pointer.
28053 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
28054 Adjust the code correspondingly.
28055
28056 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
28057
28058 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
28059 (term_show_mouse_face): Remove unused var `j'.
28060 (handle_one_term_event): Remove unused vars `i' and `j'.
28061 Don't cast return value of ttyname since it's not necessary.
28062
280632007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
28064
28065 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
28066 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
28067
28068 * fns.c (map_char_table): Use an array of int for `indices' rather than
28069 an array of Lisp_Objects (which are only ever integers anyway).
28070 (Fmap_char_table): Update caller.
28071 * lisp.h: Update prototype.
28072 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
28073 * fontset.c (Ffontset_info):
28074 * casetab.c (set_case_table): Update callers.
28075
28076 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
28077
28078 * keymap.c (struct accessible_keymaps_data)
28079 (struct where_is_internal_data): New structures.
28080 (accessible_keymaps_1, where_is_internal_1): Use them to change
28081 interface to adhere to the one used by map_keymap.
28082 (Faccessible_keymaps, where_is_internal): Use map_keymap.
28083 (accessible_keymaps_char_table, where_is_internal_2): Remove.
28084
28085 * keymap.h (map_keymap_function_t): More informative prototype.
28086
280872007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
28088
28089 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
28090 (looking_at_1): Don't change search_regs and last_thing_searched
28091 if `inhibit-changing-match-data' is non-nil.
28092 (string_match_1, search_buffer, set_search_regs): Likewise.
28093 (syms_of_search): Add Lisp level definition for
28094 `inhibit-changing-match-data' and set it to nil.
28095 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
28096 start and end of the match, instead of using values in search_regs.
28097
280982007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
28099
28100 * minibuf.c (Fcompleting_read): New value `confirm-only'
28101 for `require-match'.
28102
281032007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
28104
28105 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
28106 part of the 2007-06-27 change to syms_of_fileio.
28107
281082007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28109
28110 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
28111 Check WINDOWP before using XWINDOW. Consolidate return statements.
28112
281132007-06-27 Richard Stallman <rms@gnu.org>
28114
28115 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
28116
281172007-06-27 Juanma Barranquero <lekktu@gmail.com>
28118
28119 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
28120
281212007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28122
28123 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
28124 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
28125 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
28126 (_free_internal, memalign): Use them.
28127 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
28128 Initialize to PTHREAD_MUTEX_INITIALIZER.
28129 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
28130 (morecore_nolock): Rename from morecore. All uses changed.
28131 Use only nolock versions of internal allocation functions.
28132 (_malloc_internal_nolock, _realloc_internal_nolock)
28133 (_free_internal_nolock): New functions created from
28134 _malloc_internal, _realloc_internal, and _free_internal.
28135 (_malloc_internal, _realloc_internal, _free_internal): Use them.
28136 Copy hook value to automatic variable before its use.
28137 (memalign): Copy hook value to automatic variable before its use.
28138
281392007-06-26 Kenichi Handa <handa@m17n.org>
28140
28141 * coding.c (Ffind_operation_coding_system): Docstring improved.
28142 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
28143
281442007-06-25 David Kastrup <dak@gnu.org>
28145
28146 * keymap.c (Fcurrent_active_maps): Add `position' argument.
28147 (Fwhere_is_internal): Adjust call to `current-active-maps' to
28148 cater for additional parameter.
28149
28150 * keymap.h: Adjust number of parameters to `current-active-maps'.
28151
28152 * doc.c (Fsubstitute_command_keys): Adjust call of
28153 `current-active-maps'.
28154
281552007-06-25 David Kastrup <dak@gnu.org>
28156
28157 * callint.c (Fcall_interactively): Make the parsing of interactive
28158 specs somewhat more readable.
28159
281602007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28161
28162 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
28163 to scroll bar gap also when bitmap fills fringe. Draw only foreground
28164 if extended background has already been filled.
28165
281662007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28167
28168 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
28169 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
28170
28171 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
28172 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
28173 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
28174 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
28175 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
28176 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
28177 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
28178 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
28179 Run timers during dialog popup.
28180 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
28181
281822007-06-21 Jason Rumney <jasonr@gnu.org>
28183
28184 * image.c (convert_mono_to_color_image): Swap fore and background.
28185
281862007-06-20 Jason Rumney <jasonr@gnu.org>
28187
28188 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
28189 (w32_free_bdf_font): Unmap memory not handle.
28190
281912007-06-20 Sam Steingold <sds@gnu.org>
28192
28193 * gmalloc.c (__morecore): Fix the declaration to comply with the
28194 definition.
28195
281962007-06-20 Juanma Barranquero <lekktu@gmail.com>
28197
28198 * w32term.c (w32_delete_display): Remove leftover declaration.
28199 (w32_define_cursor, w32_initialize): Make static.
28200
28201 * w32.c (_wsa_errlist): Fix typo in error message.
28202 (init_environment): Ignore any environment variable from the
28203 registry having a null value.
28204
282052007-06-20 Glenn Morris <rgm@gnu.org>
28206
28207 * Makefile.in (LIBGIF): Default to -lgif.
28208
282092007-06-17 Jason Rumney <jasonr@gnu.org>
28210
28211 * w32menu.c (add_menu_item): Don't use multibyte string functions on
28212 unicode strings.
28213
282142007-06-16 Juanma Barranquero <lekktu@gmail.com>
28215
28216 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
28217 Fix typo in docstring.
28218
282192007-06-16 Eli Zaretskii <eliz@gnu.org>
28220
28221 * w32menu.c (add_menu_item): Escape `&' characters in menu items
28222 and their keybindings.
28223
282242007-06-15 Chong Yidong <cyd@stupidchicken.com>
28225
28226 * composite.c (update_compositions): Fix last fix.
28227
282282007-06-14 Jason Rumney <jasonr@gnu.org>
28229
28230 * w32.c (get_process_times_fn): New function pointer.
28231 (globals_of_w32): Intialize it if present in kernel32.dll.
28232 (w32_get_internal_run_time): New function.
28233
28234 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
28235
282362007-06-14 Kenichi Handa <handa@etlken.m17n.org>
28237
28238 * composite.c (update_compositions): Check the validness of
28239 compositions.
28240
282412007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28242
28243 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
28244 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
28245
28246 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
28247 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
28248
28249 * macgui.h (USE_MAC_TOOLBAR): New define.
28250
28251 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
28252 Return immediately unless popup is activated.
28253
28254 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
28255 background to scroll bar gap.
28256 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
28257 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
28258 scroll bars on frame edge. Check fringe background extension.
28259 Don't clear extended fringe background area.
28260 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
28261 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
28262 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
28263 [USE_MAC_TOOLBAR]: New macros.
28264 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
28265 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
28266 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
28267 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
28268 [USE_MAC_TOOLBAR]: New functions.
28269 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
28270 manually if previous repositioning has failed.
28271 (mac_handle_keyboard_event): Use precomputed event kind.
28272 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
28273 as tool bar item click. Handle mouse movement over tool bar items.
28274
28275 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
28276 toolbar_win_gravity.
28277 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
28278 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
28279 Add externs.
28280
28281 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
28282 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
28283
282842007-06-14 Chong Yidong <cyd@stupidchicken.com>
28285
28286 * image.c (search_image_cache): Remove unused variable.
28287
282882007-06-13 Chong Yidong <cyd@stupidchicken.com>
28289
28290 * xfns.c, xmenu.c: Link to xaw3d if available.
28291
282922007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28293
28294 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
28295 frame_foreground and frame_background.
28296
28297 * image.c (lookup_image): Save frame foreground and background colors.
28298 (search_image_cache): Check if saved and current frame colors match.
28299
283002007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
28301
28302 * regex.c (regex_compile): Remove the `regnum' counter.
28303 Use bufp->re_nsub instead. Add support for \(?N:RE\).
28304
283052007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
28306
28307 * term.c: Include intervals.h to declare Fget_text_property.
28308
283092007-06-10 Jason Rumney <jasonr@gnu.org>
28310
28311 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
28312
283132007-06-08 Juanma Barranquero <lekktu@gmail.com>
28314
28315 * callint.c (Fcall_interactively):
28316 * editfns.c (Fdelete_and_extract_region):
28317 * fileio.c (Fread_file_name):
28318 * fns.c (Fmapconcat):
28319 * keyboard.c (cmd_error_internal):
28320 * keymap.c (Fkey_description):
28321 * lread.c (openp):
28322 * minibuf.c (read_minibuf):
28323 * search.c (wordify):
28324 * sunfns.c (sel_read):
28325 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
28326 * xfns.c (x_default_scroll_bar_color_parameter):
28327 * xmenu.c (menu_help_callback):
28328 * xselect.c (Fx_get_atom_name):
28329 * xterm.c (x_term_init): Use empty_unibyte_string.
28330
283312007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
28332
28333 * alloc.c (init_strings): Initialize canonical empty strings.
28334 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
28335 canonical empty string when the requested size is 0.
28336
28337 * emacs.c (empty_unibyte_string): Rename from empty_string.
28338 (empty_multibyte_string): New canonical empty string.
28339 (syms_of_emacs): Don't initialize empty_string.
28340
28341 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
28342 string, if appropriate.
28343 (empty_unibyte_string, empty_multibyte_string): New externs.
28344 (empty_string): Remove extern.
28345
28346 * lread.c (syms_of_lread): Use empty_unibyte_string.
28347
283482007-06-07 Jason Rumney <jasonr@gnu.org>
28349
28350 * s/ms-w32.h: Don't define HAVE_TZNAME.
28351
28352 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
28353
283542007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28355
28356 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
28357
28358 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
28359 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
28360
28361 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
28362 Don't call next handler.
28363 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
28364 Remove argument. Install handler to application.
28365 (set_frame_menubar): Don't change deep_p.
28366 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
28367 FRAME_OUTER_TO_INNER_DIFF_Y.
28368 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
28369 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
28370 [HAVE_DIALOGS]: New macros.
28371 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
28372 Use them.
28373 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
28374
28375 * macselect.c [MAC_OSX] (install_service_handler): Rename from
28376 init_service_handler. All callers changed. Return OSStatus value.
28377
28378 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
28379 All callers changed so as not to call SetPortWindowPort.
28380 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
28381 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
28382 mac_draw_string_common.
28383 (mac_draw_image_string_qd): Likewise.
28384 (mac_draw_string_common): Use them. Add INLINE.
28385 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
28386 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
28387 GetGlobalMouse.
28388 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
28389 and FRAME_OUTER_TO_INNER_DIFF_Y.
28390 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
28391 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
28392 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
28393 repositioning window to mac_handle_window_event.
28394 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
28395 saving window location to mac_handle_window_event
28396 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
28397 (install_menu_target_item_handler): Remove argument in extern.
28398 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
28399 Also accept command events.
28400 (do_keystroke): New function created from XTread_socket.
28401 (init_command_handler): Remove functions.
28402 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
28403 and save window location by kEventWindowShowing and kEventWindowHiding
28404 handlers here. Don't call next handler for window state change and
28405 focus events.
28406 (mac_handle_application_event, mac_handle_keyboard_event)
28407 [TARGET_API_MAC_CARBON]: New functions.
28408 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
28409 kEventWindowShowing and kEventWindowHiding events. Move installation
28410 of mouse, font, text input and menu target item handlers to
28411 install_application_handler.
28412 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
28413 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
28414 New function.
28415 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
28416 Register it.
28417 (XTread_socket) [TARGET_API_MAC_CARBON]:
28418 Consolidate SendEventToEventTarget calls.
28419 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
28420 Move application activation handler to mac_handle_application_event.
28421 Move keyboard handler to mac_handle_keyboard_event.
28422 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
28423 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
28424 init_command_handler. Call install_application_handler.
28425
28426 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
28427 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
28428
284292007-06-07 Glenn Morris <rgm@gnu.org>
28430
28431 * emacs.c (main): Use `emacs-copyright' in --version output.
28432
284332007-06-06 Chong Yidong <cyd@stupidchicken.com>
28434
28435 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
28436
284372007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28438
28439 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
28440
28441 * macgui.h: Replace WindowPtr with WindowRef.
28442
28443 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
28444 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
28445 Replace ControlHandle with ControlRef.
28446 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
28447
28448 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
28449 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
28450 Replace ControlHandle with ControlRef.
28451 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
28452 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
28453
28454 * macterm.h (struct scroll_bar): Rename member control_handle_low
28455 and control_handle_high to control_ref_low and control_ref_high.
28456 All uses changed.
28457 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
28458 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
28459 respectively. All uses changed.
28460 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
28461 (install_window_handler, remove_window_handler): Replace WindowPtr
28462 with WindowRef in externs.
28463
284642007-06-05 Juanma Barranquero <lekktu@gmail.com>
28465
28466 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
28467
284682007-06-03 Nick Roberts <nickrob@snap.net.nz>
28469
28470 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
28471
28472 * frame.c (Fmouse_position, Fmouse_pixel_position):
28473 Condition on HAVE_GPM too.
28474
28475 * term.c (term_mouse_highlight): Remove unused variables.
28476 (Fterm_open_connection): Set gpm_zerobased to 1.
28477 (term_mouse_movement, term_mouse_click, handle_one_term_event):
28478 Use zero based co-ordinates.
28479 (handle_one_term_event): Report a drag as mouse movement too.
28480
28481 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
28482
284832007-06-03 Chong Yidong <cyd@stupidchicken.com>
28484
28485 * image.c (search_image_cache): New function. Require background
28486 color match if background color is unspecified in the image spec.
28487 (uncache_image, lookup_image): Use it.
28488
284892007-06-01 Juanma Barranquero <lekktu@gmail.com>
28490
28491 * window.c (Fshrink_window): Reflow docstring.
28492
284932007-06-02 Chong Yidong <cyd@stupidchicken.com>
28494
28495 * Version 22.1 released.
28496
284972007-06-01 Richard Stallman <rms@gnu.org>
28498
28499 * xfns.c (x_encode_text): Add GCPRO.
28500
285012007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28502
28503 * xfns.c (x_set_name_internal): Save encoded name before
28504 x_encode_text in case string data is relocated.
28505
285062007-05-31 Richard Stallman <rms@gnu.org>
28507
28508 * buffer.c (syms_of_buffer): Doc fix.
28509
285102007-05-30 Nick Roberts <nickrob@snap.net.nz>
28511
28512 * sysdep.c (init_sys_modes): Add rather than replace with
28513 O_NONBLOCK.
28514
28515 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
28516 term_mouse_moveto.
28517
28518 * termhooks.h (term_mouse_moveto): New extern.
28519
28520 * term.c (mouse_face_window): Rename...
28521 (Qmouse_face_window): ...to this.
28522 (term_show_mouse_face, term_clear_mouse_face)
28523 (term_mouse_highlight): Use Qmouse_face_window.
28524 (term_mouse_moveto): New function.
28525 (term_mouse_position): Make it work.
28526 (syms_of_term): Uncomment assignment to mouse_position_hook.
28527 Staticpro Qmouse_face_window.
28528
285292007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28530
28531 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
28532 around current_column call.
28533
285342007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
28535
28536 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
28537 * xdisp.c (next_element_from_buffer):
28538 * window.c (delete_window):
28539 * term.c (term_mouse_highlight):
28540 * msdos.c (getdefdir):
28541 * macterm.c (mac_create_bitmap_from_bitmap_data)
28542 (init_font_name_table):
28543 * fns.c (Fsxhash):
28544 * data.c (Fmake_local_variable):
28545 * ccl.c (ccl_driver): Likewise.
28546
285472007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28548
28549 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
28550 Call mac_wakeup_from_rne on window size change.
28551
285522007-05-25 Chong Yidong <cyd@stupidchicken.com>
28553
28554 * image.c (uncache_image): Fix typo.
28555
285562007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
28557
28558 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
28559
285602007-05-22 Richard Stallman <rms@gnu.org>
28561
28562 * xterm.c (x_connection_closed): Remove NO_RETURN.
28563
285642007-05-22 Martin Rudalics <rudalics@gmx.at>
28565
28566 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
28567
285682007-05-21 Chong Yidong <cyd@stupidchicken.com>
28569
28570 * image.c (uncache_image): New function.
28571 (Fimage_refresh): New function.
28572
285732007-05-20 Jan Djärv <jan.h.d@swipnet.se>
28574
28575 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
28576
285772007-05-20 Nick Roberts <nickrob@snap.net.nz>
28578
28579 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
28580 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
28581
285822007-05-20 Nick Roberts <nickrob@snap.net.nz>
28583
28584 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
28585 conditional on [HAVE_GPM_H].
28586
285872007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
28588
28589 * syntax.c (skip_chars): Update syntax-table only after we checked that
28590 the new location is valid.
28591
285922007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28593
28594 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
28595 mac_get_window_bounds.
28596
285972007-05-20 Nick Roberts <nickrob@snap.net.nz>
28598
28599 * Makefile.in (LIBGPM): Allow it to be set from configure.
28600 If set then link Emacs with it.
28601
28602 * config.in: Regenerate.
28603
28604 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
28605 New externs.
28606
28607 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
28608 Include gpm.h.
28609 (handle_one_term_event, term_gpm): New externs.
28610
28611 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
28612 and allow it to be interrupted by SIGIO.
28613
28614 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
28615 (wait_reading_process_output): Wait on gpm_fd too.
28616 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
28617 (add_gpm_wait_descriptor_called_flag): New variable.
28618 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
28619
28620 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
28621 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
28622 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
28623 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
28624 (make_lispy_event): Add case GPM_CLICK_EVENT.
28625 (read_avail_input): Handle mouse input.
28626
28627 * term.c (write_glyphs_with_face): New function.
28628 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
28629 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
28630 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
28631 (mouse_face_face_id, term_gpm, pos_x, pos_y)
28632 (last_mouse_x, last_mouse_y): New variables.
28633 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
28634 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
28635 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
28636 (Fterm_close_connection): New functions.
28637 (term_init): Initialise mouse_face_window.
28638
286392007-05-19 Chong Yidong <cyd@stupidchicken.com>
28640
28641 * xdisp.c (redisplay_window): If first window line is a
28642 continuation line, recompute the new window start instead of
28643 recentering.
28644
286452007-05-18 Glenn Morris <rgm@gnu.org>
28646
28647 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
28648 Suggested by Alfred M. Szmidt <ams@gnu.org>.
28649
286502007-05-17 Glenn Morris <rgm@gnu.org>
28651
28652 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
28653
286542007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28655
28656 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
28657 dead key repeat and up events.
28658
286592007-05-14 Chong Yidong <cyd@stupidchicken.com>
28660
28661 * image.c (pbm_load): Check image size for monochrome pbm.
28662
286632007-05-13 Chong Yidong <cyd@stupidchicken.com>
28664
28665 * xterm.c (XTread_socket): Revert last change.
28666
286672007-05-12 Chong Yidong <cyd@stupidchicken.com>
28668
28669 * image.c (pbm_load): Correctly check image size for greyscale pbm.
28670
28671 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
28672
286732007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
28674
28675 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
28676 mixup (YAILOM).
28677
286782007-05-07 Andreas Schwab <schwab@suse.de>
28679
28680 * keymap.c (Flookup_key): Fix typo in last change.
28681
286822007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
28683
28684 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
28685 mapping for unibyte strings.
28686
286872007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28688
28689 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
28690 (Fx_popup_dialog) [MAC_OSX]: Likewise.
28691
286922007-04-29 Richard Stallman <rms@gnu.org>
28693
28694 * insdel.c (replace_range): For undo, record insertion first.
28695
286962007-04-29 Andreas Schwab <schwab@suse.de>
28697
28698 * lisp.h (VECSIZE): Use OFFSETOF.
28699
287002007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28701
28702 * xdisp.c (try_window_reusing_current_matrix): Fix number of
28703 disabled lines.
28704
287052007-04-28 Richard Stallman <rms@gnu.org>
28706
28707 * lread.c (read_escape): In a string, \s is always space.
28708
287092007-04-27 Jan Djärv <jan.h.d@swipnet.se>
28710
28711 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
28712
28713 * gtkutil.c (xg_update_menubar, create_menus): Create empty
28714 submenu for menu bar items.
28715
28716See ChangeLog.10 for earlier changes.
28717
28718;; Local Variables:
28719;; coding: utf-8
aac0c6e3
MR
28720;; End:
28721
f3d87560
GM
28722 Copyright (C) 2007, 2008, 2009, 2010
28723 Free Software Foundation, Inc.
aac0c6e3
MR
28724
28725 This file is part of GNU Emacs.
28726
28727 GNU Emacs is free software: you can redistribute it and/or modify
28728 it under the terms of the GNU General Public License as published by
28729 the Free Software Foundation, either version 3 of the License, or
28730 (at your option) any later version.
28731
28732 GNU Emacs is distributed in the hope that it will be useful,
28733 but WITHOUT ANY WARRANTY; without even the implied warranty of
28734 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28735 GNU General Public License for more details.
28736
28737 You should have received a copy of the GNU General Public License
28738 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
28739