]> code.delx.au - gnu-emacs/blob - src/ChangeLog
Support R2L lines in tool-tip text.
[gnu-emacs] / src / ChangeLog
1 2010-11-06 Eli Zaretskii <eliz@gnu.org>
2
3 * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
4 adjust width of tool-tip frame to the width of text, excluding the
5 stretch glyph at the beginning of R2L glyph rows.
6
7 * w32fns.c (Fx_show_tip): Likewise.
8
9 2010-11-06 Jan Djärv <jan.h.d@swipnet.se>
10
11 * nsfont.m: Include termchar for new mouse-highlight.
12
13 2010-11-05 Eli Zaretskii <eliz@gnu.org>
14
15 Unify mouse-highlight code for all GUI and TTY sessions.
16
17 * term.c: Remove static mouse_face_* variables. All users
18 changed.
19 (term_show_mouse_face, term_clear_mouse_face)
20 (fast_find_position, term_mouse_highlight): Functions deleted.
21 (tty_draw_row_with_mouse_face): New function.
22 (term_mouse_movement): Call note_mouse_highlight instead of
23 term_mouse_highlight.
24
25 * nsterm.m (ns_update_window_begin, ns_update_window_end)
26 (ns_update_end, x_destroy_window, ns_frame_up_to_date)
27 (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
28 (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
29 (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
30 Replace Display_Info with Mouse_HLInfo everywhere where
31 mouse_face_* members were accessed for mouse highlight purposes.
32
33 * xterm.c (x_update_window_begin, x_update_window_end)
34 (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
35 (handle_one_xevent, x_free_frame_resources, x_term_init): Replace
36 Display_Info with Mouse_HLInfo everywhere where mouse_face_*
37 members were accessed for mouse highlight purposes.
38
39 * w32term.c (x_update_window_begin, x_update_window_end)
40 (x_update_end, w32_read_socket, x_free_frame_resources)
41 (w32_initialize_display_info): Replace Display_Info with
42 Mouse_HLInfo everywhere where mouse_face_* members were accessed
43 for mouse highlight purposes.
44
45 * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
46 (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
47 unless the frame is on a window-system.
48 (get_tool_bar_item, handle_tool_bar_click)
49 (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
50 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
51 (note_mode_line_or_margin_highlight, note_mouse_highlight)
52 (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
53 Replace Display_Info with Mouse_HLInfo everywhere where
54 mouse_face_* members were accessed for mouse highlight purposes.
55 (coords_in_mouse_face_p): Move prototype out of the
56 HAVE_WINDOW_SYSTEM conditional.
57 (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
58 HAVE_WINDOW_SYSTEM block.
59 (try_window_id) [HAVE_GPM || MSDOS]: Call
60 x_clear_window_mouse_face.
61 (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
62 systems. Call tty_draw_row_with_mouse_face for TTY systems.
63 (show_mouse_face): Call draw_row_with_mouse_face, instead of
64 calling draw_glyphs directly.
65 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
66 (cursor_in_mouse_face_p, rows_from_pos_range)
67 (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
68 (note_mode_line_or_margin_highlight, note_mouse_highlight)
69 (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
70 HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
71 fragments.
72 (note_mouse_highlight): Call popup_activated for MSDOS as well.
73 Clear mouse highlight if pointer is over glyphs whose OBJECT is an
74 integer.
75 (mouse_face_from_buffer_pos): Add parentheses around && within ||.
76 (x_consider_frame_title, tool_bar_lines_needed): Move
77 prototypes to HAVE_WINDOW_SYSTEM-only part.
78 (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
79 part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
80 (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
81 part.
82
83 * dispnew.c (mirror_make_current): Set Y coordinate of the
84 mode-line and header-line rows.
85 (init_display): Setup initial frame's output_data for text
86 terminal frames.
87
88 * xmenu.c (popup_activated): Don't define on MSDOS, which now has
89 its own definition on msdos.c.
90
91 * msdos.c (show_mouse_face, clear_mouse_face)
92 (fast_find_position, IT_note_mode_line_highlight)
93 (IT_note_mouse_highlight): Functions deleted.
94 (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
95 instead of IT_note_mouse_highlight.
96 (draw_row_with_mouse_face, popup_activated): New functions.
97 (dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
98 (IT_update_end, IT_frame_up_to_date, internal_terminal_init)
99 (dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
100 where mouse_face_* members were accessed for mouse highlight
101 purposes.
102
103 * msdos.h (initialize_msdos_display): Add prototype.
104
105 * frame.h (MOUSE_HL_INFO): New macro.
106
107 * lisp.h (Mouse_HLInfo): New data type.
108
109 * xterm.h (struct x_display_info):
110 * w32term.h (struct w32_display_info):
111 * nsterm.h (struct ns_display_info):
112 * termchar.h (struct tty_display_info): Use it instead of
113 mouse_face_* members.
114
115 * dispextern.h (show_mouse_face, clear_mouse_face): Update type of
116 1st argument.
117 (frame_to_window_pixel_xy, note_mouse_highlight)
118 (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
119 (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
120 HAVE_WINDOW_SYSTEM conditional.
121 (draw_row_with_mouse_face): Declare prototype.
122 (tty_draw_row_with_mouse_face): Declare prototype.
123
124 2010-11-05 Eli Zaretskii <eliz@gnu.org>
125
126 * term.c (append_glyphless_glyph, produce_glyphless_glyph): Remove
127 unused variables.
128
129 2010-11-05 Adrian Robert <Adrian.B.Robert@gmail.com>
130
131 * nsterm.m (EmacsView-mouseExited:): Correct error in conditional
132 logic pointed out by Eli Zaretskii.
133
134 2010-11-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
135
136 * coding.c (coding-category-list): Refer to set-coding-system-priority
137 instead of the obsolete set-coding-priority in the doc string.
138
139
140 2010-11-04 Adrian Robert <Adrian.B.Robert@gmail.com>
141
142 * nsfont.m (nsfont_draw): Correct previous patch to return
143 correct value.
144 * nsimage.m (EmacsImage-setXBMColor:): Correct previous patch:
145 don't change the method signature, change the return.
146
147 2010-11-04 Ismail Donmez <ismail@namtrac.org> (tiny change)
148
149 * nsfont.m (nsfont_draw)
150 * nsimage.m (EmacsImage-setXBMColor:)
151 * nsterm.m (EmacsView-performDragOperation:): Correct empty return.
152
153 2010-11-03 Julien Danjou <julien@danjou.info>
154
155 * image.c (gif_load): Add support for transparency and specified
156 :background.
157
158 2010-11-01 Kenichi Handa <handa@m17n.org>
159
160 * dispextern.h (lookup_glyphless_char_display): Extern it.
161
162 * termhooks.h (struct terminal): New member charset_list.
163
164 * coding.c (Fset_terminal_coding_system_internal): Set the
165 `charset_list' member of struct terminal.
166
167 * term.c (produce_glyphs): Handle the case it->what == IT_GLYPHLESS.
168 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
169
170 * xdisp.c (lookup_glyphless_char_display): Make it non-static.
171 (lookup_glyphless_char_display): Set it->what at the end.
172 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
173 (last_glyphless_glyph_merged_face_id): Make them non-static.
174
175 * w32term.c (x_draw_glyphless_glyph_string_foreground):
176 Fix the arg with_background for font->driver->draw.
177
178 2010-11-01 Kenichi Handa <handa@m17n.org>
179
180 * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
181 Surround chp by parentheses.
182
183 2010-11-01 Kenichi Handa <handa@m17n.org>
184
185 Implement various display methods for glyphless characters.
186
187 * xdisp.c (Qglyphless_char, Vglyphless_char_display)
188 (Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space)
189 (Qzero_width): New variables.
190 (THIN_SPACE_WIDTH): New macro.
191 (lookup_glyphless_char_display): New funciton.
192 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
193 (last_glyphless_glyph_merged_face_id): New variables.
194 (get_next_display_element): Check glyphless characters.
195 (redisplay_internal): Initialize last_glyphless_glyph_frame and
196 last_glyphless_glyph_face_id.
197 (fill_glyphless_glyph_string): New function.
198 (BUILD_GLYPHLESS_GLYPH_STRING): New macro.
199 (BUILD_GLYPH_STRINGS): Handle the case GLYPHLESS_GLYPH.
200 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
201 (x_produce_glyphs): If a suitable font is not found, produce a
202 glyphless glyph. Handle the case it->what == IT_GLYPHLESS.
203 (syms_of_xdisp): Intern and staticpro Qglyphless_char,
204 Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space, and
205 Qzero_width.
206 (Vglyphless_char_display): Declare it as a Lisp variable.
207
208 * dispextern.h (enum glyph_type): Add GLYPHLESS_GLYPH.
209 (struct glyph): Change the size of the member "type" to 3.
210 Add glyphless to the union slice and u.
211 (enum display_element_type): Add IT_GLYPHLESS.
212 (enum glyphless_display_method): New enum.
213 (struct it): New member glyphless_method.
214 (Vglyphless_char_display): Extern it.
215
216 * xterm.c (x_draw_glyphless_glyph_string_foreground): New function.
217 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
218
219 * w32term.c (x_draw_glyphless_glyph_string_foreground): New function.
220 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
221
222 * nsterm.m (ns_draw_glyph_string): Handle the case
223 GLYPHLESS_GLYPH (the detail is not yet implemented).
224
225 2010-10-31 Glenn Morris <rgm@gnu.org>
226
227 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
228
229 * frame.c (syms_of_frame) <tool-bar-mode>:
230 Default to nil if !HAVE_WINDOW_SYSTEM. (Bug#7299)
231
232 2010-10-31 Chong Yidong <cyd@stupidchicken.com>
233
234 * xterm.c (x_connection_closed): Print informative error message
235 when aborting on GTK. This requires using shut_down_emacs
236 directly instead of Fkill_emacs.
237
238 2010-10-29 Eli Zaretskii <eliz@gnu.org>
239
240 * emacs.c (main): Call syms_of_filelock unconditionally.
241
242 * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
243 clause, but keep part of it conditioned on CLASH_DETECTION.
244
245 2010-10-29 Glenn Morris <rgm@gnu.org>
246
247 * nsfns.m (Fx-display-save-under, Fx-open-connection)
248 (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
249 * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
250 * xfns.c (Fxw_color_defined_p, Fx_open_connection):
251 Sync docs between X, W32, NS.
252
253 * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
254 * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
255
256 2010-10-26 Juanma Barranquero <lekktu@gmail.com>
257
258 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
259 otherwise, bootstrapping on Windows fails to compile macroexp.el.
260
261 2010-10-26 Eli Zaretskii <eliz@gnu.org>
262
263 * cmds.c (internal_self_insert): Don't insert if argument N is
264 zero or negative. (Bug#7281)
265
266 2010-10-26 Jan Djärv <jan.h.d@swipnet.se>
267
268 * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
269
270 2010-10-25 Glenn Morris <rgm@gnu.org>
271
272 * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
273
274 2010-10-24 Glenn Morris <rgm@gnu.org>
275
276 * w32fns.c (Fx_synchronize, Fx_change_window_property)
277 (Fx_window_property, Fx_file_dialog):
278 * xfns.c (Fx_synchronize, Fx_change_window_property)
279 (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
280
281 2010-10-24 Chong Yidong <cyd@stupidchicken.com>
282
283 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
284
285 2010-10-24 Eli Zaretskii <eliz@gnu.org>
286
287 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
288
289 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
290 Deprecate use as a boolean flag.
291
292 2010-10-24 Jim Meyering <jim@meyering.net>
293
294 * emacs.c (argmatch): Don't treat "--" as "--chdir".
295
296 2010-10-24 Glenn Morris <rgm@gnu.org>
297
298 * w16select.c (syms_of_win16select) <selection-coding-system>:
299 <next-selection-coding-system>:
300 * w32select.c (syms_of_w32select) <selection-coding-system>:
301 <next-selection-coding-system>:
302 Sync docs with select.el.
303
304 * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
305 Lisp version.
306
307 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
308 Sync doc with the xterm.c version.
309
310 * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
311 * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
312
313 2010-10-23 Glenn Morris <rgm@gnu.org>
314
315 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
316 * frame.c (syms_of_frame) <menu-bar-mode>:
317 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
318 <hourglass-delay>: Sync docs with Lisp.
319
320 2010-10-23 Eli Zaretskii <eliz@gnu.org>
321
322 Implement mouse highlight for bidi-reordered lines.
323
324 * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
325 (mouse_face_from_string_pos): New function, replaces
326 fast_find_string_pos.
327 (note_mouse_highlight): Call it instead of fast_find_string_pos.
328 (note_mode_line_or_margin_highlight): Support bidi-reordered
329 strings and R2L glyph rows. Fix comments.
330 (note_mouse_highlight): When bidi reordering is turned on in a
331 buffer, call next-single-property-change and
332 previous-single-property-change with last argument nil. Clear
333 mouse highlight when mouse pointer is in a R2L row on the stretch
334 glyph that stands for no text beyond the line end.
335 (row_containing_pos): Don't return too early when CHARPOS is in a
336 bidi-reordered continued line. Return immediately when the first
337 hit is found in a line that is not continued, or when an exact
338 match for CHARPOS is found.
339 (rows_from_pos_range): New function.
340 (mouse_face_from_buffer_pos): Use it instead of calling
341 row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
342 function to support mouse highlight in bidi-reordered lines and
343 not to assume that START_CHARPOS is always in mouse_face_beg_row.
344 If necessary, swap mouse_face_beg_row and mouse_face_end_row so
345 that the former is always above the latter or identical to it.
346 (show_mouse_face): Support drawing highlighted R2L lines.
347 (coords_in_mouse_face_p): New function, bidi-aware.
348 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
349 Call it instead of comparing with mouse-face members of dpyinfo.
350 (note_mode_line_or_margin_highlight): Fix confusingly swapped
351 usage of hpos and vpos.
352
353 2010-10-22 Jan Djärv <jan.h.d@swipnet.se>
354
355 * xrdb.c: Include keyboard.h for MOTIF.
356
357 * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
358 MOTIF (Bug#7263).
359
360 * xfns.c: Include Xm/TextF and Xm/List.
361 (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog): Make
362 ANSI prototypes.
363
364 2010-10-22 Glenn Morris <rgm@gnu.org>
365
366 * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
367 Remove ccl and duplicate mouse.
368
369 2010-10-21 Chong Yidong <cyd@stupidchicken.com>
370
371 * insdel.c (prepare_to_modify_buffer): Don't set
372 saved-region-selection if modification hooks are disabled.
373
374 2010-10-19 Chong Yidong <cyd@stupidchicken.com>
375
376 * cmds.c (Fdelete_char): Doc fix.
377
378 2010-10-19 Ken Brown <kbrown@cornell.edu>
379
380 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
381
382 2010-10-19 Kenichi Handa <handa@m17n.org>
383
384 Fix incorrect font metrics when the same font is opened with
385 different pixelsizes.
386
387 * xftfont.c: Include composite.h.
388 (xftfont_shape): New function.
389 (syms_of_xftfont): Set xftfont_driver.shape.
390
391 2010-10-18 Julien Danjou <julien@danjou.info>
392
393 * frame.c (Fframe_pointer_visible_p):
394 Add `frame-pointer-visible-p' to get the pointer visibility.
395
396 2010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
397
398 * gnutls.c (emacs_gnutls_read): Return 0 if we get a
399 non-"EAGAIN"-like error to signal to Emacs that the socket should
400 be closed.
401
402 2010-10-15 Eli Zaretskii <eliz@gnu.org>
403
404 * unexcoff.c (make_hdr): Fix prototype according to changes in
405 2010-10-03T13:59:56Z!dann@ics.uci.edu.
406
407 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
408
409 2010-10-15 Tassilo Horn <tassilo@member.fsf.org>
410
411 * Makefile.in (really-oldXMenu): Fix typo in variable name that
412 made building the X menu fail.
413 (really-oldXMenu): Fix my previous fix.
414
415 2010-10-14 Damyan Pepper <damyanp@gmail.com>
416
417 Fix handling of font properties on Windows (bug#6303).
418 * font.c (font_filter_properties): New function, refactored from
419 ftfont_filter_properties.
420 * font.h (font_filter_properties): Declare.
421 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
422 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
423 (w32font_filter_properties): New function.
424 (w32font_driver): Add w32font_filter_properties.
425
426 2010-10-14 Juanma Barranquero <lekktu@gmail.com>
427
428 * font.c (Ffont_variation_glyphs):
429 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
430
431 2010-10-14 Juanma Barranquero <lekktu@gmail.com>
432
433 * w32fns.c (w32_wnd_proc, file_dialog_callback):
434 * w32font.c (w32_generic_family):
435 * w32inevt.c (key_event):
436 * w32menu.c (fill_in_menu):
437 * w32proc.c (reader_thread, w32_executable_type, compare_env)
438 (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
439 * w32term.c (w32_read_socket): Make static.
440
441 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
442
443 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
444 prototypes; all callers changed.
445
446 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
447
448 * makefile.w32-in (TLIB2): Rename from TLIBW32.
449 (OBJ2): New macro.
450 (WIN32OBJ, FONTOBJ): Remove.
451 (OBJ1): Redistribute object files with OBJ2.
452 (LIBS, $(TEMACS)): Use TLIB2.
453 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
454 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
455
456 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
457
458 * emacs.c (Vdynamic_library_alist)
459 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
460 Doc fix.
461
462 * lisp.h (Vdynamic_library_alist): Declare extern.
463
464 * image.c (Vimage_library_alist)
465 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
466 (lookup_image_type): Use Vdynamic_library_alist.
467 (Finit_image_library): Doc fix.
468
469 2010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
470
471 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
472 (lispdir): Remove trailing /, update all uses.
473
474 2010-10-12 Jan Djärv <jan.h.d@swipnet.se>
475
476 * nsterm.m (Qleft): Declare.
477 (ns_right_alternate_modifier): New variable
478 (NSRightAlternateKeyMask): New define.
479 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
480 ns_right_alternate_modifier isn't Qleft.
481 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
482 as emacs modifier for NSRightAlternateKeyMask.
483 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
484
485 2010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
486
487 * gnutls.c (emacs_gnutls_write): If we're trying to write before
488 gnutls is ready, return EAGAIN as the errno.
489
490 2010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
491
492 * vm-limit.c:
493 * unexhp9k800.c:
494 * unexelf.c:
495 * unexaix.c:
496 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
497
498 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
499 (PROFILING_LDFLAGS): Remove, not needed anymore.
500
501 * Makefile.in: Use $(...) everywhere instead of ${...}
502 (CRT_DIR): Move near potential user.
503 (START_FILE): Move near CRT_DIR, it might use it.
504
505 * sysdep.c (LPASS8): Remove, unused.
506 (emacs_ospeed): Change from being a global to a local in the only
507 user: init_baud_rate.
508
509 2010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
510
511 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
512 (emacs_gnutls_write): Remove the debuggin fsync call.
513 (emacs_gnutls_read): Return -1 if we got an error from
514 gnutls_read. This allows us to actually read lots of data from
515 the GnuTLS stream.
516 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
517 According to the documentation, this is correct, and it seems to
518 make things work.
519
520 2010-10-09 Chong Yidong <cyd@stupidchicken.com>
521
522 * xterm.c (x_draw_relief_rect): Clear corner pixels.
523
524 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
525
526 * keyboard.c: Revert last change; it was not intended to be
527 synchronized with the trunk.
528
529 2010-10-08 Kenichi Handa <handa@m17n.org>
530
531 * coding.c (complement_process_encoding_system): Fix previous change.
532
533 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
534
535 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
536 (Fdbus_init_bus): ... here. (Bug#7113)
537
538 2010-10-08 Glenn Morris <rgm@gnu.org>
539
540 * buffer.c (before-change-functions, after-change-functions):
541 Three-year overdue doc fix following 2007-08-13 change.
542
543 2010-10-08 Kenichi Handa <handa@m17n.org>
544
545 * coding.c (coding_inherit_eol_type): If parent doesn't specify
546 eol-format, inherit from the system's default.
547 (complement_process_encoding_system): Make a new coding system
548 inherit the original eol-format.
549
550 2010-10-08 Kenichi Handa <handa@m17n.org>
551
552 * coding.c (complement_process_encoding_system): New function.
553
554 * coding.h (complement_process_encoding_system): Extern it.
555
556 * callproc.c (Fcall_process): Complement the coding system for
557 encoding arguments.
558 (Fcall_process_region): Complement the coding system for encoding
559 the input to the process.
560
561 * process.c (Fstart_process): Complement the coding system for
562 encoding arguments.
563 (send_process): Complement the coding system for encoding what
564 sent to the process.
565
566 2010-10-08 Kenichi Handa <handa@m17n.org>
567
568 * xfont.c (xfont_open): Fix setting of font->average_width from
569 :avgwidth property (Bug#7123).
570
571 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
572
573 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
574 is more portable.
575
576 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
577 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
578 has not defined SIGIO.
579
580 2010-10-08 Chong Yidong <cyd@stupidchicken.com>
581
582 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
583 draw the outermost line using the black relief, for legibility.
584 Omit drawing the four corner pixels.
585
586 2010-10-04 Chong Yidong <cyd@stupidchicken.com>
587
588 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
589 (read_key_sequence): Inline echo_prompt.
590 (echo_dash): Add a dash only if key is continued (Bug#7137).
591
592 2010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
593
594 Remove O_RDONLY, O_WRONLY definitions, not needed.
595 * unexcoff.c:
596 * lread.c:
597 * fileio.c:
598 * doc.c:
599 * callproc.c:
600 * alloc.c:
601 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
602
603 2010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
604
605 * gnutls.h (GNUTLS_LOG2): Convenience macro.
606
607 * gnutls.c: Add property list symbol holders.
608 (emacs_gnutls_handshake): Clarify how sockets are passed to
609 GnuTLS.
610 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
611 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
612 and keyfiles to be a list of file names. Default to "NORMAL" for
613 the priority string. Improve logging.
614
615 2010-10-03 Glenn Morris <rgm@gnu.org>
616
617 * fileio.c (Vdirectory_sep_char): Remove.
618
619 2010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
620
621 * termhooks.h: Remove #ifdef CONSP.
622
623 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
624
625 Include <fcntl.h> unconditionally.
626 * termcap.c:
627 * sysdep.c:
628 * lread.c:
629 * keyboard.c:
630 * filelock.c:
631 * fileio.c:
632 * doc.c:
633 * callproc.c:
634 * alloc.c: Remove include guards for <fcntl.h>, process.c already
635 does it.
636
637 * process.c: Do not include <sys/wait.h>, syswait.h does it.
638
639 * sysdep.c (flush_pending_output): Remove code, does not do
640 anything on any platform.
641
642 Remove unused code.
643 * sysdep.c (select_alarm, sys_select, read_input_waiting): Remove
644 select emulation, all systems support select.
645 (set_exclusive_use): Remove, the only user is in an #if 0 block.
646 * process.c (create_process): Remove #if 0 code.
647
648 Remove unused arguments for unexec.
649 The third one is never used, and the last two are always passed as zero.
650 * emacs.c (unexec): Add declaration.
651 (Fdump_emacs): Only pass the first two arguments to unexec.
652 Simplify #ifdef.
653 * unexw32.c (unexec):
654 * unexsol.c (unexec):
655 * unexhp9k800.c (unexec):
656 * unexcw.c (unexec): Remove the last 3 arguments, unused.
657 * unexelf.c (unexec): Remove the last 3 arguments, unused.
658 (find_section): Use const.
659 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
660 (unexec_error): Declare it NO_RETURN.
661 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
662 it as an argument, remove data_start and entry_address arguments, unused.
663 (unexec): Remove bss_start, data_start and
664 entry_address arguments.
665 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
666 it as an argument, remove data_start and entry_address arguments, unused.
667 (unexec): Remove bss_start, data_start and
668 entry_address arguments.
669
670 2010-10-03 Juanma Barranquero <lekktu@gmail.com>
671
672 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
673
674 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
675 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
676 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
677 Fix typos in docstrings.
678 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
679 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
680
681 2010-10-03 Chong Yidong <cyd@stupidchicken.com>
682
683 * keyboard.c (command_loop_1): Make sure the mark is really alive
684 before using it (Bug#7044).
685
686 2010-10-02 Juanma Barranquero <lekktu@gmail.com>
687
688 * makefile.w32-in (tags): Rename target to full-tags.
689
690 2010-10-02 Eli Zaretskii <eliz@gnu.org>
691
692 * emacs.c (main): Remove !WINDOWSNT conditional.
693 (Fkill_emacs): Don't mention exemption on MS-Windows.
694
695 2010-10-02 Glenn Morris <rgm@gnu.org>
696
697 * character.c (Fchar_bytes): Remove obsolete function.
698 (syms_of_character): Remove Schar_bytes.
699
700 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
701 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
702 in batch-mode.
703 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
704 (kill-emacs-hook): Doc fix.
705
706 2010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
707
708 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
709 (parse_region): Reworked to take regions instead of strings, and
710 renamed to reflect that these are the libxml functions.
711
712 2010-10-01 Eli Zaretskii <eliz@gnu.org>
713
714 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
715 screen dimensions in tty->Wcm.
716
717 * xdisp.c (set_cursor_from_row): When the row is truncated and
718 point is outside the range of displayed characters, position the
719 cursor inside the scroll margin. (Bug#6349)
720
721 2010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
722
723 Do not include stdlib.h and string.h, config.h does it.
724 * xfont.c:
725 * w32term.c:
726 * w32reg.c:
727 * w32inevt.c:
728 * w32heap.c:
729 * w32console.c:
730 * w16select.c:
731 * unexsol.c:
732 * term.c:
733 * sound.c:
734 * scroll.c (m):
735 * gtkutil.c:
736 * font.c:
737 * filelock.c:
738 * fileio.c:
739 * dosfns.c:
740 * dbusbind.c:
741 * bidi.c:
742 * callproc.c:
743 * process.c:
744 * msdos.c:
745 * charset.c: Do not include stdlib.h and string.h, config.h does it.
746
747 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h defines it.
748
749 * process.c: Move #include <pty.h> earlier.
750 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
751 (pty_name): Move definition later.
752
753 * nsselect.m (syms_of_nsselect):
754 * nsmenu.m (syms_of_nsmenu):
755 * nsfns.m (syms_of_nsfns):
756 * msdos.c (syms_of_msdos):
757
758 * image.c (syms_of_image):
759 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
760
761 * point.h: Remove, unused.
762
763 2010-10-01 Eli Zaretskii <eliz@gnu.org>
764
765 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
766 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
767 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
768
769 2010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
770
771 * xml.c (parse_string): Use const.
772
773 2010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
774
775 * eval.c (Fbacktrace): Don't overwrite print-level on exit. Also
776 only override Vprint_level if it isn't already bound, and increase
777 the level to 8 to produce more useful backtraces for bug reports.
778
779 2010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
780
781 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
782
783 2010-09-30 Juanma Barranquero <lekktu@gmail.com>
784
785 * w32console.c (vga_stdcolor_name): Remove unused function;
786 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
787
788 2010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
789
790 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
791 (Fgnutls_boot): Start the handshake.
792 (emacs_gnutls_read): Perform the handshake from the reader loop.
793 (Fgnutls_boot): Remove some debugging messages.
794 Change indentation throughout to use the Emacs style.
795 (emacs_gnutls_handshake): Cast the fds to something that's
796 possibly the expected length.
797 (emacs_gnutls_write): Return -1 if we try to write before handshake.
798
799 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
800
801 * process.c (make_process): Set the gnutls_p field to zero by
802 default.
803 (read_process_output): Always call the gnutls_read function if the
804 stream is a gnutls stream.
805 (send_process): Ditto for writes.
806
807 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
808 or write anything until the state is GNUTLS_STAGE_READY.
809 (Fgnutls_boot): Mark the stream as being a gnutls stream.
810
811 2010-09-29 Eli Zaretskii <eliz@gnu.org>
812
813 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
814 NEUTRAL_DIR.
815 (handle_invisible_prop, iterate_out_of_display_property)
816 (next_element_from_buffer): If bidi_it.first_elt is set, call
817 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
818 (Bug#7128)
819
820 * print.c (print_object): Fix format string and argument types for
821 printing a Lisp_Misc_Marker.
822
823 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
824 (load_overlay_strings, get_overlay_strings_1)
825 (get_overlay_strings, forward_to_next_line_start)
826 (back_to_previous_visible_line_start, reseat, reseat_to_string)
827 (get_next_display_element, next_element_from_string)
828 (next_element_from_c_string, next_element_from_buffer)
829 (move_it_vertically_backward, move_it_by_lines, add_to_log)
830 (message_dolog, message_log_check_duplicate, message2_nolog)
831 (message3, message3_nolog, vmessage, set_message, set_message_1)
832 (hscroll_window_tree, text_outside_line_unchanged_p)
833 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
834 (find_last_unchanged_at_beg_row)
835 (find_first_unchanged_at_end_row, row_containing_pos)
836 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
837 (display_count_lines, x_produce_glyphs, note_mouse_highlight): Use
838 EMACS_INT for buffer and string positions.
839
840 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
841 (row_containing_pos): Adjust prototype.
842
843 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
844 (message2_nolog, set_message): Adjust prototypes.
845
846 2010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
847
848 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
849 (Fgnutls_boot): Use SDATA.
850 (Fgnutls_handshake): Remove unused var `max_log_level'.
851
852 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
853
854 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
855 (Bug#7113)
856
857 2010-09-27 Jan Djärv <jan.h.d@swipnet.se>
858
859 * xgselect.c (xg_select): Clear file descriptors not set from
860 rfds and wfds.
861
862 * process.c (wait_reading_process_output): Add missing FD_CLR
863 for write_mask (must mirror connect_wait_mask).
864
865 2010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
866
867 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
868 prefix.
869 (Fgnutls_boot): Use changed process members. Use log level with a
870 function parameter to set it. Bring back Emacs-level debugging
871 messages at log level 1 and 2.
872
873 * process.c (make_process): Initialize gnutls_log_level.
874
875 * process.h: Add gnutls_log_level and rename x509_cred and
876 anon_cred to have the gnutls_ prefix for consistency.
877
878 * gnutls.h (GNUTLS_LOG): Add convenience macro.
879
880 2010-09-27 Juanma Barranquero <lekktu@gmail.com>
881
882 * w32.c (g_b_init_get_sid_identifier_authority)
883 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
884 Remove, not used.
885 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
886 (init_winsock): Remove useless assignment.
887 (open_process_token, get_token_information, lookup_account_sid)
888 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
889 (get_security_descriptor_owner, get_security_descriptor_group)
890 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
891 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
892 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
893 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
894 (unc_volume_file_attributes, convert_from_time_t)
895 (create_toolhelp32_snapshot, process32_first, process32_next)
896 (open_thread_token, impersonate_self, revert_to_self)
897 (get_process_memory_info, get_process_working_set_size)
898 (global_memory_status, global_memory_status_ex, socket_to_fd)
899 (shutdown_handler): Make static.
900
901 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
902
903 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
904 (xd_pending_messages): Functions removed.
905 (xd_read_queued_messages): Add parameters fd, *data, for_read in
906 order to be compatible with add_read_fd. Determine bus from data,
907 and call xd_read_message just for this bus.
908 (xd_add_watch): Use xd_read_queued_messages as callback function.
909 Add data.
910
911 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
912
913 2010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
914
915 * gnutls.c (gnutls_log_function): Added more debugging.
916 (emacs_gnutls_read): Don't infloop while reading.
917
918 2010-09-27 Kenichi Handa <handa@m17n.org>
919
920 These changes are to remove restriction on the number of glyphs in
921 one composition.
922
923 * dispextern.h (struct glyph): Change the member "slice" to union.
924 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
925 (GLYPH_SLICE_EQUAL_P): Adjusted for the above change.
926
927 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
928 instead of glyph->slice.
929 (marginal_area_string): Likewise.
930
931 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
932 glyph->u.cmp.
933 (append_composite_glyph): Likewise.
934
935 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
936 glyph->u.cmp.
937 (fill_gstring_glyph_string, x_get_glyph_overhangs)
938 (append_composite_glyph): Likewise.
939 (fill_image_glyph_string): Use glyph->slice.img instead of
940 glyph->slice.
941 (append_glyph, produce_image_glyph, append_stretch_glyph)
942 (note_mouse_highlight): Likewise.
943
944 2010-09-26 Jan Djärv <jan.h.d@swipnet.se>
945
946 * process.c (add_keyboard_wait_descriptor)
947 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
948 (wait_reading_process_output): Don't pass write_mask to select
949 if SELECT_CANT_DO_WRITE_MASK is defined.
950 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
951
952 * process.h (add_read_fd, delete_read_fd, add_write_fd)
953 (delete_write_fd): Declare.
954
955 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
956 (write_mask): New variable.
957 (max_input_desc): Renamed from max_keyboard_desc.
958 (fd_callback_info): New variable.
959 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
960 New functions.
961 (Fmake_network_process): FD_SET write_mask.
962 (deactivate_process): FD_CLR write_mask.
963 (wait_reading_process_output): Connecting renamed to Writeok.
964 check_connect removed. check_write is new. Remove references to gpm.
965 Use Writeok/check_write unconditionally (i.e. no #ifdef
966 NON_BLOCKING_CONNECT) instead of Connecting.
967 Loop over file descriptors and call callbacks in fd_callback_info
968 if file descriptor is ready for I/O.
969 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
970 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
971 (keyboard_bit_set): Use max_input_desc.
972 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
973 Remove #ifdef subprocesses. Use max_input_desc.
974 (init_process): Initialize write_mask and fd_callback_info.
975
976 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
977
978 * dbusbind.c: Include process.h.
979 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
980 (xd_read_message_1): New functions.
981 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
982 Handle watch for both read and write.
983 (Fdbus_init_bus): Also register xd_toggle_watch.
984 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
985 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
986 to dbus_connection_flush.
987 (xd_read_message): Move most of the code to xd_read_message_1.
988 Call xd_read_message_1 until status is COMPLETE.
989
990 2010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
991
992 * term.c: Do not include sys/ioctl.h, not needed.
993 (init_tty): Reorder code to reduce the number of #ifdefs.
994 No code changes.
995
996 2010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
997
998 * process.h: Set up GnuTLS support.
999
1000 * process.c (make_process, Fstart_process)
1001 (read_process_output, send_process): Set up GnuTLS support for
1002 process input/output file descriptors.
1003
1004 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
1005
1006 * gnutls.c: The source code for GnuTLS support in Emacs.
1007
1008 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
1009
1010 * config.in: Set up GnuTLS support.
1011
1012 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
1013 (obj, LIBES): Set up GnuTLS support.
1014
1015 2010-09-26 Juanma Barranquero <lekktu@gmail.com>
1016
1017 * w32.c (get_emacs_configuration_options): Fix previous change.
1018
1019 2010-09-25 Chong Yidong <cyd@stupidchicken.com>
1020
1021 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
1022 alive before using it (Bug#6977).
1023
1024 2010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
1025
1026 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
1027
1028 * dispextern.h: EMACS_INT/int fixup.
1029
1030 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
1031 fixup.
1032
1033 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
1034
1035 2010-09-25 Eli Zaretskii <eliz@gnu.org>
1036
1037 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
1038 (Fselect_window, window_scroll_pixel_based)
1039 (window_scroll_line_based, Frecenter, Fset_window_configuration):
1040 Use EMACS_INT for buffer positions.
1041
1042 * textprop.c (validate_interval_range, interval_of)
1043 (property_change_between_p, Fadd_text_properties)
1044 (set_text_properties_1, Fremove_text_properties)
1045 (Fremove_list_of_text_properties, Ftext_property_any)
1046 (Ftext_property_not_all, copy_text_properties)
1047 (text_property_list, extend_property_ranges)
1048 (verify_interval_modification): Use EMACS_INT for buffer
1049 positions.
1050
1051 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
1052 for buffer positions.
1053
1054 * process.c (read_process_output, send_process)
1055 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
1056 and string positions and size.
1057
1058 * print.c (print_object, print_string, strout): Use EMACS_INT for
1059 string indices.
1060
1061 * minibuf.c (string_to_object): Use EMACS_INT for string position
1062 and size.
1063
1064 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
1065
1066 * lread.c <read_from_string_index, read_from_string_index_byte>
1067 <read_from_string_limit, readchar_count>: Define EMACS_INT.
1068 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
1069 buffer positions and string length.
1070
1071 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
1072 EMACS_INT.
1073 (echo_truncate, adjust_point_for_property, read_char)
1074 (gen_help_event, make_lispy_event, modify_event_symbol)
1075 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
1076 for buffer positions and string length.
1077
1078 * keyboard.h (gen_help_event): Adjust prototype.
1079
1080 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
1081
1082 * commands.h <last_point_position>: Declare EMACS_INT.
1083
1084 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
1085 (truncate_echo_area): Accept EMACS_INT argument.
1086
1087 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
1088
1089 * lisp.h (truncate_echo_area): Adjust prototype.
1090
1091 * composite.c (composition_adjust_point): Return EMACS_INT.
1092
1093 * composite.h (composition_adjust_point): Adjust prototype.
1094
1095 2010-09-25 Juanma Barranquero <lekktu@gmail.com>
1096
1097 * process.c (Fmake_network_process): When arg :host is 'local,
1098 use address 127.0.0.1, not name "localhost". (Bug#6781)
1099
1100 2010-09-24 Eli Zaretskii <eliz@gnu.org>
1101
1102 * indent.c (Fcurrent_indentation, indented_beyond_p)
1103 (compute_motion): Use EMACS_INT for buffer position variables.
1104
1105 * lisp.h (indented_beyond_p): Adjust prototype.
1106
1107 * buffer.c (overlay_strings): Return EMACS_INT.
1108
1109 * buffer.h (overlay_strings): Adjust prototype.
1110
1111 * region-cache.c (pp_cache): Adjust format to arguments.
1112
1113 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
1114 (call_debugger): Use EMACS_INT for specpdl_size related variables.
1115 (verror): Use EMACS_INT for size of allocated buffer.
1116
1117 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
1118 positions.
1119
1120 * xdisp.c (redisplay_internal, try_window_id)
1121 (set_cursor_from_row, find_first_unchanged_at_end_row): Use
1122 EMACS_INT for buffer positions.
1123
1124 * dispextern.h (set_cursor_from_row): Adjust prototype.
1125
1126 * dispnew.c (increment_matrix_positions)
1127 (increment_row_positions, copy_glyph_row_contents)
1128 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
1129 positions.
1130
1131 * dispextern.h (mode_line_string, marginal_area_string)
1132 (increment_matrix_positions, increment_row_positions): Adjust
1133 prototypes.
1134
1135 * data.c (Faref, Faset): Use EMACS_INT for string length and
1136 positions.
1137
1138 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
1139 characters to insert.
1140
1141 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
1142 position and size.
1143
1144 * syntax.c (scan_words, update_syntax_table)
1145 (prev_char_comend_first, back_comment, skip_chars)
1146 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars): Use
1147 EMACS_INT for buffer and string positions.
1148
1149 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
1150
1151 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
1152 positions.
1153
1154 2010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
1155
1156 * scroll.c (calculate_scrolling, line_ins_del)
1157 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
1158 conversion.
1159
1160 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
1161 (region_cache_backward, region_cache_forward)
1162 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
1163 conversion.
1164
1165 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
1166
1167 * eval.c (verror): Fix EMACS_INT/int conversion.
1168
1169 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
1170 (print_preprocess, print_check_string_charset_prop)
1171 (print_object): Fix EMACS_INT/int conversion.
1172
1173 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
1174
1175 2010-09-24 Eli Zaretskii <eliz@gnu.org>
1176
1177 * callproc.c (Fcall_process): Use EMACS_INT for count of
1178 characters read from the subprocess.
1179
1180 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
1181 positions.
1182 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
1183 positions.
1184
1185 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
1186 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
1187 length.
1188 (advance_to_char_boundary, Fset_buffer_multibyte)
1189 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
1190 (overlay_touches_p, record_overlay_string, overlay_strings)
1191 (recenter_overlay_lists, fix_start_end_in_overlays)
1192 (modify_overlay, Fmove_overlay, report_overlay_modification)
1193 (evaporate_overlays): Use EMACS_INT for buffer positions.
1194
1195 * lisp.h (fix_start_end_in_overlays, overlay_touches_p): Adjust
1196 prototypes.
1197
1198 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
1199 positions.
1200
1201 * fns.c (Fcompare_strings, Fstring_lessp, concat)
1202 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
1203 (Fsubstring_no_properties, substring_both, Ffillarray)
1204 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
1205 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
1206 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
1207 (Fmd5): Use EMACS_INT for buffer and string positions and length
1208 variables and arguments.
1209
1210 * lisp.h (substring_both): Adjust prototype.
1211
1212 2010-09-24 Juanma Barranquero <lekktu@gmail.com>
1213
1214 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
1215 * w32fns.c (clipboard_sequence_fn): Don't declare.
1216 (globals_of_w32fns): Don't initialize it.
1217
1218 2010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
1219
1220 * syntax.c (back_comment): Detect the case where a 1-char comment
1221 starter is also the 2nd char of a 2-char comment ender.
1222
1223 2010-09-23 Jan Djärv <jan.h.d@swipnet.se>
1224
1225 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
1226
1227 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
1228
1229 * eval.c (verror): EMACS_INT/int cleanup.
1230
1231 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
1232 unwind_protect more than 2GB worth of functions.
1233
1234 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
1235
1236 * lisp.h: Have oblookup take EMACS_INT to allow interning big
1237 string and avoid compiler warnings.
1238 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
1239 all users.
1240
1241 * lread.c (oblookup): EMACS_INT/int cleanup.
1242
1243 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
1244
1245 2010-09-23 Eli Zaretskii <eliz@gnu.org>
1246
1247 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
1248
1249 * lisp.h (clip_to_bounds): Adjust prototype.
1250
1251 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
1252
1253 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
1254
1255 * lisp.h: doprnt.c EMACS_INT/int cleanup.
1256
1257 * doprnt.c (doprnt): EMACS_INT/int cleanup.
1258
1259 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
1260 cleanup.
1261
1262 * lisp.h: Change the definition of all marker.c functions that
1263 take and return buffer stuff to be EMACS_INT instead of int.
1264
1265 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
1266 (buf_charpos_to_bytepos, bytepos_to_charpos)
1267 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
1268 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
1269 for all buffer positions.
1270
1271 2010-09-23 Chong Yidong <cyd@stupidchicken.com>
1272
1273 * intervals.c (traverse_intervals, rotate_right, rotate_left)
1274 (split_interval_right, find_interval, next_interval)
1275 (delete_node, delete_interval, interval_deletion_adjustment)
1276 (adjust_intervals_for_deletion, merge_interval_right)
1277 (merge_interval_left, graft_intervals_into_buffer)
1278 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
1279
1280 * intervals.h (traverse_intervals): Update prototype.
1281
1282 2010-09-23 Eli Zaretskii <eliz@gnu.org>
1283
1284 * indent.c (compute_motion): Use EMACS_INT for arguments to
1285 region_cache_forward.
1286
1287 * region-cache.c (struct boundary, struct region_cache): Use
1288 EMACS_INT for positions.
1289 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
1290 (delete_cache_boundaries, set_cache_region)
1291 (invalidate_region_cache, know_region_cache)
1292 (region_cache_forward, region_cache_backward, pp_cache): Use
1293 EMACS_INT for buffer positions.
1294
1295 * region-cache.h (know_region_cache, invalidate_region_cache)
1296 (region_cache_forward, region_cache_backward): Adjust prototypes.
1297
1298 * search.c (string_match_1, fast_c_string_match_ignore_case)
1299 (looking_at_1, scan_buffer, scan_newline)
1300 (find_next_newline_no_quit, find_before_next_newline)
1301 (search_command, trivial_regexp_p, search_buffer, simple_search)
1302 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
1303 and string positions and length.
1304
1305 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
1306 (find_before_next_newline): Adjust prototypes.
1307
1308 * editfns.c (transpose_markers, update_buffer_properties)
1309 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
1310 (get_pos_property, Fconstrain_to_field)
1311 (Fline_beginning_position, Fline_end_position, Fprevious_char)
1312 (Fchar_after, Fchar_before, Finsert_char)
1313 (Finsert_buffer_substring, Fcompare_buffer_substrings)
1314 (Fsubst_char_in_region, Fformat, Ftranspose_regions): Use
1315 EMACS_INT for buffer and string position variables.
1316 (Finsert_char): Protect against too large insertions.
1317
1318 * lisp.h (clip_to_bounds): Adjust prototype.
1319
1320 * intervals.c (traverse_intervals, rotate_right, rotate_left)
1321 (balance_an_interval, split_interval_right, split_interval_left)
1322 (find_interval, next_interval, update_interval)
1323 (adjust_intervals_for_insertion, delete_node, delete_interval)
1324 (interval_deletion_adjustment, adjust_intervals_for_deletion)
1325 (offset_intervals, merge_interval_right, merge_interval_left)
1326 (graft_intervals_into_buffer, adjust_for_invis_intang)
1327 (move_if_not_intangible, get_local_map, copy_intervals)
1328 (copy_intervals_to_string, compare_string_intervals)
1329 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
1330 and for interval tree size.
1331
1332 * intervals.h (traverse_intervals, split_interval_right)
1333 (split_interval_left, find_interval, offset_intervals)
1334 (graft_intervals_into_buffer, copy_intervals)
1335 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
1336 (update_interval): Adjust prototypes.
1337
1338 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
1339 Use EMACS_INT for buffer position variables and arguments.
1340
1341 * composite.c (get_composition_id, find_composition)
1342 (run_composition_function, compose_text)
1343 (composition_gstring_width, autocmp_chars)
1344 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
1345 for buffer positions and string length variables and arguments.
1346
1347 * composite.h (get_composition_id, find_composition, compose_text)
1348 (composition_gstring_width): Adjust prototypes.
1349
1350 * editfns.c (Fformat): Use EMACS_INT for string size variables.
1351
1352 * xdisp.c (store_mode_line_noprop, display_mode_element): Use
1353 EMACS_INT for string positions.
1354
1355 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
1356 position arguments.
1357
1358 * intervals.h (get_property_and_range): Adjust prototype.
1359
1360 * character.c (parse_str_as_multibyte, str_as_multibyte)
1361 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
1362 (string_count_byte8, string_escape_byte8, c_string_width)
1363 (strwidth, lisp_string_width, multibyte_chars_in_text): Use
1364 EMACS_INT for string length variables and arguments.
1365
1366 * character.h (parse_str_as_multibyte, str_as_multibyte)
1367 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
1368 (c_string_width, strwidth, lisp_string_width): Adjust
1369 prototypes.
1370
1371 * font.c (font_intern_prop): Use EMACS_INT for string length
1372 variables.
1373
1374 * font.c (font_intern_prop): Use EMACS_INT for string length
1375 variables.
1376
1377 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
1378 variables.
1379
1380 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
1381 (Fmake_string): Protect against too large strings.
1382 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
1383 (live_misc_p): Use ptrdiff_t instead of int for pointer
1384 differences.
1385 (string_bytes, check_sblock, check_string_free_list)
1386 (allocate_string_data, compact_small_strings, Fmake_string)
1387 (Fmake_bool_vector, make_string, make_unibyte_string)
1388 (make_multibyte_string, make_string_from_bytes)
1389 (make_specified_string_string, Fmake_list, Fmake_vector): Use
1390 EMACS_INT for string length variables and arguments.
1391 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
1392 (Fpurecopy): Use EMACS_INT for string size.
1393 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
1394 for vector size.
1395
1396 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
1397 (make_string_from_bytes, make_specified_string_string)
1398 (make_pure_string, string_bytes, check_point_in_composition):
1399 Adjust prototypes.
1400
1401 2010-09-22 Eli Zaretskii <eliz@gnu.org>
1402
1403 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
1404 (check_translation): Use EMACS_INT for buffer positions and
1405 length.
1406
1407 * undo.c (record_marker_adjustment, record_delete)
1408 (record_change, record_point, record_insert)
1409 (record_property_change, Fprimitive_undo): Use EMACS_INT for
1410 buffer positions.
1411
1412 * lisp.h (record_marker_adjustment, record_delete)
1413 (record_change, record_point, record_insert)
1414 (record_property_change, Fprimitive_undo): Adjust prototypes.
1415
1416 2010-09-22 Juanma Barranquero <lekktu@gmail.com>
1417 Eli Zaretskii <eliz@gnu.org>
1418
1419 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
1420
1421 2010-09-22 Eli Zaretskii <eliz@gnu.org>
1422
1423 * minibuf.c (Fminibuffer_contents)
1424 (Fminibuffer_contents_no_properties)
1425 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
1426 positions.
1427
1428 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
1429 mark.
1430
1431 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
1432 (allocate_string_data): Accept EMACS_INT for string length.
1433
1434 * editfns.c (Ffield_string, Ffield_string_no_properties)
1435 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
1436 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
1437 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
1438 (Ffield_end): Use EMACS_INT for buffer positions.
1439
1440 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
1441 point with mark.
1442
1443 * lisp.h (allocate_string_data, make_uninit_string)
1444 (make_uninit_multibyte_string, make_buffer_string)
1445 (make_buffer_string_both): Adjust prototypes.
1446
1447 2010-09-22 Chong Yidong <cyd@stupidchicken.com>
1448
1449 * xml.c: Switch to GNU indentation.
1450 (make_dom): Change parse tree format to match xml.el.
1451 (Fxml_parse_html_string_internal): Rename from html-parse-string.
1452 (Fxml_parse_string_internal): Rename from xml-parse-string.
1453
1454 2010-09-22 Kenichi Handa <handa@m17n.org>
1455
1456 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
1457 only if we are not at a composition.
1458 (set_iterator_to_next): Give it->end_charpos to
1459 composition_compute_stop_pos.
1460 (set_iterator_to_next, next_element_from_buffer): Likewise.
1461
1462 * dispnew.c (buffer_posn_from_coords): Fix position when the
1463 current display element is a grapheme cluster in bidi-reordered
1464 region.
1465
1466 2010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
1467
1468 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
1469 the regions may overlap.
1470
1471 2010-09-21 Juanma Barranquero <lekktu@gmail.com>
1472
1473 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
1474
1475 2010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
1476
1477 * emacs.c: Do not include sys/ioctl.h, not needed.
1478
1479 * doprnt.c: Do not include stdlib.h, config.h does it.
1480 Move #include before macro definition.
1481
1482 2010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
1483
1484 * Makefile.in (temacs): Link using $(CC) not $(LD).
1485 (LD_FIRSTFLAG): Define using autoconf.
1486 (LD): Remove.
1487
1488 Remove HAVE_TERMIOS definitions.
1489 * s/usg5-4-common.h (HAVE_TERMIOS):
1490 * s/template.h (HAVE_TERMIOS):
1491 * s/gnu-linux.h (HAVE_TERMIOS):
1492 * s/darwin.h (HAVE_TERMIOS):
1493 * s/cygwin.h (HAVE_TERMIOS):
1494 * s/bsd-common.h (HAVE_TERMIOS):
1495 * s/aix4-2.h (HAVE_TERMIOS):
1496 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
1497 defined on all non-MS platforms.
1498 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
1499
1500 * xterm.c (xt_action_hook): Use const.
1501
1502 2010-09-20 Juanma Barranquero <lekktu@gmail.com>
1503
1504 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
1505 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
1506 (gethostname) [!HAVE_SOCKETS]: Remove.
1507 (SOCK_REPLACE_HANDLE): Remove macro.
1508 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
1509 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
1510 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
1511 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
1512
1513 2010-09-18 Eli Zaretskii <eliz@gnu.org>
1514
1515 * deps.mk (xml.o): Add dependencies.
1516
1517 * xdisp.c (Fcurrent_bidi_paragraph_direction):
1518 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
1519
1520 * bidi.c (bidi_paragraph_init): Accept an additional argument
1521 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
1522 search back until a paragraph with a strong directional character
1523 is found, and use that to determine paragraph's base direction.
1524
1525 * dispextern.h (bidi_paragraph_init): Update prototype.
1526
1527 2010-09-17 Eli Zaretskii <eliz@gnu.org>
1528
1529 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
1530 of w32api >= 3.15. (Bug#6989)
1531
1532 2010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
1533
1534 * process.c (wait_reading_process_output): Don't message about
1535 accept-process-output unless the time limit really is zero.
1536
1537 2010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
1538
1539 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
1540 int/Lisp_Object mixup).
1541
1542 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
1543
1544 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
1545 not HELP.
1546
1547 2010-09-17 Stephen Berman <stephen.berman@gmx.net>
1548
1549 * frame.c (Ftool_bar_pixel_width): New function to expose tool
1550 bar's pixel width to Lisp (Bug#7048).
1551
1552 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
1553
1554 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
1555
1556 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
1557
1558 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
1559 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
1560
1561 2010-09-17 Kenichi Handa <handa@m17n.org>
1562
1563 * ftfont.c (ftfont_check_otf): Fix previous change.
1564
1565 2010-09-14 Kenichi Handa <handa@m17n.org>
1566
1567 * ftfont.c (ftfont_check_otf): Fix the case of checking just
1568 existence of GSUB or GPOS.
1569
1570 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
1571
1572 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
1573
1574 2010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
1575
1576 * xml.c (parse_buffer): Renamed to parse_string(), since that's
1577 what it does.
1578 (parse_string): Return nil when the document can't be parsed.
1579
1580 2010-09-14 Jan Djärv <jan.h.d@swipnet.se>
1581
1582 * xterm.c (get_current_vm_state): New function.
1583 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
1584 want_fullscreen so set_wm_state calls are few (Bug#7013).
1585 (x_handle_net_wm_state): Move code to get_current_vm_state and
1586 call that function.
1587
1588 2010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
1589
1590 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
1591
1592 2010-09-14 Kenichi Handa <handa@m17n.org>
1593
1594 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
1595 we may use designation or locking-shift.
1596
1597 2010-09-14 Kenichi Handa <handa@m17n.org>
1598
1599 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
1600 sequence when the source is multibyte.
1601
1602 2010-09-14 Andreas Schwab <schwab@linux-m68k.org>
1603
1604 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
1605 Don't make first argument optional. Doc fix.
1606
1607 2010-09-14 Leo <sdl.web@gmail.com> (tiny change)
1608
1609 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
1610 parameters for the doc string.
1611
1612 2010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
1613
1614 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
1615
1616 2010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1617
1618 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
1619 (syms_of_fns): Don't defsubr Sy_or_n_p.
1620 * lisp.h: Don't declare Fy_or_n_p.
1621 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
1622
1623 2010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
1624
1625 * xml.c (Fxml_parse_buffer): New function to parse XML files.
1626
1627 2010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
1628
1629 * xml.c: New file.
1630 (Fhtml_parse_buffer): New function to interface to the libxml2
1631 html parsing function.
1632
1633 2010-09-05 Juanma Barranquero <lekktu@gmail.com>
1634
1635 * biditype.h: Regenerate.
1636
1637 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
1638
1639 * nsimage.m (ns_load_image): Check argument types.
1640
1641 * image.c: Remove all uses of gcpro.
1642 (xpm_load): Check all lisp types.
1643 (pbm_load): Likewise.
1644 (png_load): Likewise.
1645 (jpeg_load): Likewise.
1646 (tiff_load): Likewise.
1647 (gif_load): Likewise.
1648 (imagemagick_load_image): Likewise.
1649 (imagemagick_load): Likewise.
1650 (svg_load): Likewise.
1651 (gs_load): Likewise.
1652
1653 2010-09-04 Eli Zaretskii <eliz@gnu.org>
1654
1655 * w32uniscribe.c (uniscribe_shape): Update commentary. Don't
1656 try to reorder grapheme clusters, since LGSTRING should always
1657 hold them in the logical order.
1658 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
1659 return glyph codes in the logical order.
1660
1661 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
1662
1663 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
1664 (imagemagick_load_image): Fix type mismatch.
1665 (Fimagemagick_types): Likewise. Doc fix.
1666
1667 2010-09-02 Jan Djärv <jan.h.d@swipnet.se>
1668
1669 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
1670
1671 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
1672
1673 * xselect.c: Remove declaration of cut-buffer objects and functions.
1674 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
1675 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
1676 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
1677 (Fx_rotate_cut_buffers_internal): Remove.
1678 (syms_of_xselect): Remove defsubr of above.
1679 Remove intern of QCUT_BUFFERn.
1680
1681 2010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
1682
1683 * cmds.c (Vblink_paren_function): Remove.
1684 (internal_self_insert): Make it insert N chars at a time.
1685 Don't call blink-paren-function.
1686 (Fself_insert_command): Adjust accordingly.
1687 (syms_of_cmds): Don't declare blink-paren-function.
1688
1689 2010-08-31 Kenichi Handa <handa@m17n.org>
1690
1691 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
1692 characters.
1693
1694 * term.c (encode_terminal_code): Fix the previous change.
1695 (produce_glyphs): Don't set it->char_to_display here.
1696 Don't handle unibyte-display-via-language-environment here.
1697 (produce_special_glyphs): Set temp_it.char_to_display before
1698 calling produce_glyphs.
1699
1700 * xdisp.c (get_next_display_element): Set it->char_to_display
1701 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
1702 characters.
1703 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
1704 calling PRODUCE_GLYPHS.
1705 (append_space_for_newline): Save and store it->char_to_display.
1706 Set it->char_to_display before calling PRODUCE_GLYPHS.
1707 (extend_face_to_end_of_line): Set it->char_to_display before
1708 calling PRODUCE_GLYPHS.
1709 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
1710 character to its byte value.
1711 (get_char_glyph_code): New function.
1712 (produce_stretch_glyph): Set it2.char_to_display too before
1713 calling x_produce_glyphs.
1714 (x_produce_glyphs): Simplify by using the same code for ASCII and
1715 non-ASCII characters. Don't set it->char_to_display here.
1716 Don't handle unibyte-display-via-language-environment here. For a
1717 character of no glyph, use font->space_width instead of FONT_WIDTH.
1718
1719 2010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
1720
1721 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
1722
1723 2010-08-31 Chong Yidong <cyd@stupidchicken.com>
1724
1725 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
1726
1727 2010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
1728
1729 * marker.c (Fcopy_marker): Make the first arg optional.
1730
1731 2010-08-30 Kenichi Handa <handa@m17n.org>
1732
1733 * composite.c (composition_update_it): Fix computing of
1734 cmp_it->width.
1735
1736 2010-08-29 Kenichi Handa <handa@m17n.org>
1737
1738 * term.c (encode_terminal_code): Encode byte chars to the
1739 corresponding bytes.
1740
1741 2010-08-29 Jan Djärv <jan.h.d@swipnet.se>
1742
1743 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
1744
1745 2010-08-26 Kenichi Handa <handa@m17n.org>
1746
1747 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
1748 on calling composition_compute_stop_pos.
1749
1750 2010-08-25 Kenichi Handa <handa@m17n.org>
1751
1752 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
1753 :otf.
1754
1755 * composite.c (composition_compute_stop_pos): Don't break
1756 composition at PT.
1757 (composition_reseat_it): Likewise. Fix calculation of character
1758 position starting a composition.
1759 (Fcomposition_get_gstring): Don't limit the number of components
1760 for automatic composition.
1761
1762 2010-08-25 Kenichi Handa <handa@m17n.org>
1763
1764 * composite.c (composition_compute_stop_pos): In forward search,
1765 pay attention to the possibility that some character after ENDPOS
1766 will be composed with charactrs before ENDPOS.
1767
1768 2010-08-24 Chong Yidong <cyd@stupidchicken.com>
1769
1770 * keyboard.c (command_loop_1): Don't clobber primary selection
1771 during handle-switch-frame (Bug#6872).
1772
1773 2010-08-23 Michael Albinus <michael.albinus@gmx.de>
1774
1775 * dbusbind.c: Accept UNIX domain sockets as bus address.
1776 (Fdbus_close_bus): New function.
1777 (Vdbus_registered_buses): New variable.
1778 (xd_initialize): Implement string as bus address.
1779 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
1780 (Fdbus_get_unique_name, Fdbus_call_method)
1781 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1782 (Fdbus_method_error_internal, Fdbus_send_signal)
1783 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
1784 check. This is done in xd_initialize_bus. Adapt doc string, if
1785 necessary.
1786 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
1787 Vdbus_registered_buses.
1788 (Vdbus_registered_objects_table): Create hash.
1789
1790 2010-08-22 Juri Linkov <juri@jurta.org>
1791
1792 * keyboard.c (Fexecute_extended_command): Move reading a command name
1793 with `completing-read' to a new Elisp function `read-extended-command'.
1794 Call it to read a command to `function' (bug#5364, bug#5214).
1795
1796 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
1797
1798 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
1799
1800 2010-08-22 Andreas Schwab <schwab@linux-m68k.org>
1801
1802 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
1803 instead of SAFE_ALLOCA.
1804
1805 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
1806
1807 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
1808 (Bug#6214).
1809
1810 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
1811
1812 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
1813
1814 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
1815
1816 * doc.c (Fsnarf_documentation): Initialize skip_file before
1817 build-files test.
1818
1819 2010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
1820
1821 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
1822 New definitions.
1823 (HAVE_TERMIO): Remove.
1824
1825 2010-08-22 Eli Zaretskii <eliz@gnu.org>
1826
1827 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
1828
1829 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
1830 for w32.
1831
1832 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
1833 it's done in nt/config.nt.
1834
1835 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
1836
1837 * unexcoff.c (report_error, make_hdr, write_segment)
1838 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
1839 Convert argument lists and prototypes to ANSI C.
1840 (make_hdr, write_segment): Remove unused variables.
1841 (unexec): Remove commented-out line. Initialize `new' to shut up
1842 compiler warnings.
1843
1844 2010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
1845
1846 Simplify termio code.
1847 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
1848 HAVE_TERMIO code is obsolete.
1849 Replace HAVE_TERMIOS conditionals with !DOS_NT.
1850 * systty.h: Do not define HAVE_TCATTR.
1851 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
1852 Do not define EMACS_HAVE_TTY_PGRP. Only define
1853 EMACS_GET_TTY_PGRP for !DOS_NT.
1854 * sysdep.c: Include sysselect.h unconditionally. Do not include
1855 sys/ioctl.h and termios.h, systty.h does it. Use
1856 HAVE_SYS_UTSNAME_H instead of USG as an include guard.
1857 (init_baud_rate): Remove HAVE_TERMIO code.
1858 (child_setup_tty): Remove HAVE_TERMIO code.
1859 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
1860 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
1861 (new_ltchars, new_tchars): Remove, unused.
1862 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
1863 code. Remove special casing for __mips__, it was a no-op. Remove
1864 HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
1865 (init_sys_modes): Remove HPUX special case.
1866 * process.c: Include stdlib.h unconditionally. Do not include
1867 fcntl.h, systty.h does it. Remove conditional code for
1868 HAVE_SERIAL, it is always true.
1869 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
1870 always true when SIGNALS_VIA_CHARACTERS is true.
1871 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
1872 !WINDOWSNT means HAVE_TERMIOS.
1873 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
1874 conditional, which is true for all HAVE_TERMIOS systems.
1875 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
1876 instead of HAVE_TERMIOS.
1877 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
1878 EMACS_HAVE_TTY_PGRP.
1879 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
1880 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
1881 anyway.
1882
1883 2010-08-21 Eli Zaretskii <eliz@gnu.org>
1884
1885 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
1886 mirroring pixel positions.
1887
1888 2010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
1889
1890 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
1891 write only.
1892 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
1893 malloc_sbrk_used, nothing uses them.
1894
1895 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
1896 defined, unconditionally defined in lisp.h.
1897
1898 * term.c: Do not include <termios.h>, systty.h does it.
1899
1900 * s/unixware.h (HAVE_TCATTR):
1901 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
1902 systty.h defines it when HAVE_TERMIOS is defined.
1903
1904 2010-08-20 Eli Zaretskii <eliz@gnu.org>
1905
1906 * dispnew.c (buffer_posn_from_coords): Fix last change for text
1907 terminals: add one-character offset for R2L lines.
1908
1909 * emacs.c <emacs_version>: Add a comment regarding
1910 msdos/mainmake.v2's dependency on the syntax of this declaration.
1911
1912 2010-08-20 Eli Zaretskii <eliz@gnu.org>
1913
1914 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
1915 position for R2L lines by mirroring the pixel position wrt the
1916 text are box. Improve commentary.
1917
1918 2010-08-20 Andreas Schwab <schwab@linux-m68k.org>
1919
1920 * image.c (imagemagick_clear_image): Remove debugging output.
1921
1922 2010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
1923
1924 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
1925 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
1926 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
1927 self-insert-face.
1928 (syms_of_cmds): Initialize the new vars.
1929
1930 2010-08-19 Jason Rumney <jasonr@gnu.org>
1931
1932 * w32menu.c (set_frame_menubar): Remove call to undefined function.
1933
1934 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
1935
1936 2010-08-19 Jan Djärv <jan.h.d@swipnet.se>
1937
1938 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
1939
1940 2010-08-18 Eli Zaretskii <eliz@gnu.org>
1941
1942 * xterm.c (x_draw_bar_cursor):
1943 * w32term.c (x_draw_bar_cursor): If the character under cursor is
1944 R2L, draw the bar cursor on its right rather than on its left.
1945
1946 2010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
1947
1948 * eval.c (Fdefmacro): Only obey one declaration.
1949
1950 * casefiddle.c (casify_region): Setup gl_state.
1951
1952 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
1953
1954 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
1955
1956 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
1957
1958 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
1959
1960 2010-08-18 David De La Harpe Golden <david@harpegolden.net>
1961
1962 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
1963 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
1964 QPRIMARY => NXPrimaryPboard.
1965 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
1966 NXPrimaryPboard => QPRIMARY.
1967 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
1968 NXSecondaryPboard = SecondarySelection.
1969 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
1970
1971 2010-08-18 Joakim Verona <joakim@verona.se>
1972
1973 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
1974 defined:
1975 (imagemagick_image_p): New function to test for ImageMagic image.
1976 (imagemagick_load): New function to load ImageMagick image.
1977 (imagemagick_load_image): New function, helper for imagemagick_load.
1978 (imagemagick-types): New function.
1979 (Qimagemagick): New Lisp_object.
1980 (imagemagick-render-type): New variable, decides which renderer to use.
1981
1982 2010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
1983
1984 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
1985 is a string.
1986
1987 2010-08-17 Jan Djärv <jan.h.d@swipnet.se>
1988
1989 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
1990 x_set_tool_bar_position handler.
1991
1992 2010-08-17 Eli Zaretskii <eliz@gnu.org>
1993
1994 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
1995 x_set_tool_bar_position handler, needed to support changes from
1996 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
1997
1998 2010-08-16 Jan Djärv <jan.h.d@swipnet.se>
1999
2000 * nsselect.m: include keyboard.h for QPRIMARY, remove its
2001 declaration (Bug#6863).
2002 (syms_of_nsselect): Don't intern QPRIMARY.
2003
2004 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
2005
2006 * keyboard.h (QPRIMARY): Declare (Bug#6864).
2007
2008 2010-08-16 Chong Yidong <cyd@stupidchicken.com>
2009
2010 * keyboard.c (command_loop_1): Avoid setting selection twice,
2011 since it's done in deactivate-mark as well.
2012 (Vselect_active_regions): Change default to t. Replace `lazy'
2013 with non-default value `only', meaning only set PRIMARY for
2014 temporarily active regions.
2015
2016 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
2017 select-active-regions.
2018
2019 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
2020
2021 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
2022 isn't a string.
2023
2024 2010-08-15 Andreas Schwab <schwab@linux-m68k.org>
2025
2026 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
2027
2028 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
2029
2030 * keyboard.c (parse_tool_bar_item): malloc buf.
2031 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
2032 new_lbl (Bug#6855).
2033
2034 2010-08-14 Eli Zaretskii <eliz@gnu.org>
2035
2036 * xterm.c (x_draw_stretch_glyph_string):
2037 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
2038 the cursor on the right edge of the stretch glyph.
2039
2040 * xdisp.c (window_box_right_offset, window_box_right):
2041 Fix commentary.
2042
2043 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
2044 direction when point is inside a run of whitespace characters.
2045
2046 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
2047
2048 2010-08-14 Jason Rumney <jasonr@gnu.org>
2049
2050 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
2051
2052 2010-08-14 Chong Yidong <cyd@stupidchicken.com>
2053
2054 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
2055
2056 2010-08-13 Jason Rumney <jasonr@gnu.org>
2057
2058 * w32menu.c (simple_dialog_show): Use unicode message box if available.
2059 (MessageBoxW_Proc): New function typedef.
2060 (unicode-message-box): New function pointer.
2061 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
2062
2063 2010-08-13 Jan Djärv <jan.h.d@swipnet.se>
2064
2065 * frame.h (Qtool_bar_position): Declare.
2066
2067 * xfns.c (Fx_create_frame): Call x_default_parameter for
2068 Qtool_bar_position.
2069
2070 2010-08-13 Eli Zaretskii <eliz@gnu.org>
2071
2072 * unexcoff.c: Remove the parts used when "emacs" is not defined.
2073 (report_error, report_error_1): Ditto.
2074 (write_segment): Remove "#if 0" unused code.
2075 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
2076 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
2077 (start_of_text): Remove unused function (was used only if NO_REMAP
2078 was NOT defined).
2079
2080 * msdos.c (IT_set_face): Fix format string to match argument
2081 types.
2082 (IT_write_glyphs, IT_note_mode_line_highlight)
2083 (IT_set_frame_parameters): Remove unused variables.
2084 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
2085 (IT_set_terminal_modes): Disambiguate expression in if clause.
2086 (Fmsdos_remember_default_colors): Return Qnil.
2087 (IT_set_frame_parameters): Add parens to disambiguate boolean
2088 expression for logging the cursor type to termscript.
2089 (keyboard_layout_list, keypad_translate_map)
2090 (grey_key_translate_map): Add braces in inner initializers.
2091 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
2092 (dos_rawgetc): Remove unused label.
2093 (XMenuActivate): Add braces to remove ambiguous `else'.
2094 (dos_ttraw): Always return a value.
2095 (spawnve): Declare.
2096 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
2097
2098 * dosfns.h (x_set_title): Declare.
2099
2100 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
2101 Remove unused variables.
2102
2103 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
2104 variables.
2105 (init_dosfns): Declare get_lim_data.
2106 (system_process_attributes): Declare Fget_internal_run_time.
2107
2108 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
2109 list to be consistent with menu.h.
2110
2111 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
2112 warnings due to mixing of "char *" and "const char *".
2113
2114 2010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
2115
2116 Introduce a new comment style "c" flag.
2117 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
2118 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
2119 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
2120 (syntax_prefix_flag_p): New function.
2121 (Fstring_to_syntax): Understand new "c" flag.
2122 (Finternal_describe_syntax_value): Recognize new flag; use the
2123 SYNTAX_FLAGS_* macros.
2124 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
2125 comment style to accomodate the new styles.
2126 (back_comment, forw_comment, Fforward_comment, scan_lists)
2127 (scan_sexps_forward): Update code to obey the new comment style flag.
2128
2129 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
2130
2131 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
2132
2133 2010-08-11 Jan Djärv <jan.h.d@swipnet.se>
2134
2135 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
2136 first.
2137 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
2138
2139 * gtkutil.h (xg_check_special_colors): Declare.
2140
2141 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
2142 (xg_create_frame_widgets): Connect theme name changes to
2143 style_changed_cb.
2144
2145 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
2146 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
2147 (x_term_init): Use char[] display_opt and name_opt instead of
2148 string literal. file is const char*.
2149
2150 * xsmfns.c (NOSPLASH_OPT): Change to char[].
2151 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
2152 props. Free them at the end.
2153
2154 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
2155
2156 * xrdb.c (get_system_app): Make path const and use char *p for
2157 non-const char.
2158
2159 * xmenu.c (Fx_popup_dialog): error_name is const char*.
2160 (xmenu_show): error parameter is const char **. pane_string is const
2161 char *.
2162 (button_names): Is const char *.
2163 (xdialog_show): error_name and pane_string is const.
2164
2165 * process.h (synch_process_death): Is const char*.
2166
2167 * w32menu.c (w32_menu_show):
2168 * nsmenu.m (ns_menu_show): error parameter is const char **.
2169
2170 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
2171 is const char **.
2172
2173 * menu.c (Fx_popup_menu): error_name is const.
2174
2175 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
2176 with unsigned char and XtPointer with void *.
2177
2178 * gtkutil.h: Replace widget_value with struct _widget_value.
2179 (enum button_type, struct _widget_value): Remove and use the one from
2180 keyboard.h.
2181
2182 * gtkutil.c (get_utf8_string): Always return an allocated string.
2183 Parameter is const.
2184 (create_dialog, xg_create_one_menuitem, create_menus)
2185 (xg_item_label_same_p, xg_update_menu_item): Free result from
2186 get_utf8_string.
2187 (xg_separator_p, xg_item_label_same_p): label is const.
2188
2189 * font.h (font_open_by_name): Make name const.
2190
2191 * font.c (font_open_by_name): Make name const.
2192
2193 * floatfns.c (matherr): Use a const char* variable for x->name.
2194
2195 * emacs.c (main): Pass char[] to putenv instead of literal.
2196
2197 * callproc.c (synch_process_death): Make const.
2198 (Fcall_process): Make signame const.
2199
2200 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
2201 (addDisplayItemWithImage): Use const char*.
2202
2203 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
2204 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
2205
2206 * nsfont.m (ns_descriptor_to_entity): Use const char*.
2207
2208 * keyboard.h (_widget_value): name, value and key are const char*.
2209
2210 * unexmacosx.c (unexec_error): Use const char *.
2211
2212 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
2213
2214 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
2215 (font_parse_name, font_open_by_name):
2216 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
2217 (font_parse_name, font_open_by_name): Remove const.
2218
2219 2010-08-09 Andreas Schwab <schwab@linux-m68k.org>
2220
2221 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
2222 definition.
2223
2224 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
2225 * m/amdx86-64.h: Likewise.
2226 * m/arm.h: Likewise.
2227 * m/hp800.h: Likewise.
2228 * m/ia64.h: Likewise.
2229 * m/ibmrs6000.h: Likewise.
2230 * m/ibms390.h: Likewise.
2231 * m/intel386.h: Likewise.
2232 * m/iris4d.h: Likewise.
2233 * m/m68k.h: Likewise.
2234 * m/macppc.h: Likewise.
2235 * m/mips.h: Likewise.
2236 * m/sh3.h: Likewise.
2237 * m/sparc.h: Likewise.
2238 * m/template.h: Likewise.
2239 * m/vax.h: Likewise.
2240 * m/xtensa.h: Likewise.
2241 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
2242 WORDS_BIG_ENDIAN.
2243 * lisp.h: Likewise.
2244 * md5.c: Likewise.
2245 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
2246
2247 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
2248
2249 Use const char* instead of char*.
2250 Reduce the number of warnings with -Wwrite-strings.
2251 * xrdb.c (get_environ_db, get_system_name):
2252 * unexelf.c (find_section):
2253 * term.c (string_cost, string_cost_one_line, per_line_cost)
2254 (get_named_tty, init_tty):
2255 * sysdep.c (sys_subshell):
2256 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
2257 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
2258 * search.c (Freplace_match):
2259 * process.c (Fmake_network_process, send_process, init_process):
2260 * lread.c (Fload, init_lread):
2261 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
2262 * keyboard.c (parse_tool_bar_item, struct event_head):
2263 * gtkutil.h (xg_get_font_name):
2264 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
2265 (make_widget_for_menu_item, make_menu_item, create_menus)
2266 (xg_make_tool_item):
2267 * font.c (parse_matrix, font_parse_name):
2268 * floatfns.c (rounding_driver, float_error_fn_name):
2269 * filelock.c (get_boot_time_1, lock_file_1):
2270 * fileio.c (barf_or_query_if_file_exists, check_writable):
2271 * editfns.c (get_system_name, get_operating_system_release)
2272 (Fencode_time, Fset_time_zone_rule):
2273 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
2274 * buffer.c (defvar_per_buffer): Use const.
2275
2276 2010-08-08 Kenichi Handa <handa@m17n.org>
2277
2278 * charset.c: Include <stdlib.h>.
2279 (struct charset_sort_data): New struct.
2280 (charset_compare): New function.
2281 (Fsort_charsets): New function.
2282 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
2283
2284 * coding.c (decode_coding_iso_2022): Fix checking of dimension
2285 number in CTEXT extended segment.
2286
2287 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
2288
2289 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
2290 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
2291
2292 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
2293
2294 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
2295 (Fhash_table_size): Fix typos in docstrings.
2296 (Fmake_hash_table): Doc fix.
2297
2298 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
2299
2300 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
2301 Doc fix (bug#5625).
2302
2303 2010-08-08 Ken Brown <kbrown@cornell.edu>
2304
2305 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
2306 the MSDOS definition.
2307
2308 2010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
2309
2310 Use const char* instead of char*.
2311 * xterm.c (x_create_toolkit_scroll_bar):
2312 * xfont.c (xfont_list_pattern):
2313 * xfns.c (x_default_scroll_bar_color_parameter)
2314 (xic_create_fontsetname, x_default_font_parameter)
2315 (x_screen_planes):
2316 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
2317 (store_mode_line_string, decode_mode_spec, display_string):
2318 * menu.c (digest_single_submenu):
2319 * keymap.h (initial_define_key, initial_define_lispy_key):
2320 * keymap.c (initial_define_key, initial_define_lispy_key):
2321 * image.c (image_error, image_keyword):
2322 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
2323 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
2324 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
2325 (ftfont_list, ftfont_match):
2326 * frame.c (frame_parm_table):
2327 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
2328 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
2329 (font_add_log, font_deferred_log):
2330 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
2331 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
2332 (font_add_log, font_deferred_log):
2333 * emacs.c (argmatch):
2334 * dispextern.h (struct it):
2335 * coding.c (ENCODE_DESIGNATION):
2336 * charset.c (define_charset_internal): Use const.
2337
2338 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
2339
2340 * xrdb.c: Remove include guard.
2341 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
2342 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
2343 realloc->xrealloc instead of using #defines.
2344
2345 2010-08-08 Eli Zaretskii <eliz@gnu.org>
2346
2347 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
2348 * editfns.c (Fline_beginning_position, Fline_end_position):
2349 State in the doc strings that start and end of line are in the
2350 logical order.
2351
2352 * xdisp.c (display_line): Move the handling of overlay arrow after
2353 the call to find_row_edges. (Bug#6699)
2354
2355 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
2356
2357 * keyboard.c (command_loop_1):
2358 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
2359
2360 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
2361
2362 * insdel.c (prepare_to_modify_buffer): Save active region text to
2363 Vsaved_region_selection.
2364
2365 * xselect.c (QPRIMARY): Move to keyboard.c.
2366
2367 * keyboard.c (Vselect_active_regions): Move from simple.el.
2368 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
2369 (command_loop_1): Set window selection prior to deactivating the mark.
2370
2371 2010-08-07 Juanma Barranquero <lekktu@gmail.com>
2372
2373 * alloc.c (lisp_malloc):
2374 * buffer.c (set_buffer_internal, set_buffer_internal_1):
2375 * charset.h (emacs_mule_charset):
2376 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
2377 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
2378 (bitch_at_user):
2379 * lisp.h (Fcheck_coding_system, Fget_text_property)
2380 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
2381 Remove duplicate declarations.
2382
2383 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
2384
2385 * process.c: Simplify include logic.
2386
2387 * keyboard.h (quit_char): Add declaration.
2388 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
2389 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
2390 Add declarations.
2391 * sysdep.c:
2392 * w32.c: Remove the above declarations.
2393
2394 Remove extern declarations in .c files, .h files have them.
2395 * xterm.c:
2396 * xdisp.c:
2397 * msdos.c:
2398 * image.c:
2399 * gtkutil.c:
2400 * fileio.c:
2401 * eval.c: Remove declarations.
2402
2403 * frame.c (frame_params): Make const.
2404
2405 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
2406
2407 * emacs.c (emacs_copyright, emacs_version): Make static.
2408 (Vinitial_window_system, Vauto_save_list_file_name)
2409 (Vinhibit_redisplay): Remove declarations.
2410 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
2411 for AIX.
2412
2413 Use const for some arrays and functions.
2414 * xterm.h (xg_set_icon_from_xpm_data):
2415 * xfns.c (xg_set_icon_from_xpm_data):
2416 * term.c (fkeys):
2417 * keyboard.c (lispy_accent_keys, lispy_function_keys)
2418 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
2419 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
2420 (frame.c frame_parms):
2421 * emacs-icon.h (gnu_xpm_bits):
2422 * callint.c (callint_argfuns): Use const.
2423
2424 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
2425
2426 * sysdep.c: Move include term.h last of includes (Bug#6812).
2427
2428 2010-08-06 Eli Zaretskii <eliz@gnu.org>
2429
2430 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
2431
2432 * msdos.c (IT_display_cursor): Log cursor position on termscript.
2433
2434 * .gdbinit (pgx): Display the avoid_cursor_p flag.
2435
2436 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
2437
2438 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
2439
2440 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
2441
2442 * xterm.h (x_get_focus_frame): Declare.
2443
2444 * keyboard.h (poll_for_input_1): Unconditionally declare.
2445
2446 * nsterm.h (x_set_menu_bar_lines): Declare.
2447
2448 * window.c: Don't include menu.h, it depends on lots of other .h-files.
2449
2450 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
2451
2452 * window.c: Include menu.h.
2453
2454 * unexmacosx.c (print_region_list, print_regions)
2455 (build_region_list, find_emacs_zone_regions)
2456 (unexec_regions_merge, read_load_commands, dump_it)
2457 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
2458
2459 * term.c: Check HAVE_SYS_IOCTL_H.
2460
2461 * sysdep.c: Check HAVE_TERM_H.
2462
2463 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
2464
2465 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
2466 (ns_ring_bell, ns_defined_color, hide_hourglass)
2467 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
2468 Convert to ANSI C prototypes.
2469 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
2470 before code.
2471
2472 * nsterm.h : Include sysselect.h.
2473 (x_sync, x_get_focus_frame, x_set_mouse_position)
2474 (x_set_mouse_pixel_position, x_make_frame_visible)
2475 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
2476 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
2477 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
2478 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
2479 Declare.
2480
2481 * nsmenu.m (popup_activated, name_is_separator)
2482 (syms_of_nsmenu): Convert to ANSI C prototypes.
2483 (runMenuAt): Prototypes and move declarations before code.
2484
2485 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
2486
2487 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
2488 prototypes.
2489
2490 * nsfns.m (have_menus_p, ns_display_info_for_name)
2491 (x_set_cursor_type, ns_appkit_version_str)
2492 (ns_appkit_version_int, ns_do_applescript)
2493 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
2494 (syms_of_nsfns): Convert to ANSI C prototypes.
2495
2496 * menu.h (x_set_menu_bar_line): Declare.
2497 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
2498
2499 * lisp.h (fmod_float): Declare.
2500
2501 * image.c (xpm_scan, xpm_make_color_table_v)
2502 (xpm_put_color_table_v, xpm_get_color_table_v)
2503 (xpm_make_color_table_h, xpm_put_color_table_h)
2504 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
2505 (xpm_load): Convert to ANSI C prototypes.
2506
2507 * emacs.c: Include nsterm.h if HAVE_NS.
2508
2509 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
2510
2511 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
2512
2513 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
2514 subprocesses, only MSDOS does not define HAVE_SOCKETS.
2515 (socket_options): Use const char* for name.
2516
2517 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
2518
2519 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
2520
2521 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
2522 Don't declare xmalloc_widget_value and digest_single_submenu.
2523
2524 * w32font.c (Qlatin): Remove declaration.
2525
2526 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
2527
2528 * dired.c (compile_pattern): Restore declaration.
2529
2530 2010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
2531
2532 Remove extern declarations in .c files, .h files have them.
2533 * data.c:
2534 * dired.c:
2535 * editfns.c:
2536 * filelock.c:
2537 * fns.c:
2538 * font.c:
2539 * fontset.c:
2540 * frame.c:
2541 * fringe.c:
2542 * ftfont.c:
2543 * gtkutil.c:
2544 * indent.c:
2545 * keyboard.c:
2546 * keymap.c:
2547 * lread.c:
2548 * menu.c:
2549 * print.c:
2550 * search.c:
2551 * sound.c:
2552 * window.c:
2553 * xdisp.c:
2554 * xfaces.c:
2555 * xfns.c:
2556 * xfont.c:
2557 * xftfont.c:
2558 * xmenu.c:
2559 * xterm.c: Remove declarations.
2560
2561 Cleanup syssignal.h.
2562 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
2563 (main_thread): Move down to remove #ifdef.
2564 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
2565 Remove conditional definition following unconditional ones.
2566
2567 * lisp.h: Remove HAVE_SHM code, unused.
2568 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
2569 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
2570 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
2571 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
2572 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
2573 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
2574 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
2575 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
2576 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
2577 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
2578 (Qwindow_scroll_functions, Vafter_load_alist)
2579 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
2580 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
2581 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
2582 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
2583 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
2584 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
2585 (initial_argv, last_nonmenu_event, load_in_progress)
2586 (noninteractive_need_newline, scroll_margin): Add declarations.
2587
2588 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
2589 declarations, menu.h has them.
2590 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
2591 (Vinput_method_function, Qinput_method_function)
2592 (Qevent_symbol_element_mask, last_event_timestamp):
2593 * dispextern.h (Voverflow_newline_into_fringe):
2594 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
2595 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
2596 (syms_of_w32font, syms_of_nsfont):
2597 * fontset.h (find_font_encoding, Qlatin):
2598 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
2599 (Vtool_bar_mode, set_frame_menubar):
2600 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
2601 * xterm.h (Qx_gtk_map_stock):
2602 * keymap.h (meta_prefix_char): Add declarations.
2603
2604 * term.c: Remove dead code.
2605
2606 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
2607 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
2608 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
2609 which is what was there before BSD_PGRPS was removed.
2610
2611 2010-08-05 Eli Zaretskii <eliz@gnu.org>
2612
2613 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
2614
2615 * unexcoff.c: Renamed from unexec.c.
2616
2617 2010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
2618
2619 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
2620
2621 2010-08-03 Johan Bockgård <bojohan@gnu.org>
2622
2623 * data.c (Flocal_variable_p): Handle variable aliases correctly.
2624 (Bug#6744)
2625
2626 2010-08-02 Jan Djärv <jan.h.d@swipnet.se>
2627
2628 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
2629 to TRUE if depth of screen is < 16.
2630
2631 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
2632 USE_GTK_TOOLTIP.
2633 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
2634 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
2635 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
2636 USE_GTK_TOOLTIP.
2637 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
2638
2639 * xterm.h (USE_GTK_TOOLTIP): New define.
2640 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
2641
2642 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
2643 to Control-D (Bug#6771).
2644
2645 2010-08-02 Juanma Barranquero <lekktu@gmail.com>
2646
2647 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
2648 Wording by Drew Adams <drew.adams@oracle.com>.
2649
2650 2010-08-01 Jan Djärv <jan.h.d@swipnet.se>
2651
2652 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
2653 ttip_lbl.
2654
2655 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
2656 calling gtk_widget_queue_draw.
2657 (x_free_frame_resources): Call xg_free_frame_widgets.
2658
2659 * xfns.c (x_gtk_use_system_tooltips): New variable.
2660 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
2661 new gtkutil tooltip functions to show the tooltip.
2662 (Fx_hide_tip): Call xg_hide_tooltip.
2663 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
2664
2665 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
2666 (xg_show_tooltip, xg_hide_tooltip): Declare.
2667
2668 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
2669 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
2670 New functions.
2671 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
2672 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
2673 Remove code that is commented out.
2674
2675 2010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
2676
2677 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
2678
2679 2010-07-31 Chong Yidong <cyd@stupidchicken.com>
2680
2681 * xselect.c (x_own_selection): Use list4.
2682
2683 2010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
2684
2685 * buffer.c (Qwindow): Do not define, already defined in data.c.
2686 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
2687
2688 2010-07-29 Chad Brown <yandros@mit.edu>
2689
2690 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
2691 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
2692 * config.in: Undef HAVE_DIRENT_H.
2693 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
2694 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
2695
2696 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
2697
2698 Rename s/usg5-4.h -> s/usg5-4-common.h.
2699 * s/usg5-4.h: Rename file to ...
2700 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
2701 * s/unixware.h:
2702 * s/sol2-6.h:
2703 * s/irix6-5.h: Update includes accordingly.
2704
2705 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
2706
2707 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
2708
2709 * xterm.h (struct x_output): Add toolbar_top_height,
2710 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
2711 Remove toolbar_height.
2712 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
2713 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
2714 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
2715 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
2716
2717 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
2718
2719 * xfns.c (x_set_tool_bar_position): New function.
2720 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
2721 (x_frame_parm_handlers): Add x_set_tool_bar_position.
2722 (syms_of_xfns): If USE_GTK, provide move-toolbar.
2723
2724 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
2725 and FRAME_TOOLBAR_LEFT_WIDTH.
2726
2727 * gtkutil.h (xg_change_toolbar_position): Declare.
2728
2729 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
2730 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
2731 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
2732 (xg_create_frame_widgets): Create a hobox for placing widgets
2733 vertically. Use gtk_box_pack_start.
2734 (xg_height_or_width_changed): Renamed from xg_height_changed.
2735 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
2736 (xg_update_frame_menubar, free_frame_menubar): Change to
2737 xg_height_or_width_changed.
2738 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
2739 size correctly. Remove hardcoded 4, instead use handlebox size -
2740 toolbar size.
2741 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
2742 size correctly. Use handlebox size + toolbar size as additional size.
2743 (xg_pack_tool_bar): POS is a new parameter.
2744 Set orientation of tool bar based on pos.
2745 Only make handlebox_widget if NULL.
2746 Check if tool bar goes to vbox or hbox depending on pos.
2747 (xg_update_tool_bar_sizes): New function.
2748 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
2749 height, call xg_update_tool_bar_sizes instead.
2750 (free_frame_tool_bar): Remove from hbox or vbox depending on
2751 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
2752 (xg_change_toolbar_position): New function.
2753
2754 * frame.h (struct frame): Add tool_bar_position.
2755 (Qbottom): Declare.
2756
2757 * frame.c (Qtool_bar_position): New variable.
2758 (make_frame): Set tool_bar_position to Qtop.
2759 (frame_parms): Add tool-bar-position.
2760 (x_report_frame_params): Store tool_bar_position.
2761 (x_set_fringe_width): Reset wm size hint after fringe changes.
2762
2763 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
2764
2765 Make lisp_time_argument declaration work on all systems.
2766 * lisp.h (lisp_time_argument): Move declaration ...
2767 * systime.h (lisp_time_argument): ... here
2768 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
2769
2770 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
2771
2772 * vm-limit.c (POINTER): Add typedef for it.
2773 (start_of_data): Change return type from POINTER to char *.
2774
2775 * frame.h (Qtty_color_mode): Move declaration out of ifdef
2776 HAVE_WINDOW_SYSTEM.
2777
2778 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
2779
2780 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
2781 Remove reference to __osf__, unused.
2782
2783 * mem-limits.h: Remove duplicated includes.
2784 (NULL): Remove definition, unused.
2785 (POINTER): Remove definition.
2786 (start_of_data): Use char* in prototype, as the function
2787 definition does.
2788
2789 Remove extern declarations from .c files, and them to .h files.
2790 * keyboard.h (Qhelp_echo, waiting_for_input)
2791 (input_available_clear_time, ignore_mouse_drag_p)
2792 (Vdouble_click_time, real_this_command, Vthis_original_command):
2793 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
2794 (Voverriding_local_map_menu_flag):
2795 * lisp.h (Qinteractive_form, use_file_dialog)
2796 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
2797 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
2798 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
2799 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
2800 (Qfunction, debug_on_next_call, Qfield)
2801 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
2802 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
2803 (Qfile_directory_p, Qinsert_file_contents)
2804 (Qcompletion_ignore_case, Qcompletion_ignore_case)
2805 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
2806 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
2807 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
2808 (Qminibuffer_prompt)
2809 (Vtemporary_file_directory,char_ins_del_vector, Qface):
2810 * xterm.h (gray_bitmap_width, gray_bitmap_height)
2811 (gray_bitmap_bits, xic_create_fontsetname):
2812 * coding.h (Vtranslation_table_for_input): Add extern declarations.
2813
2814 * xsmfns.c (Vuser_login_name):
2815 * xrdb.c (Vdouble_click_time):
2816 * xfaces.c (xic_create_fontsetname):
2817 * w32select.c (waiting_for_input):
2818 * print.c (minibuffer_auto_raise):
2819 * msdos.c (Qhelp_echo):
2820 * macros.c (real_this_command):
2821 * keymap.c (Voverriding_local_map):
2822 * xterm.c (poll_for_input_1, gray_bitmap_width)
2823 (gray_bitmap_height, gray_bitmap_bits;
2824 * xmenu.c ( Voverriding_local_map)
2825 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
2826 (use_file_dialog, Xt_app_con):
2827 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
2828 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
2829 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
2830 (Qtool_bar_lines, ignore_mouse_drag_p):
2831 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
2832 (Qrear_nonsticky, nconc2):
2833 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
2834 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
2835 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
2836 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
2837 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
2838 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
2839 (gc_in_progress):
2840 * doc.c (Voverriding_local_map, Qremap):
2841 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
2842 (Vcompletion_regexp_list):
2843 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
2844 (Qcompletion_ignore_case):
2845 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
2846 (Vhistory_length, Vthis_original_command, real_this_command)
2847 (Qface, Qminibuffer_prompt, history_delete_duplicates):
2848 * image.c (Qrisky_local_variable):
2849 * fontset.c (QCname):
2850 * fns.c (minibuffer_auto_raise, QCname):
2851 * dispnew.c (char_ins_del_cost):
2852 * composite.c (font_fill_lglyph_metrics):
2853 * cmds.c (Qface, Vtranslation_table_for_input):
2854 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
2855 * ccl.c (charset_unicode):
2856 * callproc.c (Vtemporary_file_directory):
2857 * buffer.c (emacs_strerror): Remove extern declarations.
2858
2859 * data.c (Qwindow): Make non-static, used from other files too.
2860 * frame.c (validate_x_resource_name): Remove shadow definition for i.
2861
2862 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
2863 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
2864 * s/usg5-4.h (COFF):
2865 * s/template.h:
2866 * s/msdos.h (COFF, NO_REMAP):
2867 * s/ms-w32.h (NO_REMAP):
2868 * s/hpux10-20.h (NO_REMAP):
2869 * m/sparc.h (SEGMENT_MASK):
2870 * m/m68k.h (NO_REMAP):
2871 * m/intel386.h (SEGMENT_MASK):
2872 * m/arm.h (NO_REMAP):
2873 * m/alpha.h (COFF):
2874 * m/template.h: Remove references to unused defines.
2875
2876 2010-07-28 Jan Djärv <jan.h.d@swipnet.se>
2877
2878 * xsettings.c (Ftool_bar_get_system_style): Also check for
2879 Qtext_image_horiz.
2880
2881 * xdisp.c (Qtext_image_horiz): Define.
2882 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
2883 to documentation of tool-bar-style.
2884
2885 * lisp.h (Qtext_image_horiz): Declare.
2886
2887 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
2888 style text_image_horiz.
2889
2890 2010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2891
2892 * emacs.c (Fkill_emacs): Remove return statement.
2893
2894 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
2895 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
2896 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
2897 local extern declarations.
2898
2899 * xmenu.c: Do not included lwlib.h, not needed.
2900
2901 * m/iris4d.h (XUINT, XSET): Remove, not needed.
2902
2903 * process.c: Move definitions earlier to minimize #ifdefs.
2904
2905 * xterm.h (x_get_customization_string, x_load_resources)
2906 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
2907 (x_check_errors, x_property_data_to_lisp, defined_color)
2908 (xic_set_xfontset, x_defined_color): Use const.
2909
2910 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
2911 (x_text_icon, x_check_errors, x_connection_closed): Use const.
2912
2913 * xselect.c (selection_data_to_lisp_data)
2914 (x_property_data_to_lisp):
2915 * xrdb.c (x_get_string_resource, file_p)
2916 (x_get_customization_string, magic_file_p, search_magic_path)
2917 (get_system_app, get_user_app, x_load_resources, x_get_resource)
2918 (x_get_string_resource): Use const.
2919
2920 * xfns.c: Include xlwmenu.h when USE_LUCID.
2921 (x_defined_color, xic_set_xfontset): Use const.
2922 (Fx_hide_tip): Remove local extern declaration.
2923
2924 * xfaces.c (Qmouse_face): Remove declaration.
2925 (face_color_gray_p, tty_defined_color, defined_color)
2926 (face_color_gray_p, face_color_supported_p): Add const.
2927
2928 * xdisp.c (do_mouse_tracking): Remove declaration.
2929 (add_to_log): Use const.
2930
2931 * minibuf.c (Qmouse_face): Remove declaration.
2932
2933 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
2934
2935 * keyboard.h (do_mouse_tracking): Add declaration.
2936
2937 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
2938 (QCdata, QCtype, Qcenter): Remove declarations.
2939
2940 * frame.c (x_get_resource_string, x_get_string_resource)
2941 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
2942 (x_default_parameter): Use const.
2943
2944 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
2945 (QCheight, QCsize, QCname): Remove declarations.
2946
2947 * emacs.c (main): Remove local extern declaration.
2948
2949 * editfns.c (region_limit, syms_of_editfns): Remove local extern
2950 declarations.
2951
2952 * dispnew.c: Remove duplicate #include <unistd.h>.
2953 (update_window, update_frame_1, init_display): Remove local extern
2954 declarations.
2955
2956 * dispextern.h (add_to_log): Remove declaration.
2957 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
2958 (x_frame_get_and_record_arg, x_default_parameter): Add const.
2959
2960 * dired.c (scmp): Add const.
2961 (directory_files_internal): Remove local extern declaration.
2962
2963 * data.c (Finteractive_form): Use const.
2964
2965 * composite.c (syms_of_composite): Remove local extern declarations.
2966
2967 * charset.c (add_to_log): Remove declaration.
2968
2969 * character.c (strwidth, parse_str_to_multibyte): Add const.
2970
2971 * character.h (strwidth, parse_str_to_multibyte): Likewise.
2972
2973 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
2974
2975 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
2976 (Lisp_Subr): Make doc and intspec constant.
2977 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
2978 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
2979 (QCheight, QCsize, QCname, QCwidth, QCforeground)
2980 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
2981 (display_arg): Add declarations.
2982
2983 2010-07-27 Christoph Scholtes <cschol2112@gmail.com>
2984
2985 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
2986
2987 * window.c (Fwindow_height): Doc fix (bug#6518).
2988
2989 2010-07-27 Juanma Barranquero <lekktu@gmail.com>
2990
2991 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
2992
2993 2010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
2994
2995 * keyboard.c (Ftop_level, Fexit_recursive_edit)
2996 (Fabort_recursive_edit): Remove return statements in NO_RETURN
2997 functions.
2998
2999 * frame.h (Qtty_color_mode): Add declaration.
3000
3001 * lisp.h (Ftop_level, Fexit_recursive_edit)
3002 (Fabort_recursive_edit): Mark as NO_RETURN.
3003
3004 2010-07-26 Kenichi Handa <handa@m17n.org>
3005
3006 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
3007 number of glyphs gets smaller than the original length. (Bug#6621)
3008
3009 2010-07-26 Juanma Barranquero <lekktu@gmail.com>
3010
3011 * lread.c (unreadpure, mapatoms_1): Make static.
3012
3013 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
3014
3015 * terminfo.c (tparam): Fix prototype of tparm.
3016
3017 2010-07-25 Andreas Schwab <schwab@linux-m68k.org>
3018
3019 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
3020 find start of text segment.
3021 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
3022 is defined.
3023
3024 * callproc.c (set_initial_environment): Avoid unbalanced braces.
3025
3026 2010-07-25 Ken Brown <kbrown@cornell.edu>
3027
3028 * vm-limit.c (check_memory_limits): Fix previous change;
3029 accidentally reverted an earlier change.
3030
3031 2010-07-25 Ken Brown <kbrown@cornell.edu>
3032
3033 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
3034 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
3035
3036 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
3037
3038 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
3039 * dired.c (opendir, readdir): Fix prototypes.
3040 * editfns.c (w32_get_internal_run_time): Fix prototypes.
3041 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
3042 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
3043 (telldir): Remove declaration.
3044 * ralloc.c (real_morecore, __morecore): Fix prototypes.
3045 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
3046 * syssignal.h (strsignal): Fix prototype.
3047 * term.c (tparam): Fix prototype.
3048 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
3049 (term_get_fkeys): Set inside "#ifndef DOS_NT".
3050 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
3051 and __morecore.
3052 * w32gui.h (XParseGeometry): Fix prototype.
3053 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
3054 * w32term.c (my_set_focus): Declare inside #if 0.
3055 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
3056 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
3057 (drain_message_queue, get_next_msg, post_msg, parse_button)
3058 (ClipboardSequence_Proc): Fix prototypes.
3059 (wait_for_sync): Remove declaration.
3060
3061 2010-07-24 Juanma Barranquero <lekktu@gmail.com>
3062
3063 * w32fns.c (w32_to_x_color): Remove, unused.
3064
3065 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
3066
3067 * lisp.h: Remove leftover P_.
3068
3069 2010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
3070
3071 * ecrt0.c, unexalpha.c: Remove files, unused.
3072
3073 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
3074
3075 * cmds.c (internal_self_insert): Make static.
3076 * lisp.h (internal_self_insert): Remove declaration.
3077
3078 2010-07-23 Juanma Barranquero <lekktu@gmail.com>
3079
3080 * alloc.c (free_float):
3081 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
3082 * frame.c (delete_frame_handler):
3083 * ralloc.c (reorder_bloc):
3084 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
3085 Remove unused static functions.
3086
3087 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
3088 it is called only from NS code.
3089
3090 * w32term.c (my_set_focus): #ifdef away; it is called only from
3091 "#ifdef 0" code.
3092
3093 * w32fns.c (x_edge_detection):
3094 * xfaces.c (may_use_scalable_font_p):
3095 Remove obsolete static declarations.
3096
3097 2010-07-20 Juanma Barranquero <lekktu@gmail.com>
3098
3099 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
3100 (emacs_blocked_realloc, uninterrupt_malloc):
3101 * fringe.c (w32_reset_fringes):
3102 * image.c (convert_mono_to_color_image, lookup_rgb_color)
3103 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
3104 * sound.c (be2hs, do_play_sound):
3105 * vm-limit.c (get_lim_data, ret_lim_data):
3106 * w32term.c (x_free_frame_resources):
3107 * xfaces.c (x_create_gc, x_free_gc):
3108 Convert definitions to standard C.
3109
3110 2010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
3111
3112 * eval.c (Feval, Ffuncall): Use the new names.
3113
3114 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
3115 (DEFUN): Add braces around the union initialisation and use ## to
3116 specify the right union alternative and avoid a cast.
3117
3118 2010-07-18 Juanma Barranquero <lekktu@gmail.com>
3119
3120 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
3121
3122 2010-07-17 Chong Yidong <cyd@stupidchicken.com>
3123
3124 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
3125
3126 2010-07-17 Jan Djärv <jan.h.d@swipnet.se>
3127
3128 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
3129 is related to the menu bar (Bug#6499).
3130 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
3131
3132 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
3133
3134 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
3135
3136 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
3137
3138 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
3139 i.e. don't put back ButtonRelease (Bug#6608).
3140
3141 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
3142 instead of Window. Call xg_event_is_for_menubar when
3143 USE_GTK (Bug#6499).
3144
3145 * gtkutil.h (xg_event_is_for_menubar): Declare.
3146
3147 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
3148
3149 2010-07-16 Eli Zaretskii <eliz@gnu.org>
3150
3151 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
3152 when it's the same as the old foreground. (Bug#6609)
3153
3154 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
3155
3156 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
3157 widget is non-null (Bug#6645).
3158
3159 2010-07-15 Andreas Schwab <schwab@linux-m68k.org>
3160
3161 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
3162 Convert old-style definition.
3163
3164 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
3165 timestamp argument.
3166
3167 2010-07-15 Eli Zaretskii <eliz@gnu.org>
3168
3169 * fringe.c (update_window_fringes): Restore mistakenly reverted
3170 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
3171
3172 2010-07-14 Jan Djärv <jan.h.d@swipnet.se>
3173
3174 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
3175 (SET_SAVED_KEY_EVENT): Remove (not used).
3176 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
3177 remove size parameter.
3178 (handle_one_xevent): Check popup_activated () for menu for Xt also.
3179 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
3180 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
3181 ButtonRelease.
3182 (x_set_window_size_1): scroll_bar_actual_width is always
3183 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
3184
3185 * xdisp.c (pending_menu_activation): Remove extern declaration.
3186 (prepare_menu_bars): Remove setting of pending_menu_activation.
3187
3188 * xmenu.c (pending_menu_activation): Remove.
3189 (x_activate_menubar): Set popup_activated_flag for Xt also.
3190 Remove setting of pending_menu_activation.
3191 (set_frame_menubar): Remove check of pending_menu_activation.
3192 Declare menubar_size before code. Correct spelling in comment.
3193
3194 2010-07-14 Kenichi Handa <handa@m17n.org>
3195
3196 * font.c (font_open_entity): Cancel previous change.
3197 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
3198
3199 2010-07-13 Eli Zaretskii <eliz@gnu.org>
3200
3201 Remove subprocesses #ifdefs.
3202 * process.c <inhibit_sentinels>: Move to the common part.
3203 (Fwaiting_for_user_input_p): Move to the common part; return nil
3204 if async subprocesses aren't supported.
3205 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
3206 MS-DOS. Remove "#ifdef subprocesses".
3207 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
3208 (gettimeofday): Remove "#ifdef subprocesses".
3209 (wait_without_blocking): Remove function.
3210 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
3211 Remove "#ifdef subprocesses".
3212 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
3213 compiled on MS-DOS.
3214 * callproc.c (Fcall_process) [!MSDOS]: Don't call
3215 wait_for_termination on MS-DOS.
3216 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
3217 initialization of inhibit_sentinels.
3218 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
3219 subprocesses" conditional.
3220 * callproc.c (Fcall_process) [!subprocesses]: Don't call
3221 wait_for_termination, since `buffer' cannot be an integer when
3222 async subprocesses are not supported
3223 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
3224 for ifdefing away the call to Fprocess_status.
3225
3226 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
3227 away the entire body of the function.
3228
3229 2010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
3230
3231 Remove subprocesses #ifdefs from term.c.
3232 * process.c (add_keyboard_wait_descriptor)
3233 (delete_keyboard_wait_descriptor): Move to common section, do
3234 nothing when subprocesses is not defined.
3235 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
3236 Remove subprocesses #ifdefs.
3237
3238 Convert maybe_fatal to standard C.
3239 * lisp.h (verror): Declare.
3240 * eval.c (verror): New function containing the code from ...
3241 (error): ... this. Call verror.
3242 * term.c (vfatal): New function containing the code from ...
3243 (fatal): ... this. Call vfatal.
3244 (maybe_fatal): Convert to standard C, use variable number of
3245 arguments. Declare as non-return.
3246 (init_tty): Fix maybe_fatal call.
3247
3248 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
3249
3250 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
3251 (_scroll_bar_note_movement): Convert definitions to standard C.
3252 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
3253 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
3254
3255 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
3256
3257 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
3258 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
3259 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
3260 (xaw_jump_callback, xaw_scroll_callback)
3261 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
3262 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
3263 definitions to standard C.
3264 * xmenu.c (menubar_id_to_frame, popup_get_selection)
3265 (popup_activate_callback, popup_deactivate_callback)
3266 (menu_highlight_callback, menubar_selection_callback)
3267 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
3268 (free_frame_menubar, popup_selection_callback, as)
3269 (create_and_show_popup_menu, dialog_selection_callback)
3270 (create_and_show_dialog):
3271 * xfns.c (hack_wm_protocols, x_window):
3272 * xfaces.c (x_update_menu_appearance):
3273 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
3274 (char_to_pixel_size, round_size_to_char, get_wm_shell)
3275 (set_frame_size, update_wm_hints, setup_frame_gcs)
3276 (update_various_frame_slots, update_from_various_frame_slots)
3277 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
3278 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
3279 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
3280
3281 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
3282
3283 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
3284
3285 2010-07-12 Eli Zaretskii <eliz@gnu.org>
3286
3287 * process.c (setup_process_coding_systems): Move to the part
3288 shared by non-subprocesses systems, and make its body empty when
3289 subprocesses is not defined.
3290 (close_process_descs): Move to the part shared by non-subprocesses
3291 systems.
3292 (wait_reading_process_output) [!subprocesses]: Convert arg list to
3293 ANSI C.
3294
3295 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
3296
3297 * editfns.c (transpose_markers): Convert old-style definition.
3298 * emacs.c (abort, shut_down_emacs, fixup_locale)
3299 (synchronize_system_time_locale)
3300 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
3301 * floatfns.c (extract_float, matherr, init_floatfns)
3302 (syms_of_floatfns): Likewise.
3303 * fns.c (make_hash_table): Likewise.
3304 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
3305 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
3306 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
3307 (ftfont_variation_glyphs): Likewise.
3308 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
3309 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
3310 * lread.c (read_filtered_event): Likewise.
3311 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
3312 * process.c (wait_reading_process_output): Likewise.
3313 * scroll.c (do_line_insertion_deletion_costs): Likewise.
3314 * search.c (search_buffer, boyer_moore): Likewise.
3315 * syntax.c (scan_sexps_forward): Likewise.
3316 * xdisp.c (try_scrolling): Likewise.
3317 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
3318 (face_at_string_position): Likewise.
3319 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
3320 * xselect.c (x_get_window_property, receive_incremental_selection)
3321 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
3322 Likewise.
3323 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
3324
3325 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
3326
3327 * callproc.c (child_setup): Remove subprocesses conditional.
3328 Remove code dealing with SET_EMACS_PRIORITY, unused.
3329
3330 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
3331 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
3332
3333 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
3334 (__do_global_dtors, __main): Use void in definition.
3335 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
3336 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
3337 the only users from ...
3338 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
3339 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
3340 (HAVE_VOLATILE): Remove, unused.
3341
3342 Convert more function definitions to standard C.
3343 * xdisp.c (window_box_edges, handle_single_display_spec)
3344 (display_string): Convert definition to standard C.
3345 * scroll.c (do_direct_scrolling, scrolling_1):
3346 * dispnew.c (allocate_matrices_for_frame_redisplay)
3347 (mirrored_line_dance):
3348 * coding.c (code_convert_string):
3349 * charset.c (map_charset_chars):
3350 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
3351 (Fregister_ccl_program, Fregister_code_conversion_map):
3352 * keyboard.c (kbd_buffer_nr_stored): Likewise.
3353 (head_table): Make static and const.
3354
3355 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
3356
3357 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
3358 (PROFILING_LDFLAGS): Set from substitution.
3359 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
3360 CFLAGS last.
3361
3362 2010-07-12 Kenichi Handa <handa@m17n.org>
3363
3364 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
3365 (shortlisp): Likewise.
3366
3367 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
3368
3369 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
3370 of FONT_ENTITY_INDEX.
3371 (Ffont_get): If KEY is :otf and the font-object doesn't have the
3372 property, get the property value dynamically.
3373 (Ffont_put): Accept font-entity and font-object too.
3374 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
3375 return value changed.
3376 (syms_of_font): Adjusted for the above change.
3377
3378 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
3379
3380 * blockinput.h: Remove obsolete comment.
3381
3382 * lisp.h: Include <stddef.h>.
3383 (OFFSETOF): Don't define.
3384 (VECSIZE): Use offsetof instead of OFFSETOF.
3385 (PSEUDOVECSIZE): Likewise.
3386 * process.c (conv_sockaddr_to_lisp): Likewise.
3387 * alloc.c: Don't include <stddef.h>.
3388 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
3389
3390 * process.c: Remove obsolete comment.
3391
3392 2010-07-11 Chong Yidong <cyd@stupidchicken.com>
3393
3394 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
3395
3396 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
3397
3398 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
3399 index, rindex.
3400 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
3401 * editfns.c (Fuser_full_name, Fformat): Likewise.
3402 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
3403 * fileio.c (Ffile_symlink_p): Likewise.
3404 * filelock.c (current_lock_owner): Likewise.
3405 * font.c (font_parse_name, font_parse_family_registry): Likewise.
3406 * fontset.c (fontset_pattern_regexp): Likewise.
3407 * lread.c (read1): Likewise.
3408 * sysdep.c (init_system_name): Likewise.
3409 * xfns.c (select_visual): Likewise.
3410 * s/hpux10-20.h (index, rindex): Don't define.
3411 * s/ms-w32.h (index): Likewise.
3412 * s/usg5-4.h: Likewise.
3413
3414 * callproc.c (relocate_fd): Use F_DUPFD if defined.
3415
3416 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
3417 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
3418 (egetenv): Likewise.
3419 * doprnt.c (doprnt): Likewise.
3420 * editfns.c (set_time_zone_rule, format2): Likewise.
3421 * emacs.c (decode_env_path): Likewise.
3422 * eval.c (signal_error, error): Likewise.
3423 * insdel.c (replace_range_2): Likewise.
3424 * keyboard.c (cmd_error_internal): Likewise.
3425 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
3426 * print.c (write_string, write_string_1, print_error_message):
3427 Likewise.
3428 * vm-limit.c (warn_function, memory_warnings): Likewise.
3429 * xdisp.c (message1, message1_nolog, message_with_string)
3430 (vmessage, message, message_nolog): Likewise.
3431 * emacs.c: Remove duplicate declaration.
3432 * keyboard.h: Likewise.
3433 * lisp.h: Update prototypes.
3434
3435 * eval.c: Fix indentation problem.
3436
3437 * keyboard.c: Include "process.h"
3438
3439 * eval.c: Remove obsolete noinline declaration.
3440 * fns.c: Likewise.
3441
3442 2010-07-11 Ken Raeburn <raeburn@raeburn.org>
3443
3444 * doprnt.c (doprnt): Take a va_list argument instead of count and
3445 pointer.
3446 * eval.c (error): Change to a standard-C variadic function.
3447 * xdisp.c (vmessage): Renamed from message, made static, and
3448 changed to take a va_list argument.
3449 (message): New variadic wrapper.
3450 (message_nolog): Now a variadic function, calling vmessage.
3451 * lisp.h: Include stdarg.h for va_list.
3452 (doprnt, error, message, message_nolog): Decls updated.
3453
3454 2010-07-11 Eli Zaretskii <eliz@gnu.org>
3455
3456 * process.c (syms_of_process) <delete-exited-processes>: Define
3457 even if !subprocesses.
3458 (delete_exited_processes): Ditto.
3459
3460 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
3461 (delete_exited_processes): Don't define.
3462
3463 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
3464
3465 * frame.c (make_frame): Initialize menu_bar_lines and
3466 tool_bar_lines members.
3467 (make_initial_frame, make_terminal_frame): Initialize
3468 menu_bar_lines using value of menu-bar-mode.
3469
3470 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
3471
3472 2010-07-10 Eli Zaretskii <eliz@gnu.org>
3473
3474 * process.c: Reshuffle #include's. Condition some of the global
3475 and static variables on `subprocesses'.
3476 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
3477 Leave only one implementation.
3478 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
3479 (kill_buffer_processes, Flist_system_processes)
3480 (Fprocess_attributes, init_process, syms_of_process): Unify the
3481 implementations for with subprocesses and without them.
3482
3483 2010-07-09 Jan Djärv <jan.h.d@swipnet.se>
3484
3485 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
3486 correct size for Motif.
3487 (free_frame_menubar): Call x_set_window_size to update frame size.
3488
3489 * xfns.c (x_window): Set borderWidth to 0 for pane and
3490 EmacsFrame. Frame size calculation is wrong otherwise.
3491
3492 2010-07-09 Michael Albinus <michael.albinus@gmx.de>
3493
3494 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
3495 allows to suppress errors when polling in Emacs' main loop.
3496 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
3497 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
3498 (Fdbus_method_error_internal, Fdbus_send_signal)
3499 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
3500 (Fdbus_register_method): Use it. (Bug#6579)
3501
3502 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
3503
3504 * alloc.c: Convert DEFUNs to standard C.
3505 * buffer.c:
3506 * bytecode.c:
3507 * callint.c:
3508 * callproc.c:
3509 * casefiddle.c:
3510 * casetab.c:
3511 * category.c:
3512 * character.c:
3513 * charset.c:
3514 * chartab.c:
3515 * cmds.c:
3516 * coding.c:
3517 * composite.c:
3518 * data.c:
3519 * dbusbind.c:
3520 * dired.c:
3521 * dispnew.c:
3522 * doc.c:
3523 * dosfns.c:
3524 * editfns.c:
3525 * emacs.c:
3526 * eval.c:
3527 * fileio.c:
3528 * filelock.c:
3529 * floatfns.c:
3530 * fns.c:
3531 * font.c:
3532 * fontset.c:
3533 * frame.c:
3534 * fringe.c:
3535 * image.c:
3536 * indent.c:
3537 * insdel.c:
3538 * keyboard.c:
3539 * keymap.c:
3540 * lread.c:
3541 * macros.c:
3542 * marker.c:
3543 * menu.c:
3544 * minibuf.c:
3545 * msdos.c:
3546 * nsfns.m:
3547 * nsmenu.m:
3548 * nsselect.m:
3549 * print.c:
3550 * process.c:
3551 * search.c:
3552 * sound.c:
3553 * syntax.c:
3554 * term.c:
3555 * terminal.c:
3556 * textprop.c:
3557 * undo.c:
3558 * w16select.c:
3559 * w32console.c:
3560 * w32fns.c:
3561 * w32font.c:
3562 * w32menu.c:
3563 * w32proc.c:
3564 * w32select.c:
3565 * window.c:
3566 * xdisp.c:
3567 * xfaces.c:
3568 * xfns.c:
3569 * xmenu.c:
3570 * xselect.c:
3571 * xsettings.c:
3572 * xsmfns.c: Likewise.
3573
3574 2010-07-08 Eli Zaretskii <eliz@gnu.org>
3575
3576 * process.c (kbd_is_on_hold, hold_keyboard_input)
3577 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
3578
3579 2010-07-08 Jan Djärv <jan.h.d@swipnet.se>
3580
3581 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
3582 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
3583 unless USE_LUCID.
3584
3585 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
3586
3587 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
3588 declaration.
3589
3590 Clean up include guards.
3591 * tparam.c: Remove include guards for config.h, string.h and code
3592 that assumes #ifndef emacs.
3593 * termcap.c:
3594 * unexalpha.c:
3595 * sysdep.c:
3596 * filemode.c:
3597 * filelock.c:
3598 * bidi.c: Likewise.
3599
3600 Remove prefix-args.c
3601 * prefix-args.c: Remove file.
3602 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
3603 * Makefile.in (temacs${EXEEXT}): Remove references to
3604 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
3605 (mostlyclean): Remove reference to prefix-args.
3606 (prefix-args): Remove.
3607
3608 Simplify cstart_of_data, start_of_code and related code.
3609 * mem-limits.h: Remove !emacs and _LIBC conditional code.
3610 (start_of_data): Merge into start_of_data function.
3611 * sysdep.c (start_of_text): Remove. Move simplified versions of
3612 it in the only users: unexaix.c and unexec.c.
3613 (read_input_waiting): Remove local declaration of quit_char.
3614 (start, etext): Remove declarations.
3615 (start_of_data): Merge with the version in mem-limits.h and move
3616 to vm-limits.c.
3617 * vm-limit.c (start_of_data): Merged and simplified version of the
3618 code formerly in mem-limits.h and sysdep.c.
3619 * unexec.c (start): New declaration, moved from sysdep.c.
3620 (start_of_text): Simplified version of the code formerly in sysdep.c.
3621 * unexaix.c (start_of_text): Simplified version of the code
3622 formerly in sysdep.c.
3623 * m/alpha.h (HAVE_TEXT_START): Remove.
3624 (TEXT_START): Move ...
3625 * unexalpha.c (TEXT_START): ... here.
3626 * s/hpux10-20.h (TEXT_START): Remove.
3627 * s/darwin.h (TEXT_START):
3628 * m/mips.h (TEXT_START):
3629 * m/macppc.h (HAVE_TEXT_START):
3630 * m/m68k.h (TEXT_START):
3631 * m/iris4d.h (TEXT_START):
3632 * m/intel386.h (TEXT_START):
3633 * m/ibmrs6000.h (TEXT_START):
3634 * m/ia64.h (HAVE_TEXT_START):
3635 * s/msdos.h (TEXT_START): Likewise.
3636
3637 2010-07-07 Andreas Schwab <schwab@linux-m68k.org>
3638
3639 * alloc.c (overrun_check_malloc, overrun_check_realloc)
3640 (overrun_check_free, xstrdup, allocate_string)
3641 (allocate_string_data, compact_small_strings, Fmake_string)
3642 (make_unibyte_string, make_multibyte_string)
3643 (make_string_from_bytes, make_specified_string, make_float)
3644 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
3645 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
3646 memcpy, memmove, memset, memcmp.
3647 * atimer.c (start_atimer, set_alarm): Likewise.
3648 * buffer.c (clone_per_buffer_values, report_overlay_modification)
3649 (mmap_realloc, init_buffer_once): Likewise.
3650 * callint.c (Fcall_interactively): Likewise.
3651 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
3652 (getenv_internal_1): Likewise.
3653 * casefiddle.c (casify_object): Likewise.
3654 * ccl.c (ccl_driver): Likewise.
3655 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
3656 * charset.c (load_charset_map_from_file)
3657 (load_charset_map_from_file, load_charset_map_from_vector)
3658 (Fdefine_charset_internal): Likewise.
3659 * cm.c (Wcm_clear): Likewise.
3660 * coding.c (decode_eol, decode_coding_object)
3661 (Fset_coding_system_priority, make_subsidiaries): Likewise.
3662 * data.c (Faset): Likewise.
3663 * dired.c (directory_files_internal, file_name_completion_stat):
3664 Likewise.
3665 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
3666 (clear_glyph_row, copy_row_except_pointers)
3667 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
3668 (save_current_matrix, restore_current_matrix)
3669 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
3670 (mirror_line_dance, scrolling_window): Likewise.
3671 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
3672 Likewise.
3673 * doprnt.c (doprnt): Likewise.
3674 * editfns.c (Fuser_full_name, make_buffer_string_both)
3675 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
3676 * emacs.c (sort_args): Likewise.
3677 * eval.c (Fapply, Ffuncall): Likewise.
3678 * fileio.c (Ffile_name_directory, make_temp_name)
3679 (Fexpand_file_name, search_embedded_absfilename)
3680 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
3681 (auto_save_error): Likewise.
3682 * fns.c (Fstring_equal, Fcopy_sequence, concat)
3683 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
3684 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
3685 (Fmake_hash_table): Likewise.
3686 * fringe.c (Fdefine_fringe_bitmap): Likewise.
3687 * ftfont.c (ftfont_text_extents): Likewise.
3688 * getloadavg.c (getloadavg): Likewise.
3689 * image.c (define_image_type, make_image, make_image_cache)
3690 (x_create_x_image_and_pixmap, xbm_image_p)
3691 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
3692 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
3693 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
3694 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
3695 (tiff_image_p, tiff_read_from_memory, gif_image_p)
3696 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
3697 Likewise.
3698 * indent.c (scan_for_column, compute_motion): Likewise.
3699 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
3700 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
3701 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
3702 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
3703 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
3704 (store_user_signal_events, menu_bar_items, tool_bar_items)
3705 (process_tool_bar_item, append_tool_bar_item)
3706 (read_char_minibuf_menu_prompt, read_key_sequence)
3707 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
3708 Likewise.
3709 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
3710 Likewise.
3711 * lisp.h (STRING_COPYIN): Likewise.
3712 * lread.c (Fload, read1, oblookup): Likewise.
3713 * msdos.c (Frecent_doskeys): Likewise.
3714 * nsfns.m (Fx_create_frame): Likewise.
3715 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
3716 Likewise.
3717 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
3718 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
3719 Likewise.
3720 * nsmenu.m (ns_update_menubar): Likewise.
3721 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
3722 * print.c (print_unwind, printchar, strout, print_string)
3723 (print_error_message): Likewise.
3724 * process.c (conv_lisp_to_sockaddr, set_socket_option)
3725 (Fmake_network_process, Fnetwork_interface_list)
3726 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
3727 (init_process): Likewise.
3728 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
3729 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
3730 Likewise.
3731 * scroll.c (do_scrolling, do_direct_scrolling)
3732 (scrolling_max_lines_saved): Likewise.
3733 * search.c (search_buffer, wordify, Freplace_match): Likewise.
3734 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
3735 * syntax.c (skip_chars, skip_syntaxes): Likewise.
3736 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
3737 (emacs_set_tty): Likewise.
3738 * term.c (encode_terminal_code, calculate_costs)
3739 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
3740 Likewise.
3741 * termcap.c (tgetst1, gobble_line): Likewise.
3742 * termhooks.h (EVENT_INIT): Likewise.
3743 * tparam.c (tparam1): Likewise.
3744 * unexalpha.c (unexec): Likewise.
3745 * unexec.c (write_segment): Likewise.
3746 * unexmacosx.c (unexec_write_zero): Likewise.
3747 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
3748 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
3749 * w32font.c (w32font_list_family, w32font_text_extents)
3750 (w32font_list_internal, w32font_match_internal)
3751 (w32font_open_internal, compute_metrics, Fx_select_font):
3752 Likewise.
3753 * w32menu.c (set_frame_menubar, add_menu_item)
3754 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
3755 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
3756 * w32uniscribe.c (uniscribe_list_family): Likewise.
3757 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
3758 * window.c (make_window, replace_window, set_window_buffer)
3759 (Fsplit_window): Likewise.
3760 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
3761 (add_to_log, message3, x_consider_frame_title)
3762 (append_space_for_newline, extend_face_to_end_of_line)
3763 (decode_mode_spec_coding, init_glyph_string): Likewise.
3764 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
3765 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
3766 (face_attr_equal_p, make_realized_face, make_face_cache)
3767 (free_realized_faces, lookup_named_face, smaller_face)
3768 (face_with_height, lookup_derived_face)
3769 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
3770 (Finternal_set_font_selection_order, realize_default_face)
3771 (compute_char_face, face_at_buffer_position)
3772 (face_for_overlay_string, face_at_string_position, merge_faces):
3773 Likewise.
3774 * xfns.c (xic_create_fontsetname, Fx_create_frame)
3775 (Fx_window_property, x_create_tip_frame)
3776 (Fx_backspace_delete_keys_p): Likewise.
3777 * xfont.c (xfont_list, xfont_match, xfont_list_family)
3778 (xfont_text_extents): Likewise.
3779 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
3780 * xrdb.c (magic_file_p, x_get_resource): Likewise.
3781 * xselect.c (x_queue_event, x_get_window_property)
3782 (receive_incremental_selection): Likewise.
3783 * xsmfns.c (x_session_check_input): Likewise.
3784 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
3785 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
3786 Likewise.
3787 * character.h (BCOPY_SHORT): Removed.
3788 * config.in: Regenerate.
3789 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
3790 * emacs.c (main) [PROFILING]: Don't declare
3791 dump_opcode_frequencies.
3792 * lisp.h (safe_bcopy): Remove declaration.
3793 (memset) [!HAVE_MEMSET]: Declare.
3794 (memcpy) [!HAVE_MEMCPY]: Likewise.
3795 (memmove) [!HAVE_MEMMOVE]: Likewise.
3796 (memcmp) [!HAVE_MEMCMP]: Likewise.
3797 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
3798 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
3799 Don't define.
3800 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
3801 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
3802 (BCOPY_DOWNWARD_SAFE): Don't define.
3803 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
3804 (memcpy) [!HAVE_MEMCPY]: Define.
3805 (memmove) [!HAVE_MEMMOVE]: Define.
3806 (memcmp) [!HAVE_MEMCMP]: Define.
3807
3808 2010-07-07 Jan Djärv <jan.h.d@swipnet.se>
3809
3810 * process.c (kbd_is_on_hold): New variable.
3811 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
3812 New functions.
3813 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
3814 select on empty input mask.
3815 (init_process): Initialize kbd_is_on_hold to 0.
3816
3817 * process.h (hold_keyboard_input, unhold_keyboard_input)
3818 (kbd_on_hold_p): Declare.
3819
3820 * keyboard.c (input_available_signal): Declare.
3821 (kbd_buffer_nr_stored): New function.
3822 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
3823 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
3824 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
3825 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
3826 (tty_read_avail_input): If input is on hold, return.
3827 Don't read more that free slots in kbd_buffer (Bug#6571).
3828
3829 2010-07-07 Eli Zaretskii <eliz@gnu.org>
3830
3831 * msdos.h:
3832 * msdos.c:
3833 * dosfns.c:
3834 * w16select.c: Convert function definitions to ANSI C.
3835
3836 * msdos.h (ctrl_break_func, install_ctrl_break_check):
3837 Remove unused prototypes.
3838
3839 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
3840
3841 * coding.c, sysdep.c: Convert some more functions to standard C.
3842
3843 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
3844
3845 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
3846 (encode_coding_object): Use SPECPDL_INDEX.
3847 (syms_of_coding): Use DOS_NT.
3848
3849 2010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
3850
3851 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
3852
3853 Make the function member of Lisp_Subr use standard C prototypes.
3854 * lisp.h (struct Lisp_Subr): Use a union for the function member.
3855 (DECL_ALIGN): Add a cast for the function.
3856 * eval.c (Feval, Ffuncall): Use the proper type for each type
3857 function call.
3858
3859 2010-07-06 Chong Yidong <cyd@stupidchicken.com>
3860
3861 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
3862 fringe face id, so face-remapping-alist works (Bug#6091).
3863
3864 2010-07-06 Juanma Barranquero <lekktu@gmail.com>
3865
3866 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
3867 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
3868 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
3869
3870 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
3871
3872 * xterm.c (x_get_keysym_name): Change type of parameter to int.
3873 * lisp.h: Declare x_get_keysym_name.
3874 * keyboard.c (modify_event_symbol): Don't declare
3875 x_get_keysym_name here.
3876
3877 2010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
3878
3879 * ecrt0.c: Revert conversion to standard C.
3880
3881 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
3882
3883 * vm-limit.c (memory_warnings):
3884 * keyboard.c (modify_event_symbol):
3885 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
3886 (round2, emacs_rint):
3887 * process.c (send_process, old_sigpipe): Convert function
3888 definitions and declarations to standard C.
3889
3890 2010-07-05 Juanma Barranquero <lekktu@gmail.com>
3891
3892 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
3893 * xdisp.c: Convert function definitions to standard C.
3894
3895 * cm.c (cmputc): Arg C is now int, not char.
3896 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
3897
3898 2010-07-05 James Cloos <cloos@jhcloos.com>
3899
3900 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
3901
3902 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
3903 _NET_WM_ICON_NAME atoms.
3904
3905 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
3906 and _NET_WM_ICON_NAME properties, too, matching what is
3907 done in the Gtk+ case.
3908
3909 2010-07-05 Jan Djärv <jan.h.d@swipnet.se>
3910
3911 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
3912
3913 * xsmfns.c (SSDATA): New macro.
3914 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
3915 passed to strlen/strcpy/strcat.
3916 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
3917 7:th arg to XChangeProperty to (unsigned char *).
3918
3919 * xsettings.c (something_changedCB, parse_settings)
3920 (apply_xft_settings): Reformat prototype.
3921 (something_changedCB, init_gconf): Remove unused variable i.
3922 (read_settings): Remove unused variable long_len.
3923
3924 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
3925 (xg_get_image_for_pixmap, create_dialog)
3926 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
3927 (menuitem_highlight_callback, make_menu_item)
3928 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
3929 (xg_create_scroll_bar, xg_update_scrollbar_pos)
3930 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
3931 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
3932 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
3933 (xg_tool_bar_item_expose_callback): Reformat prototype.
3934 (xg_update_menubar): GList *group => GSList *group.
3935 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
3936 before use.
3937 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
3938 to GTK_IMAGE (wimage).
3939
3940 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
3941
3942 * atimer.c: Use "" instead of <> for local includes for
3943 consistency with the rest of the code.
3944
3945 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
3946 * xrdb.c (get_system_name):
3947 * window.c (shrink_windows):
3948 * syntax.c (forw_comment):
3949 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
3950 (ins_del_costs):
3951 * mem-limits.h (start_of_data):
3952 * lread.c (readevalloop):
3953 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
3954 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
3955 * frame.c (x_get_focus_frame):
3956 * floatfns.c (fmod_float):
3957 * fileio.c (choose_write_coding_system):
3958 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
3959 (malloc_initialize_hook, sort_args, synchronize_locale):
3960 * doprnt.c (doprnt):
3961 * dired.c (compile_pattern):
3962 * data.c (fmod_float):
3963 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
3964 (map_char_table_for_charset):
3965 * charset.c (define_charset_internal):
3966 * alloc.c (Fgarbage_collect): Convert declarations or definitions
3967 to standard C.
3968
3969 2010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
3970 Stefan Monnier <monnier@iro.umontreal.ca>
3971
3972 * lread.c (read1): Fix up last change to not mess up `c'.
3973
3974 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
3975
3976 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
3977
3978 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
3979
3980 Fix prototypes.
3981
3982 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
3983 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
3984 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
3985 arg, as required by internal_condition_case_1.
3986 * print.c (strout): Use const char* for arg PTR.
3987 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
3988 (analyse_first): Fix "const const".
3989 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
3990 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
3991 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
3992
3993 2010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
3994
3995 * alloc.c: Convert function definitions to standard C.
3996 * atimer.c:
3997 * bidi.c:
3998 * bytecode.c:
3999 * callint.c:
4000 * callproc.c:
4001 * casefiddle.c:
4002 * casetab.c:
4003 * category.c:
4004 * ccl.c:
4005 * character.c:
4006 * charset.c:
4007 * chartab.c:
4008 * cmds.c:
4009 * coding.c:
4010 * composite.c:
4011 * data.c:
4012 * dbusbind.c:
4013 * dired.c:
4014 * dispnew.c:
4015 * doc.c:
4016 * doprnt.c:
4017 * ecrt0.c:
4018 * editfns.c:
4019 * fileio.c:
4020 * filelock.c:
4021 * filemode.c:
4022 * fns.c:
4023 * font.c:
4024 * fontset.c:
4025 * frame.c:
4026 * fringe.c:
4027 * ftfont.c:
4028 * ftxfont.c:
4029 * gtkutil.c:
4030 * indent.c:
4031 * insdel.c:
4032 * intervals.c:
4033 * keymap.c:
4034 * lread.c:
4035 * macros.c:
4036 * marker.c:
4037 * md5.c:
4038 * menu.c:
4039 * minibuf.c:
4040 * prefix-args.c:
4041 * print.c:
4042 * ralloc.c:
4043 * regex.c:
4044 * region-cache.c:
4045 * scroll.c:
4046 * search.c:
4047 * sound.c:
4048 * strftime.c:
4049 * syntax.c:
4050 * sysdep.c:
4051 * termcap.c:
4052 * terminal.c:
4053 * terminfo.c:
4054 * textprop.c:
4055 * tparam.c:
4056 * undo.c:
4057 * unexelf.c:
4058 * window.c:
4059 * xfaces.c:
4060 * xfns.c:
4061 * xfont.c:
4062 * xftfont.c:
4063 * xgselect.c:
4064 * xmenu.c:
4065 * xrdb.c:
4066 * xselect.c:
4067 * xsettings.c:
4068 * xsmfns.c:
4069 * xterm.c: Likewise.
4070
4071 2010-07-03 Eli Zaretskii <eliz@gnu.org>
4072
4073 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
4074 frames other than the initial one. Fix reversal of colors when
4075 `reverse' is specified in the frame parameters. Call
4076 update_face_from_frame_parameter instead of
4077 internal-set-lisp-face-attribute. Initialize screen colors from
4078 initial_screen_colors[] when f->default_face_done_p is zero,
4079 instead of depending on being called with default-frame-alist as
4080 the alist argument.
4081
4082 * xfaces.c (update_face_from_frame_parameter): Move out of
4083 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
4084 with HAVE_WINDOW_SYSTEM.
4085
4086 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
4087 to menu-bar-mode, if not set in the frame parameters or in
4088 default-frame-alist.
4089
4090 * w32console.c (sys_tputs): Adjust argument list to prototype in
4091 term.c.
4092
4093 2010-07-03 Juanma Barranquero <lekktu@gmail.com>
4094
4095 * lisp.h (memory_warnings): Fix prototype.
4096
4097 * cm.h (evalcost): Fix prototype.
4098
4099 * cm.c (evalcost): Fix arg type.
4100
4101 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
4102
4103 * term.c (term_clear_mouse_face, Fidentity):
4104 * syssignal.h (signal_handler_t):
4105 * lisp.h (memory_warnings):
4106 * coding.h (preferred_coding_system):
4107 * cm.h (evalcost):
4108 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
4109
4110 2010-07-02 Eli Zaretskii <eliz@gnu.org>
4111
4112 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
4113 from prototypes.
4114
4115 * msdos.h (load_pixmap): Don't define away.
4116
4117 2010-07-02 Jan Djärv <jan.h.d@swipnet.se>
4118
4119 * lisp.h:
4120 * atimer.h: Remove define for P_.
4121
4122 * alloc.c: Remove __P and P_ from .c and .m files.
4123 * atimer.c:
4124 * buffer.c:
4125 * callint.c:
4126 * category.c:
4127 * charset.c:
4128 * chartab.c:
4129 * cm.c:
4130 * coding.c:
4131 * composite.c:
4132 * data.c:
4133 * dired.c:
4134 * dispnew.c:
4135 * doc.c:
4136 * editfns.c:
4137 * emacs.c:
4138 * eval.c:
4139 * fileio.c:
4140 * filelock.c:
4141 * fns.c:
4142 * font.c:
4143 * fontset.c:
4144 * frame.c:
4145 * ftfont.c:
4146 * ftxfont.c:
4147 * gmalloc.c:
4148 * gtkutil.c:
4149 * image.c:
4150 * indent.c:
4151 * intervals.c:
4152 * keyboard.c:
4153 * keymap.c:
4154 * lread.c:
4155 * marker.c:
4156 * menu.c:
4157 * minibuf.c:
4158 * print.c:
4159 * process.c:
4160 * scroll.c:
4161 * search.c:
4162 * sound.c:
4163 * strftime.c:
4164 * syntax.c:
4165 * sysdep.c:
4166 * term.c:
4167 * terminal.c:
4168 * textprop.c:
4169 * unexalpha.c:
4170 * w32console.c:
4171 * w32fns.c:
4172 * w32font.c:
4173 * w32menu.c:
4174 * w32term.c:
4175 * w32uniscribe.c:
4176 * window.c:
4177 * xdisp.c:
4178 * xfaces.c:
4179 * xfns.c:
4180 * xfont.c:
4181 * xftfont.c:
4182 * xmenu.c:
4183 * xselect.c:
4184 * xterm.c: Likewise.
4185
4186 Remove P_ and __P macros.
4187 * atimer.h: Remove P_ and __P macros.
4188 * buffer.h:
4189 * category.h:
4190 * ccl.h:
4191 * character.h:
4192 * charset.h:
4193 * cm.h:
4194 * coding.h:
4195 * composite.h:
4196 * dispextern.h:
4197 * disptab.h:
4198 * dosfns.h:
4199 * font.h:
4200 * fontset.h:
4201 * frame.h:
4202 * gtkutil.h:
4203 * indent.h:
4204 * intervals.h:
4205 * keyboard.h:
4206 * keymap.h:
4207 * lisp.h:
4208 * macros.h:
4209 * md5.h:
4210 * menu.h:
4211 * msdos.h:
4212 * nsterm.h:
4213 * puresize.h:
4214 * region-cache.h:
4215 * syntax.h:
4216 * syssignal.h:
4217 * systime.h:
4218 * termhooks.h:
4219 * w32font.h:
4220 * w32term.h:
4221 * widget.h:
4222 * window.h:
4223 * xgselect.h:
4224 * xsettings.h:
4225 * xterm.h: Likewise.
4226
4227 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
4228
4229 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
4230
4231 Cleanup old code.
4232 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
4233 * syssignal.h: Remove code for Lynx, not supported anymore.
4234 * vm-limit.c: Remove unused code the depends on emacs not being
4235 defined and NO_LIM_DATA being defined.
4236 * mem-limits.h: Remove dead code.
4237
4238 2010-07-01 Jan Djärv <jan.h.d@swipnet.se>
4239
4240 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
4241
4242 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
4243 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
4244
4245 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
4246 parameters, they are already absolute.
4247
4248 * nsterm.m (x_set_window_size, initFrameFromEmacs):
4249 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
4250
4251 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
4252
4253 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
4254 Update FRAME_TOOLBAR_HEIGHT.
4255
4256 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
4257 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
4258
4259 2010-06-30 Chong Yidong <cyd@stupidchicken.com>
4260
4261 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
4262 check default-frame-alist.
4263
4264 2010-06-30 Andreas Schwab <schwab@linux-m68k.org>
4265
4266 * process.c (create_process): Avoid using invalid file descriptors.
4267
4268 * callproc.c (child_setup): Avoid closing a file descriptor twice.
4269
4270 2010-06-30 Jan Djärv <jan.h.d@swipnet.se>
4271
4272 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
4273 Improve documentation. Return font regardless of use_system_font.
4274 (syms_of_xsettings): Improve documentation for font-use-system-font.
4275
4276 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
4277
4278 * xfaces.c (realize_face): Garbage the frame if a face is removed
4279 (Bug#6593).
4280
4281 2010-07-05 Andreas Schwab <schwab@linux-m68k.org>
4282
4283 * keyboard.c: Remove duplicate <setjmp.h>.
4284 (read_key_sequence): Remove volatile qualifiers.
4285
4286 2010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4287
4288 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
4289 (struct glyph_row): New members left_fringe_offset and
4290 right_fringe_offset.
4291
4292 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
4293 specially.
4294 * w32term.c (w32_draw_fringe_bitmap): Likewise.
4295 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
4296
4297 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
4298 Take account of bitmap offset.
4299 (draw_window_fringes): Take account of window vscroll.
4300 (update_window_fringes): Likewise. Extend top-aligned top indicator
4301 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
4302 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
4303 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
4304
4305 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
4306
4307 * w32fns.c (Qtooltip): Declare.
4308 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
4309
4310 2010-07-03 Jan Djärv <jan.h.d@swipnet.se>
4311
4312 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
4313 grab on just Press (Bug#6499).
4314
4315 2010-07-02 Chong Yidong <cyd@stupidchicken.com>
4316
4317 * frame.c (Qtooltip): New var.
4318 (delete_frame): Use it. Fix faulty if statement. Don't update
4319 mode line for tooltip frames. Suggested by Martin Rudalics.
4320
4321 * xfns.c (x_create_tip_frame):
4322 * w32fns.c (x_create_tip_frame): Use it.
4323
4324 2010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
4325
4326 * xftfont.c (xftfont_open): Check font width one by one also when
4327 spacing is dual.
4328
4329 * ftfont.c (ftfont_open): Ditto.
4330
4331 2010-06-30 Glenn Morris <rgm@gnu.org>
4332
4333 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
4334
4335 * Makefile.in (CANNOT_DUMP): Update for configure name change.
4336
4337 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
4338 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
4339 * s/darwin.h (SYSTEM_MALLOC):
4340 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
4341
4342 2010-06-29 Jan Djärv <jan.h.d@swipnet.se>
4343
4344 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
4345 (ns_get_screen): Don't assign integer to f.
4346 (Fx_display_color_cells): Declarations before statements.
4347
4348 2010-06-28 Jan Djärv <jan.h.d@swipnet.se>
4349
4350 * xfns.c (x_default_font_parameter): Remove got_from_system
4351 (Bug#6526).
4352
4353 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
4354 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
4355 defines based on what configure finds.
4356
4357 * xterm.c (XTflash): Use gtk_widget_get_window.
4358 (xg_scroll_callback): Use gtk_adjustment_get_upper and
4359 gtk_adjustment_get_page_size.
4360 (handle_one_xevent): Use gtk_widget_get_mapped.
4361 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
4362 messages.
4363
4364 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
4365
4366 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
4367 HAVE_GTK_FILE_SELECTION_NEW.
4368
4369 * gtkutil.c (xg_display_open, xg_display_close): Remove
4370 HAVE_GTK_MULTIDISPLAY, it is always defined.
4371 (xg_display_open): Return type is void.
4372 (gtk_widget_set_has_window)
4373 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
4374 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
4375 (gtk_adjustment_set_page_increment)
4376 (gtk_adjustment_get_step_increment): #define these if not found
4377 by configure.
4378 (remove_submenu): New define based on Gtk+ version.
4379 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
4380 gtk_widget_get_window.
4381 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
4382 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
4383 (create_dialog): Use gtk_dialog_get_action_area and
4384 gtk_dialog_get_content_area.
4385 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
4386 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
4387 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
4388 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
4389 g_object_ref and g_object_unref.
4390 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
4391 gtk_widget_get_sensitive.
4392 (xg_update_submenu): Use remove_submenu.
4393 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
4394 properties instead to get old x and y position.
4395 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
4396 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
4397 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
4398 (xg_get_tool_bar_widgets): New function.
4399 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
4400 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
4401 (toolbar_set_orientation): New #define based on if configure
4402 finds gtk_orientable_set_orientation.
4403 (xg_create_tool_bar): Call toolbar_set_orientation.
4404 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
4405 instead of gtk_box_pack_start_defaults.
4406
4407 2010-06-28 Chong Yidong <cyd@stupidchicken.com>
4408
4409 * cmds.c (Fdelete_backward_char): Move into Lisp.
4410
4411 2010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
4412
4413 * s/freebsd.h (BSD4_2): Remove redundant definition.
4414 bsd-common.h defines it already.
4415
4416 2010-06-27 Chong Yidong <cyd@stupidchicken.com>
4417
4418 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
4419 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
4420 tool-bar-mode, which are now set using these X resources at
4421 startup, to determine the defaults (Bug#2249).
4422
4423 * w32fns.c (Fx_create_frame):
4424 * nsfns.m (Fx_create_frame): Likewise.
4425
4426 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
4427
4428 2010-06-24 Juanma Barranquero <lekktu@gmail.com>
4429
4430 * gtkutil.c (xg_update_scrollbar_pos):
4431 Avoid C99 mid-block variable declaration.
4432
4433 2010-06-22 Jan Djärv <jan.h.d@swipnet.se>
4434
4435 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
4436
4437 * gtkutil.h (xg_show_scroll_bar): Remove.
4438
4439 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
4440 if height is less than scroll bar min size.
4441 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
4442
4443 * xfns.c (x_default_font_parameter): Try to open font from system
4444 before using it (bug#6478). Rename got_from_gconf to got_from_system.
4445
4446 2010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
4447
4448 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
4449
4450 2010-06-20 Eli Zaretskii <eliz@gnu.org>
4451
4452 * xdisp.c (try_scrolling): When scroll-conservatively is set to
4453 most-positive-fixnum, be extra accurate when scrolling window
4454 start, to avoid missing the cursor line.
4455
4456 2010-06-19 Eli Zaretskii <eliz@gnu.org>
4457
4458 * xdisp.c (try_scrolling): Compute the limit for searching point
4459 in forward scroll from scroll_max, instead of an arbitrary limit
4460 of 10 screen lines. See
4461 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
4462 and
4463 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
4464 for details.
4465
4466 2010-06-16 Glenn Morris <rgm@gnu.org>
4467
4468 * editfns.c (Fbyte_to_string): Pacify compiler.
4469
4470 2010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
4471
4472 * lread.c (read1): Phase out old-style backquotes a bit more.
4473
4474 2010-06-12 Eli Zaretskii <eliz@gnu.org>
4475
4476 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
4477 bidimirror.h.
4478
4479 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
4480
4481 * bidi.c (bidi_initialize): Remove explicit initialization of
4482 bidi_type_table; include biditype.h instead. Don't support
4483 entries whose second codepoint is zero. Initialize bidi_mirror_table.
4484 (bidi_mirror_char): Use bidi_mirror_table.
4485
4486 * biditype.h: New file.
4487
4488 * bidimirror.h: New file.
4489
4490 * window.c (syms_of_window): Doc fix (bug#6409).
4491
4492 2010-06-12 Romain Francoise <romain@orebokech.com>
4493
4494 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
4495 ediff-hook.
4496
4497 2010-06-10 Glenn Morris <rgm@gnu.org>
4498
4499 * editfns.c (Fbyte_to_string): Pacify compiler.
4500
4501 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
4502
4503 2010-06-26 Andreas Schwab <schwab@linux-m68k.org>
4504
4505 * alloc.c (Fmake_byte_code): Don't access undefined argument
4506 (Bug#6517).
4507
4508 2010-06-25 Chong Yidong <cyd@stupidchicken.com>
4509
4510 * xdisp.c (next_element_from_image): Ensure that after-strings are
4511 read the next time we hit handle_stop (Bug#1336).
4512
4513 2010-06-23 Andreas Schwab <schwab@linux-m68k.org>
4514
4515 * lread.c (read1): Signal error if #s is not followed by paren.
4516
4517 2010-06-19 Chong Yidong <cyd@stupidchicken.com>
4518
4519 * image.c (free_image): Mark frame as garbaged (Bug#6426).
4520
4521 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
4522
4523 2010-06-15 Glenn Morris <rgm@gnu.org>
4524
4525 * editfns.c (Fbyte_to_string): Pacify compiler.
4526
4527 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
4528
4529 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
4530 Check `object's type before accessing its guts.
4531
4532 2010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
4533
4534 * s/usg5-4.h: Fix previous change.
4535 Suggested by Lawrence Mitchell <wence@gmx.li>
4536
4537 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
4538
4539 * minibuf.c (Fall_completions): Add more checks.
4540
4541 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
4542
4543 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
4544
4545 2010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
4546
4547 * lread.c (X_OK): Remove, unused.
4548
4549 * dispnew.c: Remove obsolete comment.
4550
4551 Remove INCLUDED_FCNTL.
4552 * xterm.c (INCLUDED_FCNTL):
4553 * callproc.c (INCLUDED_FCNTL):
4554 * alloc.c (INCLUDED_FCNTL):
4555 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
4556 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
4557
4558 2010-06-07 Martin Rudalics <rudalics@gmx.at>
4559
4560 * window.c (Fselect_window): Move `record_buffer' up to the
4561 beginning of this function, so the buffer gets recorded
4562 even if the selected window does not change.
4563 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
4564
4565 2010-06-07 Juanma Barranquero <lekktu@gmail.com>
4566
4567 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
4568 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
4569
4570 2010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
4571
4572 Remove BSTRING related code, all platforms define it.
4573 * s/usg5-4.h (BSTRING): Remove definition.
4574 * s/template.h (BSTRING):
4575 * s/msdos.h (BSTRING):
4576 * s/ms-w32.h (BSTRING):
4577 * s/hpux10-20.h (BSTRING):
4578 * s/gnu-linux.h (BSTRING):
4579 * s/darwin.h (BSTRING):
4580 * s/cygwin.h (BSTRING):
4581 * s/bsd-common.h (BSTRING):
4582 * s/aix4-2.h (BSTRING): Likewise.
4583 * sysdep.c: Remove code depending on BSTRING not being defined.
4584
4585 2010-06-05 Juanma Barranquero <lekktu@gmail.com>
4586
4587 Remove obsolete macro BASE_LEADING_CODE_P.
4588 * character.h (BASE_LEADING_CODE_P): Remove.
4589 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
4590 * buffer.c (Fset_buffer_multibyte):
4591 * indent.c (scan_for_column, compute_motion):
4592 * insdel.c (count_combining_before, count_combining_after):
4593 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
4594
4595 2010-06-04 Juanma Barranquero <lekktu@gmail.com>
4596
4597 Turn `directory-sep-char' into a noop.
4598
4599 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
4600 (DIRECTORY_SEP): Define unconditionally.
4601
4602 * s/ms-w32.h (DIRECTORY_SEP): Remove.
4603
4604 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
4605 call dostounix_filename directly.
4606
4607 * fileio.c (CORRECT_DIR_SEPS): Remove.
4608 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
4609 (Fsubstitute_in_file_name): Use dostounix_filename instead.
4610 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
4611 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
4612
4613 * w32proc.c (CORRECT_DIR_SEPS): Remove.
4614 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
4615
4616 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
4617
4618 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
4619 (Bug#6346)
4620
4621 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
4622
4623 * ccl.c (Fccl_program_p): Fix typo in docstring.
4624
4625 2010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
4626
4627 Move UNEXEC definition to autoconf.
4628 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
4629 * s/sol2-10.h (UNEXEC):
4630 * s/irix6-5.h (UNEXEC):
4631 * s/hpux10-20.h (UNEXEC):
4632 * s/gnu-linux.h (UNEXEC):
4633 * s/darwin.h (UNEXEC):
4634 * s/cygwin.h (UNEXEC):
4635 * s/bsd-common.h (UNEXEC):
4636 * s/aix4-2.h (UNEXEC):
4637 * m/alpha.h (UNEXEC): Likewise.
4638 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
4639
4640 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
4641
4642 Remove obsolete pre-unicode2 macros.
4643 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
4644 * composite.c (composition_reseat_it):
4645 * data.c (Faset):
4646 * fns.c (Ffillarray):
4647 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
4648 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
4649
4650 2010-06-03 Juri Linkov <juri@jurta.org>
4651
4652 * buffer.c (Fother_buffer): Add CHECK_FRAME.
4653 (Fswitch_to_buffer): Remove unused variable `err'.
4654
4655 2010-06-03 Glenn Morris <rgm@gnu.org>
4656
4657 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
4658
4659 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
4660 now that AH_BOTTOM does it.
4661
4662 * m/hp800.h (HAVE_ALLOCA):
4663 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
4664
4665 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
4666 Remove NOT_C_CODE tests, it is always true now.
4667
4668 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
4669
4670 Fix config.h includes.
4671 * xsettings.c:
4672 * xgselect.c:
4673 * nsterm.m:
4674 * nsselect.m:
4675 * nsimage.m:
4676 * nsfont.m:
4677 * nsfns.m:
4678 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
4679 other files do.
4680
4681 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
4682
4683 * s/sol2-6.h: Remove obsolete comments.
4684
4685 Remove unnecessary alloca.h includes.
4686 * keymap.c: Do not include alloca.h, config.h does that.
4687 * sysdep.c: Likewise. Do not define fwrite, not used.
4688
4689 2010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
4690
4691 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
4692 the HAVE_TERMIO where it belongs (bug#6149).
4693
4694 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
4695
4696 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
4697 of bug#6305).
4698
4699 2010-05-30 Eli Zaretskii <eliz@gnu.org>
4700
4701 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
4702 state is always cached (bug#6306).
4703
4704 2010-05-29 Eli Zaretskii <eliz@gnu.org>
4705
4706 Fix cursor motion in bidi-reordered continued lines.
4707 * xdisp.c (try_cursor_movement): Backup to non-continuation line
4708 only after finding point's row. Fix the logic. Rewrite the loop
4709 over continuation lines in bidi-reordered buffers. Return
4710 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
4711 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
4712
4713 2010-05-28 Michael Albinus <michael.albinus@gmx.de>
4714
4715 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
4716
4717 2010-05-28 Kenichi Handa <handa@m17n.org>
4718
4719 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
4720 Don't sheck SPEC if it is nil.
4721 (font_list_entities): Call font_delete_unmatched if
4722 Vface_ignored_fonts is non-nil. (Bug#6287)
4723
4724 2010-05-28 Glenn Morris <rgm@gnu.org>
4725
4726 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
4727
4728 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
4729
4730 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
4731 whether to trash.
4732 (internal_delete_file, Frename_file): Callers changed.
4733 (delete_by_moving_to_trash): Doc fix.
4734 (Fdelete_directory_internal): Don't move to trash.
4735
4736 * callproc.c (delete_temp_file):
4737 * buffer.c (Fkill_buffer): Callers changed.
4738
4739 * lisp.h: Update prototype.
4740
4741 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
4742
4743 * xdisp.c (redisplay_window): After redisplay, check if point is
4744 still valid before setting it (Bug#6177).
4745
4746 2010-05-27 Glenn Morris <rgm@gnu.org>
4747
4748 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
4749 Convert comments to Makefile format.
4750
4751 * Makefile.in (bootstrap-clean): No more Makefile.c.
4752
4753 2010-05-26 Glenn Morris <rgm@gnu.org>
4754
4755 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
4756 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
4757
4758 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
4759 Remove.
4760 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4761
4762 2010-05-26 Kenichi Handa <handa@m17n.org>
4763
4764 * composite.c (composition_compute_stop_pos): Fix condition for
4765 backward scanning.
4766
4767 2010-05-25 Glenn Morris <rgm@gnu.org>
4768
4769 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
4770 Move before TEMACS_LDFLAGS.
4771 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4772 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4773
4774 * Makefile.in (NOT_C_CODE): No longer define.
4775 (config.h): No longer include.
4776
4777 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
4778 variables it may reference.
4779
4780 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
4781 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
4782
4783 2010-05-25 Kenichi Handa <handa@m17n.org>
4784
4785 * dispextern.h (struct composition_it): New members rule_idx and
4786 charpos.
4787
4788 * xdisp.c (set_iterator_to_next): While scanning backward, assume
4789 that the character positions of IT point the last character of the
4790 current grapheme cluster.
4791 (next_element_from_composition): Don't change character positions
4792 of IT.
4793 (append_composite_glyph): Set glyph->charpos to
4794 it->cmp_it.charpos.
4795
4796 * composite.c (autocmp_chars): Change the first argument to RULE,
4797 and try composition with RULE only.
4798 (composition_compute_stop_pos): Record the index number of the
4799 composition rule in CMP_IT->rule_idx.
4800 (composition_reseat_it): Call autocmp_chars repeatedly until the
4801 correct rule of the composition is found.
4802 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
4803 is at the last character of the current grapheme cluster when
4804 CMP_IT->reversed_p is nonzero.
4805
4806 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
4807
4808 * editfns.c (Fbyte_to_string): New function.
4809
4810 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
4811
4812 * process.c (Fmake_network_process): Set :host to nil if it's not used.
4813 Suggested by Masatake YAMATO <yamato@redhat.com>.
4814
4815 2010-05-23 Eli Zaretskii <eliz@gnu.org>
4816
4817 * dispextern.h (init_iterator): Sync prototype with changed definition.
4818
4819 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
4820
4821 * s/netbsd.h: If terminfo is found, use it in preference to
4822 termcap. (Bug#6190) [Backport from trunk]
4823
4824 2010-05-19 Eli Zaretskii <eliz@gnu.org>
4825
4826 Redesign and reimplement bidi-aware edge positions of glyph rows.
4827
4828 * dispextern.h (struct glyph_row): New members minpos and maxpos.
4829 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
4830 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
4831 and maxpos members instead of start.pos and end.pos, respectively.
4832
4833 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
4834 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
4835 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
4836 (try_window_reusing_current_matrix, try_window_id):
4837 Use ROW->minpos rather than ROW->start.pos.
4838 (init_from_display_pos, init_iterator): Use EMACS_INT for
4839 character and byte positions.
4840 (find_row_edges): Rename from find_row_end. Accept additional
4841 arguments for minimum and maximum buffer positions seen by
4842 display_line for this row. Don't use iterator to find the
4843 position following the maximum one; instead, increment the
4844 position found by display_line directly. Fix logic; eol_pos
4845 should be tested before the rest. Handle the case of characters
4846 delivered from display vector (bug#6036). Fix tests related to
4847 it->method. Handle the truncated_on_right_p rows.
4848 (RECORD_MAX_MIN_POS): New macro.
4849 (display_line): Use it to record the minimum and maximum buffer
4850 positions for glyphs in the row being assembled. Record the
4851 position of the newline that terminates the line. If word wrap is
4852 in effect, restore minimum and maximum positions seen up to the
4853 wrap point, when iterator returns to it.
4854 (try_window_reusing_current_matrix): Give up if in bidi-reordered
4855 row and cursor not already at point. Restore original pre-bidi
4856 code for unidirectional buffers.
4857
4858 * dispnew.c (increment_row_positions, check_matrix_invariants):
4859 Increment and check row->start.pos and row->end.pos, in addition
4860 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
4861
4862 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
4863 Display truncated_on_left_p and truncated_on_right_p flags.
4864 Formatting fixes.
4865 (pmtxrows): Display the ordinal number of each row. Don't display
4866 rows beyond the last one.
4867
4868 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
4869 it is not copied by bidi_copy_it.
4870
4871 2010-05-22 Eli Zaretskii <eliz@gnu.org>
4872
4873 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
4874 (Bug#6237)
4875
4876 2010-05-22 Chong Yidong <cyd@stupidchicken.com>
4877
4878 * image.c (Fimage_flush): Rename from image-refresh.
4879
4880 2010-05-21 Chong Yidong <cyd@stupidchicken.com>
4881
4882 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
4883 just one window.
4884
4885 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
4886 (clear_image_cache): If the number of cached images is unusually
4887 large, decrease the cache eviction delay (Bug#6230).
4888
4889 2010-05-21 Glenn Morris <rgm@gnu.org>
4890
4891 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
4892 Move these rules to ns.mk.
4893 * ns.mk: New file.
4894
4895 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
4896
4897 * Makefile.in (CANNOT_DUMP): New, set by configure.
4898 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
4899
4900 2010-05-20 Juri Linkov <juri@jurta.org>
4901
4902 * fileio.c (Fdelete_file): Change interative spec to use
4903 `read-file-name' like in `find-file-read-args' where the default
4904 value is `default-directory' instead of `buffer-file-name'.
4905 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
4906
4907 2010-05-20 Kevin Ryde <user42@zip.com.au>
4908
4909 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
4910 (Voverriding_terminal_local_map, Vsystem_key_alist)
4911 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
4912
4913 2010-05-20 Glenn Morris <rgm@gnu.org>
4914
4915 * Makefile.in (DEPDIR): New constant.
4916 (DEPFLAGS): Set with configure, not cpp.
4917 (MKDEPDIR): New, set by configure.
4918 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
4919 (clean): Use $DEPDIR.
4920 (deps_frag): Include from configure.
4921 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
4922 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
4923
4924 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
4925 reallocation of the cache. (Bug#6210)
4926
4927 2010-05-19 Glenn Morris <rgm@gnu.org>
4928
4929 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
4930
4931 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
4932 (GNULIB_VAR): Remove.
4933 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
4934
4935 * m/ibms390x.h (LINKER):
4936 * m/macppc.h (LINKER) [GNU_LINUX]:
4937 * s/aix4-2.h (ORDINARY_LINK):
4938 * s/cygwin.h (LINKER):
4939 * s/darwin.h (ORDINARY_LINK):
4940 * s/gnu.h (ORDINARY_LINK):
4941 * s/netbsd.h (LINKER):
4942 * s/usg5-4.h (ORDINARY_LINK):
4943 Move to configure.
4944
4945 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
4946
4947 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
4948
4949 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
4950 prevent stack overflow if number of arguments is too large
4951 (Bug#6214).
4952
4953 2010-05-18 Juanma Barranquero <lekktu@gmail.com>
4954
4955 * charset.c (load_charset_map_from_file): Don't call close after fclose.
4956
4957 2010-05-18 Glenn Morris <rgm@gnu.org>
4958
4959 * s/gnu-linux.h: Combine two conditionals.
4960
4961 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
4962 $(POST_ALLOC_OBJ).
4963
4964 * Makefile.in (RALLOC_OBJ): New, set by configure.
4965 (rallocobj): Replace with the previous variable.
4966 (otherobj): Use $RALLOC_OBJ.
4967
4968 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
4969 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
4970
4971 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
4972 (gmallocobj, vmlimitobj): Replace with previous two variables.
4973 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
4974
4975 2010-05-17 Glenn Morris <rgm@gnu.org>
4976
4977 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
4978 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
4979
4980 2010-05-16 Glenn Morris <rgm@gnu.org>
4981
4982 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
4983
4984 * Makefile.in (clean): Get rid of HAVE_NS conditional.
4985
4986 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
4987 trailing "/".
4988
4989 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
4990 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
4991
4992 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
4993 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
4994 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
4995 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
4996 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
4997
4998 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
4999 Remove ${STARTFLAGS}, nothing ever sets it.
5000
5001 2010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
5002
5003 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
5004
5005 2010-05-16 Glenn Morris <rgm@gnu.org>
5006
5007 * Makefile.in (LIBX_BASE): Always define.
5008
5009 * Makefile.in (LIBX_OTHER): Move out of cpp section.
5010
5011 * Makefile.in (LIBXT): Always define.
5012
5013 2010-05-15 Glenn Morris <rgm@gnu.org>
5014
5015 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
5016
5017 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
5018 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
5019
5020 2010-05-15 Ken Raeburn <raeburn@raeburn.org>
5021
5022 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
5023 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
5024
5025 * emacs.c (main): Initialize initial-environment and
5026 process-environment before generating from env, not after.
5027
5028 Handle --version reasonably in CANNOT_DUMP configuration.
5029 * emacs.c (emacs_version, emacs_copyright): New string variables.
5030 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
5031 (syms_of_emacs): Defvar them, and initialize them from the C
5032 string variables.
5033 (main): If initialization hasn't been done, print initial version
5034 info from the C strings, instead of starting an interactive session.
5035
5036 2010-05-15 Eli Zaretskii <eliz@gnu.org>
5037
5038 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
5039 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
5040 (bidi_paragraph_init): Remove redundant assertion that we are at
5041 the beginning of a line after call to bidi_find_paragraph_start.
5042
5043 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
5044 (syms_of_xdisp): Defsubr it.
5045
5046 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
5047
5048 * Makefile.in: Fix MSDOS-related comments.
5049
5050 2010-05-15 Glenn Morris <rgm@gnu.org>
5051
5052 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
5053 (really-lwlib, really-oldXMenu): Always define.
5054 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
5055
5056 * Makefile.in: Simplify cpp conditional.
5057
5058 * Makefile.in (${ns_appdir}): Simplify using umask.
5059
5060 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
5061
5062 2010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
5063
5064 * eval.c (specbind): Remove left-over duplicate test.
5065 Disallow let-binding frame-local vars. Add comment.
5066
5067 2010-05-14 Eli Zaretskii <eliz@gnu.org>
5068
5069 Make the cache of bidi iterator states dynamically allocated.
5070 * bidi.c (bidi_cache_shrink): New function.
5071 (bidi_init_it): Call it.
5072 (bidi_cache_iterator_state): Enlarge the cache if needed.
5073
5074 * bidi.c (bidi_move_to_visually_next): Rename from
5075 bidi_get_next_char_visually. All callers changed.
5076
5077 2010-05-14 Kenichi Handa <handa@m17n.org>
5078
5079 * dispextern.h (struct composition_it): New member reversed_p.
5080
5081 * composite.c (composition_compute_stop_pos): Search backward if
5082 ENDPOS < CHARPOS.
5083 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
5084 Set CMP_IT->reversed_p.
5085 (composition_update_it): Pay attention to CMP_IT->reversed_p.
5086
5087 * xdisp.c (set_iterator_to_next):
5088 Call composition_compute_stop_pos with negative ENDPOS if we are
5089 scanning backward. Call composition_compute_stop_pos if scan
5090 direction is changed.
5091 (next_element_from_buffer): Call composition_compute_stop_pos with
5092 negative ENDPOS if we are scanning backward.
5093 (next_element_from_composition): Pay attention to
5094 IT->cmp_it.reversed_p.
5095
5096 2010-05-14 Kenichi Handa <handa@m17n.org>
5097
5098 * font.c (font_range): Return the range for the font found at first.
5099
5100 2010-05-14 Glenn Morris <rgm@gnu.org>
5101
5102 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
5103
5104 * Makefile.in (mktime, X11, register): Move undefs to configure.
5105
5106 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
5107 (MSDOS_X_OBJ): New variable.
5108 (MSDOS_SUPPORT_REAL): New constant.
5109 (MSDOS_SUPPORT): Set as a variable, not with cpp.
5110 (obj): Use MSDOS_X_OBJ.
5111 (lisp): Use MSDOS_SUPPORT as a variable.
5112
5113 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
5114 (GPM_MOUSE_SUPPORT): Now it's a constant.
5115 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
5116 not cpp.
5117
5118 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
5119 (ns_appresdir): Remove, unused.
5120
5121 * Makefile.in (SHELL): Move outside cpp section.
5122
5123 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
5124
5125 2010-05-13 Glenn Morris <rgm@gnu.org>
5126
5127 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
5128 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
5129
5130 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
5131 HAVE_WINDOW_SYSTEM must be too.
5132
5133 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
5134 (lisp): Remove WINNT_SUPPORT.
5135
5136 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
5137 Let configure set these variables (to empty) in this case as well.
5138
5139 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
5140 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
5141
5142 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
5143 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
5144 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
5145 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
5146 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
5147 the values output by configure.
5148 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
5149
5150 2010-05-12 Glenn Morris <rgm@gnu.org>
5151
5152 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
5153 (LINKER_WAS_SPECIFIED): Remove.
5154
5155 * Makefile.in (LIB_GCC): Set using configure, not cpp.
5156 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
5157 * m/arm.h (LIB_GCC) [GNU_LINUX]:
5158 * s/cygwin.h (LIB_GCC):
5159 * s/freebsd.h (LIB_GCC):
5160 * s/gnu-linux.h (LIB_GCC):
5161 * s/msdos.h (LIB_GCC):
5162 * s/netbsd.h (LIB_GCC):
5163 Move to configure.
5164
5165 2010-05-11 Karel Klic <kklic@redhat.com>
5166
5167 * ftfont.c: Fix incorrect parentheses of #if condition for
5168 definining M17N_FLT_USE_NEW_FEATURE.
5169
5170 2010-05-11 Glenn Morris <rgm@gnu.org>
5171
5172 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
5173 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
5174
5175 2010-05-10 Eli Zaretskii <eliz@gnu.org>
5176
5177 * xdisp.c (init_iterator): Don't turn on bidi reordering in
5178 unibyte buffers. See
5179 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
5180
5181 2010-05-10 Glenn Morris <rgm@gnu.org>
5182
5183 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
5184 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
5185 (LIBES): Use LIBS_SYSTEM as a variable.
5186 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
5187 * s/aix4-2.h (LIBS_SYSTEM):
5188 * s/freebsd.h (LIBS_SYSTEM):
5189 * s/hpux10-20.h (LIBS_SYSTEM):
5190 * s/sol2-6.h (LIBS_SYSTEM):
5191 * s/unixware.h (LIBS_SYSTEM):
5192 Move to configure.
5193
5194 * s/aix4-2.h (MAIL_USE_LOCKF):
5195 * s/bsd-common.h (MAIL_USE_FLOCK):
5196 * s/darwin.h (MAIL_USE_FLOCK):
5197 * s/gnu-linux.h (MAIL_USE_FLOCK):
5198 * s/irix6-5.h (MAIL_USE_FLOCK):
5199 * s/template.h (MAIL_USE_FLOCK):
5200 Move to configure.
5201
5202 2010-05-08 Chong Yidong <cyd@stupidchicken.com>
5203
5204 * Version 23.2 released.
5205
5206 2010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5207
5208 * composite.c (autocmp_chars): Save point as marker before calling
5209 auto-composition-function (Bug#5984).
5210
5211 * lisp.h (restore_point_unwind): Add prototype.
5212
5213 * fileio.c (restore_point_unwind): Remove static attribute.
5214
5215 2010-05-08 Kenichi Handa <handa@m17n.org>
5216
5217 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
5218 new feature of libotf and m17n-flt.
5219 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
5220 Call OTF_check_features even if no specific feature is given.
5221 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
5222 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
5223 that OUT is NULL. Use OTF_drive_gsub_with_log and
5224 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
5225 OTF_drive_gpos.
5226 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
5227 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
5228 Setup mflt_enable_new_feature and mflt_try_otf.
5229
5230 2010-05-08 Jan Djärv <jan.h.d@swipnet.se>
5231
5232 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
5233
5234 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
5235 box and toolbar (Bug #6139).
5236 (xg_create_tool_bar): Remove comment (Bug #6139).
5237 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
5238 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
5239
5240 2010-05-08 Juanma Barranquero <lekktu@gmail.com>
5241
5242 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
5243 Update dependencies.
5244
5245 2010-05-08 Eli Zaretskii <eliz@gnu.org>
5246
5247 * fringe.c (update_window_fringes): Set up truncation bitmaps for
5248 R2L lines.
5249
5250 2010-05-08 Glenn Morris <rgm@gnu.org>
5251
5252 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
5253
5254 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
5255 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
5256 (termcapobj): Replace with TERMCAP_OBJ.
5257 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
5258 (LIBES): Use LIBS_TERMCAP as a variable.
5259
5260 * s/freebsd.h (osreldate.h): No longer include, since this file
5261 does not use __FreeBSD_version any more.
5262
5263 * s/aix4-2.h (TERMINFO):
5264 * s/cygwin.h (TERMINFO):
5265 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
5266 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
5267 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
5268 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
5269 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
5270 * s/irix6-5.h (TERMINFO):
5271 * s/netbsd.h (LIBS_TERMCAP):
5272 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
5273 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
5274 * s/usg5-4.h (TERMINFO):
5275 Move to configure.
5276
5277 2010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
5278
5279 * eval.c (unbind_to): Don't unbind a local binding into the global
5280 binding when the local binding disappeared. Inversely, don't unbind
5281 a global binding into a newly created local binding.
5282 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
5283 can specify the frame to use, when applicable. Adjust callers.
5284
5285 2010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
5286 Stefan Monnier <monnier@iro.umontreal.ca>
5287
5288 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
5289
5290 2010-05-07 Eli Zaretskii <eliz@gnu.org>
5291
5292 * w32fns.c: Include w32.h.
5293 (Fw32_shell_execute): Decode the error message before passing it
5294 to `error'. (Bug#6126)
5295
5296 * msdos.c (dos_set_window_size):
5297 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
5298 instead of `XSYMBOL (foo)->value'.
5299
5300 2010-05-07 Eli Zaretskii <eliz@gnu.org>
5301
5302 Fix the MS-DOS build, broken by autoconfiscation.
5303
5304 * Makefile.in: Don't use Make-style comments past the "start of
5305 cpp stuff" line.
5306 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
5307
5308 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
5309 edited directly by msdos/sed1v2.inp).
5310
5311 2010-05-07 Glenn Morris <rgm@gnu.org>
5312
5313 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
5314 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
5315 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
5316 move out of cpp section.
5317 * s/freebsd.h (LD_SWITCH_SYSTEM):
5318 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
5319 * s/netbsd.h (LD_SWITCH_SYSTEM):
5320 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
5321
5322 2010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
5323
5324 Define LIB_STANDARD and START_FILES using autoconf.
5325 * s/usg5-4.h (LIB_STANDARD):
5326 * s/netbsd.h (START_FILES):
5327 * s/irix6-5.h (LIB_STANDARD):
5328 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
5329 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
5330 * s/freebsd.h (START_FILES):
5331 * s/darwin.h (START_FILES):
5332 * s/cygwin.h (START_FILES):
5333 * s/aix4-2.h (LIB_STANDARD):
5334 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
5335 * Makefile.in (STARTFILES): Rename to START_FILES, define using
5336 autoconf, not cpp.
5337
5338 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
5339
5340 Remove NEED_BSDTTY and NEED_UNISTD_H.
5341 * s/hpux10-20.h (NEED_BSDTTY): Remove.
5342 * s/aix4-2.h (NEED_UNISTD_H): Remove.
5343 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
5344 <sys/ptyio.h> and <unistd.h>.
5345
5346 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
5347
5348 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
5349 * s/gnu.h (START_FILES): Remove empty definition.
5350
5351 2010-05-06 Jan Djärv <jan.h.d@swipnet.se>
5352
5353 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
5354
5355 2010-05-06 Glenn Morris <rgm@gnu.org>
5356
5357 * Makefile.in (CPP, LN_S): Remove unused variables.
5358
5359 2010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
5360
5361 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
5362
5363 2010-05-05 Lawrence Mitchell <wence@gmx.li>
5364
5365 * m/sparc.h: Fix typo in earlier change.
5366
5367 2010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
5368
5369 Misc tweaks.
5370 * eval.c (Fdefvaralias): Remove unintended nested if.
5371 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
5372
5373 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
5374
5375 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
5376
5377 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
5378
5379 Remove BSD_PGRPS.
5380 * s/bsd-common.h (BSD_PGRPS): Remove undef.
5381 * s/gnu-linux.h (BSD_PGRPS): Remove.
5382 * term.c (dissociate_if_controlling_tty):
5383 * sysdep.c (narrow_foreground_group, widen_foreground_group)
5384 (init_sys_modes, reset_sys_modes):
5385 * emacs.c (main):
5386 * callproc.c (Fcall_process, child_setup): Remove code depending
5387 on BSD_PGRPS.
5388
5389 Remove POSIX_SIGNALS.
5390 * s/usg5-4.h (POSIX_SIGNALS):
5391 * s/netbsd.h (POSIX_SIGNALS):
5392 * s/msdos.h (POSIX_SIGNALS):
5393 * s/ms-w32.h (POSIX_SIGNALS):
5394 * s/hpux11.h (POSIX_SIGNALS):
5395 * s/gnu.h (POSIX_SIGNALS):
5396 * s/gnu-linux.h (POSIX_SIGNALS):
5397 * s/freebsd.h (POSIX_SIGNALS):
5398 * s/darwin.h (POSIX_SIGNALS):
5399 * s/cygwin.h (POSIX_SIGNALS):
5400 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
5401 * s/unixware.h:
5402 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
5403 * process.c (create_process):
5404 * syssignal.h:
5405 * sysdep.c (wait_for_termination, init_signals):
5406 * process.c (create_process):
5407 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
5408 remove all code that assumes the contrary.
5409
5410 2010-05-04 Glenn Morris <rgm@gnu.org>
5411
5412 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
5413 variable.
5414 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
5415 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
5416 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
5417 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
5418 LD_SWITCH_SYSTEM_tmp.
5419 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
5420 New variables, set by configure.
5421
5422 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
5423 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
5424 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
5425 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
5426 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
5427
5428 * s/aix4-2.h (C_SWITCH_SYSTEM):
5429 * m/alpha.h (C_SWITCH_MACHINE):
5430 Move to configure.in.
5431 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
5432 New variables, set by configure.
5433 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
5434 $c_switch_machine and $c_switch_system.
5435
5436 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
5437
5438 * s/hpux10-20.h (LIB_STANDARD): New definition.
5439 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
5440 on it, not used anymore.
5441
5442 2010-05-03 Chong Yidong <cyd@stupidchicken.com>
5443
5444 * eval.c (internal_condition_case_n): Rename from
5445 internal_condition_case_2.
5446 (internal_condition_case_2): New function.
5447
5448 * xdisp.c (safe_call): Use internal_condition_case_n.
5449
5450 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
5451 (internal_delete_file, Frename_file): Callers changed.
5452
5453 * buffer.c (Fkill_buffer):
5454 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
5455
5456 * lisp.h: Update prototypes.
5457
5458 2010-05-03 Glenn Morris <rgm@gnu.org>
5459
5460 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
5461 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
5462 (LIBXT): Set with configure, not cpp.
5463 (LIBX): Remove.
5464 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
5465
5466 2010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
5467
5468 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
5469 The FreeBSD is not needed, the default works, Solaris version is
5470 not needed, and the remaining case is not supported by configure.
5471
5472 2010-05-02 Jan Djärv <jan.h.d@swipnet.se>
5473
5474 * xsmfns.c (CHDIR_OPT): New define.
5475 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
5476 restarting emacs.
5477
5478 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
5479 shut_down_emacs.
5480
5481 * emacs.c (USAGE1): Mention --chdir.
5482 (main): Handle --chdir.
5483 (standard_args): Add --chdir.
5484 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
5485 #5552).
5486
5487 2010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
5488
5489 Remove LD_SWITCH_MACHINE.
5490 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
5491 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
5492
5493 Clean up IRIX code.
5494 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
5495 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
5496
5497 Clean up AIX code.
5498 * m/ibmrs6000.inp: Remove file, unused.
5499 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
5500 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
5501 definition ...
5502 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
5503
5504 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
5505 unused.
5506
5507 2010-05-01 Eli Zaretskii <eliz@gnu.org>
5508
5509 Emulate POSIX_SIGNALS on MS-Windows.
5510
5511 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
5512 (SIG_SETMASK, SIG_UNBLOCK): Define.
5513
5514 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
5515 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
5516 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
5517
5518 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
5519 New stubs.
5520
5521 Miscellaneous fixes of bidi display.
5522
5523 * xdisp.c (find_row_end): New function, refactored from display_line.
5524 (display_line): Use it.
5525 (extend_face_to_end_of_line): In almost-filled rows, extend only
5526 if the row is R2L and not continued.
5527 (display_line): Fix prepending of truncation glyphs to R2L rows.
5528 Preserve overlay and string info in row->end.
5529 (insert_left_trunc_glyphs): Support addition of left truncation
5530 glyphs to R2L rows.
5531 (set_cursor_from_row): Don't place cursor on the vertical border
5532 glyph between adjacent windows. Fix a crash when a display string
5533 is continued to the next line. Don't return zero if cursor was
5534 found by `cursor' property of a display string.
5535 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
5536 test for that explicitly.
5537
5538 2010-05-01 Glenn Morris <rgm@gnu.org>
5539
5540 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
5541 for clarity.
5542 (OTHER_OBJ): Remove.
5543 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
5544 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
5545
5546 2010-05-01 Karel Klíč <kklic@redhat.com>
5547
5548 * fileio.c (Ffile_selinux_context): Context functions may return null.
5549
5550 2010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
5551
5552 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
5553
5554 2010-04-30 Glenn Morris <rgm@gnu.org>
5555
5556 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
5557 (OTHER_OBJ): Define as a separate variable, for clarity.
5558
5559 2010-04-30 Jan Djärv <jan.h.d@swipnet.se>
5560
5561 * xsettings.c: include limits.h and update file comment.
5562
5563 2010-04-30 Glenn Morris <rgm@gnu.org>
5564
5565 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
5566 Set with configure, not cpp.
5567 (LIBW): Remove, replace with $TOOLKIT_LIBW.
5568
5569 * Makefile.in (mallocobj): Remove.
5570 (otherobj): Simplify using @OTHER_OBJ@.
5571
5572 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
5573 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
5574 Don't bother making nsgui.h dependency platform-specific.
5575
5576 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
5577
5578 2010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
5579
5580 * process.c (read_process_output, exec_sentinel): Don't burp if the
5581 sentinel/filter kills the current buffer (bug#6060).
5582
5583 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
5584 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
5585 Remove unused var `args'.
5586 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
5587 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
5588 * doc.c (store_function_docstring): Use XSETCAR.
5589
5590 2010-04-28 Glenn Morris <rgm@gnu.org>
5591
5592 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
5593 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
5594
5595 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
5596
5597 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
5598 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
5599
5600 * Makefile.in (FONT_OBJ): New, set by configure.
5601 (FONT_DRIVERS): Use $FONT_OBJ.
5602
5603 * Makefile.in (LIBXMU): Set with configure, not cpp.
5604 * s/aix4-2.h (LIBXMU):
5605 * s/hpux10-20.h (LIBXMU):
5606 Remove definition, now set in configure.
5607
5608 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
5609
5610 * m/amdx86-64.h [i386]: Move this test to configure.in.
5611
5612 2010-04-27 Glenn Morris <rgm@gnu.org>
5613
5614 * Makefile.in (LIBXTR6): Set with configure, not cpp.
5615 * s/unixware.h (NEED_LIBW): Remove definition.
5616
5617 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
5618 (TOOLKIT_LIBW): New, set by configure.
5619 (@X_TOOLKIT_TYPE@): No longer define it.
5620
5621 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
5622 (MOTIF_LIBW): Set with configure, not cpp.
5623 * s/aix4-2.h (LIB_MOTIF):
5624 * s/gnu-linux.h (LIB_MOTIF):
5625 * s/unixware.h (LIB_MOTIF): Move to configure.in.
5626
5627 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
5628
5629 Reduce CPP usage.
5630 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
5631 (obj): Use autoconf for unexec instead of cpp.
5632 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
5633 definitions and undefs. Inline definitions in the only user.
5634 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
5635
5636 2010-04-27 Glenn Morris <rgm@gnu.org>
5637
5638 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
5639 since the defaults (set by the system file) are fine in most cases.
5640 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
5641 * m/ibms390x.h (START_FILES, LIB_STANDARD):
5642 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
5643 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
5644 Remove definitions, since they are set correctly in s/gnu-linux.h.
5645 * s/freebsd.h (START_FILES, LIB_STANDARD):
5646 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
5647 * s/hpux10-20.h (START_FILES):
5648 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
5649 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
5650
5651 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
5652 (MOTIF_LIBW): Use $LIBXP.
5653 (otherobj): Use $WIDGET_OBJ.
5654
5655 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
5656
5657 * Makefile.in (LIBS_MACHINE): Remove, unused.
5658
5659 Use autoconf instead of cpp for LIB_MATH.
5660 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
5661 * s/cygwin.h (LIB_MATH): Likewise.
5662 * Makefile.in (LIB_MATH): Do not define with cpp.
5663 (LIBES): Use autoconf for LIB_MATH.
5664
5665 2010-04-26 Kenichi Handa <handa@m17n.org>
5666
5667 * composite.c (Ffind_composition_internal): Fix the return value
5668 for an automatic composition.
5669
5670 2010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
5671
5672 Remove all NO_ARG_ARRAY uses.
5673 * fns.c (concat2, concat3, nconc2):
5674 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
5675 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
5676 * m/xtensa.h (NO_ARG_ARRAY):
5677 * m/template.h (NO_ARG_ARRAY):
5678 * m/sparc.h (NO_ARG_ARRAY):
5679 * m/sh3.h (NO_ARG_ARRAY):
5680 * m/mips.h (NO_ARG_ARRAY):
5681 * m/macppc.h (NO_ARG_ARRAY):
5682 * m/iris4d.h (NO_ARG_ARRAY):
5683 * m/intel386.h (NO_ARG_ARRAY):
5684 * m/ibms390x.h (NO_ARG_ARRAY):
5685 * m/ibms390.h (NO_ARG_ARRAY):
5686 * m/ibmrs6000.h (NO_ARG_ARRAY):
5687 * m/ia64.h (NO_ARG_ARRAY):
5688 * m/hp800.h (NO_ARG_ARRAY):
5689 * m/arm.h (NO_ARG_ARRAY):
5690 * m/amdx86-64.h (NO_ARG_ARRAY):
5691 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
5692
5693 2010-04-25 Eli Zaretskii <eliz@gnu.org>
5694
5695 * xdisp.c (display_line): Don't assume 2nd call to
5696 get_next_display_element cannot return zero. (Bug#6030)
5697 (iterate_out_of_display_property): New function, body from pop_it.
5698 (pop_it): Use it.
5699
5700 2010-04-24 Glenn Morris <rgm@gnu.org>
5701
5702 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
5703 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
5704 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
5705 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
5706
5707 2010-04-24 Eli Zaretskii <eliz@gnu.org>
5708
5709 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
5710 use `get_next_display_element' and `set_iterator_to_next' to
5711 advance to the next character, when looking for the character that
5712 begins the next row.
5713
5714 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
5715 definition of "struct Lisp_Symbol".
5716
5717 2010-04-24 Glenn Morris <rgm@gnu.org>
5718
5719 * Makefile.in (CRT_DIR): New variable, set by configure.
5720 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
5721 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
5722
5723 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
5724
5725 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
5726
5727 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
5728
5729 Remove redundant flags.
5730 * s/freebsd.h (C_SWITCH_SYSTEM):
5731 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
5732 * s/netbsd.h (C_SWITCH_SYSTEM):
5733 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
5734 of these.
5735
5736 Simplify m/intel386.h.
5737 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
5738 user: ecrt0.c.
5739 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
5740 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
5741 the only user: s/unixware.h.
5742 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
5743 from m/intel386.h.
5744 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
5745 moved here from m/intel386.h.
5746
5747 * m/mips.h: Remove #if 0 code.
5748
5749 2010-04-23 Eli Zaretskii <eliz@gnu.org>
5750
5751 Fix display of composed characters from L2R scripts in bidi buffers.
5752 * xdisp.c (set_iterator_to_next, next_element_from_composition):
5753 After advancing IT past the composition, resync the bidi iterator
5754 with IT's position. (Bug#5977)
5755
5756 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
5757
5758 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
5759 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
5760
5761 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
5762
5763 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
5764
5765 2010-04-23 Eli Zaretskii <eliz@gnu.org>
5766
5767 Support `display' text properties and overlay strings in bidi buffers.
5768 * xdisp.c (pop_it): When the stack is popped after displaying
5769 from a string, bidi-iterate to exit from the text portion covered
5770 by the `display' property or overlay. (Bug#5988, bug#5920)
5771
5772 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
5773
5774 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
5775 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
5776
5777 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
5778 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
5779
5780 Simplify STARTFILES definition.
5781 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
5782 relying on Makefile.in to define it.
5783 * s/cygwin.h (START_FILES): Likewise.
5784 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
5785
5786 Clean up Solaris code.
5787 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
5788 (LIB_MOTIF): Remove, configure takes care of this.
5789 (NOT_USING_MOTIF): Remove, unused.
5790 * xrdb.c: Remove #if 0-ed #include.
5791 (SYSV): Remove conditional for old SysV.
5792 * sysdep.c (closedir): Remove conditional code for Solaris,
5793 Solaris has closedir.
5794
5795 2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
5796
5797 * xsettings.c (read_and_apply_settings): Check if current_font is
5798 NULL before strcmp (Bug#6001).
5799
5800 2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
5801
5802 Clean up HP-UX files.
5803 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
5804 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
5805 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
5806 * s/hpux10-20.h: ... to the only user, here.
5807
5808 2010-04-21 Eli Zaretskii <eliz@gnu.org>
5809
5810 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
5811 use buffer-local values of paragraph-start and paragraph-separate.
5812 <paragraph_start_re, paragraph_separate_re>: Rename from
5813 fallback_paragraph_start_re and fallback_paragraph_separate_re.
5814 (Bug#5992)
5815
5816 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
5817
5818 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
5819 current_tool_bar_style are new.
5820 (store_config_changed_event): Rename from store_font_changed_event.
5821 (XSETTINGS_TOOL_BAR_STYLE): New define.
5822 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
5823 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
5824 HAVE_XFT.
5825 (something_changedCB): store_font_changed_event is now
5826 store_config_changed_event.
5827 (parse_settings): Rename from parse_xft_settings. Read
5828 non-xft xsettings outside #ifdef HAVE_XFT.
5829 (read_settings): Renamed from read_xft_settings.
5830 (apply_xft_settings): Take current settings as parameter. Do not
5831 call read_(xft)_settings.
5832 (read_and_apply_settings): New function.
5833 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
5834 read_and_apply_settings if there are settings to be read.
5835 (init_xsettings): Renamed from init_xfd_settings.
5836 Call read_and_apply_settings unconditionally.
5837 (xsettings_initialize): Call init_xsettings.
5838 (Ftool_bar_get_system_style): New function.
5839 (syms_of_xsettings): Define Qmonospace_font_name and
5840 Qtool_bar_style. Initialize current_tool_bar_style to nil.
5841 defsubr Stool_bar_get_system_style. Fprovide on
5842 dynamic-setting.
5843 Move misplaced HAVE_GCONF
5844
5845 * xsettings.h (Ftool_bar_get_system_style): Declare.
5846
5847 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
5848 Qtext, Qboth, Qboth_horiz are new.
5849 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
5850 Vtool_bar_style, tool_bar_max_label_size.
5851
5852 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
5853
5854 * keyboard.c: QClabel is new.
5855 (parse_tool_bar_item): Take out QClabel from tool bar items.
5856 Try to construct a label if ther is no QClabel.
5857 (syms_of_keyboard): Intern :label as QClabel.
5858
5859 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
5860 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
5861 New.
5862
5863 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
5864 dynamic-setting.el.
5865
5866 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
5867 (xg_make_tool_item, xg_show_toolbar_item): New function.
5868 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
5869 Call xg_make_tool_item to make a tool bar item.
5870 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
5871
5872 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
5873 into account for toolbars.
5874
5875 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
5876
5877 * data.c (make_blv): Declarations before code (Bug#5993).
5878
5879 2010-04-21 Glenn Morris <rgm@gnu.org>
5880
5881 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
5882 Define using autoconf, not cpp.
5883 (LIBXSM): New variable, set by autoconf.
5884 (LIBXT): Use $LIBXSM.
5885
5886 2010-04-21 Dan Nicolaescu <local_user@dannlt>
5887
5888 Remove NOMULTIPLEJOBS, unused.
5889 * s/template.h (NOMULTIPLEJOBS):
5890 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
5891
5892 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
5893 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
5894 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
5895 detects -znocombreloc and passes it to the linker
5896 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
5897
5898 2010-04-21 Glenn Morris <rgm@gnu.org>
5899
5900 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
5901
5902 2010-04-21 Karel Klíč <kklic@redhat.com>
5903
5904 * Makefile.in (LIBSELINUX_LIBS): New.
5905 (LIBES): Add $LIBSELINUX_LIBS.
5906 * eval.c, lisp.h (call7): New function.
5907 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
5908 (Ffile_selinux_context, Fset_file_selinux_context):
5909 New functions.
5910 (Fcopy_file): New parameter preserve-selinux-context.
5911 (Frename_file): Preserve selinux context when renaming by copy-file.
5912
5913 2010-04-21 Juanma Barranquero <lekktu@gmail.com>
5914 Eli Zaretskii <eliz@gnu.org>
5915
5916 Don't depend on cm.c or termcap.c on Windows, use stubs.
5917 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
5918 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
5919 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
5920 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
5921 (sys_tputs, sys_tgetstr): New stubs.
5922 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
5923 (tputs, tgetstr): New; define to sys_*.
5924
5925 2010-04-20 Juanma Barranquero <lekktu@gmail.com>
5926
5927 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
5928
5929 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
5930
5931 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
5932 Just signal a warning rather than an error when inside a let.
5933 (Fmake_variable_frame_local): Add the same test.
5934
5935 * font.c (syms_of_font): Make the style table vars read-only.
5936
5937 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
5938 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
5939
5940 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
5941
5942 2010-04-20 Eli Zaretskii <eliz@gnu.org>
5943
5944 Fix R2L paragraph display on TTY.
5945
5946 * xdisp.c (unproduce_glyphs): New function.
5947 (display_line): Use it when produced glyphs are discarded from R2L
5948 glyph rows.
5949 (append_composite_glyph): In R2L rows, prepend the glyph rather
5950 than appending it.
5951
5952 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
5953 rather than append it. Set up the resolved_level and bidi_type
5954 attributes of the appended glyph.
5955 (produce_special_glyphs): Mirror the backslash continuation
5956 character in R2L lines.
5957
5958 Implement display of R2L paragraphs in GUI sessions.
5959
5960 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
5961 append_stretch_glyph.
5962 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
5963 off-by-one error in computing x at end of text in the row.
5964 (append_stretch_glyph): In reversed row, prepend the glyph rather
5965 than append it. Set resolved_level and bidi_type of the glyph.
5966 (extend_face_to_end_of_line): If the row is reversed, prepend a
5967 stretch glyph whose width is such that the rightmost glyph will be
5968 drawn at the right margin of the window. Fix off-by-one error on
5969 TTY frames in testing whether a line needs face extension. Fix
5970 face extension at ZV. If this is the last glyph row, use
5971 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
5972 region face.
5973 (set_cursor_from_row, display_line): Use
5974 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
5975 row->continuation_lines_width.
5976 (next_element_from_buffer): Don't call bidi_paragraph_init if we
5977 are at ZV. Fixes a crash when reseated to ZV by
5978 try_window_reusing_current_matrix.
5979 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
5980 which happens with R2L glyph rows. Fixes a crash when inserting a
5981 character at end of an R2L line.
5982 (set_cursor_from_row): Don't be fooled by truncated rows: don't
5983 treat them as having zero-width characters. Improve comments.
5984 Don't reverse pos_before and pos_after for reversed glyph rows.
5985 Set cursor.x to negative value when the cursor might be on the
5986 left fringe.
5987 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
5988 left fringe, not the right one.
5989 (notice_overwritten_cursor, draw_phys_cursor_glyph)
5990 (erase_phys_cursor): For reversed cursor_row, support cursor on
5991 the left fringe.
5992
5993 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
5994 of continuation indicators on the fringes.
5995 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
5996 left fringe.
5997
5998 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
5999 draw cursor on the left fringe.
6000
6001 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
6002 cursor on the left fringe.
6003
6004 * dispnew.c (update_text_area): Handle reversed desired rows when
6005 the cursor is on the left fringe.
6006 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
6007 below, not by 0, for when the cursor is on the left fringe.
6008
6009 2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
6010
6011 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
6012 widget is a scrollbar.
6013
6014 2010-04-20 Kenichi Handa <handa@m17n.org>
6015
6016 * charset.c (char_charset): Consider Vcharset_non_preferred_head
6017 only when the arg CHARSET_LIST is nil.
6018
6019 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
6020
6021 Make variable forwarding explicit rather the using special values.
6022 Basically, this makes the structure of buffer-local values and object
6023 forwarding explicit in the type of Lisp_Symbols rather than use
6024 special Lisp_Objects for that. This tends to lead to slightly more
6025 verbose code, but is more C-like, simpler, and makes it easier to make
6026 sure we handled all cases, among other things by letting the compiler
6027 help us check it.
6028 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
6029 Removing forwarding objects.
6030 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
6031 (struct Lisp_Symbol): Make the various forms of variable-forwarding
6032 explicit rather than hiding them inside Lisp_Object "values".
6033 (XFWDTYPE): New macro.
6034 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
6035 (XBUFFER_LOCAL_VALUE): Remove.
6036 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
6037 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
6038 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
6039 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
6040 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
6041 Remove the Lisp_Misc_* header.
6042 (struct Lisp_Buffer_Local_Value): Redefine.
6043 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
6044 (struct Lisp_Misc_Any): Add filler to get the right size.
6045 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
6046 Lisp_Intfwd.
6047 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
6048 (DEFVAR_KBOARD): Allocate a forwarding object.
6049 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
6050 (let_shadows_global_binding_p): New function.
6051 (union Lisp_Val_Fwd): New type.
6052 (make_blv): New function.
6053 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
6054 (store_symval_forwarding, swap_in_global_binding, Fboundp)
6055 (swap_in_symval_forwarding, find_symbol_value, Fset)
6056 (let_shadows_buffer_binding_p, set_internal, default_value)
6057 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
6058 (Fkill_local_variable, Fmake_variable_frame_local)
6059 (Flocal_variable_p, Flocal_variable_if_set_p)
6060 (Fvariable_binding_locus):
6061 * xdisp.c (select_frame_for_redisplay):
6062 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
6063 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
6064 * frame.c (store_frame_param):
6065 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
6066 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
6067 value structure.
6068 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
6069 (clone_per_buffer_values): Only adjust markers into the current buffer.
6070 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
6071 (Fbuffer_local_value, set_buffer_internal_1)
6072 (swap_out_buffer_local_variables):
6073 Adapt to the new symbol value structure.
6074 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
6075 (defvar_per_buffer): Take a new arg for the fwd object.
6076 (buffer_lisp_local_variables): Return a proper alist (different fix
6077 for bug#4138).
6078 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
6079 (Fgarbage_collect): Don't handle buffer_defaults specially.
6080 (mark_object): Handle new symbol value structure rather than the old
6081 special Lisp_Misc_* objects.
6082 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
6083 * term.c (set_tty_color_mode):
6084 * bidi.c (bidi_initialize): Don't access the ->value field directly.
6085 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
6086 a buffer_local_flags.
6087 * print.c (print_object): Get rid of impossible forwarding objects.
6088
6089 2010-04-19 Eli Zaretskii <eliz@gnu.org>
6090
6091 * bidi.c (bidi_get_type, bidi_get_category)
6092 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
6093 (bidi_type_of_next_char, bidi_level_of_next_char):
6094 Declare static. Use `INLINE' rather than `inline'.
6095
6096 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
6097
6098 * dired.c (Ffile_attributes): Fix typo in docstring.
6099
6100 2010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6101
6102 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
6103 NSInteger (Bug#5811).
6104
6105 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6106
6107 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
6108 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
6109
6110 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6111
6112 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
6113
6114 2010-04-19 Chong Yidong <cyd@stupidchicken.com>
6115
6116 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
6117 terminal frames (Bug#5837).
6118
6119 2010-04-19 Eli Zaretskii <eliz@gnu.org>
6120
6121 * .gdbinit (xsubchartable): New command.
6122
6123 2010-04-19 Eli Zaretskii <eliz@gnu.org>
6124
6125 * xdisp.c (display_line): Don't write beyond the last glyph row in
6126 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
6127 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
6128 and
6129 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
6130
6131 2010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
6132
6133 * alloc.c (Fpurecopy): Hash-cons if requested.
6134 (syms_of_alloc): Update purify-flag docstring.
6135
6136 2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
6137
6138 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
6139 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
6140
6141 2010-04-17 Eli Zaretskii <eliz@gnu.org>
6142
6143 Fix a crash when an NSM character is inserted at BEGV.
6144
6145 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
6146 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
6147 NEUTRAL_B or UNKNOWN_BT.
6148
6149 2010-04-16 Eli Zaretskii <eliz@gnu.org>
6150
6151 * xdisp.c (set_cursor_from_row): Don't consider possibility of
6152 other rows with cursor unless they are different from this row and
6153 this row is part of a continued line. (Bug#5943)
6154
6155 2010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
6156
6157 * s/freebsd.h: Restore osreldate.h include.
6158 Suggested by Naohiro Aota.
6159
6160 2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
6161
6162 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
6163
6164 2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
6165
6166 * s/cygwin.h: Avoid linking against static libgcc.
6167
6168 2010-04-15 Juri Linkov <juri@jurta.org>
6169
6170 * window.c: Add Qscroll_command.
6171 Remove Vscroll_preserve_screen_position_commands.
6172 (window_scroll_pixel_based, window_scroll_line_based): Check the
6173 `scroll-command' property on the last command instead of searching
6174 the last command in Vscroll_preserve_screen_position_commands.
6175 (syms_of_window): Initialize and staticpro `Qscroll_command'.
6176 Put Qscroll_command property on Qscroll_up and Qscroll_down.
6177 (scroll-preserve-screen-position): Doc fix.
6178 (Vscroll_preserve_screen_position_commands): Remove variable.
6179
6180 2010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
6181
6182 * xdisp.c (message): Do not use NO_ARG_ARRAY.
6183
6184 2010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
6185
6186 Reduce cpp use in Makefile.in.
6187 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
6188 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
6189 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
6190 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
6191 (CRT0_COMPILE): Remove, inline it in the only user.
6192
6193 2010-04-14 Juri Linkov <juri@jurta.org>
6194
6195 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
6196 `scroll-up-command' and `M-v' from `scroll-down' to
6197 `scroll-down-command'.
6198
6199 2010-04-14 Juri Linkov <juri@jurta.org>
6200
6201 * window.c (Vscroll_preserve_screen_position_commands): New variable
6202 with the default value as the list of Qscroll_down and Qscroll_up.
6203 (window_scroll_pixel_based, window_scroll_line_based): Search the
6204 last command in the list Vscroll_preserve_screen_position_commands
6205 instead of comparing with Qscroll_up and Qscroll_down.
6206
6207 2010-04-13 Jan Djärv <jan.h.d@swipnet.se>
6208
6209 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
6210 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
6211 does that.
6212
6213 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
6214 to zero.
6215
6216 2010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
6217
6218 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
6219
6220 Try to solve the problem of spurious EOF chars in long lines of text
6221 sent to interactive subprocesses.
6222 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
6223 (system_process_attributes): Remove unused var `ttotal'.
6224 * process.c (send_process): Don't bother breaking long line with EOF
6225 chars when talking to ttys any more.
6226 (wait_reading_process_output): Output a warning when called in such
6227 a way that it could block without being interruptible.
6228
6229 Try to detect file modification within the same second.
6230 * buffer.h (struct buffer): New field modtime_size.
6231 * buffer.c (reset_buffer): Initialize it.
6232 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
6233 (Fverify_visited_file_modtime): Check it.
6234 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
6235 (Fset_visited_file_modtime): Set (or clear) it.
6236
6237 2010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
6238
6239 * process.c (status_notify): Remove unused var `ro'.
6240
6241 2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
6242
6243 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
6244 more than one visual (Bug#5938).
6245
6246 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
6247
6248 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
6249 Undefine.
6250
6251 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
6252
6253 Remove C_SWITCH_SYSTEM_TEMACS.
6254 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
6255 (malloc, realloc, free): Use emacs, not temacs for conditional
6256 definition.
6257
6258 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
6259 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
6260
6261 Use autoconf, not cpp for some variables.
6262 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
6263 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
6264 (ALL_CFLAGS): Use them as make variables.
6265 (really-lwlib, really-oldXMenu): Do not pass them.
6266
6267 2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
6268
6269 * xmenu.c (apply_systemfont_to_dialog): New.
6270 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
6271
6272 2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
6273
6274 * process.c (exec_sentinel): Preserve current-buffer.
6275
6276 * process.c (read_process_output): Move the save-current-buffer to
6277 apply to both the filter and the non-filter branches.
6278
6279 2010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
6280
6281 * s/msdos.h (UNEXEC): New definition.
6282
6283 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6284
6285 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
6286 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
6287
6288 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
6289 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
6290 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
6291 TRY_WINDOW_CHECK_MARGINS.
6292
6293 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
6294 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
6295 width only when it is for padding.
6296
6297 2010-04-09 Jan Djärv <jan.h.d@swipnet.se>
6298
6299 * xfns.c (Fx_show_tip): Call try_window in a loop until
6300 fonts_changed_p is zero (Bug#2423).
6301
6302 2010-04-08 Eli Zaretskii <eliz@gnu.org>
6303
6304 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
6305 the end of TEXT_AREA. (Bug#5856)
6306
6307 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
6308
6309 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
6310 HAVE_GCONF.
6311
6312 2010-04-08 Eli Zaretskii <eliz@gnu.org>
6313
6314 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
6315 prev.orig_type, for resolving type of NSM. (Bug#5858)
6316
6317 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
6318
6319 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
6320 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
6321 in current_font.
6322 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
6323 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
6324 New functions.
6325 (syms_of_xsettings): Initialize current_font.
6326 defsubr Sfont_get_system_normal_font.
6327
6328 * xsettings.h (Ffont_get_system_normal_font)
6329 (xsettings_get_system_normal_font): Declare.
6330
6331 * xfns.c (extern xlwmenu_default_font): Remove.
6332 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
6333 to xlwmenu.c.
6334
6335 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
6336 menu items in UTF-8.
6337
6338 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
6339 (apply_systemfont_to_menu): New function.
6340 (set_frame_menubar, create_and_show_popup_menu): Call
6341 apply_systemfont_to_menu.
6342
6343 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
6344
6345 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
6346 FRAME_LINE_TO_PIXEL_Y.
6347
6348 * xterm.c (x_set_window_size_1): Don't add border_width/height to
6349 pixelwidth/height.
6350
6351 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
6352
6353 Simplify code for HP machines.
6354 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
6355 for GNU_LINUX, not needed.
6356 (UNEXEC, NEED_BSDTTY): Move definitions...
6357 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
6358
6359 * m/iris4d.h (UNEXEC): Move definition ...
6360 * s/irix6-5.h (UNEXEC): ... here.
6361
6362 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
6363
6364 * xfns.c (set_machine_and_pid_properties): New function.
6365 (Fx_create_frame): Call set_machine_and_pid_properties.
6366
6367 2010-04-03 Eli Zaretskii <eliz@gnu.org>
6368
6369 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
6370 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
6371 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
6372
6373 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
6374 in this function. (Bug#5703)
6375
6376 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
6377
6378 * nsterm.h: Fix last change.
6379
6380 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
6381
6382 * m/intel386.h (NO_REMAP): Move definition ...
6383 * s/msdos.h (NO_REMAP): ... here.
6384
6385 * m/vax.h (CRT0_DUMMIES): Remove, unused.
6386
6387 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
6388 used on those platforms.
6389
6390 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
6391
6392 Remove extern errno declarations.
6393 * xterm.c:
6394 * xrdb.c:
6395 * w32term.c:
6396 * unexec.c:
6397 * unexaix.c:
6398 * sysdep.c:
6399 * process.c:
6400 * lread.c:
6401 * keyboard.c:
6402 * floatfns.c:
6403 * filelock.c:
6404 * fileio.c:
6405 * emacs.c (main):
6406 * ecrt0.c:
6407 * dispnew.c:
6408 * callproc.c:
6409 * buffer.c: Remove errno extern declarations.
6410 * s/netbsd.h (NEED_ERRNO): Remove.
6411
6412 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
6413
6414 Remove all uses of LIBX11_SYSTEM.
6415 * Makefile.in (LIBX11_SYSTEM): Remove.
6416 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
6417 instead.
6418
6419 2010-04-01 Eli Zaretskii <eliz@gnu.org>
6420
6421 Remove support for DJGPP v1.x (bug#5813).
6422
6423 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
6424 * s/msdos.h:
6425 * unexec.c (make_hdr, copy_text_and_data):
6426 * sysdep.c (wait_for_termination, sys_subshell):
6427 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
6428 (IT_set_terminal_modes, __write, _rename, gethostname)
6429 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
6430 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
6431 the value of __DJGPP__.
6432 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
6433 compatibility code.
6434 * lread.c:
6435 * gmalloc.c (memalign):
6436 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
6437 * emacs.c (main):
6438 * dosfns.c (init_dosfns):
6439 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
6440
6441 2010-04-01 Eli Zaretskii <eliz@gnu.org>
6442
6443 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
6444 string with `cursor' property comes from an `after-string'
6445 overlay. (Bug#5816)
6446
6447 2010-04-01 Glenn Morris <rgm@gnu.org>
6448
6449 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
6450 Define as Makefile variables.
6451 (LIBX): Use above variables rather than directly using autoconf.
6452
6453 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
6454
6455 Clean up BSD_SYSTEM use.
6456 * xterm.c:
6457 * process.c:
6458 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
6459 for including <sys/ioctl.h>.
6460 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
6461 code is only used for MSDOS.
6462
6463 2010-03-31 Juri Linkov <juri@jurta.org>
6464
6465 * image.c: Add `Qextension_data'.
6466 (syms_of_image): Initialize and staticpro `Qextension_data'.
6467 (Fimage_metadata): Rename from `Fimage_extension_data'.
6468 (gif_load): Put GIF extension data to the property
6469 `Qextension_data'.
6470
6471 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
6472
6473 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
6474 * nsterm.h: Fix prototype.
6475
6476 2010-03-31 Eli Zaretskii <eliz@gnu.org>
6477
6478 * xdisp.c (highlight_trailing_whitespace): Support highlight of
6479 trailing whitespace in right-to-left rows.
6480
6481 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
6482
6483 Get rid of the direct_output optimizations.
6484 * keyboard.c (nonundocount): Remove extern declaration.
6485 (command_loop_1): Remove brittle optimisation for cheap and
6486 common operations.
6487 * xdisp.c (redisplay_internal): Don't bother checking
6488 redisplay_performed_directly_p any more.
6489 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
6490 any more.
6491 * dispnew.c (redisplay_performed_directly_p)
6492 (direct_output_for_insert, direct_output_forward_char):
6493 * dispextern.h (redisplay_performed_directly_p)
6494 (direct_output_for_insert, direct_output_forward_char): Remove.
6495 * cmds.c (nonundocount): Make it static.
6496
6497 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
6498
6499 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
6500
6501 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
6502
6503 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
6504 invisible (Bug#5766).
6505
6506 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
6507
6508 * xdisp.c (x_consider_frame_title, update_window_cursor):
6509 Remove HAVE_NS conditionals.
6510 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
6511
6512 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
6513 filename for the title.
6514 (ns_set_doc_edited): Do nothing if the selected window is a
6515 minibuffer window.
6516
6517 * nsterm.h: Add prototypes for ns_set_name_as_filename and
6518 ns_set_doc_edited.
6519
6520 * nsterm.m: Remove unneeded prototype.
6521
6522 2010-03-31 Glenn Morris <rgm@gnu.org>
6523
6524 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
6525 in the DOC file. (Bug#5336)
6526
6527 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
6528
6529 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
6530
6531 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
6532
6533 * window.c (keys_of_window): Remove redundant/overridden bindings.
6534
6535 2010-03-30 Eli Zaretskii <eliz@gnu.org>
6536
6537 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
6538 Restore original behavior when the iterator is not bidi_p.
6539
6540 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
6541
6542 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
6543
6544 2010-03-30 Eli Zaretskii <eliz@gnu.org>
6545
6546 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
6547 are outside the range of cached character positions.
6548
6549 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
6550
6551 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
6552
6553 2010-03-30 Eli Zaretskii <eliz@gnu.org>
6554
6555 Initial support for bidirectional editing.
6556
6557 * Makefile.in (obj): Include bidi.o.
6558 (bidi.o): New target.
6559
6560 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
6561 ($(BLD)/bidi.$(O)): New target.
6562
6563 * bidi.c: New file.
6564
6565 * buffer.h (struct buffer): New members bidi_display_reordering
6566 and bidi_paragraph_direction.
6567
6568 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
6569 and bidi_paragraph_direction.
6570 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
6571 and bidi-paragraph-direction.
6572 (Fbuffer_swap_text): Swap the values of
6573 bidi_display_reordering and bidi_paragraph_direction.
6574
6575 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
6576 (bidi_type_t, bidi_dir_t): New types.
6577 (bidi_saved_info, bidi_stack, bidi_it): New structures.
6578 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
6579 prev_stop, base_level_stop, and eol_pos.
6580 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
6581 (IT_STACK_SIZE): Enlarge to 5.
6582 (struct glyph_row): New member reversed_p.
6583 <string_buffer_position>: Update prototype.
6584 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
6585 glyph_row if bidi_it.paragraph_dir == R2L.
6586 (struct glyph): New members resolved_level and bidi_type.
6587
6588 * dispnew.c (direct_output_forward_char): Give up if we need bidi
6589 processing or buffer's direction is right-to-left.
6590 (prepare_desired_row): Preserve the reversed_p flag.
6591 (row_equal_p): Compare the reversed_p attributes as well.
6592
6593 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
6594 bidi_init_it and set it->paragraph_embedding from the current
6595 buffer's value of bidi_paragraph_direction.
6596 (reseat_1): Initialize bidi_it.first_elt.
6597 (set_iterator_to_next, next_element_from_buffer): Use the value of
6598 paragraph_embedding to determine the paragraph direction.
6599 (set_iterator_to_next): Under bidi reordering, call
6600 bidi_get_next_char_visually. Call bidi_paragraph_init if the
6601 new_paragraph flag is set in the bidi iterator.
6602 (next_element_from_buffer): If bidi_it.first_elt is set,
6603 initialize paragraph direction and find the first character to
6604 display in the visual order. If reseated to a middle of a line,
6605 prime the bidi iterator starting at the line's beginning. Handle
6606 the situation where we overstepped stop_charpos due to
6607 non-linearity of the bidi iteration. Likewise for when we back up
6608 beyond the previous stop_charpos. When moving across stop_charpos,
6609 record it in prev_stop.
6610 (display_line): Set row->end and it->start for the next row to the
6611 next character in logical order. Always extend reversed_p rows to
6612 the end of line, even if they end at ZV. Copy the reversed_p flag
6613 to the next glyph row. Keep calling set_cursor_from_row for
6614 bidi-reordered rows even if we already have a possible candidate
6615 for cursor position. Set row_end after all the row's glyphs have
6616 been produced, by looping over the glyphs. Record the position
6617 after EOL in it->eol_pos, and use it to set end_pos of the last
6618 row produced for a continued line.
6619 <Qright_to_left, Qleft_to_right>: New variables.
6620 (syms_of_xdisp): Initialize and staticpro them.
6621 (string_buffer_position_lim): New function.
6622 (string_buffer_position): Most of code moved to
6623 string_buffer_position_lim. Last argument and return value are
6624 now EMACS_INT; all callers changed.
6625 (set_cursor_from_row): Rewritten to support bidirectional text and
6626 reversed glyph rows.
6627 (text_outside_line_unchanged_p, try_window_id): Disable
6628 optimizations if we are reordering bidirectional text and the
6629 paragraph direction can be affected by the change.
6630 (append_glyph, append_composite_glyph)
6631 (produce_image_glyph, append_stretch_glyph): Set the
6632 resolved_level and bidi_type members of each glyph.
6633 (append_glyph): If the glyph row is reversed, prepend the glyph
6634 rather than appending it.
6635 (handle_stop_backwards): New function.
6636 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
6637 (reseat): call handle_stop_backwards to recompute prev_stop and
6638 base_level_stop for the new position.
6639 (handle_invisible_prop): Under bidi iteration, skip invisible text
6640 using bidi_get_next_char_visually. If we are `reseat'ed, init the
6641 paragraph direction. Update IT->prev_stop after skipping
6642 invisible text.
6643 (move_it_in_display_line_to): New variables prev_method
6644 and prev_pos. Compare for strict equality in
6645 BUFFER_POS_REACHED_P.
6646 (try_cursor_movement): Examine all the candidate rows that occlude
6647 point, to return the best match. If rows are bidi-reordered
6648 and point moved backwards, back up to the row that is not a
6649 continuation line, and start looking for a suitable row from
6650 there.
6651
6652 * term.c (append_glyph): Reverse glyphs by pre-pending them,
6653 rather than appending, if the glyph_row's reversed_p flag is set.
6654 Set the resolved_level and bidi_type members of each glyph.
6655
6656 * .gdbinit (pbiditype): New command.
6657 (pgx): Use it to display bidi level and type of the glyph.
6658 (pitx): Display some bidi information about the iterator.
6659 (prowlims, pmtxrows): New commands.
6660
6661 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
6662
6663 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
6664 * s/usg5-4.h (LIBS_DEBUG):
6665 * s/irix6-5.h (C_DEBUG_SWITCH):
6666 * s/gnu-linux.h (LIBS_DEBUG):
6667 * s/darwin.h (LIBS_DEBUG):
6668 * s/bsd-common.h (LIBS_DEBUG):
6669 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
6670 * m/iris4d.h (LIBS_DEBUG):
6671 * m/hp800.h (LIBS_DEBUG): Remove definitions.
6672
6673 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
6674 (LIBS_DEBUG): Remove definition.
6675
6676 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
6677
6678 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
6679 Windows.
6680
6681 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6682
6683 * process.c (Fmake_network_process): Don't call turn_on_atimers around
6684 `connect' (Bug#5723).
6685
6686 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
6687
6688 * process.c (Fmake_network_process): Call `select' for interrupted
6689 `connect' rather than creating new socket (Bug#5173).
6690
6691 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
6692
6693 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
6694
6695 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
6696
6697 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
6698
6699 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6700
6701 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
6702 XLoadQueryFont.
6703
6704 2010-03-24 Kenichi Handa <handa@m17n.org>
6705
6706 * coding.c (decode_coding_ccl): Fix previous change for the
6707 multibyte case.
6708 (encode_coding_ccl): Don't setup ccl program here. Fix for the
6709 case that the output buffer is fullfilled.
6710 (encode_coding): Setup ccl program here.
6711
6712 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
6713
6714 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
6715
6716 Simplify LIBS_MACHINE definitions.
6717 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
6718 * m/iris4d.h (LIBS_MACHINE): Likewise.
6719 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
6720 * s/aix4-2.h (LIBS_SYSTEM): ... here.
6721 * s/netbsd.h: Remove commented out code.
6722
6723 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
6724
6725 Remove dead code dealing with POSIX_SIGNALS.
6726 * atimer.c (set_alarm): Remove dead code, all USG systems define
6727 POSIX_SIGNALS.
6728 * data.c (arith_error): Likewise.
6729 * keyboard.c (input_available_signal, handle_user_signal)
6730 (interrupt_signal): Likewise.
6731 * process.c (sigchld_handler): Likewise.
6732 (create_process): Remove if 0 code. Remove HPUX conditional when
6733 !defined (POSIX_SIGNALS), it cannot be true.
6734 * syssignal.h: Remove USG5_4 and USG conditionals when
6735 !POSIX_SIGNALS, they cannot be true.
6736
6737 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
6738 NO_SOCK_SIGIO, not used anymore.
6739
6740 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
6741
6742 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
6743 support vax on BSDs.
6744
6745 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
6746 * s/aix4-2.h (ORDINARY_LINK): ... here.
6747
6748 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
6749
6750 * Makefile.in (abs_builddir): Define.
6751 (bootstrap_exe): Use it.
6752 (VPATH): Use $(srcdir) instead of @srcdir@.
6753
6754 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
6755
6756 * Makefile.in (bootstrap_exe): Use an absolute name.
6757
6758 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
6759
6760 Remove support for old GNU/Linux using libc version 5.
6761 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
6762 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
6763
6764 Consolidate redundant definitions in s/bsd-common.h.
6765 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6766 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6767 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
6768 doing it in all files that include this one.
6769 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6770 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6771 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6772 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6773 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6774 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6775 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6776 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6777 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6778
6779 Consolidate redundant definitions.
6780 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
6781 it's undefined in all files that include this one.
6782 (POSIX_SIGNALS): Define here instead of doing it in all files that
6783 include this one.
6784 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6785 (POSIX_SIGNALS): Do not define.
6786 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6787 (POSIX_SIGNALS): Do not define.
6788 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6789 (POSIX_SIGNALS): Do not define.
6790
6791 Remove support for old UNIX System V systems.
6792 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
6793 * s/usg-5-4-2.h: Remove.
6794
6795 Remove support for Solaris on PPC and for old versions.
6796 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
6797 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
6798 that cancel each other.
6799 * s/sol2-3.h:
6800 * s/sol2-4.h:
6801 * s/sol2-5.h: Remove.
6802 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
6803 (NO_REMAP): Remove, unused.
6804 (UNEXEC): Move definition ...
6805 * s/aix4-2.h (UNEXEC): ... here.
6806
6807 * s/openbsd.h: Remove support for non-ELF and for systems that do
6808 not support shared libraries.
6809 * s/netbsd.h:
6810 * s/freebsd.h: Likewise.
6811
6812 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
6813
6814 Remove non-working support for lynxos 3.0.
6815 * s/lynxos.h: Remove file.
6816
6817 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
6818 COFF_BSD_SYMBOLS, nothing defines it anymore.
6819
6820 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
6821
6822 Remove obsolete uses of HAVE_SHM.
6823 * emacs.c (standard_args):
6824 (Fdump_emacs):
6825 (syms_of_emacs): Remove code depending on HAVE_SHM.
6826
6827 * alloc.c: Remove HAVE_SHM dependent definition.
6828
6829 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
6830
6831 2010-03-18 Glenn Morris <rgm@gnu.org>
6832
6833 * emacs.c (USAGE4): Hard-code bug address.
6834 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
6835 (bug_reporting_address): Remove.
6836 (main): Don't call bug_reporting_address.
6837
6838 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
6839 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
6840
6841 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
6842
6843 * xfns.c (Fx_create_frame):
6844 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
6845 on left.
6846
6847 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
6848
6849 * editfns.c (Fformat): Account for string precision when computing
6850 field width (Bug#5710).
6851
6852 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
6853
6854 * xfns.c (Fx_create_frame): Set default to Qright.
6855
6856 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
6857 all window systems.
6858
6859 2010-03-12 Eli Zaretskii <eliz@gnu.org>
6860
6861 These changes remove termcap.c from the build on Posix platforms.
6862 * Makefile.in (termcapobj): Move termcap.o from here...
6863 (MSDOS_OBJ): ...to here.
6864 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
6865 now identical to when LIBS_TERMCAP is defined.
6866
6867 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
6868
6869 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
6870
6871 * config.in: Regenerated. (See top-level ChangeLog.)
6872
6873 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
6874
6875 * Branch for 23.2.
6876
6877 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
6878
6879 Cleanup setup of gl_state in various parts of the code.
6880 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
6881 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
6882 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
6883 (skip_chars):
6884 * regex.c (regex_compile): Use it.
6885 (re_compile_pattern): Don't set gl_state.current_syntax_table since
6886 it's now set in regex_compile when/if we need it.
6887
6888 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
6889
6890 Make it possible to C-g in a tight bytecode loop again (bug#5680).
6891 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
6892 (QUIT): Use it to consolidate code and remove redundancy.
6893 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
6894
6895 * regex.c (regex_compile): Setup gl_state as well.
6896
6897 * syntax.c (skip_chars): Setup gl_state (bug#3823).
6898 (in_classes): Use CONSP before XCAR/XCDR.
6899
6900 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
6901
6902 * keymap.c (Fwhere_is_internal): Use Fequal to compare
6903 definitions, so that keyboard macros are correctly handled
6904 (Bug#5481).
6905
6906 2010-03-02 Eli Zaretskii <eliz@gnu.org>
6907
6908 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
6909 text that could be relocated inside the call to emacs_mule_char.
6910 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
6911 (CODING_DECODE_CHAR): Add a comment describing its purpose.
6912
6913 2010-03-02 Kenichi Handa <handa@m17n.org>
6914
6915 * character.c (parse_str_as_multibyte): Fix handling of the
6916 multibyte form of raw-bytes.
6917 (str_as_multibyte): Likewise.
6918
6919 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
6920 form of raw-bytes.
6921
6922 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
6923
6924 * charset.c (load_charset_map_from_file)
6925 (load_charset_map_from_vector): Zero out allocated
6926 charset_map_entries before using them.
6927
6928 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
6929
6930 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
6931
6932 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
6933
6934 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
6935 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
6936
6937 2010-02-26 Kenichi Handa <handa@m17n.org>
6938
6939 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
6940
6941 * xdisp.c (reseat_to_string): Fix previous change.
6942
6943 2010-02-26 David Reitter <david.reitter@gmail.com>
6944
6945 * nsfont.m (nsfont_draw): ns_antialias_text should be a
6946 Lisp_Object (Bug#4736).
6947
6948 2010-02-25 Kenichi Handa <handa@m17n.org>
6949
6950 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
6951
6952 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
6953
6954 * xterm.c (XTflash): Move declarations before statements.
6955
6956 * gtkutil.c (xg_get_gdk_display): Remove (unused).
6957 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
6958 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
6959 (xg_create_tool_bar): Remove unused variables.
6960 (x_wm_set_size_hint): Move declarations before statements.
6961 (xg_create_frame_widgets): Remove variable grav.
6962
6963 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
6964
6965 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
6966
6967 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
6968
6969 * term.c (fatal): Add a final \n if needed (bug#5596).
6970
6971 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
6972
6973 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
6974
6975 2010-02-18 Glenn Morris <rgm@gnu.org>
6976
6977 * callint.c (Finteractive): Doc fix.
6978
6979 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
6980
6981 * coding.c (record_conversion_result):
6982 Handle CODING_RESULT_INSUFFICIENT_DST.
6983 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
6984 memory allocation error.
6985
6986 2010-02-17 Kenichi Handa <handa@m17n.org>
6987
6988 * coding.c (decode_coding_ccl): Don't setup ccl program here.
6989 Fix for the case that the output buffer is fullfilled.
6990 (decode_coding): Setup ccl program here. Keep looping when the
6991 decoder stopped because the output buffer is
6992 fullfilled (bug#5534).
6993
6994 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
6995
6996 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
6997
6998 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
6999 bug #5571.
7000 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
7001 overdrawn.
7002
7003 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
7004
7005 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
7006 doing_interact here.
7007 (ice_connection_closed): New function.
7008 (x_session_check_input, smc_die_CB, ice_io_error_handler)
7009 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
7010 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
7011 returns I/O error.
7012 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
7013 bug #5512.
7014
7015 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
7016
7017 * nsfont.m (nsfont_open): The system's value for the font descent
7018 is negative, so round it down to avoid clipping.
7019
7020 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
7021
7022 * charset.c (load_charset_map_from_file)
7023 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
7024 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
7025
7026 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
7027
7028 * charset.c (load_charset_map_from_file): Allocate large
7029 charset_map_entries structure on the heap rather than the stack.
7030 (Bug#5526).
7031
7032 2010-01-31 Kenichi Handa <handa@m17n.org>
7033
7034 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
7035 size in NAME is invalid, return -1 (Bug#5396).
7036
7037 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
7038
7039 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
7040 <deactivated@gmail.com> (Bug#3605).
7041
7042 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
7043
7044 * fileio.c (Frename_file): Correctly rename symlinks to
7045 directories (Bug#5496).
7046
7047 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
7048
7049 * nsterm.m (ns_ring_bell): Handle visible bell like X.
7050
7051 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
7052
7053 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
7054
7055 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
7056
7057 * frame.c (DEFAULT_ROWS): Change default to 35.
7058
7059 * xfns.c (x_default_font_parameter): Change default XFT font to
7060 monospace-10 (Bug#3643).
7061
7062 2010-01-29 Eli Zaretskii <eliz@gnu.org>
7063
7064 * w32inevt.c (key_event): Remove unnecessary comparison of
7065 event->uChar.AsciiChar with 128.
7066
7067 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
7068
7069 * fileio.c (Frename_file): Fix last change (Bug#5487).
7070
7071 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
7072
7073 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
7074
7075 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
7076
7077 * xfns.c (Fx_create_frame): Remove window size matching code from
7078 2010-01-15.
7079 (x_get_current_desktop, x_get_desktop_workarea): Remove.
7080
7081 2010-01-27 Jason Rumney <jasonr@gnu.org>
7082
7083 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
7084 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7085
7086 2010-01-27 Kenichi Handa <handa@m17n.org>
7087
7088 * regex.c (analyse_first): Fix setting of fastmap for unibyte
7089 pattern string (Bug#4209).
7090
7091 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
7092
7093 * fileio.c (Frename_file): Call copy-directory and
7094 delete-directory for directories, in order to handle cross-device
7095 renaming (Bug#3353).
7096
7097 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
7098
7099 * xfns.c (Fx_create_frame): If frame height is too big, try
7100 sizes 24 and 10. Bug #3643.
7101
7102 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
7103
7104 Try and fix bug#788, hopefully for real this time.
7105 * keymap.c (shadow_lookup): Add `remap' arg.
7106 (describe_map, describe_vector): Update calls to shadow_lookup.
7107 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
7108 `remapped' so this flag is applicable to `sequence'. Be careful to
7109 perform remapping during shadow_lookup check of remapped_sequences.
7110
7111 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
7112
7113 * image.c (png_load): Use png_sig_cmp instead of the obsolete
7114 png_check_sig, which has been removed in libpng 1.4.
7115
7116 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
7117
7118 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
7119 lacks this header file).
7120
7121 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7122
7123 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
7124 as in Emacs 22.
7125
7126 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7127
7128 * lisp.h (make_pure_string): String pointer arg now points to const.
7129
7130 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
7131 args now point to const.
7132
7133 2010-01-22 Eli Zaretskii <eliz@gnu.org>
7134
7135 * lread.c (Fload): Don't treat files without .elc extension as
7136 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
7137 them. (bug#5303)
7138
7139 2010-01-20 Kenichi Handa <handa@m17n.org>
7140
7141 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
7142 treat the source as actual byte sequence.
7143
7144 2010-01-19 Alan Mackenzie <acm@muc.de>
7145
7146 Fix spurious before-change-functions invocation from (insert ?\n).
7147 * textprop.c (set_text_properties): Rename parameter
7148 `signal_after_change_p' to `coherent_change_p', and make the
7149 invocation of `modify_region' conditional on it.
7150
7151 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
7152
7153 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
7154 for debug purpose.
7155 (syms_of_xsettings): Declare xft-settings.
7156
7157 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
7158
7159 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
7160
7161 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
7162
7163 * xterm.c (event_handler_gdk): Block input (Bug#5037).
7164
7165 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
7166
7167 * emacs.c (standard_args): Adjust arg priorities to reflect how
7168 they are processed in startup.el.
7169
7170 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
7171
7172 * Makefile.in (lisp, shortlisp): Update.
7173
7174 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
7175
7176 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
7177 code, link the new kboard into all_kboard before running Lisp code,
7178 and protect the new terminal with GCPRO (Bug#5365).
7179 (x_term_init): Remove unused var `atom'.
7180 (x_delete_display, x_delete_terminal): Remove unused var `i'.
7181
7182 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
7183
7184 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
7185 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
7186 to find out usable size of the desktop. Don't make frames larger than
7187 this. Bug #3643.
7188
7189 2010-01-15 Kenichi Handa <handa@m17n.org>
7190
7191 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
7192
7193 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
7194
7195 * nsterm.m (Qnone): Define.
7196
7197 * nsfns.m (Qnone): Move definition to nsterm.m.
7198
7199 2010-01-14 Kenichi Handa <handa@m17n.org>
7200
7201 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
7202 systems.
7203
7204 2010-01-14 Kenichi Handa <handa@m17n.org>
7205
7206 Make auto-composition work on all buffers even if they are
7207 fundamental mode.
7208
7209 * composite.c (Vauto_composition_mode): New variable.
7210 (composition_compute_stop_pos): Check Vauto_composition_mode
7211 instead of Vauto_composition_function.
7212 (composition_adjust_point, Ffind_composition_internal): Likewise.
7213 (syms_of_composite): Declare Lisp variable
7214 "auto-composition-mode" here.
7215
7216 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
7217
7218 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
7219 during call to vendor-specific-keysyms (Bug#5365).
7220
7221 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7222
7223 * keyboard.c (input_available_signal) [SYNC_INPUT]:
7224 Call SIGNAL_THREAD_CHECK (Bug#5333).
7225
7226 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
7227 Call SIGNAL_THREAD_CHECK.
7228
7229 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
7230
7231 Try to fix bug#5314. This is probably not the final word, tho.
7232 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
7233 recent-auto-save-p as a side-effect.
7234 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
7235 * buffer.c (Fkill_buffer, reset_buffer):
7236 * editfns.c (Fsubst_char_in_region):
7237 * fileio.c (Finsert_file_contents, Fdo_auto_save)
7238 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
7239
7240 2010-01-13 Kenichi Handa <handa@m17n.org>
7241
7242 Display buffer name, etc. in mode line by composing correctly.
7243
7244 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
7245 STRING is not nil.
7246 (display_mode_element): Adjust for the change of
7247 decode_mode_spec and display_line.
7248 (decode_mode_spec): Change arg MULTIBYTE to STRING.
7249 (display_string): Handle the case that STRING is non-null and
7250 LISP_STRING is not nil.
7251
7252 * xterm.c (x_draw_composite_glyph_string_foreground):
7253 Pay attention to s->face->overstrike.
7254
7255 * composite.c (composition_reseat_it): Don't check PT if STRING is
7256 non nil.
7257
7258 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7259
7260 * keyboard.c (read_char): Don't apply previous change when current
7261 buffer is unchanged by command execution.
7262
7263 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
7264
7265 * keyboard.c (read_char): Return after executing from special map.
7266
7267 2010-01-12 Glenn Morris <rgm@gnu.org>
7268
7269 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
7270 bug-gnu-emacs rather than emacs-pretest-bug.
7271
7272 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
7273
7274 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
7275 initializing the Lisp variables that depend on them.
7276
7277 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7278
7279 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
7280 Clear areas that will not be updated after change of menu bar lines.
7281 Clear the menu bar window's current matrix when the window gets empty.
7282
7283 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
7284
7285 * intervals.h, textprop.c (extend_property_ranges): Return value
7286 and args changed. Discard properties that begin at or after the
7287 new end (Bug#5306).
7288
7289 * editfns.c (Fformat): Caller changed.
7290
7291 * nsterm.m (ns_set_default_prefs): Delete function.
7292 (syms_of_nsterm): Initialize ns_command_modifier,
7293 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
7294 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
7295
7296 * xdisp.c (pos_visible_p): Check for invisible text at the correct
7297 position (Bug#4040).
7298
7299 2010-01-09 Eli Zaretskii <eliz@gnu.org>
7300
7301 * editfns.c (Ffloat_time): Doc fix.
7302
7303 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
7304
7305 * xfns.c (Fx_create_frame): Don't create frame larger than display
7306 by default bug#3643.
7307
7308 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7309
7310 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
7311 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
7312 windows above internal border.
7313
7314 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
7315 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
7316 windows above internal border.
7317
7318 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
7319 tool bar windows specially.
7320
7321 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
7322
7323 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
7324 specially.
7325 (XTflash): Take account of menu bar height.
7326
7327 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
7328 specially.
7329
7330 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
7331
7332 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
7333 also be true before we can return early (bug #5339).
7334
7335 2010-01-06 David Reitter <david.reitter@gmail.com>
7336
7337 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
7338 (Fns_display_usable_bounds): Rewrite, computing bounds properly
7339 (Bug#3233).
7340
7341 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
7342
7343 * font.c (font_open_entity): Enable chache and call cached_font_ok
7344 for the driver if defined.
7345 (QCuser_spec): New symbol.
7346 (font_spec_from_name): Save name as user-spec.
7347 (font_load_for_lface): Keep user-spec instead of name.
7348 (font_open_by_name): Save name as user-spec.
7349 (syms_of_font): Initialize QCuser_spec.
7350 (font_clear_prop): Clear name if it exists in font (bug#5157).
7351
7352 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
7353 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
7354 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
7355
7356 * font.h (struct font_driver): Add cached_font_ok.
7357
7358 * xterm.c (x_clear_frame): Queue draw for scroll bars.
7359
7360 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
7361
7362 * xterm.c (x_new_font): Move code for setting rows/cols before
7363 resizing ...
7364 (x_set_window_size): ... to here. Bug #2568.
7365
7366 * gtkutil.c (xg_clear_under_internal_border): New function.
7367 (xg_frame_resized, xg_frame_set_char_size):
7368 Call xg_clear_under_internal_border.
7369 (xg_update_scrollbar_pos): Clear under old scroll bar position.
7370
7371 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
7372
7373 * keyboard.c (read_key_sequence): Catch keyboard switch after
7374 making a new tty frame (Bug#5095).
7375
7376 2010-01-05 Kenichi Handa <handa@m17n.org>
7377
7378 * fontset.c (fontset_find_font): Fix getting the frame pointer.
7379
7380 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
7381
7382 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
7383 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
7384 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
7385
7386 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
7387
7388 * dbusbind.c (xd_add_watch): Improve debug message.
7389 (xd_remove_watch): Improve debug message. If DATA is the session
7390 bus, unset D-Bus session environment.
7391 (Fdbus_init_bus): Pass the bus as argument to
7392 dbus_connection_set_watch_functions. (Bug#5283)
7393
7394 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
7395
7396 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
7397
7398 * lread.c (syms_of_lread): Make it clearer that these are the
7399 names of loaded files (Bug#5068).
7400
7401 * eval.c (run_hook_with_args): Handle the case where the global
7402 value has the obsolete single-function form (Bug#5026).
7403
7404 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
7405
7406 * minibuf.c (Fall_completions): Minor optimization.
7407
7408 2009-12-26 Eli Zaretskii <eliz@gnu.org>
7409
7410 * .gdbinit (pgx): Fix display of composite glyphs.
7411 Display cmp.from and cmp.to as well.
7412 (pitx): Fix last change.
7413
7414 2009-12-25 Kenichi Handa <handa@m17n.org>
7415
7416 * composite.h (composition_adjust_point): Update prototype.
7417
7418 * composite.c (composition_reseat_it): Don't make a composition
7419 spanning over point.
7420 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
7421 composable characters.
7422 (composition_adjust_point): New arg NEW_PT. Callers changed.
7423
7424 * keyboard.c (command_loop_1): Force redisplay if the last point
7425 was within a composition.
7426 (adjust_point_for_property): Don't adjust point for automatic
7427 composition when called after buffer modification.
7428
7429 2009-12-19 Eli Zaretskii <eliz@gnu.org>
7430
7431 * .gdbinit (pitx): Don't use enum names, use their values.
7432 Remove reference to non-existing value GET_FROM_COMPOSITION.
7433 (pgx): Don't use enum names, use their values.
7434 (pitmethod): New helper command.
7435 (pitx): Use it to display iteration method.
7436 (pgrowit): New command.
7437
7438 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
7439
7440 Update dependencies in Makefile.in.
7441
7442 * Makefile.in (alloc.o): Depend on termhooks.h.
7443 (atimer.o): Depend on blockinput.h.
7444 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
7445 and frame.h.
7446 (callint.o): Depend on systime.h, coding.h, and composite.h.
7447 (callproc.o): Depend on buffer.h.
7448 (casefiddle.o): Don't depend on charset.h.
7449 (casetab.o): Depend on character.h.
7450 (ccl.o): Depend on composite.h.
7451 (chartab.o): Depend on ccl.h.
7452 (cm.o): Depend on dispextern.h.
7453 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
7454 (coding.o): Don't depend on $(INTERVALS_H).
7455 (composite.o): Don't depend on dispextern.h explicitly (it's in
7456 $(INTERVALS_H)). Depend on ccl.h.
7457 (data.o): Depend on systime.h, coding.h, composite.h,
7458 dispextern.h, font.h, and ccl.h.
7459 (dired.o): Depend on composite.h.
7460 (dispnew.o): Depend on coding.h. Don't depend explicitly on
7461 composite.h (it's in $(INTERVALS_H)).
7462 (doc.o): Depend on systime.h, coding.h, and composite.h.
7463 (editfns.o): Don't depend explicitly on dispextern.h.
7464 (emacs.o): Depend on frame.h and coding.h.
7465 (eval.o): Depend on coding.h, composite.h, and xterm.h.
7466 (fileio.o): Depend on frame.h and commands.h. Don't depend
7467 explicitly on dispextern.h.
7468 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
7469 composite.h.
7470 (fns.o): Don't depend on termhooks.h.
7471 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
7472 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
7473 coding.h, $(INTERVALS_H), window.h, xterm.h.
7474 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
7475 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
7476 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
7477 fontset.h, ccl.h, and ftfont.h.
7478 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
7479 (gtkutil.o): Depend on dispextern.h and composite.h.
7480 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
7481 termhooks.h, and ccl.h.
7482 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
7483 (intervals.o): Depend on systime.h and coding.h.
7484 (keyboard.o): Depend on composite.h and coding.h.
7485 (keymap.o): Depend on coding.h and frame.h.
7486 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
7487 (macros.o): Depend on systime.h, coding.h, and composite.h.
7488 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
7489 and atimer.h.
7490 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
7491 dispextern.h explicitly.
7492 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
7493 Don't depend explicitly on dispextern.h and composite.h.
7494 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
7495 (regex.o): Don't depend on charset.h.
7496 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
7497 (search.o): Don't depend explicitly on composite.h.
7498 (sound.o): Depend on atimer.h and systime.h.
7499 (syntax.o): Don't depend explicitly on composite.h.
7500 (sysdep.o): Depend on coding.h and composite.h.
7501 (term.o): Depend on xterm.h and buffer.h.
7502 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
7503 (textprop.o): Don't depend on dispextern.h explicitly.
7504 (undo.o): Depend on dispextern.h.
7505 (window.o): Depend on coding.h and termhooks.h. Don't depend on
7506 dispextern.h and composite.h explicitly.
7507 (xdisp.o): Depend on ccl.h.
7508 (xfaces.o): Depend on coding.h and ccl.h.
7509 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
7510 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
7511 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
7512 ftfont.h.
7513 (xgselect.o): New dependency.
7514 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
7515 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
7516 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
7517 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
7518 (xsmfns.o): Depend on frame.h and dispextern.h.
7519 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
7520 sysselect.h.
7521
7522 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
7523
7524 * font.c (Fclear_font_cache): Pass correct cache argument to
7525 font_clear_cache.
7526
7527 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
7528
7529 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
7530 twice.
7531
7532 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
7533
7534 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
7535 calling file-remote-p. Reported by Jim Meyering.
7536
7537 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
7538
7539 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
7540 avoid compiler warnings. (Bug #5217)
7541
7542 2009-12-14 Kenichi Handa <handa@m17n.org>
7543
7544 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
7545 in 8-bit encoding.
7546
7547 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
7548
7549 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
7550 tooltip windows.
7551
7552 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
7553
7554 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
7555 Xatom_net_window_type.
7556
7557 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
7558 Xatom_net_window_type.
7559
7560 * xterm.c (my_log_handler): New function.
7561 (x_term_init): Set my_log_handler as log handler during gtk_init
7562 so we can filter out buggy messages. (Bug #5120).
7563
7564 * xterm.c (xg_scroll_callback): Parameter list changed,
7565 use parameter GtkScrollType to determine scroll/line/page.
7566 Only allow dragging if a button < 4 is grabbed (bug #5177).
7567 (xg_end_scroll_callback): New function.
7568 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
7569 xg_create_scroll_bar.
7570
7571 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
7572 (scroll_end_callback): Remove.
7573 (xg_create_scroll_bar): Add parameter end_callback, bind it to
7574 button-release-event. Replace value-changed event with change-value,
7575 bug #5177.
7576 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
7577 bug #5177.
7578
7579 * gtkutil.h (XG_LAST_SB_DATA): Remove.
7580 (xg_create_scroll_bar): Add GCallback end_callback.
7581
7582 * xftfont.c (QClcdfilter): New variable.
7583 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
7584 (syms_of_xftfont): Initialize QClcdfilter.
7585
7586 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
7587
7588 * xsettings.c (struct xsettings): Add member seen.
7589 (parse_xft_settings): Update member seen with what we have read.
7590 Return non-zero if Xft-settings have been parsed, 0 otherwise.
7591 (apply_xft_settings): Only update Xft settings with what member seen
7592 indicates as new.
7593
7594 2009-12-12 Eli Zaretskii <eliz@gnu.org>
7595
7596 * dispextern.h (struct text_pos): Use EMACS_INT.
7597 (struct glyph): Use EMACS_INT for charpos.
7598 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
7599 region_beg_charpos, region_end_charpos,
7600 redisplay_end_trigger_charpos, and also for
7601 iterator_stack_entry.end_charpos and
7602 iterator_stack_entry.stop_charpos.
7603
7604 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
7605
7606 * gtkutil.c (scroll_end_callback): New function (bug #5177).
7607 (xg_create_scroll_bar): Call scroll_end_callback on button release
7608 event (bug #5177).
7609 (xg_event_is_for_scrollbar): != replaced with ==.
7610
7611 2009-12-12 Kenichi Handa <handa@m17n.org>
7612
7613 * ftfont.c (struct ftfont_info): New member matrix.
7614 (ftfont_open): Setup xftfont_info->matrix.
7615 (MFLTFontFT): New member matrix.
7616 (FLOOR, CEIL, ROUND): New macros.
7617 (ftfont_get_metrics): Handle matrix transformation.
7618 (ftfont_shape_by_flt): New arg matrix. Callers changed.
7619
7620 * xftfont.c (struct xftfont_info): New member matrix.
7621 (xftfont_open): Setup xftfont_info->matrix.
7622
7623 2009-12-10 Kenichi Handa <handa@m17n.org>
7624
7625 * xdisp.c (append_space_for_newline): Consider face-remapping.
7626
7627 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
7628
7629 * xsettings.c: Include "keyboard.h".
7630
7631 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
7632
7633 Fix implicit function declarations.
7634 * cmds.c: Include "frame.h".
7635 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
7636 * frame.h: Move declaration of delete_frame outside of
7637 HAVE_WINDOW_SYSTEM.
7638
7639 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
7640
7641 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
7642
7643 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
7644 GTK builds.
7645
7646 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
7647
7648 * unexelf.c (unexec): Don't search for .data twice.
7649
7650 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
7651
7652 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
7653 if push failed.
7654 (handle_line_prefix): Set avoid_cursor_p here. Check return value
7655 of push_display_prop (Bug#5000).
7656
7657 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
7658 value of font_list_entities (Bug#5085).
7659
7660 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
7661
7662 Fix `string-to-number' to deal consistently with integers and floats.
7663 * lread.c (isfloat_string): New argument ignore_trailing to accept all
7664 trailing characters, not just whitespace.
7665 (read1): Pass new arg 0 to keep old behavior.
7666 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
7667 trailing chars, as it is already done for integers. Doc fixes.
7668 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
7669
7670 2009-12-04 Eli Zaretskii <eliz@gnu.org>
7671
7672 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
7673 Delete unused enumeration value.
7674
7675 2009-12-03 Eli Zaretskii <eliz@gnu.org>
7676
7677 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
7678
7679 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
7680
7681 * process.c (Fmake_network_process): Fix up the tests for
7682 "connectionless socket", so they DTRT for seqpacket sockets as well.
7683
7684 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
7685
7686 * process.c (Qseqpacket): New symbol.
7687 (HAVE_SEQPACKET): New macro.
7688 (Fmake_network_process): Accept new :type `seqpacket'.
7689 (init_process): Add `seqpacket' feature when applicable.
7690 (syms_of_process): Initialize Qseqpacket.
7691
7692 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7693
7694 * font.c (font_load_for_lface, font_open_by_name): Don't store name
7695 if entity is Qnil.
7696
7697 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
7698
7699 * print.c (print_preprocess): Preprocess the key_and_value table of
7700 hashtables, even tho they're "hidden" (bug#5082).
7701
7702 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
7703
7704 * frame.c (frame_make_pointer_invisible)
7705 (frame_make_pointer_visible): Declare f before statements.
7706
7707 2009-11-28 Eli Zaretskii <eliz@gnu.org>
7708
7709 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
7710 omitted dependencies on lisp.h.
7711
7712 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
7713
7714 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
7715 is NULL.
7716
7717 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
7718
7719 * frame.c (frame_make_pointer_invisible)
7720 (frame_make_pointer_visible): Just return if there isn't any selected
7721 frame.
7722
7723 * search.c (simple_search): Remove warning by making *p const.
7724
7725 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
7726
7727 * xdisp.c (power_letter): Remove duplicate const.
7728
7729 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
7730
7731 * term.c (delete_tty): Remove check for last terminal (bug#4970).
7732
7733 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
7734 defaults (bug #5025).
7735
7736 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
7737
7738 * insdel.c (adjust_markers_for_delete): Move it in the
7739 right direction! (bug#4803)
7740
7741 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7742
7743 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
7744
7745 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
7746
7747 2009-11-24 Glenn Morris <rgm@gnu.org>
7748
7749 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
7750
7751 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
7752
7753 * Makefile.in: Must create deps for ecrt0.o in its rule.
7754
7755 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
7756 because that is what Gtk+ font dialog understands.
7757
7758 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
7759 of Fcopy_sequence.
7760 (font_open_by_name): Put name given into QCname for font-object returned.
7761
7762 * frame.c (x_set_font): Save original font name as frame parameter
7763 font-parameter.
7764
7765 * xsettings.c (set_default_xft_settings): New function.
7766 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
7767 is found.
7768
7769 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
7770
7771 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
7772 searching backwards through multibyte buffer.
7773
7774 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
7775
7776 * xterm.c: #include xgselect.h.
7777 (x_initialize): Call xgselect_initialize.
7778
7779 * xsettings.c (something_changedCB): C++ comments => C comments.
7780 (init_gconf): Do not deal with any GLib file descriptors, xg_select
7781 does that now.
7782
7783 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
7784 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
7785 (scroll_bar_button_cb): Remove.
7786 (create_menus): C++ comments => C comments. Don't bind grab-notify
7787 event.
7788 (xg_create_scroll_bar): Don't bind button-press-event and
7789 button-release-event.
7790
7791 * process.c: Include xgselect.h if defined (USE_GTK) ||
7792 defined (HAVE_GCONF).
7793 (wait_reading_process_output): Call xg_select for the same condition.
7794
7795 * xgselect.c (xg_select): New function to better integrate with
7796 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
7797
7798 * xgselect.h: New file, declare xg_select, xgselect_initialize.
7799
7800 * Makefile.in (XOBJ): Add xgselect.o.
7801
7802 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
7803
7804 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
7805 Remove ignored second argument. All callers changed.
7806 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
7807 (RE_STRING_CHAR_AND_LENGTH): Likewise.
7808 * xdisp.c (string_char_and_length): Likewise.
7809
7810 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
7811
7812 * xterm.c (x_new_font):
7813 * print.c (print_object):
7814 * cmds.c (Fself_insert_command): Move declarations before statements.
7815
7816 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
7817
7818 * s/cygwin.h: Remove unneeded linker flags.
7819
7820 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
7821
7822 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
7823
7824 * xsettings.h: Declare xsettings_get_system_font.
7825
7826 * xsettings.c (xsettings_get_system_font): New function.
7827 (init_gconf): No use initiating gconf unless we have Xft also.
7828 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
7829 HAVE_GCONF.
7830
7831 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
7832 add a blank entry so it doesn't collapse into nothing.
7833
7834 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
7835
7836 * lread.c (Funintern): Comment out last change.
7837
7838 2009-11-19 Richard Stallman <rms@gnu.org>
7839
7840 * lread.c (Funintern): Error if symbol is t or nil.
7841
7842 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
7843
7844 * insdel.c (make_gap_larger): Don't make as many assumptions about the
7845 representation of Lisp integers.
7846 Reported by MJ Chan <mjchan.inbox@gmail.com>.
7847
7848 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
7849
7850 * lisp.h: Remove declaration of Ffont_get_system_font.
7851 * xfns.c: Move include of "xsettings.h".
7852 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
7853
7854 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
7855
7856 * xsettings.c (something_changedCB, Ffont_get_system_font):
7857 Check use_system_font.
7858 (syms_of_xsettings): DEFVAR font-use-system-font.
7859
7860 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
7861
7862 * xfns.c (x_default_font_parameter): Remove dead assignment.
7863
7864 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
7865
7866 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
7867
7868 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
7869 not have FC_LCD_*. #define them if not there.
7870
7871 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
7872
7873 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
7874
7875 * xterm.c (handle_one_xevent): Call xft_settings_event for
7876 ClientMessage, PropertyNotify and DestroyNotify.
7877 (x_term_init): If we have XFT, get DPI from Xft.dpi.
7878 Call xsettings_initialize.
7879
7880 * xftfont.c (xftfont_fix_match): New function.
7881 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
7882 Call xftfont_fix_match after XftFontMatch.
7883
7884 * xfont.c (xfont_driver): Initialize all members.
7885
7886 * xfns.c (x_default_font_parameter):
7887 Try font from Ffont_get_system_font.
7888 Do not get font from x_default_parameter if we got one from
7889 Ffont_get_system_font.
7890 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
7891
7892 * w32font.c (w32font_driver): Initialize all members.
7893
7894 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
7895
7896 * lisp.h: Declare syms_of_xsettings.
7897
7898 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
7899 Handle CONFIG_CHANGED_EVENT.
7900
7901 * ftfont.c (ftfont_filter_properties): New function.
7902
7903 * frame.c (x_set_font): Remove unused variable lval.
7904
7905 * font.h (struct font_driver): Add filter_properties.
7906
7907 * font.c (font_put_extra): Don't return if val is nil, it means
7908 boolean option is off.
7909 (font_parse_fcname): Collect all extra properties in extra_props
7910 and call filter_properties for all drivers with extra_props and
7911 font as parameter.
7912 (font_open_entity): Do not use cache, it does not pick up new
7913 fontconfig settings like hinting.
7914 (font_load_for_lface): If spec had a name in it, store it in entity.
7915
7916 * emacs.c (main): Call syms_of_xsettings.
7917
7918 * config.in: HAVE_GCONF is new.
7919
7920 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
7921 xsettings.o is new.
7922
7923 2009-11-17 Kenichi Handa <handa@m17n.org>
7924
7925 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
7926 back to the default font in case that no suitable font is found.
7927
7928 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
7929
7930 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
7931 Suggested by Chad Brown <yandros@mit.edu>.
7932 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
7933
7934 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
7935
7936 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
7937
7938 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
7939
7940 * Makefile.in: Ignore errors from mkdir when creating deps directory.
7941
7942 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
7943
7944 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
7945 has a parent.
7946
7947 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
7948 dependency files in deps/. Include those files into Makefile.
7949
7950 * config.in: Generated (AUTO_DEPEND).
7951
7952 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
7953
7954 * dbusbind.c (Vdbus_registered_objects_table): Rename from
7955 Vdbus_registered_functions_table, because it contains also
7956 properties. Fix docstring.
7957 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
7958
7959 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
7960
7961 * alloc.c (mark_object): Don't reprocess marked strings.
7962 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
7963 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
7964
7965 2009-11-13 Kenichi Handa <handa@m17n.org>
7966
7967 * category.c (word_boundary_p): Adjust for the change of the
7968 semantics of Vword_combining_categories.
7969 (Vword_combining_categories): Describe the slight change of the
7970 semantics.
7971
7972 2009-11-13 Eli Zaretskii <eliz@gnu.org>
7973
7974 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
7975
7976 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
7977
7978 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
7979
7980 * xdisp.c (syms_of_xdisp): Fix typo in last change.
7981
7982 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
7983
7984 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
7985
7986 2009-11-11 David Reitter <david.reitter@gmail.com>
7987
7988 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
7989 variables to fix 2009-11-09 change.
7990
7991 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
7992
7993 * process.c (ifflag_def): Make flag_sym constant.
7994 (Fnetwork_interface_info): Use a constant pointer.
7995 (ifflag_table):
7996 * xfns.c (cursor_bits):
7997 * xdisp.c (power_letter):
7998 * termcap.c (speeds, esctab):
7999 * sysdep.c (baud_convert):
8000 * keyboard.c (lispy_accent_codes, modifier_names):
8001 * image.c (xbm_format, xpm_format, pbm_format, png_format)
8002 (jpeg_format, tiff_format, gif_format, svg_format)
8003 (interlace_start, interlace_increment, gs_format):
8004 * gtkutil.c (separator_names):
8005 * fringe.c (swap_nibble):
8006 * fns.c (base64_value_to_char, base64_char_to_value):
8007 * fileio.c (make_temp_name_tbl):
8008 * coding.c (suffixes): Make constant.
8009
8010 * frame.c (make_initial_frame):
8011 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
8012 build_string.
8013 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
8014
8015 * s/freebsd.h:
8016 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
8017
8018 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
8019 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
8020
8021 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
8022 * xterm.c (syms_of_xterm):
8023 * xfaces.c (syms_of_xfaces):
8024 * xdisp.c (syms_of_xdisp):
8025 * lread.c (syms_of_lread):
8026 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
8027 build_string.
8028
8029 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
8030
8031 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
8032
8033 * fns.c (Fplist_get): Merge the active and the commented out code.
8034
8035 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
8036
8037 * keyboard.h: Declare timer_check.
8038
8039 * keyboard.c (timer_check_2): New function that does what the old
8040 timer_check did.
8041 (timer_check): Call timer_check_2 until -1 or a non-zero time is
8042 returned, i.e. don't return -1 with timers pending.
8043
8044 * process.c: Remove extern declaration of timer_check.
8045
8046 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
8047 even if timer_check returned -1.
8048
8049 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
8050 xg_dialog_data.
8051 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
8052 the event loop.
8053 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
8054 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
8055 Destroy the dialog after xg_dialog_run.
8056
8057 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
8058
8059 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
8060
8061 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
8062
8063 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
8064
8065 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
8066
8067 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
8068
8069 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
8070
8071 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
8072 w32menu.c, and nsmenu.m.
8073 Simplify the obsolete case where position is nil.
8074 (cleanup_popup_menu): New function, moved from nsmenu.m.
8075 (struct skp): Remove slot `notreal'.
8076 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
8077 adjust callers.
8078 (single_menu_item): Adjust call to parse_menu_item.
8079 (syms_of_menu): Defsubr x-popup-menu.
8080 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
8081 (keymap_panes): Don't export any more.
8082 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
8083 (xmenu_show): Declare.
8084 * keyboard.c (parse_menu_item): Remove arg `notreal'.
8085 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
8086 * keyboard.h (parse_menu_item): Update declaration.
8087 * xmenu.c (Fx_popup_menu): Remove.
8088 (syms_of_xmenu): Don't defsubr x-popup-menu.
8089 * w32menu.c (Fx_popup_menu): Remove.
8090 (syms_of_w32menu): Don't defsubr x-popup-menu.
8091 * nsmenu.m (cleanup_popup_menu): Remove.
8092 (ns_menu_show): Rename from ns_popup_menu and remove all the code
8093 moved to menu.c's Fx_popup_menu.
8094 (Fx_popup_menu): Remove.
8095 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
8096 menu_items (it's done in menu.c already).
8097
8098 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
8099
8100 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
8101 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
8102
8103 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
8104
8105 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
8106 xmenu_show. Hide any tooltip before opening a menu.
8107 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
8108 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
8109
8110 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
8111
8112 Let integers use up 2 tags to give them one extra bit and thus double
8113 their range.
8114 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
8115 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
8116 New macros.
8117 (enum Lisp_Type): Use them. Give explicit values.
8118 (Lisp_Type_Limit): Remove.
8119 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
8120 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
8121 Pay attention to USE_2_TAGS_FOR_INTS.
8122 (INTEGERP): Use LISP_INT_TAG_P.
8123 * fns.c (internal_equal): Simplify the default case.
8124 (sxhash): Use case_Lisp_Int.
8125 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
8126 any more.
8127 (Ftype_of): Use case_Lisp_Int.
8128 (store_symval_forwarding): Take into account the fact that Ints can
8129 now have more than one tag.
8130 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
8131 (buffer_slot_type_mismatch):
8132 * xfaces.c (face_attr_equal_p):
8133 * print.c (print_object):
8134 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
8135 Use case_Lisp_Int.
8136
8137 2009-11-06 Eli Zaretskii <eliz@gnu.org>
8138
8139 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
8140
8141 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
8142 warning.
8143
8144 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
8145
8146 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
8147
8148 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
8149
8150 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
8151 ButtonPressRelease and MotionNotify (bug#4870).
8152
8153 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
8154
8155 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
8156
8157 * xterm.c (syms_of_xterm):
8158 * xselect.c (syms_of_xselect):
8159 * xmenu.c (syms_of_xmenu):
8160 * xfns.c (syms_of_xfns):
8161 * xfaces.c (syms_of_xfaces):
8162 * xdisp.c (syms_of_xdisp):
8163 * window.c (syms_of_window):
8164 * w32fns.c (syms_of_w32fns):
8165 * undo.c (syms_of_undo):
8166 * textprop.c (syms_of_textprop):
8167 * terminal.c (syms_of_terminal):
8168 * syntax.c (syms_of_syntax):
8169 * sound.c (syms_of_sound):
8170 * search.c (syms_of_search):
8171 * print.c (syms_of_print):
8172 * minibuf.c (syms_of_minibuf):
8173 * macros.c (syms_of_macros):
8174 * keymap.c (syms_of_keymap, initial_define_key)
8175 (initial_define_lispy_key):
8176 * keyboard.c (syms_of_keyboard):
8177 * insdel.c (syms_of_insdel):
8178 * image.c (syms_of_image):
8179 * fringe.c (syms_of_fringe):
8180 * frame.c (syms_of_frame):
8181 * fontset.c (syms_of_fontset):
8182 * fns.c (syms_of_fns):
8183 * fns.c (syms_of_fns):
8184 * fileio.c (syms_of_fileio):
8185 * fileio.c (syms_of_fileio):
8186 * eval.c (syms_of_eval):
8187 * doc.c (syms_of_doc):
8188 * dispnew.c (syms_of_display):
8189 * dired.c (syms_of_dired):
8190 * dbusbind.c (syms_of_dbusbind):
8191 * data.c (syms_of_data):
8192 * composite.c (syms_of_composite):
8193 * coding.c (syms_of_coding):
8194 * cmds.c (syms_of_cmds):
8195 * charset.c (define_charset_internal, syms_of_character):
8196 * ccl.c (syms_of_ccl):
8197 * category.c (syms_of_category, init_category_once):
8198 * casetab.c (syms_of_casetab):
8199 * casefiddle.c (syms_of_casefiddle):
8200 * callint.c (syms_of_callint):
8201 * bytecode.c (syms_of_bytecode):
8202 * buffer.c (keys_of_buffer, syms_of_buffer):
8203 * alloc.c (syms_of_alloc):
8204 * process.c (syms_of_process, init_process):
8205 * lread.c (syms_of_lread, init_obarray):
8206 * font.c (build_style_table):
8207 * emacs.c (syms_of_emacs, main): Replace calls to intern with
8208 intern_c_string, calls to make_pure_string with
8209 make_pure_c_string. Use pure_cons instead of Fcons.
8210
8211 * process.c (socket_options): Make it const.
8212 (set_socket_option, init_process): Use a const pointer.
8213
8214 * lread.c (intern_c_string): New function.
8215 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
8216 (defvar_int): Uset it. Make the name const char*.
8217
8218 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
8219 (defvar_int): Update prototypes.
8220 (DEFUN, EXFUN): Support for prototypes is now required.
8221 (intern_c_string): New prototype.
8222 (struct Lisp_Subr): Make symbol_name constant.
8223
8224 * font.c (struct table_entry): Remove unused member. Make NAMES
8225 constant.
8226 (weight_table, slant_table, width_table): Make constant.
8227
8228 * emacs.c (struct standard_args): Make name and longname constant.
8229
8230 * character.h (DEFSYM): Use intern_c_string.
8231
8232 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
8233
8234 * alloc.c (make_pure_c_string): New function.
8235
8236 * eval.c (Fautoload): Purecopy all arguments.
8237
8238 2009-11-05 Kenichi Handa <handa@m17n.org>
8239
8240 * fileio.c (Finsert_file_contents): Be sure set coding-system of
8241 the buffer in case of replace.
8242
8243 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
8244
8245 * puresize.h (BASE_PURESIZE): Increase to 1620000.
8246
8247 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
8248
8249 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
8250 when applicable (bug#4851).
8251
8252 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
8253 (P_): Support for prototypes is now required.
8254
8255 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
8256
8257 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
8258 (Bug#4827).
8259
8260 2009-10-30 Eli Zaretskii <eliz@gnu.org>
8261
8262 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
8263
8264 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
8265
8266 * puresize.h (BASE_PURESIZE): Increase to 1470000.
8267
8268 * lread.c (Fload): Purecopy the file name when building
8269 Vpreloaded_file_list.
8270
8271 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
8272
8273 * w32fns.c (syms_of_w32fns): Change default value of
8274 w32-scroll-lock-modifier to nil. (Bug#2827)
8275
8276 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
8277
8278 * minibuf.c (Fall_completions): Fix typos in docstring.
8279
8280 2009-10-26 Andreas Schwab <schwab@redhat.com>
8281
8282 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
8283
8284 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
8285
8286 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
8287 For delta < 0, skip check that only makes sense when the mini-window
8288 is going to be enlarged. (Bug#4534)
8289
8290 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
8291
8292 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
8293 string in menu maps (Bug#4471).
8294
8295 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
8296
8297 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
8298 FRAME_NS_VIEW on terminal frames (Bug#4765).
8299
8300 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
8301
8302 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
8303 DBUS_TYPE_UINTnn separately to get proper sign extension.
8304
8305 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
8306 can properly handle unsigned types.
8307 (make_uid, make_gid): Remove.
8308
8309 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
8310 types again.
8311
8312 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
8313 (system_process_attributes): Likewise.
8314
8315 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
8316
8317 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
8318
8319 * eval.c (Fautoload): Purecopy the filename. Simplify.
8320
8321 * category.c (Fdefine_category): Purecopy docstring.
8322
8323 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
8324
8325 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
8326
8327 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
8328
8329 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
8330
8331 * window.c (Fwindow_edges, Fwindow_pixel_edges)
8332 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
8333 (Bug#4775).
8334
8335 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
8336
8337 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
8338 (init_fileio_once):
8339 * lisp.h (init_fileio_once): Remove.
8340 * emacs.c (main): Don't call init_fileio_once.
8341
8342 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
8343
8344 * puresize.h (BASE_PURESIZE): Increase to 1430000.
8345
8346 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
8347
8348 * doprnt.c (doprnt): Fix overflow check.
8349
8350 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
8351
8352 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
8353
8354 * xterm.h (x_wait_for_event): Declare it.
8355
8356 * xterm.c (pending_event_wait): New variable.
8357 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
8358 see pending_event_wait.eventtype.
8359 (handle_one_xevent): Don't change gravity when parent changes.
8360 (x_new_font): Call change_frame_size with new rows/columns before we
8361 try to resize the frame.
8362 (x_wait_for_event): New function.
8363 (x_set_window_size_1): Don't change gravity unless change_gravity
8364 is set.
8365 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
8366 don't change frame size, instead wait for the ConfigureNotify.
8367 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
8368 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
8369 (x_initialize): Initialize pending_event_wait.
8370
8371 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
8372 size.
8373
8374 * widget.c (EmacsFrameSetValues): Add comment.
8375 (EmacsFrameSetCharSize): Just call x_set_window_size.
8376
8377 * gtkutil.c (xg_frame_set_char_size): Flush events and call
8378 x_wait_for_event.
8379 (flush_and_sync): Remove again.
8380 (xg_get_font_name): Suggest monospace if no previous font is known.
8381
8382 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
8383
8384 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
8385 8th bit, since that only made sense in the ASCII world (bug#4751).
8386
8387 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8388
8389 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
8390 processing pending events when event is filtered for input method.
8391 (Bug#3681)
8392
8393 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
8394
8395 * fns.c: Add #endif accidentally removed in previous change.
8396
8397 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
8398
8399 * fns.c: Remove code for unsupported system: MAC_OS.
8400 * image.c: Likewise. Include setjmp.h.
8401
8402 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
8403
8404 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
8405 pixel -1 (bug #4742).
8406
8407 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
8408
8409 * process.c (create_pty): Remove conditionals for no longer
8410 supported systems: UNIPLUS and RTU.
8411
8412 * xterm.c:
8413 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
8414
8415 * alloc.c: Do not define struct catchtag.
8416 * eval.c: Move struct catchtag definition ...
8417 * lisp.h: ... here.
8418
8419 * image.c: Move png.h #include earlier to avoid warnings.
8420
8421 * xterm.c:
8422 * xsmfns.c:
8423 * xselect.c:
8424 * xrdb.c:
8425 * xmenu.c:
8426 * xftfont.c:
8427 * xfont.c:
8428 * xfns.c:
8429 * xfaces.c:
8430 * xdisp.c:
8431 * window.c:
8432 * widget.c:
8433 * w32xfns.c:
8434 * w32uniscribe.c:
8435 * w32term.c:
8436 * w32select.c:
8437 * w32reg.c:
8438 * w32proc.c:
8439 * w32menu.c:
8440 * w32inevt.c:
8441 * w32heap.c:
8442 * w32font.c:
8443 * w32fns.c:
8444 * w32console.c:
8445 * w32.c:
8446 * w16select.c:
8447 * vm-limit.c:
8448 * unexsol.c:
8449 * unexec.c:
8450 * unexcw.c:
8451 * unexaix.c:
8452 * undo.c:
8453 * tparam.c:
8454 * textprop.c:
8455 * terminfo.c:
8456 * terminal.c:
8457 * termcap.c:
8458 * term.c:
8459 * syntax.c:
8460 * sound.c:
8461 * sheap.c:
8462 * search.c:
8463 * scroll.c:
8464 * region-cache.c:
8465 * regex.c:
8466 * ralloc.c:
8467 * process.c:
8468 * print.c:
8469 * nsterm.m:
8470 * nsselect.m:
8471 * nsmenu.m:
8472 * nsimage.m:
8473 * nsfont.m:
8474 * nsfns.m:
8475 * msdos.c:
8476 * minibuf.c:
8477 * menu.c:
8478 * marker.c:
8479 * macros.c:
8480 * keymap.c:
8481 * keyboard.c:
8482 * intervals.c:
8483 * insdel.c:
8484 * indent.c:
8485 * gtkutil.c:
8486 * ftxfont.c:
8487 * ftfont.c:
8488 * fringe.c:
8489 * frame.c:
8490 * fontset.c:
8491 * font.c:
8492 * fns.c:
8493 * floatfns.c:
8494 * filelock.c:
8495 * fileio.c:
8496 * emacs.c:
8497 * editfns.c:
8498 * dosfns.c:
8499 * doprnt.c:
8500 * doc.c:
8501 * dispnew.c:
8502 * dired.c:
8503 * dbusbind.c:
8504 * data.c:
8505 * composite.c:
8506 * coding.c:
8507 * cmds.c:
8508 * cm.c:
8509 * chartab.c:
8510 * charset.c:
8511 * character.c:
8512 * ccl.c:
8513 * category.c:
8514 * casetab.c:
8515 * casefiddle.c:
8516 * callproc.c:
8517 * callint.c:
8518 * bytecode.c:
8519 * buffer.c:
8520 * atimer.c: Include setjmp.h. (Bug#4643)
8521
8522 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
8523
8524 Remove leftover table unibyte_to_multibyte_table.
8525 * character.c (unibyte_to_multibyte_table): Remove.
8526 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
8527 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
8528 * character.h (UNIBYTE_TO_CHAR): New macro.
8529 (MAKE_CHAR_MULTIBYTE): Use it.
8530 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
8531 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
8532 (message_dolog, set_message_1):
8533 * search.c (Freplace_match):
8534 * editfns.c (Fcompare_buffer_substrings):
8535 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
8536 (concat):
8537 * insdel.c (copy_text, count_size_as_multibyte):
8538 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
8539 * term.c (produce_glyphs):
8540 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
8541 * regex.c (RE_CHAR_TO_MULTIBYTE):
8542 * cmds.c (internal_self_insert):
8543 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
8544
8545 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
8546
8547 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
8548
8549 * puresize.h (BASE_PURESIZE): Increase to 1310000.
8550
8551 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
8552
8553 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
8554
8555 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8556
8557 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
8558 still needed under Tiger.
8559
8560 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
8561
8562 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
8563 __Apple__.
8564
8565 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
8566
8567 2009-10-15 Kenichi Handa <handa@m17n.org>
8568
8569 * print.c (print_object): Escape a symbol like "2E10" too.
8570
8571 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
8572
8573 Cleanups and changes for 64-bit compile under Snow Leopard.
8574 Based on suggestions by Erik Charlebois.
8575
8576 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
8577
8578 * nsfont.m (ns_char_width): Replace deprecated call.
8579 (ns_findfonts, nsfont_list_family): Use long format in printf, and
8580 cast argument.
8581 (nsfont_open): Use ns_char_width() everywhere.
8582 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
8583
8584 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
8585
8586 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
8587 where appropriate.
8588
8589 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
8590 where appropriate.
8591 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
8592 Use stringWithUTF8String.
8593 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
8594
8595 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
8596 Add formal protocol mention to inheritance.
8597 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
8598
8599 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
8600 Fix printf format.
8601 (ns_query_color): Use CGFloat where appropriate.
8602 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
8603 (EmacsScroller-mouseDown:): Use long format in printf, and cast
8604 argument.
8605
8606 * config.in (NS_HAVE_NSINTEGER): Drop.
8607
8608 * dbusbind.c (dbus-method-return-internal)
8609 (dbus-method-error-internal): Use long format in printf, and cast
8610 argument.
8611
8612 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
8613 in printf, and cast argument.
8614
8615 * process.c (list_processes_1): Use long format in printf, and
8616 cast argument.
8617
8618 2009-10-11 Glenn Morris <rgm@gnu.org>
8619
8620 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
8621
8622 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
8623
8624 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
8625 menu bar with a small width so it doesn't enlarge the frame.
8626
8627 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
8628
8629 * fontset.c (Fset_fontset_font): Fix typos in error messages.
8630
8631 2009-10-06 Glenn Morris <rgm@gnu.org>
8632
8633 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
8634 SOME_MACHINE_LISP (this enters indirectly via DOC).
8635
8636 2009-10-05 Eli Zaretskii <eliz@gnu.org>
8637
8638 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
8639
8640 2009-10-04 Eli Zaretskii <eliz@gnu.org>
8641
8642 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
8643 Doc fix.
8644
8645 2009-10-03 Martin Rudalics <rudalics@gmx.at>
8646
8647 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
8648
8649 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
8650
8651 * lisp.h (Qdelete_directory_internal): Remove, because it is not
8652 used anymore outside fileio.c.
8653
8654 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
8655
8656 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
8657
8658 * lisp.h (Qdelete_directory_internal):
8659 Declare, instead of Qdelete_directory.
8660
8661 * w32fns.c (Fsystem_move_file_to_trash): Use it.
8662
8663 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
8664
8665 * eval.c (Fcalled_interactively_p): Add `kind' argument.
8666
8667 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
8668
8669 * fileio.c (Fdelete_directory_internal): Rename from
8670 Fdelete_directory. It is not a command anymore. It has no file
8671 name handler.
8672
8673 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
8674
8675 * xdisp.c (get_next_display_element): Use an enum in last change.
8676
8677 2009-09-28 Kenichi Handa <handa@m17n.org>
8678
8679 * xdisp.c (get_next_display_element): Pay attention to
8680 unibyte_display_via_language_environment in handling
8681 Vnobreak_char_display.
8682
8683 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8684
8685 * nsterm.h (ns_app_name): New extern variable.
8686
8687 * nsterm.m (ns_app_name): New variable.
8688 (ns_term_init): Set and use it.
8689 (ns_term_shutdown): Use it.
8690
8691 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
8692 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
8693
8694 * nsfns.m (ns_set_name_iconic, ns_set_name)
8695 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
8696 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
8697
8698 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
8699 Remove double-casting in client_data comparison.
8700
8701 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8702
8703 * keyboard.c (make_lispy_event): Remember last wheel direction.
8704 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
8705
8706 2009-09-26 Glenn Morris <rgm@gnu.org>
8707
8708 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
8709 internal.elc. Add term/pc-win.elc.
8710 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
8711 term/x-win.elc.
8712 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
8713 term/w32-win.elc.
8714 (NS_SUPPORT): New.
8715 (lisp): Add NS_SUPPORT.
8716 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
8717
8718 2009-09-25 David Reitter <david.reitter@gmail.com>
8719
8720 * nsmenu.m (EmacsMenu-clear): Recognize application menu
8721 on Mac OS X 10.6+ (bug#4513).
8722
8723 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
8724
8725 * frame.c (xrdb_get_resource): Return nil for empty string resources;
8726 some parts of Emacs code (like font selection) don't grok them.
8727 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
8728
8729 2009-09-24 Andreas Schwab <schwab@redhat.com>
8730
8731 * coding.c (decode_coding_iso_2022): Fix operator precedence.
8732
8733 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
8734
8735 * dired.c (Fdirectory_files): Fix typo in docstring.
8736
8737 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8738
8739 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
8740 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
8741 (EmacsScroller-setPosition:portion:whole:): Remove -display call
8742 under GNUstep.
8743 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
8744
8745 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
8746 glyph advancement.
8747
8748 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8749
8750 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
8751 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
8752
8753 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
8754 deleted (bug #4492).
8755
8756 * nsfont.m (Vns_reg_to_script): New lisp variable.
8757 (syms_of_nsfont): Declare it.
8758 (ns_registry_to_script): New function.
8759 (ns_get_req_script): Call it.
8760 (ns_findfonts): Don't give up on non-unicode registry.
8761
8762 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
8763
8764 2009-09-20 Tom Tromey <tromey@redhat.com>
8765
8766 * eval.c (find_handler_clause): Make stack-trace-on-error work in
8767 batch mode (bug#4228).
8768
8769 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
8770
8771 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
8772 carefully. (Bug #4339)
8773
8774 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
8775
8776 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
8777
8778 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
8779
8780 * emacs.c (inhibit_x_resources): Update doc string for NS.
8781 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
8782 legacy code for -NXHost. Fix error printf in daemon case.
8783
8784 * nsterm.h (ns_no_defaults): Remove.
8785
8786 * nsterm.m (ns_no_defaults): Remove.
8787 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
8788 (ns_use_qd_smoothing): Remove legacy variable.
8789 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
8790 don't update the NSWindow itself.
8791 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
8792 state detection and store user rect ourselves. (Bug #3581)
8793
8794 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
8795 ns_use_qd_smoothing.
8796
8797 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
8798 platform versions. Drop support for emacs-20-style face specs.
8799 (x-close-connection): Drop PSFlush() under OS X.
8800 (x-focus-frame): Activate the app first. (Bug #4180)
8801
8802 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
8803
8804 * emacs.c (inhibit_x_resources): New variable.
8805 (main) [HAVE_NS]: Don't process --quick command line option.
8806 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
8807
8808 * lisp.h (inhibit_x_resources): Declare it extern.
8809
8810 * w32reg.c (x_get_string_resource):
8811 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
8812
8813 2009-09-17 Eli Zaretskii <eliz@gnu.org>
8814
8815 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
8816 Add lisp/term/internal.elc.
8817
8818 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
8819
8820 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
8821 (bug#4461).
8822
8823 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
8824
8825 * puresize.h (BASE_PURESIZE): Increase to 1290000.
8826
8827 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
8828 (OBJECTS_MACHINE): Remove, unused.
8829
8830 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
8831
8832 * frame.c (x_get_resource_string): Remove unused.
8833
8834 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
8835
8836 * xterm.c (x_new_font): Call change_frame_size before calling
8837 x_set_window_size, in case frame size won't change.
8838
8839 * frame.c (x_set_font): Remove dead code.
8840
8841 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
8842
8843 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
8844
8845 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8846
8847 * lread.c (Fload): Don't output a message after loading an obsolete
8848 package any more (done in Lisp now).
8849
8850 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
8851
8852 * fns.c (syms_of_fns): Doc fix (Bug#4227).
8853
8854 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8855
8856 * keymap.c (Fwhere_is_internal): Use nconc2.
8857
8858 2009-09-11 Alan Mackenzie <acm@muc.de>
8859
8860 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
8861 batch mode.
8862
8863 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
8864
8865 * xdisp.c (display_mode_element): Detect cycles.
8866
8867 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
8868
8869 * keymap.c (where_is_internal): Don't erroneously return nil right after
8870 filling the cache.
8871 (where_is_internal_1): Fix up typo.
8872
8873 2009-09-11 Glenn Morris <rgm@gnu.org>
8874
8875 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
8876 share a common doc-string.
8877
8878 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
8879
8880 * keymap.c (get_keymap): Return the actual keymap symbol rather than
8881 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
8882
8883 * keymap.c (QCadvertised_binding): New constant.
8884 (syms_of_keymap): Initialize it.
8885 (Fwhere_is_internal): Try and use bindings from :advertised-binding
8886 if applicable.
8887
8888 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
8889
8890 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
8891 (parse_menu_item): Streamline since bindings are recomputed all the
8892 time anyway. Don't bother checking Vdefine_key_rebound_commands any
8893 more and don't support lmenu's menu-alias any more either.
8894
8895 * keymap.c (where_is_internal_data): Make noindirect a boolean.
8896 (where_is_internal): Strip it down to only traverse the keymaps.
8897 Move the cache handling from Fwhere_is_internal to here.
8898 (Fwhere_is_internal): Move the handling of remapping and the choice of
8899 the best binding from where_is_internal to here.
8900 Unify the cached/noncached paths, so remapping is also handled
8901 correctly when the cache is used, and so the cache can be used to
8902 speed up remap-handling when applicable.
8903 Give preference to non-remapped bindings.
8904 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
8905 non-remapped bindings.
8906 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
8907 command remapping.
8908
8909 * xdisp.c (display_mode_element): Move list length limit from 50 to
8910 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
8911
8912 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
8913
8914 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
8915
8916 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
8917
8918 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
8919 (Bug#4334)
8920
8921 * keymap.c (where_is_internal): Filter out shadowed remappings.
8922 Assume that where_is_internal returns unshadowed bindings to simplify
8923 the code and get rid of the gotos. Use ASIZE.
8924
8925 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
8926
8927 * xterm.c (x_focus_changed): If we get a focusout and pointer
8928 is invisible, make it visible.
8929
8930 * xterm.h: Remove condition for declaration of
8931 x_*_window_to_frame.
8932
8933 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
8934
8935 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
8936 initial terminal as well.
8937
8938 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
8939
8940 * xterm.h: Rename x_non_menubar_window_to_frame to
8941 x_menubar_window_to_frame.
8942
8943 * xterm.c: Remove declarations also in xterm.h.
8944 (XTmouse_position): Do not return valid positions
8945 for clicks in the menubar and the toolbar for Gtk+.
8946
8947 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
8948 if the widget for the event has the same top level as a frame,
8949 return the frame.
8950 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
8951 internal windows, bug #4122.
8952 (x_non_menubar_window_to_frame): Remove.
8953
8954 2009-09-02 Glenn Morris <rgm@gnu.org>
8955
8956 * buffer.c (default-major-mode): Move most of the doc from here...
8957 (major-mode): ... to here.
8958
8959 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
8960
8961 * process.c (wait_reading_process_output): Keep the descriptor
8962 when pty is used by a non-child process, e.g., in I/O buffer of
8963 GDB this allows inferior to be restarted.
8964
8965 2009-08-29 Eli Zaretskii <eliz@gnu.org>
8966
8967 * xdisp.c (redisplay_internal): Remove redundant test and collapse
8968 both branches into one.
8969
8970 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
8971
8972 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
8973 (main): Use enable-multibyte-characters rather than
8974 default-enable-multibyte-characters. Output a warning message when
8975 running a unibyte session.
8976
8977 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8978
8979 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
8980 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
8981 (copy_data_segment): Also copy __program_vars section.
8982 (copy_dyld_info) [LC_DYLD_INFO]: New function.
8983 (dump_it) [LC_DYLD_INFO]: Use it.
8984
8985 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
8986
8987 2009-08-28 Eli Zaretskii <eliz@gnu.org>
8988
8989 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
8990 $(SRC)/buildobj.h.
8991 (buildobj.h): Renamed from $(SRC)/buildobj.h.
8992 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
8993 $(SRC)/buildobj.h.
8994 (clean): Add buildobj.h.
8995
8996 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
8997
8998 * print.c (print_object): Set escapeflag to 1 when printing
8999 hashtable keys and values.
9000
9001 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
9002
9003 * lread.c (read_integer): Use doubles (and potentially return a float
9004 number) as we do in string-to-number.
9005 (read1): Use strtol to read integers, signal errors on strtol's
9006 overflow and use floats if strtol's output is too large for
9007 Elisp integers.
9008
9009 2009-08-27 Eli Zaretskii <eliz@gnu.org>
9010
9011 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
9012 (make-buildobj-SH): Fix last change.
9013 (SRC): Move to before where it's first used.
9014
9015 2009-08-27 Kenichi Handa <handa@m17n.org>
9016
9017 * process.c (send_process): Use encode_coding_object instead of
9018 encode_coding_string to perform eol-conversion even if the string
9019 is unibyte.
9020
9021 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
9022 character.
9023
9024 * cmds.c (Fself_insert_command): Avoid unnecessay
9025 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
9026
9027 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
9028
9029 * callproc.c (Fcall_process): Remove always true #if.
9030
9031 * lisp.h: Replace #if 0 code for checking with text pointing to
9032 the --enable-checking configure flag.
9033
9034 * emacs.c (main): Mention the --enable-profiling configure flag
9035 instead of using CFLAGS.
9036
9037 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
9038
9039 * Makefile.in (buildobj.h): New target.
9040 (doc.o): Depend on it.
9041 (temacs${EXEEXT}): Don't generate buildobj.lst.
9042 (mostlyclean): Delete buildobj.h, not buildobj.lst.
9043 * makefile.w32-in ($(SRC)/buildobj.h): New target.
9044 ($(BLD)/doc.$(O)): Depend on it.
9045 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
9046 provided by Eli Zaretskii.)
9047 ($(TEMACS)): Don't generate buildobj.lst.
9048 * doc.c: Include buildobj.h.
9049 (buildobj): New static variable.
9050 (Fsnarf_documentation): Use it, instead of opening and reading
9051 buildobj.lst.
9052
9053 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
9054
9055 * dbusbind.c (Fdbus_call_method)
9056 (Fdbus_call_method_asynchronously): Use English numeric format for
9057 timeout values in doc string.
9058
9059 2009-08-25 Kenichi Handa <handa@m17n.org>
9060
9061 * alloc.c (mark_char_table): New function.
9062 (mark_object): Use mark_char_table for a char-table.
9063
9064 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
9065 (CHAR_TABLE_REF): Use it.
9066
9067 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
9068
9069 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
9070 before invoking the newly build emacs to check for load-path
9071 shadowing.
9072
9073 2009-08-22 Glenn Morris <rgm@gnu.org>
9074
9075 * Makefile.in (bootstrap_exe): New variable.
9076 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
9077 Use ${bootstrap_exe}.
9078
9079 2009-08-22 Eli Zaretskii <eliz@gnu.org>
9080
9081 * coding.h (encode_coding_string): Don't encode unibyte strings.
9082 (Bug#4047)
9083
9084 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
9085
9086 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
9087
9088 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
9089 intended as hotfix only.
9090 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
9091
9092 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9093
9094 * nsterm.m (ns_get_color): Update documentation properly for last
9095 change, and clean up loose ends in the code left by it. Fix
9096 longstanding bug with 16-bit hex parsing, and add support for
9097 yet another X11 format (rgb:r/g/b) for compatibility.
9098 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
9099 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
9100
9101 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
9102
9103 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
9104
9105 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
9106
9107 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
9108 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
9109 (xd_initialize, xd_pending_messages): Check, whether
9110 $DBUS_SESSION_BUS_ADDRESS is set.
9111
9112 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9113
9114 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
9115
9116 * nsterm.m (ns_get_color): Remove incompatible color formats again.
9117
9118 2009-08-20 Glenn Morris <rgm@gnu.org>
9119
9120 * emacs.c (system-type): Doc fix.
9121
9122 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
9123
9124 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
9125 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
9126
9127 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
9128
9129 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
9130 New functions.
9131 (xd_initialize): Revert change from 2009-08-16.
9132
9133 2009-08-18 Kenichi Handa <handa@m17n.org>
9134
9135 * fontset.c (Ffontset_font): If a nil element is found in a
9136 font-group vector, return nil.
9137
9138 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
9139
9140 * process.c (status_notify): Don't perform redisplay.
9141 (Fdelete_process, list_processes_1, process_send_signal):
9142 Expliticly perform redisplay.
9143 (wait_reading_process_output): Always check process status, but
9144 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
9145
9146 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
9147
9148 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
9149 (XFLOAT_INIT): New macro for storing a float value.
9150 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
9151 * fns.c (sxhash): Copy out the value of a float in order to
9152 examine its bytes.
9153 * dbusbind.c (xd_append_arg): Likewise.
9154
9155 * emacs.c (main): Don't call syms_of_data twice.
9156
9157 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
9158
9159 * dbusbind.c (xd_initialize): Add connection file descriptor to
9160 input_wait_mask, in order to let select() detect, whether a new
9161 message has been arrived.
9162 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
9163
9164 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
9165
9166 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
9167 New functions.
9168
9169 * lisp.h (xd_pending_messages): Declare.
9170
9171 * keyboard.c (readable_events): Call xd_pending_messages.
9172
9173 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
9174
9175 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
9176
9177 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
9178
9179 * buffer.c (set_buffer_internal_1)
9180 (swap_out_buffer_local_variables): Check for unbound local
9181 variables (Bug#4138).
9182
9183 2009-08-14 Eli Zaretskii <eliz@gnu.org>
9184
9185 * process.c (create_pty): Fix last change.
9186
9187 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
9188
9189 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
9190 (xbm_load_image): Caller changed.
9191 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
9192
9193 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
9194
9195 * process.c (create_pty): New function.
9196 (Fstart_process): Use it to allow Emacs to just associate a pty
9197 with the buffer. See associated change in gdb-mi.el.
9198 (list_processes_1): Deal with no program name.
9199 (start_process_unwind): Use pid == -2 to mean no process.
9200
9201 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
9202
9203 * cmds.c (nonundocount): New global variable.
9204 (keys_of_cmds): Initialize it.
9205 (Fself_insert_command): Use it to combine upto 20 sequential chars
9206 into a single undo entry, just like the Qself_insert_command code in
9207 keyboard.c does.
9208 Call frame_make_pointer_invisible, also like the Qself_insert_command
9209 code in keyboard.c does.
9210 * keyboard.c (command_loop_1): Use the new global nonundocount rather
9211 than its own local replacement for it.
9212
9213 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
9214
9215 * fns.c (concat): Don't re-set string length to its current value.
9216
9217 * coding.h (decode_coding_string, encode_coding_string):
9218 Use SBYTES macro.
9219
9220 * doprnt.c (doprnt_lisp): Delete unused function.
9221 (doprnt): Merge with doprnt1, discarding lispstrings code.
9222 * lisp.h (doprnt_lisp): Don't declare.
9223
9224 2009-08-07 Juri Linkov <juri@jurta.org>
9225
9226 * puresize.h (BASE_PURESIZE): Increase to 1270000.
9227
9228 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
9229
9230 * print.c (syms_of_print): Undo previous change.
9231
9232 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
9233
9234 * lread.c (read1, syms_of_lread): Read hashtables back from the
9235 readable format.
9236
9237 * print.c (print_preprocess, print_object): Print hashtables fully
9238 and readably.
9239 (syms_of_print): Provide 'hashtable-print-readable.
9240
9241 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9242
9243 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
9244 no family set.
9245 (nsfont_open): Handle case when entity has no family.
9246
9247 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9248
9249 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
9250 element, not a list, for match case.
9251
9252 2009-07-28 Kenichi Handa <handa@m17n.org>
9253
9254 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
9255 rigidly.
9256
9257 * xfont.c (xfont_list_pattern): Don't ignore the return value of
9258 font_parse_xlfd. Check font properties more rigidly.
9259
9260 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
9261
9262 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
9263 bsd-common.h.
9264
9265 2009-07-27 Kenichi Handa <handa@m17n.org>
9266
9267 * xfaces.c (face_with_height): Call font_clear_prop.
9268
9269 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
9270
9271 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
9272
9273 * xterm.c (x_term_init): Use Qx.
9274
9275 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
9276
9277 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
9278 (ns_get_color): Revert 2009-07-16 change.
9279
9280 2009-07-25 Eli Zaretskii <eliz@gnu.org>
9281
9282 * lread.c (syms_of_lread) <force_load_messages>: New variable.
9283 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
9284
9285 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
9286
9287 * coding.h (decode_coding_string, encode_coding_string):
9288 Use SCHARS macro.
9289
9290 * lread.c: Rewrite 2009-07-21 changes.
9291 (load_depth): Delete.
9292 (Qload_in_progress): New variable.
9293 (load_unwind): Don't reference load_depth or load_in_progress.
9294 (Fload): Likewise; specbind Qload_in_progress instead.
9295 (init_lread): Don't initialize load_depth.
9296 (syms_of_lread): Initialize and protect Qload_in_progress.
9297
9298 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9299
9300 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
9301
9302 2009-07-23 Yavor Doganov <yavor@gnu.org>
9303
9304 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
9305
9306 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
9307
9308 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
9309 Bugs 3792, 3720, 2402.
9310 (ns_lookup_indexed_color): Check for bad index.
9311 (ns_index_color): Init unused slot to 0.
9312 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
9313 Bug 3714, possibly 3082.
9314
9315 2009-07-22 Jason Rumney <jasonr@gnu.org>
9316
9317 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
9318 Position IME window at cursor (Bug#2570).
9319 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
9320 (globals_of_w32fns): Dynamically load functions required above.
9321
9322 * w32term.c (w32_draw_window_cursor): Send message to reposition
9323 any IME window.
9324
9325 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
9326
9327 * fileio.c: Revert 2009-07-16 changes.
9328 (Vauto_save_include_big_deletions): New variable.
9329 (Fdo_auto_save): Disable auto-save only if
9330 auto-save-include-big-deletions is nil.
9331
9332 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
9333
9334 * xdisp.c (move_it_to): For continued lines ending in a tab, take
9335 the overflowed pixels into account (Bug#3879).
9336
9337 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
9338
9339 * lread.c (load_depth): New variable.
9340 (Fload, load_unwind, init_lread): Set it to the load recursion
9341 depth; set load_in_progress as a simple boolean based on the
9342 current load_depth. (Bug#3892)
9343
9344 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9345
9346 * nsfont.m (ns_has_attribute): Remove.
9347 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
9348
9349 2009-07-18 Juri Linkov <juri@jurta.org>
9350
9351 * process.c (Fset_process_query_on_exit_flag): Mention killing
9352 a buffer in docstring.
9353
9354 2009-07-17 Kenichi Handa <handa@m17n.org>
9355
9356 * casetab.c (shuffle): Fix the logic of setting up the cycle.
9357
9358 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9359
9360 * nsfns.m (Fns_set_alpha): Remove function.
9361 (syms_of_nsfns): Don't defsubr it.
9362
9363 * nsterm.m (ns_get_color): Remove incompatible color formats.
9364 (ns_color_to_lisp): Generate #rrggbb color format string.
9365
9366 2009-07-16 Richard Stallman <rms@gnu.org>
9367
9368 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
9369 (Fset_buffer_auto_saved): Handle save_length = -2.
9370
9371 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
9372
9373 * xterm.c (Qx_gtk_map_stock): New var.
9374
9375 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
9376 of calling intern each time.
9377
9378 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9379
9380 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
9381 does tiling.
9382
9383 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
9384
9385 2009-07-14 Kenichi Handa <handa@m17n.org>
9386
9387 * font.c (font_vconcat_entity_vectors): New function.
9388 (struct font_sort_data): New member font_driver_preference.
9389 (font_compare): Check font_driver_preference.
9390 (font_sort_entities): The format of the first argument changed.
9391 (font_delete_unmatched): Likewise.
9392 (font_list_entities): The return type changed.
9393 (font_select_entity): The format of the second argument changed.
9394 (font_find_for_lface): Adjuste for the above changes.
9395 Don't suppress the checking of C even if the repertory supports it.
9396 (Flist_fonts): Adjust for the above changes.
9397
9398 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
9399 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
9400 Reject a font who has adstyle property that is different from a
9401 langname derived from registry property.
9402 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
9403
9404 2009-07-13 Eli Zaretskii <eliz@gnu.org>
9405
9406 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
9407 local copy of dirfilename.
9408
9409 2009-07-13 Kenichi Handa <handa@m17n.org>
9410
9411 * chartab.c (sub_char_table_ref_and_range): Fix the range check
9412 against max_char.
9413
9414 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
9415 calling XSYMBOL (sym).
9416
9417 2009-07-11 Eli Zaretskii <eliz@gnu.org>
9418
9419 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
9420 New function.
9421 (directory_files_internal) [WINDOWSNT]:
9422 Bind w32-get-true-file-attributes to either t or nil, depending whether
9423 the filesystem of the directory is fast or slow.
9424
9425 * w32.c (logon_network_drive): Don't assume PATH is an absolute
9426 file name.
9427 (is_slow_fs): New function.
9428 (stat): Use it to determine whether to issue more system calls to
9429 get accurate file attributes, when w32-get-true-file-attributes is
9430 `local'.
9431
9432 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
9433
9434 * xfns.c (Fx_select_font): Remember last font selected in
9435 x_last_font_name and use that the next time. Also try the frame
9436 parameter font-parameter as default to the font dialog.
9437
9438 2009-07-10 Kenichi Handa <handa@m17n.org>
9439
9440 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
9441
9442 2009-07-09 Eli Zaretskii <eliz@gnu.org>
9443
9444 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
9445
9446 * w32.c (stat): Treat UNC file names as residing on remote
9447 drives. (Bug#3542)
9448
9449 2009-07-09 Kenichi Handa <handa@m17n.org>
9450
9451 * fontset.c (fontset_find_font): Fix previous change.
9452
9453 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
9454
9455 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
9456 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
9457 error flag.
9458
9459 2009-07-08 Kenichi Handa <handa@m17n.org>
9460
9461 * fontset.c (fontset_find_font): Fix the logic of handling
9462 charset_matched.
9463 (font_for_char): Delete unused var.
9464 (generate_ascii_font_name): Delete it.
9465
9466 * coding.h (JIS_TO_SJIS2): Fix the code range check.
9467
9468 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
9469 (encode_coding_sjis): Fix the code range check.
9470
9471 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
9472
9473 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
9474 (Fexpand_file_name): Copy string data properly (Bug#3772).
9475
9476 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
9477
9478 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
9479 first MapNotify.
9480
9481 2009-07-07 Kenichi Handa <handa@m17n.org>
9482
9483 * character.h (unibyte_has_multibyte_table): Delete extern.
9484 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
9485
9486 * charset.c (Fset_charset_priority): Update charset_unibyte.
9487 (syms_of_charset): Initialize charset_unibyte.
9488
9489 * character.c (unibyte_has_multibyte_table): Delete it.
9490 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
9491 charset_unibyte.
9492 (multibyte_char_to_unibyte_safe): Likewise.
9493 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
9494
9495 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
9496 (x_produce_glyphs): Likewise.
9497
9498 * .gdbinit (xcharset): Fix the treating $arg0.
9499
9500 2009-07-04 Eli Zaretskii <eliz@gnu.org>
9501
9502 Emulation of `getloadavg' on MS-Windows.
9503 * w32.c: Include float.h.
9504 (g_b_init_get_native_system_info, g_b_init_get_system_times)
9505 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
9506 (get_native_system_info, get_system_times): New functions.
9507 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
9508 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
9509 (globals_of_w32): Initialize g_b_init_get_native_system_info,
9510 g_b_init_get_system_times, and num_of_processors.
9511
9512 2009-07-03 Jason Rumney <jasonr@gnu.org>
9513
9514 * w32term.c (w32_initialize): Use standard types.
9515
9516 2009-07-03 Eli Zaretskii <eliz@gnu.org>
9517
9518 * dired.c (Ffile_attributes): Decode user and group names by the
9519 locale's encoding. (Bug#3443)
9520
9521 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
9522
9523 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
9524 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
9525
9526 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
9527
9528 * term.c (init_tty): Remove spurious #ifdef.
9529
9530 * m/mips.h: Mention this file is also used for netbsd.
9531 * m/pmax.h: Remove file.
9532
9533 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
9534
9535 * xterm.h (struct x_display_info): Add invisible_cursor.
9536 (struct x_output): Add current_cursor.
9537
9538 * xterm.c (XTtoggle_invisible_pointer): New function.
9539 (x_define_frame_cursor): Don't define cursor if invisible or the
9540 same as before. Set current_cursor.
9541 (x_create_terminal): Set toggle_invisible_pointer_hook.
9542
9543 * xfns.c (make_invisible_cursor): New function.
9544 (x_set_mouse_color): Call make_invisible_cursor.
9545 Set current_cursor.
9546 (x_window): Set current_cursor.
9547
9548 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
9549
9550 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
9551 inserting a character.
9552 (read_avail_input): Call frame_make_pointer_visible.
9553
9554 * frame.c (Vmake_pointer_invisible): New variable.
9555 (frame_make_pointer_invisible, frame_make_pointer_visible):
9556 New functions.
9557 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
9558
9559 * frame.h: Declare frame_make_pointer_invisible and
9560 frame_make_pointer_visible.
9561 (struct frame): Add pointer_invisible.
9562
9563 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
9564
9565 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
9566 frame isn't visible.
9567 (xg_frame_resized): If width/height is -1, get size of window
9568 from X server.
9569
9570 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
9571 for MapNotify.
9572
9573 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
9574 here or call change_frame_size. Just call flush_and_sync.
9575 (flush_and_sync): Reintroduce.
9576
9577 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
9578
9579 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
9580
9581 * xterm.c (x_handle_net_wm_state): Also look for sticky.
9582 (x_term_init): Initialize Xatom_net_wm_state_sticky.
9583
9584 * frame.h: Declare Qsticky.
9585
9586 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
9587
9588 * nsfns.m (ns_frame_parm_handlers): Ditto.
9589
9590 * frame.c: Declare Qsticky.
9591 (frame_parms): Add sticky.
9592
9593 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
9594
9595 * xterm.h: Declare x_set_sticky.
9596
9597 * xterm.c (x_set_sticky): New function.
9598
9599 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
9600 (xg_tool_bar_menu_proxy): Attach enter/leave events to
9601 xg_tool_bar_proxy_help_callback.
9602
9603 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
9604
9605 * frame.c: Qmaximized is new.
9606 (x_set_frame_parameters): Do not handle fullscreen specially.
9607 Only set width and height if explicitly set.
9608 (x_set_fullscreen): Handle Qmaximized.
9609 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
9610 (syms_of_frame): Initialize Qmaximized.
9611
9612 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
9613 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
9614
9615 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
9616 for Expose event. Add call to x_check_fullscreen for MapNotify event.
9617 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
9618 set gravity to NorthWestGravity when USE_GTK.
9619 (set_wm_state): New function.
9620 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
9621 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
9622 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
9623 or the case when no window manager is running. That means remove calls
9624 to x_real_positions and x_fullscreen_adjust.
9625
9626 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
9627 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
9628 flush_and_sync.
9629 (xg_height_changed): New function.
9630 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
9631 and gtk_window_set_policy. Set frame gravity after parsing the
9632 geometry string.
9633 (xg_update_frame_menubar, free_frame_menubar)
9634 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
9635 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
9636 Remove calls to xg_frame_set_char_size.
9637
9638 2009-07-01 Kenichi Handa <handa@m17n.org>
9639
9640 * keyboard.c (decode_keyboard_code): New function.
9641 (tty_read_avail_input): Decode the input bytes if necessary.
9642
9643 * coding.c (setup_coding_system):
9644 Initialize coding->carryover_bytes to 0.
9645 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
9646 use Qno_conversion.
9647
9648 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9649
9650 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
9651
9652 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
9653
9654 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
9655
9656 2009-06-30 Jason Rumney <jasonr@gnu.org>
9657
9658 * w32term.c (w32_initialize): Use GetModuleHandle for library that
9659 is already loaded.
9660 Set user model ID if supported (bug#1849).
9661
9662 2009-06-29 Jim Meyering <meyering@redhat.com>
9663
9664 Remove useless if-before-xfree test.
9665 * nsfont.m (nsfont_close): Remove useless test.
9666 * term.c (delete_tty): Likewise.
9667 * w32.c (system_process_attributes): Likewise.
9668 * w32font.c (w32font_close): Likewise.
9669 * xfaces.c (x_free_gc): Likewise.
9670 * xselect.c (buffer): Likewise.
9671
9672 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
9673
9674 * process.c (send_process): Keep decoded string in a local
9675 variable and protect it from GC. (Bug#3521)
9676
9677 2009-06-28 Eli Zaretskii <eliz@gnu.org>
9678
9679 * term.c (create_tty_output) [MSDOS]: #ifdef away.
9680 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
9681
9682 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
9683
9684 * xdisp.c (start_display, handle_face_prop)
9685 (move_it_vertically_backward, cursor_row_fully_visible_p)
9686 (redisplay_window, try_window_id, produce_image_glyph):
9687 Delete some #ifdef-ed out code chunks that are now obsolete.
9688
9689 * xterm.c (x_update_window_begin, x_new_focus_frame)
9690 (x_scroll_bar_handle_click, handle_one_xevent)
9691 (handle_one_xevent, XTread_socket, x_focus_on_frame)
9692 (x_make_frame_visible, x_make_frame_invisible)
9693 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
9694 code chunks that are now obsolete.
9695
9696 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
9697
9698 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
9699 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
9700 for hours, when optimzation is enabled.
9701 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
9702 (xd_read_message): Make them static.
9703
9704 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
9705
9706 * term.c (turn_on_face): Allow simultaneously bold and dim
9707 terminal faces (Bug#3530).
9708
9709 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
9710
9711 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
9712
9713 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
9714 truncation glyphs (Bug#3686).
9715
9716 2009-06-27 Glenn Morris <rgm@gnu.org>
9717
9718 * m/pmax.h: Restore file, with only netbsd portions.
9719
9720 2009-06-26 David Reitter <david.reitter@gmail.com>
9721
9722 * nsterm.m (keydown): Avoid infinite loop.
9723
9724 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
9725
9726 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
9727 the arg FORCE_SYMBOL.
9728
9729 2009-06-25 Kenichi Handa <handa@m17n.org>
9730
9731 * fontset.c (fontset_find_font): When a usable rfont_def is found
9732 in a fallback font-group, make it the first element of the group.
9733
9734 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
9735
9736 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
9737
9738 2009-06-24 Kenichi Handa <handa@m17n.org>
9739
9740 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
9741 set for C.
9742 (fontset_font): Record the availability of a font for C both in
9743 the realized fontsets of the current one and the default one.
9744
9745 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
9746
9747 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
9748 conditional, it is always defined on AIX.
9749
9750 2009-06-23 Miles Bader <miles@gnu.org>
9751
9752 * window.c (Vrecenter_redisplay): New variable.
9753 (syms_of_window): Initialize it.
9754 (Qtty): New extern declaration.
9755 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
9756
9757 2009-06-23 Jim Meyering <meyering@redhat.com>
9758
9759 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
9760 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
9761 pointer dereferences are guaranteed to be valid.
9762
9763 2009-06-23 Kenichi Handa <handa@m17n.org>
9764
9765 * emacs.c (main): Call init_font ().
9766
9767 * font.h (Vfont_log): Extern it.
9768 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
9769
9770 * font.c (font_sort_entities, font_list_entities)
9771 (font_matching_entity, font_open_entity)
9772 (font_close_object): Change font_add_log to FONT_ADD_LOG.
9773 (Vfont_log): Delete static.
9774 (font_log_env_checked): Delete this variable.
9775 (font_add_log): Don't check font_log_env_checked.
9776 (font_deferred_log): Check Vfont_log.
9777 (init_font): New function.
9778
9779 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
9780
9781 * w32font.c: Change font_add_log to FONT_ADD_LOG.
9782
9783 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
9784
9785 * xfont.c: Change font_add_log to FONT_ADD_LOG.
9786
9787 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
9788 (face_for_char): Don't call font_deferred_log here.
9789 (font_for_char): Likewise.
9790
9791 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
9792
9793 * w32term.c (x_draw_glyph_string): Use the glyph string's width
9794 rather than its background_width for drawing the overline and
9795 underline (Bug#489).
9796
9797 * xterm.c (x_draw_glyph_string): Use the glyph string's width
9798 rather than its background_width for drawing the overline and
9799 underline (Bug#489).
9800 (xg_default_icon_file): New variable.
9801 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
9802 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9803
9804 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
9805 (load_overlay_strings): Remove externs.
9806 (fast_find_position): Function deleted.
9807 (mouse_face_from_buffer_pos): New function, based on
9808 fast_find_position. Correctly handle before-strings,
9809 display-strings, and after-strings (Bug#1220).
9810 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
9811
9812 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
9813
9814 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
9815 (move_it_in_display_line_to, move_it_in_display_line_to)
9816 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
9817
9818 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
9819
9820 * Branch for 23.1.
9821
9822 2009-06-21 Jason Rumney <jasonr@gnu.org>
9823
9824 * w32term.c (keyboard_codepage): New static variable.
9825 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
9826 (w32_read_socket) [WM_CHAR]: Use it to decode character
9827 input (bug#3237).
9828 (w32_initialize): Initialize it.
9829 (codepage_for_locale): New function.
9830
9831 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
9832
9833 * process.c (status_message): Pass Faset index argument as a lisp
9834 object, so as to work with USE_LISP_UNION_TYPE.
9835
9836 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9837
9838 * coding.c (Ffind_coding_systems_region_internal):
9839 Cache checked characters.
9840
9841 2009-06-18 Kenichi Handa <handa@m17n.org>
9842
9843 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
9844
9845 2009-06-18 Andreas Schwab <aschwab@redhat.com>
9846
9847 * xdisp.c (redisplay_internal): Check that the frame is still
9848 live after redisplay of its windows.
9849 (redisplay_windows): Check that the window is still live.
9850
9851 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
9852
9853 * coding.c (detect_coding_utf_16): Fix previous change.
9854
9855 2009-06-16 Kenichi Handa <handa@m17n.org>
9856
9857 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
9858 UTF-16 by checking the dispersion of Eth and Oth bytes.
9859
9860 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
9861
9862 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
9863
9864 2009-06-15 Kenichi Handa <handa@m17n.org>
9865
9866 * process.c (status_message): Fix previous change. Be sure to
9867 decode a localized string.
9868
9869 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9870
9871 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
9872 add comment explaining why.
9873
9874 2009-06-14 Sidney Markowitz <sidney@sidney.com>
9875
9876 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
9877
9878 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
9879
9880 * nsfont.m (ns_attribute_value): Remove.
9881 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
9882 (ns_has_attribute): Shrink the normal range.
9883 (ns_findfonts): Don't worry about requested spec in determining
9884 need for synthItal.
9885 (ns_get_covering_families): Retain scriptToFamilies.
9886
9887 2009-06-14 Seiji Zenitani <zenitani@mac.com>
9888
9889 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
9890
9891 2009-06-11 Kenichi Handa <handa@m17n.org>
9892
9893 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
9894 overhang for the static composition case.
9895
9896 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9897
9898 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
9899 overhang for the automatic composition case.
9900
9901 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
9902 composition case.
9903
9904 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
9905
9906 * xdisp.c (get_next_display_element): When handling wrap-prefix
9907 and line-prefix, treat \n as a control character (bug#3502).
9908
9909 2009-06-10 Kenichi Handa <handa@m17n.org>
9910
9911 * font.c (font_parse_family_registry): Fix for one-char foundry.
9912 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
9913
9914 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
9915
9916 * process.c (status_message): Fix handling of multibyte signal
9917 string (Bug#3499).
9918
9919 2009-06-09 Jim Meyering <meyering@redhat.com>
9920
9921 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
9922 color name is missing.
9923
9924 2009-06-09 Kenichi Handa <handa@m17n.org>
9925
9926 * charset.c (Fmap_charset_chars): In docstring, state clearly that
9927 FROM-CODE and TO-CODE are codepoints of CHARSET.
9928
9929 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
9930
9931 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
9932
9933 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
9934
9935 Changes to support :script/:lang/:otf in NS font driver.
9936 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
9937 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
9938 indicate not part of font driver interface, and change callers.
9939 (ns_get_family): Remove pointless null check.
9940 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
9941 ns_spec_to_descriptor, ns_descriptor_to_entity.
9942 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
9943 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
9944 (ns_spec_to_descriptor, ns_descriptor_to_entity)
9945 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
9946 (ns_get_req_script, ns_accumulate_script_ranges)
9947 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
9948 New functions.
9949 (nsfont_list, nsfont_match): Use ns_findfonts.
9950 (nsfont_open): Use font descriptor instead of traits.
9951 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
9952 (dump_glyphstring): Rename to ns_dump_glyphstring.
9953
9954 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
9955
9956 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
9957
9958 * fontset.c (fontset_from_font): Remove NS-specific code.
9959
9960 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
9961
9962 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
9963 nonactive windows.
9964
9965 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
9966
9967 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
9968
9969 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
9970
9971 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
9972
9973 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
9974
9975 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
9976 account for the overflowing of newlines into the last glyph on the
9977 display line (Bug#3482).
9978
9979 2009-06-05 David Reitter <david.reitter@gmail.com>
9980
9981 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
9982 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
9983 Fns_selection_exists_p, Fns_selection_owner_p.
9984
9985 2009-06-03 Jason Rumney <jasonr@gnu.org>
9986
9987 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
9988 available. (Bug#3379)
9989
9990 2009-05-29 Kenichi Handa <handa@m17n.org>
9991
9992 * coding.c (get_translation_table):
9993 Check Venable_character_translation.
9994
9995 2009-05-26 David Reitter <david.reitter@gmail.com>
9996
9997 * nsterm.m (ns_raise_frame): Only raise frame if visible.
9998 (x_make_frame_visible): Move frame to front rather than calling
9999 ns_raise_frame().
10000 (keyDown:): Do not swallow events that aren't re-sent if frame
10001 isn't key window.
10002 (drawRect:): Do not set visibility/iconified flags because
10003 drawRect may be called by NSView even if the frame is hidden.
10004
10005 * nsfns.m (Fx_create_frame): Follow other ports in
10006 determining visibility; default to t. Ensure async_visible is set.
10007
10008 2009-05-23 Eli Zaretskii <eliz@gnu.org>
10009
10010 * dired.c (Ffile_attributes): Doc fix.
10011
10012 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
10013
10014 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
10015
10016 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
10017
10018 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
10019 and xfont_scratch_props.
10020 (syms_of_xfont): Do it here instead.
10021 (xfont_find_ccl_program): Delete, unused.
10022 (xfont_open): Delete unused var `i'.
10023
10024 2009-05-21 Kenichi Handa <handa@m17n.org>
10025
10026 * fontset.c (Qlatin): Don't make it static.
10027
10028 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
10029 New functions.
10030 (xfont_scripts_cache, xfont_scratch_props): New variables.
10031 (Qlatin, Vscalable_fonts_allowed): Extern it.
10032 (xfont_list_pattern): Argument changed. Callers changed.
10033 Check Vscalable_fonts_allowed. Check the support of a script.
10034 (xfont_list): Don't reject a font spec with :script property.
10035 (xfont_has_char): Fix setting of encoding.
10036 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
10037 xfont_scratch_props.
10038
10039 2009-05-19 Kenichi Handa <handa@m17n.org>
10040
10041 * font.c (font_sort_entities): Rename from font_sort_entites.
10042 Callers changed.
10043
10044 2009-05-18 Kenichi Handa <handa@m17n.org>
10045
10046 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
10047
10048 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
10049
10050 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
10051 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
10052
10053 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10054
10055 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
10056 (x_delete_terminal): Dissociate resource database from display and
10057 then call XrmDestroyDatabase before closing display.
10058
10059 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
10060
10061 * nsterm.m (ns_read_socket): Remove unused variable.
10062 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
10063 whether selected frame is viable before raising it (based on patch
10064 by David Reitter), and improve commentary.
10065 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
10066
10067 2009-05-15 Kenichi Handa <handa@m17n.org>
10068
10069 * font.c (Ffont_spec): Check arguments.
10070
10071 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
10072
10073 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
10074 weight when testing attributes (Bug#3282).
10075
10076 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10077
10078 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
10079 what we expect to get in the next ConfigureNotify event.
10080
10081 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
10082 before Xft one (Bug#1696).
10083
10084 2009-05-07 David Reitter <david.reitter@gmail.com>
10085
10086 * nsfns.m (Fx_display_planes): Compute bitplanes using
10087 NSBitsPerPixelFromDepth (Bug#3207).
10088
10089 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
10090
10091 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
10092
10093 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
10094
10095 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
10096
10097 2009-05-07 David Reitter <david.reitter@gmail.com>
10098
10099 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
10100 Respect mouse face background.
10101
10102 2009-05-07 David Reitter <david.reitter@gmail.com>
10103
10104 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
10105 Mouse movement/highlight: bracket drawing operations
10106 in ns_update_begin and ns_update_end.
10107
10108 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
10109
10110 * nsfns.m (ns_get_screen): Rewrite.
10111 Don't presume selected-frame is of type `ns'.
10112
10113 * font.c (font_update_drivers): Sanity fallback to avoid disabling
10114 all drivers.
10115
10116 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
10117
10118 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10119
10120 * keyboard.h (add_user_signal): Fix typo in extern.
10121
10122 * lisp.h (add_user_signal): Remove extern.
10123
10124 * unexelf.c (unexec): Consider a section to precede the .bss section
10125 if its addresses overlap that of .bss.
10126 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
10127 instead of dumping process.
10128
10129 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
10130
10131 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
10132
10133 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
10134
10135 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
10136
10137 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
10138
10139 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
10140 any statements.
10141
10142 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
10143
10144 * process.c (read_process_output): Make sure the current buffer is
10145 always restored.
10146
10147 * coding.c (record_conversion_result): Don't modify
10148 Vlast_code_conversion_error for successful result.
10149 (alloc_destination): Don't clobber conversion result. (Bug#1650)
10150
10151 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10152
10153 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
10154 (load_charset_map): Remove unnecessary code.
10155
10156 2009-04-30 David Reitter <david.reitter@gmail.com>
10157
10158 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
10159 through f24.
10160
10161 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
10162
10163 * xfaces.c (face_at_buffer_position): New arg base_face_id.
10164
10165 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
10166 face_at_buffer_position.
10167 (face_before_or_after_it_pos, get_next_display_element)
10168 (note_mouse_highlight): Update face_at_buffer_position call.
10169
10170 * term.c (term_mouse_highlight):
10171 * msdos.c (IT_note_mouse_highlight):
10172 * fontset.c (Finternal_char_font):
10173 * font.c (font_at, font_range): Update face_at_buffer_position call.
10174
10175 * dispextern.h (face_at_buffer_position): Update prototype.
10176
10177 2009-04-30 Kenichi Handa <handa@m17n.org>
10178
10179 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
10180
10181 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
10182
10183 * callproc.c (Fcall_process): Fix GC protection. Make sure
10184 current buffer is always restored.
10185
10186 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10187
10188 * atimer.c (init_atimer): Also clear stopped_atimers.
10189
10190 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
10191
10192 * process.c (create_process): Clean up merger residues of
10193 2008-07-17 change.
10194
10195 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
10196
10197 * lread.c (Vread_circle): New variable.
10198 (read1): Disable recursive read if Vread_circle is nil.
10199
10200 2009-04-29 Kenichi Handa <handa@m17n.org>
10201
10202 * fontset.h (set_default_ascii_font): Delete extern.
10203
10204 * fontset.c (set_default_ascii_font): Delete this unused function.
10205
10206 * frame.c (x_set_font): When ARG is a font-object, check if the
10207 font-object matches with the ASCII font-spec of the frame's
10208 fontset. If not, create a new fontset for the frame. (Bug #3075)
10209
10210 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
10211
10212 * fns.c (Flocale_info): Protect vector from GC during decoding.
10213
10214 * process.c (Fstart_process): Protect argv strings from GC during
10215 encoding.
10216
10217 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
10218
10219 * sysdep.c: Include <ctype.h>.
10220
10221 2009-04-27 David Reitter <david.reitter@gmail.com>
10222
10223 * nsfont.m (nsfont_open): Remove unused variable shrink.
10224 Remove commented-out code.
10225
10226 2009-04-26 Johan Bockgård <bojohan@gnu.org>
10227
10228 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
10229
10230 2009-04-25 Jason Rumney <jasonr@gnu.org>
10231
10232 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
10233
10234 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10235
10236 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
10237 Swap bytes in short integer if fringe bitmap width > 8.
10238
10239 2009-04-23 Kenichi Handa <handa@m17n.org>
10240
10241 * xfaces.c (Fx_list_fonts): If a font size is specified in
10242 PATTERN, set it in returned scalable fonts.
10243
10244 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
10245
10246 * keyboard.c (Fset_input_meta_mode): Doc fix.
10247
10248 * dispnew.c (Fsend_string_to_terminal): Doc fix.
10249
10250 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
10251
10252 * coding.c (Fterminal_coding_system): Doc fix.
10253
10254 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
10255 (Fx_display_pixel_height, Fx_display_planes)
10256 (Fx_display_color_cells, Fx_server_max_request_size)
10257 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
10258 (Fx_display_mm_height, Fx_display_mm_width)
10259 (Fx_display_backing_store, Fx_display_visual_class)
10260 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
10261 Doc fixes, replacing "terminal id" with "terminal object".
10262 (check_x_display_info): Handle terminal objects instead of
10263 terminal ids.
10264
10265 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
10266 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
10267 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
10268 Doc fixes, replacing "terminal id" with "terminal object".
10269
10270 2009-04-21 Kenichi Handa <handa@m17n.org>
10271
10272 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
10273 (font_score): Check AVGWIDTH too.
10274
10275 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
10276 worst case.
10277 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
10278 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
10279
10280 2009-04-19 Jason Rumney <jasonr@gnu.org>
10281
10282 The following changes fix Bug#3005 for wide glyphs on each platform,
10283 without reintroducing Bug#1258 for stretch glyphs.
10284
10285 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
10286 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
10287 get_phys_cursor_geometry.
10288
10289 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
10290 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
10291 using get_phys_cursor_geometry.
10292
10293 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
10294 correctly calculated.
10295
10296 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
10297
10298 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
10299 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
10300 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
10301 is deprecated.
10302
10303 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
10304
10305 * font.c (font_put_frame_data): Use xfree instead of free.
10306
10307 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
10308
10309 * w32font.c (Qja, Qko): Remove declarations.
10310 (syms_of_w32font): Don't DEFSYM them.
10311
10312 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
10313
10314 * font.c (Qja, Qko): Move definitions here from ftfont.c.
10315
10316 * font.h (Qja, Qko): Extern them.
10317
10318 * ftfont.c (Qja, Qko): Remove declarations.
10319
10320 * xfont.c (Qja, Qko): Remove declarations.
10321
10322 2009-04-17 Kenichi Handa <handa@m17n.org>
10323
10324 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
10325 string from a vector to handle Latin-1 characters correctly.
10326
10327 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
10328 entity even if the cache hits.
10329
10330 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
10331
10332 * search.c (boyer_moore): Use zero as marker value for a possible
10333 match instead of depending on overflow behavior. (Bug#2844)
10334
10335 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
10336 * lisp.h: Adjust prototypes.
10337
10338 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
10339
10340 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
10341 change (Bug#3003).
10342
10343 2009-04-16 Kenichi Handa <handa@m17n.org>
10344
10345 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
10346
10347 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
10348 adstyle.
10349
10350 * ftfont.c (Qja, Qko): Don't make them static.
10351 (enum ftfont_cache_for): New enum.
10352 (fc_charset_table): Undo the previous change.
10353 (ftfont_get_latin1_charset): Delete it.
10354 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
10355 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
10356 non-scarable font, try to get AVERAGE_WIDTH.
10357 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
10358 Change ft_face_cache from a list of a hash-table. Don't check
10359 `ja' and `ko' adstyle here.
10360 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
10361 FTFONT_CACHE_FOR_CHARET.
10362 (ftfont_get_charset): Undo the previous change.
10363 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
10364 (ftfont_close): Likewise.
10365 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
10366
10367 * font.c (font_sort_entites): Change the meaning of the arg
10368 BEST-ONLY. Don't optimize for VEC of lenght 1.
10369 (font_select_entity): Just return the value of font_sort_entites.
10370
10371 * xfaces.c (merge_face_vectors): Reflect font properties in
10372 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
10373 font_clear_prop if a face attribute doesn't change.
10374
10375 * charset.h (charset_ksc5601): Extern it.
10376
10377 * charset.c (charset_ksc5601): New variable.
10378 (Fdefine_charset_internal): Set charset_ksc5601.
10379 (init_charset_once): Initialize charset_ksc5601 to -1.
10380
10381 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
10382
10383 * fileio.c (history_delete_duplicates): Remove unused declaration.
10384
10385 * callint.c (history_delete_duplicates): New declaration.
10386 (Fcall_interactively): Remove command history duplicates when
10387 history_delete_duplicates is true.
10388
10389 2009-04-14 Eli Zaretskii <eliz@gnu.org>
10390
10391 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
10392
10393 2009-04-14 Kenichi Handa <handa@m17n.org>
10394
10395 * font.c (Ffont_info): Fix docstring. Fix the second element of
10396 the returned value (bug#2949).
10397
10398 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
10399
10400 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
10401
10402 2009-04-14 Kenichi Handa <handa@m17n.org>
10403
10404 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
10405 encoding charset is ascii_compatible.
10406
10407 * charset.c (Fdefine_charset_internal): Make charset
10408 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
10409 code_offset is 0, and covers all ASCII characters.
10410
10411 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
10412
10413 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
10414 (ns_string_to_pasteboard_internal):
10415 * nsmenu.m (process_dialog):
10416 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
10417 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
10418 * lisp.h (Fx_load_color_file): Declare.
10419
10420 2009-04-13 Kenichi Handa <handa@m17n.org>
10421
10422 * font.c (font_delete_unmatched): Preserve the order of list elements.
10423 (font_select_entity): Suppress the code to optimize for the same
10424 kind of fonts.
10425 (font_load_for_lface): Get a font that supports at least ASCII
10426 characters.
10427
10428 * ftfont.c (Qja, Qko): New variables.
10429 (fc_charset_table): Delete uniquifier data for iso8859-1.
10430 (ftfont_get_latin1_charset): New function.
10431 (get_adstyle_property): New function.
10432 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
10433 bitmap fonts.
10434 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
10435 Delete iso-8859-1 range from the charset of fonts whose adstyle is
10436 `ko' or `ja'.
10437 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
10438 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
10439 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
10440 property.
10441 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
10442 (syms_of_ftfont): DEFSYM Qja and Qko.
10443
10444 2009-04-09 Kenichi Handa <handa@m17n.org>
10445
10446 * charset.c (map_charset_chars): For a charset of `superset'
10447 method, fix calculation of code range.
10448
10449 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
10450 from the list of extra properties.
10451 (font_clear_prop): Be sure to delete `:name' font property.
10452
10453 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10454
10455 * dispnew.c (redraw_overlapping_rows): Fix detection of
10456 overlapping for topmost and bottommost rows.
10457
10458 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
10459
10460 2009-04-06 Jason Rumney <jasonr@gnu.org>
10461
10462 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
10463
10464 2009-04-06 Kenichi Handa <handa@m17n.org>
10465
10466 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
10467
10468 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
10469
10470 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10471
10472 * ftfont.c (ftfont_open): Fix checking of the return value of
10473 FT_Load_Char. Fix setting font->underline_thickness.
10474
10475 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
10476
10477 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
10478 (Fterminal_parameters, Fterminal_parameter)
10479 (Fset_terminal_parameter): In doc string, refer to terminal
10480 objects rather than terminal ids.
10481
10482 2009-04-04 Eli Zaretskii <eliz@gnu.org>
10483
10484 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
10485 ret_lim_data. (Bug#2867)
10486
10487 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
10488
10489 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
10490 so they don't get wider than the window, matching 2006-01-23
10491 change to the partner function in xdisp.c (Bug#2800).
10492
10493 2009-04-03 Kenichi Handa <handa@m17n.org>
10494
10495 * print.c (print_object): Make each lowest sub_char_table start a
10496 new line (Bug#2866).
10497
10498 2009-04-02 Kenichi Handa <handa@m17n.org>
10499
10500 * fontset.c (fontset_font): Record no-font when a fontset
10501 explicitly tells not to try another font-specs.
10502
10503 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
10504
10505 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
10506
10507 2009-03-30 Kenichi Handa <handa@m17n.org>
10508
10509 * fontset.c (fontset_from_font): Specify only registry in a
10510 font-spec for all characters supported by that registry.
10511
10512 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
10513 even if HAVE_M17N_FLT is not defined.
10514
10515 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
10516
10517 * ftfont.c: Conditionalize prototyping and use of
10518 ftfont_variation_glyphs.
10519
10520 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
10521
10522 * frame.c (delete_frame): Work around compiler bug.
10523
10524 * editfns.c (general_insert_function): Adjust to insdel.c changes.
10525 * insdel.c (prepare_to_modify_buffer, signal_before_change):
10526 Some more EMACS_INT.
10527 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
10528
10529 * xdisp.c (dump_glyph): Fix typo.
10530
10531 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
10532 (adjust_markers_gap_motion, adjust_markers_for_delete)
10533 (adjust_markers_for_insert, adjust_point)
10534 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
10535 (make_gap, copy_text, count_size_as_multibyte, insert)
10536 (insert_and_inherit, insert_before_markers)
10537 (insert_before_markers_and_inherit, insert_1)
10538 (count_combining_before, count_combining_after, insert_1_both)
10539 (insert_from_string, insert_from_string_before_markers)
10540 (insert_from_string_1, insert_from_gap, insert_from_buffer)
10541 (insert_from_buffer_1, adjust_after_replace)
10542 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
10543 (replace_range_2, del_range, del_range_1, del_range_byte)
10544 (del_range_both, del_range_2, modify_region)
10545 (prepare_to_modify_buffer, signal_before_change)
10546 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
10547 for buffer positions and sizes.
10548 * lisp.h: Adjust prototypes accordingly.
10549
10550 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
10551 (non_regular_inserted, non_regular_nbytes, read_non_regular)
10552 (Finsert_file_contents): Use EMACS_INT for buffer positions.
10553
10554 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
10555
10556 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
10557
10558 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
10559 lines and columns so we keep the same pixel height and width.
10560
10561 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
10562 the property _NET_WM_STATE has changed.
10563 (x_handle_net_wm_state): New function to update frame parameter
10564 fullscreen.
10565 (x_term_init): Initialize atoms for _NET_WM_STATE.
10566
10567 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
10568
10569 2009-03-27 Kevin Ryde <user42@zip.com.au>
10570
10571 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
10572 Gpm_GetEvent as an error that justifies closing the filedescriptor.
10573 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
10574 (Fgpm_mouse_stop): Pass that new parameter.
10575 * termhooks.h (close_gpm): Adjust prototype.
10576
10577 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
10578
10579 * lisp.h (Fx_focus_frame): Declare.
10580
10581 * callint.c (Fcall_interactively): For '^' just delegate the work to
10582 handle-shift-selection.
10583 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
10584
10585 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
10586
10587 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
10588
10589 * data.c (Qinteractive_form): New variable.
10590 (Finteractive_form): Use it.
10591
10592 * eval.c (Fcommandp): Use Qinteractive_form.
10593
10594 2009-03-24 Jason Rumney <jasonr@gnu.org>
10595
10596 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
10597 Calculate total size precisely. Decode environment variables
10598 before substituting. (Bug#38)
10599
10600 2009-03-24 Kenichi Handa <handa@m17n.org>
10601
10602 * font.c (find_font_encoding): Return Qnil for unsupported
10603 encoding (Bug#2722).
10604
10605 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
10606
10607 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
10608 that gdpy is set.
10609
10610 2009-03-22 Alan Mackenzie <acm@muc.de>
10611
10612 * callint.c (Finteractive): Clarify the doc string - even
10613 promptless elements need \n separators.
10614
10615 2009-03-22 Jason Rumney <jasonr@gnu.org>
10616
10617 * w32term.c (syms_of_w32term): Doc fix for
10618 x-use-underline-position-properties.
10619
10620 2009-03-21 Eli Zaretskii <eliz@gnu.org>
10621
10622 * w32.c (getpwuid): Change argument type to unsigned.
10623 (struct w32_id): Change type of `rid' member to unsigned.
10624 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
10625 argument ID to unsigned. All callers changed.
10626 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
10627
10628 2009-03-20 Eli Zaretskii <eliz@gnu.org>
10629
10630 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
10631 negative, produce a float value.
10632
10633 * dired.c (make_uid, make_gid): New functions.
10634 (Ffile_attributes): Use them to avoid negative UID and GID.
10635
10636 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
10637
10638 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
10639 (syms_of_keyboard) <command-hook-internal, input-method-function>:
10640 Fix typos in docstrings.
10641
10642 2009-03-19 Kenichi Handa <handa@m17n.org>
10643
10644 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
10645 changed, use font_load_for_lface to get a new font object.
10646 Call free_realized_fontset after handling ASCII font change.
10647
10648 * frame.c (x_set_font): Handle the case that ARG is a cons.
10649
10650 2009-03-19 Glenn Morris <rgm@gnu.org>
10651
10652 * fileio.c (Fsubstitute_in_file_name): Doc fix.
10653
10654 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
10655
10656 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
10657
10658 2009-03-19 Kenichi Handa <handa@m17n.org>
10659
10660 * charset.c (load_charset_map_from_file): When a mapfile can't be
10661 loaded, signal an error.
10662
10663 2009-03-18 Eli Zaretskii <eliz@gnu.org>
10664
10665 * dired.c (Ffile_attributes): Make sure UID and GID are always
10666 positive, even if the value is too large for a positive EMACS_INT.
10667 Doc fix.
10668
10669 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
10670
10671 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10672
10673 * xmenu.c (xdialog_show): Move Fredisplay call ...
10674 (Fx_popup_dialog): ... here.
10675
10676 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
10677
10678 * dired.c (file_name_completion): Disable the first optimization just
10679 installed, since it is not implemented correctly.
10680
10681 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
10682
10683 * dired.c (file_name_completion): Check completion-ignored-extensions
10684 only if the entry can affect bestmatch.
10685 Stop the search early, as Ftry_completion already does.
10686
10687 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
10688
10689 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
10690
10691 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
10692
10693 * keyboard.c (parse_menu_item): Don't display remappings as menu
10694 equivalent bindings (Bug#788).
10695
10696 2009-03-15 Jason Rumney <jasonr@gnu.org>
10697
10698 * w32term.h (WM_EMACS_PAINT): New message.
10699 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
10700 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
10701 before passing to lisp thread. (Bug#950)
10702
10703 2009-03-14 David Reitter <david.reitter@gmail.com>
10704
10705 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
10706 variable as it was never reset.
10707 (ns_term_init): Remove initialization of Lisp-settable defaults
10708 and ns_expand_space.
10709 (-setPanelFromDefaultValues): Remove ns_expand_space.
10710 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
10711 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
10712 i.e. no additional spacing, similar to Carbon port.
10713
10714 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
10715 * nsfns.m (ns-popup-prefs-panel): Remove.
10716
10717 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
10718
10719 * sound.c (alsa_configure): Remove call to deprecated
10720 snd_pcm_sw_params_set_xfer_align.
10721
10722 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
10723
10724 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
10725 after clicking in a detached tool bar.
10726 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
10727
10728 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
10729
10730 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
10731 int/Lisp_Object mixup).
10732
10733 2009-03-13 Kenichi Handa <handa@m17n.org>
10734
10735 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
10736 Handle NAME nil and t correctly. Callers changed.
10737 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
10738 (set_fontset_font): Change ARG to a vector. Handle range_list in
10739 ARG correctly.
10740 (Fset_fontset_font): Fix the case that TARGET is both a script
10741 name and charset name. Adjust the arg to set_fontset_font for
10742 the above change.
10743 (fontset_from_font): Fix previous change.
10744 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
10745 entry. If FONTSET is the default fontset, don't set the extra
10746 slot of the returning char-table.
10747
10748 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
10749
10750 * nsfns.m (Fx_close_connection): Doc fix.
10751 (Fns_do_applescript): Reflow docstring.
10752 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
10753 (Fx_display_pixel_width, Fx_display_pixel_height)
10754 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
10755 Fix typos in docstrings.
10756 (Fns_set_alpha): Fix typos in error messages.
10757
10758 2009-03-12 David Reitter <david.reitter@gmail.com>
10759
10760 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
10761 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
10762 were used for such events.
10763
10764 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
10765 (toggleToolbar, performDragOperation, runHelp): Use it.
10766
10767 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
10768 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
10769
10770 2009-03-11 Kenichi Handa <handa@m17n.org>
10771
10772 * font.h (font_open_by_spec): Extern it.
10773
10774 * font.c (font_open_by_spec): New function.
10775 (font_open_by_name): Use font_open_by_spec.
10776
10777 * frame.c (x_set_font): When ARG is a font-object, don't alter the
10778 fontset of the frame.
10779
10780 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
10781 modify the default font of frames that use this fontset.
10782 (num_auto_fontsets): New variable.
10783 (fontset_from_font): Use num_auto_fontsets to decide a fontset
10784 name. Be sure to set FONTSET_ASCII to the correct font name.
10785 (update_auto_fontset_alist): New function.
10786
10787 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
10788
10789 * makefile.w32-in: Update dependencies.
10790
10791 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10792
10793 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
10794
10795 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
10796
10797 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
10798
10799 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
10800
10801 * lread.c (Feval_buffer): Doc fix.
10802
10803 2009-03-09 Kenichi Handa <handa@m17n.org>
10804
10805 * charset.c (Qfile_name_handler_alist): Extern it.
10806 (load_charset_map_from_file): Temporarily bind
10807 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
10808
10809 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
10810
10811 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
10812 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
10813
10814 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10815
10816 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
10817 (x_set_window_size): Change back to calculated method of setting
10818 toolbar height under Cocoa. (Bug#2546)
10819 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
10820 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
10821
10822 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
10823
10824 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
10825 accelerator in parens under GNUstep.
10826
10827 2009-03-06 Kenichi Handa <handa@m17n.org>
10828
10829 These changes are to detect incorrect composition sequence without
10830 looking ahead the source. (Bug#2370)
10831
10832 * coding.h: Include "composite.h".
10833 (enum compisition_state): New enum.
10834 (struct compisition_status): New struct.
10835 (struct iso_2022_spec): New member cmp_status.
10836 (struct emacs_mule_spec): New struct.
10837 (struct coding_system): New members ctext_extended_segment_len and
10838 embedded_utf_8. Change the union member
10839 spec.emacs_mule_full_support to spec.emacs_mule.
10840
10841 * coding.c (CODING_ISO_CMP_STATUS): New macro.
10842 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
10843 (MAX_ANNOTATION_LENGTH): Define to 5.
10844 (ADD_COMPOSITION_DATA): New arg nbytes.
10845 (emacs_mule_char): New arg cmp_status.
10846 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
10847 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
10848 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
10849 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
10850 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
10851 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
10852 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
10853 (EMACS_MULE_COMPOSITION_END): New macro.
10854 (emacs_mule_finish_composition): New function.
10855 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
10856 (decode_coding_emacs_mule): Avoid long looking ahead while
10857 handling composition.
10858 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
10859 (ENCODE_COMPOSITION_RULE): New macro.
10860 (finish_composition): New function.
10861 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
10862 (DECODE_COMPOSITION_START): New implementation.
10863 (DECODE_COMPOSITION_END): Likewise.
10864 (STORE_COMPOSITION_RULE): New macro.
10865 (decode_coding_iso_2022): Avoid long looking ahead while handling
10866 composition, CTEXT extended segment, and embedded UTF-8.
10867 (setup_coding_system): For a coding of type iso-2022, reset
10868 CODING_ISO_EXTSEGMENT_LEN (coding) and
10869 CODING_ISO_EMBEDDED_UTF_8 (coding).
10870 (get_translation): Delete arguments last_block, from_nchars,
10871 to_nchars. Callers changed.
10872 (produce_chars): Don't modify charbuf. Adjusted for the change of
10873 get_translation.
10874 (produce_composition): Adjust for the new annotation sequence.
10875 (handle_composition_annotation): Likewise.
10876 (consume_chars): Adjust for the change of get_translation.
10877
10878 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
10879
10880 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
10881
10882 2009-03-05 Kenichi Handa <handa@m17n.org>
10883
10884 * font.c (font_select_entity): New function.
10885 (font_find_for_lface): Use font_select_entity to select a font.
10886
10887 * fontset.c (fontset_find_font): If a font found without
10888 restricting to the characters C doesn't support C, try to find a
10889 font with C restriction.
10890
10891 2009-03-04 Nikolaj Schumacher <me@nschum.de>
10892
10893 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
10894
10895 2009-03-04 Jason Rumney <jasonr@gnu.org>
10896
10897 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
10898 characters that have already been read. (Bug#2569)
10899
10900 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
10901 Log an error message if check_image_size failed.
10902 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
10903 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10904
10905 2009-03-02 Eli Zaretskii <eliz@gnu.org>
10906
10907 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
10908 when decoding process output.
10909
10910 2009-03-01 Richard M Stallman <rms@gnu.org>
10911
10912 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
10913
10914 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
10915
10916 2009-02-28 Eli Zaretskii <eliz@gnu.org>
10917
10918 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
10919 (decode_coding_emacs_mule, decode_coding_iso_2022)
10920 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10921 (decode_coding_raw_text, decode_coding_charset)
10922 (setup_coding_system, decode_eol, decode_coding, consume_chars):
10923 Honor inhibit-eol-conversion. (Bug #2186)
10924
10925 2009-02-28 Jason Rumney <jasonr@gnu.org>
10926
10927 * coding.c (detect_coding_charset): If not checking latin extra,
10928 fail on characters between 0x80 and 0xA0. (Bug#2354)
10929
10930 2009-02-28 Eli Zaretskii <eliz@gnu.org>
10931
10932 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
10933 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
10934
10935 2009-02-27 Glenn Morris <rgm@gnu.org>
10936
10937 * callint.c (Finteractive): Doc fix.
10938
10939 2009-02-27 Kenichi Handa <handa@m17n.org>
10940
10941 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
10942
10943 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
10944
10945 * font.c (font_style_to_value): Set value for unknown symbols to
10946 100 instead of 255.
10947 (weight_table, slant_table, width_table): Treat "unspecified" as
10948 the default value.
10949
10950 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
10951
10952 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
10953
10954 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
10955
10956 * lread.c (Fload): Stop checking Vloads_in_progress and signal
10957 error as soon as a recursive load is detected.
10958
10959 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10960
10961 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
10962 before caching.
10963
10964 2009-02-24 Kenichi Handa <handa@m17n.org>
10965
10966 * fontset.c (fontset_find_font): Fix the condition for checking
10967 unavailable font.
10968
10969 2009-02-24 Glenn Morris <rgm@gnu.org>
10970
10971 * xfaces.c (Finternal_set_font_selection_order): Remove leading
10972 whitespace that confuses documentation.
10973
10974 2009-02-23 Miles Bader <miles@gnu.org>
10975
10976 * process.c (Flist_system_processes, Fprocess_attributes)
10977 (syms_of_process): Rename `system-process-attributes' to
10978 `process-attributes'.
10979
10980 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
10981
10982 * coding.h (struct coding_system): Make safe_charsets a pointer to
10983 unsigned char.
10984 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
10985 being 255.
10986 (SAFE_CHARSET_P): Likewise.
10987 (setup_iso_safe_charsets): Properly setup safe_charsets.
10988 (Fdefine_coding_system_internal): Likewise.
10989 (setup_coding_system): Likewise. Remove unneeded casts.
10990 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
10991 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
10992 unneeded casts.
10993
10994 * insdel.c (del_range_2): Don't modify gap contents when called
10995 from decode_coding_object. (Bug#1809)
10996
10997 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
10998
10999 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
11000 Qfont_object.
11001 (Ftype_of): Recognize font objects.
11002
11003 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
11004
11005 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
11006 moved to data.c.
11007
11008 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11009
11010 * nsterm.m (x_make_frame_invisible): Unset async_visible,
11011 async_iconified. Based on a patch by Christian Lynbech
11012 <christian.lynbech@tieto.com>.
11013 (EmacsView-windowDidMiniaturize:): Unset async_visible.
11014
11015 2009-02-20 Glenn Morris <rgm@gnu.org>
11016
11017 * syntax.c (Fskip_chars_forward): Fix doc typo.
11018
11019 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
11020
11021 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
11022
11023 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
11024
11025 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
11026
11027 2009-02-19 Kenichi Handa <handa@m17n.org>
11028
11029 * coding.c (detect_coding): Preserve coding->mode.
11030 Don't overflow coding->carryover. (Bug#2370)
11031
11032 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
11033
11034 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
11035
11036 2009-02-18 Kenichi Handa <handa@m17n.org>
11037
11038 * font.c (font_check_otf_features): Fix handling of `nil' element.
11039 (Ffont_spec): Describe :lang and :otf in the docstring.
11040
11041 2009-02-16 Andreas Schwab <schwab@suse.de>
11042
11043 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
11044 string.
11045
11046 2009-02-16 Kenichi Handa <handa@m17n.org>
11047
11048 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
11049 (Bug#1723)
11050
11051 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
11052
11053 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
11054
11055 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
11056 (handle_line_prefix): Suppress wrapping of wrap prefixes.
11057
11058 2009-02-14 Eli Zaretskii <eliz@gnu.org>
11059
11060 * msdos.c (MAX_SCREEN_BUF): New macro.
11061 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
11062 Encode the entire run of glyphs sharing the same face, instead of
11063 doing that one glyph at a time (fixes a bug with displaying
11064 double-size characters).
11065
11066 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
11067
11068 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
11069
11070 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
11071 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
11072 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
11073
11074 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
11075 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
11076
11077 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
11078
11079 * keyboard.c (adjust_point_for_property): Allow stopping between two
11080 invisible areas.
11081
11082 2009-02-12 Jason Rumney <jasonr@gnu.org>
11083
11084 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
11085 (add_font_entity_to_list): Call check_face_name even when family
11086 is unspecified.
11087
11088 * w32term.c (x_display_pixel_height, x_display_pixel_width):
11089 Release DC when finished. Use NULL window to refer to desktop.
11090 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
11091
11092 * w32font.c (add_font_entity_to_list): Fix check for substituted
11093 raster fonts. (Bug#2219)
11094
11095 2009-02-12 Kenichi Handa <handa@m17n.org>
11096
11097 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
11098 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
11099 (autocmp_chars): Use fast_looking_at. Don't compose more
11100 characters than MAX_COMPOSITION_COMPONENTS.
11101 (find_automatic_composition): While looking forward and backward,
11102 check static composition. Fix where to stop looking forward.
11103 (composition_adjust_point): Fix checking of static composition.
11104 (Fcomposition_get_gstring): Pay attention to
11105 MAX_COMPOSITION_COMPONENTS.
11106
11107 * lisp.h (fast_looking_at): Extern it.
11108
11109 * search.c (fast_looking_at): New function.
11110
11111 * term.c (encode_terminal_code): Adjust for the change of
11112 <struct glyph>.u.cmp.to.
11113 (append_composite_glyph): Likewise.
11114
11115 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
11116 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
11117 composition.
11118 (append_composite_glyph): Adjust for the change of
11119 <strcut glyph>.u.cmp.to.
11120
11121 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
11122
11123 * casetab.c (init_casetab_once):
11124 * coding.c (ALLOC_CONVERSION_WORK_AREA):
11125 * font.c (font_update_lface):
11126 * fontset.c (Fnew_fontset):
11127 * ftfont.c (ftfont_drive_otf):
11128 * xfont.c (xfont_open):
11129 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
11130
11131 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
11132
11133 * fileio.c (Fwrite_region): !NILP -> CONSP.
11134
11135 2009-02-10 Andreas Schwab <schwab@suse.de>
11136
11137 * process.c (send_process): Properly relocate pointer into data
11138 when using encoded data. (Bug#2272)
11139
11140 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
11141
11142 * coding.c (detect_coding_charset): Fix previous change.
11143
11144 2009-02-08 Jason Rumney <jasonr@gnu.org>
11145
11146 * w32fns.c (w32_hide_hourglass): Handle case where frame
11147 disappeared while hourglass was displayed. (Bug #2193)
11148
11149 2009-02-07 Andreas Schwab <schwab@suse.de>
11150
11151 * unexelf.c (unexec): Fix error message.
11152
11153 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
11154
11155 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
11156 when modal window is active. (Bug #2152)
11157 (applicationShouldTerminate:): Remove now-unneeded while loop
11158 around NSRunAlertPanel.
11159
11160 * nsmenu.m (popupSession): New file-global variable.
11161 (pop_down_menu): End the popupSession before closing dialog.
11162 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
11163 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
11164 don't query NSApp for events (just sleep instead).
11165
11166 2009-02-07 Eli Zaretskii <eliz@gnu.org>
11167
11168 * coding.c (syms_of_coding) <translation-table-for-input>:
11169 Modify doc string to discourage use for character code unification.
11170
11171 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11172
11173 * atimer.c (run_timers): Update pending_atimers.
11174
11175 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
11176
11177 * image.c (svg_load_image): Fix last change.
11178
11179 * xfns.c (Fx_create_frame): Signal an error if no font is
11180 found (Bug#2147).
11181
11182 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
11183
11184 * character.c (syms_of_character) <script-representative-chars>:
11185 Fix typo in docstring.
11186
11187 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11188
11189 * nsmenu.m (pop_down_menu): New function.
11190 (ns_popup_dialog): Call it on unwind.
11191 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
11192 call timer_check() (Bug#2154).
11193 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
11194 handling_signal is set.
11195 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
11196
11197 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
11198
11199 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
11200
11201 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
11202
11203 * keyboard.c (poll_for_input_1, handle_async_input):
11204 Set handling_signal under HAVE_NS.
11205
11206 2009-02-04 Glenn Morris <rgm@gnu.org>
11207
11208 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
11209
11210 2009-02-04 Kenichi Handa <handa@m17n.org>
11211
11212 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
11213
11214 * charset.c (Fchar_charset): New optional arg restriction.
11215
11216 * coding.h (coding_system_charset_list): Extern it.
11217
11218 * coding.c (coding_system_charset_list): New function.
11219
11220 * composite.c: Include coding.h and termhooks.h.
11221 (composition_gstring_p): Fix for the terminal case.
11222 (composition_gstring_width): Likewise.
11223 (fill_gstring_body): Likewise.
11224 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
11225 the frame.
11226 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
11227 is within a composition.
11228 (Fcomposition_get_gstring): Fix the terminal case.
11229
11230 * term.c (encode_terminal_code): Fix handling of composition.
11231 (produce_composite_glyph): For static composition, get pixel_width
11232 from struct composition.
11233
11234 2009-02-02 Andreas Schwab <schwab@suse.de>
11235
11236 * unexelf.c (unexec): Handle unaligned bss offset.
11237
11238 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11239
11240 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
11241 XT,w32read_socket changes to ns_read_socket.
11242
11243 * keyboard.c (handle_interrupt): Don't call
11244 quit_throw_to_read_char() under NS.
11245
11246 * blockinput.h: Remove NS-specific code.
11247
11248 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
11249
11250 * dispnew.c (window_change_signal): Don't try to get the size of a
11251 suspended tty frame.
11252 * term.c (Fresume_tty): Resize if the size has changed while the
11253 tty was suspended.
11254
11255 * alloc.c (mark_stack): Properly conditionalize previous change.
11256
11257 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
11258
11259 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
11260 * w32term.c (w32_read_socket) [SYNC_INPUT]:
11261 Remove; this code is not used on Windows.
11262
11263 2009-01-30 Eli Zaretskii <eliz@gnu.org>
11264
11265 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
11266 EOLs that also has stray ^M characters.
11267
11268 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
11269
11270 * atimer.c (run_timers, alarm_signal_handler):
11271 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
11272 * w32inevt.c (w32_console_read_socket):
11273 * w32term.c (w32_read_socket):
11274 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
11275
11276 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
11277
11278 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
11279 Initialize it as a relative filename pattern.
11280 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
11281 (Fcall_process_region): Simplify temp file creation using
11282 temporary-file-directory.
11283
11284 2009-01-29 Eli Zaretskii <eliz@gnu.org>
11285
11286 * msdos.c: Rename pending_signals to msdos_pending_signals.
11287 (sig_suspender, sigprocmask): Adjust.
11288
11289 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
11290
11291 * keyboard.c (pending_signals): New var.
11292 (poll_for_input, input_available_signal, init_keyboard): Set it.
11293 (process_pending_signals): New function.
11294
11295 * lisp.h (QUIT): Check pending_signals instead of
11296 interrupt_input_pending. Use process_pending_signals.
11297
11298 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
11299
11300 * process.c (wait_reading_process_output): Use process_pending_signals.
11301
11302 * sysdep.c (emacs_write): Use process_pending_signals.
11303
11304 * xterm.c (XTread_socket): Update pending_signals.
11305
11306 * w32term.c (w32_read_socket): Update pending_signals.
11307
11308 * w32inevt.c (w32_console_read_socket): Update pending_signals.
11309
11310 2009-01-29 Kenichi Handa <handa@m17n.org>
11311
11312 * xftfont.c (xftfont_has_char): New function.
11313 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
11314
11315 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
11316
11317 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
11318 under GNUstep.
11319 (ns_query_color): New declaration.
11320
11321 * nsterm.m (ns_confirm_quit): New variable.
11322 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
11323 (EmacsApp-applicationShouldTerminate:): Use it.
11324 (EmacsPrefsController): Let user set it.
11325 (ns_query_color): New function.
11326 (ns_defined_color): Use it.
11327 (ns_initialize): Drop.
11328 (ns_term_init): Add two lines from ns_initialize(), and set
11329 input_interrupt_mode to nil.
11330
11331 * image.c (svg_load_image): Don't right-shift background RGB when
11332 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
11333
11334 2009-01-28 Kenichi Handa <handa@m17n.org>
11335
11336 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
11337 (fontset_get_font_group): Remember that no font-group is specified
11338 for C.
11339
11340 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
11341
11342 * fns.c (concat): Check for string overflow (bug#1787).
11343
11344 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
11345 Quadruple undo limits (bug#1501).
11346
11347 2009-01-27 Kenichi Handa <handa@m17n.org>
11348
11349 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
11350 directly use GT_Get_Char_index.
11351
11352 * xftfont.c (struct xftfont_info): New member `index'.
11353
11354 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
11355 (Ffontset_font): Adjust for the change of fontset entry.
11356
11357 2009-01-26 Kenichi Handa <handa@m17n.org>
11358
11359 * fontset.c (fontset_find_font): Fix handling of non-cons return
11360 value of fontset_get_font_group.
11361 (fontset_font): Revert last change.
11362
11363 2009-01-26 Jason Rumney <jasonr@gnu.org>
11364
11365 * w32font.c (w32font_list_internal): Return quickly if registry is
11366 unknown. Simplify final return.
11367 (add_font_entity_to_list): Break complex logic down into more
11368 manageable chunks. Move unknown registry check to
11369 w32font_list_internal.
11370
11371 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
11372
11373 Changes to remove Feval calls from GUI under NS.
11374
11375 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
11376 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
11377 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
11378
11379 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
11380 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
11381 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
11382 instead of NON_ASCII_KEYSTROKE_EVENT.
11383 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
11384 (EmacsApp-applicationShouldTerminate:): Query user.
11385 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
11386 instead of Feval.
11387
11388 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
11389
11390 * keyboard.c (kbd_buffer_get_event): Check for it.
11391 (keys_of_keyboard): Define lispy keys for
11392 ns-put/unput-working-text.
11393
11394 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
11395 versions.
11396 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
11397
11398 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
11399
11400 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
11401 setting current_buffer directly. (Bug#2044)
11402
11403 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
11404
11405 * fontset.c (fontset_font): If we know there is no font, don't do
11406 any work. (Bug#1952, bug#1990).
11407
11408 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
11409
11410 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
11411
11412 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
11413 (ns_no_defaults): New declaration.
11414 (main): Use it.
11415
11416 * nsterm.h (ns_no_defaults): New declaration.
11417
11418 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
11419
11420 * nsterm.m (ns_no_defaults): New variable.
11421 (ns_initialize): Don't read defaults when ns_no_defaults.
11422 (EmacsView-readSelectionFromPasteboard:)
11423 (writeSelectionToPasteboard:types:): New stubbed-out methods for
11424 NSServicesRequests protocol. (Bug#1435)
11425 (ns_dumpglyphs_stretch): New function.
11426 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
11427 of 2008-11-15 to other terms. (Bug#615)
11428
11429 * nsimage.m (setPixmapData:): Set to ignore image DPI.
11430
11431 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
11432
11433 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
11434 call for Sparc64.
11435
11436 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11437
11438 * nsfns.m:
11439 * nsgui.h:
11440 * nsmenu.m:
11441 * nsselect.m:
11442 * nsterm.h:
11443 * nsterm.m: Remove '23' comments that indicated code added during
11444 update from emacs-20 -> emacs-23.
11445
11446 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11447
11448 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
11449 ns_alternate_modifier. (Bug#1217)
11450
11451 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
11452 Display all shortcuts, including those w/o super modifier.
11453
11454 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
11455
11456 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
11457
11458 * fileio.c (Vwrite_region_post_annotation_function)
11459 (Vwrite_region_annotation_buffers): New vars.
11460 (build_annotations_unwind): Just reset
11461 Vwrite_region_annotation_buffers.
11462 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
11463 Call write-region-post-annotation-function.
11464 (build_annotations): Add to Vwrite_region_annotation_buffers if
11465 buffer changes.
11466
11467 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11468
11469 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
11470 Tiger.
11471 * nsfns.m (ns_do_applescript):
11472 Conditionalize typeUTF16ExternalRepresentation on Tiger.
11473
11474 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
11475
11476 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
11477
11478 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11479
11480 * nsmenu.m (NSMENUPROFILE): Change #if style.
11481
11482 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
11483
11484 * nsterm.m (x_set_frame_alpha): Add prototype.
11485 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
11486 handle Ctrl-tab. (Bug#1841)
11487 (ns_get_color): Use unsigned long long for scanned hex string value.
11488 (ns_term_shutdown): Abort on non SIGTERM signals.
11489 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
11490 (EmacsPrefsController-setPanelFromDefaultValues): New function.
11491 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
11492 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
11493 (ns_defined_color): Fix settings of the XColor variable fields:
11494 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
11495
11496 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
11497 DPI. (Bug#1316)
11498 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
11499 values in onTiger section.
11500
11501 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
11502
11503 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
11504 Check return value of font_spec_from_name.
11505 (Fx_list_fonts): Doc fix. (Bug#1951)
11506
11507 * font.c (font_spec_from_name): Return Qnil if font name could not
11508 be parsed.
11509 (font_parse_name): Treat a `?' character as part of an XLFD.
11510
11511 * fns.c (Fsubstring): Doc fix.
11512
11513 2009-01-19 Kenichi Handa <handa@m17n.org>
11514
11515 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
11516 (ftfont_list): Likewise.
11517
11518 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
11519
11520 * dbusbind.c (Fdbus_register_signal):
11521 * process.c (conv_sockaddr_to_lisp):
11522 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
11523
11524 * callproc.c (Fgetenv_internal): Doc fix.
11525
11526 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
11527
11528 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
11529 it is not even used.
11530
11531 2009-01-16 Glenn Morris <rgm@gnu.org>
11532
11533 * font.c (Ffont_variation_glyphs): Silence compiler.
11534
11535 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
11536
11537 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
11538 Reported by David Robinow <drobinow@gmail.com>.
11539
11540 2009-01-15 Kenichi Handa <handa@m17n.org>
11541
11542 * coding.c (detect_coding_system): Fix handling of null_byte_found.
11543
11544 2009-01-14 Jason Rumney <jasonr@gnu.org>
11545
11546 * frame.c (x_set_font): Always store a font to the font parameter,
11547 never a fontset. (Bug#1562)
11548
11549 2009-01-14 Kenichi Handa <handa@m17n.org>
11550
11551 * coding.c (TWO_MORE_BYTES): New macro.
11552 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
11553
11554 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
11555
11556 * font.c (font_clear_prop): If clearing the family, clear the font
11557 width index too.
11558
11559 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
11560
11561 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
11562
11563 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
11564 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
11565 functions, use sizeof.
11566
11567 2009-01-12 Martin Rudalics <rudalics@gmx.at>
11568
11569 * keyboard.c (read_char): Fix case where last_nonmenu_event
11570 returned a bad value with submenus. (Bug#447)
11571
11572 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
11573
11574 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
11575 family, clear the font width index too.
11576
11577 2009-01-11 Jason Rumney <jasonr@gnu.org>
11578
11579 * keyboard.c (cmd_error_internal): Exit when errors occur before
11580 frame creation and not in daemon mode. (Bug#1836)
11581
11582 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
11583
11584 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
11585 of a display vector, backtrack.
11586 (try_window_reusing_current_matrix): Check glyph type before
11587 referencing charpos member.
11588
11589 2009-01-10 Eli Zaretskii <eliz@gnu.org>
11590
11591 Fix Bug #876:
11592
11593 * coding.c (inhibit_null_byte_detection): New variable.
11594 (detect_coding, detect_coding_system): Don't pay attention to null
11595 bytes if inhibit_null_byte_detection is non-zero.
11596 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
11597 <inhibit-iso-escape-detection>: Doc fix.
11598
11599 2009-01-09 Jason Rumney <jasonr@gnu.org>
11600
11601 * w32font.c (add_font_entity_to_list): Don't report unknown
11602 Windows charset as any unrecognized registry. (Bug#1548)
11603 Only report Unicode Plane 2 fonts as unicode-sip.
11604
11605 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
11606
11607 * xfaces.c (Fx_font_family_list): Delete function.
11608 Move compatibility version to faces.el.
11609
11610 * font.c (Ffont_family_list): Return a list of strings, not symbols.
11611
11612 2009-01-09 Martin Rudalics <rudalics@gmx.at>
11613
11614 * frame.c (x_set_frame_parameters): Remember requested value for
11615 fullscreen before it's reset by the parameter handler.
11616
11617 2009-01-09 Glenn Morris <rgm@gnu.org>
11618
11619 * keyboard.c (last_command_char): For clarity, rename to...
11620 (last_command_event): ... and update all users.
11621 (last_input_char): For clarity, rename to...
11622 (last_input_event): ... and update all users.
11623 (last-command-char, last-input-char): Move to subr.el as aliases.
11624 * cmds.c, commands.h: Update for last_command_char rename.
11625
11626 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
11627
11628 * font.c (font_open_for_lface): Handle unspecified height attribute.
11629
11630 2009-01-08 Jason Rumney <jasonr@gnu.org>
11631
11632 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
11633 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
11634 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
11635 Don't declare.
11636 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
11637 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
11638
11639 2009-01-07 Kenichi Handa <handa@m17n.org>
11640
11641 * fileio.c (Finsert_file_contents): In the case of replace,
11642 remember the coding system used for decoding in
11643 coding_system (Bug#1039).
11644
11645 * coding.c (decode_coding_utf_8): Check byte_after_cr before
11646 breaking the loop. (Bug#870)
11647 (decode_coding_utf_16, decode_coding_emacs_mule)
11648 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11649 (decode_coding_charset): Likewise.
11650
11651 2009-01-05 Martin Rudalics <rudalics@gmx.at>
11652
11653 * frame.c (x_set_frame_parameters): Make sure height (width) get
11654 applied when fullwidth (fullheight) is set. (Bug#1522)
11655
11656 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
11657
11658 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
11659 (utc_base): Declare as ULONGLONG, not long double.
11660 (convert_time_raw): Delete.
11661 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
11662 (initialize_utc_base): New function.
11663 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
11664 (convert_from_time_t): Use initialize_utc_base; compute result with
11665 64-bit arithmetic.
11666 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
11667
11668 2009-01-03 Eli Zaretskii <eliz@gnu.org>
11669
11670 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
11671 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
11672 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
11673 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
11674 [!subprocesses]: Define.
11675 (syms_of_process) [!subprocesses]: Intern and staticpro them.
11676 (Flist_system_processes, Fsystem_process_attributes)
11677 [!subprocesses]: Call list_system_processes and
11678 system_process_attributes instead of returning Qnil.
11679
11680 * dosfns.c (system_process_attributes, list_system_processes):
11681 New functions.
11682
11683 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
11684
11685 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
11686 Don't use the default (no-op) implementation.
11687
11688 2009-01-03 Jason Rumney <jasonr@gnu.org>
11689
11690 * keyboard.c (parse_modifiers_uncached): Wheel events are
11691 clicks (bug#687).
11692
11693 * w32term.c (x_query_colors, x_query_color): New functions.
11694
11695 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
11696 (svg_load_image): Cast returned pointers from dynamically loaded
11697 functions. Eliminate W32 specific code.
11698
11699 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
11700
11701 * nsfns.m (x_set_foreground_color, x_set_background_color)
11702 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
11703 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
11704 x_ prefix instead of ns_. Update references.
11705 (syms_of_nsfns): Add a FIXME comment.
11706
11707 * nsterm.m (x_set_cursor_type): New prototype.
11708 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
11709
11710 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
11711 for Solaris instead of incorrectly providing Qutime and Qcutime.
11712
11713 2009-01-02 Eli Zaretskii <eliz@gnu.org>
11714
11715 * w32.c (process_times): Compute sum of utime and stime.
11716 (system_process_attributes): Add Qtime to the alist.
11717
11718 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
11719 and add them to the alist.
11720
11721 * process.c (top level) <Qtime, Qctime>: New variables.
11722 (syms_of_process): staticpro them.
11723 (Fsystem_process_attributes): Add their documentation to the doc
11724 string.
11725
11726 * process.h: Declare Qtime and Qctime.
11727
11728 2009-01-02 Jason Rumney <jasonr@gnu.org>
11729
11730 * image.c (Qgobject): New symbol.
11731 (syms_of_image): Initialize it.
11732 (init_svg_functions): Load some functions from gobject library.
11733
11734 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
11735
11736 * frame.c (make_terminal_frame): Remove redundant code and useless
11737 block.
11738
11739 2009-01-01 Andreas Schwab <schwab@suse.de>
11740
11741 * process.c (conv_sockaddr_to_lisp): Add workaround for
11742 getsockname bug on BSD.
11743
11744 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
11745
11746 * xfns.c (x_create_tip_frame): Set border width of the X window.
11747
11748 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
11749
11750 2009-01-01 Jason Rumney <jasonr@gnu.org>
11751
11752 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
11753 Don't block input, as per earlier xterm.c changes.
11754
11755 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
11756
11757 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
11758 (ns_appkit_version_int): New function.
11759 (x-server-version): Use ns_appkit_version_int and follow 21+
11760 convention of returning 3 integers.
11761
11762 2008-12-30 Kenichi Handa <handa@m17n.org>
11763
11764 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
11765 (CHAR_SURROGATE_PAIR_P): New macro.
11766
11767 * font.h (struct font_driver): New member get_variation_glyphs.
11768
11769 * font.c (font_range): Don't require a font for a variation selector.
11770 (Ffont_variation_glyphs): New function.
11771 (syms_of_font): Defsubr it.
11772
11773 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
11774 ftfont_variation_glyphs.
11775 (setup_otf_gstring): New function.
11776 (ftfont_drive_otf): Use it.
11777 (ftfont_shape_by_flt): Handle variation selector.
11778 (ftfont_variation_glyphs): New function.
11779
11780 2008-12-30 Martin Rudalics <rudalics@gmx.at>
11781
11782 * frame.c (Vemacs_iconified): Remove.
11783
11784 2008-12-30 Jason Rumney <jasonr@gnu.org>
11785
11786 * frame.c (store_frame_param, x_get_arg): Enable newer code on
11787 WINDOWSNT too, as related changes have already been synced. (Bug#117)
11788
11789 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
11790
11791 * indent.c (Fvertical_motion): Don't advance iterator if we have
11792 reseated to the desired position.
11793
11794 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
11795 checking for pos match.
11796
11797 2008-12-30 Kenichi Handa <handa@m17n.org>
11798
11799 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
11800 just get the low 8-bit of the code.
11801
11802 * font.c (font_intern_prop): Validate str as multibyte.
11803
11804 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
11805
11806 * dispextern.h (struct face): Move lface and hash from the middle
11807 of bitfields.
11808
11809 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
11810
11811 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
11812
11813 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
11814 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
11815 instead of intervals.h.
11816
11817 2008-12-26 Andreas Schwab <schwab@suse.de>
11818
11819 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
11820 cons.
11821
11822 2008-12-26 Martin Rudalics <rudalics@gmx.at>
11823
11824 * textprop.c (Qminibuffer_prompt): New variable.
11825 (syms_of_textprop): Initialize it.
11826 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
11827 in minibuffer-prompt face. (Bug#1662)
11828
11829 2008-12-25 Jason Rumney <jasonr@gnu.org>
11830
11831 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
11832
11833 2008-12-24 Jason Rumney <jasonr@gnu.org>
11834
11835 * ralloc.c (r_alloc_reset_variable): New function.
11836
11837 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
11838 record of what points where. (Bug#716)
11839
11840 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
11841
11842 * minibuf.c (read_minibuf): Follow the non-interactive case when
11843 running as a daemon, before detaching.
11844
11845 2008-12-22 Andreas Schwab <schwab@suse.de>
11846
11847 * buffer.c (init_buffer): Use realloc instead of xrealloc.
11848 * gtkutil.c (free_widget_value): Use xfree instead of free.
11849
11850 2008-12-22 Martin Rudalics <rudalics@gmx.at>
11851
11852 * frame.c (delete_frame): New function derived from
11853 Fdelete_frame to handle Qnoelisp value for FORCE argument.
11854 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
11855 (Fdelete_frame): Call delete_frame. Remove line from doc-string
11856 saying that FORCE non-nil doesn't run `delete-frame-functions'.
11857 * frame.h: Extern delete_frame.
11858 * window.c (window_loop):
11859 * terminal.c (delete_terminal):
11860 * xterm.c (x_connection_closed):
11861 * xfns.c (Fx_hide_tip):
11862 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
11863
11864 2008-12-21 Jason Rumney <jasonr@gnu.org>
11865
11866 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
11867 when character maps to .notdef character.
11868
11869 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
11870
11871 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
11872
11873 2008-12-20 Jason Rumney <jasonr@gnu.org>
11874
11875 * frame.c (Fmake_terminal_frame): Raise an error when called from
11876 a graphical frame on Windows. (Bug#1325)
11877
11878 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
11879
11880 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
11881
11882 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
11883
11884 * minibuf.c (Fread_buffer): Doc fix.
11885
11886 2008-12-20 Jason Rumney <jasonr@gnu.org>
11887
11888 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
11889 server name in UNC paths. (Bug#719)
11890
11891 * coding.c (decode_coding): Clear chars_at_source flag when using
11892 charbuf. (Bug#1035)
11893
11894 2008-12-19 Daniel Engeler <engeler@gmail.com>
11895
11896 * sysdep.c (serial_configure): Fix typo.
11897
11898 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
11899
11900 * sysdep.c: Include alloca.h.
11901 (system_process_attributes): Add implementation for Solaris.
11902
11903 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
11904
11905 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
11906
11907 Reorganize implementation of Flist_system_processes and
11908 Fsystem_process_attributes. No functional changes.
11909 * process.c: Don't #include pwd.h, grp.h and limits.h.
11910 (Flist_system_processes): Just call list_system_processes.
11911 (Fsystem_process_attributes): Just call system_process_attributes.
11912 (procfs_list_system_processes, time_from_jiffies)
11913 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
11914 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
11915
11916 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
11917 (list_system_processes): Rename from
11918 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
11919 Provide a do nothing implementation.
11920 (system_process_attributes): Rename from
11921 procfs_list_system_processes.
11922 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
11923 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
11924
11925 * w32.c (list_system_processes): Rename from
11926 w32_list_system_processes.
11927 (system_process_attributes): Rename from
11928 w32_system_process_attributes.
11929
11930 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
11931
11932 * process.h (w32_list_system_processes)
11933 (w32_system_process_attributes): Remove.
11934 (list_system_processes, system_process_attributes):
11935 New prototypes.
11936
11937 2008-12-19 Kenichi Handa <handa@m17n.org>
11938
11939 * xfont.c (xfont_decode_coding_xlfd): New function.
11940 (xfont_encode_coding_xlfd): New function.
11941 (xfont_list_pattern): Decode XLFD by iso-8859-1.
11942 (xfont_list): Decode and encode XLFD by iso-8859-1.
11943 (xfont_match): Likewise.
11944 (xfont_list_family): Likewise.
11945 (xfont_open): Likewise.
11946
11947 * ftfont.c (ftfont_open): Generate a multibyte string if given
11948 names are utf-8.
11949
11950 * xftfont.c (xftfont_open): Generate a multibyte string if given
11951 names are utf-8.
11952
11953 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
11954
11955 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
11956 changed.
11957 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
11958 clicked on a detached tool bar button.
11959
11960 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
11961
11962 * emacs.c (main): Print and error and exit when no data is read
11963 from the pipe.
11964
11965 2008-12-17 Jason Rumney <jasonr@gnu.org>
11966
11967 * w32font.c (w32font_has_char): Always return -1.
11968
11969 2008-12-16 Kenichi Handa <handa@m17n.org>
11970
11971 * font.c (font_open_entity): Fix previous change.
11972
11973 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
11974
11975 * process.c: Include <limits.h>.
11976
11977 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
11978
11979 * font.c (font_update_drivers): Fix mistake in reconstructing the
11980 driver list.
11981
11982 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
11983
11984 * font.c (font_clear_cache): Fix format of font cache data.
11985
11986 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
11987
11988 * xftfont.c (xftfont_open): Free Xft font pattern if
11989 XftFontOpenPattern fails.
11990
11991 * xterm.c (x_free_frame_resources): Remove extraneous call to
11992 free_frame_faces.
11993
11994 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
11995
11996 * xterm.c (x_delete_display): Move xim_close_dpy call to
11997 x_delete_terminal.
11998 (x_delete_terminal): Call xim_close_dpy.
11999
12000 2008-12-13 Jason Rumney <jasonr@gnu.org>
12001
12002 * w32font.c (intern_font_name): New function.
12003 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
12004 (w32font_open_internal, Fx_select_font): Decode font name.
12005 (fill_in_logfont, list_all_matching_fonts): Encode font name.
12006
12007 * w32font.h (intern_font_name): Declare new function.
12008
12009 * w32uniscribe.c (add_opentype_font_name_to_list):
12010 Use intern_font_name.
12011
12012 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
12013
12014 * frame.c (Fdelete_frame): Call free_font_driver_list.
12015
12016 * font.c (free_font_driver_list): Implement missing function.
12017
12018 * w32term.c (w32_term_init): Don't initialize the image cache
12019 here; it will be done in init_frame_faces.
12020
12021 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
12022 (struct x_display_info): Remove unused member null_pixel. New
12023 member xim_callback_data.
12024
12025 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
12026 (xim_initialize): Save pointer to callback function data.
12027 (xim_close_dpy): Free callback function data. Call XCloseIM,
12028 reverting 2008-11-04 change by David Smith.
12029 (x_term_init): Don't initialize the image cache here; it will be
12030 done in init_frame_faces. Remove ancient "null_pixel" cruft.
12031 (x_delete_display): Free x_dnd_atoms member.
12032
12033 2008-12-13 Kenichi Handa <handa@m17n.org>
12034
12035 * font.c (font_rescale_ratio): Moved from xfaces.c.
12036 Argument type changed. Handle a font-spec too.
12037 (font_score): Check Vface_font_rescale_alist.
12038 (font_open_entity): Likewise. (Bug#1547)
12039
12040 * xfaces.c (font_rescale_ratio): Moved to font.c.
12041
12042 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
12043
12044 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
12045
12046 2008-12-12 Jason Rumney <jasonr@gnu.org>
12047
12048 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
12049 Vwindow_system_version to the real w32 major version.
12050
12051 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
12052
12053 * term.c (init_tty): Move setting the terminal name before the
12054 potential user: maybe_fatal.
12055
12056 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
12057
12058 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
12059 all callers changed. Call free_frame_faces to free the face cache.
12060
12061 2008-12-11 Jason Rumney <jasonr@gnu.org>
12062
12063 * w32font.c (fill_in_logfont): Don't assume symbol script means
12064 SYMBOL_CHARSET. (Bug#547)
12065
12066 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
12067 size for surrogates. (Bug#1096, bug#872)
12068
12069 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
12070
12071 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
12072
12073 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
12074
12075 * process.c (Fsystem_process_attributes, syms_of_process):
12076 Fix typo in name of Ssystem_process_attributes.
12077 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
12078
12079 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
12080
12081 * syntax.c (Fmodify_syntax_entry): Doc fix.
12082
12083 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
12084
12085 * font.c (Ffont_spec): Move usage to end of docstring.
12086
12087 2008-12-10 Jason Rumney <jasonr@gnu.org>
12088
12089 * w32font.c (Qcham): New symbol.
12090 (font_supported_scripts): Add cham, and comments for other new
12091 scripts in bitfield from OpenType spec.
12092 (add_font_entity_to_list): Limit unicode-sip fonts to those that
12093 contain characters beyond the bmp.
12094
12095 2008-12-10 Kenichi Handa <handa@m17n.org>
12096
12097 * ftfont.c (fc_charset_table): Add "unicode-sip".
12098 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
12099 Qunicode_sip.
12100
12101 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
12102
12103 * coding.c (QCdefault_char): Rename from QCdefalut_char.
12104 (Fcoding_system_put): Use QCdefault_char.
12105 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
12106
12107 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
12108
12109 * xftfont.c (syms_of_xftfont): Fix typo.
12110
12111 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
12112
12113 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
12114
12115 * emacs.c (main): Close daemon_pipe on exec.
12116
12117 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
12118
12119 * termchar.h (struct tty): New members termcap_term_buffer and
12120 termcap_strings_buffer.
12121
12122 * term.c (encode_terminal_code): Free any previous memory blocks
12123 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
12124 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
12125 All callers changed.
12126 (init_tty): Store termcap data and string buffers in new struct
12127 tty members termcap_term_buffer and termcap_strings_buffer.
12128 (delete_tty): Free them.
12129 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
12130
12131 2008-12-07 Seiji Zenitani <zenitani@mac.com>
12132
12133 * nsfns.m (ns_set_background_color): Remove code duplication.
12134 It was a substitute for face-transparency on OS X 10.3.
12135
12136 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
12137
12138 * coding.c (make_conversion_work_buffer): Disable buffer
12139 modification hooks in the work buffer.
12140
12141 2008-12-05 Eli Zaretskii <eliz@gnu.org>
12142
12143 * process.c (procfs_system_process_attributes): If `nread' has a
12144 negative value, assign zero to it.
12145
12146 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
12147
12148 * eval.c (Vdebug_on_error): Doc fix.
12149
12150 2008-12-05 Kenichi Handa <handa@m17n.org>
12151
12152 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
12153 second character is a combining character.
12154
12155 2008-12-05 Eli Zaretskii <eliz@gnu.org>
12156
12157 * process.c (procfs_system_process_attributes): Don't use cmd,
12158 cmdsize, and q without initializing them first.
12159
12160 2008-12-04 Jason Rumney <jasonr@gnu.org>
12161
12162 * w32font.c (w32font_draw): Initialize orig_clip before getting
12163 it, and delete it when finished.
12164
12165 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
12166
12167 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
12168 case when running as a daemon before detaching.
12169
12170 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
12171
12172 * w32.c (init_environment): Don't unload library shell32.dll.
12173
12174 2008-12-03 Kenichi Handa <handa@m17n.org>
12175
12176 * font.c (font_at): Set `multibyte' at first.
12177
12178 * coding.c (decode_coding_charset): Check type of an element of
12179 vector VALIDS.
12180 (encode_coding_emacs_mule): Be sure to set `code'.
12181
12182 * fontset.c (face_for_char): Handle invalid charset property correctly.
12183 (font_for_char): Likewise.
12184
12185 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
12186
12187 * font.c (Fopen_font): Compute pixel size correctly.
12188 (font_update_lface): Handle fonts with corrupted size specs,
12189 i.e. non-int and non-float.
12190
12191 * ftfont.c (ftfont_match): Initialize entity variable.
12192 (ftfont_resolve_generic_family): Avoid using uninitialized var.
12193 (ftfont_list_family): Initialize list var earlier.
12194
12195 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
12196
12197 * xterm.c (x_draw_glyph_string): Fall back on
12198 underline_minimum_offset for underline position.
12199
12200 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
12201
12202 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
12203
12204 * character.c (c_string_width): Specify the type for LEN.
12205
12206 2008-12-03 Kenichi Handa <handa@m17n.org>
12207
12208 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
12209 (decode_coding_utf_8): Likewise.
12210 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
12211 (produce_chars): Initialize consumed_chars to 0.
12212
12213 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
12214
12215 * keyboard.c (make_lispy_position): Only use PT if the selected
12216 window is current.
12217
12218 2008-12-02 Andreas Schwab <schwab@suse.de>
12219
12220 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
12221
12222 * doprnt.c (doprnt1): Fix size of charbuf.
12223
12224 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
12225
12226 * keyboard.c (timer_check): Revert last change.
12227
12228 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
12229
12230 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
12231
12232 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
12233
12234 * makefile.w32-in: Update dependencies.
12235 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
12236
12237 2008-12-01 Andreas Schwab <schwab@suse.de>
12238
12239 * font.c (register_font_driver): Use xmalloc.
12240 (font_put_frame_data): Likewise.
12241
12242 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
12243
12244 * xfaces.c (realize_x_face): Make abort condition clearer.
12245
12246 * gtkutil.c (update_frame_tool_bar): Initialize variable.
12247
12248 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
12249
12250 * keyboard.c (timer_check): After a timer runs, ensure that the
12251 selected window's buffer is current.
12252
12253 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
12254
12255 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
12256 It was accidentally restored by the Unicode merge.
12257
12258 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
12259
12260 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
12261
12262 * w32proc.c: Include "coding.h".
12263 (Fw32_short_file_name): Encode filename passed to Windows API.
12264 (Fw32_long_file_name): Encode filename passed to Windows API and
12265 decode back the result. (Bug#1433)
12266
12267 2008-11-29 Kenichi Handa <handa@m17n.org>
12268
12269 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
12270 not before accessing it.
12271
12272 * charset.c (Fdefine_charset_internal): After calculating
12273 min_char, max_char, and fastmap, copy the charset structure again.
12274 (encode_char): Fix the previous change.
12275
12276 2008-11-28 Seiji Zenitani <zenitani@mac.com>
12277
12278 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
12279
12280 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
12281
12282 * nsterm.m (x_set_frame_alpha): New function.
12283
12284 2008-11-27 Eli Zaretskii <eliz@gnu.org>
12285
12286 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
12287
12288 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
12289
12290 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
12291 pointer to check_face_name.
12292
12293 2008-11-27 Kenichi Handa <handa@m17n.org>
12294
12295 * category.h (SET_CATEGORY_SET): Call set_category_set.
12296 (set_category_set): Extern it.
12297
12298 * category.c (hash_get_category_set): New function.
12299 (Fmodify_category_entry): Adjusted for the change of
12300 char_table_ref_and_range. Call hash_get_category_set to get a
12301 category set to store in the table.
12302
12303 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
12304 Funify_charset.
12305
12306 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
12307 (DECODE_CHAR): Check if the decoder vector is ready.
12308 (ENCODE_CHAR): Check if the encoder char-table is ready.
12309 (maybe_unify_char): Extern it.
12310
12311 * charset.c (Vchar_unified_charset_table): Delete it.
12312 (inhibit_load_charset_map): New variable.
12313 (temp_charset_work): New variable.
12314 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
12315 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
12316 New macros.
12317 (load_charset_map): Meaning of control_flag changed. If
12318 inhibit_load_charset_map is nonzero, setup a table in
12319 temp_charset_work.
12320 (load_charset): New argument control_flag.
12321 (map_charset_for_dump): New function.
12322 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
12323 map_charset_for_dump.
12324 (Fdefine_charset_internal): If the charset method is MAP, load
12325 mapping tables by calling load_charset.
12326 (Funify_charset): Don't load a mapping table but directly set
12327 Vchar_unify_table.
12328 (maybe_unify_char): New function.
12329 (decode_char): Don't handle the deleted method MAP_DEFERRED.
12330 Handle the case of inhibit_load_charset_map being nonzero.
12331 (encode_char): Don't handle the deleted method MAP_DEFERRED.
12332 Handle the case of inhibit_load_charset_map being nonzero.
12333 (Fclear_charset_maps): Just free temp_charset_work.
12334 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
12335 variable.
12336
12337 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
12338 change of char_table_ref_and_range.
12339 (char_table_ref_and_range): Change the meaning of argument FROM
12340 and TO. Now the caller must provide initial values for *FROM
12341 and *TO.
12342
12343 * fontset.c (fontset_add): Adjusted for the change of
12344 char_table_ref_and_range.
12345 (fontset_get_font_group): Likewise.
12346 (Ffontset_info): Likewise.
12347
12348 * keymap.c (describe_vector): Adjusted for the change of
12349 char_table_ref_and_range. For char-table, put boundary between
12350 non-ASCII and 8-bit characters.
12351
12352 * print.c (print_object): For bool-vector, delete unnecessary
12353 check of ASCII_BYTE_P.
12354
12355 2008-11-26 Jason Rumney <jasonr@gnu.org>
12356
12357 * w32font.c (w32font_open_internal): Don't include external
12358 leading in font height. (Bug#879)
12359
12360 2008-11-26 Glenn Morris <rgm@gnu.org>
12361
12362 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
12363 redefinition with ifdef. (Bug#1383)
12364
12365 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
12366
12367 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
12368
12369 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
12370
12371 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
12372 New EmacsView methods.
12373 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
12374 Fixes bug #1048,1357,1414.
12375
12376 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
12377
12378 Fix bug #1362.
12379 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
12380 is not an indexed color.
12381 * nsterm.m (free_indexed_color): Add argument checking.
12382 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
12383
12384 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
12385
12386 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
12387 Document confirm-after-completion value for
12388 minibuffer-completion-confirm.
12389
12390 2008-11-24 Jason Rumney <jasonr@gnu.org>
12391
12392 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
12393 warning.
12394
12395 2008-11-23 Jason Rumney <jasonr@gnu.org>
12396
12397 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
12398 restored before returning.
12399
12400 * w32font.c (check_face_name): New function.
12401 (add_font_entity_to_list): Use it to filter out common substituted
12402 fonts. (Bug#642)
12403
12404 2008-11-22 Martin Rudalics <rudalics@gmx.at>
12405
12406 * buffer.c (Fswitch_to_buffer): Reword and mention new option
12407 confirm-nonexistent-file-or-buffer in doc-string.
12408
12409 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
12410
12411 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
12412 Fix copy/paste typo. Add checks.
12413
12414 2008-11-21 Kenichi Handa <handa@m17n.org>
12415
12416 * coding.c (detect_coding_iso_2022): Reject invalid composition
12417 sequence.
12418 (DECODE_COMPOSITION_START): If the current source is the last
12419 block, and the current composition doesn't end, regard this
12420 sequence as invalid.
12421 (decode_coding_iso_2022): Handle invalid composition sequence.
12422
12423 2008-11-20 Martin Rudalics <rudalics@gmx.at>
12424
12425 * window.c (coordinates_in_window): Don't return
12426 ON_VERTICAL_BORDER for the rightmost position of a mode/header
12427 line when the window is not the rightmost one. (Bug#1372)
12428
12429 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
12430
12431 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
12432
12433 2008-11-15 Eli Zaretskii <eliz@gnu.org>
12434
12435 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
12436 and bright_bg if noninteractive is non-zero.
12437
12438 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12439
12440 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
12441 x_draw_glyph_string_background.
12442
12443 * w32term.c (x_draw_glyph_string): Likewise.
12444
12445 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
12446
12447 * xterm.c (x_draw_glyph_string): Stop drawing the background of
12448 the next glyph string once past the overhang width.
12449
12450 * nsterm.m (ns_draw_glyph_string): Likewise.
12451
12452 * w32term.c (x_draw_glyph_string): Likewise.
12453
12454 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
12455
12456 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
12457 double file close.
12458
12459 2008-11-14 Martin Rudalics <rudalics@gmx.at>
12460
12461 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
12462 dedicated status of window before attempting to display another
12463 buffer in it.
12464
12465 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
12466
12467 * msdos.c (Fmsdos_long_file_names):
12468 (syms_of_msdos) <dos-unsupported-char-glyph>:
12469 * dosfns.c (Fint86): Fix typos in docstrings.
12470
12471 2008-11-14 Eli Zaretskii <eliz@gnu.org>
12472
12473 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
12474
12475 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
12476
12477 * puresize.h (BASE_PURESIZE): Increase to 1260000.
12478
12479 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
12480
12481 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
12482
12483 * frame.h: Negative alpha means "don't touch".
12484
12485 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
12486
12487 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
12488
12489 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
12490
12491 * hftctl.c:
12492 * chpdef.h:
12493 * acldef.h: Remove files used only for systems no longer supported.
12494
12495 * Makefile.in: Fix .o alphabetical ordering.
12496 (hftctl.o): Remove dependency, file removed.
12497 (keymap.o, print.o): Depend on charset.h.
12498
12499 2008-11-10 Kenichi Handa <handa@m17n.org>
12500
12501 * character.c (Fget_byte): Fix and make it faster for unibyte target.
12502
12503 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
12504
12505 * dired.c (file_name_completion): If completion_ignore_case is
12506 enabled, ignore case when checking completion-regexp-list.
12507
12508 2008-11-08 Eli Zaretskii <eliz@gnu.org>
12509
12510 * vm-limit.c (get_lim_data): Fix last change.
12511
12512 2008-11-08 Kenichi Handa <handa@m17n.org>
12513
12514 * character.c (Fget_byte): New function.
12515 (syms_of_character): Defsubr Fget_byte.
12516
12517 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
12518
12519 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
12520 cursor position is valid after scrolling.
12521
12522 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
12523
12524 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
12525
12526 2008-11-06 Glenn Morris <rgm@gnu.org>
12527
12528 * xterm.c (handle_one_xevent): Don't let popup menus cause
12529 mouse-autoselect-window related window switching. (Bug#1261)
12530
12531 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
12532
12533 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
12534
12535 2008-11-04 Andreas Schwab <schwab@suse.de>
12536
12537 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
12538
12539 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
12540
12541 * xfns.c (Fx_wm_set_size_hint): New function.
12542
12543 2008-11-03 Martin Rudalics <rudalics@gmx.at>
12544
12545 * textprop.c (Fprevious_single_char_property_change): Return 0
12546 when there's no change in a string. (Bug#1301)
12547
12548 2008-11-02 Martin Rudalics <rudalics@gmx.at>
12549
12550 * frame.c (do_switch_frame): New argument NORECORD passed to
12551 Fselect_window.
12552 (Fselect_frame): New argument NORECORD passed to
12553 do_switch_frame.
12554 (Fset_frame_selected_window): New argument NORECORD passed to
12555 Fselect_frame.
12556 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
12557 in call of do_switch_frame.
12558 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
12559 Handle NORECORD argument in call of Fselect_frame.
12560 * lisp.h (do_switch_frame, Fselect_frame)
12561 (Fset_frame_selected_window): Adjust declarations.
12562 * window.c (select_frame_norecord): New function.
12563 (run_window_configuration_change_hook): Use it and call
12564 Fselect_frame with NORECORD set.
12565 (Fselect_window): Pass NORECORD to Fselect_frame.
12566 (Fset_window_configuration): Handle NORECORD argument in call of
12567 do_switch_frame.
12568 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
12569 Fset_frame_selected_window.
12570 * keyboard.c (command_loop_1): Handle NORECORD in call of
12571 Fselect_frame (currently ifdefd).
12572
12573 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
12574
12575 * emacs.c (USAGE2): Untabify.
12576
12577 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
12578
12579 * composite.c (fill_gstring_header): Fix copy/paste typo.
12580
12581 2008-10-31 Martin Rudalics <rudalics@gmx.at>
12582
12583 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
12584 (Fother_window): Rename argument and rewrite doc-string.
12585 (select_window_norecord): Fix return value. (Bug#1276)
12586
12587 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
12588
12589 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
12590 new frames overriding foreground for tooltips. Based on similar patch
12591 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
12592
12593 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
12594
12595 * emacs.c (Fdaemon_initialized): Initialize nfd.
12596
12597 2008-10-29 Martin Rudalics <rudalics@gmx.at>
12598
12599 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
12600 (Fwindow_text_height): Clarify doc-strings.
12601 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
12602 doc-string of window-scroll-functions.
12603
12604 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
12605
12606 * category.c (syms_of_category): Fix typo in docstring.
12607
12608 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
12609
12610 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
12611 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
12612 Fix typos in docstrings.
12613
12614 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
12615
12616 * emacs.c (daemon_pipe): Make non-static.
12617 (IS_DAEMON): Move definition ...
12618 * lisp.h (IS_DAEMON): ... here.
12619 (daemon_pipe): Declare.
12620 (is_daemon): Remove.
12621 * dispnew.c (init_display): Use IS_DAEMON.
12622
12623 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
12624
12625 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
12626 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
12627
12628 * emacs.c (is_daemon): Remove.
12629 (main): Don't set is_daemon.
12630 (IS_DAEMON): New macro.
12631 (Fdaemonp, Fdaemon_initialized): Use it.
12632 (Fdaemon_initialized): Write a char into the pipe to make sure the
12633 parent exits.
12634 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
12635
12636 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
12637
12638 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
12639 over-sized glyph, draw it with the default glyph width.
12640
12641 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
12642 glyph, draw it with the default glyph width.
12643
12644 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
12645 glyph, draw it with the default glyph width.
12646
12647 * xdisp.c (try_scrolling): When computing the distance from the
12648 scroll margin to PT, try moving some distance past the window
12649 bottom before giving up.
12650
12651 2008-10-27 Martin Rudalics <rudalics@gmx.at>
12652
12653 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
12654 (Fset_window_buffer): Explain in doc-string that a window can be
12655 "strongly" dedicated to its buffer.
12656
12657 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
12658
12659 * emacs.c (daemon_name): New variable.
12660 (main): Deal with --daemon=SERVER_NAME.
12661 (Fdaemonp): Return a name if one was passed to --daemon.
12662
12663 2008-10-26 Romain Francoise <romain@orebokech.com>
12664
12665 * emacs.c (daemon_pipe): New variable.
12666 (main): Create a pipe before forking, make the parent exit only after
12667 the child has closed its end of the pipe. Move closing the
12668 descriptors ...
12669 (Fdaemon_initialized): ... here. New function.
12670
12671 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
12672
12673 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
12674 the previous unoptimized table.
12675
12676 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
12677 the distinction between non-nil and non-t value of `dedicated'.
12678
12679 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
12680
12681 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
12682 read_char_minibuf_menu_text is large enough to hold the menu string.
12683
12684 2008-10-25 Martin Rudalics <rudalics@gmx.at>
12685
12686 * window.c (Fget_buffer_window, Fdelete_windows_on)
12687 (Freplace_buffer_in_windows): Make buffer argument optional and
12688 rename to buffer_or_name.
12689
12690 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
12691
12692 * xdisp.c (handle_single_display_spec, handle_display_prop):
12693 Undo 2005-05-16 change.
12694 (handle_stop): Pop iterator if it's loaded with an empty string.
12695 (get_overlay_strings_1): Don't save iterator if it's loaded with
12696 an empty string (bug#1201).
12697
12698 2008-10-24 Kenichi Handa <handa@m17n.org>
12699
12700 * ftfont.c (ftfont_otf_features): Fix previous change.
12701 (ftfont_otf_capability): Check FeatureList.FeatureCount before
12702 calling ftfont_otf_features.
12703
12704 2008-10-24 Kenichi Handa <handa@m17n.org>
12705
12706 * font.c (font_match_p): Fix for the case that a vector of
12707 characters is in script-representative-chars.
12708
12709 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
12710
12711 * dbusbind.c (xd_in_read_queued_messages): New variable.
12712 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
12713 (xd_read_queued_messages): Catch Qdbus_error from the macros.
12714 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
12715 macro. (Bug#1186)
12716
12717 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
12718
12719 * s/sol2-10.h: New file.
12720
12721 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
12722
12723 * xdisp.c (fill_glyph_string): Fix typo in source (though the
12724 poor beast has survived 9+ years and the jump from xterm.c!).
12725
12726 2008-10-23 Martin Rudalics <rudalics@gmx.at>
12727
12728 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
12729 Reword doc-string.
12730 (Fbury_buffer): In doc-string say what happens to the buffer's window.
12731
12732 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
12733
12734 * character.c (syms_of_character) <script-representative-chars>:
12735 <unicode-category-table>: Doc fixes.
12736
12737 2008-10-23 Noah Friedman <friedman@splode.com>
12738
12739 * coding.c (make_conversion_work_buffer): Check that
12740 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
12741 Fget_buffer_create.
12742
12743 2008-10-23 Kenichi Handa <handa@m17n.org>
12744
12745 * font.c (font_add_log): Check the values of extra properties.
12746
12747 2008-10-22 Martin Rudalics <rudalics@gmx.at>
12748
12749 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
12750 Reword doc-string.
12751 (Fset_window_parameter): Use NILP.
12752 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
12753 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12754
12755 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
12756
12757 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
12758
12759 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12760
12761 * nsfns.m (ns_appkit_version): New function.
12762 (x-server-version): Use it.
12763 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
12764 (x-server-vendor): Don't check_ns().
12765
12766 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
12767
12768 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
12769
12770 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
12771 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
12772
12773 2008-10-22 Kenichi Handa <handa@m17n.org>
12774
12775 * syntax.c (scan_words): Call word_boundary_p instead of comparing
12776 scripts.
12777
12778 * category.c (word_boundary_p): Check scripts instead of charset.
12779 Handle nil value in word-separating-categories and
12780 word-combining-categories.
12781 (syms_of_category): Fix docstrings of word-separating-categories
12782 and word-combining-categories.
12783
12784 2008-10-21 Eli Zaretskii <eliz@gnu.org>
12785
12786 * coding.c (Fencode_coding_region, Fdecode_coding_region)
12787 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
12788
12789 2008-10-21 Martin Rudalics <rudalics@gmx.at>
12790
12791 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
12792 Rename arg "buffer" to "buffer_or_name".
12793 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
12794 it optional.
12795 (no_switch_window): Remove since the return value is not used.
12796 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
12797 Consider window as dedicated when Fwindow_dedicated_p returns a
12798 non-nil value.
12799 * lisp.h: Remove prototype for no_switch_window.
12800
12801 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
12802
12803 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
12804 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
12805
12806 2008-10-21 Kenichi Handa <handa@m17n.org>
12807
12808 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
12809 check Vlatin_extra_code_table.
12810
12811 2008-10-20 Eli Zaretskii <eliz@gnu.org>
12812
12813 * fileio.c (Fset_file_modes): Doc fix.
12814
12815 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
12816
12817 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
12818 in arrays.
12819
12820 2008-10-19 Martin Rudalics <rudalics@gmx.at>
12821
12822 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
12823 Mention kill-buffer in doc-string.
12824 (Fset_window_buffer): Reinsert tem check removed in last commit.
12825 (Fenlarge_window, Fshrink_window): Have argument names and
12826 doc-string follow Elisp manual more closely.
12827
12828 2008-10-18 Eli Zaretskii <eliz@gnu.org>
12829
12830 * fileio.c (Fset_file_modes): Doc fix.
12831
12832 2008-10-18 Martin Rudalics <rudalics@gmx.at>
12833
12834 * window.c (Fwindow_width, Fset_window_start)
12835 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
12836 (Fdelete_windows_on, Freplace_buffer_in_windows):
12837 Make doc-strings follow code and Elisp manual more closely.
12838 (Fwindow_dedicated_p): Make window argument optional.
12839 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
12840 (Fset_window_buffer): Respect any non-nil dedicated value for
12841 window. Rename "buffer" argument to "buffer_or_name".
12842
12843 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
12844
12845 * m/sh3.h: New file, machine description for SuperH.
12846
12847 2008-10-17 Martin Rudalics <rudalics@gmx.at>
12848
12849 * window.c (Fsplit_window): Rename arg horflag to horizontal.
12850
12851 2008-10-17 Kenichi Handa <handa@m17n.org>
12852
12853 * ftfont.c (ftfont_otf_features): Fix indexing
12854 gsub_gpos->FeatureList.Feature. Check the validity of indices.
12855
12856 2008-10-16 Magnus Henoch <mange@freemail.hu>
12857
12858 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
12859 (Fdbus_call_method_asynchronously): Ditto.
12860 This change makes C-h f display the argument list.
12861
12862 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
12863
12864 * fileio.c (Fexpand_file_name): Doc fix.
12865
12866 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
12867 of :foreground and :background equivalent to unspecified (20.x
12868 compatibility).
12869
12870 2008-10-15 Eli Zaretskii <eliz@gnu.org>
12871
12872 * buffer.c (syms_of_buffer): Doc fix.
12873
12874 2008-10-14 Kenichi Handa <handa@m17n.org>
12875
12876 * font.c (font_clear_prop): When clearing font width, clear the
12877 average width field too.
12878
12879 2008-10-12 Andreas Schwab <schwab@suse.de>
12880
12881 * ftfont.c (ftfont_shape_by_flt): Make static.
12882 * ftfont.h (ftfont_shape_by_flt): Don't declare.
12883
12884 * font.c: Don't include <m17n-flt.h>.
12885
12886 2008-10-10 Eli Zaretskii <eliz@gnu.org>
12887
12888 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
12889
12890 2008-10-09 Eli Zaretskii <eliz@gnu.org>
12891
12892 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
12893 away code.
12894
12895 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
12896
12897 * dispnew.c (update_text_area): Avoid looping due to large glyph
12898 overhangs (bug#1070).
12899
12900 2008-10-09 Kenichi Handa <handa@m17n.org>
12901
12902 * fontset.c (face_for_char): If face->fontset is negative, just
12903 return ascii_face.
12904
12905 * font.c (font_delete_unmatched): Fix previous change.
12906 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
12907
12908 2008-10-09 Martin Rudalics <rudalics@gmx.at>
12909
12910 * frame.c (Fraise_frame): On text-only terminals select frame in
12911 order to make it visible. (Bug#1061)
12912
12913 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
12914
12915 * fontset.c (fontset_find_font): Check frame validity.
12916
12917 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
12918
12919 * gtkutil.c (xg_display_open): Reset default display if none exists.
12920 (xg_display_close): Allow Emacs to close all displays (bug#985).
12921
12922 2008-10-06 Andreas Schwab <schwab@suse.de>
12923
12924 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
12925
12926 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
12927
12928 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
12929
12930 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
12931
12932 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
12933 during initialization.
12934
12935 2008-10-04 Eli Zaretskii <eliz@gnu.org>
12936
12937 * xdisp.c (redisplay_internal): If frame switched, redisplay the
12938 whole thing on MSDOS frames as well as on a TTY.
12939
12940 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
12941 well as for TTY.
12942 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
12943 well as on a TTY.
12944
12945 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
12946 as well as for TTY.
12947
12948 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
12949
12950 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
12951 MSDOS frames as well.
12952
12953 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
12954
12955 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
12956 correct arguments.
12957 * menu.c (find_and_return_menu_selection): Add cast.
12958
12959 2008-10-03 Glenn Morris <rgm@gnu.org>
12960
12961 * emacs.c (USAGE1): Add --daemon.
12962
12963 2008-10-02 Eli Zaretskii <eliz@gnu.org>
12964
12965 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
12966 100, so it's in percents as advertised.
12967
12968 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
12969
12970 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
12971 (ns_output.current_cursor, ns_output.desired_cursor)
12972 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
12973 (FRAME_NEW_CURSOR_COLOR): Remove.
12974
12975 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
12976 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
12977 enumeration (HOLLOW_BOX_CURSOR, etc.).
12978
12979 * nsterm.m (ns_frame_rehighlight): Remove commented code.
12980 (draw_window_cursor): Simplify code.
12981 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
12982 Don't change cursor type. In latter, call rehighlight instead of doing
12983 updates manually.
12984 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
12985 Use core Emacs cursor types.
12986
12987 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
12988
12989 2008-10-02 Martin Rudalics <rudalics@gmx.at>
12990
12991 * process.c (Faccept_process_output): Fix doc-string.
12992
12993 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
12994
12995 * gmalloc.c (__sbrk): Also define for uClibc.
12996
12997 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
12998 for uClibc.
12999
13000 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13001
13002 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
13003 styles.
13004 (nsfont_open): Reenable the cache.
13005
13006 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13007
13008 * font.c (font_matching_entity): Reflect ATTRS in font selection.
13009 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
13010
13011 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
13012
13013 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
13014 a suspended terminal.
13015
13016 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
13017
13018 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
13019
13020 2008-09-30 Eli Zaretskii <eliz@gnu.org>
13021
13022 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
13023
13024 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
13025
13026 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
13027 in a continued line coincides with a line beginning.
13028
13029 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
13030
13031 * nsfont.m (nsfont_trait_distance): Fix bug.
13032 (nsfont_list): Return a list rather than a vector (syncs with Handa
13033 changes of 2008-05-14).
13034 (nsfont_open): Improve logging.
13035
13036 2008-09-29 Andreas Schwab <schwab@suse.de>
13037
13038 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
13039
13040 2008-09-28 Martin Rudalics <rudalics@gmx.at>
13041
13042 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
13043 name as char-resolve-modifiers.
13044 Reported by: Markus Triska <markus.triska@gmx.at>
13045
13046 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
13047
13048 * dispnew.c (init_display): Return earlier when running as a daemon.
13049
13050 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
13051
13052 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
13053
13054 2008-09-27 Eli Zaretskii <eliz@gnu.org>
13055
13056 * composite.c (Fcomposition_get_gstring)
13057 (Fcompose_region_internal, Fcompose_string_internal)
13058 (Ffind_composition_internal): Doc fix.
13059 (syms_of_composite) <compose-chars-after-function>: Doc fix.
13060 (syms_of_composite) <auto-composition-function>: Doc fix.
13061 (syms_of_composite) <composition-function-table>: Doc fix.
13062
13063 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
13064
13065 * search.c (wordify): New argument for lax word-ends.
13066 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
13067
13068 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
13069
13070 * lisp.h (is_daemon): Declare.
13071 * dispnew.c (init_display): Do not try to initialize the terminal
13072 when running as a daemon.
13073
13074 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
13075
13076 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
13077 x_display_pixel_height.
13078
13079 2008-09-22 Martin Rudalics <rudalics@gmx.at>
13080
13081 * undo.c (record_point): Don't call Fundo_boundary for first
13082 change. (Bug#731)
13083
13084 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
13085
13086 * emacs.c (Fdaemonp): Doc fix.
13087
13088 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
13089
13090 * emacs.c (main): Place #ifdef in the proper place.
13091
13092 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
13093
13094 * emacs.c (standard_args): Add --daemon.
13095 (main): Disconnect from the terminal when --daemon is passed.
13096 (is_daemon): New variable.
13097 (Fdaemonp): New function.
13098 (syms_of_emacs): Defsubr it.
13099
13100 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
13101
13102 * xdisp.c (get_next_display_element): Handle string display
13103 correctly when checking for the end of a box run.
13104
13105 2008-09-20 Glenn Morris <rgm@gnu.org>
13106
13107 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
13108 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
13109 (Frename_file): Avoid copying to trash if a rename involves
13110 a delete. (Bug#964).
13111
13112 2008-09-20 Eli Zaretskii <eliz@gnu.org>
13113
13114 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
13115 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
13116 frames as well as termcap frames.
13117 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
13118 get_named_tty.
13119
13120 2008-09-19 Eli Zaretskii <eliz@gnu.org>
13121
13122 * process.c (procfs_system_process_attributes): Fix cmdline in
13123 case /proc/PID/cmdline is empty.
13124
13125 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
13126 x_display_pixel_height.
13127
13128 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
13129
13130 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
13131
13132 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
13133 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
13134
13135 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
13136
13137 * dispextern.h (struct it): Move line_wrap away from the middle of
13138 bitfields. Move voffset in struct iterator_stack_entry after the
13139 bitfields. Move tab_width near after another short.
13140
13141 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
13142
13143 * frame.h (struct frame): Move alpha from the middle of bitfields.
13144
13145 * window.h (struct window): Move frozen_window_start_p after the
13146 rest of the bitfields to reduce padding.
13147
13148 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
13149
13150 * xterm.h (x_display_info): Remove `height' and `width' members.
13151
13152 * nsterm.h (ns_display_info): Remove `height' and `width' members.
13153
13154 * w32term.h (w32_display_info): Remove `height', `width',
13155 `height_in', and `width_in' members.
13156
13157 * xterm.c (x_display_pixel_height, x_display_pixel_width):
13158 New functions.
13159 (x_calc_absolute_position): Use them.
13160 (x_term_init): Omit removed `height' and `width' members.
13161
13162 * w32term.c (x_display_pixel_height, x_display_pixel_width):
13163 New functions.
13164 (w32_read_socket, x_calc_absolute_position): Use them.
13165 (w32_initialize_display_info, w32_term_init): Omit removed members
13166 of w32_display_info.
13167
13168 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
13169 New functions.
13170 (ns_initialize_display_info): Omit removed members of ns_display_info.
13171
13172 * xterm.c (x_display_pixel_height, x_display_pixel_width):
13173 New functions.
13174 (x_calc_absolute_position): Use them.
13175 (x_term_init): Omit removed `height' and `width' members.
13176
13177 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
13178 (compute_tip_xy):
13179 * frame.c (x_fullscreen_adjust):
13180 * xmenu.c (menu_position_func): Use x_display_pixel_height and
13181 x_display_pixel_width.
13182
13183 2008-09-18 Kenichi Handa <handa@m17n.org>
13184
13185 * composite.c (fill_gstring_header): Don't check FROM and TO here.
13186 (composition_compute_stop_pos): Fix handling of static composition.
13187 (Fcomposition_get_gstring): Check FROM and TO at first.
13188
13189 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
13190
13191 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
13192 mixup (YAILOM).
13193
13194 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
13195
13196 * indent.c (Fvertical_motion): Use position reported by iterator
13197 instead of PT for determining screen motion (bug#943).
13198
13199 2008-09-17 Romain Francoise <romain@orebokech.com>
13200
13201 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
13202
13203 2008-09-17 Kenichi Handa <handa@m17n.org>
13204
13205 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
13206
13207 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
13208 if necessary.
13209
13210 2008-09-16 Kenichi Handa <handa@m17n.org>
13211
13212 * coding.c (make_conversion_work_buffer): Avoid calling
13213 Fget_buffer_create if it is not necessary.
13214
13215 2008-09-15 Martin Rudalics <rudalics@gmx.at>
13216
13217 * window.c (Fselect_window): Don't update window_select_count and
13218 use_time when norecord is not nil.
13219
13220 2008-09-14 Kenichi Handa <handa@m17n.org>
13221
13222 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
13223 specpdl_ptr.
13224
13225 2008-09-12 Kenichi Handa <handa@m17n.org>
13226
13227 * indent.c (scan_for_column): Don't handle automatic composition
13228 if the current buffer is not associated with a window.
13229
13230 * composite.c (composition_reseat_it): If the current buffer is
13231 not associated with a window, ignore the automatic composition.
13232 (find_automatic_composition): Likewise.
13233
13234 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
13235
13236 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
13237 (Fgpm_mouse_stop): Use it.
13238 * termhooks.h (close_gpm): Declare.
13239 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
13240 connection if Gpm_GetEvent fails.
13241
13242 * window.c (set_window_buffer): Always preserve current-buffer.
13243
13244 2008-09-12 Glenn Morris <rgm@gnu.org>
13245
13246 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
13247
13248 2008-09-11 Glenn Morris <rgm@gnu.org>
13249
13250 * charset.c (charset-map-path): Doc fix.
13251
13252 2008-09-10 Kenichi Handa <handa@m17n.org>
13253
13254 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
13255
13256 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
13257 compose a grapheme cluster with the preceding base glyph.
13258
13259 * composite.c (composition_compute_stop_pos): Fix previous change.
13260 Reset cmp_it->id to -1 at first.
13261
13262 2008-09-10 Glenn Morris <rgm@gnu.org>
13263
13264 * Makefile.in (character.o, chartab.o): Fix config.h typo.
13265
13266 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
13267
13268 * keyboard.c (read_key_sequence): Reapply translation maps when
13269 switching keyboards.
13270
13271 2008-09-09 Kenichi Handa <handa@m17n.org>
13272
13273 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
13274 characters.
13275
13276 * composite.c (FORWARD_CHAR): Fix calculation
13277 of (POSITION).pos_byte.
13278 (composition_compute_stop_pos): Limit the search of composition to
13279 at most 500 characters ahead. If we reach the limit or find a
13280 newline, set cmp_it->ch to -2 and return 0.
13281 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
13282
13283 2008-09-08 Kenichi Handa <handa@m17n.org>
13284
13285 * indent.c (Fvertical_motion): Be sure to set
13286 it_overshoot_expected if it.cmp_it.id is non-negative.
13287
13288 2008-09-07 Andreas Schwab <schwab@suse.de>
13289
13290 * callproc.c (Fcall_process): Don't hold references to string data
13291 across garbage collection. Move initialisation of new_argv down
13292 to avoid compiler bug.
13293
13294 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
13295
13296 * process.c (Fsystem_process_attributes): Doc fix.
13297
13298 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
13299
13300 * callproc.c (Fcall_process): Canonicalize current directory name.
13301
13302 * xdisp.c (move_it_to): When moving by vpos, ensure that the
13303 iterator advances to the next line if the current line ends in a
13304 continued tab.
13305
13306 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
13307
13308 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
13309 member to point to cmp_from.
13310
13311 * xdisp.c: Doc fix for references to gidx data member.
13312
13313 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
13314
13315 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
13316
13317 2008-09-07 Kenichi Handa <handa@m17n.org>
13318
13319 * composite.c (FORWARD_CHAR): Check STOP after
13320 incrementing (POSITION).pos.
13321
13322 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
13323
13324 * process.c (Fsystem_process_attributes): Doc fix.
13325
13326 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
13327
13328 * keyboard.c (Ftop_level): Doc fix.
13329
13330 2008-09-06 Eli Zaretskii <eliz@gnu.org>
13331
13332 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
13333 minibuffer, don't let lower part of menu invade the echo area.
13334
13335 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
13336 "char *q" to access menu text and advance through it. Revert the
13337 change that displayed ">" instead of ASCII character 0x10.
13338
13339 2008-09-05 Eli Zaretskii <eliz@gnu.org>
13340
13341 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
13342 toggle boxes and radio buttons on MS-DOS as well.
13343
13344 2008-09-05 Kenichi Handa <handa@m17n.org>
13345
13346 * composite.c (autocmp_chars): Check lookback count.
13347 (composition_compute_stop_pos): Set cmp_it->lookback.
13348 (composition_reseat_it): Check lookback count.
13349 (struct position_record): New struct.
13350 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
13351 (find_automatic_composition): New function.
13352 (composition_adjust_point): Use find_automatic_composition.
13353
13354 * dispextern.h (struct composition_it): New member lookback.
13355
13356 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
13357
13358 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
13359 if moving by a single line.
13360
13361 2008-09-02 Andreas Schwab <schwab@suse.de>
13362
13363 * xterm.c (x_delete_display): Fix merge error.
13364
13365 * fileio.c (Fexpand_file_name): Remove unused variables.
13366
13367 2008-09-02 Eli Zaretskii <eliz@gnu.org>
13368
13369 * fileio.c (Fexpand_file_name): Copy argument `name' into local
13370 storage on all platforms, not just on DOS_NT.
13371
13372 2008-09-02 Jason Rumney <jasonr@gnu.org>
13373
13374 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
13375 Ensure mouse is not grabbed after menu is finished.
13376
13377 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
13378
13379 * xfaces.c (Finternal_set_alternative_font_family_alist)
13380 (Finternal_set_alternative_font_registry_alist): Properly copy
13381 entire alist structure.
13382
13383 2008-09-01 Kenichi Handa <handa@m17n.org>
13384
13385 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
13386 representative chars of the script is a vector.
13387 (ftfont_list): Handle the case where the representative chars of
13388 the script is a vector.
13389
13390 * character.c (syms_of_character): Docstring of
13391 script-representative-chars fixed.
13392
13393 2008-08-31 Eli Zaretskii <eliz@gnu.org>
13394
13395 * msdos.c (BUILD_CHAR_GLYPH): New macro.
13396 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
13397 the menu. Allocate larger buffer for `text', to account for
13398 possible ^C characters.
13399
13400 2008-08-31 Martin Rudalics <rudalics@gmx.at>
13401
13402 * xdisp.c (prepare_menu_bars): Don't call
13403 Vwindow_size_change_functions with arg Qt.
13404
13405 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
13406
13407 * font.h (font_range):
13408 * fileio.c (report_file_error):
13409 * composite.c (composition_update_it): Yet another int/Lisp_Object
13410 mixup (YAILOM).
13411
13412 2008-08-30 Glenn Morris <rgm@gnu.org>
13413
13414 * data.c (Fmake_variable_frame_local): Doc fix.
13415
13416 * frame.c (Fmodify_frame_parameters): Doc fix.
13417
13418 2008-08-30 Eli Zaretskii <eliz@gnu.org>
13419
13420 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
13421 needed by GetTokenInformation.
13422 (w32_system_process_attributes): Check return values of all system
13423 APIs.
13424
13425 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
13426 only when the state changes.
13427 (IT_update_begin, IT_update_end): Add termscript trace.
13428
13429 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
13430 clipboard is unavailable. Set dst to NULL if it doesn't point to
13431 malloc'ed data.
13432 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
13433 passing random values to xfree.
13434
13435 * dispnew.c (init_display): Set `tty's association in frame's
13436 parameters alist to the name of the terminal device, if that is known.
13437
13438 2008-08-29 Jason Rumney <jasonr@gnu.org>
13439
13440 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
13441
13442 2008-08-29 Eli Zaretskii <eliz@gnu.org>
13443
13444 * composite.c (fill_gstring_body): Avoid compiler warnings.
13445
13446 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
13447 LGLYPH_SET_CODE to avoid compiler warnings.
13448
13449 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
13450
13451 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
13452
13453 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
13454 LGLYPH_SET_CODE.
13455
13456 2008-08-29 Kenichi Handa <handa@m17n.org>
13457
13458 * fileio.c (report_file_error): Don't downcase the first character
13459 of errstring if it is still unibyte.
13460
13461 2008-08-29 Kenichi Handa <handa@m17n.org>
13462
13463 These changes are to re-implement the automatic composition so
13464 that it doesn't use text properties.
13465
13466 * Makefile.in (ftfont.o): Depend on composite.h.
13467 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
13468
13469 * character.h (Vunicode_category_table): Extern it.
13470
13471 * character.c (Vunicode_category_table): New variable.
13472 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
13473
13474 * chartab.c (optimize_sub_char_table): Perform more greedy
13475 optimization.
13476
13477 * composite.h (enum composition_method):
13478 Delete COMPOSITION_WITH_GLYPH_STRING.
13479 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
13480 (Vcomposition_function_table): Extern it.
13481 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
13482 (composition_gstring_put_cache, composition_gstring_from_id)
13483 (composition_gstring_p, composition_gstring_width)
13484 (composition_compute_stop_pos, composition_reseat_it)
13485 (composition_update_it, composition_adjust_point): Extern them.
13486 (Fcomposition_get_gstring): EXFUN it.
13487
13488 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
13489 (Vcomposition_function_table)
13490 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
13491 (gstring_hash_table, gstring_work, gstring_work_headers):
13492 New variables.
13493 (gstring_lookup_cache, composition_gstring_put_cache)
13494 (composition_gstring_from_id, composition_gstring_p)
13495 (composition_gstring_width, fill_gstring_header)
13496 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
13497 (composition_reseat_it, composition_update_it)
13498 (composition_adjust_point, Fcomposition_get_gstring): New functions.
13499 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
13500 and gstring_work_headers. DEFVAR_LISP composition-function-table.
13501 Defsubr composition_get_gstring.
13502
13503 * dispextern.h (struct glyph): New union u.cmp. Delete the member
13504 cmp_id.
13505 (struct glyph_string): Delete the member gidx. New members
13506 cmp_id, cmp_from, and cmp_to.
13507 (enum it_method): Delete GET_FROM_COMPOSITION.
13508 (struct composition_it): New struct.
13509 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
13510 Delete c, len, cmp_id, cmp_len in u.comp.
13511
13512 * font.h (enum lgstring_indices): Delete it.
13513 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
13514 (enum lglyph_indices): Likewise.
13515 (font_range): Adjust extern.
13516 (font_fill_lglyph_metrics): Extern it.
13517
13518 * font.c (QCf): New variable.
13519 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
13520 (font_prepare_composition): Delete this function.
13521 (font_range): Type and arguments changed.
13522 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
13523 (font_fill_lglyph_metrics): New function.
13524 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
13525 (syms_of_font): DEFSYM QCf. Delete defsubr for
13526 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
13527 Defsubr Sfont_shape_gstring.
13528
13529 * fontset.h (font_for_char): Extern it.
13530
13531 * fontset.c (font_for_char): New function.
13532
13533 * ftfont.c: Include composite.h.
13534 (ftfont_resolve_generic_family): Add langset "en" to pattern.
13535 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
13536
13537 * indent.c: Include composite.h and dispextern.h.
13538 (check_composition): Delete this function.
13539 (scan_for_column): Handle composition by
13540 composition_compute_stop_pos, composition_reseat_it, and
13541 composition_update_it.
13542 (compute_motion): Likewise.
13543 (Fvertical_motion): Fix checking of composition.
13544
13545 * keyboard.c (adjust_point_for_property): Check composition by
13546 composition_adjust_point.
13547
13548 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
13549 struct glyph_string.
13550
13551 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
13552 (append_composite_glyph): Adjust for the change of struct it and
13553 struct glyph.
13554 (produce_composite_glyph): Likewise.
13555
13556 * w32term.c (x_draw_composite_glyph_string_foreground):
13557 Adjust for the change of struct glyph_string.
13558 (x_draw_glyph_string): Likewise.
13559
13560 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
13561 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
13562
13563 * xdisp.c: Include font.h.
13564 (it_props): Delete the entry for Qauto_composed.
13565 (init_iterator): Initialize it->cmp_it.id to -1.
13566 (compute_stop_pos): Call composition_compute_stop_pos.
13567 (face_before_or_after_it_pos): Adjust for the change of struct it.
13568 (handle_auto_composed_prop): Delete it.
13569 (handle_composition_prop): Handle only static composition.
13570 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
13571 from xassert. Initialize it->cmp_it.stop_pos.
13572 (push_it): Adjust for the change of struct it.
13573 (pop_it): Likewise.
13574 (get_next_element): Delete next_element_from_composition.
13575 (CHAR_COMPOSED_P): New macro.
13576 (get_next_display_element): For automatic composition, get a face
13577 from the font in the glyph-string.
13578 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
13579 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
13580 (next_element_from_string): Check if the character at the current
13581 position is composed by CHAR_COMPOSED_P.
13582 (next_element_from_buffer): Likewise.
13583 (next_element_from_composition): Adjust for the change of struct it.
13584 Update it->cmp_it.
13585 (dump_glyph): Adjust for the change of struct glyph.
13586 (fill_composite_glyph_string): Adjust for the change of struct
13587 it and struct glyph. Don't handle automatic composition here.
13588 (fill_gstring_glyph_string): New function.
13589 (x_get_glyph_overhangs): Handle automatic composition.
13590 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
13591 (BUILD_GSTRING_GLYPH_STRING): New macro.
13592 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
13593 automatic composition.
13594 (append_composite_glyph): Adjust for the change of struct it and
13595 struct glyph.
13596 (x_produce_glyphs): Adjust for the change of struct it.
13597
13598 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13599 the change of struct glyph_string.
13600 (x_draw_glyph_string): Likewise.
13601
13602 2008-08-29 Glenn Morris <rgm@gnu.org>
13603
13604 * buffer.c (word-wrap): Doc fix.
13605 * xdisp.c (truncate-partial-width-windows): Doc fix.
13606 Increase default to 50.
13607
13608 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
13609
13610 * xdisp.c (update_tool_bar_unwind): New function.
13611 (update_tool_bar): Temporarily set selected frame before building
13612 tool-bar items.
13613
13614 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
13615
13616 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
13617 snprintf, respectively.
13618 (xd_append_arg): Convert strings with Fstring_make_unibyte.
13619
13620 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
13621
13622 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
13623 LDFLAGS to GNUstep CC invocation.
13624
13625 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
13626
13627 * indent.c (Fvertical_motion): Revert last change. Handle the
13628 general case where we are moving forward, and PT spans multiple
13629 screen lines.
13630
13631 * eval.c (find_handler_clause): Temporarily increase
13632 max-lisp-eval-depth while printing the backtrace buffer, to
13633 guarantee that help-mode code can run.
13634
13635 2008-08-27 Eli Zaretskii <eliz@gnu.org>
13636
13637 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
13638 colors under -rv.
13639 (IT_set_frame_parameters): Don't swap foreground and background
13640 colors if `(reverse . t)' is present in the frame properties.
13641 (internal_terminal_init): Call init_frame_faces only for the
13642 initial frame.
13643
13644 2008-08-27 Andreas Schwab <schwab@suse.de>
13645
13646 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
13647
13648 2008-08-27 Andreas Schwab <schwab@suse.de>
13649
13650 * search.c (search_buffer): Set char_base to zero only at the end.
13651
13652 2008-08-27 Kenichi Handa <handa@m17n.org>
13653
13654 * fileio.c (report_file_error): Fix handling of multibyte error string.
13655
13656 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
13657
13658 * xterm.c (x_term_init): Temporarily hide the partially
13659 initialized terminal while calling vendor-specific-keysyms.
13660
13661 2008-08-26 Eli Zaretskii <eliz@gnu.org>
13662
13663 * msdos.c (internal_terminal_init): Most initializations done only
13664 once, especially initial_screen_colors[] and termscript open.
13665
13666 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
13667
13668 * eval.c (Fcondition_case): Doc fix.
13669
13670 * widgetprv.h (EmacsFramePart): Change font member to the new font
13671 struct.
13672
13673 * widget.c: Include character.h and font.h for XSETFONT.
13674 (setup_frame_gcs): Compute X font id from font struct, just once.
13675
13676 2008-08-26 Eli Zaretskii <eliz@gnu.org>
13677
13678 * term.c (get_named_tty): Fix last change.
13679
13680 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
13681
13682 * indent.c (Fvertical_motion): If moving forward starting from a
13683 multi-line string, move the iterator to the last line of that string.
13684
13685 2008-08-25 Eli Zaretskii <eliz@gnu.org>
13686
13687 * frame.c (do_switch_frame): Mark previously displayed frame as
13688 obscured for FRAME_MSDOS_P frames as well.
13689
13690 2008-08-24 Eli Zaretskii <eliz@gnu.org>
13691
13692 * frame.c (make_terminal_frame): Initialize f->terminal,
13693 f->terminal->reference_count, and scroll bars on MS-DOS as well.
13694 Set the top frame to newly created frame.
13695 (Fmake_terminal_frame): Reuse the_only_display_info.
13696
13697 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
13698 estimating available memory.
13699
13700 2008-08-23 David Reitter <david.reitter@gmail.com>
13701
13702 * nsterm.m (ns_draw_window_cursor): Don't call
13703 NSDisableScreenUpdates and NSEnableScreenUpdates on
13704 non-NS_IMPL_COCOA systems.
13705
13706 2008-08-23 Andreas Schwab <schwab@suse.de>
13707
13708 * process.c (procfs_system_process_attributes): Fix use of
13709 uninitialized variables.
13710
13711 2008-08-23 Eli Zaretskii <eliz@gnu.org>
13712
13713 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
13714
13715 * dispnew.c (init_display): Remove MS-DOS specific conditions for
13716 calling tty-set-up-initial-frame-faces.
13717
13718 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
13719 Allow MSDOS frames along with X frames.
13720
13721 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
13722 addition to output_termcap.
13723
13724 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
13725
13726 * termchar.h (FRAME_TTY): Support output_msdos_raw.
13727 (struct tty_display_info) [MSDOS]: Add fields related to mouse
13728 highlight.
13729
13730 * process.c [!subprocesses]: Define QCname.
13731 (syms_of_process): Intern and staticpro it.
13732
13733 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
13734 Adjust for changes in encoding/decoding routines.
13735 Use encode_coding_object and decode_coding_object instead of
13736 encode_coding and decode_coding.
13737
13738 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
13739
13740 * dosfns.c: Include frame.h before termhooks.h.
13741 (dos_cleanup): Use CURTTY ()->termscript instead of a global
13742 variable termscript.
13743
13744 * s/msdos.h (USER_FULL_NAME): Define.
13745 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
13746
13747 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
13748 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
13749 pw->pw_gecos.
13750
13751 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
13752 SELECTED_FRAME as additional (1st) argument.
13753 (tty_read_avail_input): Handle output_msdos_raw in
13754 addition to output_termcap.
13755
13756 * msdos.c: Include frame.h before termhooks.h.
13757 (mouse_on, mouse_off, mouse_moveto, mouse_init)
13758 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
13759 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
13760 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
13761 (IT_set_terminal_modes, IT_reset_terminal_modes)
13762 (IT_set_frame_parameters): Use tty->termscript instead of a global
13763 variable termscript.
13764 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
13765 global variable terminal_coding. Don't refer to
13766 Vnonascii_translation_table.
13767 (internal_terminal_init): Set Vwindow_system in current_kboard.
13768 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
13769 Announce date and time of session start, if termscript is open.
13770 Don't zero out the_only_display_info (it is done in
13771 term.c:init_tty). Open termscript only of not already open.
13772 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
13773 here instead of dos_ttraw. Don't initialize display if this is an
13774 initial tty. Don't set FRAME_FONT.
13775 (Vwindow_system_version): Bump to 23.
13776 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
13777 is available, set up mouse_position_hook.
13778 (dos_ttraw, IT_set_terminal_modes): If called with initial
13779 terminal, do nothing.
13780 (IT_set_frame_parameters): Handle the Qtty_type frame
13781 parameter by calling internal_terminal_init.
13782 (dos_set_window_size, show_mouse_face)
13783 (clear_mouse_face, IT_note_mode_line_highlight)
13784 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
13785 (dos_rawgetc): Use tty_display_info instead of x_display_info.
13786 (initialize_msdos_display): New function.
13787 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
13788 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
13789 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
13790 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
13791 Accept additional argument: a pointer to a frame. Update all callers.
13792 (request_sigio, unrequest_sigio): Don't define, now defined on
13793 sysdep.c.
13794 (IT_write_glyphs): Rewrite to use encode_terminal_code.
13795
13796 * term.c [MSDOS]: Include msdos.h.
13797 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
13798 conditional to DOS_NT. Allow only one call to this function in a
13799 session. Don't allocate a new struct tty_display_info; instead,
13800 reuse the_only_display_info. Call get_tty_size to get screen
13801 dimensions. Call init_baud_rate to set bad_rate.
13802 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
13803 (Fsuspend_tty) [MSDOS]: Don't close input and output.
13804 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
13805 (get_tty_terminal, get_named_tty, Ftty_type)
13806 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
13807 output_termcap.
13808 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
13809 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
13810 only when subprocesses are supported.
13811
13812 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
13813 f->output_data.x.
13814 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
13815 terminal devices.
13816
13817 * msdos.h: Remove definition of struct x_display_info and struct
13818 x_output.
13819 (FRAME_FONT): Use output_data.tty.
13820 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
13821 (struct x_display_info): Rename from display_info. Update all users in
13822 msdos.c.
13823 (struct x_output): Remove background_pixel and foreground_pixel.
13824 (the_only_display_info): Rename from the_only_x_display.
13825 (dos_ttraw): Update prototype.
13826
13827 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
13828 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
13829
13830 2008-08-23 Jason Rumney <jasonr@gnu.org>
13831
13832 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
13833 (fn_TIFFSetDirectory): New library function used.
13834 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
13835 (tiff_load): Use :index to select among multiple images. Set count
13836 property when multiple images exist.
13837 (gif_format): Use :index, not :image.
13838
13839 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
13840
13841 * xdisp.c (try_scrolling): Check INT_MAX instead of
13842 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
13843 to obtain INT_MAX.
13844
13845 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
13846
13847 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
13848
13849 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
13850
13851 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
13852 GNUstep library location.
13853
13854 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
13855
13856 * xfaces.c (x_update_menu_appearance): Check validity of menu font
13857 before using it.
13858
13859 * puresize.h (BASE_PURESIZE): Increase to 1250000.
13860
13861 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13862
13863 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
13864 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
13865 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
13866 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
13867 (EmacsApp-cursor_blink_handler): Remove declaration.
13868 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
13869 match 01 Feb 2008 changes in xterm.c.
13870 (ns_read_socket): Add cast to avoid warning.
13871 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
13872 GNUstep.
13873
13874 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
13875
13876 * xselect.c (x_get_foreign_selection): Return nil if desired
13877 selection could not be obtained, instead of signalling an error.
13878
13879 2008-08-20 David Reitter <david.reitter@gmail.com>
13880
13881 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
13882 * nsterm.m: Remove ns-specific code for cursor blinking.
13883 (ns_draw_window_cursor): Clear cursor properly rather than
13884 redrawing the area. Respect width of bar cursors.
13885 These changes enable the use of generic blink-cursor-mode and
13886 generic cursor types in NS and support smooth cursor movements (do
13887 not blink off after command).
13888 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
13889 Nextstep, too.
13890
13891 2008-08-19 Kenichi Handa <handa@m17n.org>
13892
13893 * font.c (Vfont_log_deferred): New variable.
13894 (font_add_log): Check Vfont_log_deferred.
13895 (font_deferred_log): New function.
13896
13897 * font.h (font_deferred_log): Extern it.
13898
13899 * fontset.c (reorder_font_vector): Use encoding charset of fonts
13900 for sorting.
13901 (face_for_char): Use deferred log.
13902
13903 2008-08-18 Kenichi Handa <handa@m17n.org>
13904
13905 * fontset.c (face_for_char): Add font log.
13906
13907 * font.c (font_add_log): Add the font properties :script, :lang,
13908 and :otf in the log.
13909
13910 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
13911
13912 * xdisp.c: Remove dead code.
13913 (handle_invisible_prop, next_overlay_string): Defer call to
13914 setup_for_ellipsis.
13915 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
13916
13917 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
13918
13919 * xfaces.c (lookup_derived_face): Properly handle possible zero
13920 return value of get_lface_attributes.
13921 (merge_faces): Don't tell lookup_derived_face to signal an error
13922 if face is not found.
13923
13924 * dired.c (Fdirectory_files): Doc fix.
13925
13926 * process.c (make_process): Initialize kill_without_query struct
13927 member.
13928
13929 2008-08-15 Eli Zaretskii <eliz@gnu.org>
13930
13931 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
13932 Alternative calculation of totphys for Visual Studio 6.
13933
13934 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
13935
13936 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
13937 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
13938 All users changed.
13939 (stat): Only root directory passed to GetDriveType. Allow RAM
13940 disk as well as local fixed disk when w32-get-true-file-attributes
13941 is set to `local'.
13942 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
13943 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
13944 (w32_cached_id, w32_add_to_cache): New functions.
13945 (get_name_and_id): Look account names in the cache before calling
13946 lookup_account_sid.
13947 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
13948 New initialization flags.
13949 (globals_of_w32): Initialize them to zero.
13950 (w32_system_process_attributes): Use w32_cached_id and
13951 w32_add_to_cache.
13952
13953 2008-08-14 Lawrence Mitchell <wence@gmx.li>
13954
13955 * lread.c (Fread_char, Fread_char_exclusive): If no character
13956 event is read before timeout is reached, return nil, rather than
13957 converting to a number.
13958
13959 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
13960
13961 * fns.c (use_dialog_box): Doc fix.
13962
13963 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
13964 on OS X.
13965
13966 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
13967
13968 * frame.c (Qns_parse_geometry): New var.
13969 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
13970
13971 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
13972
13973 * xdisp.c (x_produce_glyphs): Handle the case when font has no
13974 space character in calculating tabs.
13975
13976 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
13977
13978 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
13979
13980 2008-08-10 Glenn Morris <rgm@gnu.org>
13981
13982 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
13983 silence gcc "limited range of data type" warnings in some
13984 make_fixnum_or_float calls.
13985
13986 2008-08-09 Eli Zaretskii <eliz@gnu.org>
13987
13988 * w32.c (w32_system_process_attributes): If the process does not
13989 exist, return nil.
13990
13991 * w32.c: Include thelp32.h, psapi.h and coding.h.
13992 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
13993 declarations.
13994 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
13995 (Process32Next_Proc): New typedefs.
13996 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
13997 (g_b_init_process32_next, g_b_init_open_thread_token)
13998 (g_b_init_impersonate_self, g_b_init_revert_to_self)
13999 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
14000 (g_b_init_get_process_working_set_size)
14001 (g_b_init_global_memory_status_ex): New static variables.
14002 (globals_of_w32): Initialize them.
14003 (create_toolhelp32_snapshot, process32_first, process32_next)
14004 (open_thread_token, impersonate_self, revert_to_self)
14005 (get_process_memory_info, get_process_working_set_size)
14006 (global_memory_status, global_memory_status_ex): New wrapper
14007 functions.
14008 (w32_list_system_processes, w32_system_process_attributes)
14009 (enable_privilege, restore_privilege, ltime, process_times):
14010 New functions.
14011 (convert_time_raw): New function.
14012 (convert_time): Remove conversion of FILETIME into time in 100
14013 nsec units, call convert_time_raw instead.
14014
14015 * process.h (w32_list_system_processes, w32_system_process_attributes):
14016 Add prototypes.
14017 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
14018 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
14019 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
14020 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
14021
14022 * process.c (Fsystem_process_attributes): Doc fix.
14023
14024 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
14025
14026 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
14027 a continued multi-char glyph; if so, advance to the actual glyph.
14028
14029 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
14030
14031 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
14032
14033 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
14034 (.m.o): Use it.
14035 * config.in: Regenerate.
14036
14037 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
14038
14039 * xdisp.c (redisplay_window): Revert last change.
14040 (try_window): Check bottom scroll margin too.
14041
14042 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
14043
14044 * config.in: Regenerate.
14045
14046 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
14047 -list-load-path-shadows'.
14048 (nsgui.h): Reduce number of things depending on it.
14049
14050 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
14051
14052 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
14053 instead of window-end which does the wrong thing at eob.
14054 (try_cursor_movement): Minor optimization.
14055 (redisplay_window): If scroll margin is defined, don't assume
14056 window doesn't need scrolling.
14057
14058 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
14059
14060 * config.in: Regenerate.
14061
14062 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
14063 (mostlyclean): Don't delete *.d under NS.
14064
14065 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
14066
14067 2008-08-06 Kenichi Handa <handa@m17n.org>
14068
14069 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
14070
14071 2008-08-06 Andreas Schwab <schwab@suse.de>
14072
14073 * config.in: Regenerate.
14074
14075 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
14076
14077 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
14078 forcing a window start.
14079
14080 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
14081 (auto_save_1): Update modtime when auto-save-list-file-name is on.
14082
14083 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
14084
14085 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
14086 argument.
14087
14088 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
14089
14090 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
14091 <scroll-down-aggressively, before-change-functions>:
14092 <after-change-functions>: Reflow docstrings.
14093
14094 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
14095 Ken Raeburn <raeburn@gnu.org>
14096
14097 Dock menu customization, based on a patch by Ken Raeburn, plus some
14098 other fixes.
14099 * nsmenu.m (dockMenu): New variable.
14100 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
14101
14102 * nsterm.h (dockMenu): Declare.
14103
14104 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
14105 (ns_term_init): Initialize dockMenu.
14106 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
14107 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
14108 left.
14109
14110 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
14111
14112 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
14113
14114 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
14115
14116 * config.in: Regenerate.
14117
14118 2008-08-04 Seiji Zenitani <zenitani@mac.com>
14119
14120 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
14121
14122 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
14123
14124 * nsterm.h (find_and_call_menu_selection): Fix prototype.
14125
14126 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
14127
14128 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
14129
14130 * keyboard.h: Comment an #endif.
14131
14132 * lisp.h (have_menus_p): Adjust comment.
14133
14134 * menu.c (find_and_return_menu_selection): Fix comparison with
14135 client_data.
14136
14137 * nsmenu.m (popup_activated_flag): New variable.
14138 (popup_activated): New function.
14139 (menu-or-popup-active-p): New exported lisp definition.
14140 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
14141 when popup done.
14142 (ns_popup_dialog): Set popup_activated_flag.
14143
14144 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
14145 version for GNUstep (handled by conditional typedef in nsterm.m).
14146 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
14147 in rgb.txt).
14148
14149 * process.c (init_process): Use DARWIN_OS, not DARWIN.
14150
14151 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
14152
14153 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
14154
14155 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
14156 shortcircuit if popup_activated like GTK and X toolkit.
14157
14158 * m/inter386.h: Change DARWIN to DARWIN_OS.
14159
14160 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
14161 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
14162 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
14163 comment on NO_SOCK_SIGIO.
14164
14165 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
14166
14167 * nsterm.m (windowDidResize): Remove stopModal call.
14168
14169 2008-08-03 Andreas Schwab <schwab@suse.de>
14170
14171 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
14172 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
14173
14174 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
14175
14176 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
14177 Don't use uninitialized pointer variable when using getrlimit.
14178
14179 2008-08-02 Jason Rumney <jasonr@gnu.org>
14180
14181 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
14182
14183 2008-08-02 Eli Zaretskii <eliz@gnu.org>
14184
14185 * alloc.c (NSTATICS): Bump to 0x640.
14186
14187 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
14188
14189 * lisp.h: Add prototype for directory_files_internal.
14190
14191 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
14192 New functions.
14193 (syms_of_process): Defsubr them. Add initializations for various
14194 Q* symbols used in procfs_system_process_attributes.
14195 (procfs_list_system_processes, procfs_system_process_attributes)
14196 [HAVE_PROCFS]: New functions.
14197 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
14198 (procfs_get_total_memory): New functions.
14199
14200 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
14201
14202 * xfaces.c (Fx_load_color_file): Fix previous change;
14203 it is #ifdef WINDOWSNT, not WINDOWS_NT.
14204
14205 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
14206
14207 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
14208
14209 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14210
14211 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
14212
14213 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
14214
14215 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
14216
14217 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
14218 define NSApplicationDelegateReplySuccess.
14219 (EmacsView -converstationIdentifier): Use long instead of
14220 NSInteger for GNUstep, since it doesn't have NSInteger.
14221
14222 * xmenu.c: Revert last change.
14223
14224 * keyboard.h: Fix last change.
14225
14226 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
14227
14228 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
14229 on Windows.
14230
14231 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14232
14233 Warning clearing and clean-up in NS port.
14234 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
14235 Add prototypes.
14236 * nsgui.h (FACE_DEFAULT): Remove, unused.
14237 (XGCValues): Change colors to unsigned long.
14238 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
14239 nsterm.m.
14240 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
14241 (ns_list_fonts): Remove, unused.
14242 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
14243 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
14244 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
14245 (nsfont_draw): Compare face colors to 0, not nil.
14246 * nsmenu.m (struct widget_value): Drop unneeded declaration.
14247 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
14248 (-addSubmenuWithTitle:): Use NSMenuItem class.
14249 (ns_popup_menu): Use NO, not NULL, for enabled setting.
14250 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
14251 (ns_clip_to_row): Make gc arg a BOOL.
14252 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
14253 ns_clip_to_row() call.
14254 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
14255 used). Cast FRAME_FONT assignments.
14256 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
14257 (ns_string_to_lispmod): Change arg to const char.
14258 (ns_term_init): Use NSMenuItem class.
14259 (EmacsApp -openFile:): Move to different section of file.
14260 (EmacsApp -application:openFiles:): Don't return a value, call
14261 -replyToOpenOrPrint:.
14262 (EmacsView -keyDown:): Fix up cast.
14263 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
14264 (EmacsView -menuDown:): Cast tag in call to
14265 find_and_call_menu_selection().
14266 (ns_list_fonts): Remove, unused.
14267 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
14268 (ns_fontname_to_xlfd): Make static.
14269 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
14270 Remove prototypes (now in keyboard.h).
14271 (next_menubar_widget_id): Remove, unused.
14272 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
14273 Remove prototypes (now in keyboard.h).
14274 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
14275
14276 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
14277
14278 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
14279 (floatfns.o): Depend on syssignal.h.
14280 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
14281
14282 * systty.h: Fix previous change that removed BSD_TERMIOS.
14283 Add comments to #ifdefs.
14284
14285 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14286
14287 * w32fns.c (w32-load-color-file): Remove.
14288 (x-open-connection): Use renamed Fx_load_color_file.
14289 * xfaces.c (x-load-color-file): Add.
14290 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
14291 Emacs.clr.
14292 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
14293
14294 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
14295
14296 * dbusbind.c (Fdbus_call_method_asynchronously)
14297 (Fdbus_method_error_internal): New defuns.
14298 (xd_read_message): Handle also reply messages.
14299 (Vdbus_registered_functions_table): Extend docstring.
14300
14301 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
14302
14303 * keyboard.c (gobble_input): Fix previous change.
14304
14305 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
14306
14307 * bitmaps/README:
14308 * xfns.c:
14309 * termcap.c:
14310 * term.c:
14311 * syswait.h:
14312 * systty.h:
14313 * systime.h:
14314 * syssignal.h:
14315 * sysdep.c:
14316 * process.h:
14317 * process.c:
14318 * print.c:
14319 * ndir.h:
14320 * lread.c:
14321 * keyboard.c:
14322 * getpagesize.h:
14323 * floatfns.c:
14324 * fileio.c:
14325 * emacs.c:
14326 * doc.c:
14327 * dispnew.c:
14328 * dired.c:
14329 * data.c:
14330 * callproc.c:
14331 * buffer.c:
14332 * README:
14333 * Makefile.in:
14334 * s/template.h:
14335 * s/msdos.h:
14336 * m/vax.h: Remove VMS support.
14337 * s/vms.h:
14338 * vlimit.h:
14339 * uaf.h:
14340 * temacs.opt:
14341 * param.h:
14342 * ioctl.h: Remove file.
14343
14344 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
14345
14346 * s/ms-w32.h (MULTI_KBOARD): Remove.
14347 * xterm.c:
14348 * xselect.c:
14349 * xfns.c:
14350 * window.c:
14351 * w32term.c:
14352 * w32fns.c:
14353 * terminal.c:
14354 * termhooks.h:
14355 * term.c:
14356 * sysdep.c:
14357 * keyboard.h:
14358 * keyboard.c:
14359 * frame.h:
14360 * frame.c:
14361 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
14362 * config.in: Regenerate.
14363
14364 2008-07-30 Jason Rumney <jasonr@gnu.org>
14365
14366 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
14367
14368 * w32font.c (w32font_encode_char): Leave as unicode if in range.
14369 (w32font_open_internal): Get unicode version of textmetrics.
14370 Don't enable or disable glyph indices here.
14371 (w32font_open): Disable use of glyph indices.
14372
14373 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
14374
14375 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
14376
14377 * minibuf.c (Vread_buffer_function): Doc fix.
14378
14379 2008-07-30 John Paul Wallington <jpw@pobox.com>
14380
14381 * minibuf.c (read_buffer_completion_ignore_case): New var.
14382 (Fread_buffer): Use it.
14383
14384 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
14385
14386 * systty.h (sensemode): Remove empty #if. Remove reference to
14387 BSD_TERMIOS, unused.
14388
14389 * sysdep.c: Remove reference to DGUX.
14390 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
14391
14392 * config.in: Regenerate.
14393
14394 2008-07-30 Jason Rumney <jasonr@gnu.org>
14395
14396 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
14397
14398 2008-07-29 Jason Rumney <jasonr@gnu.org>
14399
14400 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
14401 is populated.
14402 (uniscribe_encode_char): Always use uniscribe.
14403 Avoid using context if cache is populated.
14404
14405 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
14406
14407 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
14408 open menu.
14409
14410 * gtkutil.c (menu_nav_ended): Remove.
14411 (create_menus): Remove signal connect for menu_nav_ended.
14412
14413 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
14414
14415 * xdisp.c (redisplay_window): Check return value of
14416 compute_window_start_on_continuation_line before forcing a window
14417 start.
14418
14419 2008-07-28 Jason Rumney <jasonr@gnu.org>
14420
14421 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
14422
14423 * w32term.c (w32_enable_unicode_output, cleartype_active):
14424 Remove obsolete display options.
14425 (x_draw_glyph_string_background): Don't use old cleartype_active
14426 workaround.
14427 (w32_initialize): Remove cleartype_active initialization.
14428 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
14429
14430 2008-07-28 Andreas Schwab <schwab@suse.de>
14431
14432 * lisp.h (init_weak_hash_tables, syms_of_font)
14433 (xd_read_queued_messages, syms_of_dbusbind): Declare.
14434 (remove_hash_entry): Don't declare.
14435 * eval.c (maybe_call_debugger): Make static and move before use.
14436 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
14437 * xdisp.c: Include "gtkutil.h" if USE_GTK.
14438 * xterm.h (x_set_frame_alpha): Declare.
14439
14440 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
14441
14442 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
14443 (create_menus): Connect selection-done to menu_nav_ended.
14444
14445 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
14446
14447 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
14448 Set Vx_resource_name to a fallback. Replace read of 'buffered'
14449 parameter with read of 'alpha' one.
14450 (Qns_frame_parameter): Remove.
14451 * nsselect.m (selection-coding-system)
14452 (next-selection-coding-system, Vselection_coding_system)
14453 (Vnext_selection_coding_system): Drop.
14454
14455 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
14456
14457 * nsfns.m (do-applescript, do_applescript): Rename to
14458 ns-do-applescript, ns_do_applescript, and move within file.
14459
14460 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
14461
14462 Remove support for Mac Carbon.
14463 * mactoolbox.c:
14464 * macterm.h:
14465 * macterm.c:
14466 * macselect.c:
14467 * macmenu.c:
14468 * macgui.h:
14469 * macfns.c:
14470 * mac.c: Remove file.
14471 * s/darwin.h:
14472 * m/intel386.h:
14473 * xfaces.c:
14474 * xdisp.c:
14475 * window.c:
14476 * tparam.c:
14477 * termhooks.h:
14478 * termcap.c:
14479 * term.c:
14480 * syssignal.h:
14481 * sysselect.h:
14482 * sysdep.c:
14483 * process.c:
14484 * lread.c:
14485 * lisp.h:
14486 * keyboard.c:
14487 * image.c:
14488 * fringe.c:
14489 * frame.h:
14490 * frame.c:
14491 * fontset.c:
14492 * font.h:
14493 * font.c:
14494 * fns.c:
14495 * fileio.c:
14496 * emacs.c:
14497 * dispnew.c:
14498 * dispextern.h:
14499 * config.in:
14500 * atimer.c:
14501 * Makefile.in: Remove code for Carbon.
14502
14503 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14504
14505 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
14506
14507 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14508
14509 * macterm.h (kCGBitmapByteOrder32Host): New define for
14510 non-universal SDKs.
14511
14512 * image.c (mac_create_cg_image_from_image, image_load_image_io)
14513 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
14514
14515 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
14516 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
14517
14518 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
14519
14520 * w32inevt.c: Include dispextern.h.
14521
14522 2008-07-26 Andreas Schwab <schwab@suse.de>
14523
14524 * print.c (print_object): Fix off-by-one in last change.
14525
14526 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
14527
14528 * term.c (syms_of_term): Don't initialize default_orig_pair,
14529 default_set_foreground and default_set_background on Windows.
14530
14531 2008-07-25 Jason Rumney <jasonr@gnu.org>
14532
14533 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
14534 ScriptItemize. Clean up return value checking. Remove unused
14535 variables.
14536 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
14537 shaping engine.
14538
14539 * w32font.c (w32font_has_char): Handle the case where we can't
14540 determine the script for a character.
14541
14542 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
14543
14544 * term.c (syms_of_term): Initialize default_orig_pair,
14545 default_set_foreground, and default_set_background.
14546
14547 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
14548 clash (bug#86).
14549 (getloadavg): Callers changed.
14550
14551 * image.c (svg_load_image): Fix last change.
14552 (svg_load_image): Use rsvg_handle_get_dimensions to check that
14553 image size is valid. Use g_object_unref instead of deprecated
14554 rsvg_handle_free to free rsvg handle.
14555 (x_from_xcolors): Don't initialize pixmap (silence compiler).
14556
14557 2008-07-25 Jason Rumney <jasonr@gnu.org>
14558
14559 * w32font.c (w32font_encode_char): Encode characters outside BMP as
14560 surrogates before looking up glyph index.
14561 (w32font_text_extents): Encode as surrogates if falling back to
14562 functions that need UTF-16 wide chars.
14563
14564 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
14565 BMP as surrogates before looking up glyph index.
14566
14567 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
14568
14569 * image.c (svg_load_image): Check for failure in return value of
14570 rsvg_handle_get_pixbuf. Free rsvg handle when done.
14571
14572 2008-07-25 Jason Rumney <jasonr@gnu.org>
14573
14574 * w32font.c (Fx_select_font): Reverse sense of second arg.
14575
14576 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
14577
14578 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
14579 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
14580
14581 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
14582 (PURESIZE): Use it.
14583
14584 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
14585
14586 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
14587 * m/alpha.h (TEXT_END):
14588 * m/ibmrs6000.h (TEXT_END):
14589 * m/macppc.h (TEXT_END):
14590 * s/darwin.h (TEXT_END):
14591 * s/msdos.h (TEXT_END): Remove, unused.
14592 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
14593 * s/cygwin.h: Remove comment.
14594
14595 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
14596 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
14597 * m/intel386.h (DOT_GLOBAL_START):
14598 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
14599 (USG): Remove, file not used on USG platforms.
14600
14601 * Makefile.in (HAVE_X11): Remove empty #else.
14602
14603 2008-07-24 Andreas Schwab <schwab@suse.de>
14604
14605 * fileio.c (Finsert_file_contents): Properly adjust undo list
14606 after format conversion.
14607
14608 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
14609
14610 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
14611 (menu_nav_ended): Remove.
14612 (create_menus): Remove signal connect for menu_nav_ended.
14613 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
14614 create_menus.
14615 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
14616
14617 2008-07-23 Jason Rumney <jasonr@gnu.org>
14618
14619 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
14620 with opened font.
14621 (w32font_open): Set font type to gdi.
14622
14623 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
14624
14625 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
14626
14627 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
14628 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
14629 defines it.
14630 * unexec.c (ADDR_CORRECT): Define unconditionally.
14631
14632 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
14633
14634 * unexec.c: Remove code depending on !COFF and USG, the file is
14635 not used for such systems.
14636
14637 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
14638 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
14639 (LD_SWITCH_SYSTEM_1): Remove, update users.
14640
14641 * s/darwin.h (DATA_END):
14642 * m/intel386.h (DATA_END):
14643 * m/ibmrs6000.h (DATA_END):
14644 * m/alpha.h (DATA_END): Remove, unused.
14645
14646 * config.in: Regenerate.
14647 * s/ms-w32.h (subprocesses): Define unconditionally.
14648 * s/template.h (subprocesses): Update comment.
14649 * s/vms.h (subprocesses):
14650 * s/usg5-4.h (subprocesses):
14651 * s/hpux10-20.h (subprocesses):
14652 * s/gnu-linux.h (subprocesses):
14653 * s/cygwin.h (subprocesses):
14654 * s/bsd-common.h (subprocesses):
14655 * s/aix4-2.h (subprocesses):
14656 * s/darwin.h (subprocesses): Do not define, defined by default now.
14657
14658 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
14659 Remove all references.
14660 (temacs): Add GNUstep specific ld flags.
14661
14662 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
14663 similarly to what X does.
14664
14665 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
14666
14667 * nsfns.m (x-list-fonts): Remove.
14668 (syms_of_nsfns): Drop the x-list-fonts declaration.
14669 * nsterm.m: Get rid of remaining "//" comments.
14670
14671 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
14672
14673 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
14674
14675 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
14676 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
14677 (Fns_own_selection_internal, Fx_disown_selection_internal)
14678 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
14679
14680 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
14681 ... */' style of docstrings. Doc fixes.
14682
14683 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
14684
14685 * terminfo.c (UP, BC, PC): Undo previous change.
14686
14687 * nsfns.m: Rename ns prefixed functions/variables to the
14688 corresponding x versions. Update references.
14689
14690 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
14691
14692 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
14693
14694 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
14695
14696 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
14697 Remove forwarding functions.
14698 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
14699 non-static.
14700 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
14701 non-static.
14702 (ns_frame_parm_handlers): Use the new names.
14703 (syms_of_nsfns): Move to the end of file.
14704
14705 * nsterm.m (syms_of_nsterm): Move to the end of file.
14706
14707 * dispnew.c (init_display): Remove code for X10.
14708
14709 2008-07-22 Jason Rumney <jasonr@gnu.org>
14710
14711 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
14712 bare drive.
14713
14714 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
14715
14716 * nsterm.m (syms_of_nsterm): Remove debugging println.
14717
14718 2008-07-22 David Reitter <david.reitter@gmail.com>
14719
14720 * nsfns.m (do_applescript, F_do_applescript): NS version of the
14721 Carbon implementation of the same functionality: execute arbitrary
14722 AppleScript code.
14723
14724 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
14725
14726 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
14727 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
14728 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
14729 (Fx_display_mm_height, Fx_display_mm_width)
14730 (Fx_display_backing_store, Fx_display_visual_class)
14731 (Fx_display_save_under, Fx_open_connection)
14732 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
14733 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
14734 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
14735 (Fx_display_pixel_width, Fx_display_pixel_height)
14736 (Fx_display_usable_bounds, Fx_display_planes)
14737 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
14738 ... */' style of docstrings.
14739
14740 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
14741
14742 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
14743 on this platform.
14744 (mips):
14745 * m/iris4d.h (mips): Do not define.
14746 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
14747
14748 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
14749
14750 * image.c:
14751 * nsfns.m:
14752 * nsselect.m:
14753 * nsterm.h:
14754 * nsterm.m: Rename ns prefixed functions/variables to the
14755 corresponding x versions. Update references.
14756
14757 * m/ibms390x.h (NO_REMAP): Do not undefine.
14758
14759 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
14760
14761 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
14762
14763 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
14764 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
14765 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
14766 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
14767 (Fns_display_mm_height, Fns_display_mm_width)
14768 (Fns_display_backing_store, Fns_display_visual_class)
14769 (Fns_display_save_under, Fns_open_connection)
14770 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
14771 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
14772 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
14773 (Fns_display_pixel_width, Fns_display_pixel_height)
14774 (Fns_display_usable_bounds, Fx_display_planes)
14775 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
14776
14777 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
14778
14779 * print.c (print_object): Check print_depth before searching for
14780 circularities.
14781
14782 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
14783
14784 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
14785 only sprintf.
14786
14787 2008-07-21 Kenichi Handa <handa@m17n.org>
14788
14789 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
14790
14791 2008-07-20 Andreas Schwab <schwab@suse.de>
14792
14793 * syntax.c (find_start_pos, find_start_value)
14794 (find_start_value_byte, find_start_begv, find_defun_start)
14795 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
14796
14797 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
14798
14799 * s/sol2-3.h: Insert contents of s/sol2.h.
14800 (LD_SWITCH_SYSTEM): Remove redundant definition.
14801 * s/sol2.h: Remove, unused.
14802
14803 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14804
14805 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
14806
14807 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14808
14809 * Makefile.in (ns_appdir): Fix typo in find command.
14810
14811 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
14812
14813 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
14814
14815 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
14816 added not supported anymore.
14817
14818 * s/usg5-4-2.h (LIBS_SYSTEM):
14819 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
14820
14821 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
14822 * s/lynxos.h (GETPGRP_NO_ARG):
14823 * s/hpux10-20.h (NO_SIOCTL_H):
14824 * s/gnu.h (GETPGRP_NO_ARG):
14825 * s/gnu-linux.h (NO_SIOCTL_H):
14826 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
14827 * s/cygwin.h (GETPGRP_NO_ARG):
14828 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
14829 (C_DEBUG_SWITCH): Remove duplicate definition.
14830
14831 * m/ibms390.h: Remove boilerplate comments.
14832
14833 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
14834
14835 * process.c (HAVE_SERIAL): Consolidate ifdefs.
14836 (wait_reading_process_output): Remove code for SunOS, platform not
14837 supported anymore. Use SOLARIS2 instead of sun.
14838
14839 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14840
14841 * font.c (font_open_by_name): Under NS, default lface height to zero.
14842 (font_open_for_lface): Under NS, set size based on frame fontsize.
14843 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
14844 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
14845
14846 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14847
14848 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
14849 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
14850 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
14851 YES/NO.
14852 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
14853 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
14854 * Makefile.in (clean): Clear out build destination dir.
14855
14856 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14857
14858 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
14859 xterm, xselect.
14860 * lisp.h: Remove declaration of hash_remove.
14861 * nsgui.h: Remove redefinitions of hash_remove.
14862 * fns.c (hash_remove): Rename to hash_remove_from_table.
14863
14864 2008-07-19 Seiji Zenitani <zenitani@mac.com>
14865
14866 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
14867 strdup() the family UTF8String before modifying it.
14868
14869 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14870
14871 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
14872 NS_FACE_BACKGROUND with 0 instead of nil.
14873 * nsfont.m (nsfont_draw): Same.
14874
14875 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
14876
14877 * nsfns.m (ns_set_background_color): Fix crash.
14878
14879 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
14880
14881 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
14882
14883 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
14884
14885 * puresize.h (BASE_PURESIZE): Increase to 1240000.
14886
14887 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14888
14889 * gtkutil.c: Include <config.h> instead of "config.h".
14890
14891 * lisp.h (Foverlay_buffer): Add EXFUN.
14892
14893 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
14894 child process to complete child_setup. Undo 2005-09-21 change.
14895
14896 * s/darwin.h: Mention setsid after vfork.
14897
14898 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14899
14900 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
14901 Depend on macgui.h.
14902
14903 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
14904 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
14905
14906 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
14907 and f19.
14908 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
14909
14910 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
14911 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
14912 Remove enumerators.
14913
14914 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
14915 Check if FACE_FROM_ID returns NULL.
14916
14917 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
14918
14919 * w32inevt.c (change_frame_size): Remove extern declaration.
14920 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
14921 change_frame_size.
14922
14923 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
14924
14925 * getloadavg.c: Revert last change (2008-07-15).
14926
14927 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
14928
14929 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
14930 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
14931 from configure.
14932
14933 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
14934
14935 * s/sol2.h:
14936 * s/sol2-4.h: Reorganize conditionals.
14937
14938 * ecrt0.c: Remove code depending on m68000, not used anymore.
14939
14940 * fns.c (hash_remove): Make static.
14941 * lisp.h (hash_remove): Don't prototype.
14942
14943 * m/ibmrs6000.h:
14944 * m/ibms390x.h:
14945 * m/macppc.h: Remove boilerplate comments.
14946
14947 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
14948 Solaris, which does not need them.
14949
14950 * m/vax.h: Remove comments about unsupported systems.
14951
14952 * s/darwin.h: Reorganize ifdefs.
14953
14954 2008-07-17 Andreas Schwab <schwab@suse.de>
14955
14956 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
14957
14958 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
14959
14960 Use SDATA. Follow coding convention of placing operators at
14961 beginning of next line rather than end of previous line, and placing
14962 spaces around infix operators.
14963
14964 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
14965 in case it was defined already.
14966 USE @GNUSTEP_MAKEFILES@ rather than envvars.
14967 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
14968 ns_default.
14969 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
14970 Lisp_Objects.
14971 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
14972 (ns_defined_color, ns_color_to_lisp): Declare.
14973 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
14974 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
14975 it's accepted even with USE_LISP_UNION_TYPE.
14976 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
14977 (update_frame_tool_bar): Remove apparently obsolete tests for
14978 non-integerness of f->tool_bar_lines.
14979 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
14980 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
14981 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
14982 (nsfont_open): Don't confuse NULL for Qnil.
14983 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
14984 * menu.h (find_and_call_menu_selection):
14985 * menu.c (find_and_call_menu_selection): Use just int for vector size.
14986 (find_and_return_menu_selection): Always return something.
14987 * frame.h: Include dispextern.h for Display_Info.
14988 (display_x_get_resource): Declare.
14989
14990 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
14991
14992 * syntax.c: Remove stdio.h include accidentally introduced in
14993 Emacs.app commit.
14994 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
14995 NS_IMPL_COCOA.
14996 * keyboard.c (handle_async_input, input_available_signal): Remove
14997 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
14998
14999 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
15000
15001 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
15002 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
15003 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
15004 Use SDATA.
15005
15006 * keymap.c: Remove all NS-specific code.
15007 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
15008 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
15009 where_is_preferred_modifier, return a different value depending on how
15010 preferred is the binding.
15011 (where_is_internal): Adjust accordingly.
15012 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
15013 Adjust to new preferred_sequence_p.
15014 (syms_of_keymap): Declare `where-is-preferred-modifier'.
15015 * keyboard.c (parse_solitary_modifier): Not static any more.
15016 * keyboard.h (parse_solitary_modifier): Declare.
15017
15018 2008-07-16 Andreas Schwab <schwab@suse.de>
15019
15020 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
15021 of easymenu.
15022
15023 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
15024
15025 * xdisp.c (move_it_in_display_line): Account for word wrap, so
15026 that we don't move off the line.
15027
15028 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
15029
15030 * keyboard.c (Qsuper): Remove.
15031 (parse_menu_item): Don't call where_is_internal specially for NS.
15032
15033 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
15034
15035 * s/gnu-linux.h: Remove boilerplate comments.
15036
15037 * m/alpha.h (__ELF__): Consolidate conditions.
15038
15039 * m/m68k.h (linux): Use GNU_LINUX instead.
15040 Remove boilerplate comments.
15041
15042 * m/intel386.h: Undo refactoring from previous change.
15043 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
15044 too, remove dead code.
15045 (linux): Use GNU_LINUX instead.
15046
15047 2008-07-16 Jason Rumney <jasonr@gnu.org>
15048
15049 * w32gui.h: Repeat 26 June changes lost by last change.
15050
15051 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
15052
15053 * systty.h: Remove code for Aix on 386, unsupported platform.
15054
15055 * s/ms-w32.h: Remove boilerplate comments.
15056 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
15057
15058 * s/gnu-linux.h (TERM): Remove support.
15059 (HAVE_SYSVIPC): Remove, unused.
15060 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
15061 for this system.
15062
15063 * process.c: Remove support for IRIS, unused.
15064 Remove support for TERM, not relevant anymore.
15065
15066 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
15067 used with the definition.
15068
15069 * s/aix4-2.h (static): Do not undef.
15070
15071 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
15072 only used on Aix.
15073 (HAVE_SYSVIPC): Remove, unused.
15074
15075 * m/hp800.h (CANNOT_DUMP): Do not undef.
15076
15077 * m/alpha.h: Fix comment.
15078
15079 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
15080 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
15081 used by this configuration.
15082 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
15083 * unexec.c: Remove code depending on HPUX and
15084 USG_SHARED_LIBRARIES, not used with this file. Remove code
15085 depending on IRIS, unused. Remove if 0-ed code.
15086
15087 * s/template.h: Remove comments about static.
15088
15089 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
15090 Remove if 0-ed code.
15091 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
15092 were the same as the default.
15093 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
15094 Remove boilerplate comments.
15095 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
15096 (HAVE_SYSVIPC): Remove, unused.
15097 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
15098
15099 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
15100 Remove boilerplate comments.
15101 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
15102 Remove boilerplate comments.
15103 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
15104 Remove boilerplate comments.
15105 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
15106
15107 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
15108 USG systems which do not use DATA_SEG_BITS.
15109 Refactor code. Remove boilerplate comments.
15110
15111 * m/ibms390.h:
15112 * m/m68k.h:
15113 * s/bsd-common.h:
15114 * s/cygwin.h:
15115 * s/darwin.h:
15116 * s/freebsd.h:
15117 * s/gnu.h:
15118 * s/msdos.h: Remove boilerplate comments.
15119
15120 * m/iris4d.h: Remove boilerplate comments and code for systems that
15121 do not use this file.
15122 (IRIS_4D): Remove, unused.
15123
15124 * m/mips.h: Remove boilerplate comments and code for systems that
15125 do not use this file.
15126 (SIGN_EXTEND_CHAR):
15127 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
15128 * unexmips.c: Remove file, unused.
15129
15130 * editfns.c (Fuser_full_name): Replace the only use of
15131 USER_FULL_NAME with its value.
15132 * config.in: Regenerate.
15133
15134 2008-07-16 David Reitter <david.reitter@gmail.com>
15135
15136 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
15137 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
15138
15139 2008-07-16 Glenn Morris <rgm@gnu.org>
15140
15141 * emacs.c (system-type): Doc fix.
15142
15143 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
15144
15145 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
15146 If the cache doesn't work, let's fix it, rather than work around it.
15147
15148 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
15149
15150 * Makefile.in: Correct additions for nsfont.o in last commit.
15151 * nsfont.m: New file (forgot last commit).
15152
15153 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
15154
15155 * callproc.c (set_initial_environment): Initialize
15156 Vprocess_environment under CANNOT_DUMP (fixes crash when
15157 batch-compiling for bootstrap).
15158
15159 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
15160 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15161
15162 * frame.c (make_initial_frame): Call init_frame_faces(f) in
15163 CANNOT_DUMP case -- fix crash due to different init order.
15164
15165 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
15166
15167 Changes and additions for NeXTstep windowing system (Cocoa and
15168 GNUstep) support.
15169
15170 * Makefile.in:
15171 * config.in: Support defines and build commands for NS port.
15172 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
15173 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
15174 * dispextern.h: Include nsgui.h and add needed typedefs under NS
15175 windowing.
15176 (struct face): Add synth_ital field.
15177 * dispnew.c: Include nsterm.h when compiling under NS windowing.
15178 (init_display): Initialize Vinitial_window_system to "ns" when so
15179 compiled.
15180 * emacs.c: Include GSConfig.h when compiling under GNUstep.
15181 (display_arg): Use under NS.
15182 (main): Under NS, allocate autorelease pool and handle command line
15183 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
15184 (standard_args): Add NS-specific args.
15185 (shut_down_emacs): Shut down NS terminal if compiled under NS.
15186 * font.c (DEFAULT_ENCODING): New variable.
15187 (font_find_for_lface): Use it.
15188 (syms_of_font): Load syms_of_nsfont under NS.
15189 * font.h: Declare nsfont_driver when compiled under NS.
15190 * fontset.c: When compiling under NS, include nsterm.h.
15191 (fontset_from_font): Autoconstruct fontset under NS.
15192 * frame.c (various): Under NS, include nsterm.h, add Qns window system
15193 symbol, document and use it.
15194 (do_switch_frame): When for_deletion under Cocoa, add
15195 Fraise_frame(Qnil).
15196 (x_set_frame_parameters): Ensure font attribute changes are picked up.
15197 (x_get_arg): Allow "yes" and "no" as boolean values.
15198 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
15199 Qright under Cocoa.
15200 (focus-follows-mouse): Default to 0 under NS.
15201 * frame.h (enum output_method): Add output_ns.
15202 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
15203 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
15204 (FRAME_WINDOW_P): NS-specific definition.
15205 * fringe.c (max_used_fringe_bitmap): Make public.
15206 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
15207 (getloadavg): Use NeXT code under descendant OS's.
15208 * image.c (includes and header section, x_create_bitmap_from_data)
15209 (x_create_bitmap_from_file, free_bitmap_record, image_background)
15210 (image_background_transparent, x_clear_image_1)
15211 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
15212 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
15213 (x_to_xcolors, x_from_xcolors, x_disable_image)
15214 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
15215 other GUIs, including XPM support using code originally written for
15216 Carbon GUI.
15217 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
15218 using NS API.
15219 (image_ascent): Use font metrics macros instead of direct struct field
15220 access.
15221 * keyboard.c (includes): Add nsterm.h when compiling under NS.
15222 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
15223 Also, handle NS as GTK for menu bar purposes.
15224 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
15225 toolkit where they differ.
15226 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
15227 use cachelist, still needed under NS.
15228 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
15229 (struct widget_value): Define it here for menu.c.
15230 * keymap.c (includes): Include modifier internals.
15231 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
15232 NS.
15233 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
15234 support for preferring sequences using certain modifiers, specified by
15235 the FIRSTONLY argument.
15236 * lisp.h (hash_remove): Rename to avoid name clash when compiling
15237 under NS GNUstep implementation.
15238 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
15239 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
15240 * menu.c: Include nsterm.h under NS.
15241 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
15242 (free_menubar_widget_tree_value, update_submenu_strings)
15243 (find_and_call_menu_selection): Treat NS as X and NT.
15244 (find_and_return_menu_selection): New function, used for popup menus.
15245 * nsgui.h:
15246 * nsterm.h:
15247 * nsfns.m:
15248 * nsimage.m:
15249 * nsmenu.m:
15250 * nsselect.m:
15251 * nsterm.m: New files.
15252 * process.c (wait_reading_process_output): Under NS, call ns_select()
15253 instead of plain select().
15254 * syntax.c (char_quoted): Under NS, avoid a crash when called near
15255 beginning of buffer.
15256 * sysselect.h (init_process): Rename when compiling under Cocoa to
15257 avoid name conflict.
15258 * termhooks.h (display_info): Add ns_display_info to union.
15259 * terminal.c (Fterminal_live_p): Add ns to terminal types.
15260 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
15261 COCOA environment.
15262 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
15263 unexec() signature. (Note, this will dump, but the resulting file
15264 crashes; unexosx is used instead; keeping around for reference and
15265 possible aid in getting dump working under GNUstep.)
15266 * w32gui.h (button_type, widget_value): Remove definitions (now in
15267 keyboard.h).
15268 * window.c: Include nsterm.h when compiling under NS.
15269 * xdisp.c (includes): Include nsterm.h when compiling under NS.
15270 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
15271 other GUI windowing systems.
15272 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
15273 GTK.
15274 (x_consider_frame_title): Under NS, set icon type and frame
15275 modified-state indicator; use ns_set_name_as_filename() when using
15276 formatted title.
15277 (update_window_cursor): Make public when compiling under NS.
15278 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
15279 (hourglass_atimer, Vhourglass_delay
15280 * xfaces.c (header section, init_frame_faces, clear_font_table)
15281 (defined_color, unload_color, x_face_list_fonts)
15282 (prepare_face_for_display): Add NS support parallel to other GUIs.
15283 Emulate GCs like other non-X GUIs.
15284 (split_font_name): Don't lowercase font name under NS.
15285 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
15286 under NS.
15287 * s/darwin.h: Add support for compilation under NS.
15288
15289 2008-07-15 Jason Rumney <jasonr@gnu.org>
15290
15291 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
15292 (w32_show_hourglass): Rename from show_hourglass.
15293 (w32_hide_hourglass): Rename from hide_hourglass.
15294 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
15295 (Vhourglass_delay): Declare extern.
15296 (hourglass_started): Remove.
15297
15298 * xdisp.c (Vhourglass_delay): Remove static.
15299 (hourglass_started, start_hourglass, cancel_hourglass):
15300 Don't include these versions on WINDOWSNT.
15301
15302 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
15303
15304 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
15305 variables (formerly in xfns.c).
15306 (show_hourglass, hide_hourglass): New prototypes (same).
15307 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
15308 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
15309 in xfns.c).
15310 (syms_of_xdisp): Declare/initialize display-hourglass,
15311 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
15312 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
15313 formerly in xfns.c.
15314 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
15315 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
15316 (start_hourglass, cancel_hourglass): Remove.
15317 (show_hourglass, hide_hourglass): Remove prototypes and static
15318 modifiers.
15319 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
15320 hourglass_atimer, hourglass_shown_p declaration/initialization.
15321 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
15322 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
15323 (start_hourglass, cancel_hourglass): Remove.
15324 (show_hourglass, hide_hourglass): Remove prototypes and static
15325 modifiers.
15326 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
15327 hourglass_atimer, hourglass_shown_p declaration/initialization.
15328 * w32fns.c (display_hourglass_p, Vhourglass_delay)
15329 (DEFAULT_HOURGLASS_DELAY): Remove.
15330 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
15331 hourglass_shown_p declaration/initialization.
15332
15333 2008-07-14 Jason Rumney <jasonr@gnu.org>
15334
15335 * w32fns.c (w32_get_arg): Remove wrapper function.
15336 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
15337 directly.
15338 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
15339
15340 2008-07-14 Kenichi Handa <handa@m17n.org>
15341
15342 * xfont.c (xfont_open): Add workaround for X's bug.
15343
15344 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
15345
15346 * fontset.c: Include <stdio.h> unconditionally.
15347
15348 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
15349
15350 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
15351 for filtering.
15352
15353 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
15354
15355 * s/vms.h: Use __GNUC__ instead of _GNUC_.
15356
15357 * m/macppc.h:
15358 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
15359
15360 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
15361 (SPECIAL_EMACS_INT):
15362 * m/ia64.h (SPECIAL_EMACS_INT):
15363 * m/amdx86-64.h (SPECIAL_EMACS_INT):
15364 * s/gnu.h (NLIST_STRUCT):
15365 * s/aix4-2.h (X11R5_INHIBIT_I18N):
15366 * s/gnu-linux.h (LINUX):
15367 * s/msdos.h (HAVE_FACES):
15368 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
15369
15370 * systty.h:
15371 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
15372 anymore.
15373
15374 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
15375
15376 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
15377 always defined as int.
15378
15379 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
15380 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
15381 * s/gnu-linux.h (HAVE_WAIT_HEADER):
15382 * s/freebsd.h (HAVE_WAIT_HEADER):
15383 * s/bsd-common.h (HAVE_UNION_WAIT):
15384 * s/aix4-2.h (HAVE_WAIT_HEADER):
15385 * m/mips.h (HAVE_UNION_WAIT):
15386 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
15387 (COFF, static): Do not define, they are undefined later in the file.
15388
15389 * process.c (update_status): Don't use a union.
15390 (status_convert):
15391 (sigchld_handler): Use int instead of WAITTYPE.
15392
15393 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
15394
15395 * indent.c (Fvertical_motion): Restore hscroll before moving to
15396 goal column.
15397
15398 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
15399
15400 * lisp.h: Remove left over code.
15401
15402 2008-07-11 Andreas Schwab <schwab@suse.de>
15403
15404 * lisp.h: Fix logic in last change.
15405
15406 * menu.h: New file.
15407 * menu.c: Include it.
15408 * xmenu.c: Likewise.
15409 * Makefile.in: Update dependencies.
15410
15411 2008-07-11 Kenichi Handa <handa@m17n.org>
15412
15413 * fontset.c (fontset_from_font): Cancel the previous change.
15414
15415 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
15416
15417 * lisp.h:
15418 * w32heap.c:
15419 * emacs.c:
15420 * alloc.c: Replace all references of NO_UNION_TYPE with
15421 USE_LISP_UNION_TYPE.
15422
15423 * m/xtensa.h (NO_UNION_TYPE):
15424 * m/vax.h (NO_UNION_TYPE):
15425 * m/template.h (NO_UNION_TYPE):
15426 * m/sparc.h (NO_UNION_TYPE):
15427 * m/mips.h (NO_UNION_TYPE):
15428 * m/macppc.h (NO_UNION_TYPE):
15429 * m/m68k.h (NO_UNION_TYPE):
15430 * m/iris4d.h (NO_UNION_TYPE):
15431 * m/intel386.h (NO_UNION_TYPE):
15432 * m/ibms390x.h (NO_UNION_TYPE):
15433 * m/ibms390.h (NO_UNION_TYPE):
15434 * m/ibmrs6000.h (NO_UNION_TYPE):
15435 * m/ia64.h (NO_UNION_TYPE):
15436 * m/hp800.h (NO_UNION_TYPE):
15437 * m/arm.h (NO_UNION_TYPE):
15438 * m/amdx86-64.h (NO_UNION_TYPE):
15439 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
15440 defining it the same.
15441
15442 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
15443
15444 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
15445
15446 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
15447
15448 * fileio.c:
15449 * sysdep.c:
15450 * systty.h:
15451 * m/ibmrs6000.h:
15452 * m/iris4d.h:
15453 * s/aix4-2.h:
15454 * s/freebsd.h:
15455 * s/gnu-linux.h:
15456 * s/hpux10-20.h:
15457 * s/hpux11.h:
15458 * s/netbsd.h:
15459 * s/sol2-3.h:
15460 * s/sol2-4.h:
15461 * s/sol2.h:
15462 * s/usg5-4.h:
15463 * s/vms.h: Remove references to unused variables.
15464
15465 2008-07-10 Andreas Schwab <schwab@suse.de>
15466
15467 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
15468 pattern before matching the generic family.
15469
15470 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
15471
15472 * unexec.c:
15473 * s/vms.h:
15474 * s/usg5-4-2.h:
15475 * s/sol2-5.h:
15476 * s/freebsd.h:
15477 * s/darwin.h: Remove dead code.
15478
15479 * m/template.h:
15480 * m/sparc.h:
15481 * m/mips.h:
15482 * m/m68k.h:
15483 * m/iris4d.h:
15484 * m/intel386.h:
15485 * m/ibms390x.h:
15486 * m/ibms390.h:
15487 * m/ia64.h:
15488 * m/hp800.h:
15489 * m/arm.h:
15490 * m/amdx86-64.h: Remove dead code and references to unused
15491 and compiler defined symbols.
15492
15493 * unexmips.c:
15494 * unexelf.c: Remove references to desupported systems.
15495
15496 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
15497
15498 * m/powermac.h: Remove boilerplate comments.
15499 (NO_REMAP): Remove unused definition.
15500
15501 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
15502 define them.
15503
15504 2008-07-10 Kenichi Handa <handa@m17n.org>
15505
15506 * xfont.c (xfont_open): Log the reason of failure.
15507
15508 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
15509
15510 * fontset.c (fontset_get_font_group):
15511 * font.c (font_check_otf): Specify argument types.
15512
15513 2008-07-09 Kenichi Handa <handa@m17n.org>
15514
15515 * coding.c (detect_coding_utf_8): Set detect_info->found only when
15516 non-ASCII char is found.
15517
15518 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
15519 (reorder_font_vector): Change the arg preferred_family to font.
15520 Prefer the spec matching with font.
15521 (fontset_get_font_group): New function.
15522 (fontset_find_font): Change the format of an element of a realized
15523 fontset. Use fontset_get_font_group.
15524 (fontset_font): Try the current fontset, the default fontset, the
15525 fallbacks of the current fontset, and the fallbacks of the default
15526 fontset in this order.
15527 (face_for_char): Delete the shortcut to use the current font.
15528 (fontset_from_font): Don't set fonts for Latin in the fontset.
15529
15530 * font.h (font_make_object, font_match_p): Adjust prototypes.
15531
15532 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
15533
15534 * font.c (font_make_object): New arg entity and pixelsize.
15535 (font_check_otf_features, font_check_otf): New functions.
15536 (font_match_p): Check :lang, :script, and :otf properties.
15537
15538 * xfont.c (xfont_open): Adjust it for the change of
15539 font_make_object.
15540 (xfont_text_extents): Fix initial setting of metrics.
15541
15542 * ftfont.c (struct ftfont_info): New member index, delete member
15543 fc_charset_idx. Make the member order compatible with struct
15544 xftfont_info.
15545 (fc_charset_table): Change charset names to registry names.
15546 (ftfont_pattern_entity): Delete the args registry and
15547 fc_charset_idx. Change the value of :font-entity property
15548 to (FONTNAME . INDEX). Always set :registry property to
15549 `iso10646-1'.
15550 (struct ftfont_cache_data): New struct.
15551 (ftfont_lookup_cache): New arg for_face.
15552 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
15553 (ftfont_driver): Set the member otf_capability.
15554 (ftfont_get_charset): Adjust it for the change of
15555 fc_charset_table.
15556 (OTF_TAG_SYM): New macro.
15557 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
15558 for the change of fc_charset_table.
15559 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
15560 ftfont_pattern_entity. Add FC_INDEX to objset.
15561 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
15562 and ftfont_pattern_entity.
15563 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
15564 font_make_object, struct ftfont_info.
15565 (ftfont_has_char): Use ftfont_get_fc_charset.
15566 (ftfont_otf_features, ftfont_otf_capability): New functions.
15567 (ftfont_shape): Use ftfont_get_otf.
15568 (ftfont_text_extents): Fix initial setting of metrics.
15569
15570 * xftfont.c (struct xftfont_info): New member ft_size. Make the
15571 member order compatible with struct ftfont_info.
15572 (xftfont_open): Add FC_CHARSET to the pattern. Set
15573 xftfont_info->ft_size. Don't unlock the face. Check BDF
15574 properties if appropriate.
15575 (xftfont_close): Unlock the face.
15576 (xftfont_anchor_point, xftfont_shape): Deleted.
15577 (syms_of_xftfont): Don't set members anchor_point and shape of
15578 xftfont_driver.
15579
15580 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
15581 font_make_object.
15582
15583 * w32font.c (w32font_open): Adjust it for the change of
15584 font_make_object.
15585 (w32font_open_internal): Don't set properties of font_object here.
15586
15587 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
15588
15589 * macfns.c (x_create_tip_frame):
15590 * w32fns.c (x_create_tip_frame):
15591 * xfns.c (x_create_tip_frame): Pass parameter argument to
15592 face-set-after-frame-default.
15593
15594 * xfaces.c (Finternal_merge_in_global_face): Save merged
15595 attributes for the default face back into the face vector.
15596
15597 2008-07-08 Andreas Schwab <schwab@suse.de>
15598
15599 * fontset.h: Declare fontset_from_font. Don't declare
15600 new_fontset_from_font and fontset_from_font_name.
15601 * xterm.c: Include "fontset.h".
15602 * Makefile.in (xterm.o): Update dependencies.
15603
15604 2008-07-08 Glenn Morris <rgm@gnu.org>
15605
15606 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
15607 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
15608
15609 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
15610
15611 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
15612 (x_set_frame_parameters): Don't bind it.
15613
15614 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
15615
15616 * w32fns.c (map_w32_filename): Declare extern.
15617
15618 2008-07-07 Jason Rumney <jasonr@gnu.org>
15619
15620 * w32term.c (WS_EX_LAYERED): Define if not already.
15621
15622 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
15623
15624 * xfaces.c (set_font_frame_param): Don't try to set the font
15625 parameter if it is still unspecified in the lface.
15626
15627 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
15628
15629 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
15630 face if it didn't already exist.
15631
15632 * xdisp.c (try_window_id): Give up if word-wrapping is on.
15633
15634 2008-07-05 Andreas Schwab <schwab@suse.de>
15635
15636 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
15637
15638 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
15639
15640 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
15641 word-wrapping.
15642 (IT_DISPLAYING_WHITESPACE): New macro.
15643 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
15644 when word-wrapping. Simplify word-wrapping logic. Use correct
15645 pixel positions when saving copies of the iterator.
15646 (display_line): Use proper wrap point if the last character on a
15647 line was preceded by whitespace.
15648
15649 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
15650
15651 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
15652
15653 2008-07-04 Kenichi Handa <handa@m17n.org>
15654
15655 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
15656
15657 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
15658
15659 2008-07-02 Jason Rumney <jasonr@gnu.org>
15660
15661 * xfns.c (syms_of_xfns): Only define x-select-font when both
15662 HAVE_FREETYPE and USE_GTK.
15663
15664 * xdisp.c (next_element_from_display_vector): Move assignment out
15665 of if statement.
15666
15667 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
15668
15669 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
15670
15671 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
15672 (syms_of_fileio): Initialize and export them.
15673 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
15674
15675 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
15676 (Fsystem_move_file_to_trash): New function.
15677 (syms_of_w32fns): Export it to lisp.
15678
15679 2008-07-01 Jason Rumney <jasonr@gnu.org>
15680
15681 * w32font.c (w32font_text_extents): Don't count overhang as part
15682 of width.
15683
15684 2008-06-30 Miles Bader <miles@gnu.org>
15685
15686 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
15687 Add `avoid_cursor_p' field.
15688
15689 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
15690 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
15691 (append_glyph, append_composite_glyph, produce_image_glyph)
15692 (append_stretch_glyph): Initialize avoid_cursor_p.
15693 (get_it_property): Rename from `get_line_height_property'.
15694 (x_produce_glyphs): Use get_it_property.
15695 (handle_line_prefix, push_display_prop): New functions.
15696 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
15697 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
15698 New variables.
15699 (syms_of_xdisp): Initialize them.
15700
15701 2008-06-30 Kenichi Handa <handa@m17n.org>
15702
15703 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
15704 XftDefaultSubstitute (they are called in XftFontMatch).
15705 (xftfont_open): Fix args to ftfont_font_format.
15706
15707 * ftfont.c (fc_charset_table): New member lang.
15708 (ftfont_resolve_generic_family): New arg pattern.
15709 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
15710 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
15711 (ftfont_open): Fix args to ftfont_font_format.
15712 (ftfont_font_format): New arg filename.
15713
15714 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
15715
15716 * xfaces.c (Finternal_merge_in_global_face): If default face was
15717 modified, realize it again. Update the font face attribute.
15718
15719 2008-06-29 Jason Rumney <jasonr@gnu.org>
15720
15721 * w32term.c (x_set_frame_alpha): Fix logic.
15722
15723 2008-06-29 Kenichi Handa <handa@m17n.org>
15724
15725 * fontset.c (Finternal_char_font): Return font-object instead of
15726 font-name.
15727
15728 * composite.c (get_composition_id): Fix the width calculation for TAB.
15729
15730 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
15731
15732 * indent.c (Fvertical_motion): Properly handle float column arg.
15733
15734 2008-06-28 Jason Rumney <jasonr@gnu.org>
15735
15736 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
15737 (pfnSetLayeredWindowAttributes): New function pointer.
15738 (w32_initialize): Initialize it when supported.
15739 (x_set_frame_alpha): New function.
15740
15741 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
15742 (w32_frame_parm_handlers): Set alpha handler.
15743
15744 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
15745
15746 2008-06-27 Jason Rumney <jasonr@gnu.org>
15747
15748 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
15749 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
15750 (w32_to_x_charset, x_to_w32_charset)
15751 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
15752 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
15753 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
15754 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
15755 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
15756 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
15757 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
15758 (Qw32_charset_unicode): Remove.
15759 (syms_of_w32fns): Update for above changes.
15760
15761 * w32font.c (w32_to_x_charset, x_to_w32_charset)
15762 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
15763 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
15764 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
15765 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
15766 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
15767 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
15768 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
15769 (syms_of_w32font): Update for above changes.
15770
15771 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
15772
15773 * s/usg5-4.h: Fix previous change: keep the correct branch of a
15774 removed #if.
15775 (USG_SHARED_LIBRARIES): Remove duplicate definition.
15776
15777 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
15778 Eli Zaretskii <eliz@gnu.org>
15779
15780 * makefile.w32-in (LOCAL_FLAGS):
15781 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
15782
15783 * sysdep.c (_spawnlp, _getpid):
15784 Declare with explicit _cdecl instead of _CRTAPI1.
15785
15786 * editfns.c (Fget_internal_run_time):
15787 Check for WINDOWSNT with #ifdef, not #if.
15788
15789 2008-06-26 Jason Rumney <jasonr@gnu.org>
15790
15791 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
15792
15793 * w32term.c (x_draw_glyph_string_foreground)
15794 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
15795 Use FONT_HANDLE macro.
15796 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
15797
15798 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
15799 (uniscribe_encode_char): Use FONT_HANDLE macro.
15800
15801 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
15802 (w32font_text_extents): Use precast w32_font.
15803 (w32font_close): Free cached metrics.
15804 (w32font_open_internal): Allocate space for name on stack.
15805
15806 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
15807
15808 * xdisp.c (extend_face_to_end_of_line): Fix last change.
15809
15810 2008-06-26 Jason Rumney <jasonr@gnu.org>
15811
15812 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
15813 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
15814
15815 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
15816
15817 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
15818
15819 2008-06-26 Jason Rumney <jasonr@gnu.org>
15820
15821 * w32bdf.c, w32bdf.h: Remove obsolete files.
15822
15823 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
15824
15825 * w32gui.h: Don't include w32bdf.h.
15826 (XCharStruct, enum w32_char_font_type, W32FontStruct):
15827 Remove obsolete font support.
15828
15829 * w32font.h (struct w32font_info): Remove compat_w32_font.
15830 Add hfont member.
15831 (FONT_COMPAT): Remove obsolete macro.
15832
15833 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
15834 (w32font_encode_char, w32font_text_extents): Use new hfont member.
15835 (w32font_open_internal): Remove compat code. Set new hfont member.
15836 (Fx_select_font): Use new hfont member.
15837
15838 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
15839 (uniscribe_encode_char): Use new hfont member.
15840
15841 * w32term.c (x_draw_glyph_string_foreground)
15842 (x_draw_composite_glyph_string_foreground): Use new hfont member.
15843 (x_draw_glyph_string): Use metrics in w32font_info.
15844
15845 2008-06-26 Kenichi Handa <handa@m17n.org>
15846
15847 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
15848
15849 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
15850
15851 * unexnext.c:
15852 * m/ews4800.h:
15853 * m/hp9000s300.h:
15854 * m/ibm370aix.h:
15855 * m/mips-siemens.h:
15856 * m/ncr386.h:
15857 * m/next.h:
15858 * m/pmax.h:
15859 * m/powerpcle.h:
15860 * m/tandem-s2.h:
15861 * s/386bsd.h:
15862 * s/bsd386.h:
15863 * s/bsd4-1.h:
15864 * s/bsd4-2.h:
15865 * s/bsdos2-1.h:
15866 * s/bsdos2.h:
15867 * s/bsdos3.h:
15868 * s/bsdos4.h:
15869 * s/nextstep.h:
15870 * s/ultrix4-3.h:
15871 * s/usg5-0.h:
15872 * s/usg5-2-2.h:
15873 * s/usg5-2.h:
15874 * s/usg5-4-3.h:
15875 * s/ux4800.h:
15876 * s/uxpds.h:
15877 * s/uxpv.h: Remove support for obsolete systems.
15878 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
15879 Remove, insert contents in s/hpux10-20.h.
15880 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
15881 Remove, insert contents in s/aix4-2.h.
15882 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
15883 * s/bsd4-3.h: Rename to ...
15884 * s/bsd-common.h: ... this.
15885 * data.c:
15886 * doc.c:
15887 * ecrt0.c:
15888 * emacs.c:
15889 * fileio.c:
15890 * floatfns.c:
15891 * keyboard.c:
15892 * mem-limits.h:
15893 * print.c:
15894 * process.c:
15895 * sysdep.c:
15896 * syssignal.h:
15897 * systty.h:
15898 * syswait.h:
15899 * term.c:
15900 * unexec.c:
15901 * unexelf.c:
15902 * unexhp9k800.c:
15903 * m/hp800.h:
15904 * m/ibmrs6000.h:
15905 * m/mips.h:
15906 * m/vax.h:
15907 * s/darwin.h:
15908 * s/freebsd.h:
15909 * s/gnu.h:
15910 * s/ms-w32.h:
15911 * s/msdos.h:
15912 * s/netbsd.h:
15913 * s/template.h: Remove references to obsolete variables.
15914
15915 * Makefile.in: Add dependencies for all unexec files.
15916 (admindir): Remove unused variable.
15917 (UNEXEC_SRC): Remove references.
15918
15919 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
15920
15921 * xfns.c (x_default_font_parameter): If Xft is available, first
15922 try Monospace-12 for the default font.
15923
15924 2008-06-25 Jason Rumney <jasonr@gnu.org>
15925
15926 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
15927
15928 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
15929
15930 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
15931
15932 * buffer.c (syms_of_buffer): Remove default-word-wrap.
15933
15934 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
15935
15936 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
15937 <scroll-conservatively>: Fix typo in docstring.
15938
15939 * xselect.c (Fx_send_client_event): Doc fix.
15940
15941 2008-06-25 Kenichi Handa <handa@m17n.org>
15942
15943 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
15944
15945 * font.c (font_parse_fcname): Remove unused variables.
15946 (font_sort_entites): Delete the arg SPEC. Caller changed.
15947 Fix for the case of ! best_only.
15948 (font_delete_unmatched): Check DPI and AVGWIDTH too.
15949
15950 * lisp.h (Fstring_to_unibyte): EXFUN it.
15951
15952 * character.h (str_to_unibyte): Extern it.
15953
15954 * character.c (str_to_unibyte): New function.
15955
15956 * fns.c (Fstring_to_unibyte): New function.
15957 (syms_of_fns): Defsubr it.
15958
15959 2008-06-24 Kenichi Handa <handa@m17n.org>
15960
15961 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
15962 DPI too.
15963 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
15964
15965 2008-06-24 Andreas Schwab <schwab@suse.de>
15966
15967 * Makefile.in (${lispsource}loaddefs.el): Rename from
15968 ../lisp/loaddefs.el.
15969 (bootstrap-clean): Do what distclean does but don't remove
15970 Makefile.
15971 (distclean): Depend on bootstrap-clean and remove Makefile.
15972
15973 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
15974
15975 * buffer.h (struct buffer): New member word_wrap.
15976
15977 * buffer.c (syms_of_buffer): New variables default-word-wrap and
15978 word-wrap.
15979 (init_buffer_once): Initialize them.
15980
15981 * dispextern.h (struct it): Replace bool truncate_lines_p with a
15982 line_wrap enum possessing three possible values.
15983
15984 * termopts.h: Replace truncate_partial_width_windows with
15985 Vtruncate_partial_width_windows.
15986
15987 * dispnew.c (direct_output_for_insert): Avoid direct output when
15988 inserting a space with word wrap on.
15989
15990 * indent.c (compute_motion): Obey integer values of
15991 truncate-partial-width-windows.
15992
15993 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
15994 replacing truncate_partial_width_windows.
15995 (init_iterator): If Vtruncate_partial_width_windows is an integer,
15996 truncate only if the window width is below that integer.
15997 (start_display, resize_mini_window, produce_stretch_glyph)
15998 (display_string, move_it_in_display_line_to): Use line_wrap.
15999 (back_to_previous_visible_line_start, reseat_1): Reset
16000 string_from_display_prop_p.
16001 (display_line): Extend default face to end of line when wrapping.
16002
16003 2008-06-24 Kim F. Storm <storm@cua.dk>
16004
16005 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
16006 to wrap continued lines at word boundaries.
16007
16008 2008-06-24 Jason Rumney <jasonr@gnu.org>
16009
16010 * font.c (Ffont_face_attributes): Multiply pixel size before point
16011 conversion to avoid multiplying rounding error.
16012
16013 2008-06-23 Jason Rumney <jasonr@gnu.org>
16014
16015 * w32term.c (x_draw_glyph_string_background)
16016 (x_draw_glyph_string): Remove old bdf font code.
16017
16018 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
16019
16020 2008-06-22 Kenichi Handa <handa@m17n.org>
16021
16022 * font.c (font_find_for_lface): Try the adstyle specified in
16023 the property of LFACE_FONT of LFACE (if any).
16024
16025 2008-06-21 Seiji Zenitani <zenitani@mac.com>
16026 Ryo Yoshitake <ryo@shiftmode.net>
16027
16028 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
16029
16030 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
16031
16032 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
16033 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
16034 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
16035 (witness-emacs): Remove.
16036 (lisp, shortlisp): Move loaddefs.el earlier.
16037 (mostlyclean): Forget about witness-emacs.
16038
16039 2008-06-22 Glenn Morris <rgm@gnu.org>
16040
16041 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
16042 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
16043
16044 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
16045
16046 * Makefile.in (PRECOMP): Remove.
16047 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
16048 (witness-emacs): Run `compile-first'.
16049 (.el.elc): Use the new compile-onefile target.
16050
16051 2008-06-21 Kenichi Handa <handa@m17n.org>
16052
16053 * xftfont.c (xftfont_open): Handle QCembolden only when
16054 FC_EMBOLDEN is defined.
16055
16056 2008-06-21 Andreas Schwab <schwab@suse.de>
16057
16058 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
16059 (.el.elc): Likewise.
16060
16061 2008-06-21 Miles Bader <miles@gnu.org>
16062
16063 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
16064 build dir, not the lisp source dir.
16065
16066 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
16067
16068 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
16069 (bootstrapclean): Remove.
16070 (.el.elc): New rule.
16071 (PRECOMP): New var.
16072 (../lisp/subdirs.el): Remove.
16073 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
16074 (witness-emacs): New target.
16075 (mostlyclean): Remove witness-emacs as well.
16076 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
16077 Add witness-emacs dependency.
16078
16079 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
16080
16081 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
16082 defined by the font.
16083
16084 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
16085
16086 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
16087 (bootstrap-clean): New target that keeps TAGS around.
16088 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
16089 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
16090
16091 2008-06-20 Jason Rumney <jasonr@gnu.org>
16092
16093 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
16094 Remove obsolete font code.
16095
16096 * w32font.c (font_matches_spec): Use csb bitfield from font signature
16097 to determine language support.
16098
16099 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
16100
16101 * sysdep.c (cfsetspeed): New fun extracted from the code.
16102 (cfmakeraw): Move before first use.
16103
16104 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
16105
16106 * sysdep.c (cfmakeraw): Provide fallback implementation.
16107 (serial_configure): Provide fallback implementation of cfsetspeed.
16108
16109 2008-06-20 Kenichi Handa <handa@m17n.org>
16110
16111 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
16112 the pattern.
16113
16114 * fontset.c (fontset_from_font): Copy font_spec before changing
16115 the elements.
16116
16117 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
16118
16119 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
16120
16121 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
16122 for explicit `font' parameters.
16123
16124 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
16125
16126 2008-06-19 Kenichi Handa <handa@m17n.org>
16127
16128 * frame.c: Include <ctype.h>.
16129 (x_set_font_backend): Allow spacing characters in the X resource
16130 for FontBackend.
16131
16132 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
16133
16134 * w32fns.c, xfns.c (Qfont_param): New var.
16135 (syms_of_w32fns): Initialize it.
16136 (x_default_font_parameter): Record explicit `font' into
16137 `font-parameter'.
16138
16139 2008-06-18 Kenichi Handa <handa@m17n.org>
16140
16141 * font.c (font_parse_xlfd): Fix previous change.
16142 (font_parse_fcname): Don't use :fc-unknown-spec.
16143 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
16144 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
16145 (font_add_log): Prepend the driver name to the resulting fonts.
16146
16147 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
16148 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
16149 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
16150
16151 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
16152 (QCembolden): New variables.
16153 (syms_of_xftfont): DEFSYM them.
16154 (xftfont_open): Call XftFontMatch. Don't trust the result of
16155 XftTextExtents8 if the pixel_size is less than 5.
16156
16157 2008-06-18 Andreas Schwab <schwab@suse.de>
16158
16159 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
16160 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
16161
16162 2008-06-18 Jason Rumney <jasonr@gnu.org>
16163
16164 * w32font.c (w32font_list, w32font_match): Add logging.
16165
16166 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
16167
16168 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
16169
16170 * font.c (font_parse_fcname): Store divider characters for
16171 unknown-spec list. For known key symbols, intern using correct
16172 symbol name.
16173
16174 2008-06-17 Kenichi Handa <handa@m17n.org>
16175
16176 * xfaces.c (realize_default_face): If the frame is not on window
16177 system, set the fontset of face to nil.
16178
16179 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
16180
16181 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
16182
16183 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
16184
16185 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
16186 (build_font_name_from_vector): Delete externs.
16187
16188 * xfaces.c (struct font_name): Don't declare.
16189
16190 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
16191
16192 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
16193
16194 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
16195
16196 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
16197
16198 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
16199
16200 * font.c (Ffont_spec): Fix usage in docstring.
16201 (Ffont_face_attributes): Doc fix.
16202
16203 2008-06-16 Andreas Schwab <schwab@suse.de>
16204
16205 * font.c (Ffont_face_attributes): Fix definition.
16206
16207 2008-06-16 Jason Rumney <jasonr@gnu.org>
16208
16209 * font.h (font_style_symbolic_from_value): Remove.
16210
16211 * font.c (font_style_symbolic_from_value): Remove.
16212 (font_style_symbolic): Revert to pre 2008-06-13 version.
16213
16214 * w32font.c (w32_to_fc_weight): New function.
16215 (w32font_full_name, logfont_to_fcname): Use it.
16216
16217 2008-06-16 Kenichi Handa <handa@m17n.org>
16218
16219 * font.c (font_check_object): Delete it.
16220 (font_clear_cache): Check if a font-object is alive.
16221 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
16222 font-object to nil.
16223 (font_close_object): Don't check FONT_CLOSE_OBJECT.
16224 (font_at): Don't call font_check_object.
16225 (Ffont_get): Return a symbol for :weight, :slant, and :width.
16226
16227 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
16228
16229 * puresize.h (BASE_PURESIZE): Increase to 1230000.
16230
16231 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
16232
16233 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
16234
16235 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
16236
16237 * font.c (font_parse_fcname): Only one decimal point.
16238 (font_unparse_fcname): Handle data in family and foundry indices
16239 as symbols, not strings.
16240 (font_unparse_gtkname, Ffont_face_attributes): New functions.
16241
16242 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
16243
16244 * font.h (font_unparse_gtkname): Add prototype.
16245
16246 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
16247
16248 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
16249
16250 2008-06-15 Andreas Schwab <schwab@suse.de>
16251
16252 * font.c (font_update_drivers): Fix crash when no drivers match.
16253
16254 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
16255
16256 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
16257 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
16258
16259 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
16260
16261 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
16262
16263 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
16264
16265 * process.c (Fserial_process_configure, Fprocess_send_eof):
16266 Use EQ to compare Lisp_Objects.
16267
16268 2008-06-13 Jason Rumney <jasonr@gnu.org>
16269
16270 * w32fns.c (Fw32_select_font): Remove old font API function.
16271
16272 * w32font.c (logfont_to_fcname): New function.
16273 (Fx_select_font): New font dialog function compatible with
16274 GTK/fontconfig version.
16275
16276 * font.c (font_style_symbolic_from_value): New function.
16277 (font_style_symbolic): Use it.
16278
16279 * font.h (font_style_symbolic_from_value): Declare new function.
16280
16281 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
16282
16283 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
16284 <font-width-table>: Fix typos in docstrings.
16285
16286 2008-06-13 Daniel Engeler <engeler@gmail.com>
16287
16288 These changes add serial port access.
16289 * process.c: Add HAVE_SERIAL.
16290 (Fdelete_process, Fprocess_status, Fset_process_buffer)
16291 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
16292 (list_processes_1, select_wrapper, Fstop_process)
16293 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
16294 (status_notify): Modify to handle serial processes.
16295 [HAVE_SERIAL] (Fserial_process_configure)
16296 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
16297 New functions.
16298 * process.h (struct Lisp_Process): Add `type'.
16299 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
16300 New functions.
16301 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
16302 serial ports.
16303 (serial_open, serial_configure): New functions.
16304 * w32.h: Add FILE_SERIAL.
16305 (struct _child_process): Add ovl_read, ovl_write.
16306
16307 2008-06-13 Kenichi Handa <handa@m17n.org>
16308
16309 * dispextern.h (enum lface_attribute_index): New member
16310 LFACE_FOUNDRY_INDEX.
16311
16312 * font.c (font_score): Delete arg alternate_families. Check only
16313 weight, slant, width, and size. Ignore the difference of alias
16314 style symbols.
16315 (font_sort_entites): Adjust for the above change. Reflect the
16316 order of font-driver to scores.
16317 (font_list_entities): Don't check alternate_familes here.
16318 (font_clear_prop): Handle foundry.
16319 (font_update_lface): Don't parse "foundry-family" form here.
16320 Handle FONT_FOUNDRY_INDEX.
16321 (font_find_for_lface): Likewise. Handle alternate families here.
16322 If registry is nil, try iso8859-1 and ascii-0.
16323 (font_open_for_lface): Pay attention to size in ENTITY.
16324 (font_open_by_name): Simplify by calling font_load_for_lface.
16325 (free_font_driver_list): Delete it.
16326 (font_update_drivers): Preserve the order of backends.
16327 (syms_of_font): Setting of sort_shift_bits adjusted for the change
16328 of font_score and font_sort_entites.
16329 (font_update_sort_order): Likewise.
16330
16331 * xfaces.c (LFACE_FOUNDRY): New macro.
16332 (check_lface_attrs): Check foundry.
16333 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
16334 (merge_face_vectors): Check foundry.
16335 (merge_face_ref): Likewise.
16336 (Finternal_set_lisp_face_attribute): Likewise.
16337 (x_update_menu_appearance): Likewise.
16338 (Finternal_get_lisp_face_attribute): Likewise.
16339 (lface_hash): Likewise.
16340 (lface_same_font_attributes_p): Likewise.
16341 (x_supports_face_attributes_p): Likewise.
16342 (tty_supports_face_attributes_p): Likewise.
16343 (Finternal_set_alternative_font_family_alist): Intern strings.
16344 (Finternal_set_alternative_font_registry_alist): Downcase strings.
16345 (realize_default_face): Set LFACE_FOUNDRY (lface).
16346
16347 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
16348 font-driver at first.
16349
16350 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
16351
16352 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
16353
16354 * lread.c (Fload): Use xfree, not free on saved_doc_string.
16355
16356 2008-06-12 Jim Meyering <meyering@redhat.com>
16357
16358 Make unexec_free handle NULL the same way free does.
16359 * unexmacosx.c (unexec_free): Ignore a NULL argument.
16360
16361 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
16362
16363 * character.h (CHAR_TO_BYTE_SAFE): New macro.
16364 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
16365 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
16366 (WEAK_ALIAS): Simplify.
16367 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
16368 when searching a unibyte buffer.
16369
16370 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
16371
16372 * xfns.c (Fx_select_font): Rename from x-font-dialog.
16373
16374 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
16375
16376 * w32font.c: Include ctype.h.
16377
16378 2008-06-11 Jason Rumney <jasonr@gnu.org>
16379
16380 * w32font.c (w32font_encode_char): Detect missing glyphs that are
16381 misreported as space.
16382 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
16383 as aliases for registry iso10646-1.
16384
16385 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
16386
16387 * buffer.c (clone_per_buffer_values): Skip `name'.
16388
16389 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
16390
16391 * font.c (font_parse_fcname): Fix last change; accept decimal
16392 points in font size.
16393
16394 2008-06-10 Jason Rumney <jasonr@gnu.org>
16395
16396 * w32uniscribe.c (add_opentype_font_name_to_list):
16397 Skip non unicode fonts.
16398
16399 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
16400
16401 * xfns.c (Fx_font_dialog): New function.
16402
16403 * gtkutil.c (xg_dialog_response_cb): Rename from
16404 xg_file_response_callback.
16405 (pop_down_dialog): Rename from pop_down_file_dialog.
16406 (xg_get_file_name): Callers changed.
16407 (xg_get_font_name): New function.
16408
16409 * gtkutil.h (xg_get_font_name): Insert prototype.
16410
16411 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
16412
16413 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
16414 x_underline_minimum_display_offset.
16415 (syms_of_xdisp): Declare it here rather than in xterm.c.
16416 * dispextern.h (underline_minimum_offset): Declare it.
16417 * w32term.c (x_draw_glyph_string): Use it.
16418 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
16419 (syms_of_xterm): Don't declare it any more.
16420 (x_draw_glyph_string): Adjust to the new name.
16421
16422 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
16423
16424 * xterm.c (x_underline_minimum_display_offset): New var.
16425 (x_draw_glyph_string): Use it.
16426 (syms_of_xterm): Declare it.
16427
16428 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
16429
16430 * font.c (font_parse_fcname): Accept GTK-style font names too.
16431
16432 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
16433
16434 * dired.c (file_name_completion): Don't return t if the match is exact
16435 but with different capitalization.
16436 * minibuf.c (Ftry_completion): Simplify.
16437
16438 * window.c (Vwindow_point_insertion_type): New var.
16439 (set_window_buffer): Use it.
16440 (syms_of_window): Init and export it to Lisp.
16441
16442 2008-06-10 Kenichi Handa <handa@m17n.org>
16443
16444 * font.h (font_intern_prop): Prototype adjusted.
16445
16446 * font.c (font_intern_prop): New arg force_symbol.
16447 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
16448 Adjust for the change of font_intern_prop.
16449
16450 * ftfont.c (ftfont_pattern_entity):
16451 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
16452 (w32_registry):
16453 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
16454 the change of font_intern_prop.
16455
16456 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
16457
16458 * w32menu.c (digest_single_submenu): Declare extern.
16459
16460 2008-06-09 Jason Rumney <jasonr@gnu.org>
16461
16462 * w32term.c (x_make_frame_visible): Use alternate restore flags.
16463
16464 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
16465 (parse_single_submenu): Remove.
16466 (digest_single_submenu): Remove.
16467 (syms_of_w32menu): Don't initialise variables that have moved
16468 to menu.c.
16469 (set_frame_menubar): Sync with version in xmenu.c.
16470 (w32_menu_show): Sync with xmenu_show in xmenu.c.
16471
16472 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
16473 Make static again.
16474
16475 2008-06-09 Jason Rumney <jasonr@gnu.org>
16476
16477 Changes to w32 files related to the move of common menu code
16478 to menu.c on 2008-06-08 by Chong Yidong.
16479
16480 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
16481 defs to w32gui.h.
16482 (single_keymap_panes, push_menu_item, push_menu_pane):
16483 Make globally visible.
16484
16485 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
16486 (local_free, malloc_widget_value, free_widget_value)
16487 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
16488 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
16489 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
16490 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
16491 (menu_items, menu_items_allocated, menu_items_used)
16492 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
16493 (init_menu_items, finish_menu_items, discard_menu_items)
16494 (grow_menu_items, push_submenu_start, push_submenu_end)
16495 (push_left_right_boundary, push_menu_pane, push_menu_item)
16496 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
16497 (free_menubar_widget_tree_value, parse_single_submenu)
16498 (update_submenu_strings): Remove functions.
16499 (xmalloc_widget_value): Remove and declare extern.
16500
16501 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
16502 (OBJ1): Build it.
16503
16504 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
16505 (local_heap, local_alloc, local_free, malloc_widget_value)
16506 (free_widget_value): Define here.
16507
16508 2008-06-09 Kenichi Handa <handa@m17n.org>
16509
16510 * font.h (Qascii_0): Extern it.
16511
16512 * font.c (Qascii_0): New variable.
16513 (syms_of_font): DEFSYM it.
16514 (font_open_by_name): If the registry "iso8859-1" fails, try also
16515 "ascii-0".
16516
16517 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
16518
16519 2008-06-08 Kenichi Handa <handa@m17n.org>
16520
16521 * .gdbinit (xfont): New command.
16522
16523 2008-06-08 Andreas Schwab <schwab@suse.de>
16524
16525 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
16526 * Makefile.in (menu.o): Update dependencies.
16527
16528 * Makefile.in (obj): Always add menu.o.
16529 * emacs.c (main): Always call syms_of_menu.
16530 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
16531
16532 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
16533
16534 * Makefile.in: Compile menu.c.
16535
16536 * lisp.h: Declare syms_of_menu.
16537
16538 * emacs.c (main): Call syms_of_menu.
16539
16540 * keyboard.h: Relocate platform-independent menu definitions from
16541 xmenu.c.
16542
16543 * menu.c: New file. Relocate platform-independent menu
16544 definitions from xmenu.c. Suggested by Adrian Robert.
16545
16546 * xmenu.c: Remove platform-independent menu definitions.
16547 (menu_items, menu_items_inuse, menu_items_allocated)
16548 (menu_items_used, menu_items_n_panes)
16549 (menu_items_submenu_depth): Move to keyboard.h.
16550 (init_menu_items, finish_menu_items, unuse_menu_items)
16551 (discard_menu_items, restore_menu_items, save_menu_items)
16552 (grow_menu_items, push_submenu_start, push_submenu_end)
16553 (push_left_right_boundary, push_menu_pane, push_menu_item)
16554 (keymap_panes, single_keymap_panes, single_menu_item)
16555 (list_of_panes, list_of_items, find_and_call_menu_selection)
16556 (xmalloc_widget_value, free_menubar_widget_value_tree)
16557 (parse_single_submenu, digest_single_submenu)
16558 (update_submenu_strings): Move to menu.c.
16559
16560 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
16561
16562 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
16563
16564 2008-06-06 Miles Bader <miles@gnu.org>
16565
16566 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
16567 face, not frame default.
16568
16569 2008-06-05 Martin Rudalics <rudalics@gmx.at>
16570
16571 * window.c (pop_up_windows, pop_up_frames)
16572 (display_buffer_reuse_frames, Vpop_up_frame_function)
16573 (Vdisplay_buffer_function, Veven_window_heights)
16574 (Vspecial_display_buffer_names, Vspecial_display_regexps)
16575 (Vspecial_display_function, Vsame_window_buffer_names)
16576 (Vsame_window_regexps, split_height_threshold)
16577 (Vsplit_window_preferred_function): Move those vars to window.el.
16578 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
16579 (Fdisplay_buffer): Move those functions to window.el.
16580 (syms_of_window): Remove corresponding declarations.
16581 (display_buffer): New function.
16582 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
16583 * dispnew.c (Flast_nonminibuf_frame): New function.
16584 * buffer.c (Fpop_to_buffer): Move to window.el.
16585
16586 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
16587
16588 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
16589
16590 2008-06-05 Kenichi Handa <handa@m17n.org>
16591
16592 * coding.c (detect_coding): Fix previous change.
16593 (detect_coding_system): Likewise.
16594
16595 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
16596
16597 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
16598
16599 * keymap.c (Vminibuffer_local_filename_must_match_map):
16600 Rename from Vminibuffer_local_must_match_filename_map.
16601 (syms_of_keymap):
16602 * minibuf.c (Fcompleting_read): Adjust accordingly.
16603 * commands.h: Rename declaration as well.
16604
16605 2008-06-05 Kenichi Handa <handa@m17n.org>
16606
16607 * font.c (Ffont_spec): Don't use font_parse_family_registry for
16608 family name.
16609 (Ffont_put): Likewise.
16610
16611 * fontset.c (fontset_find_font): Call font_open_for_lface with the
16612 current font-spec.
16613
16614 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
16615 is unspecified.
16616
16617 * xfaces.c (realize_x_face): If the font-related face attributes
16618 are the same as those of default face, realize a new fontset from
16619 default->fontset.
16620 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
16621
16622 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
16623
16624 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
16625 (move_it_in_display_line): New wrapper.
16626
16627 * window.c (window_scroll_pixel_based_preserve_x)
16628 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
16629 (window_scroll_pixel_based, window_scroll_line_based):
16630 Use them to preserve column positions.
16631 (syms_of_window): Initialize them.
16632
16633 * indent.c (Fvertical_motion): Extend first arg to allow passing an
16634 (HPOS . VPOS) pair.
16635
16636 * dispextern.h (move_it_in_display_line): Declare.
16637
16638 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
16639
16640 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
16641 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
16642 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
16643
16644 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
16645
16646 * window.c (Fset_window_parameter): Doc fix.
16647 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
16648
16649 2008-06-04 Joakim Verona <joakim@verona.se>
16650
16651 * window.h (struct window): Add new member window_parameters.
16652
16653 * window.c (Fwindow_parameters, Fwindow_parameter)
16654 (Fset_window_parameter): New defuns.
16655 (syms_of_window): Defsubr the new defuns.
16656 (make_window): Initialize window_parameters to nil.
16657
16658 2008-06-04 John Paul Wallington <jpw@pobox.com>
16659
16660 * eval.c (Fdefmacro): Doc fix.
16661
16662 2008-06-04 Kenichi Handa <handa@m17n.org>
16663
16664 * coding.c (detect_coding): Fix handling of coding->head_ascii.
16665 Be sure to call setup_coding_system when we find a proper coding system.
16666 (detect_coding_system): Fix handling of coding->head_ascii.
16667
16668 2008-06-03 Andreas Schwab <schwab@suse.de>
16669
16670 * font.c (font_prop_validate_spacing): Fix last change.
16671
16672 2008-06-03 Kenichi Handa <handa@m17n.org>
16673
16674 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
16675 (font_parse_fcname): Fix handling of unknown key.
16676
16677 * xfont.c (xfont_list): Try an alias.
16678
16679 * charset.c (char_charset): Return NULL if the arg charset_list is
16680 specified and C doesn't belong to any of them.
16681
16682 2008-06-02 Chip Coldwell <coldwell@redhat.com>
16683
16684 * font.c (font_pixel_size): Don't take cdr of an integer.
16685
16686 2008-06-02 Jim Meyering <meyering@redhat.com>
16687
16688 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
16689 * alloc.c (xfree): Return right away for a NULL arg.
16690 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
16691 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
16692 * mac.c (create_apple_event_from_event_ref): Likewise.
16693 (create_apple_event_from_drag_ref, cfstring_create_normalized):
16694 Likewise.
16695 * doprnt.c (doprnt1): Likewise.
16696 * frame.c (frame): Likewise.
16697 * keyboard.c (wipe_kboard): Likewise.
16698 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
16699 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
16700 * term.c (tty_default_color_capabilities, maybe_fatal)
16701 (delete_tty): Likewise.
16702 * w16select.c (string): Likewise.
16703 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
16704 * w32bdf.c (w32_free_bdf_font): Likewise.
16705 * w32fns.c (w32_unload_font): Likewise.
16706 * w32font.c (w32font_close): Likewise.
16707 * window.c (size_window): Likewise.
16708 * xselect.c (receive_incremental_selection): Likewise.
16709 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
16710 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
16711 * w32.c (stat): Likewise.
16712
16713 Remove useless if-before-free tests.
16714 * editfns.c (Fset_time_zone_rule): Likewise.
16715 * lread.c (nosuffix): Likewise.
16716 * ralloc.c (get_bloc): Likewise.
16717 * regex.c (reg_free): Likewise.
16718 * xftfont.c (xftfont_open, xftfont_close): Likewise.
16719 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
16720 * xsmfns.c (smc_save_yourself_CB): Likewise.
16721
16722 2008-06-02 Kenichi Handa <handa@m17n.org>
16723
16724 * font.c (font_find_for_lface): Handle float font size.
16725 (font_open_for_lface): Likewise.
16726
16727 * xfaces.c (x_supports_face_attributes_p): Check face->font before
16728 comparing the properties.
16729
16730 2008-06-01 Jason Rumney <jasonr@gnu.org>
16731
16732 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
16733 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
16734 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
16735 Don't add empty script list.
16736 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
16737
16738 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
16739
16740 * Makefile.in (dot, dotdot): Remove, update users.
16741 ".." has been used elsewhere in the file for a long time.
16742 (LIBXT_STATIC): Remove conditional based on unused variable.
16743
16744 2008-06-01 Miles Bader <miles@gnu.org>
16745
16746 * xfaces.c (Vface_remapping_alist): New variable.
16747 (syms_of_xfaces): Initialize it.
16748 (enum named_merge_point_kind): New type.
16749 (struct named_merge_point): Add `named_merge_point_kind' field.
16750 (push_named_merge_point): Make cycle detection respect different
16751 named-merge-point kinds.
16752 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
16753 Remove face-name alias resolution.
16754 (lface_from_face_name): New definition using
16755 `lface_from_face_name_no_resolve'.
16756 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
16757 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
16758 (get_lface_attributes): New definition that layers face-remapping on
16759 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
16760 (lookup_basic_face): New function.
16761 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
16762 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
16763 `get_lface_attributes'.
16764 (face_at_buffer_position): Use `lookup_basic_face' to lookup
16765 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
16766 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
16767
16768 * xdisp.c (init_iterator): Pass base_face_id through
16769 `lookup_basic_face' when we actually use it as a face-id.
16770 (handle_single_display_prop): Use `lookup_basic_face' to lookup
16771 DEFAULT_FACE_ID.
16772
16773 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
16774 lookup the initial face-id.
16775
16776 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
16777
16778 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
16779
16780 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
16781 (Fremove_text_properties): Fix typos in docstrings.
16782
16783 2008-05-31 Kenichi Handa <handa@m17n.org>
16784
16785 * font.c (font_list_entities): Fix the car part of data to be
16786 stored in the cache.
16787
16788 * ftfont.c (ftfont_font_format): Don't use strcasestr.
16789
16790 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
16791
16792 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
16793 Add a `test' argument so another predicate than `equal' can be used.
16794 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
16795 (map_char_table): Remove unused vars `c' and `i'.
16796 * lisp.h (Foptimize_char_table): Adjust declaration.
16797 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
16798
16799 2008-05-30 Kenichi Handa <handa@m17n.org>
16800
16801 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
16802 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
16803 defined.
16804
16805 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
16806
16807 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
16808 (Fmake_variable_frame_local): Disallow mixing buffer-local and
16809 frame-local settings for the same variable.
16810
16811 2008-05-30 Kenichi Handa <handa@m17n.org>
16812
16813 * fontset.c (Ffont_info): Move to font.c.
16814 (syms_of_fontset): Delete defsubr of Sfont_info.
16815
16816 * font.c (font_style_to_value, font_score): Delete casting of the
16817 args to xstcasecmp.
16818 (register_font_driver): Increment num_font_drivers only when
16819 registering the driver globally.
16820 (Ffont_info): Move from fontset.c. Handle a font object too.
16821 (syms_of_font): Defsubr Sfont_info.
16822
16823 2008-05-29 Kenichi Handa <handa@m17n.org>
16824
16825 * coding.h (enum define_coding_utf8_arg_index): New enum.
16826 (enum coding_attr_index): Change coding_attr_utf_16_bom to
16827 coding_attr_utf_bom.
16828 (enum utf_bom_type): Rename from utf_16_bom_type.
16829 (struct utf_16_spec): Adjust for the above change.
16830 (struct coding_system): Add utf_8_bom in `spec' union.
16831
16832 * coding.c (CODING_UTF_8_BOM): New macro.
16833 (enum coding_category): Delete coding_category_utf_8, add
16834 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
16835 coding_category_utf_8_sig.
16836 (CATEGORY_MASK_UTF_8): Delete it.
16837 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
16838 (CATEGORY_MASK_UTF_8_SIG): New macros.
16839 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
16840 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
16841 CATEGORY_MASK_UTF_8_SIG.
16842 (CATEGORY_MASK_UTF_8): New macro.
16843 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
16844 (detect_coding_utf_8): Check BOM.
16845 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
16846 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
16847 (encode_coding_utf_16): Likewise.
16848 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
16849 (detect_coding, detect_coding_system): Handle utf-8-auto.
16850 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
16851 (syms_of_coding): Fix setting up of Vcoding_category_table.
16852
16853 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
16854
16855 * process.c (Faccept_process_output): If `millisec' is non-nil,
16856 `seconds' default to 0.
16857 (wait_reading_process_output): Also return non-nil if we read output
16858 from a non-running process.
16859
16860 2008-05-29 Jason Rumney <jasonr@gnu.org>
16861
16862 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
16863 `raster' specified.
16864 (add_font_entity_to_list): Allow non-opentype truetype fonts back
16865 in the uniscribe backend, but disallow any font that has no
16866 unicode subrange support.
16867
16868 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
16869
16870 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
16871 Fix typos in docstrings.
16872
16873 2008-05-29 Kenichi Handa <handa@m17n.org>
16874
16875 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
16876 (Fx_family_fonts): Set frame correctly.
16877
16878 2008-05-28 Jason Rumney <jasonr@gnu.org>
16879
16880 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
16881
16882 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
16883
16884 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
16885 calling build_annotations.
16886
16887 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
16888
16889 * coding.c (Fdecode_coding_region, Fencode_coding_region)
16890 (Fencode_coding_string):
16891 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
16892 <latin-extra-code-table>: Fix typos in docstrings.
16893 (syms_of_coding) <coding-system-alist>: Doc fix.
16894 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
16895
16896 2008-05-28 Kenichi Handa <handa@m17n.org>
16897
16898 * fontset.c (Ffont_info): Don't call font_close_object.
16899
16900 * font.c (font_parse_family_registry): Use Ffont_put to validate
16901 foundry and family.
16902 (font_delete_unmatched): Don't check spacing.
16903 (font_list_entities): Add spacing to the spec to list fonts.
16904
16905 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
16906 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
16907
16908 * coding.c (encode_coding_raw_text): Fix previous change.
16909 (encode_coding_object): When the dst_object is a buffer and is
16910 different from src_object, move gap to PT.
16911
16912 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
16913
16914 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
16915
16916 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
16917
16918 * coding.c (encode_coding_raw_text): Set coding->produced_char for
16919 all branches. Compute it differently.
16920
16921 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
16922
16923 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
16924
16925 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
16926 into "else if () ... else ...".
16927
16928 2008-05-27 Jason Rumney <jasonr@gnu.org>
16929
16930 * w32font.c (w32font_open_internal): Determine if glyph indices
16931 are likely to work here.
16932
16933 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
16934
16935 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
16936 draw overlap glyphs with appropriate highlighting.
16937
16938 2008-05-27 Kenichi Handa <handa@m17n.org>
16939
16940 * xfont.c (xfont_open): Fix calculation of font->average_width.
16941
16942 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
16943
16944 * casefiddle.c (casify_object): Try to guess better whether the
16945 argument is a byte or a char.
16946
16947 2008-05-26 Andreas Schwab <schwab@suse.de>
16948
16949 * xselect.c (x_reply_selection_request): Properly handle format == 32.
16950 Always send multiples of format size.
16951
16952 * xterm.c (x_set_frame_alpha): Fix type mismatch.
16953
16954 2008-05-26 Jason Rumney <jasonr@gnu.org>
16955
16956 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
16957 (compute_metrics): Don't set failure if we just cleared the cache.
16958 (w32_weight_table): Remove unused variable.
16959 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
16960 backwards compatibility.
16961
16962 2008-05-25 Kenichi Handa <handa@m17n.org>
16963
16964 * w32term.c (x_draw_glyph_string):
16965 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
16966
16967 * xfaces.c: Delete unused function prototypes.
16968 (xstrlwr, font_frame): Delete them.
16969 (clear_face_cache): Delete unused variable.
16970
16971 * xftfont.c (xftfont_open): Delete unused variable.
16972 If underline_thickness is not 1, adjust underline_position.
16973
16974 * ftxfont.c (ftxfont_open): Delete unused variable.
16975
16976 * fontset.c (face_for_char): Optimize for the case of no charset
16977 property.
16978
16979 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
16980 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
16981 (otf_open, font_otf_capability, generate_otf_features)
16982 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
16983 Comment out by surrounding "#if 0" and "#endif" for the moment.
16984 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
16985 (syms_of_font): Codes for accessing above commented out.
16986
16987 2008-05-24 Eli Zaretskii <eliz@gnu.org>
16988
16989 * w32proc.c: Include dispextern.h.
16990
16991 * w32.c: Include dispextern.h.
16992
16993 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
16994
16995 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
16996 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
16997 Fix typos in docstrings.
16998
16999 2008-05-23 Jason Rumney <jasonr@gnu.org>
17000
17001 * xsmfns.c: Remove includes that are already included by config.h.
17002
17003 2008-05-23 Kenichi Handa <handa@m17n.org>
17004
17005 * charset.c (Qemacs, charset_emacs): New variables.
17006 (char_charset): Fix for non-Unicode characters.
17007 (syms_of_charset): Define charset_emacs.
17008
17009 * w32term.c (x_draw_glyph_string): Be sure to update
17010 s->underline_thickness and s->underline_position. Be sure to draw
17011 underline within the current line area.
17012
17013 * xterm.c (x_draw_glyph_string): Be sure to update
17014 s->underline_thickness and s->underline_position. Be sure to draw
17015 underline within the current line area.
17016
17017 * fontset.c: Delete unused variables and add casting for char *
17018 throughout the file.
17019 (fontset_font): Try the fallback fonts of the current fontset
17020 before consulting the default fontset.
17021
17022 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
17023
17024 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
17025
17026 2008-05-22 Jason Rumney <jasonr@gnu.org>
17027
17028 * font.c: Don't include strings.h.
17029
17030 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
17031
17032 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
17033 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
17034 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
17035 to call xstrcasecmp.
17036
17037 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
17038
17039 * fontset.c (fs_query_fontset): Use xstrcasecmp.
17040
17041 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
17042
17043 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
17044
17045 2008-05-22 Kenichi Handa <handa@m17n.org>
17046
17047 * puresize.h (BASE_PURESIZE): Increase to 1220000.
17048
17049 * font.c (font_prop_validate_style): Adjust for the format
17050 change of font_style_table.
17051
17052 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
17053 two args.
17054
17055 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
17056 two args.
17057
17058 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
17059
17060 * minibuf.c (keys_of_minibuf): Delete.
17061 * lisp.h (keys_of_minibuf): Delete.
17062 * emacs.c (main): Don't call keys_of_minibuf.
17063
17064 2008-05-22 Kenichi Handa <handa@m17n.org>
17065
17066 * ftfont.c (ftfont_resolve_generic_family): Rename from
17067 ftfont_list_generic_family. Return a single family for each
17068 generic family.
17069 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
17070 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
17071 Call font_add_log.
17072 (ftfont_match): Call font_add_log.
17073
17074 * font.h (Ffont_xlfd_name): EXFUN adjusted.
17075 (FONT_DEBUG): Define it.
17076 (font_add_log): Extern it.
17077 (font_assert): Rename from xassert.
17078
17079 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
17080 (xfont_list_family): Call font_add_log.
17081 (xfont_match): Likewise.
17082 (memq_no_quit): Delete.
17083
17084 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
17085 call of Ffont_xlfd_name.
17086
17087 * xfaces.c (struct table_entry, slant_table, weight_table)
17088 (swidth_table): Move to font.c.
17089
17090 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
17091 xassert are changed to font_assert. Delete many unused variables.
17092 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
17093 New variables.
17094 (struct table_entry): Move from xfaces.c and modified.
17095 (weight_table, slant_table, width_table): Move from xfaces.c and
17096 contents adjusted for the change of struct table_entry.
17097 (font_style_to_value, font_style_symbolic): Adjust for the
17098 format change of font_style_table.
17099 (font_parse_family_registry): Don't overwrite existing foundry and
17100 family of font_spec.
17101 (font_score): Fix calculation of diff for sizes.
17102 (font_sort_entites): Call font_add_log.
17103 (font_delete_unmatched): Return a newly created list.
17104 (font_list_entities): Fix previous change. Call font_add_log.
17105 (font_matching_entity, font_open_entity, font_close_entity):
17106 Call font_add_log.
17107 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
17108 (Finternal_set_font_style_table): Delete.
17109 (BUILD_STYLE_TABLE): New macro.
17110 (build_style_table): New function.
17111 (Vfont_log, font_log_env_checked): New variables.
17112 (font_add_log): New function.
17113 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
17114 Declare Lisp variables "font-weight-table", "font-slant-table",
17115 "font-width-table", and "font-log". Initialize font_style_table.
17116
17117 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
17118
17119 * xterm.c (x_set_frame_alpha): Move declarations before statements.
17120
17121 2008-05-21 Seiji Zenitani <zenitani@mac.com>
17122 Ryo Yoshitake <ryo@shiftmode.net>
17123
17124 * frame.c (Qalpha): Add a new frame parameter `alpha'.
17125 (Vframe_alpha_lower_limit): New variable.
17126 (x_set_alpha): New function.
17127
17128 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
17129
17130 * xfns.c (x-create-frame, Qalpha):
17131 Initialize the frame parameter `alpha'.
17132 * xterm.c (OPAQUE, OPACITY): New.
17133 (x_set_frame_alpha): New function.
17134 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
17135
17136 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
17137 * w32fns.c (w32_frame_parm_handlers): Likewise.
17138
17139 2008-05-20 Jason Rumney <jasonr@gnu.org>
17140
17141 * w32font.c (add_font_entity_to_list): Don't add non-opentype
17142 truetype fonts to opentype list.
17143
17144 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
17145
17146 * fontset.c (Ffontset_info): Doc fix.
17147 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
17148 <ignore-relative-composition>: Fix typos in docstrings.
17149
17150 * font.c (syms-of-font) <font-encoding-alist>:
17151 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
17152 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
17153 (Ffont_otf_alternates): Doc fixes.
17154
17155 2008-05-20 Kenichi Handa <handa@m17n.org>
17156
17157 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
17158 font.h through out the file.
17159 (FONT_DRIVERS): Rename from FONTOBJ.
17160 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
17161 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
17162
17163 * emacs.c (main): Call syms_of_font unconditionally.
17164
17165 * font.h (find_font_encoding): Extern it.
17166
17167 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
17168 fontset.c.
17169 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
17170 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
17171 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
17172 only when HAVE_WINDOW_SYSTEM is defined.
17173 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
17174 when HAVE_WINDOW_SYSTEM is defined.
17175
17176 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
17177 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
17178
17179 * xfaces.c: Include font.h unconditionally.
17180 (merge_face_ref, merge_face_vectors)
17181 (Finternal_set_lisp_face_attribute): Cancel the previous change.
17182
17183 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
17184
17185 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
17186 indirect_variable.
17187 * eval.c (lisp_indirect_variable): New fun.
17188 (Fuser_variable_p): Use it.
17189
17190 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
17191
17192 * lisp.h (indirect_variable):
17193 * data.c (indirect_variable, let_shadows_buffer_binding_p):
17194 Use Lisp_Symbol pointers rather than Lisp_Object.
17195 Adjust callers.
17196 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
17197 To this end, change calling-convention.
17198
17199 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
17200 if some non-hidden buffers are selected by string&pred.
17201
17202 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
17203
17204 * process.c (wait_reading_process_output): Always check status
17205 when in batch mode.
17206
17207 2008-05-19 Kenichi Handa <handa@m17n.org>
17208
17209 * font.c (font_list_entities): Fix handling of cache.
17210 (font_matching_entity): Likewise.
17211
17212 * ftfont.c (cs_iso8859_1): Delete.
17213 (ft_face_cache): New variable.
17214 (struct ftfont_info): New member fc_charset_idx.
17215 (ftfont_build_basic_charsets): Delete.
17216 (fc_charset_table): New variable.
17217 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
17218 . FC_CHARSET_IDX) as :font-entity property in the font entity.
17219 Callers changed.
17220 (ftfont_lookup_cache, ftfont_get_charset): New functions.
17221 (ftfont_spec_pattern): New argument fc_charset_idx.
17222 Check registry more rigidly. Change callers.
17223 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
17224 change of :font-entity property of the font.
17225
17226 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
17227 property of the font.
17228
17229 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
17230
17231 * coding.c (Fcoding_system_p): Rename argument to match docstring.
17232 (Funencodable_char_position, Fcheck_coding_systems_region)
17233 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
17234 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
17235 (Ffind_operation_coding_system, Fset_coding_system_priority)
17236 (Fcoding_system_eol_type): Doc fixes.
17237
17238 2008-05-17 Glenn Morris <rgm@gnu.org>
17239
17240 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
17241
17242 2008-05-16 Eli Zaretskii <eliz@gnu.org>
17243
17244 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
17245 and st_gid.
17246
17247 * frame.c (Fdelete_frame): Don't call font_update_drivers if
17248 HAVE_WINDOW_SYSTEM is not defined.
17249
17250 * xfaces.c (merge_face_ref, merge_face_vectors)
17251 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
17252 HAVE_WINDOW_SYSTEM is defined.
17253 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
17254
17255 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
17256
17257 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
17258
17259 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17260
17261 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
17262
17263 2008-05-15 Kenichi Handa <handa@m17n.org>
17264
17265 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
17266 preference.
17267
17268 2008-05-15 Glenn Morris <rgm@gnu.org>
17269
17270 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
17271
17272 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
17273
17274 * fns.c (init_fns): Don't initialize weak_hash_tables here.
17275 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
17276
17277 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
17278
17279 2008-05-15 Kenichi Handa <handa@m17n.org>
17280
17281 * ftfont.c (ftfont_list): Downcase family name to check generic
17282 families.
17283
17284 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
17285 font-spec for QCfont value.
17286
17287 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
17288 buffer. Check the return value of it.
17289
17290 2008-05-14 Jason Rumney <jasonr@gnu.org>
17291
17292 * w32term.c (w32_get_glyph_overhangs): Remove.
17293 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
17294
17295 2008-05-14 Kenichi Handa <handa@m17n.org>
17296
17297 * font.c (font_prop_validate): Make nil a valid value.
17298 (font_clear_cache): Check if the cached vector of entities is nil
17299 or not.
17300
17301 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17302
17303 * emacs.c (main_thread): Conditionalize on
17304 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
17305 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
17306
17307 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
17308 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
17309 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
17310
17311 2008-05-14 Kenichi Handa <handa@m17n.org>
17312
17313 * coding.c (detect_coding_iso_2022): Ignore a coding category that
17314 has no corresponding coding system.
17315
17316 2008-05-14 Jason Rumney <jasonr@gnu.org>
17317
17318 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
17319
17320 * w32font.h (w32font_open_internal): Update declaration.
17321
17322 * w32font.c (w32font_open_internal): Change last argument from
17323 w32font_info struct to font object. Fill in font object from
17324 font_entity. Get Outline metrics if possible. Use them to
17325 calculate underline position and thickness. Use xlfd name as name
17326 property. Don't set codepage.
17327 (w32font_open): Pass font_object to w32font_open_internal. Don't
17328 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
17329 (w32font_draw): Use s->font.
17330 (clear_cached_metrics): Don't clear non-existent blocks.
17331
17332 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
17333 font was not found.
17334 (x_draw_glyph_string): Use underline position and thickness from font.
17335
17336 * w32uniscribe.c (uniscribe_open): Pass font_object to
17337 w32font_open_internal.
17338
17339 2008-05-14 Kenichi Handa <handa@m17n.org>
17340
17341 These changes are to delete all legacy font-handling codes, and
17342 make Emacs use only font-backends.
17343
17344 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
17345 (frame.o, image.o, print.o): Depend on $(FONTSRC).
17346
17347 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
17348
17349 * charset.h (Vcharset_non_preferred_head)
17350 (Vcurrent_iso639_language): Extern them.
17351
17352 * charset.c (Vcharset_non_preferred_head): New variable.
17353 (Vcurrent_iso639_language): New variable.
17354 (syms_of_charset): Declare it as a Lisp variable.
17355 (char_charset): Don't check non preferred charsets. As a last
17356 resort, return charset_unicode.
17357 (Fset_charset_priority): Update Vcharset_non_preferred_head.
17358
17359 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
17360 conditionals. Don't check enable_font_backend. Delete all codes
17361 used only when USE_FONT_BACKEND is not defined.
17362
17363 * dispextern.h (struct glyph_string): Change type of `font' to
17364 `struct font *'.
17365 (struct glyph_string): New member underline_position and
17366 underline_thickness.
17367 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
17368 (struct face): Change type of `font' to `struct font *'. Remove
17369 members `font_name', `font_info_id'.
17370 (per_char_metric, encode_char): Delete externs.
17371 (calc_pixel_width_or_height): Adjust the prototype.
17372
17373 * emacs.c (enable_font_backend): Delete extern.
17374 (main): Don't set enable_font_backend. Don't check the command
17375 line argument "-disable-font-backend".
17376
17377 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
17378 (enum font_property_index): New members FONT_DPI_INDEX,
17379 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
17380 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
17381 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
17382 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
17383 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
17384 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
17385 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
17386 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
17387 (struct font_spec, struct font_entity): New structs.
17388 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
17389 (struct font): Many members from old "struct font_info" moved to
17390 here. Members font and entity deleted.
17391 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
17392 the new font-related objects.
17393 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
17394 (CHECK_FONT_GET_OBJECT): Likewise.
17395 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
17396 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
17397 (struct font_driver): New members case_sensitive anc check. Type
17398 of the member list and open changed.
17399 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
17400 (font_symbolic_width, font_find_object, font_get_spec)
17401 (font_set_lface_from_name): Delete extern.
17402 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
17403
17404 * font.c: Include <strings.h>.
17405 (enable_font_backend): Delete it.
17406 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
17407 (CHECK_VALIDATE_FONT_SPEC): Delete it.
17408 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
17409 (null_string): Delete it.
17410 (null_vector): Make it static.
17411 (font_family_alist): Delete it.
17412 (Qnormal): Extern it.
17413 (QCextra, QClanguage): Delete it.
17414 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
17415 (font_make_spec, font_make_entity, font_make_object)
17416 (font_intern_prop): Renamed from intern_downcase. Don't downcase
17417 the string. Callers changed.
17418 (font_pixel_size): Adjusted for the format change of font-related
17419 objects.
17420 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
17421 (font_style_to_value, font_style_symbolic): New function.
17422 (build_font_family_alist): Delete it.
17423 (font_registry_charsets): Use Fassoc_string instead of
17424 assq_no_quit.
17425 (font_prop_validate_symbol): Don't return null_string.
17426 (font_prop_validate_style): Adjusted for the change of
17427 style-related values in a font vector.
17428 (font_property_table): Delete entries for QClanguage and
17429 QCantialias, add entries for QCavgwidth.
17430 (get_font_prop_index): Delete the 2nd argument FROM.
17431 (font_prop_validate): Arguments changed.
17432 (font_put_extra): Adjusted for the change of font-related objects.
17433 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
17434 (font_parse_fcname, font_unparse_fcname)
17435 (font_prepare_composition): Likewise.
17436 (font_parse_family_registry): Renamed from font_merge_old_spec.
17437 (otf_open): Delete the 1st arg entity.
17438 (font_otf_capability): Adjusted for the above change.
17439 (font_score): New arg alternate_families. Adjusted for the change
17440 of font-related objects.
17441 (font_sort_entites): New arg best_only.
17442 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
17443 Delete them.
17444 (font_match_p): Check alternate families.
17445 (font_find_object): Delete it.
17446 (font_check_object): New function.
17447 (font_clear_cache): Adjusted for the change of font-related objects.
17448 (font_delete_unmatched): New arg.
17449 (font_list_entities): Call font_driver->list with a spec that
17450 doesn't specify style-related properties.
17451 (font_matching_entity): Arguments changed. Caller changed.
17452 (font_open_entity): Adjusted for the change of font-related objects.
17453 (font_close_object, font_has_char, font_encode_char)
17454 (font_get_name, font_get_spec): Likewise.
17455 (font_spec_from_name, font_clear_prop, font_update_lface):
17456 New functions.
17457 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
17458 (font_prepare_for_face, font_done_for_face, font_open_by_name)
17459 (font_at): Adjusted for the change of font-related objects.
17460 (font_range): New function.
17461 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
17462 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
17463 (Fcopy_font_spec, Fmerge_font_spec): New function.
17464 (Ffont_family_list): Renamed from list-families.
17465 (Finternal_set_font_style_table): Arguments changed.
17466 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
17467 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
17468 change of font-related objects.
17469 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
17470
17471 * fontset.h (struct font_info): Delete it. Most members go to
17472 struct font.
17473 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
17474 (enum FONT_SPEC_INDEX): Delete it.
17475 (font_info, list_fonts_func, load_font_func, query_font_func)
17476 (set_frame_fontset_func, find_ccl_program_func)
17477 (get_font_repertory_func, new_fontset_from_font_name): Delete
17478 externs.
17479 (fontset_from_font_name): Extern it.
17480 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
17481 (FONT_INFO_FROM_FACE): Deleted.
17482 (face_for_font): Adjust prototype.
17483
17484 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
17485 conditionals. Don't check enable_font_backend. Delete all codes
17486 used only when USE_FONT_BACKEND is not defined.
17487 (get_font_info_func, list_font_func, load_font_func)
17488 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
17489 (get_font_repertory_func): Delete them.
17490 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
17491 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
17492 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
17493 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
17494 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
17495 (fontset_compare_rfontdef): New function.
17496 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
17497 rfont-defs by qsort. Adjusted for the change of font-group vector.
17498 (load_font_get_repertory): Deleted.
17499 (fontset_find_font): Use new macros to ref/set elements of
17500 font-def and rfont-def.
17501 (fontset_font): Fix the timing of remembering that no font for C.
17502 (free_face_fontset): Do nothing if the face has no fontset.
17503 (face_suitable_for_char_p): Use new macros to ref/set elements of
17504 rfont-def.
17505 (face_for_char): Likewise. Call face_for_char with font_object.
17506 (fs_load_font): Delete. Delete #pragma surrounding it.
17507 (fs_query_fontset): Use strcasecmp instead of strcmp.
17508 (generate_ascii_font_name): Adjusted for the format change of
17509 font-spec.
17510 (Fset_fontset_font): Likewise. Use new macros to set elements of
17511 font-def.
17512 (Fnew_fontset): Use font_unparse_xlfd to generate
17513 FONTSET_ASCII (fontset).
17514 (new_fontset_from_font_name): Deleted.
17515 (fontset_from_font): Renamed from new_fontset_from_font. Check if
17516 a fontset is already created for the font. FIx updating of
17517 Vfontset_alias_alist.
17518 (fontset_ascii_font): Deleted.
17519 (Ffont_info): Adjusted for the format change of font-spec.
17520 (Finternal_char_font): Likewise.
17521 (Ffontset_info): Likewise.
17522 (syms_of_fontset): Don't check load_font_func.
17523
17524 * fns.c (internal_equal): Handle PREV_FONT.
17525
17526 * frame.h: Delete USE_FONT_BACKEND conditional.
17527
17528 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
17529 conditionals. Don't check enable_font_backend. Delete all codes
17530 used only when USE_FONT_BACKEND is not defined.
17531 (x_set_font): Call x_new_font, not x_new_fontset2.
17532 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
17533 already set for the frame.
17534
17535 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
17536 a font-entity by font_make_entity. Use font_intern_prop instead
17537 of intern_downcase. Use FONT_SET_STYLE to set a style-related
17538 font property. If a font is scalable, set avgwidth property to 0.
17539 Set font-entity property by font_put_extra.
17540 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
17541 (ffont_driver): Adjusted for the change of struct font_driver.
17542 (ftfont_spec_pattern): New function.
17543 (ftfont_list): Return a list, not vector.
17544 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
17545 (ftfont_list_family): Don't downcase names.
17546 (ftfont_free_entity): Deleted.
17547 (ftfont_open): Return a font-object. Adjusted for the change of
17548 struct font. Get underline_thickness and underline_position from
17549 font property. Don't update dpyinfo->smallest_font_height and
17550 dpyinfo->smallest_char_width.
17551 (ftfont_close): Don't free `struct font'.
17552 (ftfont_has_char): Adjusted for the format change of font-entity.
17553 (ftfont_encode_char, ftfont_text_extents): Likewise.
17554
17555 * ftxfont.c (ftxfont_list): Return a list, not vector.
17556 (ftxfont_open): Return a font-object. Adjusted for the change of
17557 struct font. Get underline_thickness and underline_position from
17558 font property. Don't update dpyinfo->smallest_font_height and
17559 dpyinfo->smallest_char_width.
17560 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
17561 (ftxfont_draw): Adjusted for the change of struct font.
17562
17563 * image.c (image_ascent): Don't include "charset.h". Include
17564 "character.h" and "font.h".
17565
17566 * lisp.h (enum pvec_type): New member PREV_FONT.
17567 (Fassoc_string): EXFUN it.
17568
17569 * print.c: Include font.h.
17570 (print_object): Handle font-related objects.
17571
17572 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
17573 conditionals. Don't check enable_font_backend. Delete all codes
17574 used only when USE_FONT_BACKEND is not defined.
17575 (handle_auto_composed_prop): Do nothing if it->f is not on a
17576 window system. Check how many following characters can be
17577 displayed by the same font.
17578 (calc_pixel_width_or_height): Type of the 4th arg is changed to
17579 'struct font *'.
17580 (get_char_face_and_encoding): Assign the whole encoding task to
17581 the `encode-char' method of a font driver.
17582 (fill_composite_glyph_string): Adjusted for the change of `struct
17583 face' and `struct glyph_string'.
17584 (fill_glyph_string): Likewise.
17585 (get_per_char_metric): Arguments changed.
17586 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
17587 and `struct glyph_string'.
17588 (produce_stretch_glyph, calc_line_height_property)
17589 (x_produce_glyphs): Likewise.
17590
17591 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
17592 conditionals. Don't check enable_font_backend. Delete all codes
17593 used only when USE_FONT_BACKEND is not defined. Use
17594 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
17595 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
17596 (Qp): Extern them.
17597 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
17598 Deleted.
17599 (struct font_name): Deleted.
17600 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
17601 (compare_fonts_by_sort_order): New function.
17602 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
17603 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
17604 Deleted.
17605 (Fx_family_fonts): Use font_list_entities, and sort fonts by
17606 compare_fonts_by_sort_order.
17607 (Fx_font_family_list): Call Ffont_family_list.
17608 (face_numeric_value, face_numeric_weight, face_numeric_slant)
17609 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
17610 (face_symbolic_slant, face_symbolic_swidth)
17611 (split_font_name_into_vector, build_font_name_from_vector)
17612 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
17613 (font_rescale_ratio, split_font_name, build_font_name)
17614 (free_font_names, sort_fonts, x_face_list_fonts)
17615 (face_font_available_p, sorted_font_list, cmp_font_names)
17616 (font_list_1, concat_font_list, font_list, remove_duplicates):
17617 Deleted.
17618 (Fx_list_fonts): Use Ffont_list.
17619 (LFACE_AVGWIDTH): Deleted.
17620 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
17621 by FONTP.
17622 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
17623 (set_lface_from_font_name): Delete it.
17624 (set_lface_from_font): Renamed from
17625 set_lface_from_font_and_fontset. Caller changed. Don't set
17626 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
17627 for face.
17628 (merge_face_vectors): Copy font-spec if necessary.
17629 Clear properties of the font-spec if necessary.
17630 (merge_face_ref): Clear properties of the font-spec if necessary.
17631 (Finternal_set_lisp_face_attribute): Likewise.
17632 (set_font_frame_param): Use font_load_for_lface to load a
17633 font-object, and call Fmodify_frame_parameters with it.
17634 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
17635 font name by Ffont_xlfd_name.
17636 (Finternal_lisp_face_attribute_values): Don't check QCweight,
17637 QCslant, and QCwidth.
17638 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
17639 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
17640 Compare fonts by EQ.
17641 (lookup_non_ascii_face): Deleted.
17642 (face_for_font): The 2nd argument changed.
17643 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
17644 Check atomic font properties by case insensitive.
17645 (realize_non_ascii_face): Set face->overstrike correctly.
17646 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
17647 (dump_realized_face): Get font name from
17648 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
17649
17650 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
17651 conditionals. Don't check enable_font_backend. Delete all codes
17652 used only when USE_FONT_BACKEND is not defined.
17653 (xic_create_xfontset): Original code deleted and renamed from
17654 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
17655 (x_make_gc): Don't set GCFont in GCs.
17656 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
17657 opened by "fixed".
17658 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
17659 find_ccl_program_func, query_font_func, set_frame_fontset_func,
17660 get_font_repertory_func.
17661
17662 * xfont.c: Include <stdlib.h> and "ccl.h".
17663 (struct xfont_info): New structure.
17664 (xfont_query_font): Deleted.
17665 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
17666 moved from xterm.c.
17667 (xfont_driver): Adjusted for the change of struct font_driver.
17668 (compare_font_names): New function.
17669 (xfont_list_pattern): Sort font names case insensitively. Make
17670 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
17671 (xfont_list): Return a list, not vector.
17672 (xfont_match): If the font doesn't have QCname property, generate
17673 a name from the other font properties.
17674 (xfont_open): Return a font-object. Adjusted for the change of
17675 struct font. Get underline_thickness and underline_position from
17676 font property. Don't update dpyinfo->smallest_font_height and
17677 dpyinfo->smallest_char_width.
17678 (xfont_close): Don't free struct font.
17679 (xfont_prepare_face): Adjusted for the change of struct font.
17680 (xfont_done_face): Deleted.
17681 (xfont_has_char): Adjusted for the change of struct font.
17682 (xfont_encode_char, xfont_draw): Likewise.
17683 (xfont_check): New function.
17684
17685 * xftfont.c (xftfont_list): Adjusted for the change of `list'
17686 callback function.
17687 (xftfont_match): Adjusted for the format change of font-entity.
17688 (xftfont_open): Adjusted for the format change of font-entity and
17689 font-object. Adjusted for the change of struct font. Return a
17690 font-object. Don't update dpyinfo->smallest_font_height and
17691 dpyinfo->smallest_char_width.
17692 (xftfont_close): Block input while calling XftFontClose.
17693 (xftfont_prepare_face): Don't block input while calling
17694 xftfont_get_colors. Adjusted for the change of struct font.
17695 (xftfont_shape): Return value of error case fixed.
17696
17697 * xrdb.c (x_load_resources): Don't setup a fontset resource.
17698
17699 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
17700 conditionals.
17701 (FONT_WIDTH): Return (f)->max_width.
17702 (struct x_display_info): Delete member `font'.
17703 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
17704 (x_find_ccl_program, x_get_font_repertory): Delete externs.
17705 (struct x_output): Change type of `font' to `struct font *'.
17706
17707 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
17708 conditionals. Don't check enable_font_backend. Delete all codes
17709 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
17710 (x_per_char_metric, x_encode_char): Deleted.
17711 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
17712 (x_compute_glyph_string_overhangs): Adjusted for the change of
17713 `struct face'.
17714 (x_draw_glyph_string_foreground)
17715 (x_draw_composite_glyph_string_foreground): Likewise.
17716 (x_draw_glyph_string): Likewise. Use font->underline_position and
17717 font->underline_thickness.
17718 (x_new_font): Renamed from x_new_fontset2.
17719 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
17720 (x_check_font): Call `check' method of a font driver.
17721 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
17722 (x_query_font, x_get_font_repertory): Deleted.
17723 (x_find_ccl_program): Renamed and moved to xfont.c.
17724 (x_redisplay_interface): Adjusted for the change of `struct
17725 redisplay_interface'.
17726
17727 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
17728 conditionals. Don't check enable_font_backend. Delete all codes
17729 used only when USE_FONT_BACKEND is not defined. Surround non-used
17730 code by "#ifdef OLD_FONT" and "endif".
17731 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
17732
17733 * w32font.h (struct w32font_info): New member.
17734 (FONT_COMPAT): New macro.
17735 (w32font_open_internal): Prototype adjusted.
17736
17737 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
17738 OLD_FONT" and "endif".
17739
17740 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
17741 conditionals. Don't check enable_font_backend. Delete all codes
17742 used only when USE_FONT_BACKEND is not defined.
17743 (w32font_open): Return a font-object. Make a font-object by
17744 font_make_object. Adjusted for the change of struct w32font_info.
17745 (w32font_close): Don't free struct font. Adjusted for the change
17746 of struct w32font_info.
17747 (w32font_encode_char, w32font_text_extents, w32font_draw):
17748 Adjusted for the change of struct w32font_info.
17749 (w32font_draw): Likewise.
17750 (w32font_list_internal): Return a list, not vector.
17751 (w32font_open_internal): Change the 4th arg to font-object.
17752 Adjusted for the change of struct w32font_info and font-object format.
17753 (add_font_name_to_list): Don't downcase names.
17754 (w32_enumfont_pattern_entity): Make a font-entity by
17755 font_make_entity. Adjusted for the format change of font-entity.
17756 Use FONT_SET_STYLE to set a style-related font property. If a
17757 font is scalable, set avgwidth property to 0. Set font-entity
17758 property by font_put_extra.
17759 (font_matches_spec): Adjusted for the format change of font-entity.
17760 (w32_weight_table, w32_decode_weight): New variables.
17761 (w32_encode_weight): New function.
17762 (fill_in_logfont): Adjusted for the format change of font-spec.
17763 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
17764 weight value.
17765 (w32font_driver): Adjusted for the change of struct font_driver.
17766
17767 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
17768 conditionals. Don't check enable_font_backend. Surround non-used
17769 code by "#ifdef OLD_FONT" and "endif".
17770 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
17771 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
17772
17773 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
17774 conditionals. Don't check enable_font_backend. Delete all codes
17775 used only when USE_FONT_BACKEND is not defined. Surround non-used
17776 code by "#ifdef OLD_FONT" and "endif".
17777
17778 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
17779 (uniscribe_open): Return value changed to font-object.
17780 Adjusted for the format change of font-object.
17781 (uniscribe_otf_capability): Adjusted for the change of struct font.
17782 (add_opentype_font_name_to_list): Don't downcase names.
17783 (uniscribe_font_driver): Adjusted for the change of struct
17784 font_driver.
17785
17786 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
17787
17788 * dispnew.c (update_frame_1): Check if tty output is still valid
17789 before flushing it.
17790
17791 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
17792
17793 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
17794 to Gtk+ menus.
17795
17796 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
17797
17798 * dired.c (file_name_completion): Tweak the code so as to always do it
17799 in a single pass. Tighten the scope of some variables.
17800
17801 * dired.c (Qdefault_directory): New var.
17802 (file_name_completion): Use it instead of Fexpand_file_name.
17803 (syms_of_dired): Initialize it.
17804
17805 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
17806
17807 * fileio.c (double_dollars): Remove dead code.
17808
17809 2008-05-10 Eli Zaretskii <eliz@gnu.org>
17810
17811 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
17812 Mention w32-get-true-file-attributes in doc string.
17813
17814 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
17815
17816 2008-05-09 Glenn Morris <rgm@gnu.org>
17817
17818 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
17819 2008-04-23.
17820
17821 2008-05-09 Eli Zaretskii <eliz@gnu.org>
17822
17823 Support for reporting owner and group of each file on MS-Windows:
17824 * dired.c (stat_uname, stat_gname): New functions, with special
17825 implementation for w32.
17826 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
17827
17828 * w32.c: Rename the_passwd_* to dflt_passwd_*.
17829 (dflt_group_name): New static variable.
17830 (dflt_group): Rename from the_group.
17831 (init_user_info): Init dflt_group fields. Get user's group name
17832 from LookupAccountSid.
17833 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
17834 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
17835 New initialization states.
17836 (globals_of_w32): Initialize them to zero. Initialize the default
17837 group name to "None".
17838 (GetFileSecurity_Name): New global var, the name of the function
17839 to call for GetFileSecurity.
17840 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
17841 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
17842 (get_file_security, get_security_descriptor_owner)
17843 (get_security_descriptor_group, is_valid_sid)
17844 (get_file_security_desc, get_rid, get_name_and_id)
17845 (get_file_owner_and_group): New functions.
17846 (stat): Use get_file_security_desc and get_file_owner_and_group to
17847 report the owner and primary group of each file. Don't ignore the
17848 high 32 bits of file's size, now that st_size is 64-bit wide.
17849 Fix test when to get true file attributes.
17850 (init_user_info): Use get_rid instead of equivalent inline code.
17851 (fstat): Don't ignore the high 32 bits of file's size.
17852
17853 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
17854
17855 * image.c (png_load): Use correct bit-depth for setting background
17856 color.
17857
17858 2008-05-08 Eli Zaretskii <eliz@gnu.org>
17859
17860 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
17861 epa-hook.elc.
17862
17863 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
17864
17865 * font.c (Ffont_match_p): Don't use `iff' in docstring.
17866
17867 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
17868
17869 * macfns.c (Fx_create_frame): Make a copy of frame parameters
17870 because the original parameters are in pure storage now.
17871 (mac_window): Remove unused params. Update callers.
17872
17873 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
17874
17875 * lread.c (substitute_object_recurse): Use lower-level primitives.
17876 Don't signal errors when traversing sub-char-tables.
17877 Don't loop over all the possible characters when traversing char-tables.
17878
17879 * print.c (print_preprocess): Add sub-char-tables to the print-table,
17880 just like we do in print.c.
17881
17882 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
17883
17884 * minibuf.c (Ftry_completion): Remove code left over from when we used
17885 scmp instead of Fcompare_strings.
17886
17887 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
17888
17889 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
17890
17891 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17892
17893 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
17894 Create bitmap context in native byte order.
17895
17896 * macterm.c (XDrawLine)
17897 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
17898 context in native byte order.
17899
17900 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17901
17902 * config.in: Regenerate.
17903
17904 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
17905 New definitions for Image I/O support.
17906 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
17907 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
17908 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
17909 (mac_data_provider_release_data, image_load_image_io)
17910 [USE_MAC_IMAGE_IO]: New functions.
17911 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
17912 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
17913 (init_image_func_pointer) [MAC_OSX]: Remove function.
17914 (image_load_quartz2d) [MAC_OSX]: Check availability of
17915 CGImageCreateWithPNGDataProvider at compile time.
17916 Use lowercase `false' for boolean constant.
17917 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
17918 Use image_load_image_io.
17919 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
17920 Don't check MyCGImageCreateWithPNGDataProvider.
17921 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
17922 Don't call init_image_func_pointer.
17923
17924 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
17925
17926 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
17927 Make variable non-static.
17928 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
17929 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
17930
17931 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
17932 (RED_FROM_ULONG): Mask off higher bits.
17933 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
17934
17935 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
17936 Include AvailabilityMacros.h.
17937 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
17938 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
17939
17940 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
17941
17942 * chartab.c (Fset_char_table_range): If range is t, really set all
17943 chars to that value.
17944
17945 2008-05-03 Eli Zaretskii <eliz@gnu.org>
17946
17947 * dired.c (Ffile_attributes): Don't allow the device number become
17948 negative.
17949
17950 2008-05-02 Daiki Ueno <ueno@unixuser.org>
17951
17952 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
17953
17954 2008-05-02 Juri Linkov <juri@jurta.org>
17955
17956 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
17957 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
17958 DEFAULT argument as a list of default values in docstrings.
17959
17960 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
17961
17962 * puresize.h (BASE_PURESIZE): Increase to 1210000.
17963
17964 2008-05-01 Martin Rudalics <rudalics@gmx.at>
17965
17966 * dispnew.c (change_frame_size_1): Preserve small windows when
17967 shrinking frames by calling set_window_height|width with third
17968 arg 2.
17969
17970 * window.h (struct window): Replace field too_small_ok by field
17971 resize_proportionally.
17972
17973 * window.c (make_window): Initialize resize_proportionally.
17974 (enlarge_window): Temporarily set resize_proportionally to make
17975 sure that shrink_windows does scale the window proportionally.
17976 (shrink_windows): When window has resize_proportionally set try
17977 to shrink it proportionally by stealing from other windows.
17978 (struct saved_window, Fset_window_configuration)
17979 (compare_window_configurations): Handle resize_proportionally.
17980 (WINDOW_TOTAL_SIZE): New macro.
17981 (window_min_size, shrink_windows, size_window): Use it.
17982 (check_min_window_sizes): Remove. Invalid values of
17983 window-min-height|width are handled by window_min_size_2 now.
17984 (size_window, Fsplit_window, enlarge_window)
17985 (adjust_window_trailing_edge, grow_mini_window): Don't call
17986 check_min_window_sizes.
17987 (window_min_size_2, window_min_size_1, window_min_size):
17988 New argument safe_p for retrieving "safe" minimum sizes.
17989 (Fdisplay_buffer, Fsplit_window, enlarge_window)
17990 (adjust_window_trailing_edge, grow_mini_window):
17991 Adjust arguments of window_min_size... functions.
17992 (shrink_windows): Argument min_size removed. New argument
17993 safe_p allows shrinking windows to their safe minimum sizes.
17994 Calculate minimum size and decide whether a window shall be
17995 deleted for each window individually.
17996 (size_window): When nodelete_p equals 2, tell shrink_windows to
17997 delete windows only if their new minimum size is no more safe.
17998 (shrink_window_lowest_first): Call window_min_size_1 to make
17999 sure to preserve modeline of bottom-most window when resizing
18000 the minibuffer.
18001 (Fset_window_configuration, Fcurrent_window_configuration)
18002 (compare_window_configurations): Do not handle
18003 window-min-height|width any more.
18004 (syms_of_window): Clarify window-min-height|width doc-strings.
18005
18006 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
18007
18008 * dired.c (file_name_completion): Fix up the encoding/decoding issue
18009 some more. Copy some of the code from Ftry_completions.
18010 Remove special case code that dates back to initial revision when the
18011 slash was only added when necessary and that can't trigger nowadays.
18012
18013 2008-04-27 Kenichi Handa <handa@m17n.org>
18014
18015 * font.c (font_prop_validate): Signal `error' instead of `font'.
18016
18017 2008-04-29 Jason Rumney <jasonr@gnu.org>
18018
18019 * w32fns.c (Fw32_battery_status): New defun.
18020 (syms_of_w32fns): Defsubr it.
18021
18022 2008-04-28 Andreas Schwab <schwab@suse.de>
18023
18024 * dired.c (file_name_completion): Fix another mixing of encoded
18025 and decoded names.
18026
18027 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
18028
18029 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
18030
18031 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
18032
18033 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
18034
18035 2008-04-27 Andreas Schwab <schwab@suse.de>
18036
18037 * dired.c (file_name_completion): Fix inappropriate mixing of
18038 encoded and decoded names.
18039
18040 * xterm.c (XTread_socket): Fix use of uninitialized variable.
18041
18042 * puresize.h (BASE_PURESIZE): Increase to 1200000.
18043
18044 2008-04-26 Eli Zaretskii <eliz@gnu.org>
18045
18046 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
18047 2008-03-31, it's not needed anymore with `struct stat' definition
18048 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
18049 for the same reasons.
18050
18051 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
18052
18053 * m/sparc.h: Additional redefinitions for GNU/Linux.
18054
18055 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18056
18057 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
18058 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
18059 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
18060 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
18061 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
18062 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
18063 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
18064 Likewise.
18065
18066 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
18067 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
18068 (mac_ax_number_of_characters): Add externs.
18069 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
18070 [USE_MAC_TSM]: Likewise.
18071 (mac_handle_text_input_event) [MAC_OSX]:
18072 Handle kEventTextInputOffsetToPos for no active input area case.
18073 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
18074 (mac_handle_document_access_event)
18075 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
18076 (install_application_handler) [MAC_OSX]: Register handlers for
18077 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
18078 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
18079 Register mac_handle_document_access_event.
18080
18081 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
18082 Make functions non-static.
18083
18084 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
18085
18086 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
18087 (read_file_name_completion_ignore_case, insert_default_directory)
18088 (Qdefault_directory): Move to minibuffer.el.
18089 (Fread_file_name): Call the new `read-file-name' instead.
18090
18091 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18092
18093 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
18094 Make function non-static.
18095 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
18096 Remove function.
18097 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
18098 Move to mactoolbox.c.
18099 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
18100
18101 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
18102 (mac_rect_make): New macro.
18103
18104 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
18105 instead of float.
18106 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
18107 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
18108 (XSetBackground) [USE_CG_DRAWING]: Likewise.
18109 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
18110 CGRectMake.
18111 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
18112 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
18113 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
18114 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
18115 instead of WindowRef in argument type.
18116 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
18117 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
18118 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
18119 instead of DISPLAY. All uses changed.
18120 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
18121 (x_calc_absolute_position): Simplify so as not to use
18122 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
18123
18124 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
18125 instead of WindowRef in argument type.
18126 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
18127 [TARGET_API_MAC_CARBON]: Remove externs.
18128 (create_apple_event, mac_event_parameters_to_lisp)
18129 [TARGET_API_MAC_CARBON]: Add externs.
18130
18131 * mactoolbox.c (Vmac_ts_script_language_on_focus)
18132 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
18133 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
18134 is clicked.
18135 (x_activate_menubar): Remove extern for saved_menu_event_location.
18136 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
18137 Move from mac.c.
18138
18139 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18140
18141 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
18142 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
18143
18144 2008-04-23 Jason Rumney <jasonr@gnu.org>
18145
18146 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
18147 attributes only for local files.
18148
18149 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
18150 default to Qlocal.
18151
18152 2008-04-22 Juri Linkov <juri@jurta.org>
18153
18154 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
18155 read-buffer-to-switch instead of using the letter "B".
18156
18157 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
18158
18159 * fileio.c (Qdefault_directory): New variable.
18160 (Fread_file_name): Use it to pass `dir' to the completion functions.
18161
18162 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
18163
18164 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
18165
18166 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
18167
18168 * keyboard.c (Vpre_help_message): Remove.
18169 (show_help_echo): Remove default C code.
18170
18171 * dired.c (directory_files_internal, file_name_completion):
18172 Only call ENCODE_FILE if the string is indeed decoded.
18173
18174 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
18175
18176 * Makefile.in (TOOLKIT_DEFINES): Remove.
18177 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
18178
18179 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18180
18181 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
18182 (mactoolbox.o): New target.
18183
18184 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
18185 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
18186
18187 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
18188 Use mac_set_frame_window_background instead of XSetWindowBackground.
18189 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
18190 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
18191 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
18192 instead of SetWindowTitleWithCFString.
18193 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
18194 Move function to mactoolbox.c.
18195 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
18196 Use mac_set_window_modified instead of SetWindowModified.
18197 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
18198 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
18199 (Fx_focus_frame): Use mac_front_non_floating_window instead of
18200 FrontNonFloatingWindow. Use mac_activate_window instead of
18201 ActivateWindow. Use mac_active_non_floating_window instead of
18202 ActiveNonFloatingWindow.
18203 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
18204 Use mac_show_hourglass and mac_hide_hourglass.
18205 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
18206 instead of GetGlobalMouse.
18207 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
18208 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
18209 Use mac_bring_window_to_front instead of BringToFront.
18210 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
18211 mactoolbox.c.
18212 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
18213 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
18214 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
18215 mactoolbox.c.
18216
18217 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
18218 (XtPointer): Move typedef from macmenu.c.
18219 (enum button_type): Move enum from macmenu.c.
18220 (widget_value): Move typedef from macmenu.c.
18221 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
18222 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
18223 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
18224 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
18225 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
18226 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
18227 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
18228 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
18229 (Selection): Move typedef from macselect.c.
18230 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
18231 macterm.c.
18232 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
18233 (mac_is_window_collapsed, mac_bring_window_to_front)
18234 (mac_send_window_behind, mac_hide_window, mac_show_window)
18235 (mac_collapse_window, mac_front_non_floating_window)
18236 (mac_active_non_floating_window, mac_activate_window)
18237 (mac_move_window_structure, mac_move_window, mac_size_window)
18238 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
18239
18240 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
18241 (enum mac_menu_kind): Move enum to mactoolbox.c.
18242 (min_menu_id): Move variable to mactoolbox.c.
18243 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
18244 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
18245 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
18246 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
18247 [TARGET_API_MAC_CARBON]: Likewise.
18248 (XtPointer): Move typedef to macgui.h.
18249 (enum button_type): Move enum to macgui.h.
18250 (widget_value): Move typedef to macgui.h.
18251 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
18252 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
18253 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
18254 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
18255 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
18256 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
18257 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
18258 (popup_activated_flag): Make variable non-static.
18259 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
18260 (add_menu_item, fill_menu, dispose_menus):
18261 Move functions to mactoolbox.c.
18262 (restore_show_help_function, menu_target_item_handler)
18263 (install_menu_target_item_handler, mac_handle_dialog_event)
18264 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
18265 [TARGET_API_MAC_CARBON]: Likewise.
18266 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
18267 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
18268 (find_and_call_menu_selection, name_is_separator): Make function
18269 non-static.
18270 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
18271 to mactoolbox.c.
18272 (set_frame_menubar): Don't call install_menu_quit_handler.
18273 (menu_item_selection): New variable.
18274 (mac_menu_show): Use create_and_show_popup_menu.
18275 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
18276 selection but set variable menu_item_selection. All uses changed.
18277 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
18278 Call install_menu_quit_handler. Move to mactoolbox.c.
18279
18280 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
18281 (Selection): Move typedef to macgui.h.
18282 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
18283 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
18284 Make variables non-static.
18285 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
18286 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
18287 Make functions non-static.
18288 (Vmac_service_selection) [MAC_OSX]: Likewise.
18289 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
18290 (mac_valid_selection_target_p, mac_clear_selection)
18291 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
18292 (mac_put_selection_value, mac_selection_has_target_p)
18293 (mac_get_selection_value, mac_get_selection_target_list)
18294 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
18295 Move functions to mactoolbox.c.
18296 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
18297 Likewise.
18298 (copy_scrap_flavor_data, mac_handle_service_event)
18299 (install_service_handler) [MAC_OSX]: Likewise.
18300 (syms_of_macselect) <Vmac_dnd_known_types>:
18301 Use mac_dnd_default_known_types.
18302
18303 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
18304 Move to mactoolbox.c.
18305 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
18306 (Fx_selection_owner_p): Add EXFUN.
18307 (install_window_handler, remove_window_handler, XSetWindowBackground):
18308 Remove externs.
18309 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
18310 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
18311 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
18312 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
18313 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
18314 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
18315 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
18316 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
18317 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
18318 (create_and_show_popup_menu, mac_get_selection_from_symbol)
18319 (mac_valid_selection_target_p, mac_clear_selection)
18320 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
18321 (mac_put_selection_value, mac_selection_has_target_p)
18322 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
18323 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
18324 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
18325 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
18326 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
18327 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
18328 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
18329 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
18330 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
18331
18332 * mactoolbox.c: New file.
18333
18334 2008-04-18 Jason Rumney <jasonr@gnu.org>
18335
18336 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
18337
18338 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
18339
18340 * character.c (Fmultibyte_char_to_unibyte):
18341 Return latin1 chars unchanged.
18342
18343 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
18344 relocated if it points to `name'.
18345
18346 2008-04-17 Kenichi Handa <handa@m17n.org>
18347
18348 * data.c (Faset): Allow setting a multibyte character in an
18349 ASCII-only unibyte string.
18350
18351 * lisp.h (STRING_SET_MULTIBYTE): New macro.
18352
18353 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
18354
18355 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
18356 done in config.h.
18357
18358 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
18359
18360 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
18361 (Fchar_direction): Add usage in the docstring.
18362
18363 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
18364
18365 * keyboard.c (read_key_sequence): Remove always-true checks.
18366
18367 2008-04-14 Jason Rumney <jasonr@gnu.org>
18368
18369 * w32font.c (w32font_open_internal): Set max_bounds.descent in
18370 compatibility struct, for better underline positioning.
18371
18372 2008-04-13 David Hansen <david.hansen@gmx.net>
18373
18374 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
18375 string.
18376
18377 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
18378
18379 * m/hp800.h (XUINT, XSET): Remove.
18380
18381 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
18382
18383 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
18384 previous change.
18385
18386 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
18387
18388 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
18389 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
18390
18391 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
18392
18393 * keymap.h (map_keymap_canonical): Declare.
18394 * xmenu.c (single_keymap_panes): Use it.
18395
18396 2008-04-11 Glenn Morris <rgm@gnu.org>
18397
18398 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
18399 set the target's value to that of the alias.
18400
18401 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
18402
18403 * term.c (set_tty_color_mode): Left over typo.
18404
18405 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
18406
18407 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
18408 only after check for file name handler functions. Signal, when
18409 native functionality is not supported.
18410 (syms_of_fileio): Declare it unconditionally.
18411
18412 2008-04-10 Jason Rumney <jasonr@gnu.org>
18413
18414 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
18415 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
18416
18417 * w32.c (logon_network_drive): Also logon to remote drives that
18418 are mapped to drive letters.
18419
18420 2008-04-10 Glenn Morris <rgm@gnu.org>
18421
18422 * xdisp.c (truncate-partial-width-windows): Doc fix.
18423
18424 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
18425
18426 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
18427 Move functions to minibuffer.el.
18428 (syms_of_fileio): Don't declare them.
18429
18430 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
18431
18432 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
18433 (syms_of_minibuf): Remove its initialization.
18434
18435 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
18436
18437 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
18438
18439 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
18440
18441 2008-04-09 Jason Rumney <jasonr@gnu.org>
18442
18443 * makefile.w32-in (distclean): Delete makefile too.
18444 (maintainer-clean): New target.
18445
18446 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
18447
18448 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
18449 for new font backend and composite cases.
18450
18451 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
18452
18453 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
18454 Most of the code moved to run_timers.
18455 (do_pending_atimers): Call run_timers.
18456 (run_timers): New function.
18457
18458 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
18459 run atimers.
18460
18461 * process.c (wait_reading_process_output): The same as above.
18462
18463 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
18464
18465 * minibuf.c (last_exact_completion): Remove variable.
18466 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
18467 (complete_and_exit_1, complete_and_exit_2)
18468 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
18469 (Fdisplay_completion_list, display_completion_list_1)
18470 (Fminibuffer_completion_help, Fself_insert_and_exit)
18471 (Fexit_minibuffer, Fminibuffer_message): Move functions to
18472 minibuffer.el.
18473 (syms_of_minibuf): Remove corresponding initializations.
18474
18475 * keyboard.c (Qdeactivate_mark): New var.
18476 (command_loop_1): Use it to call `deactivate-mark'.
18477 (syms_of_keyboard): Initialize it.
18478
18479 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
18480 to another frame.
18481 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
18482 Don't call set_tty_color_mode.
18483 (store_frame_param): Reset previous_frame rather than call
18484 set_tty_color_mode.
18485 * term.c (set_tty_color_mode): Rewrite.
18486 * dispextern.h (set_tty_color_mode): New type.
18487 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
18488
18489 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
18490
18491 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
18492 for generic chars, which do not exist any more in emacs-unicode.
18493
18494 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
18495
18496 * coding.c (detect_coding_emacs_mule)
18497 (Ffind_operation_coding_system): Fix typo.
18498
18499 2008-04-08 Jason Rumney <jasonr@gnu.org>
18500
18501 * w32uniscribe.c (SNAME): Extract only symbol name.
18502
18503 * w32font.h (struct w32_metric_cache): New struct.
18504 (w32font_info): Use it.
18505 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
18506 (CACHE_BLOCKSIZE): New constants.
18507
18508 * w32font.c (Qja, Qko, Qzh): New symbols.
18509 (syms_of_w32font): Initialise them.
18510 (font_matches_spec): Use them to filter by language.
18511 (recompute_cached_metrics): Remove function.
18512 (compute_metrics, clear_cached_metrics): New functions.
18513 (w32font_encode_char): Use them to manage metric cache.
18514 (w32font_text_extents): Cache metrics for all glyphs on demand.
18515 Delay converting glyph indices to WORD until needed.
18516 (w32font_open_internal): Initialize metric cache to empty.
18517 (registry_to_w32_charset): Charset should always be a symbol.
18518 (fill_in_logfont, list_all_matching_fonts): Family should
18519 always be a symbol.
18520
18521 2008-04-06 Jason Rumney <jasonr@gnu.org>
18522
18523 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
18524 Give up if glyph indices not supported. Use uniscribe obtained
18525 ABC widths for individual metrics. Map glyph clusters back to
18526 characters using fClusterStart flag. Return number of glyphs
18527 produced, not chars processed.
18528 (uniscribe_shape): Map char at FROM to current glyph.
18529
18530 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18531
18532 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
18533 Use SetMenuItemHierarchicalMenu.
18534
18535 2008-04-05 Jason Rumney <jasonr@gnu.org>
18536
18537 * image.c (pbm_load): Allow color values up to 65535.
18538 Throw an error if max_color_idx is outside the supported range.
18539 Report an error when image size is invalid.
18540 Read two bytes at a time when raw images have max_color_idx above 255.
18541
18542 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
18543
18544 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
18545 append "CCL: Quitted" when the CCL program is quitted.
18546 (setup_ccl_program): Initialize ccl->quit_silently to zero.
18547
18548 * ccl.h (struct ccl_program): New member quit_silently.
18549
18550 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
18551
18552 * search.c (compile_pattern_1): Treat non-nil and non-string of
18553 search-spaces-regexp as nil.
18554
18555 * minibuf.c (Fassoc_string): Tweak docstring.
18556
18557 2008-04-05 Eli Zaretskii <eliz@gnu.org>
18558
18559 * dired.c (Ffile_attributes): Support inode numbers wider than 32
18560 bits. Remove ugly WINDOWSNT-specific kludge introduced on
18561 2008-03-14 to force inode be positive.
18562
18563 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
18564 _S_* ones, since we now use our own sys/stat.h.
18565 (stat, fstat): Don't mangle the inode number.
18566 (init_user_info): Don't restrict UID and GID to 0-60000 range.
18567
18568 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
18569
18570 * frame.h (struct frame): Give one more bit to `visible' since we use
18571 values larger than 1 to indicate obscured frames on ttys.
18572
18573 * keymap.c (Qkeymap_canonicalize): New var.
18574 (Fmap_keymap_internal): New fun.
18575 (describe_map): Use keymap-canonicalize.
18576
18577 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
18578 (Fundo_boundary): Set them.
18579 (syms_of_undo): Initialize them.
18580 (record_point): Use them instead of last_point_position*.
18581 (last_undo_buffer): Change type.
18582
18583 2008-04-04 Jason Rumney <jasonr@gnu.org>
18584
18585 * w32font.c (w32font_text_extents): Use font's ascent and descent.
18586 (recompute_cached_metrics): Don't set ascent and descent per char.
18587
18588 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
18589 (uniscribe_check_otf): Add GC protection before consing.
18590 Rearrange loop for counting features.
18591
18592 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
18593
18594 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
18595 buffer with byte-size of source buffer.
18596
18597 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
18598
18599 * callint.c (Fcall_interactively): Handle temporary region even
18600 when shift-select-mode is off.
18601
18602 2008-04-03 Jason Rumney <jasonr@gnu.org>
18603
18604 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
18605
18606 2008-04-03 Kenichi Handa <handa@m17n.org>
18607
18608 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
18609 (CATEGORY_MASK_UTF_16): Likewise.
18610 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
18611 binary file.
18612 (detect_coding): Add null-byte detection for a binary file.
18613 (detect_coding_system): Likewise.
18614
18615 2008-04-03 Jason Rumney <jasonr@gnu.org>
18616
18617 * w32uniscribe.c: New file.
18618
18619 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
18620
18621 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
18622
18623 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
18624 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
18625 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
18626 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
18627 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
18628 (Qphonetic): New symbols.
18629 (syms_of_w32font): Initialize them.
18630 (font_supported_scripts): Use them.
18631 (w32font_list_family): List all charsets.
18632 (w32font_text_extents, recompute_cached_metrics): Fix metric
18633 calculations.
18634 (w32_enumfont_pattern_entity): Make full_type a DWORD.
18635 Give opentype fonts their own format.
18636 (font_matches_spec): New arguments backend and logfont.
18637 Handle :otf spec for uniscribe backend.
18638 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
18639 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
18640
18641 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
18642 font backend.
18643 (globals_of_w32fns): Initialize uniscribe font backend.
18644
18645 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
18646 dependencies.
18647 (w32uniscribe.$(O)): New file to build.
18648 (FONT_OBJ): Include w32uniscribe.$(O).
18649 (LIBS): Add uniscribe libraries.
18650
18651 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
18652
18653 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
18654
18655 * callint.c (Vshift_select_mode): New var.
18656 (Finteractive): Document new ^ spec.
18657 (Fcall_interactively): Call handle-shift-selection if the ^ spec
18658 is present.
18659
18660 * keyboard.c (Vthis_command_keys_shift_translated): New var.
18661 (command_loop_1): Avoid running the direct display versions of
18662 forward-char and backward-char if shift-selection may occur.
18663 (read_key_sequence): Set Vthis_command_keys_shift_translated if
18664 shift-translation takes place.
18665
18666 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
18667 avoid clobbering by define-minor-mode.
18668
18669 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
18670 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
18671
18672 * syntax.c (Fforward_word): Add ^ interactive spec.
18673
18674 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
18675 (Fscroll_right): Add ^ interactive spec.
18676
18677 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
18678
18679 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
18680
18681 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
18682
18683 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
18684
18685 2008-03-31 Juri Linkov <juri@jurta.org>
18686
18687 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
18688
18689 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
18690
18691 * gtkutil.c (xg_set_geometry): Fix indentation.
18692 (xg_resize_outer_widget): Remove.
18693 (x_wm_size_hint_off): Fix indentation.
18694 (xg_frame_set_char_size): Call flush_and_sync after
18695 gtk_window_resize.
18696 (x_wm_set_size_hint): Pass NULL as geometry window to
18697 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
18698 Add menu bar and tool bar height to base height.
18699 (xg_update_frame_menubar, free_frame_menubar)
18700 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
18701 (update_frame_tool_bar, free_frame_tool_bar):
18702 Change xg_resize_outer_widget to xg_frame_set_char_size.
18703
18704 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
18705
18706 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
18707 (Fdbus_call_method): New parameter TIMEOUT.
18708 (dbus-send-signal): Optimize UNGCPRO call.
18709
18710 2008-03-29 Juri Linkov <juri@jurta.org>
18711
18712 * window.c (Fdisplay_buffer): Move call to
18713 Vsplit_window_preferred_function out of conditions that check
18714 if window is eligible for vertical splitting.
18715 When Vsplit_window_preferred_function is non-nil, call it and use
18716 its non-nil return value as window. Otherwise, continue doing
18717 vertical splitting using Fsplit_window with arg horflag=nil.
18718 (syms_of_window) <Vsplit_window_preferred_function>: Change the
18719 default value from `split-window' to nil.
18720
18721 2008-03-29 Juri Linkov <juri@jurta.org>
18722
18723 * callint.c (Fcall_interactively): Revert 2008-03-16 change
18724 for interactive code letters 'b' and 'B'.
18725
18726 2008-03-29 Eli Zaretskii <eliz@gnu.org>
18727
18728 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
18729 multibyte string.
18730
18731 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
18732
18733 * keyboard.c (pending_funcalls): New var.
18734 (timer_check): Run it.
18735 (syms_of_keyboard): Initialize it.
18736 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
18737 (Vdelete_terminal_functions): New vars.
18738 (syms_of_terminal): Initialize them.
18739 (Fdelete_terminal): Run delete-terminal-functions.
18740 * xdisp.c (safe_eval): Rewrite.
18741 (safe_call2): New fun.
18742 * frame.c (Qdelete_frame_functions): New var.
18743 (syms_of_frame): Initialize it.
18744 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
18745 * lisp.h (safe_call2, pending_funcalls): Declare.
18746
18747 2008-03-28 Andreas Schwab <schwab@suse.de>
18748
18749 * indent.c (Fmove_to_column): Move declaration before statements.
18750
18751 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
18752
18753 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
18754 (struct frame): Use bit fields for boolean vars.
18755
18756 * process.c (server_accept_connection): Simplify naming.
18757 (emacs_get_tty_pgrp): Use SDATA.
18758
18759 * coding.c (decode_coding_object): Fix last change.
18760
18761 2008-03-27 Jason Rumney <jasonr@gnu.org>
18762
18763 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
18764
18765 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
18766
18767 * charset.c (Fdefine_charset_internal): Change the way of
18768 registering charsets in Vcharset_order_list.
18769 (syms_of_charset): Make the charset `eight-bit' supplementary.
18770
18771 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
18772
18773 * regex.c (EXTEND_BUFFER): Change order of pointer addition
18774 operations, to avoid having the difference between pointers
18775 overflow.
18776
18777 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
18778
18779 * indent.c (check_display_width): New fun.
18780 (scan_for_column): Use it.
18781
18782 * data.c (syms_of_data): Mark most-positive-fixnum and
18783 most-negative-fixnum as constants.
18784
18785 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
18786
18787 * indent.c (scan_for_column): Extract from current_column_1.
18788 Merge with the same code from Fmove_to_column.
18789 (current_column_1, Fmove_to_column): Use it.
18790
18791 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
18792
18793 * keymap.c (map_keymap_internal): New fun.
18794 (map_keymap): Use it.
18795 (Fmap_keymap_internal): New fun.
18796 (Fmap_keymap): Remove left-out test from before make_save_value.
18797
18798 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
18799
18800 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
18801 Use XCAR/XCDR.
18802
18803 * process.h (struct Lisp_Process): Remove filter_multibyte.
18804 * process.c (QCfilter_multibyte): Remove.
18805 (setup_process_coding_systems): Don't use filter_multibyte.
18806 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
18807 (read_process_output): Don't adjust multibyteness to filter_multibyte.
18808 (Fset_process_filter_multibyte): Change the coding-system to
18809 approximate the previous behavior.
18810 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
18811 coding-system.
18812
18813 * coding.c (decode_coding_object): When not decoding into a buffer,
18814 obey the coding system's preference of (uni|multi)byte.
18815
18816 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
18817
18818 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
18819 every char is changed and has a different byte-length.
18820 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
18821 Fix int -> EMACS_INT.
18822
18823 2008-03-23 David Hansen <david.hansen@gmx.net>
18824
18825 * dbusbind.c (xd_read_message): Remove extra copying of message
18826 strings. Check for NULL `interface' or `member'.
18827
18828 2008-03-22 Eli Zaretskii <eliz@gnu.org>
18829
18830 * w32.c (readdir): If FindFirstFile/FindNextFile return in
18831 cFileName a file name that includes `?' characters, use the 8+3
18832 alias in cAlternateFileName instead.
18833
18834 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
18835
18836 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
18837
18838 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
18839
18840 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
18841 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
18842 work on current_buffer only instead (that was already the case
18843 for some of the code anyway).
18844 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
18845 (temp_set_point, temp_set_point_both): Use EMACS_INT.
18846 (SET_PT, SET_PT_BOTH): Adjust.
18847 * intervals.h (set_point, temp_set_point, set_point_both)
18848 (temp_set_point_both): Remove redundant declarations.
18849
18850 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
18851
18852 * fileio.c (Finsert_file_contents):
18853 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
18854 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
18855 when buffer != current_buffer anyway.
18856
18857 2008-03-20 Andreas Schwab <schwab@suse.de>
18858
18859 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
18860 as default.
18861
18862 2008-03-19 Jason Rumney <jasonr@gnu.org>
18863
18864 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
18865 (syms_of_w32fns): Initialize them.
18866 (HOURGLASS_ID): New constant.
18867 (x_window_to_frame): Don't check hourglass_window.
18868 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
18869 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
18870 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
18871 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
18872 Only change the cursor if hourglass is not active.
18873 (Fx_create_frame): Initialize frame's current_cursor.
18874 (hourglass_atimer): Remove.
18875 (hourglass_started): New function.
18876 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
18877 (show_hourglass): Adapt to w32, changing argument to frame.
18878
18879 * w32term.h (struct w32_output): Remove hourglass_window.
18880 Add current_cursor.
18881
18882 * eval.c (call_debugger, Fsignal):
18883 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
18884 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
18885 (Fexecute_extended_command, cancel_hourglass_unwind):
18886 * minibuf.c (read_minibuf):
18887 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
18888
18889 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
18890
18891 * window.c (run_funs): New fun.
18892 (run_window_configuration_change_hook): Use it to run the buffer-local
18893 and the global part of the hook.
18894
18895 * xdisp.c (format_mode_line_unwind_data): Add window argument.
18896 (unwind_format_mode_line): Restore selected window.
18897 (x_consider_frame_title, Fformat_mode_line): Set selected window.
18898
18899 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
18900
18901 * editfns.c (Fchar_equal): Check they are valid characters.
18902
18903 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
18904
18905 2008-03-17 Andreas Schwab <schwab@suse.de>
18906
18907 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
18908 against a charset.
18909
18910 * lisp.h (Fbuffer_list): Declare.
18911
18912 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
18913
18914 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
18915 handlebox_widget is != 0.
18916
18917 2008-03-16 Juri Linkov <juri@jurta.org>
18918
18919 * callint.c (Fcall_interactively): For interactive code letters
18920 'b' and 'B' put the buffer list into the list of default "future"
18921 values of the minibuffer.
18922
18923 2008-03-16 Andreas Schwab <schwab@suse.de>
18924
18925 * keyboard.c (read_key_sequence): Fix downcasing of letters with
18926 modifiers.
18927
18928 * regex.c (re_match_2_internal): Correct matching of a charset
18929 against latin-1 characters.
18930
18931 2008-03-16 Kenichi Handa <handa@m17n.org>
18932
18933 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
18934 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
18935 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
18936 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
18937 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
18938 CHAR_STRING_ADVANCE.
18939 (produce_chars): Fix for the case that the source and the
18940 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
18941 instead of CHAR_STRING_ADVANCE.
18942 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
18943 STRING_CHAR_ADVANCE.
18944
18945 2008-03-15 Andreas Schwab <schwab@suse.de>
18946
18947 * regex.c (re_match_2_internal): Correct matching of eight bit
18948 characters in unibyte strings.
18949
18950 2008-03-15 Martin Rudalics <rudalics@gmx.at>
18951
18952 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
18953 at end of range when it coincides with the end of the buffer.
18954
18955 2008-03-14 Eli Zaretskii <eliz@gnu.org>
18956
18957 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
18958
18959 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
18960
18961 2008-03-14 Jason Rumney <jasonr@gnu.org>
18962
18963 * editfns.c (initial_tz): New variable.
18964 (syms_of_editfns): Initialize it.
18965 (Fset_time_zone_rule): Set it when first called.
18966 Use it when TZSTRING is nil.
18967
18968 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
18969 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
18970 (monitor_from_point_fn, get_monitor_info_fn): New globals.
18971 (globals_of_w32fns): Initialize them.
18972 (compute_tip_xy): Use them to position tooltips.
18973
18974 2008-03-14 Glenn Morris <rgm@gnu.org>
18975
18976 * emacs.c (main): Revert previous change.
18977 (standard_args): Revert -internal-script back to -scriptload,
18978 and remove the long-option form.
18979
18980 2008-03-13 Glenn Morris <rgm@gnu.org>
18981
18982 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
18983 Remove option -enable-font-backend.
18984
18985 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
18986
18987 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
18988
18989 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
18990
18991 * xterm.c (x_connection_closed): For GTK: If this is the last
18992 terminal just exit without closing the display.
18993
18994 2008-03-11 Jason Rumney <jasonr@gnu.org>
18995
18996 * w32font.c (w32font_full_name): Use floor to round.
18997
18998 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
18999
19000 * sound.c (alsa_configure): Declare vol at beginning of block.
19001
19002 * fontset.c (Ffontset_info): Remove extra semicolon.
19003
19004 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
19005
19006 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
19007 size of resulting string.
19008
19009 2008-03-10 Jason Rumney <jasonr@gnu.org>
19010
19011 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
19012
19013 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19014
19015 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
19016 Don't pretend as if characters with display property haven't been
19017 consumed for string-replacing-string case.
19018
19019 2008-03-08 Kim F. Storm <storm@cua.dk>
19020
19021 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
19022 (get_next_display_element, next_element_from_string)
19023 (next_element_from_ellipsis, next_element_from_buffer): Use it.
19024
19025 2008-03-08 Andreas Schwab <schwab@suse.de>
19026
19027 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
19028
19029 2008-03-06 Jason Rumney <jasonr@gnu.org>
19030
19031 * w32font.c (w32_registry): Take font_type argument. Use ANSI
19032 when charset not specified. Only translate ANSI to unicode when
19033 font_type is truetype.
19034 (w32font_coverage_ok): New function.
19035 (add_font_entity_to_list): Use it to filter unsuitable fonts.
19036
19037 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
19038
19039 * lread.c (Fread_char): Resolve modifiers.
19040 (Fread_char_exclusive): Likewise.
19041
19042 * character.c (char_resolve_modifier_mask): New function.
19043 (char_string): Use char_resolve_modifier_mask.
19044 (Fchar_resolve_modifiers): New function.
19045 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
19046 function.
19047
19048 2008-03-04 Jason Rumney <jasonr@gnu.org>
19049
19050 * makefile.w32-in: Always include w32font.c in the build.
19051 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
19052
19053 2008-03-04 Andreas Schwab <schwab@suse.de>
19054
19055 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
19056 (versionclean): Likewise.
19057
19058 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
19059
19060 * .cvsignore: Add oo.
19061
19062 2008-03-03 Andreas Schwab <schwab@suse.de>
19063
19064 * coding.c (decode_coding_object): Inhibit gap shrinking while
19065 decoding in place.
19066
19067 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
19068
19069 * w32term.c: Remove unused include "gnu.h".
19070 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
19071
19072 * gnu.h: Rename to ...
19073 * emacs-icon.h: ... this.
19074 * xterm.c: Use emacs-icon.h instead of gnu.h.
19075 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
19076
19077 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
19078
19079 * w32font.c: Include math.h.
19080
19081 2008-03-03 Jason Rumney <jasonr@gnu.org>
19082
19083 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
19084 Compute options separately.
19085 (w32font_open_internal): Set glyph_idx before caching metrics.
19086
19087 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
19088 Define if system headers don't.
19089 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
19090 (w32font_encode_char): Don't declare here.
19091
19092 * w32font.c (Quniscribe, QCformat): New symbols.
19093 (syms_of_w32font): Define them.
19094 (w32font_has_char): Indicate uncertainty.
19095 (w32font_encode_char): Encode as glyph point. Make static.
19096 (recompute_cached_metrics): New function.
19097 (w32font_open_internal): Use it. Set font to use glyph points
19098 initially. Set format based on type of font.
19099 (w32font_text_extents, w32font_draw): Optionally use glyph points.
19100 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
19101 on it. Set format based on information available here.
19102 (add_font_entity_to_list): Identify backend based on opentype_only.
19103
19104 2008-03-02 Andreas Schwab <schwab@suse.de>
19105
19106 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
19107
19108 * coding.c (decode_coding_big5, produce_chars):
19109 Fix typos in last change.
19110
19111 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
19112
19113 * gnu.h: New icon.
19114
19115 2008-03-02 Kenichi Handa <handa@m17n.org>
19116
19117 * coding.c (decode_coding_utf_8): When eol-type of CODING is
19118 `dos', don't decode '\r' if that is the last in the source.
19119 (decode_coding_utf_16, decode_coding_emacs_mule)
19120 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19121 (decode_coding_raw_text, decode_coding_charset): Likewise.
19122 (produce_chars): Don't decode EOL here. Use EMACS_INT.
19123
19124 2008-03-01 Jason Rumney <jasonr@gnu.org>
19125
19126 * w32font.c (w32font_full_name): Report point size for scalable fonts.
19127
19128 2008-03-01 Kim F. Storm <storm@cua.dk>
19129
19130 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
19131
19132 2008-03-01 Jason Rumney <jasonr@gnu.org>
19133
19134 * w32font.c (w32font_full_name): New function.
19135 (w32font_open_internal): Use it.
19136
19137 2008-03-01 Kim F. Storm <storm@cua.dk>
19138
19139 * dispnew.c (line_draw_cost): Fix invalid glyph check.
19140
19141 2008-03-01 Jason Rumney <jasonr@gnu.org>
19142
19143 * font.c (font_unparse_fcname): Increase len when style is a symbol.
19144
19145 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
19146
19147 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
19148 xg_frame_resized when the event is for the edit widget.
19149
19150 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
19151
19152 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
19153 set_char_size.
19154 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
19155 operations on widgets here. Just set frame size if needed.
19156 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
19157 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
19158 (x_wm_set_size_hint): Set size hints on the edit widget only, not
19159 the whole frame.
19160 (xg_create_tool_bar): Move attachment of the tool bar to
19161 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
19162 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
19163
19164 2008-03-01 Jason Rumney <jasonr@gnu.org>
19165
19166 * w32fns.c (w32_msg_pump): Disable debug code.
19167
19168 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19169
19170 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
19171
19172 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
19173
19174 * xdisp.c (next_overlay_string): Don't set
19175 overlay_strings_at_end_processed_p if we're currently reading from
19176 a display string.
19177
19178 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
19179
19180 * xdisp.c (get_overlay_strings_1): Fix typo.
19181
19182 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
19183
19184 * xdisp.c (get_overlay_strings_1): Add missing argument type.
19185
19186 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
19187
19188 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
19189
19190 * xdisp.c (display_mode_element): Cancel the previous change.
19191 (decode_mode_spec): Likewise.
19192 (handle_auto_composed_prop): Don't make composition if it->string
19193 is a string.
19194
19195 2008-02-27 Kim F. Storm <storm@cua.dk>
19196
19197 * lisp.h (GLYPH): Change type from int to struct with separate char
19198 and face_id members.
19199 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
19200 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
19201 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
19202 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
19203 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
19204 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
19205 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
19206 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
19207 handle new Lisp glyph code encoding, either an integer or a cons.
19208
19209 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
19210 (GLYPH_ALIAS): Delete.
19211 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
19212 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
19213 (GLYPH_FROM_CHAR): Replace macro by ...
19214 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
19215
19216 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
19217 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
19218 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
19219 (GLYPH_INVALID_P): New macro.
19220 (spec_glyph_lookup_face): Update prototype.
19221
19222 * dispnew.c (line_draw_cost): Adapt to new glyph type.
19223 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
19224 new glyph code encoding.
19225 (spec_glyph_lookup_face): No return value; update passed glyph instead.
19226 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
19227
19228 * xdisp.c (get_next_display_element, next_element_from_display_vector):
19229 Adapt to new glyph type and new glyph code encoding.
19230
19231 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
19232
19233 * indent.c (current_column, current_column_1, Fmove_to_column)
19234 (compute_motion): Adapt to new glyph code encoding.
19235
19236 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
19237
19238 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
19239
19240 * process.c (wait_reading_process_output): Check for window
19241 changes caused by timers.
19242 Suggested by Johan Bockgård.
19243
19244 2008-02-27 Glenn Morris <rgm@gnu.org>
19245
19246 * emacs.c (USAGE1): Add `--disable-font-backend'.
19247
19248 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
19249
19250 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
19251 is made to the buffer.
19252
19253 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
19254
19255 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
19256 (face_at_string_position):
19257 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
19258 (face_at_string_position):
19259 * xdisp.c (display_string, next_overlay_change):
19260 * buffer.h (overlays_at):
19261 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
19262 Update callers.
19263
19264 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
19265
19266 * editfns.c (Fformat): Doc fix.
19267
19268 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
19269
19270 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
19271 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
19272 (Ffont_otf_alternates, Fquery_font): Doc fixes.
19273
19274 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
19275
19276 * buffer.c (Fbuffer_swap_text): New function.
19277 (syms_of_buffer): Defsubr it.
19278
19279 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
19280
19281 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
19282
19283 2008-02-25 Jason Rumney <jasonr@gnu.org>
19284
19285 * w32font.c (w32font_draw): Draw one character at a time when padding.
19286
19287 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
19288
19289 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
19290 Handle a nil arg. Use run_window_configuration_change_hook.
19291 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
19292 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
19293 Use run_window_configuration_change_hook.
19294
19295 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
19296
19297 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
19298 1-pixel width.
19299
19300 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
19301
19302 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
19303 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
19304 if the glyph in the font is zero pixel with.
19305
19306 * dispextern.h (struct glyph_string): New member padding_p.
19307
19308 * w32font.c (w32font_draw): Pay attention to s->padding_p.
19309
19310 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
19311
19312 * xfont.c (xfont_draw): Pay attention to s->padding_p.
19313
19314 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
19315
19316 * font.c: If the font driver doesn't have `shape' function, return Qnil.
19317
19318 2008-02-25 Jason Rumney <jasonr@gnu.org>
19319
19320 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
19321
19322 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
19323
19324 Allow fine-grained image-cache flushing.
19325 * dispextern.h (struct image): Add `dependencies' field.
19326 (clear_image_caches): Change arg to Lisp_Object.
19327 * image.c (make_image): Initialize `dependencies' field.
19328 (clear_image_cache): Change arg to allow fine-grained flushing.
19329 Perform the flush even if image-cache-eviction-delay is nil.
19330 (clear_image_caches): Change arg to Lisp_Object.
19331 (Fclear_image_cache): Expand meaning of the argument.
19332 (mark_image): Mark `dependencies' field.
19333 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
19334 (lface_hash): Use XHASH rather than XFASTINT.
19335 (face_at_buffer_position): Fix int -> EMACS_INT position.
19336 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
19337 (select_frame_for_redisplay): Remove code duplication.
19338 (redisplay_internal): Adapt arg to call to clear_image_caches.
19339
19340 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
19341
19342 * s/vms4-0.h:
19343 * s/vms4-2.h:
19344 * s/vms4-4.h:
19345 * s/vms5-5.h: Remove, unused.
19346
19347 * s/irix5-2.h:
19348 * s/irix6-0.h:
19349 * s/riscos5.h:
19350 * s/mach-bsd4-3.h:
19351 * m/mips4.h: Remove files for obsolete systems.
19352
19353 * Makefile.in:
19354 * filelock.c:
19355 * unexmips.c:
19356 * m/hp9000s300.h:
19357 * m/iris4d.h:
19358 * s/aix3-1.h:
19359 * s/hpux.h:
19360 * s/msdos.h:
19361 * s/usg5-0.h:
19362 * s/usg5-2-2.h:
19363 * s/usg5-2.h:
19364 * s/usg5-3.h: Remove references to obsolete variables.
19365
19366 * s/irix5-0.h: Remove, move all the contents ...
19367 * s/irix6-5.h: ... here. Simplify.
19368 * config.in: Regenerate.
19369
19370 2008-02-24 Jason Rumney <jasonr@gnu.org>
19371
19372 * w32term.c (x_draw_glyph_string_background): Clear the background
19373 manually when cleartype is in use.
19374 (x_draw_glyph_string_foreground): Draw text transparently when
19375 cleartype is in use.
19376
19377 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
19378 a font into it unless we have to.
19379
19380 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
19381
19382 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
19383 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
19384
19385 2008-02-18 Jason Rumney <jasonr@gnu.org>
19386
19387 * w32fns.c (Fw32_shell_execute): Encode parameters.
19388
19389 2008-02-09 Eli Zaretskii <eliz@gnu.org>
19390
19391 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
19392
19393 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
19394
19395 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
19396
19397 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
19398
19399 * xterm.c (x_set_offset): Don't change the gravity if
19400 CHANGE_GRAVITY is -1.
19401
19402 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
19403
19404 * fileio.c (auto_save_error_occurred): New var.
19405 (auto_save_error): Set it.
19406 (Fdo_auto_save): Don't overwrite the error message if an auto-save
19407 error occurred.
19408
19409 2008-02-23 Eli Zaretskii <eliz@gnu.org>
19410
19411 * w32.c (globals_of_w32): Add initializations for
19412 g_b_init_get_sid_sub_authority and
19413 g_b_init_get_sid_sub_authority_count.
19414
19415 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
19416
19417 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
19418 (font_parse_xlfd): Use them for sanity check.
19419 (Finternal_set_font_style_table): Make sure the table is bijective.
19420
19421 Consolidate the image_cache to the terminal struct.
19422 * termhooks.h (P_): Remove redundant def.
19423 (struct terminal): New field `image_cache'.
19424 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
19425 of FRAME_X_IMAGE_CACHE.
19426 * xterm.h (struct x_display_info): Remove image_cache field.
19427 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
19428 * w32term.h (struct w32_display_info): Remove image_cache field.
19429 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
19430 * macterm.h (struct mac_display_info): Remove image_cache field.
19431 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
19432 * xterm.c (x_term_init):
19433 * w32term.c (w32_term_init):
19434 * macterm.c (mac_term_init): Set the image_cache in the terminal.
19435 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
19436 Remove declarations.
19437 (clear_image_caches, mark_image_cache): New declarations.
19438 * xfaces.c (clear_face_cache):
19439 * xdisp.c (redisplay_internal): Use clear_image_caches.
19440 * image.c (clear_image_cache): Don't check that a frame is on
19441 a window-system before checking if it shares the same cache.
19442 (clear_image_caches): New function.
19443 (Fclear_image_cache): Use it.
19444 (mark_image): Move from allo.c.
19445 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
19446 * alloc.c (mark_image, mark_image_cache): Move to image.c.
19447 (mark_object): Don't call mark_image_cache for frames.
19448 (mark_terminals): Call mark_image_cache.
19449
19450 * lisp.h (Fdelete_terminal): Declare.
19451
19452 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
19453 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
19454 wrong_type_argument.
19455
19456 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
19457
19458 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
19459 malayalam.el, and tamil.el. Add sinhala.el.
19460
19461 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
19462
19463 * xterm.c (x_connection_closed): Consolidate identical tests.
19464 (x_delete_terminal): Don't crash if called via x_connection_closed.
19465
19466 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
19467
19468 * xdisp.c (decode_mode_spec): New arg string.
19469 (display_mode_element): Adjust for the above change.
19470
19471 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
19472
19473 * callint.c (Fcall_interactively): Use AREF.
19474
19475 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
19476
19477 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
19478
19479 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
19480
19481 * xfns.c (Fx_show_tip): Set string to " " if empty.
19482
19483 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
19484
19485 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
19486 with Qt.
19487
19488 2008-02-17 Kenichi Handa <handa@m17n.org>
19489
19490 * ftfont.c (ftfont_shape): Return Lispy number.
19491
19492 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
19493 for GCs.
19494 (Finternal_set_font_selection_order): Call font_update_sort_order
19495 only when enable_font_backend is set.
19496 (realize_x_face): Set face->font_info to that of default face only
19497 when enable_font_backend is set.
19498
19499 * xdisp.c (handle_composition_prop): Set it->c to the fist
19500 character of the composed region.
19501 (fill_composite_glyph_string): Set base_face->font_info to
19502 s->font_info. Get a face for ascii from base_face->ascii_face.
19503 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
19504 with a face already decided.
19505 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
19506 non-negative.
19507 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
19508 call font_prepare_composition unconditionally.
19509
19510 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
19511
19512 * xterm.h (struct x_display_info): New member font.
19513
19514 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
19515 (x_set_mouse_face_gc, x_new_font): Likewise.
19516 (x_term_init): Setup display_info->font.
19517 (x_delete_terminal): Free display_info->font.
19518
19519 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
19520
19521 * ftxfont.c (ftxfont_default_fid): Delete it.
19522 (ftxfont_open): Set xfont->fid to 0.
19523 (ftxfont_end_for_frame): Clear data specific to the frame and the
19524 font-driver.
19525
19526 * xftfont.c (xftfont_default_fid): Delete it.
19527 (xftfont_open): Set xfont->fid to 0.
19528
19529 * fontset.c (FONTSET_OBJLIST): New macro.
19530 (fontset_find_font): Update font-object list of the fontset.
19531 (free_realized_fontset): New function.
19532 (free_face_fontset): Call free_realized_fontset.
19533 (Ffont_info): Call font_close_object only when enable_font_backend
19534 is set.
19535
19536 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
19537 [HAVE_NTGUI]: Include w32term.h.
19538 [MAC_OS]: Include macterm.ch.
19539 (font_otf_ValueRecord): Use make_number.
19540 (font_finish_cache): Fix handling of reference count.
19541 (font_clear_cache): Update num_fonts.
19542 (font_open_entity): Update smallest_char_width and
19543 smallest_font_height of the frame.
19544 (font_close_object): Update num_fonts.
19545 (Fclear_font_cache): Fix finding the target cache data.
19546
19547 2008-02-16 Glenn Morris <rgm@gnu.org>
19548
19549 * fontset.c (Finternal_char_font): Fix compilation warning.
19550
19551 2008-02-16 Eli Zaretskii <eliz@gnu.org>
19552
19553 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
19554 instead of char arrays. Enlarge the size of array passed to
19555 get_token_information.
19556
19557 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
19558 warnings.
19559
19560 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
19561
19562 * .gdbinit: Don't set `args', it breaks gdb --args.
19563
19564 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
19565
19566 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
19567 within a narrowed buffer.
19568
19569 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
19570
19571 * coding.c (decode_coding_object, encode_coding_object):
19572 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
19573
19574 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
19575
19576 * coding.c (coding_set_destination): Use BEG_BYTE rather than
19577 hardcoding 1.
19578 (detect_coding_system):
19579 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
19580 (string_char_to_byte, string_byte_to_char, insert_from_gap):
19581 * insdel.c (insert_from_gap):
19582 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
19583 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
19584 (string_to_multibyte):
19585 * character.c (chars_in_text, multibyte_chars_in_text):
19586 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
19587
19588 * character.h (FETCH_STRING_CHAR_ADVANCE)
19589 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
19590 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
19591 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
19592
19593 * casefiddle.c (casify_region): Only call after-change and composition
19594 functions on the part of the region that was changed.
19595
19596 * keyboard.c (read_avail_input):
19597 * frame.c (Fdelete_frame): Call Fdelete_terminal.
19598
19599 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
19600
19601 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
19602 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
19603
19604 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
19605
19606 * w32menu.c (push_submenu_start, push_submenu_end)
19607 (push_left_right_boundary, push_menu_pane, push_menu_item):
19608 * keyboard.c (read_key_sequence): Don't pass args with side effects
19609 to AREF, it fails when compiling with -DENABLE_CHECKING.
19610
19611 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
19612
19613 * Makefile.in (${lispsource}international/charprop.el):
19614 Delete this target.
19615
19616 * search.c (boyer_moore): Fix incorrect synching of the trunk and
19617 emacs-unicode-2.
19618
19619 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
19620
19621 * terminal.c (Fdelete_terminal): Clean up the `force' path.
19622
19623 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
19624
19625 * frame.c (Qnoelisp): New symbol.
19626 (syms_of_frame): Initialize it.
19627 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
19628 harmless Elisp code, from a strong `force' from x_connection_closed.
19629 * frame.h (Qnoelisp): Declare.
19630 * xterm.c (x_connection_closed): Pass `noelisp'.
19631
19632 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
19633 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
19634 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
19635 rather than `int' for the type of `type'.
19636
19637 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
19638
19639 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
19640
19641 * Makefile.in (GNUC): Remove support for gcc-1.x.
19642
19643 2008-02-10 Richard Stallman <rms@gnu.org>
19644
19645 * lisp.h (ASET): Use AREF, not ASLOT.
19646
19647 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
19648
19649 * lisp.h (ASET): Check bounds.
19650
19651 2008-02-10 Glenn Morris <rgm@gnu.org>
19652
19653 * buffer.c (mode-name): Doc fix.
19654
19655 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
19656
19657 * Makefile.in:
19658 * emacs.c:
19659 * gmalloc.c:
19660 * keyboard.c:
19661 * lisp.h:
19662 * m/ibm370aix.h:
19663 * process.c:
19664 * regex.c:
19665 * s/hpux.h:
19666 * sysdep.c:
19667 * sysselect.h:
19668 * systty.h:
19669 * unexec.c:
19670 * w32term.c:
19671 * xsmfns.c:
19672 * xterm.c: Remove code that deals with obsolete variables.
19673
19674 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
19675
19676 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
19677 nothing else needs it anymore.
19678
19679 2008-02-09 Eli Zaretskii <eliz@gnu.org>
19680
19681 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
19682 instead of unibyte_char_to_multibyte.
19683
19684 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
19685
19686 * s/gnu-linux.h: Remove commented out code.
19687
19688 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
19689
19690 * Makefile.in: Update what RMS says about using autoconf.
19691 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
19692 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
19693 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
19694 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
19695
19696 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
19697
19698 * keymap.c (Fkey_description): Move side effect outside of macro call.
19699
19700 * xfaces.c (Finternal_make_lisp_face):
19701 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
19702
19703 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
19704 (syms_of_fontset): Use ASET.
19705
19706 * fns.c (concat): Move side effect outside of macro call.
19707 (hash_clear): Use ASET.
19708
19709 2008-02-08 Richard Stallman <rms@gnu.org>
19710
19711 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
19712 If FORCE, and frame has a surrogate minibuffer for another frame,
19713 delete the other frame first.
19714
19715 2008-02-07 Timo Savola <timo.savola@iki.fi>
19716
19717 * xterm.c (x_detect_focus_change): Handle embed client message.
19718 (handle_one_xevent): Ditto.
19719 (handle_one_xevent): If embedded and we get a button press/release,
19720 request focus.
19721 (xembed_set_info, xembed_send_message): New functions.
19722 (x_make_frame_visible): Call xembed_set_info if embedded.
19723 (x_make_frame_invisible): Call xembed_set_info if embedded.
19724 (x_term_init): Initialize Xatom_XEMBED.
19725 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
19726 (x_iconify_frame): Ditto.
19727
19728 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
19729 (enum xembed_info, enum xembed_message, enum xembed_focus)
19730 (enum xembed_modifier, enum xembed_accelerator): New.
19731 (xembed_set_info, xembed_send_message): Declare.
19732 (FRAME_X_EMBEDDED_P): New.
19733
19734 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
19735 gtk_plug_new.
19736
19737 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
19738 window ID of a frame.
19739 (x_window): Reparent frame if embedded.
19740 (Fx_create_frame): Don't set border width if embedded.
19741
19742 * emacs.c (USAGE3): Add --parent-id.
19743 (standard_args): Ditto.
19744
19745 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
19746
19747 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
19748
19749 2008-02-07 Jim Meyering <meyering@redhat.com>
19750
19751 Use "do...while (0)", not "if (1)...else" in macro definitions.
19752 The latter provokes a warning from gcc about the empty else, when
19753 followed by ";". Also, without that trailing semicolon, it would
19754 silently swallow up any following statement.
19755 * syntax.h (SETUP_SYNTAX_TABLE)
19756 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
19757 * buffer.h (DECODE_POSITION): Likewise.
19758 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
19759 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
19760 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
19761 (FETCH_CHAR_ADVANCE): Likewise.
19762 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
19763
19764 2008-02-07 Jim Meyering <meyering@redhat.com>
19765
19766 * lread.c [lint]: Don't include <sys/inode.h>.
19767
19768 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
19769
19770 * xselect.c (x_handle_dnd_message):
19771 * xmenu.c (digest_single_submenu, xmenu_show):
19772 * xdisp.c (with_echo_area_buffer_unwind_data)
19773 (format_mode_line_unwind_data, unwind_format_mode_line)
19774 (display_menu_bar):
19775 * eval.c (Ffetch_bytecode):
19776 * doc.c (store_function_docstring):
19777 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
19778 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
19779 * buffer.c (add_overlay_mod_hooklist): Use ASET.
19780
19781 2008-02-07 Kenichi Handa <handa@m17n.org>
19782
19783 * ftxfont.c (ftxfont_open): Don't set
19784 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
19785
19786 * ftfont.c (ftfont_open): Fix previous change.
19787
19788 2008-02-06 Jason Rumney <jasonr@gnu.org>
19789
19790 * w32font.c (w32font_text_extents): Fill in lbearing metric.
19791 Use cached metrics for ASCII characters.
19792 (w32font_open_internal): Don't set font's owning_frame.
19793 Cache metrics for ASCII characters.
19794
19795 * w32font.h (struct w32font_info): Add ascii_metrics.
19796 Remove owning_frame.
19797
19798 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
19799
19800 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
19801 to negative value.
19802
19803 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
19804
19805 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
19806
19807 * charset.c (syms_of_charset): Set QCtest and Qeq.
19808
19809 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
19810
19811 * process.c (Fstart_process):
19812 * callproc.c (Fcall_process): Handle the case where
19813 Funhandled_file_name_directory returns nil.
19814
19815 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
19816 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
19817 * font.c (check_gstring): Use them and AREF to access the vector before
19818 we know it's really a gstring.
19819 (Ffont_shape_text): Fix typo.
19820 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
19821
19822 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
19823 Declare.
19824
19825 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
19826
19827 2008-02-05 Jason Rumney <jasonr@gnu.org>
19828
19829 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
19830 Set smallest_font_height and smallest_char_width in display info.
19831
19832 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
19833
19834 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
19835
19836 2008-02-05 Miles Bader <miles@gnu.org>
19837
19838 * xfaces.c (get_lface_attributes, merge_named_face)
19839 (lookup_named_face, lookup_derived_face, realize_named_face):
19840 Revert 2008-02-01 change by cyd@stupidchicken.com.
19841
19842 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
19843
19844 * fontset.c (Ffontset_info): Handle the case of inhibitting the
19845 fallback fonts.
19846 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
19847
19848 2008-02-04 Jason Rumney <jasonr@gnu.org>
19849
19850 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
19851 set full_name.
19852 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
19853
19854 2008-02-03 Jason Rumney <jasonr@gnu.org>
19855
19856 * makefile.w32-in (OBJ1): Include font.o here.
19857 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
19858
19859 2008-02-02 Jason Rumney <jasonr@gnu.org>
19860
19861 * makefile.w32-in (temacs): Bump EMHEAP to 21.
19862
19863 2008-02-01 Jason Rumney <jasonr@gnu.org>
19864
19865 * s/cygwin.h: Define VIRT_ADDR_VARIES.
19866
19867 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
19868
19869 2008-02-01 Andreas Schwab <schwab@suse.de>
19870
19871 * Makefile.in (shortlisp, lisp): Update for rename of
19872 ../lisp/language/myanmar.el.
19873
19874 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
19875
19876 * xfaces.c (get_lface_attributes): Delete function.
19877 (merge_named_face, lookup_named_face, lookup_derived_face)
19878 (realize_named_face): Call lface_from_face_name directly, and use
19879 the fact that merge_face_vectors does not alter its FROM argument.
19880
19881 2008-02-01 Jason Rumney <jasonr@gnu.org>
19882
19883 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
19884 input in the default locale. Handle non-Unicode multibyte input.
19885
19886 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19887
19888 * fontset.c (reorder_font_vector): Exclude nil elements from the
19889 font group. Don't try multiple fonts.
19890 (fontset_font): Adjust for the above change.
19891 (Finternal_char_font): Return nil if the found font doesn't
19892 contain the character ch.
19893
19894 * Makefile.in (lisp, shortlisp): Add cham.el.
19895
19896 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19897
19898 * font.h (FONTP): Make it return 1 also for a font-object.
19899
19900 * .gdbinit (xfontset): New function.
19901
19902 * font.c (font_find_for_lface): Check if the character C is
19903 supported or not only for the first font.
19904
19905 * fontset.c (reorder_font_vector): Fix typo.
19906 (fontset_find_font): Don't add a font-spec specifying a script.
19907 Use 0 (not Qt) for the indication of empty font-group. Change the
19908 format of RFONT-DEF. Return Qt if no font in the font-group
19909 support the character.
19910 (fontset_font): Adjust for the above change. If no font was
19911 found the character, remember that.
19912 (face_for_char): Adjust for the change of RFONT-DEF.
19913 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
19914 no font for the target.
19915 (Finternal_char_font): Adjust for the change of RFONT-DEF.
19916
19917 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19918
19919 * font.c (font_load_for_face): Handle the case that the font in
19920 face->lface is a string.
19921
19922 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19923
19924 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
19925
19926 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19927
19928 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
19929 Fix previous change. If the frame is not on a window system,
19930 signal an error.
19931
19932 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19933
19934 * coding.c (decode_coding_object, encode_coding_object): Adjust
19935 marker positions after conversion.
19936
19937 * lisp.h (struct Lisp_Marker): New member need_adjustment.
19938
19939 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19940
19941 * font.c (font_find_for_lface): Fix the handling of the return
19942 value of font_has_char.
19943 (Ffont_shape_text): Fix previous change.
19944
19945 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
19946 (fontset_ref_and_range): Delete it.
19947 (fontset_find_font): Call char_table_ref_and_range instead of
19948 FONTSET_REF_AND_RANGE.
19949 (make_fontset): Don't setup font groups of Latin here.
19950 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
19951 (new_fontset_from_font): Make the specified font the default for
19952 all Latin characters.
19953
19954 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19955
19956 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
19957 is on a window system before accessing the fontset of the frame.
19958
19959 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19960
19961 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
19962
19963 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
19964 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
19965
19966 * font.c (Ffont_shape_text): If the font driver doesn't have a
19967 shaper function, make zero-width glyphs to have at least one-pixel
19968 width. Fix setting of `to' field of glyphs.
19969
19970 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19971
19972 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
19973 glyphs.
19974
19975 * font.h (struct font_driver): Improve docstring of member `shape'.
19976
19977 2008-02-01 Kenichi Handa <handa@m17n.org>
19978
19979 * composite.c (syms_of_composite): Fix docstring of
19980 auto-composition-function.
19981
19982 * font.h (LGLYPH_SIZE): New macro.
19983
19984 * font.c (Ffont_fill_gstring): Stop filling when a character not
19985 supported by the font is found.
19986 (Ffont_shape_text): When a shape callback function returns nil,
19987 try at most two more times with larger gstring.
19988 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
19989
19990 * xdisp.c (handle_auto_composed_prop): Change the argument to
19991 auto-composition-function.
19992
19993 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
19994 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
19995 Lispy glyph and store it in the lgstring.
19996
19997 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
19998
19999 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
20000
20001 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20002
20003 * font.c (Ffont_shape_text): Avoid unnecessary composition.
20004
20005 * fontset.c (Vfont_encoding_charset_alist): New variable.
20006 (syms_of_fontset): DEFVAR it.
20007 (reorder_font_vector, fontset_find_font): Optimize for the case of
20008 no need of reordering.
20009 (face_for_char): Map the charset property by
20010 Vfont_encoding_charset_alist.
20011
20012 2008-02-01 Jason Rumney <jasonr@gnu.org>
20013
20014 * w32font.c (logfonts_match): Don't check adstyle here.
20015 (font_matches_spec): Check here against physical font instead.
20016 (add_font_entity_to_list): Avoid some substitutions.
20017
20018 * font.c (font_parse_fcname): Default weight and slant to normal.
20019 (font_score): Prefer normal fonts if weight or slant unspecified.
20020 (font_score) [WINDOWSNT]: Scale weight difference down to closer
20021 match freetype scores.
20022
20023 2008-02-01 Jason Rumney <jasonr@gnu.org>
20024
20025 * w32font.c (w32font_text_extents): Don't use the frame stored in the
20026 font, as it may have been deleted.
20027 (w32_enumfont_pattern_entity): Map generic family to adstyle using
20028 most common hyphenless variation.
20029 (logfonts_match): Check generic family.
20030 (font_matches_spec): Don't check generic family here.
20031 (fill_in_logfont): Set generic family based on adstyle.
20032
20033 * w32font.h (w32font_get_cache): Update declaration.
20034
20035 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20036
20037 * ftfont.c (ftfont_get_cache): Adjust the argument type.
20038
20039 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
20040 If none of the new drivers are available, call font_update_drivers
20041 with the old drivers.
20042
20043 * w32font.c (w32font_get_cache): Adjust the argument type.
20044
20045 * xfont.c (xfont_get_cache): Adjust the argument type.
20046
20047 * font.h (struct font_driver): Change argument type of get_cache.
20048
20049 * xftfont.c (xftfont_start_for_frame): Delete prototype.
20050
20051 * font.c (Ffont_get): Fix arguments to Fassoc.
20052 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
20053 (font_clear_cache): New function.
20054 (font_list_entities, font_matching_entity): Use font_get_cache.
20055 (font_update_drivers): Call font_clear_cache when finishing a driver.
20056
20057 * fontset.c (fontset_find_font): Fix previous change.
20058
20059 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20060
20061 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
20062 dpyinfo->font_table.
20063 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
20064 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
20065
20066 * font.c (font_at): Handle the case that the arg C is negative.
20067 Handle the unibyte case.
20068 (Ffont_at): Call font_at with the arg C -1.
20069
20070 * xdisp.c (handle_auto_composed_prop): Don't get a character at
20071 the position here, and call font_at with the arg C -1.
20072 Don't check the range of the existing composition at the point.
20073
20074 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20075
20076 * fontset.c (fontset_add): New args charset_id and family.
20077 Change caller.
20078 (load_font_get_repertory, fontset_find_font): Assume that
20079 font_spec is always a font-spec object.
20080 (Fset_fontset_font): Always store a font-spec object in a fontset.
20081
20082 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
20083 instead of get_property_and_range.
20084
20085 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20086
20087 * xftfont.c (struct xftfont_info): Delete the member ft_face.
20088 (xftfont_open): Don't keep locking face.
20089 (xftfont_close): Don't unlock face.
20090 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
20091
20092 * fontset.c (fontset_find_font): Don't prefer a font of
20093 supplementary charset.
20094
20095 2008-02-01 Kenichi Handa <handa@m17n.org>
20096
20097 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
20098 script, langsys_tag to langsys, new member script.
20099 (OTF_TAG_STR): Terminate by '\0'.
20100 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
20101 listing to the script specified in that property. Fix arg to
20102 OTF_check_features.
20103
20104 2008-02-01 Jason Rumney <jasonr@gnu.org>
20105
20106 * w32font.h: New file.
20107
20108 * w32font.c: Include it.
20109 (struct w32font_info): Add owning_frame field. Move to w32font.h.
20110 (w32font_open): Set owning_frame.
20111 (w32font_text_extents): Use owning_frame.
20112 (struct font_callback_data): Add opentype_only field.
20113 (add_font_entity_to_list): Use it to filter fonts.
20114 Don't check against full name.
20115 (w32font_list_internal): New function.
20116 (w32font_list): Use it.
20117 (w32font_match_internal): New function.
20118 (w32font_match): Use it.
20119 (w32font_open_internal): New function.
20120 (w32font_open): Use it.
20121 (w32font_get_cache, w32font_close, w32font_has_char)
20122 (w32font_encode_char, w32font_text_extents, w32font_draw):
20123 Make non-static.
20124
20125 * makefile.w32-in (w32font.o): Depend on w32font.h.
20126
20127 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20128
20129 * charset.c (Fdefine_charset_internal): Record a supplementary
20130 charset at the tail of Vcharset_order_list.
20131
20132 * font.c (Ffont_shape_text): Fix the return value.
20133
20134 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
20135
20136 * xdisp.c (handle_auto_composed_prop): Fix previous change.
20137
20138 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20139
20140 * ftfont.c (struct OpenTypeSpec): New struct.
20141 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
20142 (ftfont_get_open_type_spec): New function.
20143 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
20144
20145 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
20146
20147 2008-02-01 Jason Rumney <jasonr@gnu.org>
20148
20149 * w32font.c (add_font_entity_to_list): Compare only the beginning
20150 of full name.
20151
20152 2008-02-01 Kenichi Handa <handa@m17n.org>
20153
20154 * xdisp.c (handle_auto_composed_prop): Simplify the code.
20155 Never return HANDLED_RECOMPUTE_PROPS.
20156
20157 2008-02-01 Kenichi Handa <handa@m17n.org>
20158
20159 * font.c (font_gstring_produce): Delete it.
20160
20161 * composite.h (COMPOSITION_METHOD):
20162 Handle COMPOSITION_WITH_GLYPH_STRING.
20163
20164 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20165
20166 * xfont.c (Qx): Delete.
20167 (syms_of_xfont): Don't initialize Qx.
20168
20169 * composite.h (enum composition_method):
20170 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
20171
20172 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20173
20174 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
20175 (choose_face_font): Accept new form of font-spec.
20176
20177 * frame.h (font_driver_list): Declare it unconditionally.
20178 (struct frame): Define members font_driver_list and font_data_list
20179 unconditionally.
20180
20181 * fontset.c: Include "font.h" unconditionally.
20182 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
20183 (Fset_fontset_font): Accept a font-spec object.
20184
20185 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
20186 PIXEL_SIZE part a wild card.
20187
20188 * dispextern.h (struct glyph_string): Define members clip and
20189 num_clips unconditionally.
20190 (struct face): Define members font_info and extra unconditionally.
20191
20192 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
20193 ftfont_info only when HAVE_LIBOTF is defined.
20194
20195 2008-02-01 Andreas Schwab <schwab@suse.de>
20196
20197 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
20198 and end.
20199
20200 2008-02-01 Jason Rumney <jasonr@gnu.org>
20201
20202 * w32font.c (w32font_driver): Add new fields.
20203
20204 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20205
20206 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
20207 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
20208 (LIBES): Add @M17N_FLT_CFLAGS@.
20209
20210 * composite.c (compose_text): Don't treat the new style
20211 composition specially.
20212
20213 * emacs.c (main): Call syms_of_font unconditionally.
20214
20215 * font.h (FONT_ENTITY_NOT_LOADABLE)
20216 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
20217 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
20218 (struct font_driver): New member shape.
20219 (font_registry_charsets): Extern it.
20220 (font_find_for_lface, font_prepare_composition): Adjust prototype.
20221 (font_otf_capability, font_drive_otf): Delete their externs.
20222
20223 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
20224 (font_charset_alist, font_registry_charsets): Move from xfont.c
20225 and rename.
20226 (font_prop_validate_otf): New function.
20227 (font_property_table): Register it for QCotf.
20228 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
20229 (font_drive_otf): Delete.
20230 (font_prepare_composition): New arg F. Adjust for the change of
20231 lispy gstring.
20232 (font_find_for_lface): New arg C.
20233 (font_load_for_face): Adjust for the change of font_find_for_lface.
20234 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
20235 lispy gstring.
20236 (Ffont_shape_text): New function.
20237 (Fopen_font): If the font size is not given, use 12-pixel.
20238 (Ffont_at): New arg STRING.
20239 (syms_of_font): Initialize font_charset_alist.
20240 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
20241 conditionally.
20242
20243 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
20244 fonts of the same font-spec. Change the format of RFONT-DEF.
20245 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
20246 Adjust for the change of RFONT-DEF.
20247 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
20248
20249 * ftfont.h: New file.
20250
20251 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
20252 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
20253 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
20254 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
20255 font_otf_capability and font_drive_otf, set ftfont_shape.
20256 (ftfont_list): Adjust for the change of :otf property value.
20257 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
20258 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
20259 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
20260 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
20261 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
20262 (otf_gstring, gstring, m17n_flt_initialized): New variables.
20263
20264 * w32term.c (x_draw_composite_glyph_string_foreground):
20265 Adjust for the change of lispy gstring.
20266
20267 * xdisp.c (handle_composition_prop): Adjust for the change of
20268 lispy gstring. Call a function for auto-composition with the
20269 third arg it->window.
20270 (fill_composite_glyph_string): Adjust for the change of lispy string.
20271 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
20272
20273 * xfaces.c (set_font_frame_param): Adjust for the change of
20274 font_find_for_lface.
20275
20276 * xfont.c (x_font_charset_alist): Move to font.c and rename.
20277 (xfont_registry_charsets): Likewise. Change caller.
20278 (syms_of_xfont): Don't handle x_font_charset_alist.
20279
20280 * xftfont.c: Include "ftfont.h".
20281 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
20282 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
20283 (xftfont_close) [HAVE_LIBOTF]: Close otf.
20284 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
20285 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
20286 Set xftfont_driver.shape to xftfont_shape.
20287
20288 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
20289 the change of lispy gstring.
20290
20291 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20292
20293 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
20294
20295 2008-02-01 Jason Rumney <jasonr@gnu.org>
20296
20297 * w32font.c (w32font_draw): Fill background manually.
20298
20299 2008-02-01 Jason Rumney <jasonr@gnu.org>
20300
20301 * font.c (Qfontp): Remove unused symbol.
20302 (QCantialias): New symbol.
20303 (syms_of_font): Define it.
20304 (font_property_table): Set a validator for QCantialias.
20305
20306 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
20307 Define if not already.
20308 (QCfamily): Share with xfaces.c.
20309 (Qstandard, Qsubpixel, Qnatural): New symbols.
20310 (syms_of_w32font): Define them. Don't define QCfamily here.
20311 (w32_antialias_type, lispy_antialias_type): New functions.
20312 (w32_enumfont_pattern_entity): New arg requested_font.
20313 Set antialias parameter if non-default was requested.
20314 (fill_in_logfont): Fill in lfQuality if :antialias specified.
20315
20316 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20317
20318 * lread.c (read1): Undo the previous change.
20319
20320 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
20321
20322 * frame.c (Fdelete_frame): Call font_update_drivers only when
20323 USE_FONT_BACKEND is defined.
20324
20325 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20326
20327 * font.h (struct font_bitmap): New member bits_per_pixel.
20328 (struct font_driver): New members start_for_frame and end_for_frame.
20329 (struct font_data_list): New struct.
20330 (font_put_frame_data, font_get_frame_data): Extern them.
20331
20332 * frame.h (struct frame): New member font_data_list.
20333
20334 * font.c (font_update_drivers): Call driver->start_for_frame and
20335 driver->end_for_frame at proper timings.
20336 (font_put_frame_data, font_get_frame_data): New functions.
20337 (Ffont_spec): Add usage in the docstring.
20338
20339 * frame.c (make_frame): Initialize f->font_data_list to NULL.
20340 (Fdelete_frame): Call font_update_drivers.
20341
20342 * xftfont.c (struct xftface_info): Delete the member xft_draw.
20343 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
20344 (xftfont_get_xft_draw): New function.
20345 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
20346 (xftfont_end_for_frame): New function.
20347 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
20348
20349 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
20350 Change argument. Cache GCs in the per-frame data.
20351 (struct ftxfont_frame_data): New struct.
20352 (ftxfont_draw_bitmap): New arg gc_fore and flush.
20353 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
20354 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
20355 (ftxfont_end_for_frame): New function.
20356 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
20357
20358 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
20359
20360 2008-02-01 Kenichi Handa <handa@m17n.org>
20361
20362 * xselect.c (Vselection_coding_system)
20363 (Vnext_selection_coding_system): Delete them.
20364 (syms_of_xselect): Don't declare selection-coding-system and
20365 next-selection-coding-system. They are declared in select.el.
20366
20367 2008-02-01 Jason Rumney <jasonr@gnu.org>
20368
20369 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
20370
20371 * w32fns.c: Include imm.h.
20372 (get_composition_string_fn, get_ime_context_fn): New optional
20373 system functions.
20374 (globals_of_w32fns): Load them from imm32.dll.
20375 (ignore_ime_char): New flag.
20376 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
20377 WM_IME_ENDCOMPOSITION messages.
20378
20379 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
20380 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
20381
20382 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20383
20384 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
20385 (READCHAR_REPORT_MULTIBYTE): New macro.
20386 (readchar): New 2nd arg MULTIBYTE.
20387 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
20388 Make symbol's name multibyte according to the multibyteness of the
20389 source.
20390
20391 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20392
20393 * xfaces.c (face_for_overlay_string): Call lookup_face with
20394 correct arguments (fix of synching with the trunk).
20395
20396 2008-02-01 Kenichi Handa <handa@m17n.org>
20397
20398 * font.c (font_prop_validate_symbol, font_prop_validate_style)
20399 (font_prop_validate_non_neg, font_prop_validate_spacing):
20400 Delete argument prop_index.
20401 (font_property_table): Change arguments to validater. Change Callers.
20402 (font_lispy_object): Delete.
20403 (font_at): Use font_find_object instead fo font_lispy_object.
20404
20405 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20406
20407 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
20408 and file names.
20409
20410 2008-02-01 Jason Rumney <jasonr@gnu.org>
20411
20412 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
20413 (font_matches_spec): Remove debug output.
20414 (add_font_entity_to_list): Avoid using substituted fonts.
20415
20416 2008-02-01 Jason Rumney <jasonr@gnu.org>
20417
20418 * doc.c (Fsnarf_documentation):
20419 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
20420
20421 2008-02-01 Miles Bader <miles@gnu.org>
20422
20423 * dispextern.h (struct glyph_row): Only define "clip" field if
20424 HAVE_WINDOW_SYSTEM is defined.
20425
20426 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
20427
20428 Fix up multi-tty merge.
20429
20430 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
20431 and indentation.
20432
20433 * xfaces.c (free_realized_face, clear_face_gcs):
20434 Include font_done_for_face in the input_blocked section, just in case.
20435
20436 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
20437 (get_char_face_and_encoding): Undo last change and remove the *other*
20438 duplicate definition (i.e. keep the one that's better scoped and that
20439 includes code for the font-backend).
20440
20441 * terminal.c (create_terminal): Default keyboard_coding to
20442 `no-conversion' and terminal_coding to `undecided'.
20443
20444 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
20445
20446 * fontset.c (free_realized_fontsets): Check that the table entry does
20447 contain a fontset before trying to compare it to `base'.
20448
20449 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
20450 syms_of_charset, and syms_of_coding earlier because init_window_once
20451 now needs Vcoding_system_hash_table to be setup.
20452
20453 * coding.h (default_buffer_file_coding): Remove.
20454
20455 * coding.c (default_buffer_file_coding): Remove.
20456 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
20457 than ->symbol, and use the terminal-local coding system.
20458 (syms_of_coding): Don't setup the coding-systems that are not
20459 terminal-local.
20460 (Fdefine_coding_system_internal): Use XCAR/XCDR.
20461
20462 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
20463 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
20464
20465 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
20466 in chartab.c and were re-added here by mistake.
20467 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
20468
20469 * doc.c (Fsnarf_documentation):
20470 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
20471 src to etc.
20472
20473 * ChangeLog.10: Add mistakenly removed entry.
20474
20475 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
20476
20477 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
20478
20479 2008-02-01 Miles Bader <miles@gnu.org>
20480
20481 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
20482 Add extra args to FACE_FOR_CHAR.
20483
20484 2008-02-01 Kenichi Handa <handa@m17n.org>
20485
20486 * keymap.c (where_is_internal_1): If key is a cons, store the copy
20487 in sequence.
20488
20489 * chartab.c (map_sub_char_table, map_char_table): If the range
20490 contains just one character, call the function with that character
20491 even if the depth is not 3.
20492
20493 2008-02-01 Jason Rumney <jasonr@gnu.org>
20494
20495 * w32font.c (w32font_text_extents): Calculate metrics for the
20496 whole string.
20497
20498 2008-02-01 Jason Rumney <jasonr@gnu.org>
20499
20500 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
20501
20502 2008-02-01 Jason Rumney <jasonr@gnu.org>
20503
20504 * w32term.c (x_set_glyph_string_clipping): Use
20505 get_glyph_string_clip_rects.
20506 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
20507 Adjust for the change of struct glyph_string.
20508
20509 * w32font.c (w32font_draw): Do clipping here.
20510
20511 2008-02-01 Kenichi Handa <handa@m17n.org>
20512
20513 * xftfont.c (xftfont_draw): Adjust for the change of struct
20514 glyph_string.
20515
20516 * xterm.c (x_set_glyph_string_clipping): Use
20517 get_glyph_string_clip_rects.
20518 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
20519 Adjust for the change of struct glyph_string.
20520
20521 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
20522 the resulting clip(s}.
20523 (expose_overlaps): Add arg r. Change callers. Set it to
20524 row->clip temporarily.
20525 (expose_window): Redraw rows overlapping the exposed area.
20526
20527 * dispextern.h (struct glyph_row): New member clip.
20528 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
20529 clip_height, new member clip, and num_clips.
20530
20531 2008-02-01 Kenichi Handa <handa@m17n.org>
20532
20533 * data.c (Fchar_or_string_p): Fix docstring.
20534
20535 2008-02-01 Kenichi Handa <handa@m17n.org>
20536
20537 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
20538 create a temporary XftDraw object.
20539
20540 2008-02-01 Kenichi Handa <handa@m17n.org>
20541
20542 * font.c (Ffontp): Fix docstring.
20543
20544 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
20545 strong evidence of ISO-2022.
20546
20547 2008-02-01 Kenichi Handa <handa@m17n.org>
20548
20549 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
20550 SYNTAX_ENTRY_FOLLOW_PARENT.
20551
20552 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
20553
20554 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
20555 its type.
20556 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
20557 Update to the new type of weak_hash_tables and next_weak.
20558
20559 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
20560 a plain C pointer to Lisp_Hash_Table.
20561
20562 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
20563 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
20564 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
20565 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
20566 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
20567 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
20568 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
20569 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
20570 (GC_EQ): Remove since they've been identical to their non-GC_
20571 alter-egos ever since the markbit was eradicated.
20572
20573 * alloc.c:
20574 * buffer.c:
20575 * buffer.h:
20576 * data.c:
20577 * fileio.c:
20578 * filelock.c:
20579 * fns.c:
20580 * frame.h:
20581 * lisp.h:
20582 * macterm.c:
20583 * print.c:
20584 * process.c:
20585 * w32fns.c:
20586 * w32menu.c:
20587 * w32term.c:
20588 * xfns.c:
20589 * xmenu.c:
20590 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
20591
20592 2008-02-01 Kenichi Handa <handa@m17n.org>
20593
20594 * chartab.c (map_sub_char_table): Make it work for the top-level
20595 char-table. Fix handling of parent char-table.
20596 (map_char_table): Adjust for the above change.
20597
20598 2008-02-01 Jason Rumney <jasonr@gnu.org>
20599
20600 * w32font.c (Qgdi): Rename from Qw32.
20601
20602 2008-02-01 Jason Rumney <jasonr@gnu.org>
20603
20604 * w32bdf.c (get_quoted_string): Make function static.
20605
20606 2008-02-01 Kenichi Handa <handa@m17n.org>
20607
20608 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
20609 bigger ascent and descent than those of the font, use them as
20610 font's ascent and descent.
20611
20612 2008-02-01 Kenichi Handa <handa@m17n.org>
20613
20614 * Makefile.in (${lispsource}international/charprop.el): Move this
20615 target within "#ifdef HAVE_UNIDATA" and "#endif".
20616
20617 2008-02-01 Kenichi Handa <handa@m17n.org>
20618
20619 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
20620 (shortlisp): Add ../lisp/language/tai-viet.el.
20621
20622 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
20623
20624 * Makefile.in (${lispsource}international/charprop.el): Depend on
20625 temacs${EXEEXT}.
20626
20627 2008-02-01 Jason Rumney <jasonr@gnu.org>
20628
20629 * w32font.c (w32font_close): Delete the GDI font object.
20630
20631 * w32menu.c: Include character.h.
20632
20633 * w32proc.c: Likewise.
20634
20635 * w32select.c: Likewise.
20636
20637 * makefile.w32-in (w32proc.o): Depend on character.h.
20638
20639 2008-02-01 Jason Rumney <jasonr@gnu.org>
20640
20641 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
20642
20643 * w32menu.c (syms_of_w32menu): Likewise.
20644
20645 * w32proc.c (syms_of_ntproc): Likewise.
20646
20647 * w32select.c (syms_of_w32select): Likewise.
20648
20649 * w32term.c (syms_of_w32term): Likewise.
20650
20651 2008-02-01 Jason Rumney <jasonr@gnu.org>
20652
20653 * w32font.c (w32font_draw): Delete brush after using it.
20654
20655 2008-02-01 Jason Rumney <jasonr@gnu.org>
20656
20657 * w32font.c (w32font_open): Don't set font_idx.
20658 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
20659 to font settings.
20660 (w32font_draw): Fill background explicitly.
20661
20662 2008-02-01 Jason Rumney <jasonr@gnu.org>
20663
20664 * w32term.c (w32_initialize): Don't call w32font_initialize.
20665
20666 * w32font.c (w32font_info): Remove subranges.
20667 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
20668 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
20669 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
20670 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
20671 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
20672 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
20673 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
20674 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
20675 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
20676 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
20677 New symbols.
20678 (font_callback_data): New struct.
20679 (w32font_list, w32font_match): Use it.
20680 (w32font_open): Don't populate subranges.
20681 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
20682 (w32font_encode_char): Always return unicode code-point as-is.
20683 (w32font_text_extents): Supply a transformation matrix to
20684 GetGlyphOutline. Never look up by glyph index. Avoid looping
20685 twice. Use unicode version of GetTexExtentPoint32 instead of
20686 glyph index version.
20687 (set_fonts_frame): Remove.
20688 (w32_enumfont_pattern_entity): Add frame parameter, use it to
20689 set frame parameter. Use backward compatible fake foundries.
20690 Save generic family in extra slot under QCfamily. Make width slot
20691 constant. Save QCspacing value. Save list of scripts instead of
20692 binary subranges.
20693 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
20694 (add_font_entity_to_list): Use font_callback_data struct. Filter
20695 unwanted fonts.
20696 (add_one_font_entity_to_list): Use font_callback_data struct.
20697 (w32_registry): Default to iso10646_1.
20698 (fill_in_logfont): Use dpi from extra slot. Don't bother with
20699 string font registries. Don't fill in font name if it is a generic
20700 family name, fill family instead. Use spacing, family and script
20701 extra info to fill pitch, family and charset fields.
20702 (list_all_matching_fonts): Use font_callback_data struct.
20703 (unicode_range_for_char): Remove.
20704 (font_supported_scripts): New function.
20705 (w32font_initialize): Remove.
20706 (syms_of_w32font): Update which symbols are defined.
20707
20708 2008-02-01 Jason Rumney <jasonr@gnu.org>
20709
20710 * font.c (font_pixel_size): Reverse assq_no_quit args.
20711
20712 * w32term.h (FONT_WIDTH): Report max width, not average.
20713 (FONT_MAX_WIDTH): Remove.
20714 (FONT_AVG_WIDTH): New macro.
20715
20716 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
20717 redefinition of FONT_WIDTH.
20718
20719 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
20720 (w32_cache_char_metrics): Use FONT_WIDTH.
20721
20722 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
20723
20724 2008-02-01 Jason Rumney <jasonr@gnu.org>
20725
20726 * w32font.c (w32font_open): Make lfHeight negative.
20727
20728 * w32fns.c (x_default_font_parameter): Use new style font name.
20729 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
20730
20731 2008-02-01 Jason Rumney <jasonr@gnu.org>
20732
20733 * w32font.c (QCsubranges): New symbol.
20734 (w32font_open, w32font_has_char): Get subranges from subproperty
20735 of extra.
20736 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
20737 (syms_of_w32font): Define :subranges symbol.
20738
20739 * font.c (font_put_extra): Expose externally.
20740
20741 * font.h (font_put_extra): Move declaration from font.c.
20742
20743 * font.c (Ffont_get): Use font driver to determine otf capability.
20744 (adjust_anchor): Check if driver defines anchor_point before using.
20745
20746 * w32font.c (w32font_open): Handle size, height and pixel_size better.
20747 (w32font_draw): Use options.
20748 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
20749 Fix detection of truetype fonts.
20750 (registry_to_w32_charset): Handle charsets other than iso8859-1
20751 expressed as lisp symbols.
20752 (w32_registry): Express charset as lisp symbol.
20753 (fill_in_logfont): Reverse pixel and point height logic.
20754 Don't set width here. Set quality to default.
20755
20756 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
20757 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
20758
20759 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
20760 Remove redundant loop and allocation.
20761
20762 * makefile.w32-in (font.o, w32font.o): New objects.
20763 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
20764 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
20765
20766 * xdisp.c (fill_composite_glyph_string): Make the first arg to
20767 STORE_XCHARB a valid l-value.
20768
20769 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
20770 calculations for non-Truetype fonts.
20771 (x_draw_glyph_string): Sync with xterm.c.
20772 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
20773 Remove redundant code.
20774 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
20775
20776 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
20777 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
20778
20779 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
20780 (x_to_w32_charset, w32_to_x_charset): Expose externally.
20781
20782 * w32font.c: New file for w32 font backend.
20783
20784 2008-02-01 Kenichi Handa <handa@m17n.org>
20785
20786 * term.c: Don't include "buffer.h" twice.
20787
20788 2008-02-01 Kenichi Handa <handa@m17n.org>
20789
20790 * character.c (Funibyte_string): New function.
20791 (syms_of_character): Defsubr it.
20792
20793 2008-02-01 Jason Rumney <jasonr@gnu.org>
20794
20795 * w32term.c [USE_FONT_BACKEND]:
20796 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
20797 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
20798 (x_draw_glyph_string, x_draw_glyph_string_foreground)
20799 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
20800 (x_free_frame_resources): Sync with xterm.c.
20801
20802 2008-02-01 Andreas Schwab <schwab@suse.de>
20803
20804 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
20805 char-table size.
20806
20807 2008-02-01 Kenichi Handa <handa@m17n.org>
20808
20809 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
20810
20811 2008-02-01 Kenichi Handa <handa@m17n.org>
20812
20813 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
20814 font_otf_gpos, add font_drive_otf.
20815
20816 * fontset.c (fontset_find_font): Pay attention to font size
20817 specified for a font.
20818 (reorder_font_vector): Check contents of font_def.
20819
20820 * font.c (struct otf_list): Delete it.
20821 (otf_list): Make it a lisp variable.
20822 (otf_open): Use lispy otf_list.
20823 (generate_otf_features): Rename from parse_gsub_gpos_spec.
20824 (check_otf_features): New function.
20825 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
20826 New functions.
20827 (font_drive_otf): New function merging font_otf_gsub and
20828 font_otf_gpos.
20829 (font_open_for_lface): New arg spec. Change argument order.
20830 (font_load_for_face): Adjust for the change of font_open_for_lface.
20831 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
20832 Ffont_otf_gpos.
20833 (syms_of_font): Staticpro otf_list. Delete defsubr of
20834 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
20835
20836 * xfaces.c (set_font_frame_param): Adjust for the change of
20837 font_open_for_lface.
20838
20839 * font.h (font_open_for_lface): Adjust prototype.
20840 (struct font_driver): Delete members otf_gsub and otf_gpos, add
20841 member otf_drive.
20842 (font_otf_gsub, font_otf_gpos): Delete externs.
20843 (font_drive_otf): Extern it.
20844
20845 2008-02-01 Kenichi Handa <handa@m17n.org>
20846
20847 * font.c (font_at): If the window W is not on a window system,
20848 return Qnil.
20849
20850 * coding.c (produce_chars, encode_coding): Don't call
20851 insert_from_gap if no characters to produce.
20852
20853 2008-02-01 Kenichi Handa <handa@m17n.org>
20854
20855 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
20856 Fclear_face_cache.
20857
20858 * xfaces.c (face_for_font): Check also face->font==font->font.font.
20859
20860 2008-02-01 Miles Bader <miles@gnu.org>
20861
20862 * emacs.c (main): Change default value of `enable_font_backend' to 1.
20863 Parse "--disable-font-backend" option.
20864 (standard_args): Add "--disable-font-backend" option.
20865
20866 2008-02-01 Kenichi Handa <handa@m17n.org>
20867
20868 * fontset.c (fontset_find_font): New function.
20869 (fontset_font): Use fontset_find_font.
20870 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
20871 Register the specified font for all Latin characters.
20872 (new_fontset_from_font): Register the specified font for all Latin
20873 characters.
20874 (dump_fontset): For a realized fontset, include the base fontset
20875 name in the returned vector.
20876
20877 2008-02-01 Kenichi Handa <handa@m17n.org>
20878
20879 * character.h (CHAR_STRING): Cast C to unsigned on calling
20880 char_string.
20881
20882 * character.c (char_string): Type of arg C changed to unsigned.
20883 Signal an error if C is an invalid character code.
20884
20885 * editfns.c (general_insert_function, Fchar_to_string):
20886 Use CHARACTERP, not INTEGERP.
20887
20888 2008-02-01 Kenichi Handa <handa@m17n.org>
20889
20890 * character.h (MIN_MULTIBYTE_LEADING_CODE)
20891 (MAX_MULTIBYTE_LEADING_CODE): New macros.
20892
20893 * regex.c (analyse_first): Fix for multibyte characters in "case
20894 charset:" and "case categoryspec:".
20895
20896 2008-02-01 Andreas Schwab <schwab@suse.de>
20897
20898 * Makefile.in (LIBES): Move standard libraries to the end.
20899
20900 2008-02-01 Kenichi Handa <handa@m17n.org>
20901
20902 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
20903 nonzero, don't shrink the buffer nextb.
20904
20905 * buffer.h (struct buffer_text): New member inhibit_shrinking.
20906
20907 * coding.c (coding_alloc_by_making_gap): New arg offset.
20908 (alloc_destination): Call coding_alloc_by_making_gap with the arg
20909 offset.
20910 (decode_coding_iso_2022): Update coding->safe_charsets.
20911 (decode_coding_gap): Temporarily set
20912 current_buffer->text->inhibit_shrinking to 1.
20913
20914 2008-02-01 Kenichi Handa <handa@m17n.org>
20915
20916 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
20917 indexing into elements of s->cmp and s->char2b.
20918
20919 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
20920
20921 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
20922
20923 2008-02-01 Kenichi Handa <handa@m17n.org>
20924
20925 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
20926 target_multibyte instead of multibyte.
20927 (re_match_2_internal): Call bcmp_translate with target_multibyte.
20928 (bcmp_translate): Change the argument name from multibyte to
20929 target_multibyte.
20930
20931 2008-02-01 Kenichi Handa <handa@m17n.org>
20932
20933 These changes are to compile a regexp into a pattern that can be
20934 used both for multibyte and unibyte targets.
20935
20936 * Makefile.in (search.o): Depend on charset.h.
20937
20938 * character.c (multibyte_char_to_unibyte_safe): New function.
20939
20940 * search.c: Include "charset.h".
20941 (compile_pattern_1): Delete argument multibyte. Don't set
20942 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
20943 (compile_pattern): Don't compare cp->buf.target_multibyte.
20944 Compare cp->buf.charset_unibyte.
20945 (compile_pattern): Set cp->buf.target_multibyte.
20946
20947 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
20948
20949 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
20950
20951 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
20952 multibyte. Change callers.
20953 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
20954 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
20955 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
20956 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
20957 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
20958 (regex_compile): Make the compiled pattern usable both for
20959 multibyte and unibyte targets.
20960 (analyse_first): Make the fastmap usable both for multibyte and
20961 unibyte targets.
20962 (TRANSLATE_VIA_MULTIBYTE): Delete.
20963 (re_match_2_internal): Pay attention to the case that the
20964 multibyteness of bufp and target may be different.
20965
20966 2008-02-01 Kenichi Handa <handa@m17n.org>
20967
20968 * xdisp.c (x_produce_glyphs): When a font is not found, make the
20969 empty box occupy at least one column width.
20970
20971 2008-02-01 Miles Bader <miles@gnu.org>
20972
20973 * Makefile.in: Remove redundant HAVE_XFT clause.
20974
20975 2008-02-01 Kenichi Handa <handa@m17n.org>
20976
20977 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
20978
20979 2008-02-01 Kenichi Handa <handa@m17n.org>
20980
20981 * fontset.c (Finternal_char_font): Fix for the case of POSITION
20982 being nil.
20983
20984 2008-02-01 Kenichi Handa <handa@m17n.org>
20985
20986 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
20987
20988 2008-02-01 Kenichi Handa <handa@m17n.org>
20989
20990 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
20991
20992 2008-02-01 Kenichi Handa <handa@m17n.org>
20993
20994 * search.c (simple_search): Fix previous change.
20995
20996 2008-02-01 Kenichi Handa <handa@m17n.org>
20997
20998 * xftfont.c (ftfont_font_format): Extern declaration.
20999
21000 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
21001
21002 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
21003 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
21004
21005 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
21006 (ftfont_font_format): Fix previous change.
21007
21008 * font.h (Ffont_xlfd_name): EXFUN it.
21009
21010 * font.c (font_parse_xlfd): Fix the array size of `f'.
21011 (register_font_driver): Use EQ to compare driver->type.
21012
21013 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
21014 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
21015 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
21016
21017 2008-02-01 Kenichi Handa <handa@m17n.org>
21018
21019 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
21020 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
21021
21022 2008-02-01 Kenichi Handa <handa@m17n.org>
21023
21024 * xfont.c (xfont_open): Set font->format.
21025
21026 * xftfont.c (xftfont_open): Set font->format.
21027
21028 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
21029 (ftfont_list): Include FC_FONTFORMAT in FcObject.
21030 (ftfont_open): Set font->format.
21031 (ftfont_font_format): New function.
21032
21033 * font.h (struct font): New member format.
21034
21035 * font.c (Qopentype): New variable.
21036 (syms_of_font): Defsym it.
21037 (Fquery_font): Change the format of the last element of the return
21038 value.
21039
21040 2008-02-01 Kenichi Handa <handa@m17n.org>
21041
21042 * xfns.c (xic_create_xfontset): Try the default fontset name as a
21043 last resort.
21044
21045 2008-02-01 Kenichi Handa <handa@m17n.org>
21046
21047 * coding.c (detect_coding_charset): Fix detection of multi-byte
21048 charset.
21049
21050 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
21051
21052 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
21053
21054 2008-02-01 Kenichi Handa <handa@m17n.org>
21055
21056 * xdisp.c (get_next_display_element): Set it->face_id for the
21057 first component of a composition.
21058 (x_produce_glyphs): Check if the font is changed or not for composition.
21059
21060 2008-02-01 Kenichi Handa <handa@m17n.org>
21061
21062 * fontset.c (Qlatin): New variable.
21063 (syms_of_fontset): Define it as a lisp symbol.
21064 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
21065
21066 2008-02-01 Kenichi Handa <handa@m17n.org>
21067
21068 * font.c (font_unparse_fcname): Pay attention to the case that
21069 some of font property is a null string.
21070
21071 2008-02-01 Kenichi Handa <handa@m17n.org>
21072
21073 * term.c: Include "composite.h".
21074 (encode_terminal_code): Output all components of composition.
21075 Check the size of encode_terminal_src.
21076 (produce_glyphs): For composition, call produce_composite_glyph.
21077 (append_composite_glyph, produce_composite_glyph): New functions.
21078
21079 * xdisp.c (x_produce_glyphs): In handling composition, if a font
21080 is not found, get font_info from the current ascii face.
21081
21082 2008-02-01 Kenichi Handa <handa@m17n.org>
21083
21084 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
21085 buffer-file-name to Qnil before calling insert_from_buffer.
21086
21087 * font.c (font_unparse_fcname): Pay attention to the case that
21088 foundry is a null string.
21089
21090 2008-02-01 Kenichi Handa <handa@m17n.org>
21091
21092 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
21093
21094 * font.c (Qunicode_sip): New variable.
21095 (syms_of_font): Declare it as a Lisp symbol.
21096
21097 * font.h (Qunicode_sip): Extern it.
21098
21099 2008-02-01 Kenichi Handa <handa@m17n.org>
21100
21101 * composite.c (get_composition_id): Pay attention to TAB component.
21102
21103 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
21104 TAB. Adjust for the change of s->char2b which always points to
21105 the first element of allocated memory.
21106
21107 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
21108
21109 * xdisp.c (handle_composition_prop): Set it->c to the first
21110 non-TAB component.
21111 (fill_composite_glyph_string): Change argument.
21112 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
21113 (x_produce_glyphs): Fix handling of left/right padding.
21114
21115 2008-02-01 Kenichi Handa <handa@m17n.org>
21116
21117 * coding.c (detect_coding_system): Fix for handling off
21118 inhibit_iso_escape_detection. Fix for the case that no coding
21119 system is defined for a specific coding category.
21120
21121 2008-02-01 Kenichi Handa <handa@m17n.org>
21122
21123 * font.c (font_matching_entity): Delete unused local var.
21124
21125 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
21126 opening a font.
21127
21128 * fileio.c (Finsert_file_contents): On recovering a file, assume
21129 Unix-like eol.
21130 (choose_write_coding_system): On auto-saving a file, force
21131 Unix-like eol.
21132
21133 * coding.c (setup_coding_system): Fix setting of
21134 coding->common_flags based on eol_type.
21135 (coding_inherit_eol_type): If PARENT is not nil, be sure to
21136 inherit from it.
21137
21138 2008-02-01 Kenichi Handa <handa@m17n.org>
21139
21140 * alloc.c (NSTATICS): Increas to 0x600.
21141
21142 2008-02-01 Kenichi Handa <handa@m17n.org>
21143
21144 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
21145 (ftfont_list): Don't check :name property.
21146 (ftfont_match): New function.
21147 (ftfont_pattern_entity): If the pattern doesn't contain
21148 FC_SPACING, don't assume FC_MONO.
21149
21150 * font.h (struct font_driver): New member `match'.
21151 (font_update_drivers): Adjust prototype.
21152
21153 * font.c (font_parse_fcname, font_parse_name): Don't change :name
21154 property of FONT.
21155 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
21156 them unconditionally.
21157 (font_matching_entity): New function.
21158 (font_open_by_name): Try font_matching_entity if exact match is
21159 not found.
21160 (font_update_drivers): Delete the arg FONT. Return a list of
21161 actually used backends. Don't free faces, font caches here.
21162 Don't store data in frame parameters. Don't call x_set_font.
21163 (Ffont_spec): Store :name property as is.
21164 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
21165 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
21166 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
21167 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
21168 Call font->driver->otf_gsub instead of font_otf_gsub.
21169
21170 * frame.c (x_set_font_backend): Do more works that were done in
21171 font_update_drivers before.
21172
21173 * xfont.c (xfont_match): New function.
21174 (xfont_driver): Set xfont_driver.match to xfont_match.
21175 (xfont_draw): Set font in GC if necessary.
21176
21177 * ftxfont.c (ftxfont_match): New function.
21178 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
21179
21180 * xftfont.c (xftfont_match): New function.
21181 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
21182
21183 2008-02-01 Kenichi Handa <handa@m17n.org>
21184
21185 * font.h (struct font): New member scalable.
21186 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
21187 (font_otf_gsub): Adjust prototype.
21188
21189 * font.c (font_otf_capability): Fix handling of the default langsys.
21190 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
21191 Check the contents of SPEC.
21192 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
21193 (check_gstring): New function.
21194 (REPLACEMENT_CHARACTER): New macro.
21195 (font_otf_gsub): New arg alternate_subst. Be sure to set all
21196 glyph codes of GSTRING.
21197 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
21198 (font_prepare_composition): Set cmp->glyph_len.
21199 (font_open_entity): Set font->scalable.
21200 (Ffont_get): Handle :otf property.
21201 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
21202 functions.
21203 (Fquery_font): Use font->font.full_name.
21204 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
21205 Sfont_otf_alternates.
21206
21207 * ftfont.c (ftfont_open): Set font->font.full_name and
21208 font->font.name properly. Fix calculation of font->font.height
21209 and font->min_width.
21210
21211 * ftxfont.c (ftxfont_create_gcs): New function.
21212 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
21213 (ftxfont_draw_backgrond): Fix filling region.
21214 (ftxfont_default_fid): New function.
21215 (ftxfont_open): Set xfont->fid to the return value of
21216 ftxfont_default_fid.
21217 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
21218 (ftxfont_done_face): Free only GCs that are created by
21219 ftxfont_create_gcs.
21220 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
21221
21222 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
21223 Clip to src->width, etc (not src->clip_XXX).
21224
21225 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
21226 FontBackend frame parameter.
21227
21228 2008-02-01 Kenichi Handa <handa@m17n.org>
21229
21230 * font.h (struct font_driver_list): New member `on'.
21231 (Fclear_font_cache): EXFUN it.
21232 (font_update_drivers): Extern it.
21233
21234 * font.c (font_unparse_fcname): Fix typo (swidth->width).
21235 (font_list_entities): Check driver_list->on.
21236 (register_font_driver): Initialize `on' member to 0.
21237 (font_update_drivers): New function.
21238 (Fclear_font_cache): Check driver_list->on.
21239
21240 * frame.h (Qfont_backend): Extern it.
21241 (x_set_font_backend): Extern it.
21242
21243 * frame.c (Qfont_backend): New variable.
21244 (frame_parms): New element for font-backend.
21245 (x_set_font_backend): New function.
21246
21247 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
21248 FontBackend frame parameter.
21249 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
21250 x_set_font_backend.
21251
21252 * xfont.c (xfont_list): Don't try listing by :name property if the
21253 name is not for XLFD.
21254
21255 2008-02-01 Kenichi Handa <handa@m17n.org>
21256
21257 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
21258 (LGLYPH_SET_TO): New macros.
21259 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
21260 element of G is vector or not.
21261 (font_at): Extern it.
21262
21263 * font.c: Include window.h.
21264 (font_lispy_object): New function.
21265 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
21266 end of valid glyph.
21267 (font_close_object): Fix getting (struct font *).
21268 (font_at): New function.
21269 (Ffont_get): If FONT is a font-object, get entity from it.
21270 (Ffont_make_gstring): Initialize elements of glyphs with nil.
21271 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
21272 range check.
21273 (Ffont_at): New function.
21274 (syms_of_font): Defsubr Sfont_at.
21275
21276 * xdisp.c (it_props): Move the entry for Qauto_composed to just
21277 before the entry for Qcomposition.
21278 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
21279 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
21280 the font in gstring.
21281 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
21282 LGLYPH_FORM (g) to detect the end of valid glyph.
21283 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
21284 we are composing with gstring.
21285
21286 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
21287 Check if adjustment is vector or not.
21288
21289 * Makefile.in (font.o): Make it depends on window.h.
21290
21291 2008-02-01 Kenichi Handa <handa@m17n.org>
21292
21293 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
21294 adjustment is vector or not.
21295
21296 2008-02-01 Miles Bader <miles@gnu.org>
21297
21298 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
21299
21300 2008-02-01 Kenichi Handa <handa@m17n.org>
21301
21302 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
21303 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
21304 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
21305
21306 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
21307 (DEVICE_DELTA): Fix typo.
21308 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
21309 LGLYPH format.
21310
21311 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
21312 the change of LGLYPH format.
21313
21314 2008-02-01 Kenichi Handa <handa@m17n.org>
21315
21316 * ftfont.c (ftfont_list): Fix typo.
21317 (ftfont_build_basic_charsets): Don't include letters with diacritics.
21318
21319 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
21320
21321 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
21322
21323 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
21324 xftface_info is non-NULL.
21325
21326 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
21327
21328 * ftfont.c (ftfont_list): Move misplaced #endif.
21329
21330 2008-02-01 Kenichi Handa <handa@m17n.org>
21331
21332 * ftfont.c (ftfont_list): Pay attention to the case that
21333 FC_CAPABILITY is not defined.
21334
21335 2008-02-01 Kenichi Handa <handa@m17n.org>
21336
21337 * xftfont.c (xftfont_open): Set charset related members to -1.
21338
21339 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
21340 QCname.
21341 (ftfont_open): Set charset related members to -1.
21342
21343 * fontset.c (Votf_script_alist): New variable.
21344 (syms_of_fontset): Initialize it.
21345 (fontset_font): Delete unused variable.
21346
21347 * fontset.h (Votf_script_alist): Extern it.
21348
21349 * font.c (font_find_for_lface): Optimize code.
21350
21351 * font.h (font_close_object, font_merge_old_spec): Extern them.
21352
21353 2008-02-01 Kenichi Handa <handa@m17n.org>
21354
21355 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
21356 (syms_of_font): Initialize them.
21357 (font_pixel_size): Allow float value in dpi.
21358 (font_prop_validate_type): Delete.
21359 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
21360 Change caller.
21361 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
21362 (font_prop_validate_extra): Delete.
21363 (font_prop_validate_spacing): New function.
21364 (font_property_table): Add elements for all known properties.
21365 (get_font_prop_index): Rename from check_font_prop_name. New
21366 argument FROM. Change caller.
21367 (font_prop_validate): Validate all known properties.
21368 (font_put_extra): Delete argument force. Change caller.
21369 (font_expand_wildcards): Make it static. Fix the way of shrinking
21370 the possible range.
21371 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
21372 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
21373 Change caller.
21374 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
21375 (font_parse_fcname): Delete argument merge. Fix parsing of point
21376 size. Don't validate properties values here. Change caller.
21377 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
21378 (font_open_by_name): Delete unused variable.
21379 (Ffont_spec): Likewise. Validate property values.
21380 (Ffont_match_p): New function.
21381
21382 * font.h (QCscalable): Extern it.
21383 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
21384
21385 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
21386
21387 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
21388 (xfont_list_pattern): New function.
21389 (xfont_list): Use xfont_list_pattern.
21390
21391 2008-02-01 Kenichi Handa <handa@m17n.org>
21392
21393 * font.h (Flist_fonts): EXFUN it.
21394
21395 2008-02-01 Jason Rumney <jasonr@gnu.org>
21396
21397 * w32term.c (w32_initialize): Add back smoothing_type and
21398 smoothing_enabled definitions.
21399
21400 2008-02-01 Kenichi Handa <handa@m17n.org>
21401
21402 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
21403 s->face->font on determining underline position.
21404
21405 2008-02-01 Kenichi Handa <handa@m17n.org>
21406
21407 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
21408 (font_has_char): Accept font-object too.
21409 (font_find_for_lface): Try at first with a size specified in face.
21410
21411 2008-02-01 Kenichi Handa <handa@m17n.org>
21412
21413 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
21414 font_open_by_name.
21415
21416 2008-02-01 Kenichi Handa <handa@m17n.org>
21417
21418 * font.h (QCspacing, QCdpi): Extern them.
21419 (enum font_spacing): New enum.
21420 (FONT_PIXEL_SIZE_QUANTUM): New macro.
21421
21422 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
21423 (QCspacing, QCdpi): New variables.
21424 (syms_of_font): Initialize them.
21425 (font_pixel_size): New function.
21426 (font_put_extra): New function.
21427 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
21428 in FONT_EXTRA.
21429 (font_parse_fcname): Handle enumerated values (e.g. bold).
21430 Fix handling font size. Add QCname property that contains only
21431 unknown properties.
21432 (font_score): Change argument. Change caller. Pay attention to
21433 FONT_PIXEL_SIZE_QUANTUM.
21434 (font_sort_entites, font_list_entities, font_find_for_lface)
21435 (font_open_for_lface, font_open_by_name): Fix handling of font size.
21436 (Ffont_spec): Add QCname property that contains only unknown properties.
21437
21438 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
21439 include weight in listing pattern, instead check weight of each
21440 listed font. Don't include scalable in pattern. Pay attention to
21441 FONT_PIXEL_SIZE_QUANTUM.
21442
21443 2008-02-01 Kenichi Handa <handa@m17n.org>
21444
21445 * font.c (font_parse_fcname): Fix parsing of point-size.
21446 (font_unparse_fcname): Produce symbolic names for style properties.
21447 (font_list_entities): Handle float size correctly.
21448 (font_open_by_name): Prefer `normal' property values if the name
21449 doesn't specify them.
21450
21451 * fontset.c (Finternal_char_font): Use font_get_name, not
21452 Ffont_xlfd_name.
21453
21454 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
21455 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
21456 pattern. Don't force scalable.
21457
21458 * xftfont.c (xftfont_open): For generating a name, start from
21459 96-byte buffer.
21460
21461 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
21462
21463 * frame.h (x_new_fontset2): Fix prototype.
21464
21465 2008-02-01 Kenichi Handa <handa@m17n.org>
21466
21467 * font.h (struct font_driver): Delete member parse_name.
21468 (font_match_p, font_get_spec, font_parse_fcname)
21469 (font_unparse_fcname): Extern them.
21470 (font_get_name): Adjust prototype.
21471
21472 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
21473 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
21474 (font_expand_wildcards): Fix handling ENCODING field. Avoid
21475 unnecessary checks for weight, slant, and swidth.
21476 (font_parse_fcname): New function.
21477 (font_unparse_fcname): New function.
21478 (font_parse_name): New function.
21479 (font_match_p): New function.
21480 (font_get_name): Change return value to Lisp string.
21481 (font_get_spec): New function.
21482 (Qunspecified, Qignore_defface): Don't extern them.
21483 (font_find_for_lface): Assume that LFACE is fully specified.
21484 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
21485 object, use it for FACE.
21486 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
21487 driver->parse_name.
21488 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
21489
21490 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
21491 prototype.
21492
21493 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
21494 argument F. Don't call Fnew_fontset. Instead, directly call
21495 make_fontset.
21496
21497 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
21498
21499 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
21500 of x_new_fontset2.
21501
21502 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
21503 (Qsans__serif): New variables.
21504 (ftfont_generic_family_list): New variable.
21505 (syms_of_ftfont): Initialize the above variables.
21506 (ftfont_pattern_entity): Delete argument NAME.
21507 (ftfont_list_generic_family): New function.
21508 (ftfont_parse_name): Delete this function.
21509 (ftfont_list): Try generic family only when FcFontList found no font.
21510 (ftfont_list_family): Fix args to FcObjectSetBuild.
21511
21512 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
21513 object in attrs[LFACE_FONT_INDEX].
21514 (set_lface_from_font_name): Cancel all changes for font-backend.
21515 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
21516 function.
21517 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
21518 font object in QCfont attribute.
21519 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
21520 (realize_default_face) [USE_FONT_BACKEND]: Call
21521 set_lface_from_font_and_fontset.
21522
21523 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
21524 "fixed", and signal error here if no suitable font was found.
21525
21526 * xfont.c (xfont_parse_name): Delete this function.
21527
21528 * xftfont.c (xftfont_open): Change coding style of error
21529 handling. Generate fontconfig's fontname pattern.
21530
21531 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
21532 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
21533
21534 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
21535 Both args FONTSET and FONT_OBJECT must be existing ones.
21536
21537 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21538
21539 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
21540
21541 2008-02-01 Kenichi Handa <handa@m17n.org>
21542
21543 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
21544
21545 * font.h (struct font): Fix typo.
21546
21547 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
21548 XLFD_XXX_INDEX.
21549 (enum xlfd_field_mask): New enum.
21550 (intern_font_field): Changed argument. Change caller. If digits
21551 are followed by non-digits, return a symbol.
21552 (font_expand_wildcards): New function.
21553 (font_parse_xlfd): Fix wildcard handling.
21554 (Ffont_spec): If :name is specified, reflect the info in the other
21555 properties.
21556
21557 * ftfont.c (ftfont_pattern_entity): Fix typo.
21558 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
21559 locale.
21560
21561 2008-02-01 Kenichi Handa <handa@m17n.org>
21562
21563 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
21564
21565 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
21566 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
21567 registry doesn't specify encoding part.
21568 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
21569 (font_open_by_name): At first try parsing the name.
21570 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
21571 as Lisp symbols.
21572
21573 * fontset.c (reorder_font_vector): Pay attention to the case that
21574 the 3rd element of font_def is nil.
21575 (fontset_font): For the default fontset, append one more fontset
21576 elements for a script-based font specification. Don't add script
21577 attribute on finding a font.
21578 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
21579 font name.
21580 (fontset_ascii_font): If a font can't be opened, return nil.
21581
21582 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
21583 (ftfont_pattern_entity): New function.
21584 (ftfont_get_cache): Assume that freetype_font_cache is already
21585 initialized.
21586 (ftfont_list): Handle the case that a file is specified in font
21587 name. Use ftfont_pattern_entity to generate entities.
21588 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
21589 (syms_of_ftfont): Initialize freetype_font_cache.
21590
21591 * xftfont.c (xftfont_open): Make the font name fontconfig's
21592 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
21593 (xftfont_close): Free font->font.name if not NULL.
21594
21595 * xfont.c (xfont_list): If script is specified for a font, return
21596 null_vector.
21597 (xfont_list_family): Declare argument type.
21598
21599 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
21600 name, set LFACE_FONT (lface) to nil.
21601
21602 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
21603 return Qnil.
21604
21605 2008-02-01 Kenichi Handa <handa@m17n.org>
21606
21607 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
21608 (standard_args): Add "-enable-font-backend".
21609
21610 2008-02-01 Kenichi Handa <handa@m17n.org>
21611
21612 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
21613 (struct xftdraw_list, xftdraw_list): Delete them.
21614 (register_xftdraw, check_xftdraw): Delete them.
21615 (xftfont_prepare_face): Don't call register_xftdraw.
21616 (xftfont_done_face): Don't call check_xftdraw.
21617 (xftfont_draw): Get background color only when with_background is
21618 nonzero.
21619
21620 * xfont.c (xfont_encode_char): Fix calculation of char2b.
21621
21622 2008-02-01 Kenichi Handa <handa@m17n.org>
21623
21624 These changes are for the new font handling codes.
21625
21626 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
21627 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
21628 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
21629 (FONTSRC, FONTOBJ): New variables.
21630 (obj): Add $(FONTOBJ).
21631 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
21632 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
21633 @LIBOTF_LIBS@.
21634 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
21635 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
21636
21637 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
21638
21639 * character.h (Vscript_representative_chars): Extern it.
21640
21641 * character.c (Vscript_representative_chars): New variable.
21642 (syms_of_character): Declare it as a Lisp variable.
21643
21644 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
21645 enable_font_backend is nonzero, accept the composition method
21646 COMPOSITION_WITH_GLYPH_STRING.
21647
21648 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
21649 enumeration COMPOSITION_WITH_GLYPH_STRING.
21650
21651 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
21652 members clip_x, clip_y, clip_width, and clip_height.
21653 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
21654
21655 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
21656 --enable-font-backend. Call syms_of_font.
21657
21658 * fns.c (assoc_no_quit): New function.
21659
21660 * fontset.h (FONT_INFO_FROM_FACE): New macro.
21661 (face_for_font, new_fontset_from_font)
21662 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
21663
21664 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
21665 (fontset_font, fontset_ascii, face_for_char)
21666 (make_fontset_for_ascii_face, Ffont_info)
21667 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
21668 is nonzero, use font-backend mechanism.
21669 (find_font_encoding): Make it non-static.
21670 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
21671 New functions.
21672
21673 * frame.h (struct frame): New members resx and resy.
21674 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
21675 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
21676
21677 * frame.c [USE_FONT_BACKEND]: Include "font.h".
21678 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
21679
21680 * lisp.h (assoc_no_quit): Extern it.
21681
21682 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
21683 Through out the file, use FONT_INFO_FROM_FACE instead of
21684 FONT_INFO_FROM_ID, use get_per_char_metric instead of
21685 rif->per_char_metric.
21686 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
21687 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
21688 (get_glyph_face_and_encoding, fill_composite_glyph_string)
21689 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
21690 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
21691 nonzero, use font-backend mechanism.
21692 (get_per_char_metric): New function.
21693
21694 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
21695 (set_lface_from_font_name)
21696 (set_font_frame_param, free_realized_face)
21697 (prepare_face_for_display, clear_face_gcs)
21698 (Finternal_set_font_selection_order, realize_x_face)
21699 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
21700 font-backend mechanism.
21701 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
21702 (load_face_font) [USE_FONT_BACKEND]: Abort.
21703 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
21704 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
21705
21706 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
21707 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
21708 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
21709 nonzero, register all available font drivers. Call
21710 x_default_font_parameter for deciding a font.
21711 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
21712
21713 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
21714 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
21715 (x_set_glyph_string_clipping_exactly)
21716 (x_compute_glyph_string_overhangs)
21717 (x_draw_glyph_string_foreground)
21718 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
21719 (x_free_frame_resources) [USE_FONT_BACKEND]: If
21720 enable_font_backend is nonzero, use font-backend mechanism.
21721 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
21722
21723 2008-02-01 Kenichi Handa <handa@m17n.org>
21724
21725 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
21726 system_eol_type.
21727 (syms_of_coding): Initialize system_eol_type.
21728
21729 * process.c (Fset_process_coding_system): Inherit system's eol
21730 format if necessary.
21731
21732 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21733
21734 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
21735
21736 2008-02-01 Kenichi Handa <handa@m17n.org>
21737
21738 * coding.c (decode_eol): Pay attention to buffer relocation in
21739 del_range_2.
21740 (decode_coding): Call decode_eol before restoring undo_list.
21741
21742 2008-02-01 Kenichi Handa <handa@m17n.org>
21743
21744 * charset.c (Fdefine_charset_internal): Fix setting of
21745 emacs_mule_bytes.
21746
21747 2008-02-01 Kenichi Handa <handa@m17n.org>
21748
21749 * keyboard.c (read_char): Check if C is a character or not before
21750 looking up Vkeyboard_translate_table.
21751
21752 2008-02-01 Kenichi Handa <handa@m17n.org>
21753
21754 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
21755 condition to terminate the loop.
21756
21757 2008-02-01 Kenichi Handa <handa@m17n.org>
21758
21759 * coding.c (produce_composition): Compare charbuf[i] instead of
21760 args[i] against 0.
21761 (Fterminal_coding_system): Use EQ to compare Lisp objects.
21762
21763 2008-02-01 Kenichi Handa <handa@m17n.org>
21764
21765 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
21766 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
21767 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
21768 detect_coding.
21769 (emacs_mule_char): Handle old style (Emacs 20) component character
21770 of a composition.
21771 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
21772 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
21773 composition rule.
21774 (decode_coding_emacs_mule): Handle invalid bytes correctly.
21775
21776 2008-02-01 Kenichi Handa <handa@m17n.org>
21777
21778 * coding.c (encode_coding_ccl): Allocate destination dynamically
21779 when necessary.
21780
21781 2008-02-01 Kenichi Handa <handa@m17n.org>
21782
21783 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
21784 the loop. When quitted, show a proper error message.
21785
21786 2008-02-01 Kenichi Handa <handa@m17n.org>
21787
21788 * xterm.c (x_set_glyph_string_clipping_exactly): Set
21789 src->clip_head and src->clip_tail temporarily instead of src->hl.
21790
21791 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
21792 character sequence.
21793 (Fccl_execute_on_string): Use ASET, not XSET.
21794
21795 2008-02-01 Kenichi Handa <handa@m17n.org>
21796
21797 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
21798
21799 2008-02-01 Kenichi Handa <handa@m17n.org>
21800
21801 * coding.c (decode_coding): Fix the condition of terminating the
21802 decoding loop.
21803
21804 2008-02-01 Kenichi Handa <handa@m17n.org>
21805
21806 * data.c (Faset): On setting a character bigger than 255 in a
21807 unibyte string, signal an error instead of make the string multibyte.
21808
21809 2008-02-01 Kenichi Handa <handa@m17n.org>
21810
21811 * charset.c (map_charset_chars): Fix for ascii-compatible charset
21812 made by a mapping table.
21813
21814 2008-02-01 Kenichi Handa <handa@m17n.org>
21815
21816 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
21817 not.
21818 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
21819 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
21820
21821 * xterm.c (x_draw_composite_glyph_string_foreground): Check
21822 s->face is NULL or not.
21823
21824 2008-02-01 Kenichi Handa <handa@m17n.org>
21825
21826 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
21827 (x_draw_glyph_string): Fix drawing of right_overhang and
21828 left_overhang around/on cursor.
21829
21830 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
21831
21832 2008-02-01 Kenichi Handa <handa@m17n.org>
21833
21834 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
21835
21836 2008-02-01 Kenichi Handa <handa@m17n.org>
21837
21838 * coding.c (Fdefine_coding_system_internal)
21839 (Fdefine_coding_system_alias): Avoid a duplicated element in
21840 Vcoding_system_alist.
21841
21842 2008-02-01 Kenichi Handa <handa@m17n.org>
21843
21844 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
21845
21846 * coding.c (Qcoding_system_define_form): New variable.
21847 (syms_of_coding): Intern and staticpro it.
21848 (Fcoding_system_p): Check Qcoding_system_define_form.
21849 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
21850
21851 * coding.h (CODING_SYSTEM_P): If ID is not available, call
21852 Fcoding_system_p.
21853 (CHECK_CODING_SYSTEM): If ID is not available, call
21854 Fcheck_coding_system.
21855 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
21856 Try also Fcheck_coding_system.
21857
21858 2008-02-01 Kenichi Handa <handa@m17n.org>
21859
21860 * coding.c (code_conversion_restore): GCPRO arg.
21861
21862 2008-02-01 Kenichi Handa <handa@m17n.org>
21863
21864 * character.c (lisp_string_width): Check multibyteness of STRING.
21865
21866 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21867
21868 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
21869 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
21870 (decode_mac_font_name): Use decode_coding_c_string instead of
21871 decode_coding.
21872 (x_load_font): Initialize fontp->fontset to -1. Set
21873 fontp->encoding_type.
21874
21875 2008-02-01 Kenichi Handa <handa@m17n.org>
21876
21877 * search.c (search_buffer): Give up BM search on case-fold-search
21878 if one of a target character has a case-equivalence of different
21879 byte length even if that target character is an ASCII.
21880 (simple_search): Fix calculation of byte length of matched text.
21881 (boyer_moore): Fix handling of case-equivalent multibyte characters.
21882
21883 2008-02-01 Kenichi Handa <handa@m17n.org>
21884
21885 * coding.c (decode_coding): Fix handling of invalid bytes.
21886
21887 2008-02-01 Kenichi Handa <handa@m17n.org>
21888
21889 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
21890 Unicode characters.
21891
21892 2008-02-01 Kenichi Handa <handa@m17n.org>
21893
21894 * coding.c (encode_coding_object): If a pre-write-conversion
21895 function makes a new buffer, kill it.
21896
21897 2008-02-01 Kenichi Handa <handa@m17n.org>
21898
21899 * coding.c (QCascii_compatible_p): New variable.
21900 (syms_of_coding): Initialize it.
21901 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
21902 calling string_char.
21903 (record_conversion_result): Add `default:' case.
21904 (coding_charset_list): Delete unused variable `coding_type'.
21905 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
21906 property in the plist of the coding system.
21907 (Fcoding_system_put): Check QCascii_compatible_p.
21908
21909 2008-02-01 Miles Bader <miles@gnu.org>
21910
21911 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
21912 removed calculation of frame `f', as it's now used.
21913
21914 2008-02-01 Kenichi Handa <handa@m17n.org>
21915
21916 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
21917 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
21918 (UNIDATA): New variable.
21919 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
21920 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
21921 $(RUN_TEMACS) unconditionally.
21922
21923 2008-02-01 Kenichi Handa <handa@m17n.org>
21924
21925 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
21926 (admindir): New variable.
21927 ($(lispsource)international/charprop.el): New target.
21928
21929 2008-02-01 Miles Bader <miles@gnu.org>
21930
21931 * character.c (chars-in-region): Remove obsolete function.
21932 (syms_of_character): Remove its initialization.
21933
21934 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
21935
21936 * w32select.c (validate_coding_system)
21937 (setup_windows_coding_system): New functions.
21938 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
21939 setup_windows_coding_system.
21940 (setup_config, Fw32_get_clipboard_data): Use
21941 validate_coding_system.
21942 (Fx_selection_exists): Move call to setup_config to a place
21943 where signals are allowed.
21944
21945 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
21946 (Fcheck_coding_system): Add declarations.
21947
21948 2008-02-01 Kenichi Handa <handa@m17n.org>
21949
21950 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
21951
21952 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21953
21954 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
21955 string as the second argument for x_new_fontset.
21956
21957 2008-02-01 Kenichi Handa <handa@m17n.org>
21958
21959 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
21960 (encode_coding_object): Use safe_call instead of call2.
21961
21962 2008-02-01 Kenichi Handa <handa@m17n.org>
21963
21964 * fontset.c (Fset_fontset_font): Check family element of a given vector.
21965
21966 * Makefile.in (lisp): Include charprop.el.
21967
21968 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21969
21970 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
21971 Not sure if it's unnecessary.
21972
21973 2008-02-01 Steven Tamm <steventamm@mac.com>
21974
21975 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
21976 some possibly unnecessary fontset checking code that crashed
21977 when creating a new frame.
21978
21979 2008-02-01 Kenichi Handa <handa@m17n.org>
21980
21981 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
21982 lookup_face.
21983
21984 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
21985
21986 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
21987
21988 2008-02-01 Kenichi Handa <handa@m17n.org>
21989
21990 * coding.c: Cancel the change done in HEAD on 2008-02-01.
21991 (coding_charset_list): New function.
21992
21993 * coding.h (coding_charset_list): Extern it.
21994
21995 2008-02-01 Kenichi Handa <handa@m17n.org>
21996
21997 * fontset.c (Fset_fontset_font): Call find_font_encoding with
21998 concatenation of family and registry.
21999
22000 2008-02-01 Kenichi Handa <handa@m17n.org>
22001
22002 * character.h (BYTE8_STRING): Fix typo.
22003
22004 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
22005 string to multibyte (sync to HEAD).
22006
22007 * casefiddle.c (casify_region): Handle changes in byte-length
22008 using replace_range_2 (sync to HEAD).
22009
22010 2008-02-01 Andreas Schwab <schwab@suse.de>
22011
22012 * chartab.c (map_char_table): GCPRO table and arg.
22013
22014 2008-02-01 Kenichi Handa <handa@m17n.org>
22015
22016 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
22017 already at limit.
22018
22019 2008-02-01 Kenichi Handa <handa@m17n.org>
22020
22021 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
22022 instead of fast_c_string_match_ignore_case.
22023 (find_font_encoding): Change argument to Lisp_Object. Use
22024 fast_string_match_ignore_case instead of
22025 fast_c_string_match_ignore_case. Change caller.
22026
22027 2008-02-01 Kenichi Handa <handa@m17n.org>
22028
22029 * xdisp.c (get_next_display_element): In unibyte case, decide to
22030 display in octal form by checking a character by
22031 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
22032
22033 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
22034
22035 * character.c (unibyte_has_multibyte_table): New variable.
22036
22037 * character.h (unibyte_has_multibyte_table): Extern it.
22038 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
22039
22040 2008-02-01 Kenichi Handa <handa@m17n.org>
22041
22042 * coding.c (encode_coding_iso_2022): Fix handling of charset
22043 annotation.
22044
22045 2008-02-01 Kenichi Handa <handa@m17n.org>
22046
22047 * coding.c (setup_coding_system): If coding_system is nil, use
22048 Qundecided.
22049 (Fterminal_coding_system): Return nil if terminal coding system is
22050 `undecided'.
22051 (syms_of_coding): Define coding-system `undecided' here. Setup
22052 terminal_coding as `undecided'.
22053
22054 2008-02-01 Kenichi Handa <handa@m17n.org>
22055
22056 * xdisp.c (message_dolog, set_message_1): Call
22057 unibyte_char_to_multibyte with arg type int.
22058
22059 * lread.c (read1): Fix reading of a char-table.
22060
22061 * print.c (print_object): Include sub char-table in circularities
22062 detection.
22063
22064 2008-02-01 Kenichi Handa <handa@m17n.org>
22065
22066 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
22067 Append the found sequences in car of ARGS instead of prepending.
22068
22069 2008-02-01 Kenichi Handa <handa@m17n.org>
22070
22071 * fileio.c (report_file_error): Make a unibyte string from
22072 strerror (errorno).
22073 (Fsubstitute_in_file_name): Fix the arg to
22074 unibyte_char_to_multibyte. It is evaluated twice.
22075
22076 2008-02-01 Kenichi Handa <handa@m17n.org>
22077
22078 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
22079
22080 2008-02-01 Kenichi Handa <handa@m17n.org>
22081
22082 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
22083 BOM is not found.
22084 (detect_coding, detect_coding_system): Optimization for ISO-2022
22085 when no 8-bit data is found.
22086
22087 2008-02-01 Jason Rumney <jasonr@gnu.org>
22088
22089 * w32fns.c (x_to_w32_font): Update to use new coding struct.
22090
22091 2008-02-01 Kenichi Handa <handa@m17n.org>
22092
22093 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
22094 CHARS.
22095
22096 2008-02-01 Steven Tamm <steventamm@mac.com>
22097
22098 * macterm.c (mac_encode_char): Add charset argument and update
22099 to use encoding_type.
22100 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
22101 switch to pure fontset.
22102 (decode_mac_font_name): Temporarily remove decoding.
22103 (x_font_name_to_mac_font_name): Temporarily remove encoding.
22104 (x_load_font): Temporarily remove encoding.
22105
22106 2008-02-01 Kenichi Handa <handa@m17n.org>
22107
22108 * xfaces.c (Fface_font): If frame is not on a window system,
22109 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
22110 refer to face->font.
22111 (split_font_name_into_vector, build_font_name_from_vector)
22112 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
22113 when HAVE_WINDOW_SYSTEM is defined.
22114
22115 2008-02-01 Kenichi Handa <handa@m17n.org>
22116
22117 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
22118 (x_produce_glyphs): Fix setting of members of cmp in case
22119 cmp->glyph_len is zero.
22120
22121 * fontset.c (Fset_fontset_font): Fix docstring.
22122 (Ffontset_info): Make it backward compatible. New arg ALL.
22123
22124 2008-02-01 Kim F. Storm <storm@cua.dk>
22125
22126 * process.c (read_process_output): Grow decoding_buf when needed;
22127 this could cause a crash in allocate_string and compact_small_strings.
22128
22129 2008-02-01 Kenichi Handa <handa@m17n.org>
22130
22131 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
22132
22133 2008-02-01 Kenichi Handa <handa@m17n.org>
22134
22135 * coding.c (setup_coding_system): Set coding->common_flags
22136 correctly for raw-text.
22137 (consume_chars): On encoding unibyte text by raw-text, don't check
22138 multibyte form.
22139 (encode_coding): On encoding by raw-text, never use translation tables.
22140
22141 * fileio.c (e_write): Short cut for the case of no encoding.
22142
22143 2008-02-01 Kenichi Handa <handa@m17n.org>
22144
22145 * coding.c (detect_coding, detect_coding_system): Delete unused
22146 variables.
22147
22148 2008-02-01 Kenichi Handa <handa@m17n.org>
22149
22150 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
22151 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
22152
22153 2008-02-01 Kenichi Handa <handa@m17n.org>
22154
22155 * coding.c (Ffind_coding_systems_region_internal): Include
22156 raw-text and no-conversion in the result.
22157
22158 2008-02-01 Kenichi Handa <handa@m17n.org>
22159
22160 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
22161 (load_font_get_repertory): Delete unnecessary check of ENCODING of
22162 FONT_DEF.
22163 (font_def_arg, add_arg, from_arg, to_arg): New args.
22164 (set_fontset_font): Change argument.
22165 (Fset_fontset_font): Fix for the case that TARGET is a script
22166 name and charset name.
22167 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
22168
22169 2008-02-01 Kenichi Handa <handa@m17n.org>
22170
22171 * fontset.c (fontset_font): Rename from fontset_face. Change return
22172 value.
22173 (face_suitable_for_char_p, face_for_char): Adjust for the change
22174 of fontset_font.
22175 (make_fontset_for_ascii_face): Fix setting of the fontset element
22176 for ASCII.
22177 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
22178 to get a font name.
22179 (Ffontset_info): Adjust for the change of fontset_font.
22180
22181 * coding.c (emacs_mule_char): Check invalid code more rigidly.
22182
22183 * character.h (LEADING_CODE_LATIN_1_MIN)
22184 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
22185
22186 2008-02-01 Kenichi Handa <handa@m17n.org>
22187
22188 * editfns.c (check_translation): New function.
22189 (Ftranslate_region_internal): Handle M:N mapping.
22190
22191 2008-02-01 Kenichi Handa <handa@m17n.org>
22192
22193 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
22194
22195 2008-02-01 Kenichi Handa <handa@m17n.org>
22196
22197 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
22198 goto invalid_code.
22199 (decode_coding_iso_2022): Fix handling of invalid designation.
22200
22201 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
22202 after calling code_conversion_save.
22203
22204 2008-02-01 Kenichi Handa <handa@m17n.org>
22205
22206 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
22207
22208 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
22209
22210 * fontset.c: Include "intervals.h".
22211 (fontset_face): Fix comparing of Lisp_Objects.
22212 (free_face_fontset, new_fontset_from_font_name): Fix
22213 Lisp_Object/int mixup.
22214
22215 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
22216
22217 * coding.c: Add many prototypes for static functions.
22218 (get_translation_table): Allow max_lookup to be NULL.
22219 (decode_coding, Ffind_coding_systems_region_internal)
22220 (Funencodable_char_position, Fcheck_coding_systems_region): Call
22221 get_translation_table with max_lookup NULL.
22222
22223 2008-02-01 Kenichi Handa <handa@m17n.org>
22224
22225 * coding.c (get_translation_table): Declare it as Lisp_Object.
22226 (LOOKUP_TRANSLATION_TABLE): New macro.
22227 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
22228 instead of CHAR_TABLE_REF.
22229
22230 2008-02-01 Kenichi Handa <handa@m17n.org>
22231
22232 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
22233 annotation data format.
22234 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
22235 Change arguments FROM and TO to single argument NCHARS. Change caller.
22236 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
22237 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
22238 (decode_coding_ccl, decode_coding_charset): Pay attention to
22239 coding->charbuf_used.
22240 (get_translation): New function.
22241 (produce_chars): New arguments translation_table and last_block.
22242 Translate characters here. Return number of carryover chars.
22243 Change caller.
22244 (produce_composition): New argument pos. Change caller.
22245 Adjust for the change of annotation data format.
22246 (produce_charset, produce_annotation): Likewise.
22247 (decode_coding, encode_coding): Don't call translate_chars.
22248 (consume_chars): New arg translation_table. Change caller.
22249 (translate_chars): Delete.
22250 (syms_of_coding): Make translation-table's number of extra slots 2.
22251
22252 2008-02-01 Kenichi Handa <handa@m17n.org>
22253
22254 * search.c (simple_search): Fix setting this_pos_byte in backward
22255 search.
22256
22257 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
22258 byte sequence.
22259 (detect_coding_ccl): Fix setting of the variable valids.
22260
22261 2008-02-01 Kenichi Handa <handa@m17n.org>
22262
22263 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
22264
22265 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
22266
22267 * editfns.c (Ftranslate_region_internal): Rename from
22268 Ftranslate_region. Accept a char-table in TABLE.
22269 (syms_of_editfns): Defsubr Stranslate_region_internal.
22270
22271 * xfaces.c (set_lface_from_font_name): If a font is specified for
22272 a frame, generate a fontset from the font.
22273 (build_scalable_font_name): If the scalable font is requested for
22274 a specific size, don't change that size.
22275 (try_font_list): Try a scalable font also in the case that a
22276 pattern string is specified.
22277
22278 2008-02-01 Kenichi Handa <handa@m17n.org>
22279
22280 * xfaces.c (Fface_font): New optional arg CHARACTER.
22281
22282 2008-02-01 Kenichi Handa <handa@m17n.org>
22283
22284 * charset.h (CHARSET_OFFSET): New macro.
22285
22286 2008-02-01 Kenichi Handa <handa@m17n.org>
22287
22288 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
22289
22290 * fontset.c (fontset_face): Handle the case that repertory is a
22291 char-table.
22292 (find_font_encoding): Return nil for unknown encoding.
22293 (Fset_fontset_font): Ignore a font of unknown encoding.
22294
22295 2008-02-01 Kenichi Handa <handa@m17n.org>
22296
22297 * keymap.c (describe_vector): Handle default value of a char table.
22298
22299 * fontset.c (fontset_face): Handle fallback fonts correctly.
22300 (Ffontset_info): Return infomation about fallback fonts.
22301
22302 2008-02-01 Kenichi Handa <handa@m17n.org>
22303
22304 * fontset.c (FONTSET_DEFAULT): New macro.
22305 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
22306 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
22307 the case that it is nil.
22308 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
22309 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
22310
22311 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
22312 subset or superset.
22313
22314 2008-02-01 Kenichi Handa <handa@m17n.org>
22315
22316 * emacs.c (main): Call init_charset after syms_of_XXX.
22317
22318 * charset.c (Vcharset_map_directory): Delete.
22319 (Vcharset_map_path): New variable.
22320 (load_charset_map_from_file): Use Vcharset_map_path instead.
22321 (init_charset): Initialize Vcharset_map_path.
22322 (syms_of_charset): Delete declaration of "charset-map-directory",
22323 add declaration of "charset-map-path".
22324
22325 2008-02-01 Kenichi Handa <handa@m17n.org>
22326
22327 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
22328 ASCII only string.
22329
22330 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
22331
22332 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
22333 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
22334
22335 2008-02-01 Kenichi Handa <handa@m17n.org>
22336
22337 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
22338
22339 * coding.c (QCmnemonic, QCdefalut_char)
22340 (QCdecode_translation_table, QCencode_translation_table)
22341 (QCpost_read_conversion, QCpre_write_conversion): New variables.
22342 (get_translation_table): Return a list of translation tables if
22343 necessary.
22344 (decode_coding): Call get_translation_table with ENCODEP 0.
22345 (char_encodable_p): If translation_table is non-nil, always call
22346 translate_char.
22347 (Fdefine_coding_system_internal): Accept list of translation
22348 tables as :encode-translation-table and :decode-translation-table.
22349 (Fcoding_system_put): New function.
22350 (syms_of_coding): Declare new symbols. Defsubr
22351 Scoding_system_put.
22352 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
22353 typically JISX0212.
22354
22355 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
22356 when the charset is superset type.
22357
22358 * character.c (translate_char): Accept list of translation tables.
22359
22360 2008-02-01 Kenichi Handa <handa@m17n.org>
22361
22362 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
22363 (CODING_ATTR_TRANS_TBL): New macro.
22364
22365 * coding.c (get_translation_table): New function.
22366 (translate_chars): Fix the bug of skipping annotation data.
22367 (decode_coding, encode_coding): Utilize get_translation_table.
22368 (char_encodable_p, Funencodable_char_position): Translate char if
22369 necessary.
22370 (Ffind_coding_systems_region_internal)
22371 (Fcheck_coding_systems_region): Setup translation table for encode
22372 in a coding system attribute vector in advance.
22373 (Fdefine_coding_system_internal): Allow a symbol as translation
22374 table. For shift-jis type coding system, allow 4th charset.
22375
22376 2008-02-01 Kenichi Handa <handa@m17n.org>
22377
22378 * coding.c (decode_coding_sjis): Check the first byte rigidly.
22379
22380 * xdisp.c (get_next_display_element): Pass -1 as POS to
22381 FACE_FOR_CHAR if displaying a C-string.
22382
22383 2008-02-01 Kenichi Handa <handa@m17n.org>
22384
22385 * composite.c (get_composition_id): Handle xoff and yoff in a
22386 composition rule.
22387
22388 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
22389 (struct composition): New member lbearing and rbearing.
22390
22391 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
22392 (x_get_glyph_overhangs): Handle a composition glyph.
22393 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
22394
22395 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
22396 composition glyph.
22397
22398 2008-02-01 Kenichi Handa <handa@m17n.org>
22399
22400 * print.c: Include charset.h.
22401 (Vprint_charset_text_property): New variable.
22402 (Qdefault): Extern it.
22403 (PRINT_STRING_NON_CHARSET_FOUND)
22404 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
22405 (print_check_string_result): New variable.
22406 (print_check_string_charset_prop): New function.
22407 (print_prune_charset_plist): New variable.
22408 (print_prune_string_charset): New function.
22409 (print_object): Call print_prune_string_charset if
22410 Vprint_charset_text_property is not t.
22411 (print_interval): Print nothing if interval->plist is nil.
22412 (syms_of_print): Declare Vprint_charset_text_property as a lisp
22413 variable. Init and staticpro print_prune_charset_plist.
22414
22415 2008-02-01 Kenichi Handa <handa@m17n.org>
22416
22417 * fontset.c (new_fontset_from_font_name): Use the specified font
22418 for all characters in the new fontset.
22419
22420 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
22421 OBJECT args.
22422
22423 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
22424 OBJECT args for composition too.
22425
22426 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
22427 OBJECT args.
22428
22429 2008-02-01 Kenichi Handa <handa@m17n.org>
22430
22431 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
22432
22433 * fontset.c (reorder_font_vector): Adjust for the change of
22434 FONT_DEF format.
22435 (fontset_face): New arg id. Change caller.
22436 (face_for_char): New args pos and object.
22437 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
22438 (fs_query_fontset): Check NAME by Fassoc too.
22439 (Fset_fontset_font): Allow non-XLFD font name.
22440 (Ffontset_info): Adjust for the change of FONT_DEF format.
22441
22442 * fontset.h (face_for_char): Adjust prototype.
22443
22444 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
22445 (append_space, extend_face_to_end_of_line)
22446 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
22447 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
22448
22449 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
22450 POS and OBJECT args.
22451
22452 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
22453 POS and OBJECT args.
22454
22455 2008-02-01 Jason Rumney <jasonr@gnu.org>
22456
22457 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
22458 of GlobalAlloc'ed memory.
22459
22460 2008-02-01 Kenichi Handa <handa@m17n.org>
22461
22462 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
22463
22464 * charset.h (charset_table_used): Delete extern.
22465
22466 * charset.c (charset_table_used): Make it static.
22467 (map_charset_chars): Fix args to c_function with.
22468
22469 * chartab.c (map_sub_char_table_for_charset): Fix args to
22470 c_function with.
22471
22472 * coding.h (enum coding_result_code): Delete
22473 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
22474
22475 * coding.c (Qinsufficient_source, Qinconsistent_eol)
22476 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
22477 (Vlast_code_conversion_error): New variables.
22478 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
22479 (ONE_MORE_BYTE): Record error if any instead of signaling an
22480 error. If non-ASCII multibyte char is found, return the negative
22481 value of the code. All callers changed to check it.
22482 (ONE_MORE_BYTE_NO_CHECK): Likewise.
22483 (record_conversion_result): New function. Change all codes setting
22484 coding->result to call this function.
22485 (detect_coding_utf_8, decode_coding_utf_8)
22486 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
22487 Don't use the local variable incomplete.
22488 (emacs_mule_char): Change the second arg to `const'.
22489 (decode_coding): Fix of flushing out unprocessed data.
22490 (make_conversion_work_buffer): Fix making of a work buffer.
22491 (decode_coding_object): Return coding->dst_object.
22492
22493 * fontset.c (set_fontset_font): Fix args.
22494
22495 * lisp.h (CHARACTERBITS): Define as 22.
22496
22497 * process.c (send_process): Be sure to set coding->src_multibyte.
22498
22499 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
22500
22501 2008-02-01 Kenichi Handa <handa@m17n.org>
22502
22503 * xdisp.c (handle_auto_composed_prop): Give limit to
22504 Fnext_single_char_property_change.
22505
22506 2008-02-01 Kenichi Handa <handa@m17n.org>
22507
22508 * composite.c (syms_of_composite): Don't make the composition hash
22509 table weak.
22510
22511 * fontset.c (Fset_fontset_font): Fix docstring.
22512
22513 * lisp.h (detect_coding_system): Adjust prototype.
22514
22515 * fileio.c (kill_workbuf_unwind): Delete this function.
22516 (Finsert_file_contents): Adjust the call of detect_coding_system.
22517 Get conversion_buffer by code_conversion_save. Use the macro
22518 CODING_MAY_REQUIRE_DECODING. After decoding, update
22519 coding_system.
22520
22521 * coding.h (make_conversion_work_buffer): Delete extern.
22522 (code_conversion_save): Extern it.
22523
22524 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
22525 (CODING_GET_INFO): Delete argument eol_type. Change callers.
22526 (decode_coding_utf_8): Don't do eol converion.
22527 (detect_coding_utf_16): Check coding->src_chars, not
22528 coding->src_bytes. Add heuristics for those that have no signature.
22529 (decode_coding_emacs_mule, decode_coding_iso_2022)
22530 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
22531 Don't do eol converion.
22532 (adjust_coding_eol_type): Return a new coding system.
22533 (detect_coding): Don't detect eol. Fix for utf-16 detection.
22534 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
22535 each change.
22536 (decode_coding): Pay attention to undo_list. Do eol conversion for
22537 all types of coding-systems (if necessary).
22538 (Vcode_conversion_work_buf_list): Delete it.
22539 (Vcode_conversion_reused_workbuf): Rename from
22540 Vcode_conversion_reused_work_buf.
22541 (Vcode_conversion_workbuf_name): New variable.
22542 (reused_workbuf_in_use): New variable.
22543 (make_conversion_work_buffer): Delete the arg DEPTH.
22544 (code_conversion_restore): Change argument to cons.
22545 (code_conversion_save): Delete the argument BUFFER. Change callers.
22546 (detect_coding_system): New argument src_chars. Change callers.
22547 Fix for utf-16 detection.
22548 (init_coding_once): Don't use ISO_carriage_return.
22549 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
22550 reused_workbuf_in_use.
22551
22552 2008-02-01 Kenichi Handa <handa@m17n.org>
22553
22554 * keymap.c (store_in_keymap): Pay attention to the case that idx
22555 is a cons specifying a character range.
22556
22557 2008-02-01 Kenichi Handa <handa@m17n.org>
22558
22559 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
22560 HANDLED_RECOMPUTE_PROPS.
22561
22562 * coding.c (Fdefine_coding_system_internal): Fix checking of
22563 ascii compatibility.
22564
22565 2008-02-01 Kenichi Handa <handa@m17n.org>
22566
22567 * charset.c (find_charsets_in_text): Delete unused locale variable.
22568 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
22569
22570 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
22571 Resync charset_list to Vemacs_mule_charset_list.
22572
22573 * keymap.c (store_in_keymap): Pay attention to the case that idx
22574 is a cons specifying a character range.
22575
22576 2008-02-01 Kenichi Handa <handa@m17n.org>
22577
22578 * composite.c (update_compositions): Bind inhibit-read-only, etc
22579 to t before calling remove-list-of-text-properties.
22580
22581 * print.c (print_object): Always print ASCII chars as is.
22582
22583 2008-02-01 Kenichi Handa <handa@m17n.org>
22584
22585 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
22586
22587 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
22588 is a char table.
22589
22590 2008-02-01 Kenichi Handa <handa@m17n.org>
22591
22592 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
22593
22594 2008-02-01 Kenichi Handa <handa@m17n.org>
22595
22596 * xfaces.c (set_lface_from_font_name): Fix for the case that
22597 FONTNAME is not fontset name.
22598
22599 2008-02-01 Kenichi Handa <handa@m17n.org>
22600
22601 * fns.c (base64_encode_1): Fix previous change.
22602
22603 2008-02-01 Kenichi Handa <handa@m17n.org>
22604
22605 * fontset.c (set_fontset_font): New function.
22606 (Fset_fontset_font): If a font is specified for a charset, use
22607 map_charset_chars to store the font spec in a fontset.
22608
22609 2008-02-01 Kenichi Handa <handa@m17n.org>
22610
22611 * fontset.c (fontset_face): Create a fallback fontset on demand.
22612 (make_fontset): Don't create a fallback fontset here.
22613 (free_face_fontset): Free a fallback fontset (if any) too.
22614 (n_auto_fontsets): Delete this variable.
22615 (auto_fontset_alist): New variable.
22616 (new_fontset_from_font_name): Check auto_fontset_alist.
22617 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
22618 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
22619 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
22620 Defsubr Sfontset_list_all.
22621
22622 2008-02-01 Kenichi Handa <handa@m17n.org>
22623
22624 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
22625
22626 2008-02-01 Kenichi Handa <handa@m17n.org>
22627
22628 * fontset.c (Fnew_fontset): Check NAME more rigidly.
22629
22630 2008-02-01 Kenichi Handa <handa@m17n.org>
22631
22632 * editfns.c (Fgoto_char): Fix docstring.
22633
22634 2008-02-01 Kenichi Handa <handa@m17n.org>
22635
22636 * insdel.c (insert_from_gap): Adjust intervals correctly.
22637
22638 2008-02-01 Jason Rumney <jasonr@gnu.org>
22639
22640 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
22641 (pfnGetFontUnicodeRanges): New dynamically loaded function.
22642 (w32_initialize): Try to load it.
22643 (x_get_font_repertory): Use it if available.
22644 (w32_encode_char): Add shortcut for unicode output.
22645
22646 * w32fns.c (w32_load_system_font): Default charset to -1.
22647 (x_to_w32_charset): Match all fonts for unicode.
22648 (w32_to_x_charset): New parameter matching. Don't return partial
22649 or wildcard charsets.
22650 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
22651 (w32_codepage_for_font): Return CP_UNICODE for unicode.
22652 (w32_to_x_font): Match charset to real charset.
22653 (enum_font_cb2): Always list unicode versions.
22654
22655 * makefile.w32-in (temacs): Increase EMHEAP.
22656
22657 2008-02-01 Jason Rumney <jasonr@gnu.org>
22658
22659 * w32term.c (w32_encode_char): New charset parameter.
22660 font_info.encoding becomes encoding_type.
22661 (x_get_font_repertory): New function. Warning: stub only!
22662 (x_new_font): Return quickly if font already set.
22663 (x_new_fontset): fontsetname parameter is Lisp_Object.
22664 Use new fs_query_fontset. Try new_fontset_from_font_name.
22665 Use fontset_name for return value.
22666
22667 * w32term.h: Declare x_get_font_repertory.
22668
22669 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
22670 place of find_charset_in_text. Use encode_coding_object in place
22671 of encode_coding.
22672 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
22673 decode_coding.
22674
22675 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
22676 of x_new_fontset.
22677 (w32_load_system_font): Initialize charset as unicode.
22678 font_info.encoding becomes encoding_type.
22679 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
22680 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
22681 (syms_of_w32fns): Set get_font_repertory_func.
22682
22683 * w32console.c: Include character.h. Use terminal_encode_buffer
22684 from term.c.
22685 (write_glyphs): Use new version of encode_terminal_code. Use
22686 encode_coding_object in place of encode_coding.
22687
22688 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
22689 encoding becomes encoding_type.
22690
22691 * term.c (terminal_encode_buffer): Make externally visible.
22692
22693 * makefile.w32-in: Add character.h dependancies.
22694 (character.o, chartab.o): New targets.
22695
22696 2008-02-01 Kenichi Handa <handa@m17n.org>
22697
22698 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
22699 CODING_ID_EOL_TYPE.
22700
22701 2008-02-01 Andreas Schwab <schwab@suse.de>
22702
22703 * coding.c (produce_chars): Revert last change.
22704
22705 2008-02-01 Kenichi Handa <handa@m17n.org>
22706
22707 * charset.h (charset_unicode): Extern it.
22708
22709 * charset.c (string_xstring_p): Check by (C >= 0x100).
22710 (find_charsets_in_text): Change format of the arc CHARSETS. New
22711 arg MULTIBYTE.
22712 (Ffind_charset_region, Ffind_charset_string): Adjust for the
22713 change of find_charsets_in_text.
22714 (Fsplit_char): Fix doc. Never return unknown.
22715
22716 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
22717
22718 * coding.c (Fdefine_coding_system_alias): Update
22719 Vcoding_system_list.
22720
22721 * fontset.c (load_font_get_repertory): Pay attention to the case
22722 that ENCODING of a font is specified by a char-table.
22723
22724 * xterm.c (x_get_font_repertory): Handle the case that the
22725 encoding of font is other than Unicode.
22726
22727 2008-02-01 Kenichi Handa <handa@m17n.org>
22728
22729 * term.c (encode_terminal_code): Don't handle glyph-table. Check
22730 if a character is encodable by the terminal coding system. If
22731 not, produces proper number of `?'s. Update
22732 terminal_encode_buffer and terminal_encode_buf_size if necessary.
22733 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
22734
22735 2008-02-01 Kenichi Handa <handa@m17n.org>
22736
22737 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
22738 variables.
22739 (encode_terminal_code): Change argument. Encode multiple
22740 characters at once. Store the result of encoding in
22741 terminal_encode_buffer.
22742 (write_glyphs, insert_glyphs): Adjust for the change of
22743 encode_terminal_code.
22744 (term_init): Initialize terminal_encode_buffer and
22745 terminal_encode_buf_size.
22746
22747 * coding.c (consume_chars): If coding->src_object is nil, don't
22748 check annotation.
22749
22750 2008-02-01 Kenichi Handa <handa@m17n.org>
22751
22752 * character.c (char_string): Use ASCII_CHAR_P instead of
22753 SINGLE_BYTE_CHAR_P.
22754
22755 2008-02-01 Kenichi Handa <handa@m17n.org>
22756
22757 * xdisp.c (handle_auto_composed_prop): Check if the last
22758 characters of auto-composed region is newly composed with the
22759 following characters.
22760 (handle_composition_prop): Fix checking of point being inside
22761 composition.
22762
22763 2008-02-01 Kenichi Handa <handa@m17n.org>
22764
22765 * fns.c (concat): Don't change multibyteness of the result by
22766 concatenating an 8-bit character.
22767
22768 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
22769 multibyteness of the result when newelt is an 8-bit character.
22770
22771 2008-02-01 Dave Love <fx@gnu.org>
22772
22773 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
22774 EMACS_INT.
22775
22776 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
22777
22778 * xfaces.c (face_numeric_value): Declare dim size_t.
22779 (Finternal_lisp_face_equal_p): Remove unused f.
22780
22781 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
22782 (MATRIX_ROW): Remove unused vars.
22783 (draw_glyphs, x_insert_glyphs, fast_find_position)
22784 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
22785 byte/char counts.
22786
22787 * regex.c (regex_compile): Remove unused var.
22788
22789 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
22790
22791 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
22792 (Faccessible_keymaps, where_is_internal): Remove unused vars.
22793
22794 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
22795
22796 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
22797
22798 * fileio.c (Fwrite_region): Remove unused var.
22799
22800 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
22801 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
22802
22803 * composite.c (Fremove_list_of_text_properties): Declare.
22804
22805 * coding.c (inhibit_pre_post_conversion): Remove (unused).
22806 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
22807 (coding_inherit_eol_type): Remove unused attrs.
22808 (detect_coding): Cast arg of detect_eol.
22809
22810 * charset.c (syms_of_charset): Remove unused var p.
22811 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
22812 byte/char counts.
22813
22814 * casetab.c (set_case_table): Remove unused var.
22815
22816 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
22817 unused vars.
22818
22819 2008-02-01 Dave Love <fx@gnu.org>
22820
22821 * xterm.c (x_bitmap_mask): Declare.
22822
22823 2008-02-01 Dave Love <fx@gnu.org>
22824
22825 * xterm.c (x_term_init): Fix type error.
22826
22827 * lisp.h: Add Funibyte_char_to_multibyte.
22828
22829 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
22830 (Fset_coding_system_priority): Doc fix.
22831
22832 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
22833
22834 * indent.c (check_composition): Make start and end EMACS_INT.
22835
22836 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
22837
22838 * xdisp.c (handle_composition_prop, check_point_in_composition):
22839 Make buffer positions EMACS_INT.
22840
22841 * composite.c (find_composition, run_composition_function)
22842 (update_compositions, Ffind_composition_internal): Make buffer
22843 positions EMACS_INT.
22844
22845 * composite.h (find_composition, update_compositions): Make
22846 position args EMACS_INT.
22847
22848 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
22849
22850 * intervals.c (get_property_and_range):
22851 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
22852
22853 * unexalpha.c: Don't include varargs.h.
22854
22855 2008-02-01 Dave Love <fx@gnu.org>
22856
22857 * coding.h (ENCODE_UTF_8): New.
22858
22859 * Makefile.in (gtkutil.o): Depend on coding.h.
22860
22861 * coding.c (Fset_coding_system_priority): Doc fix.
22862
22863 2008-02-01 Kenichi Handa <handa@m17n.org>
22864
22865 * fileio.c (Finsert_file_contents): Call setup_coding_system in
22866 the case of auto saving.
22867
22868 2008-02-01 Andreas Schwab <schwab@suse.de>
22869
22870 * chartab.c (map_char_table, map_char_table_for_charset): Protect
22871 `range' from GC.
22872
22873 2008-02-01 Kenichi Handa <handa@m17n.org>
22874
22875 * coding.c (decode_coding_sjis): Check bytes more rigidly.
22876
22877 2008-02-01 Kenichi Handa <handa@m17n.org>
22878
22879 * fileio.c (choose_write_coding_system): Return a decided coding system.
22880 (Fwrite_region): Set Vlast_coding_system_used to the return value
22881 of choose_write_coding_system.
22882
22883 2008-02-01 Kenichi Handa <handa@m17n.org>
22884
22885 * charset.c (Fset_charset_priority): Pay attention to duplicated
22886 arguments.
22887
22888 * coding.c (QCcategory): New variable.
22889 (syms_of_coding): Defsym it. Set all elements of
22890 Vcoding_category_table and their symbol values.
22891 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
22892 coding-category-XXX, and coding-category-list.
22893 (Fdefine_coding_system_internal): Add category in the plist.
22894
22895 2008-02-01 Kenichi Handa <handa@m17n.org>
22896
22897 * callproc.c (Fcall_process): Handle carryover correctly.
22898
22899 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
22900 (raw_text_coding_system): Check NILP (coding_system).
22901 (coding_inherit_eol_type): Check NILP (coding_system) and
22902 NILP (parent).
22903 (consume_chars): Fix for the case of raw-text.
22904
22905 * process.c (read_process_output): Handle carryover correctly.
22906
22907 2008-02-01 Dave Love <fx@gnu.org>
22908
22909 * regex.c (re_search_2): Fix last change.
22910
22911 2008-02-01 Kenichi Handa <handa@m17n.org>
22912
22913 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
22914 target_multibyte. Even in a unibyte case, return a converted
22915 multibyte char.
22916 (GET_CHAR_AFTER): New macro.
22917 (PATFETCH): Translate via multibyte char.
22918 (HANDLE_UNIBYTE_RANGE): Delete this macro.
22919 (SETUP_MULTIBYTE_RANGE): New macro.
22920 (regex_compile): Setup compiled code so that its multibyteness
22921 matches that of a target. Fix the handling of "[X-YZ]" using
22922 SETUP_MULTIBYTE_RANGE.
22923 (analyse_first) <charset>: For filling fastmap for all multibyte
22924 characters, don't check by BASE_LEADING_CODE_P.
22925 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
22926 the same as RE_MULTIBYTE_P (bufp) now.
22927 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
22928 (TARGET_CHAR_AND_LENGTH): Delete this macro.
22929 (TRANSLATE_VIA_MULTIBYTE): New macro.
22930 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
22931 It is the same as RE_MULTIBYTE_P (bufp) now.
22932 <exactn>: Translate via multibyte.
22933 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
22934 translate it.
22935 <charset, charset_not>: Fetch a character by
22936 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
22937 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
22938 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
22939 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
22940 by GET_CHAR_AFTER.
22941 (bcmp_translate): Likewise.
22942
22943 * search.c (compile_pattern): Check the member target_multibyte,
22944 not the member multibyte of buf.
22945
22946 * lread.c (read1): While reading a string, set force_singlebyte
22947 and force_multibyte correctly.
22948
22949 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
22950 up of unibyte_to_multibyte_table.
22951
22952 2008-02-01 Kenichi Handa <handa@m17n.org>
22953
22954 * coding.c (setup_coding_system): If coding has
22955 post-read-conversion or pre-write-conversion, set
22956 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
22957 respectively.
22958 (decode_coding_gap): Run post-read-conversion if any.
22959
22960 * fileio.c (Finsert_file_contents): Even if we read into a
22961 unibyte buffer, check if we must decode the result or not.
22962
22963 2008-02-01 Kenichi Handa <handa@m17n.org>
22964
22965 * coding.c (make_conversion_work_buffer): Change the work buffer
22966 name to the same one as that of Emacs 21.
22967
22968 2008-02-01 Kenichi Handa <handa@m17n.org>
22969
22970 * coding.h (make_conversion_work_buffer): Adjust prototype.
22971 (code_conversion_restore): Don't extern it.
22972
22973 * coding.c (detected_mask): Delete unused variable.
22974 (decode_coding_iso_2022): Pay attention to the byte sequence of
22975 CTEXT extended segment, and retain those bytes as is.
22976 (decode_coding_ccl): Delete unused variable `valids'.
22977 (setup_coding_system): Delete unused variable `category'.
22978 (consume_chars): Delete unused variable `category'. Make it work
22979 for non-multibyte case.
22980 (make_conversion_work_buffer): Change argument.
22981 (saved_coding): Delete unused variable.
22982 (code_conversion_restore): Don't check saved_coding->destination.
22983 (code_conversion_save): New function.
22984 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
22985 instead of record_unwind_protect.
22986 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
22987 (detect_coding_system): Delete unused variable `mask'.
22988 (Fdefine_coding_system_internal): Delete unused variable id.
22989
22990 * fileio.c (kill_workbuf_unwind): New function.
22991 (Finsert_file_contents): On replacing, call
22992 make_conversion_work_buffer with correct args, and call
22993 record_unwind_protect with the first arg kill_workbuf_unwind.
22994
22995 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
22996
22997 2008-02-01 Kenichi Handa <handa@m17n.org>
22998
22999 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
23000 (fontset_add): Fix for the case that TO is less than TO1.
23001 (Ffontset_info): Don't use fallback fontset on checking the
23002 default fontset.
23003 (dump_fontset): New function for debugging.
23004
23005 * coding.c (Fdefine_coding_system_internal): Fix for the case that
23006 coding_type is Qcharset.
23007
23008 2008-02-01 Kenichi Handa <handa@m17n.org>
23009
23010 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
23011 (map_char_table): Don't inherit the value from the parent on
23012 initializing VAL. Adjust for the above change.
23013
23014 2008-02-01 Kenichi Handa <handa@m17n.org>
23015
23016 * coding.c (Qsignature, Qendian): Delete these variables.
23017 (syms_of_coding): Don't initialize them.
23018 (CATEGORY_MASK_UTF_16_AUTO): New macro.
23019 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
23020 detect_info->found.
23021 (decode_coding_utf_16): Don't detect BOM here.
23022 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
23023 is NOT utf_16_without_bom.
23024 (setup_coding_system): For a coding system of type utf-16, check
23025 if the attribute :endian is Qbig or not (not nil or not), and set
23026 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
23027 (detect_coding): If coding type is utf-16 and BOM detection is
23028 required, detect it.
23029 (Fdefine_coding_system_internal): For a coding system of type
23030 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
23031
23032 2008-02-01 Kenichi Handa <handa@m17n.org>
23033
23034 * coding.c (coding_set_source): Fix for the case that the current
23035 buffer is different from coding->src_object.
23036 (decode_coding_object): Don't use the conversion work buffer if
23037 DST_OBJECT is a buffer.
23038
23039 2008-02-01 Dave Love <fx@gnu.org>
23040
23041 * lread.c (read_emacs_mule_char) [len==2]: Index
23042 emacs_mule_charset correctly.
23043
23044 2008-02-01 Dave Love <fx@gnu.org>
23045
23046 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
23047 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
23048 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
23049 treated specially.)
23050 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
23051 (detected_mask): Remove Big5 bits.
23052
23053 2008-02-01 Kenichi Handa <handa@m17n.org>
23054
23055 The following changes are to make the font rescaling facility
23056 compatible with Emacs 21.
23057
23058 * xfaces.c (Vface_font_rescale_alist): Rename from
23059 Vface_resizing_fonts.
23060 (struct font_name): Rename member resizing_ratio to rescale_ratio.
23061 (font_rescale_ratio): Rename from font_resizing_ratio.
23062 (split_font_name): Set font->rescale_ratio.
23063 (better_font_p): Pay attention to font->rescale_ratio.
23064 (build_scalable_font_name): Likewise. Change RESX, and RESY
23065 fields.
23066 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
23067
23068 2008-02-01 Kenichi Handa <handa@m17n.org>
23069
23070 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
23071 (Qutf_16_le): Remove these variables.
23072 (syms_of_coding): Don't DEFSYM them.
23073 (decode_coding_utf_16): Fix handling of BOM.
23074 (encode_coding_utf_16): Fix handling of BOM.
23075
23076 2008-02-01 Kenichi Handa <handa@m17n.org>
23077
23078 * fileio.c (Finsert_file_contents): On replacing, before decoding
23079 the file into the work buffer, set point of the work buffer to the end.
23080
23081 2008-02-01 Dave Love <fx@gnu.org>
23082
23083 * coding.c (Fcheck_coding_systems_region): Fix type errors.
23084
23085 2008-02-01 Dave Love <fx@gnu.org>
23086
23087 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
23088 and fix C types.
23089
23090 2008-02-01 Kenichi Handa <handa@m17n.org>
23091
23092 * xdisp.c (SKIP_GLYPHS): New macro.
23093 (set_cursor_from_row): Pay attention to string display properties.
23094
23095 * category.c (copy_category_entry): Fix for the case that RANGE
23096 is an integer.
23097
23098 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
23099
23100 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
23101
23102 2008-02-01 Kenichi Handa <handa@m17n.org>
23103
23104 * charset.c (Fcharset_id_internal): New function.
23105 (syms_of_charset): Defsubr it.
23106
23107 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
23108 with the last arg charset_list acquired from coding.
23109 (Fdefine_coding_system_internal): For ccl-based coding system, fix
23110 the attribute coding_attr_ccl_valids.
23111
23112 * coding.h (enum define_coding_ccl_arg_index): Set the first
23113 member coding_arg_ccl_decoder to coding_arg_max.
23114
23115 * ccl.h (ccl_driver): Adjust prototype.
23116
23117 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
23118 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
23119 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
23120 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
23121 last arg Qnil.
23122
23123 2008-02-01 Kenichi Handa <handa@m17n.org>
23124
23125 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
23126 call encode_char.
23127
23128 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
23129
23130 2008-02-01 Dave Love <fx@gnu.org>
23131
23132 * composite.c (syms_of_composite): Make composition_hash_table weak.
23133
23134 2008-02-01 Kenichi Handa <handa@m17n.org>
23135
23136 * dispextern.h (check_face_attributes, generate_ascii_font_name)
23137 (font_name_registry): Don't extern them.
23138 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
23139
23140 * fontset.h (Qfontset): Don't extern it.
23141 (new_fontset_from_font_name): Extern it.
23142
23143 * fontset.c: Give 8 extra slots to fontset objects.
23144 (Qfontset_info): New variable.
23145 (syms_of_fontset): Defsym it.
23146 (FONTSET_FALLBACK): New macro.
23147 (fontset_face): Try also the default fontset.
23148 (make_fontset): Realize a fallback fontset from the default fontset.
23149 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
23150 using split_font_name_into_vector and build_font_name_from_vector.
23151 (Fset_fontset_font): Access the elements of font_spec by enum
23152 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
23153 name by using split_font_name_into_vector.
23154 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
23155 generate a proper font name from the fontset name. Update
23156 Vfontset_alias_alist.
23157 (n_auto_fontsets): New variable.
23158 (new_fontset_from_font_name): New function.
23159 (Ffont_info): Store the information about fonts generated from the
23160 default fontset in the first extra slot of the returned char-table.
23161
23162 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
23163 (font_name_registry): Delete function.
23164 (split_font_name_into_vector): New function.
23165 (build_font_name_from_vector): New function.
23166 (font_list): The argument REGISTRY is now a list of registry names.
23167 (choose_face_font): If we are choosing an ASCII font, and ATTRS
23168 specifies an explicit font name, return the name as is. Make a
23169 list of registy names.
23170
23171 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
23172 of x_new_fontset.
23173 (Fx_create_frame): Don't call x_new_fontset here. Just use
23174 x_list_fonts to check the existence of fonts.
23175
23176 * xterm.h (x_new_fontset): Adjust prototype.
23177
23178 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
23179 string. Use new_fontset_from_font_name to create a fontset from a
23180 font name.
23181
23182 2008-02-01 Kenichi Handa <handa@m17n.org>
23183
23184 * syntax.c (Vfind_word_boundary_function_table): New name for
23185 Vnext_word_boundary_function_table.
23186 (find-word-boundary-function-table): New name for
23187 next-word-boundary-function-table.
23188
23189 2008-02-01 Dave Love <fx@gnu.org>
23190
23191 * Makefile.in: Fix some dependencies.
23192
23193 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
23194 set it to nil before returning.
23195
23196 * composite.c (update_compositions): Fix type error.
23197
23198 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
23199
23200 2008-02-01 Kenichi Handa <handa@m17n.org>
23201
23202 * xterm.c (x_new_font): Optimize for the case that the font is
23203 already set for the frame.
23204
23205 2008-02-01 Kenichi Handa <handa@m17n.org>
23206
23207 * chartab.c (char_table_ascii): Check if the char table contents
23208 is sub-char-table or not.
23209 (char_table_set, char_table_set_range): Fix argument to
23210 char_table_ascii.
23211
23212 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
23213 (detect_coding_utf_8, detect_coding_utf_16)
23214 (detect_coding_emacs_mule, detect_coding_iso_2022)
23215 (detect_coding_sjis, detect_coding_big5)
23216 (detect_coding_ccl, detect_coding_charset): Change argument MASK
23217 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
23218 sequence is valid in this coding system. Change callers.
23219 (MAX_ANNOTATION_LENGTH): New macro.
23220 (ADD_ANNOTATION_DATA): New macro.
23221 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
23222 ADD_ANNOTATION_DATA. Change the format of annotation data.
23223 (ADD_CHARSET_DATA): New macro.
23224 (emacs_mule_char): New argument ID. Change callers.
23225 (decode_coding_emacs_mule, decode_coding_iso_2022)
23226 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
23227 Produce charset annotation data in coding->charbuf.
23228 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
23229 to charset annotation data in coding->charbuf.
23230 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
23231 coding->common_flags if the coding system is iso-2022 based and
23232 uses designation.
23233 (produce_composition): Adjust for the new annotation data format.
23234 (produce_charset): New function.
23235 (produce_annotation): Handle charset annotation.
23236 (handle_composition_annotation, handle_charset_annotation): New
23237 functions.
23238 (consume_chars): Handle charset annotation. Utilize the above two
23239 functions.
23240 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
23241 buffer, get the deleted text as a string and set
23242 coding->src_object to that string.
23243 (detect_coding, detect_coding_system): Use the new struct
23244 coding_detection_info.
23245
23246 * coding.h (struct coding_detection_info): New structure.
23247 (struct coding_system): Adjust prototype of the member `detector'.
23248 (CODING_ANNOTATE_CHARSET_MASK): New macro.
23249
23250 2008-02-01 Kenichi Handa <handa@m17n.org>
23251
23252 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
23253
23254 2008-02-01 Dave Love <fx@gnu.org>
23255
23256 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
23257 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
23258 to new local and nullify apropos_accumulate before returning.
23259 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
23260
23261 2008-02-01 Kenichi Handa <handa@m17n.org>
23262
23263 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
23264 correctly.
23265
23266 2008-02-01 Dave Love <fx@gnu.org>
23267
23268 * fns.c (Flanginfo): Call synchronize_system_time_locale.
23269
23270 2008-02-01 Kenichi Handa <handa@m17n.org>
23271
23272 The following changes are to make character composition happen
23273 automatically on displaying.
23274
23275 * Makefile.in (lisp, shortlisp): Add composite.elc.
23276
23277 * composite.h (Qauto_composed, Vauto_composition_function)
23278 (Qauto_composition_function): Extern them.
23279
23280 * composite.c (Vcomposition_function_table)
23281 (Qcomposition_function_table): Delete variables.
23282 (Qauto_composed, Vauto_composition_function)
23283 (Qauto_composition_function): New variables.
23284 (run_composition_function): Don't call
23285 compose-chars-after-function.
23286 (update_compositions): Clear `auto-composed' text property.
23287 (compose_chars_in_text): Delete this function.
23288 (syms_of_composite): Staticpro Qauto_composed and
23289 Qauto_composition_function. Declare Vauto_composition_function as
23290 a Lisp variable.
23291
23292 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
23293
23294 * xdisp.c (it_props): Add an entry for Qauto_composed.
23295 (handle_auto_composed_prop): New function.
23296
23297 * xselect.c (selection_data_to_lisp_data): Don't call
23298 compose_chars_in_text.
23299
23300 2008-02-01 Dave Love <fx@gnu.org>
23301
23302 * keyboard.c (read_char): Modify checking around use of
23303 Vkeyboard_translate_table.
23304
23305 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
23306 and fix C types.
23307
23308 2008-02-01 Kenichi Handa <handa@m17n.org>
23309
23310 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
23311 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
23312 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
23313 the case that the last byte is '\r' correctly.
23314 (decode_coding): Flush out the unprocessed data correctly.
23315 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
23316
23317 2008-02-01 Dave Love <fx@gnu.org>
23318
23319 * xterm.c (XTread_socket): Fix changes for defined keysyms.
23320 Add XK_ISO... case.
23321 (xaw_scroll_callback): Revert last change.
23322
23323 2008-02-01 Kenichi Handa <handa@m17n.org>
23324
23325 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
23326
23327 2008-02-01 Kenichi Handa <handa@m17n.org>
23328
23329 * xfaces.c (Vface_resizing_fonts): New variable.
23330 (struct font_name): New member `resizing_ratio'.
23331 (font_resizing_ratio): New function.
23332 (split_font_name): Set font->resizing_ratio.
23333 (better_font_p): Pay attention to font->resizing_ratio.
23334 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
23335 RESX, and RESY fields.
23336 (try_alternative_families): Try scalable fonts if
23337 Vscalable_fonts_allowed is not Qt.
23338 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
23339
23340 2008-02-01 Dave Love <fx@gnu.org>
23341
23342 * xterm.c (xaw_scroll_callback): Cast correctly.
23343
23344 2008-02-01 Dave Love <fx@gnu.org>
23345
23346 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
23347 (lispy_kana_keys): Comment out.
23348 (make_lispy_event) [XK_kana_A]: Comment out.
23349
23350 * xterm.c (xaw_scroll_callback): Cast call_data.
23351 (XTread_socket): Deal with ASCII keysyms.
23352 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
23353
23354 2008-02-01 Dave Love <fx@gnu.org>
23355
23356 * xterm.c (Vx_keysym_table): New.
23357 (syms_of_xterm): Initialize it.
23358 (XTread_socket): Use it.
23359 From head: Eliminate incorrect optimization that tried to avoid
23360 decoding the output of X*LookupString.
23361 (x_get_font_repertory): Delete charset declaration.
23362
23363 2008-02-01 Kenichi Handa <handa@m17n.org>
23364
23365 * coding.c (detect_coding_charset): If only ASCII bytes are found,
23366 return 0.
23367 (Fdefine_coding_system_internal): Setup
23368 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
23369
23370 2008-02-01 Dave Love <fx@gnu.org>
23371
23372 * coding.c (Fcheck_coding_system): Doc fix.
23373
23374 * editfns.c (Finsert_byte): Return a proper value.
23375
23376 2008-02-01 Kenichi Handa <handa@m17n.org>
23377
23378 * coding.c (decode_coding): Fix args to translate_chars. Pay
23379 attention to Vstandard_translation_table_for_decode.
23380 (encode_coding): Fix args to translate_chars. Pay attention to
23381 Vstandard_translation_table_for_encode.
23382
23383 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
23384 SINGLE_BYTE_CHAR_P.
23385
23386 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
23387 not by SINGLE_BYTE_CHAR_P.
23388
23389 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
23390 SINGLE_BYTE_CHAR_P.
23391
23392 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
23393 SINGLE_BYTE_CHAR_P.
23394
23395 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
23396 by SINGLE_BYTE_CHAR_P.
23397
23398 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
23399 SINGLE_BYTE_CHAR_P.
23400
23401 2008-02-01 Dave Love <fx@gnu.org>
23402
23403 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
23404
23405 2008-02-01 Dave Love <fx@gnu.org>
23406
23407 * fns.c (Flanginfo): Fix typo.
23408
23409 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
23410
23411 2008-02-01 Kenichi Handa <handa@m17n.org>
23412
23413 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
23414 (detect_coding_emacs_mule, detect_coding_iso_2022)
23415 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
23416 incomplete byte sequence. Don't update *mask when correctly detected.
23417 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
23418 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
23419 (detect_coding, detect_coding_system): Adjust for the changes above.
23420
23421 2008-02-01 Kenichi Handa <handa@m17n.org>
23422
23423 * character.c (char_string): Rename from
23424 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
23425 (string_char): Rename from string_char.
23426
23427 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
23428 if C is greater than MAX_3_BYTE_CHAR.
23429 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
23430 string_char instead of string_char_with_unification.
23431
23432 2008-02-01 Dave Love <fx@gnu.org>
23433
23434 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
23435
23436 2008-02-01 Kenichi Handa <handa@m17n.org>
23437
23438 * keymap.c (push_key_description): Pay attention to force_multibyte.
23439
23440 * regex.c (re_search_2): Fix for the case of unibyte buffer.
23441
23442 2008-02-01 Dave Love <fx@gnu.org>
23443
23444 * charset.c (define_charset_internal): Rename `supprementary'.
23445
23446 * Makefile.in (lisp, shortlisp): Remove latin-N.
23447
23448 2008-02-01 Dave Love <fx@gnu.org>
23449
23450 * xfns.c (x_window, x_window): Use use_xim.
23451
23452 * xterm.c (use_xim): Initialize.
23453 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
23454 (x_term_init): Maybe set use_xim.
23455
23456 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
23457
23458 2008-02-01 Kenichi Handa <handa@m17n.org>
23459
23460 * search.c (search_buffer): Fix case-fold-search of multibyte
23461 characters.
23462 (boyer_moore): Rename the last argument to char_high_bits.
23463
23464 2008-02-01 Kenichi Handa <handa@m17n.org>
23465
23466 * xdisp.c (display_string): Fix for the case of zero width glyph.
23467
23468 * xfns.c (x_set_font): Change the error message of the case that
23469 x_new_fontset returns Qt.
23470
23471 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
23472 (Finternal_set_lisp_face_attribute): Use signal_error for the
23473 error of invalid fontset.
23474
23475 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
23476 fontset, return Qt.
23477
23478 2008-02-01 Dave Love <fx@gnu.org>
23479
23480 * unexelf.c (unexec): Make .got handling not SGI-specific.
23481
23482 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
23483
23484 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
23485
23486 * keyboard.c (read_key_sequence): Fix type error.
23487
23488 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
23489 type error.
23490
23491 * fontset.c (fontset_add): Return Lisp_Object.
23492
23493 2008-02-01 Dave Love <fx@gnu.org>
23494
23495 * charset.h (charset_ordered_list_tick): Declare extern.
23496
23497 2008-02-01 Kenichi Handa <handa@m17n.org>
23498
23499 The following changes (and some of 2008-02-01 changes of mine) are
23500 for handling syntax, category, and case conversion for unibyte
23501 characters by converting them to multibyte on the fly. With these
23502 changes, we don't have to setup syntax and case tables for unibyte
23503 characters in each language environment.
23504
23505 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
23506 multibyte if necessary.
23507
23508 * bytecode.c (Fbyte_code): Likewise.
23509
23510 * character.h (LEADING_CODE_LATIN_1_MIN)
23511 (LEADING_CODE_LATIN_1_MAX): New macros.
23512 (unibyte_to_multibyte_table): Extern it.
23513 (unibyte_char_to_multibyte): New macro.
23514 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
23515 (CHAR_LEADING_CODE): New macro.
23516 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
23517
23518 * character.c (unibyte_to_multibyte_table): New variable.
23519 (unibyte_char_to_multibyte): Move to character.h and define as macro.
23520 (multibyte_char_to_unibyte): If C is an eight-bit character,
23521 convert it to the corresponding byte value.
23522
23523 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
23524 not 1, signals an error. Update the elements of
23525 unibyte_to_multibyte_table.
23526 (init_charset_once): Initialize unibyte_to_multibyte_table.
23527 (syms_of_charset): Define the charset `iso-8859-1'.
23528
23529 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
23530 as is without converting it to unibyte. In a unibyte buffer,
23531 convert C to multibyte before checking the syntax.
23532
23533 * lisp.h (unibyte_char_to_multibyte): Delete extern.
23534
23535 * minibuf.c (Fminibuffer_complete_word): Use the macro
23536 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
23537
23538 * regex.h (struct re_pattern_buffer): New member target_multibyte.
23539
23540 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
23541 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
23542 that is zero, convert an eight-bit char to multibyte.
23543 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
23544 non-emacs case.
23545 (PATFETCH): Convert an eight-bit char to multibyte.
23546 (HANDLE_UNIBYTE_RANGE): New macro.
23547 (regex_compile): Setup the compiled pattern for multibyte chars
23548 even if the given regex string is unibyte. Use PATFETCH_RAW
23549 instead of PATFETCH in many places. To handle `charset'
23550 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
23551 only for ASCII chars.
23552 (analyse_first) <exactn>: Simplify because the compiled pattern
23553 is multibyte.
23554 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
23555 <charset>: Use CHAR_LEADING_CODE to get leading codes.
23556 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
23557 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
23558 multibyte always 1.
23559 (re_search_2): In emacs, set the locale variable multibyte to 1,
23560 otherwise to 0. New local variable target_multibyte. Check it
23561 to decide the multibyteness of STR1 and STR2. If
23562 target_multibyte is zero, convert unibyte chars to multibyte
23563 before translating and checking fastmap.
23564 (TARGET_CHAR_AND_LENGTH): New macro.
23565 (re_match_2_internal): In emacs, set the locale variable multibyte
23566 to 1, otherwise to 0. New local variable target_multibyte. Check
23567 it to decide the multibyteness of STR1 and STR2. Use
23568 TARGET_CHAR_AND_LENGTH to fetch a character from D.
23569 <charset, charset_not>: If multibyte is nonzero, check fastmap
23570 only for ASCII chars. Call bcmp_translate with
23571 target_multibyte, not with multibyte.
23572 <begline>: Declare the local variable C as `unsigned'.
23573 (bcmp_translate): Change the last arg name to target_multibyte.
23574
23575 * search.c (compile_pattern_1): Don't adjust the multibyteness of
23576 the regexp pattern and the matching target. Set cp->buf.multibyte
23577 to the multibyteness of the regexp pattern. Set
23578 cp->but.target_multibyte to the multibyteness of the matching target.
23579 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
23580 FETCH_STRING_CHAR_ADVANCE.
23581 (Freplace_match): Convert unibyte chars to multibyte.
23582
23583 * syntax.c (char_quoted, back_comment, scan_words)
23584 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
23585 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
23586 unibyte chars to multibyte.
23587 (skip_chars): Delete the arg syntaxp, and move the code for
23588 handling syntaxes to skip_syntaxes. Change callers.
23589 Fix the case that the multibyteness of STRING and the current
23590 buffer doesn't match.
23591 (skip_syntaxes): New function.
23592 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
23593 SINGLE_BYTE_CHAR_P.
23594
23595 2008-02-01 Kenichi Handa <handa@m17n.org>
23596
23597 * xfaces.c (QCfontset): New variable.
23598 (LFACE_FONTSET): New macro.
23599 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
23600 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
23601 (Finternal_set_lisp_face_attribute)
23602 (Finternal_get_lisp_face_attribute): Handle QCfontset.
23603 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
23604 check also LFACE_FONTSET_INDEX.
23605 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
23606 attrs[LFACE_FONT_INDEX].
23607 (syms_of_xfaces): Intern and staticpro QCfontset.
23608
23609 * dispextern.h (enum lface_attribute_index): New member
23610 LFACE_FONTSET_INDEX.
23611
23612 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
23613
23614 2008-02-01 Kenichi Handa <handa@m17n.org>
23615
23616 * coding.c (coding_set_destination): Fix coding->destination for
23617 the case converting a region.
23618 (encode_coding_utf_8): Encode eight-bit chars as single byte.
23619 (encode_coding_object): Fix coding->dst_pos and
23620 coding->dst_pos_byte for the case converting a region.
23621
23622 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
23623
23624 * character.h (BYTE8_STRING): New macro.
23625
23626 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
23627
23628 2008-02-01 Kenichi Handa <handa@m17n.org>
23629
23630 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
23631 characters by octal form.
23632
23633 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
23634
23635 * buffer.h (_fetch_multibyte_char_len): Delete extern.
23636 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
23637 _fetch_multibyte_char_len.
23638 (FETCH_CHAR_AS_MULTIBYTE): New macro.
23639
23640 * casetab.c (set_canon, set_identity, shuffle): Simplify.
23641
23642 * casefiddle.c (casify_object): Simplify. Handle the case that
23643 the case conversion change the byte length.
23644 (casify_region): Likewise.
23645
23646 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
23647
23648 * character.c (_fetch_multibyte_char_len): Delete this variable.
23649 (syms_of_character): Setup Vprintable_chars.
23650
23651 * editfns.c (Fchar_equal): Fix for the unibyte case.
23652 (Finsert_byte): New function.
23653 (syms_of_editfns): Defsubr it.
23654
23655 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
23656 of direct code 0x3ffff.
23657
23658 * search.c (Freplace_match): Fix for the unibyte case.
23659
23660 2008-02-01 Kenichi Handa <handa@m17n.org>
23661
23662 * lread.c (safe_to_load_p): Fix the logic.
23663
23664 * syntax.c (scan_words): Don't treat characters belonging to
23665 different scripts as constituting a word.
23666
23667 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
23668
23669 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
23670
23671 * emacs.c (main): In the case of --unibyte, instead of aborting on
23672 finding non-empty buffer, make it unibyte.
23673
23674 2008-02-01 Kenichi Handa <handa@m17n.org>
23675
23676 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
23677 to create a fontset.
23678
23679 2008-02-01 Dave Love <fx@gnu.org>
23680
23681 * character.c (Funibyte_char_to_multibyte): Doc fix.
23682
23683 * xfns.c [HAVE_STDLIB_H]: Fix last change.
23684
23685 2008-02-01 Kenichi Handa <handa@m17n.org>
23686
23687 * fontset.c (fontset_add): Make the type `int'.
23688 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
23689
23690 * character.c (unibyte_char_to_multibyte)
23691 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
23692 charset_unibyte, not charset_primary.
23693
23694 * charset.h (charset_unibyte): Extern it instead of charset_primary.
23695
23696 * charset.c (charset_unibyte): Rename from charset_primary.
23697 (Funibyte_charset): Rename from Fprimary_charset.
23698 (Fset_unibyte_charset): Rename from Fset_primary_charset.
23699 (syms_of_charset): Adjust for the above changes.
23700
23701 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
23702 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
23703 it->multibyte_p is zero.
23704
23705 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
23706 Delete extern.
23707
23708 2008-02-01 Kenichi Handa <handa@m17n.org>
23709
23710 * coding.c (Fdefine_coding_system_internal): Fix category setting
23711 for a coding system of type iso-2022.
23712
23713 2008-02-01 Kenichi Handa <handa@m17n.org>
23714
23715 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
23716
23717 2008-02-01 Kenichi Handa <handa@m17n.org>
23718
23719 * syntax.c (Vnext_word_boundary_function_table): New variable.
23720 (next-word-boundary-function-table): Declare it as a Lisp variable
23721 in syms_of_syntax.
23722 (scan_words): Call functions in Vnext_word_boundary_function_table
23723 if any.
23724
23725 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
23726
23727 * fontset.c (fs_load_font): If fontp->charset is not negative,
23728 return fontp without setting its members.
23729
23730 2008-02-01 Dave Love <fx@gnu.org>
23731
23732 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
23733
23734 * m/sparc.h (HAVE_ALLOCA): Delete.
23735
23736 * s/irix6-5.h: Don't include strings.h.
23737 (bcopy, bzero, bcmp): Don't undef.
23738
23739 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
23740
23741 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
23742 (TIOCSIGSEND): Don't test IRIX6.
23743 (bcopy, bzero, bcmp): Define conditionally.
23744
23745 2008-02-01 Kenichi Handa <handa@m17n.org>
23746
23747 * buffer.c (Qas, Qmake, Qto): New variables.
23748 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
23749 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
23750
23751 * callproc.c (Fcall_process): Don't call insert_1_both directly if
23752 we are inserting a process output into a multibyte buffer.
23753
23754 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
23755 multibyte_char_to_unibyte.
23756
23757 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
23758 by the primary charset, make it eight-bit char.
23759 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
23760
23761 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
23762 (charset_8_bit__control, charset_8_bit_graphic)
23763 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
23764 (define_charset_internal): New function.
23765 (syms_of_charset): Call define_charset_internal for pre-defined
23766 charsets.
23767
23768 * charset.h (charset_8_bit): Extern it.
23769
23770 * coding.c (make_conversion_work_buffer): Adjust for the change
23771 of Fset_buffer_multibyte.
23772 (encode_coding_raw_text): Increment p0 in the loop.
23773
23774 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
23775
23776 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
23777 for the change of Fset_buffer_multibyte.
23778
23779 * fns.c (Fstring_to_multibyte): New function.
23780 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
23781
23782 2008-02-01 Dave Love <fx@gnu.org>
23783
23784 * xfns.c (x_put_x_image): Declare args.
23785
23786 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
23787 (try_font_list): Declare an arg.
23788
23789 * xdisp.c (message2_nolog, set_message): Declare an arg.
23790
23791 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
23792
23793 * syntax.c (scan_sexps_forward): Declare an arg.
23794
23795 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
23796 Declare an arg.
23797
23798 * lisp.h (Fnew_fontset): Declare.
23799
23800 * keymap.c (push_key_description): Call CHARACTERP correctly.
23801
23802 * fontset.c (fontset_add): Declare args. Call make_number correctly.
23803 (face_for_char): Delete unused vars.
23804 (Fset_fontset_font): Doc fix. Delete unused vars.
23805
23806 * doc.c (Fsubstitute_command_keys): Delete unused vars.
23807
23808 * composite.c (update_compositions): Declare arg.
23809
23810 * cm.c (calccost, cmgoto): Declare args.
23811
23812 * charset.c: Remove `emacs' conditional. Doc fixes.
23813 (map_char_table_for_charset): Declare.
23814
23815 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
23816
23817 * ccl.c: Remove `emacs' conditional.
23818
23819 2008-02-01 Kenichi Handa <handa@m17n.org>
23820
23821 The following changes are to allow specifying multiple font
23822 patterns for a character range (specified by script or charset).
23823
23824 * Makefile.in (abbrev.o): Depend on syntax.h.
23825 (xfaces.o): Depend on charset.h.
23826
23827 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
23828 SINGLE_BYTE_CHAR_P.
23829
23830 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
23831
23832 * character.h (Vchar_script_table): Extern it.
23833
23834 * character.c (Vscript_alist): Delete.
23835 (Vchar_script_table, Qchar_script_table): New variable.
23836 (syms_of_character): Declare Vchar_script_table as a lisp variable
23837 and initialize it.
23838
23839 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
23840 have property char-table-extra-slots, make no extra slot.
23841
23842 * dispextern.h (struct face): Delete member `charset'.
23843 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
23844 SINGLE_BYTE_CHAR_P.
23845 (choose_face_font, lookup_non_ascii_face, font_name_registry):
23846 Add prototypes.
23847 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
23848 (generate_ascii_font_name): Rename from generate_ascii_font.
23849
23850 * fontset.h (get_font_repertory_func): New prototype.
23851 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
23852 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
23853
23854 * fontset.c (Qprepend, Qappend): New variables.
23855 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
23856 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
23857 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
23858 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
23859 (fontset_ref_and_range, fontset_add, reorder_font_vector)
23860 (load_font_get_repertory): New functions.
23861 (fontset_set): Delete.
23862 (fontset_face): New arg FACE. Return face ID, not face.
23863 Complete re-write to handle new fontset structure. Change caller.
23864 (free_face_fontset): Use ASET istead of AREF (X) = Y.
23865 (face_for_char): Don't call lookup_face.
23866 (make_fontset_for_ascii_face): New arg FACE.
23867 (fs_load_font): New arg CHARSET_ID. Don't check
23868 Vfont_encoding_alist here.
23869 (find_font_encoding): New function.
23870 (list_fontsets): Use STRINGP, not ! NILP.
23871 (accumulate_script_ranges): New function.
23872 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
23873 re-written to handle new fontset structure.
23874 (Ffontset_font): Return a copy of element.
23875 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
23876 docstring of font-encoding-alist.
23877
23878 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
23879 (Fset_fotset_font): Fix arguments to 5.
23880
23881 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
23882
23883 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
23884 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
23885 (highlight_trailing_whitespace): Adjust for the change of
23886 lookup_named_face.
23887
23888 * xfaces.c: Include charset.h.
23889 (load_face_font): Delete argument C. Change caller.
23890 (generate_ascii_font_name): Rename from generate_ascii_font.
23891 (font_name_registry): New function.
23892 (cache_face): Store ascii faces before non-ascii faces in buckets.
23893 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
23894 Lookup only ascii faces.
23895 (lookup_non_ascii_face): New function.
23896 (lookup_named_face): Delete argument C. Change caller.
23897 (lookup_derived_face): Delete argument C. Change caller.
23898 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
23899 a string, just call font_list with it.
23900 (choose_face_font): Delete arguments FACE and C. New arg
23901 FONT_SPEC. Change caller.
23902 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
23903 Change caller.
23904 (realize_non_ascii_face): New function.
23905 (realize_x_face): Call load_face_font here.
23906 (realize_tty_face): Delete argument C. Change caller.
23907 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
23908 get a face ID.
23909 (dump_realized_face): Don't print charset of FACE.
23910
23911 * xfns.c (x_set_font): Always call x_new_fontset and
23912 store_frame_parameter.
23913 (Fx_create_frame): Call x_new_fontset, not x_new_font.
23914 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
23915
23916 * xterm.h (x_get_font_repertory): Extern it.
23917
23918 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
23919 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
23920 it->multibyte_p is zero.
23921 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
23922 (x_new_fontset): If FONTSETNAME doesn't match any existing
23923 fontsets, create a new one.
23924 (x_get_font_repertory): New function.
23925
23926 2008-02-01 Kenichi Handa <handa@m17n.org>
23927
23928 * coding.c (Ffind_coding_systems_region_internal): Detect an
23929 ASCII only string correctly.
23930
23931 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
23932 version is 0.
23933
23934 2008-02-01 Kenichi Handa <handa@m17n.org>
23935
23936 * lread.c: Include "coding.h".
23937 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
23938 (load_each_byte, unread_char): New variables.
23939 (readchar_backlog): Delete.
23940 (readchar): Return a character unless load_each_byte is nonzero.
23941 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
23942 cons. If unread_char is not -1, simply return it.
23943 (unreadchar): Handle the case that readcharfun is
23944 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
23945 (read_multibyte): Delete.
23946 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
23947 (read_emacs_mule_char): New functions.
23948 (Fload): Even if the file doesn't have the extension ".elc", if
23949 safe_to_load_p returns a positive version number, assume that the
23950 file contains bytecompiled code. If the version is less than 22,
23951 load the file while decoding multibyte sequences by emacs-mule.
23952 (readevalloop): Don't use readchar_backlog.
23953 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
23954 (Fread_from_string): Pay attention to the case that STREAM is a cons.
23955 (read_escape): Delete the arg BYTEREP.
23956 (read1): Set load_each_byte to 1 temporarily while handling
23957 #@NUMBER. Don't call read_multibyte.
23958 (read_vector): Call Fread with a cons. If readcharfun is
23959 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
23960 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
23961 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
23962 and Qload_force_doc_strings.
23963
23964 2008-02-01 Kenichi Handa <handa@m17n.org>
23965
23966 * xdisp.c (face_before_or_after_it_pos): Call
23967 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
23968
23969 2008-02-01 Kenichi Handa <handa@m17n.org>
23970
23971 * character.h (TRAILING_CODE_P): New macro.
23972 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
23973 (string_char_with_unification): Fix prototype.
23974 (Vscript_alist): Extern it.
23975
23976 * character.c (Vscript_alist): New variable.
23977 (string_char_with_unification, str_as_unibyte)
23978 (string_escape_byte8): Add `const' to local variables.
23979 (syms_of_character): Declare script-alist as a Lisp variable.
23980
23981 * charset.h (Vcharset_ordered_list): Extern it.
23982 (charset_ordered_list_tick): Extern it.
23983 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
23984 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
23985 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
23986 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
23987 (Funify_charset): Adjust for the change of Funify_charset.
23988
23989 * charset.c (charset_ordered_list_tick): New variable.
23990 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
23991 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
23992 deunify instead of unify a charset.
23993 (string_xstring_p): Add `const' to local variables.
23994 (find_charsets_in_text): Add `const' to arguments and local variables.
23995 (encode_char): Adjust for the change of Funify_charset. Fix
23996 detecting of invalid code.
23997 (Fset_charset_priority): Increment charset_ordered_list_tick.
23998 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
23999 and TO_CODE.
24000
24001 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
24002 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
24003 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
24004 (decode_coding_ccl, consume_chars)
24005 (Ffind_coding_systems_region_internal)
24006 (Fcheck_coding_systems_region): Add `const' to local variables.
24007
24008 * print.c (print_object): Use octal form for printing the
24009 contents of a bool vector.
24010
24011 2008-02-01 Dave Love <fx@gnu.org>
24012
24013 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
24014 <version == 20>: Refuse to load.
24015
24016 2008-02-01 Dave Love <fx@gnu.org>
24017
24018 * fns.c: Move coding.h.
24019 (Qcodeset, Qdays, Qmonths): New.
24020 (concat): Use CHARACTERP instead of INTEGERP.
24021 (Flocale_codeset): Delete.
24022 (Flanginfo): New function.
24023 (syms_of_fns): Change accordingly.
24024
24025 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
24026
24027 2008-02-01 Dave Love <fx@gnu.org>
24028
24029 * casetab.c (init_casetab_once, init_casetab_once): Fix
24030 CHAR_TABLE_SET call.
24031
24032 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
24033
24034 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
24035
24036 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
24037 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
24038 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
24039
24040 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
24041
24042 * coding.c (ENCODE_DESIGNATION, decode_eol)
24043 (make_conversion_work_buffer, code_conversion_restore)
24044 (Fdefine_coding_system_internal): Convert Lisp types.
24045 (code_conversion_restore): Use EQ, not ==.
24046 (Fencode_coding_string): Fix code_convert_string call.
24047
24048 * coding.h (code_convert_region): Fix prototype.
24049
24050 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
24051
24052 * fontset.c (fontset_ref, fontset_set, fs_load_font)
24053 (Ffontset_info): Convert Lisp types.
24054
24055 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
24056
24057 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
24058
24059 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
24060
24061 * chartab.c: Include "...h", not <...h> in some cases.
24062
24063 * callproc.c (Fcall_process): Remove unused variables.
24064
24065 2008-02-01 Dave Love <fx@gnu.org>
24066
24067 * coding.c (Fset_coding_system_priority): Allow null arg list.
24068
24069 2008-02-01 Dave Love <fx@gnu.org>
24070
24071 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
24072 (Fself_insert_and_exit): Use CHARACTERP.
24073
24074 * callproc.c (Fcall_process): Remove unused vars.
24075
24076 * xterm.c (XTread_socket): Add extra dead keysyms.
24077
24078 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
24079
24080 * dispextern.h: Remove prototypes for redraw_frame,
24081 redraw_garbaged_frames.
24082
24083 * cmds.c (Fself_insert_command): Use CHARACTERP.
24084
24085 * chartab.c (make_sub_char_table): Remove unused var.
24086 (Fset_char_table_default, Fmap_char_table): Doc fix.
24087
24088 * keymap.c (access_keymap): Remove generic char code.
24089 (push_key_description): Use CHARACTERP.
24090
24091 2008-02-01 Dave Love <fx@gnu.org>
24092
24093 * charset.c: Doc fixes.
24094 (Funify_charset): Extra checking.
24095
24096 2008-02-01 Dave Love <fx@gnu.org>
24097
24098 * lread.c: Remove some unused variables.
24099 (safe_to_load_p): If safe, return the magic number version byte.
24100 (Fload): Maybe use load-with-code-conversion.
24101
24102 2008-02-01 Kenichi Handa <handa@m17n.org>
24103
24104 * category.c (Fmodify_category_entry): Don't modify the contents
24105 of category_set for characters out of the range. Avoid
24106 unnecessary modification.
24107
24108 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
24109 Vchar_unify_table. The default value of the table is now nil.
24110
24111 * character.c (syms_of_character): Setup Vchar_width_table for
24112 eight-bit-control and raw-byte chars.
24113
24114 * charset.h (enum define_charset_arg_index): Delete
24115 charset_arg_parents and add charset_arg_subset and
24116 charset_arg_superset.
24117 (enum charset_attr_index): Delete charset_parents and add
24118 charset_subset and charset_superset.
24119 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
24120 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
24121 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
24122 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
24123 (CHARSET_SUPERSET): New macros.
24124 (charset_work): Extern it.
24125 (ENCODE_CHAR): Use charset_work.
24126 (CHAR_CHARSET_P): Adjust for the change of encoder format.
24127 (map_charset_chars): Extern it.
24128
24129 * charset.c (load_charset_map): Set the default value of encoder
24130 and deunifier char-tables to nil.
24131 (map_charset_chars): Change argument. Change callers. Use
24132 map_char_table_for_charset instead of map_char_table.
24133 (Fmap_charset_chars): New optional args from_code and to_code.
24134 (Fdefine_charset_internal): Adjust for the change of
24135 `define-charset' (:parents -> :subset or :superset).
24136 (charset_work): New variable.
24137 (encode_char, syms_of_charset): Adjust for the change of
24138 Fdefine_charset_internal.
24139 (Ffind_charset_string): Setup the vector `charsets' correctly.
24140
24141 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
24142 the previous change.
24143 (char_table_ref_and_range): Adjust for the above change.
24144 (map_sub_char_table_for_charset): New function.
24145 (map_char_table_for_charset): New function.
24146
24147 * keymap.c (describe_vector): Handle a char-table directly here.
24148 (describe_char_table): Delete.
24149
24150 * lisp.h (map_charset_chars): Delete.
24151
24152 2008-02-01 Dave Love <fx@gnu.org>
24153
24154 * fns.c (count_combining): Comment out (unused).
24155 (Flocale_codeset): New.
24156 (syms_of_fns): Defsubr it.
24157
24158 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
24159 (size_t): Remove.
24160
24161 2008-02-01 Dave Love <fx@gnu.org>
24162
24163 * Makefile.in (chartab.o): Depend on charset.h.
24164
24165 2008-02-01 Kenichi Handa <handa@m17n.org>
24166
24167 * character.c (syms_of_character): Set the default value of
24168 Vprintable_chars to Qnil.
24169
24170 2008-02-01 Dave Love <fx@gnu.org>
24171
24172 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
24173
24174 2008-02-01 Kenichi Handa <handa@m17n.org>
24175
24176 * charset.c (load_charset_map): Handle the case that from < to
24177 correctly.
24178
24179 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
24180 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
24181 Pay attention to raw-8-bit chars.
24182
24183 2008-02-01 Kenichi Handa <handa@m17n.org>
24184
24185 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
24186 It is not bytecompiled now.
24187
24188 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
24189 (charset_jisx0208): New variables.
24190 (Fdefine_charset_internal): Setup them if appropriate.
24191 (init_charset_once): Initialize them to -1.
24192
24193 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
24194 (charset_jisx0208): Extern them.
24195
24196 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
24197 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
24198 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
24199 (setup_iso_safe_charsets): Fix arguments to Fassq.
24200 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
24201 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
24202 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
24203 (encode_coding_iso_2022): Change the 1st arg to
24204 ENCODE_ISO_CHARACTER to a variable.
24205
24206 2008-02-01 Kenichi Handa <handa@m17n.org>
24207
24208 * charset.h (enum define_charset_arg_index): New enums
24209 charset_arg_min_code and charset_arg_max_code.
24210 (struct charset): New member char_index_offset.
24211
24212 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
24213 Take charset->char_index_offset into account.
24214 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
24215 args[charset_arg_max_code]. Setup charset.char_index_offset.
24216 (syms_of_charset): Fix args to Fdefine_charset_internal.
24217
24218 2008-02-01 Dave Love <fx@gnu.org>
24219
24220 * coding.c (decode_coding_utf_8): Reject overlong sequences.
24221
24222 2008-02-01 Dave Love <fx@gnu.org>
24223
24224 * coding.c: Doc fixes.
24225 (Fcoding_system_aliases): Fix return value.
24226 (Qmac): Remove (duplicated) definition.
24227
24228 2008-02-01 Dave Love <fx@gnu.org>
24229
24230 * charset.c (Fcharset_priority_list, Fset_charset_priority):
24231 New functions.
24232
24233 * character.c (Fstring): Doc fix.
24234
24235 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
24236
24237 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
24238 (font-encoding-alist): Doc fix.
24239
24240 2008-02-01 Dave Love <fx@gnu.org>
24241
24242 * term.c (costs_set): Declare static, non-initialized for pcc.
24243 (encode_terminal_code): Remove unused var.
24244
24245 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
24246 for K&R.
24247
24248 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
24249
24250 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
24251 (suffixes): Move out of make_subsidiaries for K&R.
24252
24253 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
24254
24255 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
24256
24257 2008-02-01 Dave Love <fx@gnu.org>
24258
24259 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
24260
24261 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
24262
24263 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
24264
24265 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
24266
24267 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
24268
24269 2008-02-01 Kenichi Handa <handa@m17n.org>
24270
24271 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
24272 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
24273
24274 2008-02-01 Kenichi Handa <handa@m17n.org>
24275
24276 * coding.c (decode_coding_charset): Adjust for the change of
24277 Fdefine_coding_system_internal.
24278 (Fdefine_coding_system_internal): For a coding system of
24279 `charset' type, store a list of charset IDs in
24280 `charset_attr_charset_valids' element of coding attributes.
24281
24282 2008-02-01 Kenichi Handa <handa@m17n.org>
24283
24284 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
24285 (emacs_mule_char): New arg src. Delete arg `composition'. Change
24286 caller. Handle 2-byte and 3-byte charsets correctly.
24287 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
24288 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
24289 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
24290 (DECODE_EMACS_MULE_21_COMPOSITION): Call
24291 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
24292 sequence.
24293 (decode_coding_emacs_mule): Handle composition correctly. Rewind
24294 `src' and `consumed_chars' correctly before calling emacs_mule_char.
24295 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
24296 and alt&rule composition.
24297 (decode_coding_iso_2022): Handle composition correctly.
24298 (init_coding_once): Setup emacs_mule_bytes for private charsets.
24299
24300 * charset.c (Fdefine_charset_internal): Fix bug for the case of
24301 re-defining a charset. If the charset has :emacs-mule-id, setup
24302 emacs_mule_bytes.
24303 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
24304
24305 2008-02-01 Kenichi Handa <handa@m17n.org>
24306
24307 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
24308 (encode_coding_big5, encode_coding_charset): If coding requires safe
24309 encoding, produce a character specified by
24310 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
24311
24312 2008-02-01 Dave Love <fx@gnu.org>
24313
24314 * xterm.c (XSetIMValues): Declare.
24315
24316 * process.c: Conditionally include sys/wait.h, pty.h.
24317
24318 * print.c (print_object): Fix print format for 64-bit systems.
24319
24320 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
24321
24322 * buffer.c (emacs_strerror): Declare.
24323
24324 * fontset.c (Fclear_face_cache): Declare.
24325 (accumulate_font_info): Comment-out (unused).
24326 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
24327 variables.
24328
24329 * character.h (string_escape_byte8): Declare.
24330
24331 * charset.c (load_charset_map, load_charset_map_from_file): Remove
24332 unused vars.
24333 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
24334 (Fmap_charset_chars): Doc fix.
24335
24336 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
24337 (Fset_coding_system_priority, Fset_coding_system_priority)
24338 (Fdefine_coding_system_internal): Doc fix.
24339
24340 2008-02-01 Dave Love <fx@gnu.org>
24341
24342 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
24343
24344 2008-02-01 Kenichi Handa <handa@m17n.org>
24345
24346 * character.c (string_escape_byte8): Make multibyte string with
24347 correct size.
24348
24349 * charset.c (Fmake_char): Delete unnecessary code.
24350
24351 2008-02-01 Kenichi Handa <handa@m17n.org>
24352
24353 * xfns.c (x_encode_text): Allocate coding.destination here, and
24354 call encode_coding_object with dst_object Qnil.
24355
24356 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
24357 multibyte form correctly.
24358
24359 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
24360 against Vfont_encoding_alist.
24361
24362 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
24363 handling of charset list.
24364 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
24365 (decode_coding_object): Move point to coding->dst_pos before
24366 calling post-read-conversion function.
24367 (encode_coding_object): Give correct arguments to
24368 pre-write-conversion. Ignore the return value of
24369 pre-write-conversion function. Pay attention to the case that
24370 pre-write-conversion changes the current buffer. If dst_object is
24371 Qt, even if coding->src_bytes is zero, allocate at least one byte
24372 to coding->destination.
24373
24374 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
24375
24376 * charset.c (Fmake_char): Make it more backward compatible.
24377 (Fmap_charset_chars): Fix docstring.
24378
24379 2008-02-01 Dave Love <fx@gnu.org>
24380
24381 * coding.c: Doc fixes.
24382 (Fdefine_coding_system_alias): Use names, not symbols, in
24383 coding-system-alist.
24384
24385 2008-02-01 Kenichi Handa <handa@m17n.org>
24386
24387 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
24388 of calling free_realized_face.
24389
24390 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
24391
24392 * charset.c (read_hex): Don't treat SPC as a comment starter.
24393 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
24394 (Fdecode_char): Fix typo.
24395
24396 2008-02-01 Kenichi Handa <handa@m17n.org>
24397
24398 * charset.h (struct charset): New member `code_space_mask'.
24399
24400 * coding.c (coding_set_source): Delete the local variable beg_byte.
24401 (encode_coding_charset, Fdefine_coding_system_internal):
24402 Delete the local variable charset.
24403 (Fdefine_coding_system_internal): Setup
24404 attrs[coding_attr_charset_valids] correctly.
24405
24406 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
24407 member to check if CODE is valid or not.
24408 (Fdefine_charset_internal): Initialize `code_space_mask' member.
24409 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
24410 is within the range of charset->min_code and carset->max_code.
24411
24412 2008-02-01 Dave Love <fx@gnu.org>
24413
24414 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
24415
24416 * dispextern.h (generate_ascii_font): Fix return type.
24417
24418 * xfaces.c (generate_ascii_font): Fix arg declaration.
24419
24420 * coding.c (coding_inherit_eol_type)
24421 (Fset_terminal_coding_system_internal)
24422 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
24423
24424 2008-02-01 Kenichi Handa <handa@m17n.org>
24425
24426 * coding.c (decode_coding_charset, encode_coding_charset): Handle
24427 multiple charsets correctly.
24428
24429 2008-02-01 Kenichi Handa <handa@m17n.org>
24430
24431 * search.c (boyer_moore): Fix handling of multibyte character
24432 translation.
24433
24434 * xdisp.c (display_mode_element): When the variable `elt' is
24435 changed, update `this' and `lisp_string'.
24436
24437 2008-02-01 Kenichi Handa <handa@m17n.org>
24438
24439 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
24440
24441 * callproc.c (Fcall_process): Be sure to give the current buffer
24442 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
24443
24444 * charset.c (struct charset_map_entries): New struct.
24445 (load_charset_map): Rename from parse_charset_map. New args
24446 entries and n_entries. Change caller.
24447 (load_charset_map_from_file): Rename from load_charset_map.
24448 Change caller. New arg control_flag. Call load_charset_map at
24449 the tail.
24450 (load_charset_map_from_vector): New function.
24451 (Fdefine_charset_internal): Setup charset.compact_codes_p.
24452 (encode_char): If the charset is compact, change a character index
24453 to a code point.
24454
24455 * coding.c (coding_alloc_by_making_gap): Check the case that the
24456 source and destination are the same correctly.
24457 (decode_coding_raw_text): Set coding->consumed_char and
24458 coding->consumed to 0.
24459 (produce_chars): If coding->chars_at_source is nonzero, update
24460 coding->consumed_char and coding->consumed before calling
24461 alloc_destination.
24462 (Fdefine_coding_system_alias): Register ALIAS in
24463 Vcoding_system_alist.
24464 (syms_of_coding): Define `no-conversion' coding system at the tail.
24465
24466 * fileio.c (Finsert_file_contents): Set coding_system instead of
24467 val. If the current buffer is multibyte, always call
24468 decode_coding_gap.
24469
24470 * xfaces.c (try_font_list): Give higher priority to fontset's
24471 family than face's family.
24472
24473 2008-02-01 Kenichi Handa <handa@m17n.org>
24474
24475 * callproc.c (Fcall_process): Be sure to give the current buffer
24476 to decode_coding_c_string.
24477
24478 * xfaces.c (try_font_list): Give a family specified in a fontset
24479 higher priority than a family specified in a face.
24480
24481 2008-02-01 Kenichi Handa <handa@m17n.org>
24482
24483 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
24484 Fix arguments to insert_from_buffer.
24485
24486 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
24487
24488 2008-02-01 Kenichi Handa <handa@m17n.org>
24489
24490 * coding.c (produce_chars): Set the variable `multibytep' correctly.
24491 (decode_coding_gap): Set coding->dst_multibyte correctly.
24492
24493 2008-02-01 Kenichi Handa <handa@m17n.org>
24494
24495 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
24496 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
24497 (encode_coding_utf_16): Substitute coding->default_char for
24498 non-Unicode characters.
24499 (decode_coding): Don't call record_insert here.
24500 (setup_coding_system): Initialize `surrogate' of
24501 coding->spec.utf_16 to 0.
24502 (EMIT_ONE_BYTE): Fix for multibyte case.
24503
24504 * insdel.c (insert_from_gap): Call record_insert.
24505
24506 2008-02-01 Kenichi Handa <handa@m17n.org>
24507
24508 * casefiddle.c (casify_region): Fix multibyte case.
24509
24510 * character.c (c_string_width): Add return type `int'.
24511 (char_string_with_unification): Delete arg ADVANCED.
24512
24513 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
24514 (CHAR_STRING): Adjust for the change of char_string_with_unification.
24515 (CHAR_STRING_ADVANCE): Make it do-while statement.
24516
24517 * chartab.c (sub_char_table_set_range): Optimize for the case
24518 DEPTH == 3. Add workaround code for a GCC optimization bug.
24519
24520 * charset.c (parse_charset_map): Remove an unused variable.
24521
24522 * coding.c: Delete unused variables.
24523
24524 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
24525 earlier. If inserted is zero and the coding system doesn't
24526 require flushing, don't call decode_coding_gap.
24527
24528 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
24529
24530 2008-02-01 Kenichi Handa <handa@m17n.org>
24531
24532 The following changes are for using Unicode as an internal
24533 character model, and use UTF-8 format for buffer/string
24534 representation.
24535
24536 * .gdbinit (xchartable): Adjust for the change of char table structure.
24537 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
24538
24539 * Makefile.in (obj): Add character.o and chartab.o.
24540 (lisp, shortlisp): Remove utf-8.elc.
24541 (*.o): For many files, change dependency on charset.h to
24542 character.h, and add dependency on character.h.
24543 (character.o, chartab.o): New targets.
24544
24545 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
24546 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
24547 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
24548 of "charset.h".
24549
24550 * dired.c, filelock.c: Include "character.h".
24551
24552 * alloc.c: Include "character.h" instead of "charset.h".
24553 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
24554 (syms_of_alloc): Remove defsubr for Smake_char_table.
24555
24556 * buffer.c: Include "character.h" instead of "charset.h", don't
24557 include "coding.h".
24558 (Fset_buffer_multibyte): Adjust for UTF-8.
24559
24560 * buffer.h: EXFUN Fbuffer_live_p.
24561
24562 * callproc.c: Include "character.h" instead of "charset.h".
24563 (Fcall_process): Big change for the new code-conversion APIs.
24564
24565 * casetab.c: Include "character.h" instead of "charset.h".
24566 (set_canon, set_identity, shuffle): Adjust for the new
24567 map_char_table spec.
24568 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
24569 accessing the char table structure.
24570
24571 * chartab.c: New file that implements char table.
24572
24573 * category.c: Include "character.h".
24574 (copy_category_entry): New function.
24575 (copy_category_table): Call map_char_table and copy_category_entry.
24576 (Fmake_category_table): Initialize all top-level slots.
24577 (char_category_set): New function.
24578 (modify_lower_category_set): Delete.
24579 (Fmodify_category_entry): Call char_table_ref_and_range.
24580
24581 * category.h (CATEGORY_SET): Just call char_category_set.
24582
24583 * ccl.c: Include "character.h".
24584 (Qccl, Qcclp): New variables.
24585 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
24586 it's less than 256.
24587 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
24588 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
24589 and DST type.
24590 (ccl_driver): Change types of argument, adjust code accordingly.
24591 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
24592 ccl_driver.
24593 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
24594
24595 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
24596 New members src_multibyte, dst_multibyte, consumed, and produced.
24597 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
24598 (CODING_SPEC_CCL_PROGRAM): New macro.
24599 (ccl_driver): Update prototype.
24600 (Qccl, Qcclp, Fccl_program_p): Extern them.
24601 (CHECK_CCL_PROGRAM): New macro.
24602
24603 * character.c, character.h, chartab.c: New files.
24604
24605 * charset.c: Mostly re-written. Move character and multibyte sequence
24606 handling codes to character.c.
24607
24608 * charset.h: Mostly re-written. Move character and multibyte sequence
24609 handling codes to character.h.
24610
24611 * coding.c, coding.h: Mostly re-written.
24612
24613 * composite.c: Include "character.h" instead of "charset.h".
24614 (CHAR_WIDTH): Move to character.h.
24615 (HASH_KEY, HASH_VALUE): Delete.
24616
24617 * composite.h (enum composition_method): Change order of enumeration
24618 symbols.
24619
24620 * data.c: Include "character.h" instead of "charset.h".
24621 (Faref): Call CHAR_TABLE_REF for a char table.
24622 (Faset): Call CHAR_TABLE_SET for a char table.
24623
24624 * dispextern.h (free_realized_face, check_face_attribytes)
24625 (generate_ascii_font): Extern them.
24626 (free_realized_multibyte_face): Delete extern.
24627
24628 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
24629 table structure.
24630
24631 * editfns.c: Include "character.h" instead of "charset.h".
24632 (Fchar_to_string): Always call CHAR_STRING.
24633
24634 * emacs.c (main): Call init_charset_once, init_charset,
24635 syms_of_chartab, and syms_of_character.
24636
24637 * fileio.c: Include "character.h" instead of "charset.h".
24638 (Finsert_file_contents): Big change for the new code-conversion API.
24639 (choose_write_coding_system, Fwrite_region): Likewise.
24640 (build_annotations_2): Delete.
24641 (e_write): Big change for the new code-conversion API.
24642
24643 * fns.c: Include "character.h" instead of "charset.h".
24644 (copy_sub_char_table): Move to chartab.c.
24645 (Fcopy_sequence): Call copy_char_table for a char table.
24646 (concat): Delete codes calling count_multibyte.
24647 (string_char_to_byte, string_byte_to_char): Adjust for the new
24648 multibyte form.
24649 (internal_equal): Adjust for the change of char table structure.
24650 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
24651 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
24652 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
24653 (char_table_translate, optimize_sub_char_table)
24654 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
24655 chartab.c.
24656 (char_table_ref_and_index): Delete.
24657 (HASH_KEY, HASH_VALUE): Move to lisp.h.
24658 (Fmd5): Call preferred_coding_system instead of accessing
24659 Vcoding_category_list. Adjust for the new code-conversion API.
24660 (syms_of_fns): Move defsubr for char table related functions to
24661 chartab.c.
24662
24663 * fontset.c: Mostly re-written.
24664
24665 * fontset.h (struct font_info): Change type of the member encoding_type.
24666 (enum FONT_SPEC_INDEX): New enum.
24667 (fontset_font_pattern, fs_load_font): Update prototype.
24668 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
24669
24670 * indent.c: Include "character.h" instead of "charset.h".
24671 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
24672
24673 * insdel.c: Include "character.h" instead of "charset.h".
24674 (copy_text): Don't refer to Vnonascii_translation_table.
24675 (insert_from_gap): New function.
24676
24677 * keyboard.c: Include "character.h" instead of "charset.h".
24678 (command_loop_1): Never call direct_output_forward_char before
24679 a non-ASCII character.
24680 (read_char): If Vkeyboard_translate_table is a char table, always
24681 translate a character.
24682
24683 * keymap.c: Include "character.h".
24684 (store_in_keymap): Handle the case that IDX is a cons.
24685 (Fdefine_key): Handle the case that KEY is a cons and the car part
24686 is also a cons (range).
24687 (push_key_description): Adjust for the new character code.
24688 (describe_vector): Call describe_char_table for a char table.
24689 (describe_char_table): New function.
24690
24691 * keymap.h (describe_char_table): Extern it.
24692
24693 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
24694 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
24695 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
24696 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
24697 Delete.
24698 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
24699 structure.
24700 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
24701 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
24702 (CHARTAB_SIZE_BITS_3): New macros.
24703 (chartab_size): Extern it.
24704 (struct Lisp_Char_Table): Re-design.
24705 (struct Lisp_Sub_Char_Table): New structure.
24706 (HASH_KEY, HASH_VALUE): Move from fns.c.
24707 (CHARACTERBITS): Define as 22.
24708 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
24709 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
24710 (GC_SUB_CHAR_TABLE_P): New macro.
24711 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
24712 (code_convert_string_norecord): Deleted extern.
24713 (init_character_once, syms_of_character, init_charset)
24714 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
24715
24716 * lread.c: Include "character.h".
24717 (read_multibyte): New arg NBYTES.
24718 (read_escape): Change the meaning of returned *BYTEREP.
24719 (to_multibyte): Delete.
24720 (read1): Adjust the handling of char table and string.
24721
24722 * print.c: Include "character.h" instead of "charset.h".
24723 (print_string): Convert 8-bit raw bytes to octal form by
24724 string_escape_byte8.
24725 (print_object): Adjust for the new multibyte form. Print 8-bit
24726 raw bytes always in octal form. Handle sub char table correctly.
24727
24728 * process.c: Include "character.h" instead of "charset.h".
24729 (read_process_output, send_process): Adjust for the new
24730 code-conversion API.
24731
24732 * puresize.h (BASE_PURESIZE): Increase.
24733
24734 * regex.c: Include "character.h" instead of "charset.h".
24735 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
24736 (regex_compile): Accept a range whose starting and ending
24737 character have different leading bytes.
24738 (analyse_first): Adjust for the above change.
24739
24740 * search.c: Include "character.h" instead of "charset.h".
24741 (search_buffer, boyer_moore): Adjust for the new multibyte form.
24742 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
24743
24744 * syntax.c: Include "character.h" instead of "charset.h".
24745 (syntax_parent_lookup): Delete.
24746 (Fmodify_syntax_entry): Accept a cons as CHAR.
24747 (skip_chars): Adjust for the new multibyte form.
24748 (init_syntax_once): Call char_table_set_range instead of directly
24749 accessing the structure of a char table.
24750
24751 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
24752 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
24753 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
24754 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
24755
24756 * term.c: Include "buffer.h" and "character.h".
24757 (encode_terminal_code, write_glyphs): Adjust for the new
24758 code-conversion API.
24759 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
24760
24761 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
24762
24763 * xdisp.c: Include "character.h".
24764 (get_next_display_element): Adjust for the new multibyte form.
24765 (disp_char_vector): Adjust for the new char table structure.
24766 (decode_mode_spec_coding): Adjust for the new structure of
24767 coding system.
24768 (decode_mode_spec): Adjust for the new code-conversion API.
24769
24770 * xfaces.c: Include "character.h" instead of "charset.h".
24771 (load_face_font): Adjust for the change of choose_face_font and
24772 FS_LOAD_FONT.
24773 (generate_ascii_font): New function.
24774 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
24775 (set_font_frame_param): Adjust for the change of choose_face_font.
24776 (free_realized_face): Make it public.
24777 (free_realized_faces_for_fontset): Rename from
24778 free_realized_multibyte_face. Free also faces realized for ASCII.
24779 (choose_face_font): Change arguments. Adjust for the change of
24780 fontset_font_pattern and FS_LOAD_FONT.
24781
24782 * xfns.c: Include "character.h".
24783 (x_encode_text): Adjust for the new code-conversion API.
24784
24785 * xselect.c: Don't include "charset.h".
24786 (selection_data_to_lisp_data): Adjust for the new code conversion API.
24787
24788 * xterm.c: Include "character.h".
24789 (x_encode_char): New argument CHARSET. Change caller.
24790 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
24791 Call ENCODE_CHAR instead of SPLIT_CHAR.
24792 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
24793 CHAR_WIDTH instead of CHARSET_WIDTH.
24794 (XTread_socket): Adjust for the new code-conversion API.
24795 (x_new_font): Adjust for the change of FS_LOAD_FONT.
24796 (x_load_font): Adjust for the change of struct font.
24797
24798 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
24799
24800 * xfaces.c (face_at_buffer_position): Remove unused vars.
24801
24802 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24803
24804 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
24805 Fix overflow checking.
24806
24807 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24808
24809 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
24810 Cancel previous change.
24811
24812 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
24813
24814 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
24815 ccl->eight_bit_control. Fix check for buffer overflow.
24816 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
24817 (ccl_driver): Initialize extra_bytes to 0.
24818
24819 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
24820
24821 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
24822 return it ORed with ctrl_modifier.
24823
24824 2008-01-29 Miles Bader <miles@gnu.org>
24825
24826 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
24827
24828 2008-01-28 Jason Rumney <jasonr@gnu.org>
24829
24830 * w32.c (stat): Don't double check for networked drive.
24831
24832 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
24833
24834 * window.c (run_window_configuration_change_hook): New function.
24835 Code extracted from set_window_buffer. Set the selected frame.
24836 (set_window_buffer): Use it.
24837 * window.h (run_window_configuration_change_hook): Declare.
24838 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
24839
24840 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
24841
24842 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
24843
24844 * Makefile.in: Remove references to unused macros.
24845
24846 2008-01-26 Eli Zaretskii <eliz@gnu.org>
24847
24848 * w32.c (g_b_init_get_sid_sub_authority)
24849 (g_b_init_get_sid_sub_authority_count): New static variables.
24850 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
24851 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
24852 (init_user_info): Use them to retrieve uid and gid.
24853 Use 500/513, the Windows defaults, as Administrator's uid/gid.
24854 (fstat): Use pw_uid and pw_gid from the_passwd structure for
24855 st_uid and st_gid of the file.
24856
24857 2008-01-26 Jason Rumney <jasonr@gnu.org>
24858
24859 * w32.c (logon_network_drive): New function.
24860 (stat): Use it.
24861
24862 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
24863
24864 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
24865 invisible text covered with an ellipsis.
24866
24867 2008-01-25 Richard Stallman <rms@gnu.org>
24868
24869 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
24870 jump back to beginning. Move some other initializations after that.
24871 (Qwindow_text_change_functions, Vwindow_text_change_functions):
24872 New variables.
24873 (syms_of_xdisp): Init them.
24874
24875 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
24876
24877 * buffer.c (reset_buffer_local_variables):
24878 Implement `permanent-local-hook'.
24879 (Qpermanent_local_hook): New variable.
24880 (syms_of_buffer): Init and staticpro it.
24881
24882 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
24883
24884 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
24885
24886 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
24887
24888 * fns.c (Fclrhash): Return TABLE.
24889
24890 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24891
24892 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
24893 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
24894 is set even without positional changes.
24895 (x_scroll_bar_clear): Set bar->redraw_needed_p.
24896
24897 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
24898
24899 2008-01-23 Jason Rumney <jasonr@gnu.org>
24900
24901 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
24902
24903 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
24904 the unicode range available in MULE by locale-coding-system.
24905 Improve dbcs lead byte detection. Set event timestamp and modifiers
24906 earlier.
24907
24908 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24909
24910 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
24911 [MAC_OSX] (init_mac_osx_environment): Initialize it.
24912 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
24913 when used on child processes.
24914
24915 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
24916
24917 * dbusbind.c (Fdbus_method_return_internal): Rename from
24918 Fdbus_method_return.
24919 (Fdbus_unregister_object): Move to dbus.el.
24920 (Fdbus_call_method, Fdbus_method_return_internal)
24921 (Fdbus_send_signal): Improve debug messages.
24922
24923 2008-01-20 Martin Rudalics <rudalics@gmx.at>
24924
24925 * undo.c (undo_inhibit_record_point): New variable.
24926 (syms_of_undo): Initialize it.
24927 (record_point): Don't record point when undo_inhibit_record_point
24928 is set.
24929
24930 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
24931
24932 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
24933
24934 * xdisp.c (Qauto_hscroll_mode): New var.
24935 (syms_of_xdisp): Initialize it.
24936 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
24937 window's buffer.
24938 (hscroll_windows): Don't check automatic_hscrolling_p here.
24939
24940 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
24941 vscroll if we're setting window-buffer to the value it already has.
24942
24943 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
24944
24945 * m/intel386.h: Remove references to XENIX.
24946
24947 2008-01-17 Andreas Schwab <schwab@suse.de>
24948
24949 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
24950 instead of HAVE_X86_64_LIB64_DIR.
24951 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
24952
24953 2008-01-17 Glenn Morris <rgm@gnu.org>
24954
24955 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
24956 to HAVE_X86_64_LIB64_DIR.
24957
24958 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
24959
24960 * s/irix3-3.h:
24961 * s/irix4-0.h:
24962 * s/386-ix.h:
24963 * s/domain.h:
24964 * s/hpux9-x11r4.h:
24965 * s/hpux9shxr4.h: Remove files for systems no longer supported.
24966
24967 * sysdep.c: Remove code containing references to symbols defined
24968 by unsupported systems.
24969
24970 2008-01-16 Glenn Morris <rgm@gnu.org>
24971
24972 * coding.c (select-safe-coding-system-function): Doc fix.
24973
24974 2008-01-15 Glenn Morris <rgm@gnu.org>
24975
24976 * config.in: Revert 2008-01-13 change: this is a generated file.
24977
24978 2008-01-13 Tom Tromey <tromey@redhat.com>
24979
24980 * lisp.h: Fix typo.
24981
24982 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
24983
24984 * m/sequent-ptx.h:
24985 * m/sequent.h:
24986 * s/ptx.h:
24987 * s/ptx4-2.h:
24988 * s/ptx4.h: Remove files for systems no longer supported.
24989
24990 * callproc.c (Fcall_process): Fix previous change.
24991
24992 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
24993
24994 * unexsunos4.c: Remove file, system not supported anymore.
24995
24996 * m/mips.h:
24997 * m/intel386.h:
24998 * callproc.c:
24999 * config.in:
25000 * ecrt0.c:
25001 * emacs.c:
25002 * fileio.c:
25003 * frame.c:
25004 * getpagesize.h:
25005 * keyboard.c:
25006 * lread.c:
25007 * process.c:
25008 * puresize.h:
25009 * sysdep.c:
25010 * systty.h:
25011 * syswait.h:
25012 * unexec.c:
25013 * xdisp.c:
25014 * alloc.c: Remove code containing references to symbols defined by
25015 unsupported systems.
25016
25017 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
25018
25019 * coding.c (detect_coding_mask): Fix previous change.
25020
25021 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
25022
25023 * coding.c (detect_coding_iso2022): New arg
25024 latin_extra_code_state. Allow Latin extra codes only
25025 when *latin_extra_code_state is nonzero.
25026 (detect_coding_mask): If there is a NULL byte, detect the encoding
25027 as UTF-16 or binary. If Latin extra codes exist, detect the
25028 encoding as ISO-2022 only when there's no other proper encoding is
25029 found.
25030
25031 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25032
25033 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
25034 #ifdef MAC_OS.
25035
25036 2008-01-08 Richard Stallman <rms@gnu.org>
25037
25038 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
25039
25040 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
25041
25042 * keyboard.c (parse_menu_item): Don't enclose key bindings on
25043 menu bar in parentheses.
25044
25045 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
25046
25047 * m/7300.h:
25048 * m/acorn.h:
25049 * m/alliant-2800.h:
25050 * m/alliant.h:
25051 * m/alliant1.h:
25052 * m/alliant4.h:
25053 * m/altos.h:
25054 * m/amdahl.h:
25055 * m/apollo.h:
25056 * m/att3b.h:
25057 * m/aviion-intel.h:
25058 * m/aviion.h:
25059 * m/celerity.h:
25060 * m/clipper.h:
25061 * m/cnvrgnt.h:
25062 * m/convex.h:
25063 * m/cydra5.h:
25064 * m/delta88k.h:
25065 * m/dpx2.h:
25066 * m/dual.h:
25067 * m/elxsi.h:
25068 * m/f301.h:
25069 * m/gould-np1.h:
25070 * m/gould.h:
25071 * m/i860.h:
25072 * m/ibmps2-aix.h:
25073 * m/ibmrt-aix.h:
25074 * m/ibmrt.h:
25075 * m/irist.h:
25076 * m/is386.h:
25077 * m/isi-ov.h:
25078 * m/mega68.h:
25079 * m/mg1.h:
25080 * m/news-r6.h:
25081 * m/news-risc.h:
25082 * m/news.h:
25083 * m/nh3000.h:
25084 * m/nh4000.h:
25085 * m/ns16000.h:
25086 * m/ns32000.h:
25087 * m/nu.h:
25088 * m/orion.h:
25089 * m/orion105.h:
25090 * m/paragon.h:
25091 * m/pfa50.h:
25092 * m/plexus.h:
25093 * m/pyramid.h:
25094 * m/pyrmips.h:
25095 * m/sh3el.h:
25096 * m/sps7.h:
25097 * m/sr2k.h:
25098 * m/stride.h:
25099 * m/sun1.h:
25100 * m/sun2.h:
25101 * m/sun3-68881.h:
25102 * m/sun3-fpa.h:
25103 * m/sun3-soft.h:
25104 * m/sun3.h:
25105 * m/sun386.h:
25106 * m/symmetry.h:
25107 * m/tad68k.h:
25108 * m/tahoe.h:
25109 * m/targon31.h:
25110 * m/tek4300.h:
25111 * m/tekxd88.h:
25112 * m/tower32.h:
25113 * m/tower32v3.h:
25114 * m/ustation.h:
25115 * m/wicat.h:
25116 * m/xps100.h:
25117 * s/cxux.h:
25118 * s/cxux7.h:
25119 * s/dgux.h:
25120 * s/dgux4.h:
25121 * s/dgux5-4-3.h:
25122 * s/dgux5-4r2.h:
25123 * s/esix.h:
25124 * s/esix5r4.h:
25125 * s/hiuxmpp.h:
25126 * s/hiuxwe2.h:
25127 * s/iris3-5.h:
25128 * s/iris3-6.h:
25129 * s/isc2-2.h:
25130 * s/isc3-0.h:
25131 * s/isc4-0.h:
25132 * s/isc4-1.h:
25133 * s/newsos5.h:
25134 * s/newsos6.h:
25135 * s/osf1.h:
25136 * s/osf5-0.h:
25137 * s/riscix1-1.h:
25138 * s/riscix12.h:
25139 * s/sco4.h:
25140 * s/sco5.h:
25141 * s/sunos4-0.h:
25142 * s/sunos4-1.h:
25143 * s/sunos413.h:
25144 * s/sunos4shr.h:
25145 * s/umax.h:
25146 * s/unipl5-2.h:
25147 * s/xenix.h:
25148 * cxux-crt0.s:
25149 * unexapollo.c:
25150 * unexconvex.c:
25151 * unexenix.c:
25152 * unexsni.c: Remove files for systems no longer supported.
25153
25154 * m/intel386.h: Remove references to unsupported systems.
25155
25156 * w32.c (get_emacs_configuration): Remove reference to i860.
25157
25158 * sysdep.c: Remove dead code.
25159
25160 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
25161
25162 * s/rtu.h:
25163 * m/masscomp.h: Remove files. Platform is obsolete.
25164
25165 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
25166
25167 * dbusbind.c (Fdbus_method_return): New function.
25168 (xd_read_message): Add the serial number to the event.
25169 (Fdbus_register_method): Activate the function.
25170
25171 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
25172
25173 * keyboard.c (read_key_sequence): Fix typo.
25174
25175 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
25176
25177 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
25178 (xd_signature, xd_append_arg): Handle element type detection for
25179 empty arrays.
25180 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
25181 SDATA () calls; this must be solved more general.
25182 (Fdbus_register_signal): Use SBYTES instead of strlen.
25183
25184 2008-01-03 Magnus Henoch <magnus@zemdatav>
25185
25186 * dbusbind.c (xd_append_arg): Use unsigned char instead of
25187 unsigned int for byte values (necessary for big-endian platform).
25188 (Fdbus_call_method): Handle the case of no returned arguments.
25189
25190 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
25191
25192 * dbusbind.c (xd_read_message): Use non-static input_event struct.
25193
25194 2007-12-31 Magnus Henoch <mange@freemail.hu>
25195
25196 * dbusbind.c (xd_signature): Signature of variant is just "v".
25197
25198 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
25199
25200 * dbusbind.c: Fix several errors and compiler warnings.
25201 Reported by Tom Tromey <tromey@redhat.com>.
25202 (XD_ERROR, XD_DEBUG_MESSAGE)
25203 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
25204 (xd_append_arg): Part for basic D-Bus types rewritten.
25205 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
25206 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
25207 appropriate.
25208 (xd_read_message): Return Qnil. Don't signal an error; it is not
25209 useful during event reading.
25210 (Fdbus_register_signal): Signal an error if the check for
25211 FUNCTIONP fails.
25212 (Fdbus_register_method): New function. The implementation is not
25213 complete, the call of the function signals an error therefore.
25214 (Fdbus_unregister_object): New function, renamed from
25215 Fdbus_unregister_signal. The initial check signals an error, if
25216 the object is not well formed.
25217
25218 2007-12-30 Richard Stallman <rms@gnu.org>
25219
25220 * textprop.c (get_char_property_and_overlay):
25221 Signal error if POSITION is out of range in a buffer.
25222
25223 2007-12-29 Martin Rudalics <rudalics@gmx.at>
25224
25225 * w32fns.c (Fx_create_frame): Make copy of frame parameters
25226 because the original parameters are in pure storage now.
25227
25228 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25229
25230 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
25231
25232 2007-12-22 Eli Zaretskii <eliz@gnu.org>
25233
25234 * callint.c (syms_of_callint) <command-history>: Add reference to
25235 history-length in the doc string.
25236
25237 2007-12-17 Jason Rumney <jasonr@gnu.org>
25238
25239 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
25240 before passing as wParam.
25241
25242 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
25243
25244 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
25245 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
25246 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
25247 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
25248 as number.
25249 (Fdbus_call_method): Fix docstring.
25250
25251 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
25252
25253 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
25254 New macros.
25255 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
25256 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
25257 Simplify.
25258 (xd_signature): New function.
25259 (xd_append_arg): Compute also signatures. Major rewrite.
25260 (xd_retrieve_arg): Make debug messages friendly.
25261 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
25262 Check for signatures of arguments.
25263
25264 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
25265
25266 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
25267 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
25268 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
25269 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
25270 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
25271 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
25272 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
25273 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
25274 (xd_retrieve_value): Remove. Functionality included in ...
25275 (xd_append_arg): New function.
25276 (Fdbus_call_method, Fdbus_send_signal): Apply it.
25277
25278 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
25279
25280 * dbusbind.c (top): Include <stdio.h>.
25281 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
25282 dbus_message_new_method_call and dbus_message_new_signal.
25283 (Fdbus_register_signal): Rename unique_name to uname.
25284 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
25285 non-existing unique name. Fix typos in matching rule. Return an
25286 object which is useful in Fdbus_unregister_signal.
25287 (Fdbus_unregister_signal): Reimplementation, in order to remove
25288 only the corresponding entry.
25289 (Vdbus_registered_functions_table): Change the order of entries.
25290 Apply these changes in xd_read_message and Fdbus_register_signal.
25291
25292 2007-12-16 Andreas Schwab <schwab@suse.de>
25293
25294 * fileio.c (Finsert_file_contents): Fix overflow check to not
25295 depend on undefined integer overflow.
25296
25297 2007-12-14 Jason Rumney <jasonr@gnu.org>
25298
25299 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
25300 for characters above 127.
25301
25302 2007-12-13 Jason Rumney <jasonr@gnu.org>
25303
25304 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
25305 before dereferencing array.
25306 (lookup_vk_code): Remove zero comparison.
25307
25308 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
25309
25310 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
25311 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
25312 Use `unsigned int' instead of `uint'.
25313 (xd_read_message, Fdbus_register_signal): Split expressions into
25314 multiple lines before operators "&&" and "||", according to the
25315 GNU Coding Standards.
25316
25317 2007-12-14 Eli Zaretskii <eliz@gnu.org>
25318
25319 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
25320
25321 2007-12-12 Juri Linkov <juri@jurta.org>
25322
25323 * buffer.c (Frename_buffer): In interactive spec replace
25324 `read-buffer' with `read-string' that uses `buffer-name-history'
25325 as history, and the current buffer's name as default.
25326
25327 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
25328
25329 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
25330 manipulating the backtrace manually.
25331 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
25332 (struct backtrace, backtrace_list): Remove.
25333 (command_loop_1): Remove dead var `no_direct'.
25334
25335 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
25336 preserve non-built-in buffer-local variables.
25337 (Fkill_all_local_variables): Don't re-create&re-set permanent
25338 buffer-local variables.
25339
25340 2007-12-09 Juri Linkov <juri@jurta.org>
25341
25342 * buffer.c (Frename_buffer): Change interactive spec from "s" to
25343 Lisp code that uses `read-buffer' with current buffer as default.
25344
25345 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
25346
25347 * dbusbind.c (xd_read_message): Generate an event for every
25348 registered handler. There might be several handlers registered
25349 for the same signal.
25350 (Fdbus_register_signal): Don't overwrite a registration for the
25351 same signal. Add a new registration if handlers are different.
25352 (Vdbus_registered_functions_table): Rework doc string.
25353
25354 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
25355
25356 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
25357 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
25358 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
25359 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
25360 Unify argument lists.
25361 (xd_read_message, Fdbus_register_signal): Reorder and extend event
25362 arguments and hash table keys. Use unique name for service.
25363 (Fdbus_unregister_signal): Remove checks.
25364 (Vdbus_registered_functions_table): Fix doc string.
25365
25366 2007-12-05 Magnus Henoch <mange@freemail.hu>
25367
25368 * process.c (make_process): Initialize pty_flag to 0.
25369
25370 2007-12-05 Jason Rumney <jasonr@gnu.org>
25371
25372 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
25373 specified XBMs.
25374
25375 2007-12-05 Richard Stallman <rms@gnu.org>
25376
25377 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
25378
25379 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25380
25381 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
25382 New variable.
25383 (mac_try_close_socket) [MAC_OSX]: New function.
25384 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
25385 Update cfsockets_for_select. Replace invalid CFRunLoop source.
25386
25387 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
25388 Use mac_try_close_socket.
25389
25390 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25391
25392 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
25393 reloc_base.
25394 (copy_dysymtab): Compute relocation base here.
25395 (rebase_reloc_address) [__ppc64__]: New function.
25396 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
25397 changed.
25398
25399 2007-12-05 Jason Rumney <jasonr@gnu.org>
25400
25401 * w32proc.c (sys_spawnve): Quote args with wildcards.
25402
25403 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25404
25405 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
25406 __objc_* sections.
25407 (unrelocate) [_LP64]: Set relocation base to address of data segment.
25408
25409 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
25410
25411 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
25412 Move check for Vdbus_registered_functions_table to
25413 xd_read_queued_messages.
25414 (xd_read_queued_messages): Protect xd_read_message calls by
25415 internal_condition_case_1.
25416
25417 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
25418
25419 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
25420 Qdbus_system_bus and Qdbus_session_bus, respectively.
25421 (Vdbus_intern_symbols): Remove.
25422 (Vdbus_registered_functions_table): New hash table.
25423 (XD_SYMBOL_INTERN_SYMBOL): Remove.
25424 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
25425 Rewrite in order to manage registered functions by hash table
25426 Vdbus_registered_functions_table.
25427
25428 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
25429
25430 * xterm.c: Update URL to Window Manager Specification in comment.
25431
25432 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
25433
25434 * config.in (HAVE_DBUS): Add.
25435
25436 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
25437 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
25438 (obj): Add $(DBUS_OBJ).
25439 (LIBES): Add $(DBUS_LIBS).
25440 (dbusbind.o): New target.
25441
25442 * dbusbind.c: New file.
25443
25444 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
25445
25446 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
25447 (Qdbus_event): New Lisp symbol.
25448 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
25449 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
25450 (keys_of_keyboard): Define dbus-event.
25451
25452 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
25453
25454 2007-12-01 Richard Stallman <rms@gnu.org>
25455
25456 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
25457
25458 2007-11-30 Jason Rumney <jasonr@gnu.org>
25459
25460 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
25461 (w32con_reset_terminal_modes): Clear screen buffer.
25462 (w32_face_attributes): Don't use color indexes that are out of range.
25463 Only reverse the default colors.
25464
25465 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
25466 WINDOWSNT.
25467
25468 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
25469
25470 2007-11-29 Jason Rumney <jasonr@gnu.org>
25471
25472 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
25473 (w32_face_attributes): Use Vtty_defined_color_alist to determine
25474 if the terminal colors are initialized.
25475 (unspecified_fg, unspecified_bg): Remove unused declarations.
25476
25477 2007-11-29 Andreas Schwab <schwab@suse.de>
25478
25479 * keyboard.c (apply_modifiers): Fix typo.
25480
25481 2007-11-29 Richard Stallman <rms@gnu.org>
25482
25483 * keymap.c (Fcurrent_local_map): Doc fix.
25484
25485 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
25486
25487 * s/gnu-kfreebsd.h: New file.
25488
25489 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
25490
25491 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
25492 Don't cast redundantly.
25493
25494 * keyboard.c (KEY_TO_CHAR): New macro.
25495 (parse_modifiers, apply_modifiers): Accept integer arguments.
25496 (read_key_sequence): Use them to unify the "shift->unshift" mapping
25497 for chars and symbol keys.
25498 After doing such remapping, apply function-key-map again.
25499
25500 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
25501
25502 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
25503 compiled anymore.
25504
25505 2007-11-26 Andreas Schwab <schwab@suse.de>
25506
25507 * process.c (list_processes_1): Fix indentation level of the
25508 command column.
25509
25510 2007-11-23 Andreas Schwab <schwab@suse.de>
25511
25512 * editfns.c (Fformat): Handle %c specially since it requires the
25513 argument to be of type int.
25514
25515 2007-11-23 Markus Triska <markus.triska@gmx.at>
25516
25517 * emacs.c (main): Call init_editfns before init_process, since
25518 init_process sets Vprocess_connection_type depending on OS release.
25519
25520 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
25521
25522 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
25523 (find_symbol_value): Use do_symval_forwarding.
25524
25525 * data.c (set_internal): Set the value in the `cons-cell' (for
25526 Buffer_Local_values) not only for frame-local variables.
25527
25528 2007-11-22 Andreas Schwab <schwab@suse.de>
25529
25530 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
25531 values to sprintf.
25532 * keymap.c (Fsingle_key_description): Likewise.
25533 * print.c (print_object): Likewise.
25534
25535 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
25536
25537 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
25538 file for image is nil.
25539
25540 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
25541
25542 * term.c: Include stdarg.h.
25543 (fatal): Implement using varargs.
25544 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
25545
25546 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
25547
25548 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
25549 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
25550 Update call to buffer_slot_type_mismatch.
25551 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
25552 (buffer_slot_type_mismatch): Update.
25553 * buffer.c (buffer_local_types): Remove.
25554 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
25555 (defvar_per_buffer): Set the type in the buffer_objfwd.
25556
25557 2007-11-21 Jason Rumney <jasonr@gnu.org>
25558
25559 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
25560 CreateFileMapping returns NULL on failure.
25561
25562 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
25563
25564 * search.c (Fset_match_data): Remove the `evaporate' feature.
25565 (unwind_set_match_data): Don't use the `evaporate' feature.
25566
25567 2007-11-21 Jason Rumney <jasonr@gnu.org>
25568
25569 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
25570
25571 * w32console.c (w32con_write_glyphs): Remove unused variables.
25572
25573 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
25574
25575 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
25576
25577 * s/darwin.h (MULTI_KBOARD): Remove.
25578
25579 * macfns.c (x_create_tip_frame, Fx_create_frame)
25580 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
25581
25582 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
25583
25584 * buffer.c (Fbuffer_local_value): Remove redundant test.
25585 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
25586 than in `current-buffer' to match the comment.
25587 Do the swap using swap_in_global_binding.
25588
25589 * data.c (store_symval_forwarding, set_internal):
25590 * eval.c (specbind): Remove dead code.
25591
25592 * coding.c (detect_coding, Fupdate_coding_systems_internal):
25593 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
25594 Since we do not want to see internal Lisp_*fwd objects here.
25595
25596 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
25597
25598 * sysdep.c (init_system_name): Use getaddrinfo if available.
25599
25600 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
25601 (x_scroll_bar_note_movement): start, end, with, height in struct
25602 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
25603
25604 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
25605
25606 * puresize.h (BASE_PURESIZE): Increase to 1190000.
25607
25608 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
25609
25610 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
25611 This undoes Richard's change of 14-Oct-2002.
25612
25613 * alloc.c (allocate_other_vector):
25614 * lisp.h (allocate_other_vector): Remove.
25615
25616 * window.c (struct save_window_data): Move non-lisp data to the end
25617 and make it `int' rather than Lisp_Object.
25618 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
25619 Done wrap/unwrap integer values.
25620 (Fset_window_configuration, compare_window_configurations):
25621 Update use of fields to their new types.
25622
25623 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
25624 Turn integer fields into `int'. Merge x_window_low and x_window_high.
25625 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
25626 (SET_SCROLL_BAR_X_WINDOW): Remove.
25627 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
25628 Access the new x_window field directly.
25629 * xterm.c (x_scroll_bar_create): Use a pseudovector.
25630 Don't wrap/unwrap integers into Lisp_Objects.
25631 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
25632 (x_scroll_bar_report_motion):
25633 Don't wrap/unwrap integers into Lisp_Objects.
25634 (x_term_init): Use SDATA.
25635 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
25636 (x_scroll_bar_set_handle, x_scroll_bar_remove)
25637 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
25638 (x_scroll_bar_report_motion, x_scroll_bar_clear):
25639 * xfns.c (x_set_background_color):
25640 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
25641 Access the new x_window field directly.
25642
25643 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
25644 (allocate_pseudovector): Make non-static.
25645
25646 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
25647 (allocate_pseudovector): Declare.
25648 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
25649
25650 2007-11-15 Andreas Schwab <schwab@suse.de>
25651
25652 * editfns.c (Fformat): Correctly format EMACS_INT values.
25653 Also take precision into account when formatting an integer.
25654
25655 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
25656
25657 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
25658
25659 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
25660 (syms_of_keyboard): Defsubr it.
25661
25662 * data.c (swap_in_global_binding): Fix longstanding bug where
25663 store_symval_forwarding was not called with the right second argument,
25664 thus causing objfwd-ing from being dropped.
25665
25666 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
25667
25668 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
25669 (Fx_display_pixel_height, Fx_display_planes)
25670 (Fx_display_color_cells, Fx_server_max_request_size)
25671 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
25672 (Fx_display_visual_class, Fx_display_save_under):
25673 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
25674 (Fx_display_pixel_height, Fx_display_planes)
25675 (Fx_display_color_cells, Fx_server_max_request_size)
25676 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
25677 (Fx_display_mm_height, Fx_display_mm_width)
25678 (Fx_display_backing_store, Fx_display_visual_class)
25679 (Fw32_select_font, Fx_display_save_under):
25680 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
25681 (Fx_display_pixel_height, Fx_display_planes)
25682 (Fx_display_color_cells, Fx_server_max_request_size)
25683 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
25684 (Fx_display_save_under): Fix typos in docstrings.
25685
25686 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
25687
25688 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
25689 corresponding to deleted entries; they are an implementation detail.
25690 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
25691 Remove variables.
25692 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
25693 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
25694 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
25695 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
25696 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
25697 (Fw32_define_rgb_color, Fw32_load_color_file)
25698 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
25699 Fix typos in docstrings.
25700 (Fx_server_version): Reflow docstring.
25701 (Fw32_shell_execute): Doc fixes.
25702
25703 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
25704
25705 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
25706 if w32_parse_hot_key returned nil.
25707
25708 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
25709
25710 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
25711
25712 2007-11-09 Jason Rumney <jasonr@gnu.org>
25713
25714 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
25715
25716 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
25717
25718 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
25719 Remove W32_SCROLL_BAR_CLICK_EVENT.
25720
25721 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
25722 Add MULTIMEDIA_KEY_EVENT.
25723
25724 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
25725 (lispy_multimedia_keys) [WINDOWSNT]: New array.
25726 (make_lispy_event) [WINDOWSNT]: Use it to translate
25727 MULTIMEDIA_KEY_EVENT.
25728
25729 * w32term.h (WM_APPCOMMAND): Define if not already.
25730 (GET_APPCOMMAND_LPARAM): Likewise.
25731
25732 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
25733 WM_APPCOMMAND.
25734
25735 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
25736 (syms_of_w32fns): Export and initialize it.
25737 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
25738
25739 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
25740
25741 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
25742 twice.
25743
25744 * xdisp.c (handle_face_prop): Fix last change.
25745
25746 2007-11-09 Richard Stallman <rms@gnu.org>
25747
25748 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
25749 not just for after-strings and before-strings.
25750 Call face_for_overlay_string and pass the overlay to it.
25751 (handle_display_prop): Determine whether property came from an overlay.
25752 Pass OVERLAY arg to handle_single_display_spec.
25753 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
25754 (load_overlay_strings): Fill in it->string_overlays.
25755 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
25756
25757 * xfaces.c (face_for_overlay_string): Function renamed from
25758 face_at_buffer_position_no_overlays, and add arg OVERLAY.
25759
25760 * dispextern.h (struct it): New elt string_overlays.
25761 New elt from_overlay, also in stack.
25762 Rearrange a few elements.
25763 (face_for_overlay_string): Decl renamed from
25764 face_at_buffer_position_no_overlays, and add argument.
25765
25766 2007-11-09 Richard Stallman <rms@gnu.org>
25767
25768 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
25769 to get the base face for an overlay string.
25770
25771 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
25772
25773 * xfaces.c (face_at_buffer_position_no_overlays): New function.
25774
25775 * xdisp.c (handle_stop): Move some code out of loop.
25776
25777 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25778
25779 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
25780 Fix conversion from Lisp object to ATSUFontID.
25781
25782 2007-11-09 Jason Rumney <jasonr@gnu.org>
25783
25784 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
25785
25786 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25787
25788 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
25789 Don't assume regions are aligned to page boundary.
25790 (print_load_command_name): Add LC_UUID if defined.
25791
25792 2007-11-09 Richard Stallman <rms@gnu.org>
25793
25794 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
25795
25796 2007-11-07 Jason Rumney <jasonr@gnu.org>
25797
25798 * s/windows95.h: Remove.
25799
25800 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
25801
25802 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
25803 abort with a message on unhandled store_type values.
25804
25805 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
25806
25807 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
25808 Remove HAVE_X11R5 and HAVE_X11R4.
25809
25810 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
25811
25812 * Makefile.in: Remove references to sunfns.c and sunfns.o.
25813
25814 2007-11-01 Johan Bockgård <bojohan@gnu.org>
25815
25816 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
25817 Don't set s->stippled_p here, since it has already been set by
25818 x_set_glyph_string_gc from x_draw_glyph_string.
25819
25820 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
25821
25822 * sunfns.c: Remove file.
25823
25824 * m/sun386.h:
25825 * m/sun2.h:
25826 * m/sparc.h: Remove Sun windows code.
25827
25828 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
25829
25830 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
25831 (init_keyboard): Set current_kboard's window-system to nil.
25832 (tty_read_avail_input): Typo.
25833 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
25834
25835 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
25836
25837 * s/usg5-4.h:
25838 * s/usg5-3.h:
25839 * s/ptx.h:
25840 * m/is386.h:
25841 * m/ibmps2-aix.h:
25842 * Makefile.in: Remove all mentions of X10.
25843
25844 * dispnew.c (syms_of_display): Don't mention version 10.
25845
25846 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
25847
25848 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
25849 ($(BLD)/abbrev.$(O)): Remove.
25850
25851 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
25852
25853 Rewrite abbrev.c in Elisp.
25854 * image.c (Qcount): Don't declare as extern.
25855 (syms_of_image): Initialize and staticpro `Qcount'.
25856 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
25857 * emacs.c (main): Don't call syms_of_abbrev.
25858 * Makefile.in (obj): Remove abbrev.o.
25859 (abbrev.o): Remove.
25860 * abbrev.c: Remove.
25861
25862 2007-10-26 Martin Rudalics <rudalics@gmx.at>
25863
25864 * window.c (window_min_size_2): Don't count header-line.
25865
25866 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
25867
25868 * frame.h (struct frame): Move all bit fields after the first bit
25869 field to take advantage of the available space. Group all the
25870 chars together to reduce wasted space due to padding.
25871
25872 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
25873
25874 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
25875
25876 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
25877 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
25878 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
25879 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
25880 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
25881 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
25882 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
25883 (last_marked, mark_object_loop_halt): Make static.
25884
25885 * frame.c (syms_of_frame) <delete-frame-functions>:
25886 Fix typo in docstring.
25887
25888 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
25889
25890 * w32.c (init_environment): Fix tiny memory leak.
25891 (w32_get_resource): Remove unused variable `ok'.
25892
25893 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
25894
25895 Make `window-system' into a keyboard-local variable (rather than
25896 frame-local as done originally by multi-tty).
25897
25898 * keyboard.h (struct kboard): Add Vwindow_system.
25899 * keyboard.c (init_kboard): Set a default for Vwindow_system.
25900 (mark_kboards): Mark Vwindow_system.
25901
25902 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
25903 (init_display): Don't set the obsolete `window-system' frame-param.
25904
25905 * xterm.c (x_term_init):
25906 * w32term.c (w32_create_terminal):
25907 * term.c (init_tty): Set Vwindow_system.
25908 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
25909 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
25910
25911 * xfns.c (Fx_create_frame, x_create_tip_frame):
25912 * w32fns.c (Fx_create_frame, x_create_tip_frame):
25913 * macfns.c (Fx_create_frame):
25914 Don't set the obsolete `window-system' frame-param.
25915
25916 * frame.h (Qwindow_system): Remove.
25917 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
25918 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
25919
25920 2007-10-24 Richard Stallman <rms@gnu.org>
25921
25922 * frame.c (x_figure_window_size): For fullscreen case,
25923 set USPosition | PPosition without clobbering rest of window_prompting.
25924
25925 * keyboard.c (Fcurrent_idle_time): Doc fix.
25926
25927 * print.c (Fwith_output_to_temp_buffer): Doc fix.
25928
25929 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
25930
25931 * process.c (unwind_request_sigio): Only define if __ultrix__.
25932
25933 * callproc.c (child_setup): Remove spurious *.
25934
25935 * lisp.h (Fget_text_property): Declare.
25936 (have_menus_p): Declare it here rather than in sys-dep header files.
25937 * macterm.h (have_menus_p):
25938 * msdos.h (have_menus_p):
25939 * xterm.h (have_menus_p): Remove.
25940
25941 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
25942 (Fmake_variable_frame_local): Just check the variable's const-ness
25943 rather than checking nil or t.
25944
25945 2007-10-22 Jason Rumney <jasonr@gnu.org>
25946
25947 * w32fns.c: Include math.h.
25948 (w32_abort): Declaration moved to nt/config.nt.
25949
25950 * s/ms-w32.h (HAVE_STDLIB_H): Define.
25951 (abort): Redefinition moved to nt/config.nt.
25952
25953 * m/windowsnt.h: Remove.
25954
25955 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
25956
25957 * emacs.c (Fdump_emacs): Fix typo in message.
25958 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
25959 <installation-directory>: Reflow docstring.
25960
25961 2007-10-22 Juri Linkov <juri@jurta.org>
25962
25963 * minibuf.c: Allow minibuffer default to be a list of default values.
25964 With empty input use the first element of this list as returned default.
25965 (string_to_object)
25966 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
25967 (read_minibuf): If defalt is cons, set histstring to its car.
25968 (Fread_string): If default_value is cons, set val to its car.
25969 (Fread_buffer): If def is cons, use its car.
25970 (Fcompleting_read): If defalt is cons, set val to its car.
25971
25972 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
25973
25974 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
25975
25976 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
25977
25978 * doc.c (Fdocumentation): Check for advice in all cases.
25979
25980 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
25981
25982 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
25983
25984 2007-10-19 Richard Stallman <rms@gnu.org>
25985
25986 * doc.c (Fdocumentation): Check for and handle an advised function.
25987
25988 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
25989
25990 * process.c (Fset_process_filter): Doc fix.
25991
25992 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
25993
25994 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
25995 which caused key-translation-map to applied repeatedly (thus breaking
25996 double-mode).
25997
25998 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
25999
26000 * xselect.c (x_own_selection, x_handle_selection_clear)
26001 (x_clear_frame_selections):
26002 * w32menu.c (list_of_panes, list_of_items):
26003 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
26004 * textprop.c (validate_plist, interval_has_all_properties)
26005 (interval_has_some_properties, interval_has_some_properties_list)
26006 (add_properties, text_property_list):
26007 * process.c (Fget_buffer_process, list_processes_1, status_notify):
26008 * minibuf.c (Fassoc_string):
26009 * macselect.c (x_own_selection, x_clear_frame_selections)
26010 (Fx_disown_selection_internal):
26011 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
26012 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
26013
26014 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
26015
26016 * process.c: Link to libs for calling res_init() if available.
26017 (Fmake_network_process): Call res_init() before getaddrinfo or
26018 gethostbyname, if possible.
26019
26020 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
26021
26022 * lread.c (read1): Set pvectype for char_tables.
26023
26024 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
26025 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
26026 Add type checks.
26027 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
26028
26029 * alloc.c (free_misc): Use XMISCTYPE.
26030 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
26031
26032 2007-10-17 Glenn Morris <rgm@gnu.org>
26033
26034 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
26035 (syms_of_minibuf): Add Qcompletion_ignore_case.
26036 * dired.c (Qcompletion_ignore_case): Change to external.
26037 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
26038 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
26039 (Fread_file_name): Use it rather than intern'ing.
26040
26041 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
26042 (Fread_coding_system): Ignore case of user input.
26043
26044 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26045
26046 * xdisp.c (handle_display_prop): Ignore display specs after
26047 replacing one when string text is being replaced.
26048 (handle_single_display_spec): Pretend as if characters with display
26049 property haven't been consumed only when buffer text is being replaced.
26050
26051 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
26052
26053 * xfns.c (Fx_create_frame, Fx_display_list):
26054 * window.c (window_fixed_size_p, enlarge_window)
26055 (shrink_window_lowest_first):
26056 * macterm.c (init_font_name_table):
26057 * macfns.c (Fx_create_frame, Fx_display_list):
26058 * lread.c (close_load_descs):
26059 * keyboard.c (read_char_x_menu_prompt):
26060 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
26061 * coding.c (code_convert_region_unwind): Test the type of an object
26062 rather than just !NILP before extracting data from it.
26063
26064 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
26065
26066 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
26067 (XMISCANY): New macro.
26068 (XMISCTYPE): Use it.
26069 (struct Lisp_Misc_Any): New type.
26070 (union Lisp_Misc): Use it.
26071 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
26072 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
26073 (find_symbol_value, set_internal, default_value, Fset_default)
26074 (Fmake_variable_buffer_local, Fmake_local_variable)
26075 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
26076 (Flocal_variable_if_set_p, Fvariable_binding_locus):
26077 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
26078 * alloc.c (allocate_buffer): Set the size and tag.
26079 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
26080 Use XMISCANY.
26081 (die): Follow the GNU convention for error messages.
26082 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
26083 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
26084 tag any more.
26085 (set_buffer_internal_1):
26086 * frame.c (store_frame_param):
26087 * eval.c (specbind):
26088 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
26089
26090 * doc.c (Fsnarf_documentation): Simplify.
26091
26092 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
26093
26094 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
26095 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
26096
26097 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
26098
26099 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
26100
26101 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
26102
26103 * eval.c (do_autoload): Don't save autoloads.
26104
26105 * data.c (Ffset): Save autoload of the function being set.
26106
26107 2007-10-07 John Paul Wallington <jpw@pobox.com>
26108
26109 * xfns.c (x_create_tip_frame): Set the `display-type' frame
26110 parameter before setting up faces.
26111
26112 2007-10-13 Eli Zaretskii <eliz@gnu.org>
26113
26114 * ccl.c (Fregister_code_conversion_map):
26115 * keyboard.c (append_tool_bar_item): Reformat last change.
26116
26117 * lisp.h (eabs): Rename from `abs'. All callers changed.
26118
26119 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
26120
26121 * buffer.c (add_overlay_mod_hooklist):
26122 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
26123 * fontset.c (make_fontset):
26124 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
26125 (append_tool_bar_item):
26126 * macmenu.c (grow_menu_items):
26127 * w32menu.c (grow_menu_items):
26128 * xmenu.c (grow_menu_items): Use larger_vector.
26129
26130 2007-10-13 Eli Zaretskii <eliz@gnu.org>
26131
26132 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
26133 selected frame'' on MSDOS).
26134
26135 2007-10-12 Martin Rudalics <rudalics@gmx.at>
26136
26137 * frame.c (Qexplicit_name): New variable.
26138 (x_report_frame_params): Report it in parameter alist.
26139 (syms_of_frame): Intern and staticpro it.
26140
26141 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
26142
26143 * macfns.c (x_create_tip_frame): Set terminal for frame.
26144
26145 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
26146
26147 * frame.c (Qenvironment): Remove.
26148 (syms_of_frame) <Qenvironment>: Don't initialize.
26149 (Fdelete_frame): Don't treat the `environment' param specially.
26150 * frame.h (Qenvironment): Don't declare.
26151 * callproc.c (set_initial_environment): Don't set unused frame param.
26152
26153 * frame.c (Fframe_with_environment): Remove.
26154 (syms_of_frame) <Sframe_with_environment>: Don't declare.
26155
26156 * lisp.h (Fframe_with_environment): Don't declare.
26157
26158 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
26159
26160 * indent.c (indent_tabs_mode, last_known_column)
26161 (last_known_column_modified): Make static.
26162 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
26163
26164 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
26165
26166 * puresize.h (BASE_PURESIZE): Increase to 1170000.
26167
26168 2007-10-09 Jason Rumney <jasonr@gnu.org>
26169
26170 * w32term.c (x_set_window_size): Disable code that attempts to tell
26171 Lisp code about a size change before it actually happens.
26172
26173 2007-10-09 Richard Stallman <rms@gnu.org>
26174
26175 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
26176 return HANDLED_RETURN.
26177
26178 2007-10-08 Martin Rudalics <rudalics@gmx.at>
26179
26180 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
26181 when there's an unread command event.
26182
26183 * frame.c (focus_follows_mouse): Move here from frame.el to allow
26184 window autoselection act appropriately when leaving selected frame.
26185 (syms_of_frame): Initialize focus_follows_mouse.
26186 * frame.h (focus_follows_mouse): Extern it.
26187 * macterm.c (XTread_socket): When focus_follows_mouse is nil
26188 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
26189 * msdos.c (dos_rawgetc): Likewise.
26190 * w32term.c (w32_read_socket): Likewise.
26191 * xterm.c (handle_one_xevent): Likewise.
26192 * xdisp.c (syms_of_xdisp): In doc-string of
26193 mouse-autoselect-window mention focus-follows-mouse.
26194
26195 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26196
26197 * macterm.c (mac_load_query_font): Fix missing return value.
26198 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
26199 Add BLOCK_INPUT.
26200
26201 2007-10-08 Richard Stallman <rms@gnu.org>
26202
26203 * xdisp.c (get_window_cursor_type): Implement documented behavior
26204 for cursor-in-non-selected-windows = t.
26205
26206 2007-10-08 Jason Rumney <jasonr@gnu.org>
26207
26208 * w32.c (w32_get_resource): Always close registry keys.
26209
26210 2007-10-08 Jason Rumney <jasonr@gnu.org>
26211
26212 * makefile.w32-in (LIBS): Add COMCTL32.
26213
26214 * w32fns.c (globals_of_w32fns): Init common controls.
26215
26216 2007-10-08 Richard Stallman <rms@gnu.org>
26217
26218 * image.c (our_memory_buffer): Rename from omfib_buffer.
26219
26220 2007-10-08 Richard Stallman <rms@gnu.org>
26221
26222 * buffer.c (Foverlays_at): Doc fix.
26223
26224 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
26225
26226 * fns.c (Fplist_put): Preserve uneven tail data.
26227
26228 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
26229
26230 * termhooks.h (enum event_kind): Remove trailing comma.
26231
26232 * frame.h (enum): Remove trailing comma.
26233
26234 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
26235
26236 * w32proc.c (delete_child): Don't terminate threads of zombies.
26237
26238 2007-10-08 Martin Rudalics <rudalics@gmx.at>
26239
26240 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
26241
26242 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
26243 last-repeatable-command.
26244 (init_kboard): Initialize Vlast_repeatable_command.
26245 (command_loop_1): Set it to real_this_command unless that was
26246 bound to an input event.
26247 (mark_kboards): Mark it.
26248
26249 2007-10-08 Richard Stallman <rms@gnu.org>
26250
26251 * eval.c (condition-case): Doc fix.
26252
26253 2007-10-08 Masatake YAMATO <jet@gyve.org>
26254
26255 * xfaces.c (tty_supports_face_attributes_p): Fix code
26256 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
26257 was copied and not edited.
26258
26259 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
26260
26261 Add new `input-decode-map' keymap and use it for terminal
26262 escape sequences.
26263 * keyboard.h (struct kboard): Add Vinput_decode_map.
26264 Remove Vlocal_key_translation_map.
26265 * keyboard.c (read_key_sequence): Add support for input-decode-map.
26266 (init_kboard): Init input-decode-map.
26267 Replace local-key-translation-map back with key-translation-map.
26268 (syms_of_keyboard): Declare input-decode-map.
26269 Remove local-key-translation-map. Update docstrings.
26270 (mark_kboards): Mark Vinput_decode_map.
26271 Don't mark Vlocal_key_translation_map.
26272 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
26273 Replace local-key-translation-map back with key-translation-map.
26274 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
26275 Bind in input-decode-map rather than function-key-map.
26276
26277 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
26278 This was made redundant by the previous introduction of XSETPVECTYPE.
26279
26280 2007-10-09 Richard Stallman <rms@gnu.org>
26281
26282 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
26283
26284 2007-09-29 Richard Stallman <rms@gnu.org>
26285
26286 * eval.c (internal_condition_case_2, internal_condition_case_1)
26287 (internal_condition_case): Reenable abort if x_catching_errors ()
26288 to see if that really happens and why.
26289
26290 2007-10-06 Andreas Schwab <schwab@suse.de>
26291
26292 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
26293
26294 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
26295
26296 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
26297
26298 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
26299
26300 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
26301
26302 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
26303
26304 * window.h (struct window):
26305 * window.c (struct save_window_data, struct saved_window):
26306 * termhooks.h (struct terminal):
26307 * process.h (struct Lisp_Process):
26308 * frame.h (struct frame):
26309 * buffer.h (struct buffer):
26310 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
26311 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
26312 The size field of (pseudo)vectors is now unsigned.
26313 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
26314
26315 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
26316 Turn `count' into an integer.
26317
26318 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
26319 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
26320 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
26321 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
26322 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
26323
26324 * alloc.c (allocate_pseudovector): New fun.
26325 (ALLOCATE_PSEUDOVECTOR): New macro.
26326 (allocate_window, allocate_terminal, allocate_frame)
26327 (allocate_process): Use it.
26328 (mark_vectorlike): New function.
26329 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
26330 (mark_terminals): Use it.
26331 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
26332 (Fmake_byte_code): Use XSETPVECTYPE.
26333
26334 * frame.c (Fframe_parameters): Minor simplification.
26335
26336 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
26337
26338 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
26339
26340 * buffer.c (Fget_buffer_create, init_buffer_once):
26341 * lread.c (defsubr):
26342 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
26343
26344 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
26345 defined differently in the m/*.h files.
26346 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
26347 (XSETPVECTYPE): New macro.
26348 (XSETPSEUDOVECTOR): Use it.
26349
26350 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
26351 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
26352
26353 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
26354 * lread.c (defvar_per_buffer):
26355 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
26356
26357 * window.c (candidate_window_p): Only consider as visible frames that
26358 are on the same terminal.
26359
26360 * m/ibms390x.h (MARKBIT): Remove unused macro.
26361
26362 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
26363
26364 * lread.c (Fload): Fix typo in docstring.
26365
26366 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
26367
26368 * floatfns.c (Fexpt): Manually check for overflows, so that a power
26369 of a non-zero value can't yield zero.
26370
26371 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
26372
26373 * term.c (term_clear_mouse_face, term_mouse_highlight)
26374 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
26375
26376 * print.c (safe_debug_print): Use XHASH.
26377
26378 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
26379 Lisp elements such as tags.
26380 (XHASH): New macro.
26381 (EQ): Use it.
26382 (SREF, SSET, STRING_COPYIN): Use SDATA.
26383 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
26384
26385 * alloc.c (mark_terminal): Remove left-over declaration.
26386 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
26387 (allocate_vectorlike): Remove type argument. Adjust callers.
26388 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
26389 Only handle the one remaining MEM_TYPE_VECTORLIKE.
26390
26391 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
26392 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
26393 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
26394 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
26395 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
26396 Use them.
26397
26398 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
26399 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
26400 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
26401
26402 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
26403
26404 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
26405 loaded by default.
26406
26407 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
26408
26409 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
26410 on this tty.
26411 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
26412
26413 * term.c (mouse_face_window): Rename from Qmouse_face_window.
26414 Update all users.
26415 (handle_one_term_event): Use Gpm_DrawPointer.
26416 (Fgpm_mouse_start): Rename from Fterm_open_connection.
26417 Signal errors instead of returning nil. Always return nil.
26418 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
26419 Make it a noop if gpm-mouse was not activated.
26420 (syms_of_term): Update names.
26421
26422 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
26423
26424 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
26425 (init_sys_modes): Check that gpm_tty is the current tty.
26426
26427 * alloc.c (allocate_terminal): Set the vector size to only count the
26428 lisp fields. Initialize those to nil.
26429 (mark_object): Don't treat terminals specially.
26430 (mark_terminal): Remove.
26431 (mark_terminals): Use mark_object instead.
26432
26433 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
26434 the GC to the beginning.
26435
26436 * indent.h:
26437 * indent.c: Use EMACS_INT for ints coming from Elisp data.
26438
26439 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
26440
26441 2007-09-25 Jason Rumney <jasonr@gnu.org>
26442
26443 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
26444
26445 * w32console.c (create_w32cons_output): Remove.
26446
26447 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
26448
26449 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
26450 (reset_sys_modes): Use reset_terminal_modes_hook.
26451
26452 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
26453
26454 * eval.c (do_autoload): Don't output any message.
26455
26456 2007-09-24 Juri Linkov <juri@jurta.org>
26457
26458 * emacs.c (standard_args): Change priority of "--no-splash"
26459 from 40 to 3. Add "--no-desktop" with the same priority.
26460
26461 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
26462
26463 * alloc.c (gc_sweep): Check cons cell mark bits word by word
26464 and optimize the case where they are all 1.
26465
26466 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
26467
26468 * lisp.h (abs): Define if not defined.
26469 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
26470 Don't define `abs', since it's defined in lisp.h.
26471
26472 2007-09-22 Eli Zaretskii <eliz@gnu.org>
26473
26474 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
26475 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
26476 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
26477 (init_tty): Use DEV_TTY instead of "/dev/tty".
26478 [WINDOWSNT]: No need to protect from NAME arg being null.
26479
26480 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
26481
26482 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
26483 up the tty state.
26484
26485 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
26486
26487 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
26488 (gpm_tty): Change its type.
26489 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
26490 (gpm_tty): Change its type and initialize it.
26491 (Fterm_open_connection): Check the frame is indeed a tty.
26492 Use the new gpm_tty.
26493 (Fterm_close_connection): Use the new gpm_tty.
26494 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
26495 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
26496
26497 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
26498
26499 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
26500 underline_color, to draw strike-through.
26501
26502 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
26503
26504 * lisp.h (allocate_terminal): Declare.
26505
26506 * window.c (candidate_window_p): Consider frames that are being placed
26507 by the user as somewhere between visible and iconified.
26508 (window_loop): Prefer windows on the current frame.
26509 (Fselect_window): Move the use of select-frame to the beginning so we
26510 can just delegate all the work (it'll call us back anyway).
26511
26512 * frame.c (Qdisplay_environment_variable):
26513 * frame.h (Qdisplay_environment_variable): Delete.
26514
26515 * .gdbinit (xbacktrace): Print the arg's address rather than the value
26516 of the first arg, since that value may be a union.
26517
26518 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
26519 parameter rather than Qdisplay_environment_variable. If all else
26520 fails, look for DISPLAY in initial-environment.
26521
26522 2007-09-21 Glenn Morris <rgm@gnu.org>
26523
26524 * Makefile.in (emacstool): Remove target.
26525 (lisp, shortlisp): Remove termdev.elc.
26526
26527 2007-09-21 Markus Triska <markus.triska@gmx.at>
26528
26529 * xterm.c (x_delete_display): Compile session management conditionally.
26530
26531 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
26532
26533 * callproc.c (getenv_internal_1): New function.
26534 (getenv_internal): Use it.
26535 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
26536
26537 * terminal.c (get_terminal): Don't accept ints to represent terminals.
26538 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
26539 (Fset_terminal_parameter): Work with dead terminals as well.
26540 (Fmodify_terminal_parameters): Remove.
26541
26542 * terminal.c (get_terminal): Handle terminals.
26543 Make sure the terminal returned is live.
26544 (create_terminal): Use allocate_terminal.
26545 (mark_terminals): Move to alloc.c.
26546 (delete_terminal): Use terminal->name as liveness status.
26547 NULL out fields after freeing their contents.
26548 Don't deallocate the object.
26549 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
26550 rather than an int.
26551 (Fterminal_live_p): Accept non-integer arguments.
26552 (Fterminal_list): Return terminal objects rather than an ints.
26553
26554 * alloc.c (enum mem_type): New member for `terminal' objects.
26555 (allocate_terminal): New function.
26556 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
26557 Handle terminals.
26558 (mark_terminal): New fun.
26559 (mark_terminals): Move from terminal.c.
26560
26561 * term.c (get_tty_terminal): Don't treat output_initial specially.
26562 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
26563 (delete_tty): Use terminal->name as liveness status.
26564
26565 * termhooks.h (struct terminal): Make it into a pseudovector.
26566 Remove `deleted' replaced by checking `name's nullness.
26567
26568 * print.c (print_object): Handle terminals.
26569
26570 * lisp.h (enum pvec_type): New `terminal' pseudovector.
26571 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
26572
26573 * frame.c (make_terminal_frame):
26574 * keyboard.c (tty_read_avail_input):
26575 * w32term.c (x_delete_terminal):
26576 * xfns.c (Fx_create_frame, x_create_tip_frame):
26577 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
26578
26579 2007-09-20 Glenn Morris <rgm@gnu.org>
26580
26581 * process.c (Fmake_network_process): Doc fix.
26582
26583 2007-09-19 Jason Rumney <jasonr@gnu.org>
26584
26585 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
26586
26587 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
26588
26589 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
26590 Fix a C warning regarding variable constness.
26591
26592 * xterm.c (handle_one_xevent): Fix a C warning.
26593
26594 2007-09-18 Jason Rumney <jasonr@gnu.org>
26595
26596 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
26597
26598 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
26599
26600 * gtkutil.c (gdpy_def): New variable.
26601 (xg_initialize): Initialize gdpy_def.
26602 (xg_display_close): If no other display exists, set gdpy_def to a
26603 new connection.
26604
26605 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
26606
26607 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
26608 when we have no file name for the icon.
26609 (xg_tool_bar_expose_callback): Remove.
26610 (xg_create_tool_bar): Don't connect expose signal to
26611 xg_tool_bar_expose_callback.
26612 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
26613
26614 2007-09-16 Andreas Schwab <schwab@suse.de>
26615
26616 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
26617 values instead of zapping them.
26618
26619 2007-09-14 Glenn Morris <rgm@gnu.org>
26620
26621 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
26622 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
26623 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
26624 scope and rename to omfib_buffer for clarity.
26625 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
26626
26627 2007-09-14 Kenichi Handa <handa@m17n.org>
26628
26629 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
26630
26631 2007-09-13 Jason Rumney <jasonr@gnu.org>
26632
26633 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
26634
26635 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
26636
26637 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
26638 (mac_term_init): Call here instead, passing rif.
26639
26640 2007-09-13 Glenn Morris <rgm@gnu.org>
26641
26642 * s/hpux.h: No longer define `static' as nothing.
26643
26644 2007-09-13 Johan Bockgård <bojohan@gnu.org>
26645
26646 * callint.c (Fcall_interactively): Remove unused var `fun'.
26647
26648 2007-09-12 Romain Francoise <romain@orebokech.com>
26649
26650 * window.c (prefer_window_split_horizontally, display_buffer):
26651 Revert 2007-09-08 change.
26652
26653 2007-09-12 Glenn Morris <rgm@gnu.org>
26654
26655 * alloca.c: Remove file.
26656 * Makefile.in (alloca): Do not undef.
26657 (allocaobj, alloca.o): Remove.
26658 (otherobj): Remove allocaobj.
26659 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
26660 * regex.c (C_ALLOCA): Remove all references and code that was only
26661 used when this was defined.
26662 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
26663 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
26664 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
26665
26666 * Makefile.in (SOURCES, unlock, relock): Delete.
26667
26668 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
26669 (menu_grab_callback): All uses changed.
26670
26671 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
26672 (x_reply_selection_request): All uses changed.
26673
26674 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
26675
26676 * lread.c (load_warn_old_style_backquotes): Change message to look
26677 better when it appears in the middle of byte-compiler messages.
26678
26679 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
26680
26681 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
26682
26683 * xterm.c (x_create_terminal): Add comment.
26684
26685 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
26686
26687 2007-09-10 Richard Stallman <rms@gnu.org>
26688
26689 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
26690
26691 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
26692
26693 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
26694 (DEFUN): Document `intspec', use it instead of `prompt'.
26695
26696 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
26697
26698 * data.c (Finteractive_form): If the interactive specification starts
26699 with a `(', use it as a Lisp form.
26700
26701 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
26702 name and file modes.
26703
26704 * callint.c (Fcall_interactively): Comment fixes.
26705
26706 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
26707
26708 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
26709 and compiled functions.
26710
26711 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
26712
26713 * window.c (prefer_window_split_horizontally): New variable.
26714 (display_buffer): Consider splitting window horizontally depending
26715 on prefer_window_split_horizontally.
26716
26717 2007-09-08 Eli Zaretskii <eliz@gnu.org>
26718
26719 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
26720
26721 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
26722
26723 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
26724
26725 * frame.c (x_set_frame_parameters): Check number is positive before
26726 using XFASTINT.
26727
26728 * window.c (freeze_window_start): Don't presume selected_window holds
26729 a window object.
26730 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
26731
26732 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
26733
26734 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
26735
26736 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
26737
26738 * window.c (Vsplit_window_preferred_function): New var.
26739 (Fdisplay_buffer): Use it.
26740 (syms_of_window): Export, and initialize it.
26741
26742 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
26743
26744 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
26745
26746 2007-09-06 Glenn Morris <rgm@gnu.org>
26747
26748 * gtkutil.c (menu_grab_callback) <cnt>:
26749 * xselect.c (x_reply_selection_request) <cnt>: Move static
26750 variable to file scope.
26751
26752 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
26753
26754 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
26755 consistent values of selected_frame and selected_window.
26756
26757 2007-09-04 Jason Rumney <jasonr@gnu.org>
26758
26759 * w32console.c (initialize_w32_display): Zero unused hooks.
26760
26761 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
26762
26763 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
26764 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
26765
26766 2007-09-04 Jason Rumney <jasonr@gnu.org>
26767
26768 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
26769 in w32console.c. Set up input. Remove XXX comments that have been
26770 confirmed as correct.
26771
26772 * s/ms-w32.h (MULTI_KBOARD): Define.
26773
26774 * w32console.c (one_and_only_w32cons): Remove.
26775 (initialize_w32_display): Take terminal argument.
26776
26777 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
26778 initialize_w32_display.
26779 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
26780
26781 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
26782
26783 * keyboard.c (discard_mouse_events): Discard it.
26784 (make_lispy_event): Translate it to a lisp event.
26785 (lispy_wheel_names): Add wheel-left and right events.
26786 (syms_of_keyboard): Enlarge wheel_syms.
26787
26788 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
26789 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
26790
26791 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
26792
26793 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
26794 from WM_MOUSEHWHEEL.
26795 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
26796
26797 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
26798 terminal.
26799
26800 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
26801 keyboard for the terminal.
26802
26803 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
26804
26805 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
26806 (Vresume_tty_hook): Rename from Vresume_tty_functions.
26807 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
26808 and resume-tty-function to resume-tty-hook.
26809 (Fsuspend_tty, Fresume_tty): Use new names.
26810
26811 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
26812
26813 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
26814 if it starts with "n:".
26815
26816 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
26817
26818 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
26819
26820 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
26821
26822 * frame.h:
26823 * frame.c (Qterm_environment_variable): Remove.
26824 (syms_of_frame): Don't init and staticpro it.
26825
26826 * callproc.c (getenv_internal): Remove special case for $TERM.
26827
26828 * callproc.c (Vinitial_environment): New variable.
26829 (set_initial_environment): Initialize it.
26830 (syms_of_callproc): Declare it.
26831 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
26832 TERM under which a process runs is never related to the TERM in which
26833 Emacs is running.
26834
26835 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
26836
26837 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
26838 * s/darwin.h: ... do it here.
26839
26840 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
26841
26842 * lisp.h (set_initial_environment): Rename from set_global_environment.
26843
26844 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
26845 removed by mistake on the multi-tty branch.
26846
26847 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
26848 (Fmodify_frame_parameters): Return a value.
26849
26850 * image.c (png_load): Comment-out var only used in commented-out code.
26851
26852 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
26853 before passing it to mark_object.
26854
26855 * xfaces.c (internal_resolve_face_name): Return a value.
26856 (internal_resolve_face_name, resolve_face_name_error): Comment out.
26857
26858 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
26859 (x_icon): Comment-out var only used in commented-out code.
26860
26861 2007-08-29 Romain Francoise <romain@orebokech.com>
26862
26863 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
26864 QUIT hasn't been provided.
26865
26866 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
26867
26868 * callproc.c (child_setup, getenv_internal): Use the
26869 display-environment-variable and term-environment-variable frame params.
26870 (set_initial_environment): Initialise Vprocess_environment.
26871
26872 * config.in: Disable multi-keyboard support on a mac.
26873
26874 * frame.c (Qterm_environment_variable)
26875 (Qdisplay_environment_variable): New variables.
26876 (syms_of_frame): Intern and staticpro them.
26877 (Fmake_terminal_frame): Disable output method test.
26878
26879 * frame.h: Declare them here.
26880
26881 * macfns.c (x_set_mouse_color): Get rif from the frame.
26882 (x_set_tool_bar_lines): Don't use updating_frame.
26883 (mac_window): Add 2 new parameters for consistency with other systems.
26884 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
26885 frame parameters following what is done in X11 and w32. Don't use
26886 FRAME_MAC_DISPLAY_INFO.
26887 (Fx_open_connection, start_hourglass): Remove window-system check.
26888 (x_create_tip_frame): Get the keyboard from the terminal.
26889
26890 * macmenu.c: Reorder includes.
26891 (Fx_popup_menu): Use terminal specific mouse_position_hook.
26892
26893 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
26894 terminal parameter.
26895 (x_clear_frame): Add a frame parameter.
26896 (note_mouse_movement): Get rif from the frame.
26897 (mac_term_init): Initialize the terminal.
26898 (mac_initialize): Make static and move terminal initialization ...
26899 (mac_create_terminal): ... to this new function.
26900
26901 * macterm.h (struct mac_display_info): Add terminal.
26902 (mac_initialize): Delete declaration.
26903
26904 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
26905
26906 * sysdep.c: Comment out text after #endif.
26907
26908 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
26909 is defined. Better initialize ttys in windows. Use terminal
26910 specific mouse_position_hook.
26911
26912 * termhooks.h (union display_info): Add mac_display_info.
26913
26914 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
26915 Set the default minibuffer frame, window_system and the rest of the
26916 frame parameters following what is done in X11.
26917
26918 * w32term.c (w32_initialize): Make static.
26919
26920 * xselect.c (x_handle_selection_clear): Only access
26921 terminal->kboard when MULTI_KBOARD is defined.
26922
26923 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
26924 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
26925
26926 2007-08-29 Jason Rumney <jasonr@gnu.org>
26927
26928 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
26929 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
26930
26931 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
26932 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
26933
26934 * keyboard.c (restore_kboard_configuration): Only define when
26935 MULTI_KBOARD defined.
26936
26937 * makefile.w32-in: Update dependancies from Makefile.in.
26938 (OBJ1): Add terminal.$(O)
26939
26940 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
26941 Don't define function body.
26942 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
26943
26944 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
26945
26946 * w32.c (request_sigio, unrequest_sigio): Remove.
26947
26948 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
26949 (w32con_clear_frame, w32con_clear_end_of_line)
26950 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
26951 (w32con_delete_glyphs, w32con_set_terminal_window)
26952 (scroll_line, w32_sys_ring_bell): Add frame arg.
26953 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
26954 Add terminal arg.
26955 (PICK_FRAME): Remove.
26956 (w32con_write_glyphs): Use frame specific terminal coding.
26957 (one_and_only_w32cons): New global variable.
26958 (initialize_w32_display): Use it for storing hooks.
26959 (create_w32cons_output): New function.
26960
26961 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
26962 arg a frame.
26963
26964 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
26965 Set window_system.
26966 (x_set_tool_bar_lines): Don't use updating_frame.
26967 (Fx_create_frame): Set terminal and ref count.
26968 (Fx_open_connection): Remove window-system check.
26969
26970 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
26971
26972 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
26973 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
26974 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
26975 Add frame arg.
26976 (x_delete_terminal, w32_create_terminal): New functions.
26977 (w32_term_init): Create a terminal.
26978 (w32_initialize): Move terminal specific initialization to
26979 w32_create_terminal.
26980
26981 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
26982 (w32_clear_rect, w32_clear_area): Use background from frame.
26983 (w32_display_info): Add terminal.
26984 (w32_sys_ring_bell, x_delete_display): Declare here.
26985
26986 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
26987
26988 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
26989
26990 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
26991
26992 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
26993 Fix get_named_tty calls for the controlling tty.
26994
26995 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
26996
26997 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
26998
26999 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
27000
27001 * term.c (tty_insert_glyphs): Add missing first parameter.
27002
27003 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
27004
27005 * buffer.c (Fbuffer_list, Fbury_buffer):
27006 Take frame->buried_buffer_list into account.
27007
27008 * cm.c (current_tty): New variable, for cmputc().
27009 (cmputc): Use it.
27010 (cmcheckmagic): Add tty parameter, look up terminal streams there.
27011 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
27012 (cmgoto): Add tty parameter. Pass it on to calccost().
27013 Use emacs_tputs() instead of tputs().
27014
27015 * cm.h (emacs_tputs): New macro to set current_tty, and then call
27016 tputs().
27017 (current_tty): New variable, for cmputc().
27018 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
27019
27020 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
27021 (internal_condition_case, internal_condition_case_1)
27022 (internal_condition_case_2): Don't abort when x_catching_errors.
27023
27024 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
27025 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
27026 prevent crashes caused by bogus longjmps in read_char.
27027
27028 * keymap.h (Fset_keymap_parent): Add EXFUN.
27029
27030 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
27031 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
27032 Remove redundant definition.
27033
27034 * macfns.c (x_set_mouse_color, x_make_gc):
27035 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
27036
27037 * w32term.c (x_free_frame_resources):
27038 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
27039 (w32_initialize): Use the accessor macros for terminal characteristics.
27040
27041 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
27042 Use the accessor macros for terminal characteristics.
27043 * msdos.c (internal_terminal_init): Use the accessor macros for
27044 terminal characteristics.
27045 (ScreenVisualBell, internal_terminal_init):
27046 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
27047
27048 * termopts.h (no_redraw_on_reenter): Declare.
27049
27050 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
27051 (mark_terminals, mark_ttys): Declare.
27052 (Fgarbage_collect): Call them.
27053 (mark_object): Mark buried_buffer_list.
27054
27055 * prefix-args.c: Include stdlib.h for exit.
27056
27057 * syssignal.h: Add comment.
27058
27059 * indent.c: Include stdio.h.
27060
27061 * window.h (Vinitial_window_system): Declare.
27062 (Vwindow_system): Delete declaration.
27063
27064 * fontset.c (Finternal_char_font): Use FRAME_RIF.
27065
27066 * image.c (lookup_image): Don't initialize `c' until the xasserts
27067 have been run.
27068
27069 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
27070 FRAME_FOREGROUND_PIXEL.
27071
27072 * print.c (print_preprocess): Don't lose print_depth levels while
27073 iterating.
27074
27075 * widget.c (update_from_various_frame_slots):
27076 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
27077
27078 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
27079 frames.
27080 (window_internal_height): Remove bogus make_number call.
27081 (init_window_once): Call make_terminal_frame with two zero parameters.
27082
27083 * fileio.c (Fread_file_name): Update comment.
27084
27085 * callint.c (Fcall_interactively):
27086 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
27087 Make sure it is correctly unwound.
27088
27089 * xsmfns.c (x_session_close): New function.
27090
27091 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
27092 Delete declarations.
27093
27094 * xterm.h: Remove declaration for x_fully_uncatch_errors.
27095 (x_output): Remove background_pixel and foreground_pixel fields.
27096 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
27097 (x_delete_device, x_session_close): Declare.
27098
27099 * lread.c: Include setjmp.h. Update declaration of `read_char'.
27100 (read_filtered_event): Call `read_char' with a local
27101 `wrong_kboard_jmpbuf'.
27102
27103 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
27104 Don't call single_kboard_state. Use FRAME_RIF.
27105
27106 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
27107 systems.
27108
27109 * lisp.h (set_process_environment): Rename to `set_global_environment'.
27110 (Fframe_with_environment, Fset_input_meta_mode)
27111 (Fset_quit_char): EXFUN.
27112 (x_create_device, tty_output, terminal, tty_display_info): Declare.
27113 (init_sys_modes, reset_sys_modes): Update prototypes.
27114 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
27115
27116 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
27117 Vlocal_key_translation_map, and Vkeyboard_translate_table.
27118 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
27119 Delete declarations.
27120 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
27121 (temporarily_switch_to_single_kboard, tty_read_avail_input):
27122 New declarations.
27123
27124 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
27125 already does that during init_display(). Call syms_of_keymap
27126 before syms_of_keyboard. Call `syms_of_terminal'.
27127 Call set_initial_environment, not set_process_environment.
27128 (shut_down_emacs): Call reset_all_sys_modes() instead of
27129 reset_sys_modes().
27130
27131 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
27132 (internal_resolve_face_name, resolve_face_name_error): New functions.
27133 (resolve_face_name): Protect against loops and errors thrown by Fget.
27134 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
27135 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
27136
27137 * scroll.c: Replace CURTTY() with local variables throughout the
27138 file (where applicable).
27139 (calculate_scrolling, calculate_direct_scrolling)
27140 (scrolling_1, scroll_cost): Use the accessor macros for terminal
27141 characteristics.
27142
27143 * keymap.c (Vfunction_key_map): Remove.
27144 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
27145 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
27146 (Vkey_translation_map): Remove.
27147 (syms_of_keymap): Remove DEFVAR for key-translation-map.
27148 (Fdescribe_buffer_bindings)
27149 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
27150 Update for terminal-local key-translation-map.
27151
27152 * Makefile.in (callproc.o): Update dependencies.
27153 (lisp, shortlisp): Add termdev.elc.
27154 (obj): Add terminal.o.
27155 (terminal.o): Add dependencies.
27156 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
27157 (data.o, fns.o): Add termhooks.h dependency.
27158 (SOME_MACHINE_LISP): Add dnd.elc.
27159 (minibuf.o): Fix typo.
27160 Update dependencies.
27161
27162 * data.c (do_symval_forwarding, store_symval_forwarding)
27163 (find_symbol_value): Use the selected frame's keyboard, not
27164 current_kboard.
27165
27166 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
27167 Vwindow_system.
27168
27169 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
27170 Fmenu_bar_open.
27171 (syms_of_xmenu): Update defsubr.
27172 (mouse_position_for_popup, Fx_popup_menu)
27173 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
27174 (set_frame_menubar, free_frame_menubar)
27175 (create_and_show_popup_menu, xmenu_show)
27176 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
27177 an X frame.
27178
27179 * xselect.c (x_own_selection): Abort if not an X frame.
27180 (some_frame_on_display): Check if it is an X frame.
27181 (x_handle_selection_clear): Deal with MULTI_KBOARD.
27182
27183 * coding.c: Include frame.h and termhooks.h.
27184 (terminal_coding, keyboard_coding): Delete.
27185 (Fset_terminal_coding_system_internal)
27186 (Fset_keyboard_coding_system_internal)
27187 (Fkeyboard_coding_system)
27188 (Fterminal_coding_system): Add a terminal parameter.
27189 Get terminal_coding from the terminal.
27190 (init_coding_once): Don't call setup_coding_system here.
27191
27192 * dispextern.h (set_scroll_region, turn_off_insert)
27193 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
27194 (tty_clear_end_of_line, tty_setup_colors)
27195 (delete_tty, updating_frame)
27196 (produce_special_glyphs, produce_glyphs, write_glyphs)
27197 (insert_glyphs): Remove.
27198 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
27199 (tty_turn_off_highlight, get_tty_size): Add declaration.
27200 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
27201
27202 * frame.h (enum output_method): Add output_initial.
27203 (struct x_output): Delete.
27204 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
27205 Access foreground_pixel and background_pixel directly from the frame.
27206 (tty_display): Delete.
27207 (struct frame): Add buried_buffer_list, foreground_pixel,
27208 background_pixel and terminal. Delete kboard.
27209 (union output_data): Add tty.
27210 (FRAME_KBOARD): Get the kboard from the terminal.
27211 (FRAME_INITIAL_P): New macro.
27212 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
27213 (Qterm_environment_variable, Qdisplay_environment_variable)
27214 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
27215 New declarations.
27216
27217 * termchar.h (tty_output, tty_display_info): New structures.
27218 (tty_list): Declare.
27219 (FRAME_TTY, CURTTY): New macros.
27220 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
27221 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
27222 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
27223 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
27224
27225 * callproc.c: Include frame.h and termhooks.h, for terminal
27226 parameters.
27227 (add_env): New function.
27228 (child_setup): Use it.
27229 (child_setup, getenv_internal): Handle the new Vprocess_environment.
27230 (getenv_internal): Fix get_terminal_param call.
27231 (Fgetenv_internal, egetenv): Update doc.
27232 (syms_of_callproc): Initialize Vprocess_environment to nil.
27233 Register and initialize them. Remove obsolete defvars. Update doc
27234 strings.
27235 (child_setup): Handle Vlocal_environment_variables.
27236 (getenv_internal): Add terminal parameter.
27237 Handle Vlocal_environment_variables.
27238 (Fgetenv_internal): Add terminal parameter.
27239 (child_setup, getenv_internal, Fgetenv_internal): Store the local
27240 environment in a frame (not terminal) parameter. Update doc strings.
27241 (set_initial_environment): Rename from set_global_environment.
27242 Store Emacs environment in initial frame parameter.
27243
27244 * xdisp.c (redisplay_internal): Update references to
27245 `previous_terminal_frame'.
27246 (display_mode_line, Fformat_mode_line): Replace calls to
27247 `push_frame_kboard' with `push_kboard'.
27248 (get_glyph_string_clip_rects): Add extra parentheses and
27249 braces to prevent compiler warnings.
27250 (calc_pixel_width_or_height): Add xassert to check that the
27251 frame is alive. Don't call `lookup_image' on a termcap frame.
27252 (message2_nolog, message3_nolog, redisplay_internal)
27253 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
27254 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
27255 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
27256 (Fx_display_pixel_width, Fx_display_pixel_height)
27257 (Fx_display_planes, Fx_display_color_cells)
27258 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
27259 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
27260 (Fx_display_backing_store, Fx_display_visual_class)
27261 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
27262 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
27263
27264 * xfns.c (x_set_foreground_color x_set_background_color)
27265 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
27266 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
27267 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
27268 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
27269 terminal that is being deleted.
27270 (Fx_create_frame): Use `store_frame_param' to set `window-system'
27271 frame parameter, and make sure it overrides any user-supplied setting.
27272 (Fx_close_connection, Fx_synchronize): Unify argument names with
27273 the rest of the DEFUNs.
27274
27275 * dispnew.c (Fsend_string_to_terminal): Update call to
27276 `get_tty_terminal'.
27277 (Fredraw_frame, Fsend_string_to_terminal)
27278 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
27279 FRAME_TERMCAP_P and FRAME_TTY.
27280 (window_change_signal): Don't believe width/height values that are
27281 impossibly small.
27282 (Vinitial_window_system): Rename from Vwindow_system.
27283 (termscript, Wcm, rif): Delete.
27284
27285 * termhooks.h (struct terminal): New struct containing the
27286 previously global text display hooks and new members NAME,
27287 DELETED and PARAM_ALIST.
27288 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
27289 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
27290 (FRAME_RIF): New macros.
27291 (get_terminal_param, get_device): New declarations.
27292 (termscript): Delete declaration.
27293
27294 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
27295 (XTflash, x_free_frame_resources, x_scroll_bar_create)
27296 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
27297 FRAME_FOREGROUND_PIXEL.
27298 (x_fully_uncatch_errors): Disable definition.
27299 (x_scroll_bar_expose): Fix reference to foreground pixel.
27300 (XTread_socket): Disable loop on all X displays.
27301 (x_delete_terminal): Don't set terminal->deleted and let
27302 delete_terminal delete the frames on the terminal.
27303 (x_delete_display): Doc update to reflect changes in
27304 delete_terminal.
27305 (x_display_info) <terminal>: Move member earlier in the struct.
27306 (deleting_tty): Remove old variable.
27307 (Fsuspend_tty): Call clear_tty_hooks.
27308 (Fresume_tty, init_tty): Call set_tty_hooks.
27309 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
27310 errors on X frames.
27311 (x_catch_errors_unwind): Abort if x_error_message is NULL.
27312 (handle_one_xevent): Initialize `f' to NULL.
27313 (x_delete_terminal, x_create_terminal): New functions.
27314 (XTset_terminal_modes, XTreset_terminal_modes)
27315 (XTread_socket, x_connection_closed, x_term_init)
27316 (x_term_init, x_delete_display): Add terminal parameter.
27317 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
27318 X connections.
27319
27320 * frame.c: Include termchar.h.
27321 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
27322 (Qwindow_system, Qenvironment, Qterm_environment_variable)
27323 (Qdisplay_environment_variable): New vars.
27324 (Fframep): Deal with output_initial.
27325 (Fframe-live-p): Doc fix.
27326 (Fwindow-system): New function.
27327 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
27328 (make_terminal_frame): Don't create frames on a terminal that is
27329 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
27330 (store_frame_param): Check for found_for_frame before calling XFRAME.
27331 (Fmake_terminal_frame): Handle NULL tty names correctly.
27332 (syms_of_frame): Enhance doc string of `default-frame-alist'.
27333 (Fdelete_frame): Remove unused variable `count'. Don't allow other
27334 frames to refer to a deleted frame in their 'environment parameter.
27335 (Fframe_with_environment): New function.
27336 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
27337 (get_future_frame_param): New function.
27338 (Fmake_terminal_frame): Use it.
27339 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
27340
27341 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
27342 * sysdep.c (reset_sys_modes): Update for renames.
27343
27344 * keyboard.c (tty_read_avail_input): New function.
27345 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
27346 (syms_of_keyboard): Defsubr them.
27347 (Fset_input_meta_mode, Fset_quit_char): New functions.
27348 (Fset_input_mode): Split to above functions.
27349 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
27350 parameter. Use it in call to `read_char'.
27351 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
27352 Set wrong_kboard_jmpbuf correctly in recursive calls.
27353 Use current_kboard to access Vkeyboard_translate_table.
27354 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
27355 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
27356 Update longjmp invocations. Remember the original current_kboard,
27357 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
27358 changes it. Comment out unnecessary calls to
27359 `record_single_kboard_state' and `any_kboard_state'.
27360 Update recursive calls.
27361 (wrong_kboard_jmpbuf): Remove global variable.
27362 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
27363 Handle deleted interrupted_kboards correctly; that is a legal
27364 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
27365 and read_char calls. Abort if interrupted_kboard died in read_char.
27366 (any_kboard_state, single_kboard_state)
27367 (push_frame_kboard): Remove function.
27368 (pop_kboard): Switch out of single_kboard mode if the kboard has
27369 been deleted. Remove unused variable. Help debugging by not
27370 changing current_kboard unnecessarily. Set current_kboard to the
27371 kboard of the selected frame when the stored kboard object has
27372 been deleted before pop_kboard.
27373 (temporarily_switch_to_single_kboard): Change first parameter to a
27374 frame pointer. Throw an error when caller wants to change kboards
27375 while in single_kboard mode. Don't push_kboard if we weren't in
27376 single kboard state. Don't pop_kboard if we popped into any
27377 kboard state.
27378 (restore_kboard_configuration): Abort if pop_kboard changed the
27379 kboard in single_kboard mode. Call pop_kboard only after setting
27380 up single_kboard mode.
27381 (Frecursive_edit): Switch to single_kboard mode only in nested
27382 command loops.
27383 (cmd_error, command_loop, command_loop_1, timer_check):
27384 Comment out unnecessary call to `any_kboard_state' and
27385 `record_single_kboard_state'.
27386 (delete_kboard): Exit single_kboard mode if we have just deleted
27387 that kboard. Use FRAME_KBOARD.
27388 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
27389 `fatal_error_signal'.
27390 (record_single_kboard_state): Don't push_kboard if we weren't in
27391 single kboard state. Don't pop_kboard if we popped into any
27392 kboard state.
27393 (push_frame_kboard): Rename to push_kboard.
27394 (kbd_buffer_get_event): Use FRAME_TERMINAL.
27395 (read_avail_input): Read input from all terminals.
27396 (mark_kboards): Also mark Vkeyboard_translate_table.
27397 (kbd_buffer_store_event_hold): Simplify condition.
27398 (read_key_sequence): Reinitialize fkey and keytran at each replay.
27399 (Vkeyboard_translate_table): Move to struct kboard.
27400 (init_kboard): Initialize Vkeyboard_translate_table.
27401 (syms_of_keyboard): Use DEFVAR_KBOARD to define
27402 Vkeyboard_translate_table. Update doc strings. Update docs of
27403 local-function-key-map and function-key-map.
27404
27405 * terminal.c: New file.
27406
27407 * term.c: Include errno.h.
27408 (Vring_bell_function, device_list, initial_device)
27409 (next_device_id, ring_bell, update_begin, update_end)
27410 (set_terminal_window, cursor_to, raw_cursor_to)
27411 (clear_to_end, clear_frame, clear_end_of_line)
27412 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
27413 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
27414 (syms_of_term): Move their initialization to terminal.c.
27415 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
27416 (Ftty_display_color_cells)
27417 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
27418 (clear_tty_hooks, set_tty_hooks)
27419 (init_tty, maybe_fatal): New functions.
27420 (Ftty_type): Return nil if terminal is not on a tty instead of
27421 throwing an error. Doc update.
27422 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
27423 Doc update. Initialize new subrs and variables.
27424 (delete_tty): Use terminal->deleted.
27425 (tty_set_terminal_modes): Rename from set_terminal_modes.
27426 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
27427 (set_scroll_region): Rename to `tty_set_scroll_region'.
27428 (turn_on_insert): Rename to `tty_turn_on_insert'.
27429 (turn_off_insert): Rename to `tty_turn_off_insert'.
27430 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
27431 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
27432 (toggle_highligh): Rename to `tty_toggle_highlight'.
27433 (background_highlight): Rename to `tty_background_highlight'.
27434 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
27435 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
27436 (tty_set_scroll_region, tty_background_highlight)
27437 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
27438 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
27439 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
27440 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
27441 Add static modifier.
27442 (tty_reset_terminal_modes, tty_set_terminal_window)
27443 (tty_set_scroll_region, tty_background_highlight)
27444 (tty_highlight_if_desired, tty_cursor_to)
27445 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
27446 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
27447 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
27448 renames.
27449
27450 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
27451
27452 * keyboard.c: Qrtl is new.
27453 (parse_tool_bar_item): Handle :rtl keyword.
27454 (syms_of_keyboard): Intern :rtl keyword.
27455
27456 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
27457
27458 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
27459 so no Lisp code is executed.
27460 (file_for_image, find_rtl_image): New functions.
27461 (xg_get_image_for_pixmap): Use file_for_image.
27462 (update_frame_tool_bar): If direction is RTL, use RTL image if
27463 defined. Use Gtk stock images if defined.
27464
27465 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27466
27467 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
27468 for nonexistent or zero-width glyph in composition glyph.
27469
27470 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
27471
27472 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
27473
27474 * xdisp.c (Finvisible_p): New function.
27475 (syms_of_xdisp): defsubr it.
27476
27477 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
27478
27479 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
27480 Doc fixes.
27481
27482 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27483
27484 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
27485
27486 2007-08-24 Martin Rudalics <rudalics@gmx.at>
27487
27488 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
27489 whether decoding has modified buffer contents.
27490
27491 2007-08-24 Jason Rumney <jasonr@gnu.org>
27492
27493 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
27494 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
27495 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
27496 (init_svg_functions) [HAVE_NTGUI]: New function.
27497 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
27498 (svg_load_image): Use them.
27499 (svg_load_image) [HAVE_NTGUI]: Implement background.
27500
27501 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27502
27503 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
27504 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
27505 (LIBX): Remove @RSVG_LIBS@.
27506 (LIBES): Add $(RSVG_LIBS).
27507
27508 * image.c (svg_load_image): Blend with specified background if exists.
27509 Use IMAGE_BACKGROUND. Add Mac OS Support.
27510
27511 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
27512 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
27513 Remove macros.
27514 [MAC_OSX] (socket_callback): Do nothing.
27515 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
27516 ReceiveNextEvent.
27517 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
27518 socket_callback.
27519 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
27520
27521 2007-08-22 Glenn Morris <rgm@gnu.org>
27522
27523 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
27524
27525 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
27526
27527 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
27528
27529 * image.c: Add support for SVG images. Some additional comments
27530 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
27531 (svg_image_p): New function to test for SVG image.
27532 (svg_load): New function to load SVG image.
27533 (svg_load_image): New function, helper for svg_load.
27534 (Qsvg): New Lisp_object.
27535 (svg_keyword_index): New enum.
27536 (svg_format): New static `image_keyword' struct.
27537 (svg_type): New static `image_type' struct.
27538 (librsvg/rsvg.h): Include it.
27539
27540 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
27541
27542 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
27543
27544 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
27545
27546 * lread.c (Qold_style_backquotes): New var.
27547 (syms_of_lread): Init and staticpro it.
27548 (load_warn_old_style_backquotes): New fun.
27549 (Fload): Use them to warn about old style backquotes.
27550 (end_of_file_error, Fload): Remove unused vars.
27551
27552 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
27553
27554 * lread.c (Vold_style_backquotes): New var.
27555 (syms_of_lread): Init and export it to Elisp.
27556 (read1): Set it when we find an old-style (back)quote.
27557
27558 2007-08-22 Jason Rumney <jasonr@gnu.org>
27559
27560 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
27561
27562 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
27563
27564 * puresize.h (BASE_PURESIZE): Increase to 1140000.
27565
27566 2007-08-19 Richard Stallman <rms@gnu.org>
27567
27568 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
27569
27570 2007-08-19 Andreas Schwab <schwab@suse.de>
27571
27572 * alloc.c (pure): Round PURESIZE up.
27573
27574 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
27575
27576 * xterm.c (handle_one_xevent): Remove check that mouse click is in
27577 active frame.
27578
27579 2007-08-16 Richard Stallman <rms@gnu.org>
27580
27581 * eval.c (Fcommandp): Add parens to clarify.
27582
27583 * minibuf.c (Fall_completions): Use enum for type of table.
27584
27585 * emacs.c (USAGE2): Improve text.
27586
27587 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
27588
27589 * term.c (tty_default_color_capabilities): Declare static
27590 variables in file scope, to avoid HPUX compiler problem.
27591
27592 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
27593
27594 * gtkutil.c (update_frame_tool_bar): Use -1 as index
27595 to gtk_toolbar_insert.
27596
27597 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
27598
27599 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
27600
27601 * insdel.c (reset_var_on_error): New fun.
27602 (signal_before_change, signal_after_change):
27603 Use it to reset (after|before)-change-functions to nil in case of error.
27604 Bind inhibit-modification-hooks to t.
27605 Don't bind (after|before)-change-functions to nil while they run.
27606
27607 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27608
27609 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
27610 filling pixmap with stippled background.
27611
27612 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27613
27614 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
27615 Don't use invisible frame as parent window for repositioning.
27616
27617 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
27618
27619 * print.c (new_backquote_output): Rename from old_backquote_output.
27620 (print): Inverse its logic (according to its name) so as to match the
27621 behavior of new_backquote_flag in lread.c.
27622
27623 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27624
27625 * gmalloc.c (posix_memalign): New function.
27626
27627 * macterm.c (frame_highlight, frame_unhighlight): Don't call
27628 ActivateControl/DeactivateControl here.
27629 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
27630 frame-notice-user-settings is non-nil.
27631 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
27632 for kEventParamFMFontStyle.
27633 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
27634 mac_pass_command_to_system and mac_pass_control_to_system here.
27635 (XTread_socket): Call ActivateControl/DeactivateControl here.
27636 (XTread_socket) [TARGET_API_MAC_CARBON]:
27637 Check mac_pass_command_to_system and mac_pass_control_to_system here.
27638 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
27639 for window repositioning.
27640
27641 2007-08-08 Glenn Morris <rgm@gnu.org>
27642
27643 * Replace `iff' in doc-strings and comments.
27644
27645 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
27646
27647 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
27648
27649 2007-08-07 Martin Rudalics <rudalics@gmx.at>
27650
27651 * fileio.c (Finsert_file_contents): Run format-decode and
27652 after_insert_file_functions on entire buffer when REPLACE is
27653 non-nil and inhibit modification_hooks and point_motion_hooks.
27654 For consistency, run after_insert_file_functions iff something
27655 got inserted. Move signal_after_change and update_compositions
27656 after code running after_insert_file_functions. Make sure that
27657 undo_list doesn't record intermediate steps of the decoding process.
27658
27659 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27660
27661 * emacs.c (main)
27662 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
27663 Call malloc_enable_thread on interactive startup.
27664
27665 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
27666 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
27667 [USE_PTHREAD]: Conditionalize with it.
27668 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
27669 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
27670 New functions.
27671
27672 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
27673
27674 * xdisp.c (redisplay_window): When restoring original buffer
27675 position, make sure it is still valid.
27676
27677 * image.c (png_load): Ignore png-supplied background color.
27678
27679 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27680
27681 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
27682 Use kCFAbsoluteTimeIntervalSince1970.
27683
27684 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
27685 New variable.
27686 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
27687 event loop should be quit.
27688 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
27689 Quit dialog event loop if quit_dialog_event_loop is set.
27690
27691 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
27692 (Selection): New typedef. Use instead of ScrapRef.
27693 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
27694 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
27695 (mac_clear_selection): Rename from clear_scrap.
27696 (get_flavor_type_from_symbol): New argument SEL and subsume function of
27697 scrap_has_target_type. All uses changed.
27698 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
27699 (mac_selection_has_target_p): New functions.
27700 (mac_put_selection_value): Rename from put_scrap_string.
27701 (mac_get_selection_value): Rename from get_scrap_string.
27702 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
27703 (put_scrap_private_timestamp, scrap_has_target_type)
27704 (get_scrap_private_timestamp): Remove functions.
27705 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
27706 (x_own_selection, x_get_local_selection):
27707 Use mac_valid_selection_value_p.
27708 (x_own_selection): Don't use put_scrap_private_timestamp.
27709 Record OWNERSHIP-INFO into Vselection_alist instead.
27710 (x_get_local_selection): Don't check type if request is local.
27711 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
27712 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
27713
27714 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
27715
27716 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
27717 add comment explaining why.
27718
27719 2007-08-03 Richard Stallman <rms@gnu.org>
27720
27721 * fileio.c (Fvisited_file_modtime): Use make_time.
27722
27723 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
27724
27725 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
27726 build.
27727
27728 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
27729
27730 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
27731
27732 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
27733
27734 * puresize.h (BASE_PURESIZE): Increase to 1130000.
27735
27736 2007-07-30 Richard Stallman <rms@gnu.org>
27737
27738 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
27739
27740 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
27741
27742 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
27743
27744 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
27745
27746 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
27747 remote default-directory.
27748
27749 * buffer.c (mode-line-format): Update doc string.
27750
27751 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27752
27753 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
27754 scroll bar gap.
27755 (x_scroll_bar_create): Set bar->fringe_extended_p.
27756 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
27757 on frame edge. Check fringe background extension. Don't clear
27758 extended fringe background area.
27759
27760 * w32term.h (struct scroll_bar): New member fringe_extended_p.
27761 (w32_fill_area): Enclose multiple statements with do ... while (0).
27762
27763 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
27764 Extend fringe background to scroll bar gap.
27765 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
27766 Set bar->fringe_extended_p.
27767 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
27768 Put leftmost/rightmost scroll bars on frame edge. Check fringe
27769 background extension. Don't clear extended fringe background area.
27770
27771 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
27772 New member fringe_extended_p.
27773
27774 2007-07-25 Glenn Morris <rgm@gnu.org>
27775
27776 * Relicense all FSF files to GPLv3 or later.
27777
27778 * COPYING: Switch to GPLv3.
27779
27780 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
27781
27782 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
27783
27784 * data.c (Finteractive_form): Check for the presence of an
27785 `interactive-form' symbol property more thoroughly.
27786
27787 * data.c (Finteractive_form): Use an `interactive-form' property if
27788 present, analogous to the function-documentation property.
27789
27790 2007-07-24 Jason Rumney <jasonr@gnu.org>
27791
27792 * w32fns.c (x_real_positions): Get real position from OS instead of
27793 calculating it.
27794
27795 2007-07-23 Jason Rumney <jasonr@gnu.org>
27796
27797 * filelock.c (current_lock_owner): Allow for @ sign in username.
27798
27799 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
27800
27801 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
27802 remote default-directory.
27803
27804 * buffer.c (mode-line-format): Describe above case in doc string.
27805
27806 2007-07-20 Eli Zaretskii <eliz@gnu.org>
27807
27808 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
27809 Define if not defined.
27810
27811 2007-07-18 Jason Rumney <jasonr@gnu.org>
27812
27813 * w32proc.c (w32_executable_type): Handle 64 bit executables.
27814
27815 2007-07-18 Richard Stallman <rms@gnu.org>
27816
27817 * data.c (Fsetq_default): Doc fix.
27818
27819 * eval.c (Fsetq): Doc fix.
27820
27821 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
27822
27823 * coding.c (Ffind_operation_coding_system):
27824 * eval.c (For, Fand): Doc fixes.
27825 Reported by Johan Bockgård.
27826
27827 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
27828
27829 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
27830
27831 * xterm.h: Declare x_ewmh_activate_frame.
27832
27833 * xterm.c (x_ewmh_activate_frame): New function.
27834 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
27835
27836 2007-07-17 Martin Rudalics <rudalics@gmx.at>
27837
27838 * window.c (Fdisplay_buffer): If largest or LRU window is the
27839 only window, split it even if it is not eligible for splitting.
27840 This restores the original behavior broken by the 2007-07-15
27841 change.
27842
27843 2007-07-17 Glenn Morris <rgm@gnu.org>
27844
27845 * abbrev.c (abbrev_check_chars): New function.
27846 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
27847 Call abbrev_check_chars to check abbrev characters are word
27848 constituents. Doc fix.
27849
27850 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
27851
27852 * process.c (Fstart_process, Fmake_network_process)
27853 (read_process_output): Fix up last changes.
27854
27855 2007-07-16 Eli Zaretskii <eliz@gnu.org>
27856
27857 * makefile.w32-in (clean): Don't delete *~.
27858
27859 2007-07-16 Andreas Schwab <schwab@suse.de>
27860
27861 * window.c (Fdisplay_buffer): Use NILP.
27862 (Fset_window_scroll_bars): Likewise.
27863
27864 2007-07-15 Martin Rudalics <rudalics@gmx.at>
27865
27866 * window.c (window_min_size_2): New function.
27867 (window_min_size_1, size_window, Fdisplay_buffer)
27868 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
27869 windows without mode- or header-lines when window-min-height is
27870 too small.
27871 (size_window): Reset nodelete_p after testing it, following an
27872 earlier note by Kim F. Storm.
27873 (display_buffer): Do not set split_height_threshold to twice the
27874 value of window_min_height to avoid changing the value of a
27875 customizable variable. Rather explicitly check whether the
27876 height of the window that shall be splitted is at least as large
27877 as split_height_threshold.
27878 (Fwindow_full_width_p): New defun.
27879 (syms_of_window): Defsubr it.
27880
27881 * window.h: Add EXFUN for Fwindow_full_width_p.
27882
27883 2007-07-14 Jason Rumney <jasonr@gnu.org>
27884
27885 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
27886
27887 2007-07-14 Richard Stallman <rms@gnu.org>
27888
27889 * eval.c (maybe_call_debugger): New function.
27890 (find_handler_clause): Use maybe_call_debugger.
27891 Call it when the handler says `debug'.
27892 Eliminate DEBUGGER_VALUE_PTR.
27893 (Fsignal): Eliminate debugger_value.
27894 (Qdebug): New variable.
27895 (syms_of_eval): Initialize it.
27896
27897 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
27898
27899 * eval.c (Fprogn):
27900 * keyboard.c (Ftrack_mouse):
27901 * print.c (Fwith_output_to_temp_buffer):
27902 * window.c (Fsave_window_excursion): Doc fix.
27903
27904 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
27905
27906 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
27907
27908 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
27909
27910 * process.h (struct Lisp_Process): Turn slots infd, outfd,
27911 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
27912 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
27913 read_output_delay, and read_output_skip from Lisp_Objects to ints.
27914 Remove unused encoding_carryover.
27915 * process.c: Adjust all functions accordingly.
27916
27917 2007-07-12 Richard Stallman <rms@gnu.org>
27918
27919 * term.c: Include unistd.h only if HAVE_UNISTD_H.
27920
27921 2007-07-11 Jason Rumney <jasonr@gnu.org>
27922
27923 * makefile.w32-in (LIBS): Include OLE32.
27924
27925 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
27926 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
27927
27928 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
27929
27930 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
27931 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
27932 from a Lisp_Object into a bare pointer.
27933 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
27934 Adjust the code correspondingly.
27935
27936 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
27937
27938 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
27939 (term_show_mouse_face): Remove unused var `j'.
27940 (handle_one_term_event): Remove unused vars `i' and `j'.
27941 Don't cast return value of ttyname since it's not necessary.
27942
27943 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
27944
27945 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
27946 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
27947
27948 * fns.c (map_char_table): Use an array of int for `indices' rather than
27949 an array of Lisp_Objects (which are only ever integers anyway).
27950 (Fmap_char_table): Update caller.
27951 * lisp.h: Update prototype.
27952 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
27953 * fontset.c (Ffontset_info):
27954 * casetab.c (set_case_table): Update callers.
27955
27956 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
27957
27958 * keymap.c (struct accessible_keymaps_data)
27959 (struct where_is_internal_data): New structures.
27960 (accessible_keymaps_1, where_is_internal_1): Use them to change
27961 interface to adhere to the one used by map_keymap.
27962 (Faccessible_keymaps, where_is_internal): Use map_keymap.
27963 (accessible_keymaps_char_table, where_is_internal_2): Remove.
27964
27965 * keymap.h (map_keymap_function_t): More informative prototype.
27966
27967 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
27968
27969 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
27970 (looking_at_1): Don't change search_regs and last_thing_searched
27971 if `inhibit-changing-match-data' is non-nil.
27972 (string_match_1, search_buffer, set_search_regs): Likewise.
27973 (syms_of_search): Add Lisp level definition for
27974 `inhibit-changing-match-data' and set it to nil.
27975 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
27976 start and end of the match, instead of using values in search_regs.
27977
27978 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
27979
27980 * minibuf.c (Fcompleting_read): New value `confirm-only'
27981 for `require-match'.
27982
27983 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
27984
27985 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
27986 part of the 2007-06-27 change to syms_of_fileio.
27987
27988 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27989
27990 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
27991 Check WINDOWP before using XWINDOW. Consolidate return statements.
27992
27993 2007-06-27 Richard Stallman <rms@gnu.org>
27994
27995 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
27996
27997 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
27998
27999 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
28000
28001 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28002
28003 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
28004 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
28005 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
28006 (_free_internal, memalign): Use them.
28007 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
28008 Initialize to PTHREAD_MUTEX_INITIALIZER.
28009 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
28010 (morecore_nolock): Rename from morecore. All uses changed.
28011 Use only nolock versions of internal allocation functions.
28012 (_malloc_internal_nolock, _realloc_internal_nolock)
28013 (_free_internal_nolock): New functions created from
28014 _malloc_internal, _realloc_internal, and _free_internal.
28015 (_malloc_internal, _realloc_internal, _free_internal): Use them.
28016 Copy hook value to automatic variable before its use.
28017 (memalign): Copy hook value to automatic variable before its use.
28018
28019 2007-06-26 Kenichi Handa <handa@m17n.org>
28020
28021 * coding.c (Ffind_operation_coding_system): Docstring improved.
28022 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
28023
28024 2007-06-25 David Kastrup <dak@gnu.org>
28025
28026 * keymap.c (Fcurrent_active_maps): Add `position' argument.
28027 (Fwhere_is_internal): Adjust call to `current-active-maps' to
28028 cater for additional parameter.
28029
28030 * keymap.h: Adjust number of parameters to `current-active-maps'.
28031
28032 * doc.c (Fsubstitute_command_keys): Adjust call of
28033 `current-active-maps'.
28034
28035 2007-06-25 David Kastrup <dak@gnu.org>
28036
28037 * callint.c (Fcall_interactively): Make the parsing of interactive
28038 specs somewhat more readable.
28039
28040 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28041
28042 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
28043 to scroll bar gap also when bitmap fills fringe. Draw only foreground
28044 if extended background has already been filled.
28045
28046 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28047
28048 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
28049 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
28050
28051 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
28052 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
28053 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
28054 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
28055 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
28056 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
28057 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
28058 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
28059 Run timers during dialog popup.
28060 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
28061
28062 2007-06-21 Jason Rumney <jasonr@gnu.org>
28063
28064 * image.c (convert_mono_to_color_image): Swap fore and background.
28065
28066 2007-06-20 Jason Rumney <jasonr@gnu.org>
28067
28068 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
28069 (w32_free_bdf_font): Unmap memory not handle.
28070
28071 2007-06-20 Sam Steingold <sds@gnu.org>
28072
28073 * gmalloc.c (__morecore): Fix the declaration to comply with the
28074 definition.
28075
28076 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
28077
28078 * w32term.c (w32_delete_display): Remove leftover declaration.
28079 (w32_define_cursor, w32_initialize): Make static.
28080
28081 * w32.c (_wsa_errlist): Fix typo in error message.
28082 (init_environment): Ignore any environment variable from the
28083 registry having a null value.
28084
28085 2007-06-20 Glenn Morris <rgm@gnu.org>
28086
28087 * Makefile.in (LIBGIF): Default to -lgif.
28088
28089 2007-06-17 Jason Rumney <jasonr@gnu.org>
28090
28091 * w32menu.c (add_menu_item): Don't use multibyte string functions on
28092 unicode strings.
28093
28094 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
28095
28096 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
28097 Fix typo in docstring.
28098
28099 2007-06-16 Eli Zaretskii <eliz@gnu.org>
28100
28101 * w32menu.c (add_menu_item): Escape `&' characters in menu items
28102 and their keybindings.
28103
28104 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
28105
28106 * composite.c (update_compositions): Fix last fix.
28107
28108 2007-06-14 Jason Rumney <jasonr@gnu.org>
28109
28110 * w32.c (get_process_times_fn): New function pointer.
28111 (globals_of_w32): Intialize it if present in kernel32.dll.
28112 (w32_get_internal_run_time): New function.
28113
28114 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
28115
28116 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
28117
28118 * composite.c (update_compositions): Check the validness of
28119 compositions.
28120
28121 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28122
28123 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
28124 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
28125
28126 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
28127 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
28128
28129 * macgui.h (USE_MAC_TOOLBAR): New define.
28130
28131 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
28132 Return immediately unless popup is activated.
28133
28134 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
28135 background to scroll bar gap.
28136 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
28137 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
28138 scroll bars on frame edge. Check fringe background extension.
28139 Don't clear extended fringe background area.
28140 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
28141 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
28142 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
28143 [USE_MAC_TOOLBAR]: New macros.
28144 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
28145 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
28146 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
28147 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
28148 [USE_MAC_TOOLBAR]: New functions.
28149 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
28150 manually if previous repositioning has failed.
28151 (mac_handle_keyboard_event): Use precomputed event kind.
28152 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
28153 as tool bar item click. Handle mouse movement over tool bar items.
28154
28155 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
28156 toolbar_win_gravity.
28157 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
28158 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
28159 Add externs.
28160
28161 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
28162 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
28163
28164 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
28165
28166 * image.c (search_image_cache): Remove unused variable.
28167
28168 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
28169
28170 * xfns.c, xmenu.c: Link to xaw3d if available.
28171
28172 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28173
28174 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
28175 frame_foreground and frame_background.
28176
28177 * image.c (lookup_image): Save frame foreground and background colors.
28178 (search_image_cache): Check if saved and current frame colors match.
28179
28180 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
28181
28182 * regex.c (regex_compile): Remove the `regnum' counter.
28183 Use bufp->re_nsub instead. Add support for \(?N:RE\).
28184
28185 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
28186
28187 * term.c: Include intervals.h to declare Fget_text_property.
28188
28189 2007-06-10 Jason Rumney <jasonr@gnu.org>
28190
28191 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
28192
28193 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
28194
28195 * callint.c (Fcall_interactively):
28196 * editfns.c (Fdelete_and_extract_region):
28197 * fileio.c (Fread_file_name):
28198 * fns.c (Fmapconcat):
28199 * keyboard.c (cmd_error_internal):
28200 * keymap.c (Fkey_description):
28201 * lread.c (openp):
28202 * minibuf.c (read_minibuf):
28203 * search.c (wordify):
28204 * sunfns.c (sel_read):
28205 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
28206 * xfns.c (x_default_scroll_bar_color_parameter):
28207 * xmenu.c (menu_help_callback):
28208 * xselect.c (Fx_get_atom_name):
28209 * xterm.c (x_term_init): Use empty_unibyte_string.
28210
28211 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
28212
28213 * alloc.c (init_strings): Initialize canonical empty strings.
28214 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
28215 canonical empty string when the requested size is 0.
28216
28217 * emacs.c (empty_unibyte_string): Rename from empty_string.
28218 (empty_multibyte_string): New canonical empty string.
28219 (syms_of_emacs): Don't initialize empty_string.
28220
28221 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
28222 string, if appropriate.
28223 (empty_unibyte_string, empty_multibyte_string): New externs.
28224 (empty_string): Remove extern.
28225
28226 * lread.c (syms_of_lread): Use empty_unibyte_string.
28227
28228 2007-06-07 Jason Rumney <jasonr@gnu.org>
28229
28230 * s/ms-w32.h: Don't define HAVE_TZNAME.
28231
28232 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
28233
28234 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28235
28236 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
28237
28238 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
28239 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
28240
28241 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
28242 Don't call next handler.
28243 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
28244 Remove argument. Install handler to application.
28245 (set_frame_menubar): Don't change deep_p.
28246 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
28247 FRAME_OUTER_TO_INNER_DIFF_Y.
28248 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
28249 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
28250 [HAVE_DIALOGS]: New macros.
28251 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
28252 Use them.
28253 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
28254
28255 * macselect.c [MAC_OSX] (install_service_handler): Rename from
28256 init_service_handler. All callers changed. Return OSStatus value.
28257
28258 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
28259 All callers changed so as not to call SetPortWindowPort.
28260 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
28261 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
28262 mac_draw_string_common.
28263 (mac_draw_image_string_qd): Likewise.
28264 (mac_draw_string_common): Use them. Add INLINE.
28265 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
28266 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
28267 GetGlobalMouse.
28268 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
28269 and FRAME_OUTER_TO_INNER_DIFF_Y.
28270 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
28271 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
28272 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
28273 repositioning window to mac_handle_window_event.
28274 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
28275 saving window location to mac_handle_window_event
28276 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
28277 (install_menu_target_item_handler): Remove argument in extern.
28278 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
28279 Also accept command events.
28280 (do_keystroke): New function created from XTread_socket.
28281 (init_command_handler): Remove functions.
28282 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
28283 and save window location by kEventWindowShowing and kEventWindowHiding
28284 handlers here. Don't call next handler for window state change and
28285 focus events.
28286 (mac_handle_application_event, mac_handle_keyboard_event)
28287 [TARGET_API_MAC_CARBON]: New functions.
28288 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
28289 kEventWindowShowing and kEventWindowHiding events. Move installation
28290 of mouse, font, text input and menu target item handlers to
28291 install_application_handler.
28292 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
28293 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
28294 New function.
28295 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
28296 Register it.
28297 (XTread_socket) [TARGET_API_MAC_CARBON]:
28298 Consolidate SendEventToEventTarget calls.
28299 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
28300 Move application activation handler to mac_handle_application_event.
28301 Move keyboard handler to mac_handle_keyboard_event.
28302 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
28303 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
28304 init_command_handler. Call install_application_handler.
28305
28306 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
28307 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
28308
28309 2007-06-07 Glenn Morris <rgm@gnu.org>
28310
28311 * emacs.c (main): Use `emacs-copyright' in --version output.
28312
28313 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
28314
28315 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
28316
28317 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28318
28319 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
28320
28321 * macgui.h: Replace WindowPtr with WindowRef.
28322
28323 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
28324 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
28325 Replace ControlHandle with ControlRef.
28326 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
28327
28328 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
28329 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
28330 Replace ControlHandle with ControlRef.
28331 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
28332 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
28333
28334 * macterm.h (struct scroll_bar): Rename member control_handle_low
28335 and control_handle_high to control_ref_low and control_ref_high.
28336 All uses changed.
28337 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
28338 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
28339 respectively. All uses changed.
28340 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
28341 (install_window_handler, remove_window_handler): Replace WindowPtr
28342 with WindowRef in externs.
28343
28344 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
28345
28346 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
28347
28348 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
28349
28350 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
28351
28352 * frame.c (Fmouse_position, Fmouse_pixel_position):
28353 Condition on HAVE_GPM too.
28354
28355 * term.c (term_mouse_highlight): Remove unused variables.
28356 (Fterm_open_connection): Set gpm_zerobased to 1.
28357 (term_mouse_movement, term_mouse_click, handle_one_term_event):
28358 Use zero based co-ordinates.
28359 (handle_one_term_event): Report a drag as mouse movement too.
28360
28361 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
28362
28363 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
28364
28365 * image.c (search_image_cache): New function. Require background
28366 color match if background color is unspecified in the image spec.
28367 (uncache_image, lookup_image): Use it.
28368
28369 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
28370
28371 * window.c (Fshrink_window): Reflow docstring.
28372
28373 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
28374
28375 * Version 22.1 released.
28376
28377 2007-06-01 Richard Stallman <rms@gnu.org>
28378
28379 * xfns.c (x_encode_text): Add GCPRO.
28380
28381 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28382
28383 * xfns.c (x_set_name_internal): Save encoded name before
28384 x_encode_text in case string data is relocated.
28385
28386 2007-05-31 Richard Stallman <rms@gnu.org>
28387
28388 * buffer.c (syms_of_buffer): Doc fix.
28389
28390 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
28391
28392 * sysdep.c (init_sys_modes): Add rather than replace with
28393 O_NONBLOCK.
28394
28395 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
28396 term_mouse_moveto.
28397
28398 * termhooks.h (term_mouse_moveto): New extern.
28399
28400 * term.c (mouse_face_window): Rename...
28401 (Qmouse_face_window): ...to this.
28402 (term_show_mouse_face, term_clear_mouse_face)
28403 (term_mouse_highlight): Use Qmouse_face_window.
28404 (term_mouse_moveto): New function.
28405 (term_mouse_position): Make it work.
28406 (syms_of_term): Uncomment assignment to mouse_position_hook.
28407 Staticpro Qmouse_face_window.
28408
28409 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28410
28411 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
28412 around current_column call.
28413
28414 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
28415
28416 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
28417 * xdisp.c (next_element_from_buffer):
28418 * window.c (delete_window):
28419 * term.c (term_mouse_highlight):
28420 * msdos.c (getdefdir):
28421 * macterm.c (mac_create_bitmap_from_bitmap_data)
28422 (init_font_name_table):
28423 * fns.c (Fsxhash):
28424 * data.c (Fmake_local_variable):
28425 * ccl.c (ccl_driver): Likewise.
28426
28427 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28428
28429 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
28430 Call mac_wakeup_from_rne on window size change.
28431
28432 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
28433
28434 * image.c (uncache_image): Fix typo.
28435
28436 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
28437
28438 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
28439
28440 2007-05-22 Richard Stallman <rms@gnu.org>
28441
28442 * xterm.c (x_connection_closed): Remove NO_RETURN.
28443
28444 2007-05-22 Martin Rudalics <rudalics@gmx.at>
28445
28446 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
28447
28448 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
28449
28450 * image.c (uncache_image): New function.
28451 (Fimage_refresh): New function.
28452
28453 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
28454
28455 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
28456
28457 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
28458
28459 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
28460 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
28461
28462 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
28463
28464 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
28465 conditional on [HAVE_GPM_H].
28466
28467 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
28468
28469 * syntax.c (skip_chars): Update syntax-table only after we checked that
28470 the new location is valid.
28471
28472 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28473
28474 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
28475 mac_get_window_bounds.
28476
28477 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
28478
28479 * Makefile.in (LIBGPM): Allow it to be set from configure.
28480 If set then link Emacs with it.
28481
28482 * config.in: Regenerate.
28483
28484 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
28485 New externs.
28486
28487 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
28488 Include gpm.h.
28489 (handle_one_term_event, term_gpm): New externs.
28490
28491 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
28492 and allow it to be interrupted by SIGIO.
28493
28494 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
28495 (wait_reading_process_output): Wait on gpm_fd too.
28496 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
28497 (add_gpm_wait_descriptor_called_flag): New variable.
28498 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
28499
28500 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
28501 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
28502 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
28503 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
28504 (make_lispy_event): Add case GPM_CLICK_EVENT.
28505 (read_avail_input): Handle mouse input.
28506
28507 * term.c (write_glyphs_with_face): New function.
28508 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
28509 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
28510 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
28511 (mouse_face_face_id, term_gpm, pos_x, pos_y)
28512 (last_mouse_x, last_mouse_y): New variables.
28513 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
28514 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
28515 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
28516 (Fterm_close_connection): New functions.
28517 (term_init): Initialise mouse_face_window.
28518
28519 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
28520
28521 * xdisp.c (redisplay_window): If first window line is a
28522 continuation line, recompute the new window start instead of
28523 recentering.
28524
28525 2007-05-18 Glenn Morris <rgm@gnu.org>
28526
28527 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
28528 Suggested by Alfred M. Szmidt <ams@gnu.org>.
28529
28530 2007-05-17 Glenn Morris <rgm@gnu.org>
28531
28532 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
28533
28534 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28535
28536 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
28537 dead key repeat and up events.
28538
28539 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
28540
28541 * image.c (pbm_load): Check image size for monochrome pbm.
28542
28543 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
28544
28545 * xterm.c (XTread_socket): Revert last change.
28546
28547 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
28548
28549 * image.c (pbm_load): Correctly check image size for greyscale pbm.
28550
28551 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
28552
28553 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
28554
28555 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
28556 mixup (YAILOM).
28557
28558 2007-05-07 Andreas Schwab <schwab@suse.de>
28559
28560 * keymap.c (Flookup_key): Fix typo in last change.
28561
28562 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
28563
28564 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
28565 mapping for unibyte strings.
28566
28567 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28568
28569 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
28570 (Fx_popup_dialog) [MAC_OSX]: Likewise.
28571
28572 2007-04-29 Richard Stallman <rms@gnu.org>
28573
28574 * insdel.c (replace_range): For undo, record insertion first.
28575
28576 2007-04-29 Andreas Schwab <schwab@suse.de>
28577
28578 * lisp.h (VECSIZE): Use OFFSETOF.
28579
28580 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28581
28582 * xdisp.c (try_window_reusing_current_matrix): Fix number of
28583 disabled lines.
28584
28585 2007-04-28 Richard Stallman <rms@gnu.org>
28586
28587 * lread.c (read_escape): In a string, \s is always space.
28588
28589 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
28590
28591 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
28592
28593 * gtkutil.c (xg_update_menubar, create_menus): Create empty
28594 submenu for menu bar items.
28595
28596 See ChangeLog.10 for earlier changes.
28597
28598 ;; Local Variables:
28599 ;; coding: utf-8
28600 ;; End:
28601
28602 Copyright (C) 2007, 2008, 2009, 2010
28603 Free Software Foundation, Inc.
28604
28605 This file is part of GNU Emacs.
28606
28607 GNU Emacs is free software: you can redistribute it and/or modify
28608 it under the terms of the GNU General Public License as published by
28609 the Free Software Foundation, either version 3 of the License, or
28610 (at your option) any later version.
28611
28612 GNU Emacs is distributed in the hope that it will be useful,
28613 but WITHOUT ANY WARRANTY; without even the implied warranty of
28614 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28615 GNU General Public License for more details.
28616
28617 You should have received a copy of the GNU General Public License
28618 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
28619