Fix mouse redesigned mouse highlight on MSDOS.
[bpt/emacs.git] / src / ChangeLog
1 2010-11-05 Eli Zaretskii <eliz@gnu.org>
2
3 * dispnew.c (init_display): Setup initial frame's output_data for
4 text terminal frames.
5
6 * frame.h (MOUSE_HL_INFO): Fix TTY definition.
7
8 * dispextern.h (tty_draw_row_with_mouse_face): Add prototype.
9
10 * xdisp.c (draw_row_with_mouse_face): Don't #ifdef away on MSDOS.
11 Call tty_draw_row_with_mouse_face on MSDOS as well.
12
13 * msdos.c (tty_draw_row_with_mouse_face): Renamed from
14 draw_row_with_mouse_face. Make the argument list identical with
15 GPM implementation.
16
17 * msdos.h (Display_Info): Restore typedef.
18 (initialize_msdos_display): Add prototype.
19
20 2010-11-02 Eli Zaretskii <eliz@gnu.org>
21
22 * term.c: Remove static mouse_face_* variables. All users
23 changed.
24 (term_show_mouse_face, term_clear_mouse_face)
25 (fast_find_position, term_mouse_highlight): Functions deleted.
26 (tty_draw_row_with_mouse_face): New function.
27 (term_mouse_movement): Call note_mouse_highlight instead of
28 term_mouse_highlight.
29
30 2010-11-01 Eli Zaretskii <eliz@gnu.org>
31
32 * msdos.c (dos_set_window_size, draw_row_with_mouse_face)
33 (IT_update_begin, IT_update_end, IT_frame_up_to_date)
34 (internal_terminal_init, dos_rawgetc): Replace Display_Info with
35 Mouse_HLInfo everywhere where mouse_face_* members were accessed
36 for mouse highlight purposes.
37
38 * nsterm.m (ns_update_window_begin, ns_update_window_end)
39 (ns_update_end, x_destroy_window, ns_frame_up_to_date)
40 (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
41 (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
42 (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
43 Replace Display_Info with Mouse_HLInfo everywhere where
44 mouse_face_* members were accessed for mouse highlight purposes.
45
46 * xterm.c (x_update_window_begin, x_update_window_end)
47 (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
48 (handle_one_xevent, x_free_frame_resources, x_term_init): Replace
49 Display_Info with Mouse_HLInfo everywhere where mouse_face_*
50 members were accessed for mouse highlight purposes.
51
52 * w32term.c (x_update_window_begin, x_update_window_end)
53 (x_update_end, w32_read_socket, x_free_frame_resources)
54 (w32_initialize_display_info): Replace Display_Info with
55 Mouse_HLInfo everywhere where mouse_face_* members were accessed
56 for mouse highlight purposes.
57
58 * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
59 (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
60 unless the frame is on a window-system.
61
62 2010-10-31 Eli Zaretskii <eliz@gnu.org>
63
64 * xdisp.c (get_tool_bar_item, handle_tool_bar_click)
65 (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
66 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
67 (note_mode_line_or_margin_highlight, note_mouse_highlight)
68 (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
69 Replace Display_Info with Mouse_HLInfo everywhere where
70 mouse_face_* members were accessed for mouse highlight purposes.
71
72 * frame.h (MOUSE_HL_INFO): New macro.
73
74 * lisp.h (Mouse_HLInfo): New data type.
75
76 * xterm.h (struct x_display_info):
77 * w32term.h (struct w32_display_info):
78 * nsterm.h (struct ns_display_info):
79 * termchar.h (struct tty_display_info): Use it instead of
80 mouse_face_* members.
81
82 * dispextern.h (DPYINFO_DEFINED): Remove definition.
83 (FRAME_X_DISPLAY_INFO): Remove definition.
84 (show_mouse_face, clear_mouse_face): Update type of 1st argument.
85
86 2010-10-30 Eli Zaretskii <eliz@gnu.org>
87
88 * xdisp.c (coords_in_mouse_face_p): Move prototype out of the
89 HAVE_WINDOW_SYSTEM conditional.
90 (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
91 HAVE_WINDOW_SYSTEM block.
92 (try_window_id) [HAVE_GPM || MSDOS]: Call
93 x_clear_window_mouse_face.
94 (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
95 systems.
96 (show_mouse_face): Call it, instead of calling draw_glyphs directly.
97 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
98 (cursor_in_mouse_face_p, rows_from_pos_range)
99 (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
100 (note_mode_line_or_margin_highlight, note_mouse_highlight)
101 (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
102 HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
103 fragments.
104 (note_mouse_highlight): Call popup_activated for MSDOS as well.
105 Clear mouse highlight if pointer is over glyphs whose OBJECT is an
106 integer.
107 (mouse_face_from_buffer_pos): Add parentheses around && within ||.
108
109 * xmenu.c (popup_activated): Don't define on MSDOS.
110
111 * dispnew.c (mirror_make_current): Set Y coordinate of the
112 mode-line and header-line rows.
113
114 * termchar.h (struct tty_display_info): Define mouse_face_*
115 members not only for MSDOS. Delete stray whitespace.
116 <mouse_face_beg_x, mouse_face_beg_y, mouse_face_overlay>: New
117 struct members.
118
119 * dispextern.h (DPYINFO_DEFINED) [HAVE_X_WINDOWS]: Define.
120 (DPYINFO_DEFINED) [HAVE_NTGUI]: Define.
121 (DPYINFO_DEFINED) [HAVE_NS]: Define.
122 (Display_Info) [!DPYINFO_DEFINED]: Define here.
123 (FRAME_X_DISPLAY_INFO) [HAVE_GPM]: Define.
124 (FRAME_X_DISPLAY_INFO): Define to NULL if not defined.
125 (frame_to_window_pixel_xy, note_mouse_highlight)
126 (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
127 (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
128 HAVE_WINDOW_SYSTEM conditional.
129 (draw_row_with_mouse_face): Declare prototype.
130
131 * msdos.h (Display_Info): Don't define here.
132
133 * msdos.c (show_mouse_face, clear_mouse_face)
134 (fast_find_position, IT_note_mode_line_highlight)
135 (IT_note_mouse_highlight): Functions deleted.
136 (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
137 instead of IT_note_mouse_highlight.
138 (draw_row_with_mouse_face, popup_activated): New functions.
139
140 2010-10-29 Eli Zaretskii <eliz@gnu.org>
141
142 * emacs.c (main): Call syms_of_filelock unconditionally.
143
144 * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
145 clause, but keep part of it conditioned on CLASH_DETECTION.
146
147 2010-10-29 Glenn Morris <rgm@gnu.org>
148
149 * nsfns.m (Fx-display-save-under, Fx-open-connection)
150 (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
151 * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
152 * xfns.c (Fxw_color_defined_p, Fx_open_connection):
153 Sync docs between X, W32, NS.
154
155 * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
156 * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
157
158 2010-10-26 Juanma Barranquero <lekktu@gmail.com>
159
160 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
161 otherwise, bootstrapping on Windows fails to compile macroexp.el.
162
163 2010-10-26 Eli Zaretskii <eliz@gnu.org>
164
165 * cmds.c (internal_self_insert): Don't insert if argument N is
166 zero or negative. (Bug#7281)
167
168 2010-10-26 Jan Djärv <jan.h.d@swipnet.se>
169
170 * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
171
172 2010-10-25 Glenn Morris <rgm@gnu.org>
173
174 * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
175
176 2010-10-24 Glenn Morris <rgm@gnu.org>
177
178 * w32fns.c (Fx_synchronize, Fx_change_window_property)
179 (Fx_window_property, Fx_file_dialog):
180 * xfns.c (Fx_synchronize, Fx_change_window_property)
181 (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
182
183 2010-10-24 Chong Yidong <cyd@stupidchicken.com>
184
185 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
186
187 2010-10-24 Eli Zaretskii <eliz@gnu.org>
188
189 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
190
191 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
192 Deprecate use as a boolean flag.
193
194 2010-10-24 Jim Meyering <jim@meyering.net>
195
196 * emacs.c (argmatch): Don't treat "--" as "--chdir".
197
198 2010-10-24 Glenn Morris <rgm@gnu.org>
199
200 * w16select.c (syms_of_win16select) <selection-coding-system>:
201 <next-selection-coding-system>:
202 * w32select.c (syms_of_w32select) <selection-coding-system>:
203 <next-selection-coding-system>:
204 Sync docs with select.el.
205
206 * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
207 Lisp version.
208
209 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
210 Sync doc with the xterm.c version.
211
212 * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
213 * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
214
215 2010-10-23 Glenn Morris <rgm@gnu.org>
216
217 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
218 * frame.c (syms_of_frame) <menu-bar-mode>:
219 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
220 <hourglass-delay>: Sync docs with Lisp.
221
222 2010-10-23 Eli Zaretskii <eliz@gnu.org>
223
224 Implement mouse highlight for bidi-reordered lines.
225
226 * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
227 (mouse_face_from_string_pos): New function, replaces
228 fast_find_string_pos.
229 (note_mouse_highlight): Call it instead of fast_find_string_pos.
230 (note_mode_line_or_margin_highlight): Support bidi-reordered
231 strings and R2L glyph rows. Fix comments.
232 (note_mouse_highlight): When bidi reordering is turned on in a
233 buffer, call next-single-property-change and
234 previous-single-property-change with last argument nil. Clear
235 mouse highlight when mouse pointer is in a R2L row on the stretch
236 glyph that stands for no text beyond the line end.
237 (row_containing_pos): Don't return too early when CHARPOS is in a
238 bidi-reordered continued line. Return immediately when the first
239 hit is found in a line that is not continued, or when an exact
240 match for CHARPOS is found.
241 (rows_from_pos_range): New function.
242 (mouse_face_from_buffer_pos): Use it instead of calling
243 row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
244 function to support mouse highlight in bidi-reordered lines and
245 not to assume that START_CHARPOS is always in mouse_face_beg_row.
246 If necessary, swap mouse_face_beg_row and mouse_face_end_row so
247 that the former is always above the latter or identical to it.
248 (show_mouse_face): Support drawing highlighted R2L lines.
249 (coords_in_mouse_face_p): New function, bidi-aware.
250 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
251 Call it instead of comparing with mouse-face members of dpyinfo.
252 (note_mode_line_or_margin_highlight): Fix confusingly swapped
253 usage of hpos and vpos.
254
255 2010-10-22 Jan Djärv <jan.h.d@swipnet.se>
256
257 * xrdb.c: Include keyboard.h for MOTIF.
258
259 * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
260 MOTIF (Bug#7263).
261
262 * xfns.c: Include Xm/TextF and Xm/List.
263 (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog): Make
264 ANSI prototypes.
265
266 2010-10-22 Glenn Morris <rgm@gnu.org>
267
268 * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
269 Remove ccl and duplicate mouse.
270
271 2010-10-21 Chong Yidong <cyd@stupidchicken.com>
272
273 * insdel.c (prepare_to_modify_buffer): Don't set
274 saved-region-selection if modification hooks are disabled.
275
276 2010-10-19 Chong Yidong <cyd@stupidchicken.com>
277
278 * cmds.c (Fdelete_char): Doc fix.
279
280 2010-10-19 Ken Brown <kbrown@cornell.edu>
281
282 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
283
284 2010-10-19 Kenichi Handa <handa@m17n.org>
285
286 Fix incorrect font metrics when the same font is opened with
287 different pixelsizes.
288
289 * xftfont.c: Include composite.h.
290 (xftfont_shape): New function.
291 (syms_of_xftfont): Set xftfont_driver.shape.
292
293 2010-10-18 Julien Danjou <julien@danjou.info>
294
295 * frame.c (Fframe_pointer_visible_p):
296 Add `frame-pointer-visible-p' to get the pointer visibility.
297
298 2010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
299
300 * gnutls.c (emacs_gnutls_read): Return 0 if we get a
301 non-"EAGAIN"-like error to signal to Emacs that the socket should
302 be closed.
303
304 2010-10-15 Eli Zaretskii <eliz@gnu.org>
305
306 * unexcoff.c (make_hdr): Fix prototype according to changes in
307 2010-10-03T13:59:56Z!dann@ics.uci.edu.
308
309 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
310
311 2010-10-15 Tassilo Horn <tassilo@member.fsf.org>
312
313 * Makefile.in (really-oldXMenu): Fix typo in variable name that
314 made building the X menu fail.
315 (really-oldXMenu): Fix my previous fix.
316
317 2010-10-14 Damyan Pepper <damyanp@gmail.com>
318
319 Fix handling of font properties on Windows (bug#6303).
320 * font.c (font_filter_properties): New function, refactored from
321 ftfont_filter_properties.
322 * font.h (font_filter_properties): Declare.
323 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
324 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
325 (w32font_filter_properties): New function.
326 (w32font_driver): Add w32font_filter_properties.
327
328 2010-10-14 Juanma Barranquero <lekktu@gmail.com>
329
330 * font.c (Ffont_variation_glyphs):
331 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
332
333 2010-10-14 Juanma Barranquero <lekktu@gmail.com>
334
335 * w32fns.c (w32_wnd_proc, file_dialog_callback):
336 * w32font.c (w32_generic_family):
337 * w32inevt.c (key_event):
338 * w32menu.c (fill_in_menu):
339 * w32proc.c (reader_thread, w32_executable_type, compare_env)
340 (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
341 * w32term.c (w32_read_socket): Make static.
342
343 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
344
345 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
346 prototypes; all callers changed.
347
348 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
349
350 * makefile.w32-in (TLIB2): Rename from TLIBW32.
351 (OBJ2): New macro.
352 (WIN32OBJ, FONTOBJ): Remove.
353 (OBJ1): Redistribute object files with OBJ2.
354 (LIBS, $(TEMACS)): Use TLIB2.
355 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
356 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
357
358 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
359
360 * emacs.c (Vdynamic_library_alist)
361 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
362 Doc fix.
363
364 * lisp.h (Vdynamic_library_alist): Declare extern.
365
366 * image.c (Vimage_library_alist)
367 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
368 (lookup_image_type): Use Vdynamic_library_alist.
369 (Finit_image_library): Doc fix.
370
371 2010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
372
373 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
374 (lispdir): Remove trailing /, update all uses.
375
376 2010-10-12 Jan Djärv <jan.h.d@swipnet.se>
377
378 * nsterm.m (Qleft): Declare.
379 (ns_right_alternate_modifier): New variable
380 (NSRightAlternateKeyMask): New define.
381 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
382 ns_right_alternate_modifier isn't Qleft.
383 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
384 as emacs modifier for NSRightAlternateKeyMask.
385 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
386
387 2010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
388
389 * gnutls.c (emacs_gnutls_write): If we're trying to write before
390 gnutls is ready, return EAGAIN as the errno.
391
392 2010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
393
394 * vm-limit.c:
395 * unexhp9k800.c:
396 * unexelf.c:
397 * unexaix.c:
398 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
399
400 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
401 (PROFILING_LDFLAGS): Remove, not needed anymore.
402
403 * Makefile.in: Use $(...) everywhere instead of ${...}
404 (CRT_DIR): Move near potential user.
405 (START_FILE): Move near CRT_DIR, it might use it.
406
407 * sysdep.c (LPASS8): Remove, unused.
408 (emacs_ospeed): Change from being a global to a local in the only
409 user: init_baud_rate.
410
411 2010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
412
413 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
414 (emacs_gnutls_write): Remove the debuggin fsync call.
415 (emacs_gnutls_read): Return -1 if we got an error from
416 gnutls_read. This allows us to actually read lots of data from
417 the GnuTLS stream.
418 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
419 According to the documentation, this is correct, and it seems to
420 make things work.
421
422 2010-10-09 Chong Yidong <cyd@stupidchicken.com>
423
424 * xterm.c (x_draw_relief_rect): Clear corner pixels.
425
426 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
427
428 * keyboard.c: Revert last change; it was not intended to be
429 synchronized with the trunk.
430
431 2010-10-08 Kenichi Handa <handa@m17n.org>
432
433 * coding.c (complement_process_encoding_system): Fix previous change.
434
435 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
436
437 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
438 (Fdbus_init_bus): ... here. (Bug#7113)
439
440 2010-10-08 Glenn Morris <rgm@gnu.org>
441
442 * buffer.c (before-change-functions, after-change-functions):
443 Three-year overdue doc fix following 2007-08-13 change.
444
445 2010-10-08 Kenichi Handa <handa@m17n.org>
446
447 * coding.c (coding_inherit_eol_type): If parent doesn't specify
448 eol-format, inherit from the system's default.
449 (complement_process_encoding_system): Make a new coding system
450 inherit the original eol-format.
451
452 2010-10-08 Kenichi Handa <handa@m17n.org>
453
454 * coding.c (complement_process_encoding_system): New function.
455
456 * coding.h (complement_process_encoding_system): Extern it.
457
458 * callproc.c (Fcall_process): Complement the coding system for
459 encoding arguments.
460 (Fcall_process_region): Complement the coding system for encoding
461 the input to the process.
462
463 * process.c (Fstart_process): Complement the coding system for
464 encoding arguments.
465 (send_process): Complement the coding system for encoding what
466 sent to the process.
467
468 2010-10-08 Kenichi Handa <handa@m17n.org>
469
470 * xfont.c (xfont_open): Fix setting of font->average_width from
471 :avgwidth property (Bug#7123).
472
473 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
474
475 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
476 is more portable.
477
478 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
479 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
480 has not defined SIGIO.
481
482 2010-10-08 Chong Yidong <cyd@stupidchicken.com>
483
484 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
485 draw the outermost line using the black relief, for legibility.
486 Omit drawing the four corner pixels.
487
488 2010-10-04 Chong Yidong <cyd@stupidchicken.com>
489
490 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
491 (read_key_sequence): Inline echo_prompt.
492 (echo_dash): Add a dash only if key is continued (Bug#7137).
493
494 2010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
495
496 Remove O_RDONLY, O_WRONLY definitions, not needed.
497 * unexcoff.c:
498 * lread.c:
499 * fileio.c:
500 * doc.c:
501 * callproc.c:
502 * alloc.c:
503 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
504
505 2010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
506
507 * gnutls.h (GNUTLS_LOG2): Convenience macro.
508
509 * gnutls.c: Add property list symbol holders.
510 (emacs_gnutls_handshake): Clarify how sockets are passed to
511 GnuTLS.
512 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
513 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
514 and keyfiles to be a list of file names. Default to "NORMAL" for
515 the priority string. Improve logging.
516
517 2010-10-03 Glenn Morris <rgm@gnu.org>
518
519 * fileio.c (Vdirectory_sep_char): Remove.
520
521 2010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
522
523 * termhooks.h: Remove #ifdef CONSP.
524
525 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
526
527 Include <fcntl.h> unconditionally.
528 * termcap.c:
529 * sysdep.c:
530 * lread.c:
531 * keyboard.c:
532 * filelock.c:
533 * fileio.c:
534 * doc.c:
535 * callproc.c:
536 * alloc.c: Remove include guards for <fcntl.h>, process.c already
537 does it.
538
539 * process.c: Do not include <sys/wait.h>, syswait.h does it.
540
541 * sysdep.c (flush_pending_output): Remove code, does not do
542 anything on any platform.
543
544 Remove unused code.
545 * sysdep.c (select_alarm, sys_select, read_input_waiting): Remove
546 select emulation, all systems support select.
547 (set_exclusive_use): Remove, the only user is in an #if 0 block.
548 * process.c (create_process): Remove #if 0 code.
549
550 Remove unused arguments for unexec.
551 The third one is never used, and the last two are always passed as zero.
552 * emacs.c (unexec): Add declaration.
553 (Fdump_emacs): Only pass the first two arguments to unexec.
554 Simplify #ifdef.
555 * unexw32.c (unexec):
556 * unexsol.c (unexec):
557 * unexhp9k800.c (unexec):
558 * unexcw.c (unexec): Remove the last 3 arguments, unused.
559 * unexelf.c (unexec): Remove the last 3 arguments, unused.
560 (find_section): Use const.
561 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
562 (unexec_error): Declare it NO_RETURN.
563 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
564 it as an argument, remove data_start and entry_address arguments, unused.
565 (unexec): Remove bss_start, data_start and
566 entry_address arguments.
567 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
568 it as an argument, remove data_start and entry_address arguments, unused.
569 (unexec): Remove bss_start, data_start and
570 entry_address arguments.
571
572 2010-10-03 Juanma Barranquero <lekktu@gmail.com>
573
574 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
575
576 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
577 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
578 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
579 Fix typos in docstrings.
580 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
581 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
582
583 2010-10-03 Chong Yidong <cyd@stupidchicken.com>
584
585 * keyboard.c (command_loop_1): Make sure the mark is really alive
586 before using it (Bug#7044).
587
588 2010-10-02 Juanma Barranquero <lekktu@gmail.com>
589
590 * makefile.w32-in (tags): Rename target to full-tags.
591
592 2010-10-02 Eli Zaretskii <eliz@gnu.org>
593
594 * emacs.c (main): Remove !WINDOWSNT conditional.
595 (Fkill_emacs): Don't mention exemption on MS-Windows.
596
597 2010-10-02 Glenn Morris <rgm@gnu.org>
598
599 * character.c (Fchar_bytes): Remove obsolete function.
600 (syms_of_character): Remove Schar_bytes.
601
602 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
603 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
604 in batch-mode.
605 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
606 (kill-emacs-hook): Doc fix.
607
608 2010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
609
610 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
611 (parse_region): Reworked to take regions instead of strings, and
612 renamed to reflect that these are the libxml functions.
613
614 2010-10-01 Eli Zaretskii <eliz@gnu.org>
615
616 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
617 screen dimensions in tty->Wcm.
618
619 * xdisp.c (set_cursor_from_row): When the row is truncated and
620 point is outside the range of displayed characters, position the
621 cursor inside the scroll margin. (Bug#6349)
622
623 2010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
624
625 Do not include stdlib.h and string.h, config.h does it.
626 * xfont.c:
627 * w32term.c:
628 * w32reg.c:
629 * w32inevt.c:
630 * w32heap.c:
631 * w32console.c:
632 * w16select.c:
633 * unexsol.c:
634 * term.c:
635 * sound.c:
636 * scroll.c (m):
637 * gtkutil.c:
638 * font.c:
639 * filelock.c:
640 * fileio.c:
641 * dosfns.c:
642 * dbusbind.c:
643 * bidi.c:
644 * callproc.c:
645 * process.c:
646 * msdos.c:
647 * charset.c: Do not include stdlib.h and string.h, config.h does it.
648
649 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h defines it.
650
651 * process.c: Move #include <pty.h> earlier.
652 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
653 (pty_name): Move definition later.
654
655 * nsselect.m (syms_of_nsselect):
656 * nsmenu.m (syms_of_nsmenu):
657 * nsfns.m (syms_of_nsfns):
658 * msdos.c (syms_of_msdos):
659
660 * image.c (syms_of_image):
661 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
662
663 * point.h: Remove, unused.
664
665 2010-10-01 Eli Zaretskii <eliz@gnu.org>
666
667 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
668 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
669 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
670
671 2010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
672
673 * xml.c (parse_string): Use const.
674
675 2010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
676
677 * eval.c (Fbacktrace): Don't overwrite print-level on exit. Also
678 only override Vprint_level if it isn't already bound, and increase
679 the level to 8 to produce more useful backtraces for bug reports.
680
681 2010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
682
683 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
684
685 2010-09-30 Juanma Barranquero <lekktu@gmail.com>
686
687 * w32console.c (vga_stdcolor_name): Remove unused function;
688 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
689
690 2010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
691
692 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
693 (Fgnutls_boot): Start the handshake.
694 (emacs_gnutls_read): Perform the handshake from the reader loop.
695 (Fgnutls_boot): Remove some debugging messages.
696 Change indentation throughout to use the Emacs style.
697 (emacs_gnutls_handshake): Cast the fds to something that's
698 possibly the expected length.
699 (emacs_gnutls_write): Return -1 if we try to write before handshake.
700
701 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
702
703 * process.c (make_process): Set the gnutls_p field to zero by
704 default.
705 (read_process_output): Always call the gnutls_read function if the
706 stream is a gnutls stream.
707 (send_process): Ditto for writes.
708
709 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
710 or write anything until the state is GNUTLS_STAGE_READY.
711 (Fgnutls_boot): Mark the stream as being a gnutls stream.
712
713 2010-09-29 Eli Zaretskii <eliz@gnu.org>
714
715 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
716 NEUTRAL_DIR.
717 (handle_invisible_prop, iterate_out_of_display_property)
718 (next_element_from_buffer): If bidi_it.first_elt is set, call
719 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
720 (Bug#7128)
721
722 * print.c (print_object): Fix format string and argument types for
723 printing a Lisp_Misc_Marker.
724
725 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
726 (load_overlay_strings, get_overlay_strings_1)
727 (get_overlay_strings, forward_to_next_line_start)
728 (back_to_previous_visible_line_start, reseat, reseat_to_string)
729 (get_next_display_element, next_element_from_string)
730 (next_element_from_c_string, next_element_from_buffer)
731 (move_it_vertically_backward, move_it_by_lines, add_to_log)
732 (message_dolog, message_log_check_duplicate, message2_nolog)
733 (message3, message3_nolog, vmessage, set_message, set_message_1)
734 (hscroll_window_tree, text_outside_line_unchanged_p)
735 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
736 (find_last_unchanged_at_beg_row)
737 (find_first_unchanged_at_end_row, row_containing_pos)
738 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
739 (display_count_lines, x_produce_glyphs, note_mouse_highlight): Use
740 EMACS_INT for buffer and string positions.
741
742 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
743 (row_containing_pos): Adjust prototype.
744
745 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
746 (message2_nolog, set_message): Adjust prototypes.
747
748 2010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
749
750 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
751 (Fgnutls_boot): Use SDATA.
752 (Fgnutls_handshake): Remove unused var `max_log_level'.
753
754 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
755
756 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
757 (Bug#7113)
758
759 2010-09-27 Jan Djärv <jan.h.d@swipnet.se>
760
761 * xgselect.c (xg_select): Clear file descriptors not set from
762 rfds and wfds.
763
764 * process.c (wait_reading_process_output): Add missing FD_CLR
765 for write_mask (must mirror connect_wait_mask).
766
767 2010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
768
769 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
770 prefix.
771 (Fgnutls_boot): Use changed process members. Use log level with a
772 function parameter to set it. Bring back Emacs-level debugging
773 messages at log level 1 and 2.
774
775 * process.c (make_process): Initialize gnutls_log_level.
776
777 * process.h: Add gnutls_log_level and rename x509_cred and
778 anon_cred to have the gnutls_ prefix for consistency.
779
780 * gnutls.h (GNUTLS_LOG): Add convenience macro.
781
782 2010-09-27 Juanma Barranquero <lekktu@gmail.com>
783
784 * w32.c (g_b_init_get_sid_identifier_authority)
785 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
786 Remove, not used.
787 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
788 (init_winsock): Remove useless assignment.
789 (open_process_token, get_token_information, lookup_account_sid)
790 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
791 (get_security_descriptor_owner, get_security_descriptor_group)
792 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
793 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
794 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
795 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
796 (unc_volume_file_attributes, convert_from_time_t)
797 (create_toolhelp32_snapshot, process32_first, process32_next)
798 (open_thread_token, impersonate_self, revert_to_self)
799 (get_process_memory_info, get_process_working_set_size)
800 (global_memory_status, global_memory_status_ex, socket_to_fd)
801 (shutdown_handler): Make static.
802
803 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
804
805 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
806 (xd_pending_messages): Functions removed.
807 (xd_read_queued_messages): Add parameters fd, *data, for_read in
808 order to be compatible with add_read_fd. Determine bus from data,
809 and call xd_read_message just for this bus.
810 (xd_add_watch): Use xd_read_queued_messages as callback function.
811 Add data.
812
813 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
814
815 2010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
816
817 * gnutls.c (gnutls_log_function): Added more debugging.
818 (emacs_gnutls_read): Don't infloop while reading.
819
820 2010-09-27 Kenichi Handa <handa@m17n.org>
821
822 These changes are to remove restriction on the number of glyphs in
823 one composition.
824
825 * dispextern.h (struct glyph): Change the member "slice" to union.
826 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
827 (GLYPH_SLICE_EQUAL_P): Adjusted for the above change.
828
829 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
830 instead of glyph->slice.
831 (marginal_area_string): Likewise.
832
833 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
834 glyph->u.cmp.
835 (append_composite_glyph): Likewise.
836
837 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
838 glyph->u.cmp.
839 (fill_gstring_glyph_string, x_get_glyph_overhangs)
840 (append_composite_glyph): Likewise.
841 (fill_image_glyph_string): Use glyph->slice.img instead of
842 glyph->slice.
843 (append_glyph, produce_image_glyph, append_stretch_glyph)
844 (note_mouse_highlight): Likewise.
845
846 2010-09-26 Jan Djärv <jan.h.d@swipnet.se>
847
848 * process.c (add_keyboard_wait_descriptor)
849 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
850 (wait_reading_process_output): Don't pass write_mask to select
851 if SELECT_CANT_DO_WRITE_MASK is defined.
852 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
853
854 * process.h (add_read_fd, delete_read_fd, add_write_fd)
855 (delete_write_fd): Declare.
856
857 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
858 (write_mask): New variable.
859 (max_input_desc): Renamed from max_keyboard_desc.
860 (fd_callback_info): New variable.
861 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
862 New functions.
863 (Fmake_network_process): FD_SET write_mask.
864 (deactivate_process): FD_CLR write_mask.
865 (wait_reading_process_output): Connecting renamed to Writeok.
866 check_connect removed. check_write is new. Remove references to gpm.
867 Use Writeok/check_write unconditionally (i.e. no #ifdef
868 NON_BLOCKING_CONNECT) instead of Connecting.
869 Loop over file descriptors and call callbacks in fd_callback_info
870 if file descriptor is ready for I/O.
871 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
872 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
873 (keyboard_bit_set): Use max_input_desc.
874 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
875 Remove #ifdef subprocesses. Use max_input_desc.
876 (init_process): Initialize write_mask and fd_callback_info.
877
878 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
879
880 * dbusbind.c: Include process.h.
881 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
882 (xd_read_message_1): New functions.
883 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
884 Handle watch for both read and write.
885 (Fdbus_init_bus): Also register xd_toggle_watch.
886 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
887 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
888 to dbus_connection_flush.
889 (xd_read_message): Move most of the code to xd_read_message_1.
890 Call xd_read_message_1 until status is COMPLETE.
891
892 2010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
893
894 * term.c: Do not include sys/ioctl.h, not needed.
895 (init_tty): Reorder code to reduce the number of #ifdefs.
896 No code changes.
897
898 2010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
899
900 * process.h: Set up GnuTLS support.
901
902 * process.c (make_process, Fstart_process)
903 (read_process_output, send_process): Set up GnuTLS support for
904 process input/output file descriptors.
905
906 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
907
908 * gnutls.c: The source code for GnuTLS support in Emacs.
909
910 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
911
912 * config.in: Set up GnuTLS support.
913
914 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
915 (obj, LIBES): Set up GnuTLS support.
916
917 2010-09-26 Juanma Barranquero <lekktu@gmail.com>
918
919 * w32.c (get_emacs_configuration_options): Fix previous change.
920
921 2010-09-25 Chong Yidong <cyd@stupidchicken.com>
922
923 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
924 alive before using it (Bug#6977).
925
926 2010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
927
928 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
929
930 * dispextern.h: EMACS_INT/int fixup.
931
932 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
933 fixup.
934
935 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
936
937 2010-09-25 Eli Zaretskii <eliz@gnu.org>
938
939 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
940 (Fselect_window, window_scroll_pixel_based)
941 (window_scroll_line_based, Frecenter, Fset_window_configuration):
942 Use EMACS_INT for buffer positions.
943
944 * textprop.c (validate_interval_range, interval_of)
945 (property_change_between_p, Fadd_text_properties)
946 (set_text_properties_1, Fremove_text_properties)
947 (Fremove_list_of_text_properties, Ftext_property_any)
948 (Ftext_property_not_all, copy_text_properties)
949 (text_property_list, extend_property_ranges)
950 (verify_interval_modification): Use EMACS_INT for buffer
951 positions.
952
953 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
954 for buffer positions.
955
956 * process.c (read_process_output, send_process)
957 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
958 and string positions and size.
959
960 * print.c (print_object, print_string, strout): Use EMACS_INT for
961 string indices.
962
963 * minibuf.c (string_to_object): Use EMACS_INT for string position
964 and size.
965
966 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
967
968 * lread.c <read_from_string_index, read_from_string_index_byte>
969 <read_from_string_limit, readchar_count>: Define EMACS_INT.
970 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
971 buffer positions and string length.
972
973 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
974 EMACS_INT.
975 (echo_truncate, adjust_point_for_property, read_char)
976 (gen_help_event, make_lispy_event, modify_event_symbol)
977 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
978 for buffer positions and string length.
979
980 * keyboard.h (gen_help_event): Adjust prototype.
981
982 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
983
984 * commands.h <last_point_position>: Declare EMACS_INT.
985
986 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
987 (truncate_echo_area): Accept EMACS_INT argument.
988
989 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
990
991 * lisp.h (truncate_echo_area): Adjust prototype.
992
993 * composite.c (composition_adjust_point): Return EMACS_INT.
994
995 * composite.h (composition_adjust_point): Adjust prototype.
996
997 2010-09-25 Juanma Barranquero <lekktu@gmail.com>
998
999 * process.c (Fmake_network_process): When arg :host is 'local,
1000 use address 127.0.0.1, not name "localhost". (Bug#6781)
1001
1002 2010-09-24 Eli Zaretskii <eliz@gnu.org>
1003
1004 * indent.c (Fcurrent_indentation, indented_beyond_p)
1005 (compute_motion): Use EMACS_INT for buffer position variables.
1006
1007 * lisp.h (indented_beyond_p): Adjust prototype.
1008
1009 * buffer.c (overlay_strings): Return EMACS_INT.
1010
1011 * buffer.h (overlay_strings): Adjust prototype.
1012
1013 * region-cache.c (pp_cache): Adjust format to arguments.
1014
1015 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
1016 (call_debugger): Use EMACS_INT for specpdl_size related variables.
1017 (verror): Use EMACS_INT for size of allocated buffer.
1018
1019 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
1020 positions.
1021
1022 * xdisp.c (redisplay_internal, try_window_id)
1023 (set_cursor_from_row, find_first_unchanged_at_end_row): Use
1024 EMACS_INT for buffer positions.
1025
1026 * dispextern.h (set_cursor_from_row): Adjust prototype.
1027
1028 * dispnew.c (increment_matrix_positions)
1029 (increment_row_positions, copy_glyph_row_contents)
1030 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
1031 positions.
1032
1033 * dispextern.h (mode_line_string, marginal_area_string)
1034 (increment_matrix_positions, increment_row_positions): Adjust
1035 prototypes.
1036
1037 * data.c (Faref, Faset): Use EMACS_INT for string length and
1038 positions.
1039
1040 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
1041 characters to insert.
1042
1043 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
1044 position and size.
1045
1046 * syntax.c (scan_words, update_syntax_table)
1047 (prev_char_comend_first, back_comment, skip_chars)
1048 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars): Use
1049 EMACS_INT for buffer and string positions.
1050
1051 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
1052
1053 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
1054 positions.
1055
1056 2010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
1057
1058 * scroll.c (calculate_scrolling, line_ins_del)
1059 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
1060 conversion.
1061
1062 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
1063 (region_cache_backward, region_cache_forward)
1064 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
1065 conversion.
1066
1067 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
1068
1069 * eval.c (verror): Fix EMACS_INT/int conversion.
1070
1071 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
1072 (print_preprocess, print_check_string_charset_prop)
1073 (print_object): Fix EMACS_INT/int conversion.
1074
1075 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
1076
1077 2010-09-24 Eli Zaretskii <eliz@gnu.org>
1078
1079 * callproc.c (Fcall_process): Use EMACS_INT for count of
1080 characters read from the subprocess.
1081
1082 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
1083 positions.
1084 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
1085 positions.
1086
1087 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
1088 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
1089 length.
1090 (advance_to_char_boundary, Fset_buffer_multibyte)
1091 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
1092 (overlay_touches_p, record_overlay_string, overlay_strings)
1093 (recenter_overlay_lists, fix_start_end_in_overlays)
1094 (modify_overlay, Fmove_overlay, report_overlay_modification)
1095 (evaporate_overlays): Use EMACS_INT for buffer positions.
1096
1097 * lisp.h (fix_start_end_in_overlays, overlay_touches_p): Adjust
1098 prototypes.
1099
1100 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
1101 positions.
1102
1103 * fns.c (Fcompare_strings, Fstring_lessp, concat)
1104 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
1105 (Fsubstring_no_properties, substring_both, Ffillarray)
1106 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
1107 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
1108 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
1109 (Fmd5): Use EMACS_INT for buffer and string positions and length
1110 variables and arguments.
1111
1112 * lisp.h (substring_both): Adjust prototype.
1113
1114 2010-09-24 Juanma Barranquero <lekktu@gmail.com>
1115
1116 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
1117 * w32fns.c (clipboard_sequence_fn): Don't declare.
1118 (globals_of_w32fns): Don't initialize it.
1119
1120 2010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
1121
1122 * syntax.c (back_comment): Detect the case where a 1-char comment
1123 starter is also the 2nd char of a 2-char comment ender.
1124
1125 2010-09-23 Jan Djärv <jan.h.d@swipnet.se>
1126
1127 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
1128
1129 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
1130
1131 * eval.c (verror): EMACS_INT/int cleanup.
1132
1133 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
1134 unwind_protect more than 2GB worth of functions.
1135
1136 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
1137
1138 * lisp.h: Have oblookup take EMACS_INT to allow interning big
1139 string and avoid compiler warnings.
1140 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
1141 all users.
1142
1143 * lread.c (oblookup): EMACS_INT/int cleanup.
1144
1145 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
1146
1147 2010-09-23 Eli Zaretskii <eliz@gnu.org>
1148
1149 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
1150
1151 * lisp.h (clip_to_bounds): Adjust prototype.
1152
1153 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
1154
1155 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
1156
1157 * lisp.h: doprnt.c EMACS_INT/int cleanup.
1158
1159 * doprnt.c (doprnt): EMACS_INT/int cleanup.
1160
1161 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
1162 cleanup.
1163
1164 * lisp.h: Change the definition of all marker.c functions that
1165 take and return buffer stuff to be EMACS_INT instead of int.
1166
1167 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
1168 (buf_charpos_to_bytepos, bytepos_to_charpos)
1169 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
1170 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
1171 for all buffer positions.
1172
1173 2010-09-23 Chong Yidong <cyd@stupidchicken.com>
1174
1175 * intervals.c (traverse_intervals, rotate_right, rotate_left)
1176 (split_interval_right, find_interval, next_interval)
1177 (delete_node, delete_interval, interval_deletion_adjustment)
1178 (adjust_intervals_for_deletion, merge_interval_right)
1179 (merge_interval_left, graft_intervals_into_buffer)
1180 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
1181
1182 * intervals.h (traverse_intervals): Update prototype.
1183
1184 2010-09-23 Eli Zaretskii <eliz@gnu.org>
1185
1186 * indent.c (compute_motion): Use EMACS_INT for arguments to
1187 region_cache_forward.
1188
1189 * region-cache.c (struct boundary, struct region_cache): Use
1190 EMACS_INT for positions.
1191 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
1192 (delete_cache_boundaries, set_cache_region)
1193 (invalidate_region_cache, know_region_cache)
1194 (region_cache_forward, region_cache_backward, pp_cache): Use
1195 EMACS_INT for buffer positions.
1196
1197 * region-cache.h (know_region_cache, invalidate_region_cache)
1198 (region_cache_forward, region_cache_backward): Adjust prototypes.
1199
1200 * search.c (string_match_1, fast_c_string_match_ignore_case)
1201 (looking_at_1, scan_buffer, scan_newline)
1202 (find_next_newline_no_quit, find_before_next_newline)
1203 (search_command, trivial_regexp_p, search_buffer, simple_search)
1204 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
1205 and string positions and length.
1206
1207 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
1208 (find_before_next_newline): Adjust prototypes.
1209
1210 * editfns.c (transpose_markers, update_buffer_properties)
1211 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
1212 (get_pos_property, Fconstrain_to_field)
1213 (Fline_beginning_position, Fline_end_position, Fprevious_char)
1214 (Fchar_after, Fchar_before, Finsert_char)
1215 (Finsert_buffer_substring, Fcompare_buffer_substrings)
1216 (Fsubst_char_in_region, Fformat, Ftranspose_regions): Use
1217 EMACS_INT for buffer and string position variables.
1218 (Finsert_char): Protect against too large insertions.
1219
1220 * lisp.h (clip_to_bounds): Adjust prototype.
1221
1222 * intervals.c (traverse_intervals, rotate_right, rotate_left)
1223 (balance_an_interval, split_interval_right, split_interval_left)
1224 (find_interval, next_interval, update_interval)
1225 (adjust_intervals_for_insertion, delete_node, delete_interval)
1226 (interval_deletion_adjustment, adjust_intervals_for_deletion)
1227 (offset_intervals, merge_interval_right, merge_interval_left)
1228 (graft_intervals_into_buffer, adjust_for_invis_intang)
1229 (move_if_not_intangible, get_local_map, copy_intervals)
1230 (copy_intervals_to_string, compare_string_intervals)
1231 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
1232 and for interval tree size.
1233
1234 * intervals.h (traverse_intervals, split_interval_right)
1235 (split_interval_left, find_interval, offset_intervals)
1236 (graft_intervals_into_buffer, copy_intervals)
1237 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
1238 (update_interval): Adjust prototypes.
1239
1240 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
1241 Use EMACS_INT for buffer position variables and arguments.
1242
1243 * composite.c (get_composition_id, find_composition)
1244 (run_composition_function, compose_text)
1245 (composition_gstring_width, autocmp_chars)
1246 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
1247 for buffer positions and string length variables and arguments.
1248
1249 * composite.h (get_composition_id, find_composition, compose_text)
1250 (composition_gstring_width): Adjust prototypes.
1251
1252 * editfns.c (Fformat): Use EMACS_INT for string size variables.
1253
1254 * xdisp.c (store_mode_line_noprop, display_mode_element): Use
1255 EMACS_INT for string positions.
1256
1257 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
1258 position arguments.
1259
1260 * intervals.h (get_property_and_range): Adjust prototype.
1261
1262 * character.c (parse_str_as_multibyte, str_as_multibyte)
1263 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
1264 (string_count_byte8, string_escape_byte8, c_string_width)
1265 (strwidth, lisp_string_width, multibyte_chars_in_text): Use
1266 EMACS_INT for string length variables and arguments.
1267
1268 * character.h (parse_str_as_multibyte, str_as_multibyte)
1269 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
1270 (c_string_width, strwidth, lisp_string_width): Adjust
1271 prototypes.
1272
1273 * font.c (font_intern_prop): Use EMACS_INT for string length
1274 variables.
1275
1276 * font.c (font_intern_prop): Use EMACS_INT for string length
1277 variables.
1278
1279 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
1280 variables.
1281
1282 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
1283 (Fmake_string): Protect against too large strings.
1284 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
1285 (live_misc_p): Use ptrdiff_t instead of int for pointer
1286 differences.
1287 (string_bytes, check_sblock, check_string_free_list)
1288 (allocate_string_data, compact_small_strings, Fmake_string)
1289 (Fmake_bool_vector, make_string, make_unibyte_string)
1290 (make_multibyte_string, make_string_from_bytes)
1291 (make_specified_string_string, Fmake_list, Fmake_vector): Use
1292 EMACS_INT for string length variables and arguments.
1293 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
1294 (Fpurecopy): Use EMACS_INT for string size.
1295 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
1296 for vector size.
1297
1298 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
1299 (make_string_from_bytes, make_specified_string_string)
1300 (make_pure_string, string_bytes, check_point_in_composition):
1301 Adjust prototypes.
1302
1303 2010-09-22 Eli Zaretskii <eliz@gnu.org>
1304
1305 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
1306 (check_translation): Use EMACS_INT for buffer positions and
1307 length.
1308
1309 * undo.c (record_marker_adjustment, record_delete)
1310 (record_change, record_point, record_insert)
1311 (record_property_change, Fprimitive_undo): Use EMACS_INT for
1312 buffer positions.
1313
1314 * lisp.h (record_marker_adjustment, record_delete)
1315 (record_change, record_point, record_insert)
1316 (record_property_change, Fprimitive_undo): Adjust prototypes.
1317
1318 2010-09-22 Juanma Barranquero <lekktu@gmail.com>
1319 Eli Zaretskii <eliz@gnu.org>
1320
1321 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
1322
1323 2010-09-22 Eli Zaretskii <eliz@gnu.org>
1324
1325 * minibuf.c (Fminibuffer_contents)
1326 (Fminibuffer_contents_no_properties)
1327 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
1328 positions.
1329
1330 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
1331 mark.
1332
1333 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
1334 (allocate_string_data): Accept EMACS_INT for string length.
1335
1336 * editfns.c (Ffield_string, Ffield_string_no_properties)
1337 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
1338 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
1339 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
1340 (Ffield_end): Use EMACS_INT for buffer positions.
1341
1342 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
1343 point with mark.
1344
1345 * lisp.h (allocate_string_data, make_uninit_string)
1346 (make_uninit_multibyte_string, make_buffer_string)
1347 (make_buffer_string_both): Adjust prototypes.
1348
1349 2010-09-22 Chong Yidong <cyd@stupidchicken.com>
1350
1351 * xml.c: Switch to GNU indentation.
1352 (make_dom): Change parse tree format to match xml.el.
1353 (Fxml_parse_html_string_internal): Rename from html-parse-string.
1354 (Fxml_parse_string_internal): Rename from xml-parse-string.
1355
1356 2010-09-22 Kenichi Handa <handa@m17n.org>
1357
1358 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
1359 only if we are not at a composition.
1360 (set_iterator_to_next): Give it->end_charpos to
1361 composition_compute_stop_pos.
1362 (set_iterator_to_next, next_element_from_buffer): Likewise.
1363
1364 * dispnew.c (buffer_posn_from_coords): Fix position when the
1365 current display element is a grapheme cluster in bidi-reordered
1366 region.
1367
1368 2010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
1369
1370 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
1371 the regions may overlap.
1372
1373 2010-09-21 Juanma Barranquero <lekktu@gmail.com>
1374
1375 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
1376
1377 2010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
1378
1379 * emacs.c: Do not include sys/ioctl.h, not needed.
1380
1381 * doprnt.c: Do not include stdlib.h, config.h does it.
1382 Move #include before macro definition.
1383
1384 2010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
1385
1386 * Makefile.in (temacs): Link using $(CC) not $(LD).
1387 (LD_FIRSTFLAG): Define using autoconf.
1388 (LD): Remove.
1389
1390 Remove HAVE_TERMIOS definitions.
1391 * s/usg5-4-common.h (HAVE_TERMIOS):
1392 * s/template.h (HAVE_TERMIOS):
1393 * s/gnu-linux.h (HAVE_TERMIOS):
1394 * s/darwin.h (HAVE_TERMIOS):
1395 * s/cygwin.h (HAVE_TERMIOS):
1396 * s/bsd-common.h (HAVE_TERMIOS):
1397 * s/aix4-2.h (HAVE_TERMIOS):
1398 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
1399 defined on all non-MS platforms.
1400 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
1401
1402 * xterm.c (xt_action_hook): Use const.
1403
1404 2010-09-20 Juanma Barranquero <lekktu@gmail.com>
1405
1406 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
1407 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
1408 (gethostname) [!HAVE_SOCKETS]: Remove.
1409 (SOCK_REPLACE_HANDLE): Remove macro.
1410 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
1411 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
1412 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
1413 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
1414
1415 2010-09-18 Eli Zaretskii <eliz@gnu.org>
1416
1417 * deps.mk (xml.o): Add dependencies.
1418
1419 * xdisp.c (Fcurrent_bidi_paragraph_direction):
1420 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
1421
1422 * bidi.c (bidi_paragraph_init): Accept an additional argument
1423 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
1424 search back until a paragraph with a strong directional character
1425 is found, and use that to determine paragraph's base direction.
1426
1427 * dispextern.h (bidi_paragraph_init): Update prototype.
1428
1429 2010-09-17 Eli Zaretskii <eliz@gnu.org>
1430
1431 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
1432 of w32api >= 3.15. (Bug#6989)
1433
1434 2010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
1435
1436 * process.c (wait_reading_process_output): Don't message about
1437 accept-process-output unless the time limit really is zero.
1438
1439 2010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
1440
1441 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
1442 int/Lisp_Object mixup).
1443
1444 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
1445
1446 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
1447 not HELP.
1448
1449 2010-09-17 Stephen Berman <stephen.berman@gmx.net>
1450
1451 * frame.c (Ftool_bar_pixel_width): New function to expose tool
1452 bar's pixel width to Lisp (Bug#7048).
1453
1454 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
1455
1456 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
1457
1458 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
1459
1460 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
1461 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
1462
1463 2010-09-17 Kenichi Handa <handa@m17n.org>
1464
1465 * ftfont.c (ftfont_check_otf): Fix previous change.
1466
1467 2010-09-14 Kenichi Handa <handa@m17n.org>
1468
1469 * ftfont.c (ftfont_check_otf): Fix the case of checking just
1470 existence of GSUB or GPOS.
1471
1472 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
1473
1474 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
1475
1476 2010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
1477
1478 * xml.c (parse_buffer): Renamed to parse_string(), since that's
1479 what it does.
1480 (parse_string): Return nil when the document can't be parsed.
1481
1482 2010-09-14 Jan Djärv <jan.h.d@swipnet.se>
1483
1484 * xterm.c (get_current_vm_state): New function.
1485 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
1486 want_fullscreen so set_wm_state calls are few (Bug#7013).
1487 (x_handle_net_wm_state): Move code to get_current_vm_state and
1488 call that function.
1489
1490 2010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
1491
1492 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
1493
1494 2010-09-14 Kenichi Handa <handa@m17n.org>
1495
1496 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
1497 we may use designation or locking-shift.
1498
1499 2010-09-14 Kenichi Handa <handa@m17n.org>
1500
1501 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
1502 sequence when the source is multibyte.
1503
1504 2010-09-14 Andreas Schwab <schwab@linux-m68k.org>
1505
1506 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
1507 Don't make first argument optional. Doc fix.
1508
1509 2010-09-14 Leo <sdl.web@gmail.com> (tiny change)
1510
1511 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
1512 parameters for the doc string.
1513
1514 2010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
1515
1516 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
1517
1518 2010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1519
1520 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
1521 (syms_of_fns): Don't defsubr Sy_or_n_p.
1522 * lisp.h: Don't declare Fy_or_n_p.
1523 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
1524
1525 2010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
1526
1527 * xml.c (Fxml_parse_buffer): New function to parse XML files.
1528
1529 2010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
1530
1531 * xml.c: New file.
1532 (Fhtml_parse_buffer): New function to interface to the libxml2
1533 html parsing function.
1534
1535 2010-09-05 Juanma Barranquero <lekktu@gmail.com>
1536
1537 * biditype.h: Regenerate.
1538
1539 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
1540
1541 * nsimage.m (ns_load_image): Check argument types.
1542
1543 * image.c: Remove all uses of gcpro.
1544 (xpm_load): Check all lisp types.
1545 (pbm_load): Likewise.
1546 (png_load): Likewise.
1547 (jpeg_load): Likewise.
1548 (tiff_load): Likewise.
1549 (gif_load): Likewise.
1550 (imagemagick_load_image): Likewise.
1551 (imagemagick_load): Likewise.
1552 (svg_load): Likewise.
1553 (gs_load): Likewise.
1554
1555 2010-09-04 Eli Zaretskii <eliz@gnu.org>
1556
1557 * w32uniscribe.c (uniscribe_shape): Update commentary. Don't
1558 try to reorder grapheme clusters, since LGSTRING should always
1559 hold them in the logical order.
1560 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
1561 return glyph codes in the logical order.
1562
1563 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
1564
1565 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
1566 (imagemagick_load_image): Fix type mismatch.
1567 (Fimagemagick_types): Likewise. Doc fix.
1568
1569 2010-09-02 Jan Djärv <jan.h.d@swipnet.se>
1570
1571 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
1572
1573 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
1574
1575 * xselect.c: Remove declaration of cut-buffer objects and functions.
1576 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
1577 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
1578 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
1579 (Fx_rotate_cut_buffers_internal): Remove.
1580 (syms_of_xselect): Remove defsubr of above.
1581 Remove intern of QCUT_BUFFERn.
1582
1583 2010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
1584
1585 * cmds.c (Vblink_paren_function): Remove.
1586 (internal_self_insert): Make it insert N chars at a time.
1587 Don't call blink-paren-function.
1588 (Fself_insert_command): Adjust accordingly.
1589 (syms_of_cmds): Don't declare blink-paren-function.
1590
1591 2010-08-31 Kenichi Handa <handa@m17n.org>
1592
1593 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
1594 characters.
1595
1596 * term.c (encode_terminal_code): Fix the previous change.
1597 (produce_glyphs): Don't set it->char_to_display here.
1598 Don't handle unibyte-display-via-language-environment here.
1599 (produce_special_glyphs): Set temp_it.char_to_display before
1600 calling produce_glyphs.
1601
1602 * xdisp.c (get_next_display_element): Set it->char_to_display
1603 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
1604 characters.
1605 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
1606 calling PRODUCE_GLYPHS.
1607 (append_space_for_newline): Save and store it->char_to_display.
1608 Set it->char_to_display before calling PRODUCE_GLYPHS.
1609 (extend_face_to_end_of_line): Set it->char_to_display before
1610 calling PRODUCE_GLYPHS.
1611 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
1612 character to its byte value.
1613 (get_char_glyph_code): New function.
1614 (produce_stretch_glyph): Set it2.char_to_display too before
1615 calling x_produce_glyphs.
1616 (x_produce_glyphs): Simplify by using the same code for ASCII and
1617 non-ASCII characters. Don't set it->char_to_display here.
1618 Don't handle unibyte-display-via-language-environment here. For a
1619 character of no glyph, use font->space_width instead of FONT_WIDTH.
1620
1621 2010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
1622
1623 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
1624
1625 2010-08-31 Chong Yidong <cyd@stupidchicken.com>
1626
1627 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
1628
1629 2010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
1630
1631 * marker.c (Fcopy_marker): Make the first arg optional.
1632
1633 2010-08-30 Kenichi Handa <handa@m17n.org>
1634
1635 * composite.c (composition_update_it): Fix computing of
1636 cmp_it->width.
1637
1638 2010-08-29 Kenichi Handa <handa@m17n.org>
1639
1640 * term.c (encode_terminal_code): Encode byte chars to the
1641 corresponding bytes.
1642
1643 2010-08-29 Jan Djärv <jan.h.d@swipnet.se>
1644
1645 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
1646
1647 2010-08-26 Kenichi Handa <handa@m17n.org>
1648
1649 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
1650 on calling composition_compute_stop_pos.
1651
1652 2010-08-25 Kenichi Handa <handa@m17n.org>
1653
1654 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
1655 :otf.
1656
1657 * composite.c (composition_compute_stop_pos): Don't break
1658 composition at PT.
1659 (composition_reseat_it): Likewise. Fix calculation of character
1660 position starting a composition.
1661 (Fcomposition_get_gstring): Don't limit the number of components
1662 for automatic composition.
1663
1664 2010-08-25 Kenichi Handa <handa@m17n.org>
1665
1666 * composite.c (composition_compute_stop_pos): In forward search,
1667 pay attention to the possibility that some character after ENDPOS
1668 will be composed with charactrs before ENDPOS.
1669
1670 2010-08-24 Chong Yidong <cyd@stupidchicken.com>
1671
1672 * keyboard.c (command_loop_1): Don't clobber primary selection
1673 during handle-switch-frame (Bug#6872).
1674
1675 2010-08-23 Michael Albinus <michael.albinus@gmx.de>
1676
1677 * dbusbind.c: Accept UNIX domain sockets as bus address.
1678 (Fdbus_close_bus): New function.
1679 (Vdbus_registered_buses): New variable.
1680 (xd_initialize): Implement string as bus address.
1681 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
1682 (Fdbus_get_unique_name, Fdbus_call_method)
1683 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1684 (Fdbus_method_error_internal, Fdbus_send_signal)
1685 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
1686 check. This is done in xd_initialize_bus. Adapt doc string, if
1687 necessary.
1688 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
1689 Vdbus_registered_buses.
1690 (Vdbus_registered_objects_table): Create hash.
1691
1692 2010-08-22 Juri Linkov <juri@jurta.org>
1693
1694 * keyboard.c (Fexecute_extended_command): Move reading a command name
1695 with `completing-read' to a new Elisp function `read-extended-command'.
1696 Call it to read a command to `function' (bug#5364, bug#5214).
1697
1698 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
1699
1700 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
1701
1702 2010-08-22 Andreas Schwab <schwab@linux-m68k.org>
1703
1704 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
1705 instead of SAFE_ALLOCA.
1706
1707 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
1708
1709 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
1710 (Bug#6214).
1711
1712 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
1713
1714 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
1715
1716 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
1717
1718 * doc.c (Fsnarf_documentation): Initialize skip_file before
1719 build-files test.
1720
1721 2010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
1722
1723 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
1724 New definitions.
1725 (HAVE_TERMIO): Remove.
1726
1727 2010-08-22 Eli Zaretskii <eliz@gnu.org>
1728
1729 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
1730
1731 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
1732 for w32.
1733
1734 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
1735 it's done in nt/config.nt.
1736
1737 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
1738
1739 * unexcoff.c (report_error, make_hdr, write_segment)
1740 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
1741 Convert argument lists and prototypes to ANSI C.
1742 (make_hdr, write_segment): Remove unused variables.
1743 (unexec): Remove commented-out line. Initialize `new' to shut up
1744 compiler warnings.
1745
1746 2010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
1747
1748 Simplify termio code.
1749 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
1750 HAVE_TERMIO code is obsolete.
1751 Replace HAVE_TERMIOS conditionals with !DOS_NT.
1752 * systty.h: Do not define HAVE_TCATTR.
1753 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
1754 Do not define EMACS_HAVE_TTY_PGRP. Only define
1755 EMACS_GET_TTY_PGRP for !DOS_NT.
1756 * sysdep.c: Include sysselect.h unconditionally. Do not include
1757 sys/ioctl.h and termios.h, systty.h does it. Use
1758 HAVE_SYS_UTSNAME_H instead of USG as an include guard.
1759 (init_baud_rate): Remove HAVE_TERMIO code.
1760 (child_setup_tty): Remove HAVE_TERMIO code.
1761 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
1762 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
1763 (new_ltchars, new_tchars): Remove, unused.
1764 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
1765 code. Remove special casing for __mips__, it was a no-op. Remove
1766 HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
1767 (init_sys_modes): Remove HPUX special case.
1768 * process.c: Include stdlib.h unconditionally. Do not include
1769 fcntl.h, systty.h does it. Remove conditional code for
1770 HAVE_SERIAL, it is always true.
1771 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
1772 always true when SIGNALS_VIA_CHARACTERS is true.
1773 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
1774 !WINDOWSNT means HAVE_TERMIOS.
1775 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
1776 conditional, which is true for all HAVE_TERMIOS systems.
1777 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
1778 instead of HAVE_TERMIOS.
1779 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
1780 EMACS_HAVE_TTY_PGRP.
1781 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
1782 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
1783 anyway.
1784
1785 2010-08-21 Eli Zaretskii <eliz@gnu.org>
1786
1787 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
1788 mirroring pixel positions.
1789
1790 2010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
1791
1792 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
1793 write only.
1794 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
1795 malloc_sbrk_used, nothing uses them.
1796
1797 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
1798 defined, unconditionally defined in lisp.h.
1799
1800 * term.c: Do not include <termios.h>, systty.h does it.
1801
1802 * s/unixware.h (HAVE_TCATTR):
1803 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
1804 systty.h defines it when HAVE_TERMIOS is defined.
1805
1806 2010-08-20 Eli Zaretskii <eliz@gnu.org>
1807
1808 * dispnew.c (buffer_posn_from_coords): Fix last change for text
1809 terminals: add one-character offset for R2L lines.
1810
1811 * emacs.c <emacs_version>: Add a comment regarding
1812 msdos/mainmake.v2's dependency on the syntax of this declaration.
1813
1814 2010-08-20 Eli Zaretskii <eliz@gnu.org>
1815
1816 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
1817 position for R2L lines by mirroring the pixel position wrt the
1818 text are box. Improve commentary.
1819
1820 2010-08-20 Andreas Schwab <schwab@linux-m68k.org>
1821
1822 * image.c (imagemagick_clear_image): Remove debugging output.
1823
1824 2010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
1825
1826 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
1827 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
1828 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
1829 self-insert-face.
1830 (syms_of_cmds): Initialize the new vars.
1831
1832 2010-08-19 Jason Rumney <jasonr@gnu.org>
1833
1834 * w32menu.c (set_frame_menubar): Remove call to undefined function.
1835
1836 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
1837
1838 2010-08-19 Jan Djärv <jan.h.d@swipnet.se>
1839
1840 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
1841
1842 2010-08-18 Eli Zaretskii <eliz@gnu.org>
1843
1844 * xterm.c (x_draw_bar_cursor):
1845 * w32term.c (x_draw_bar_cursor): If the character under cursor is
1846 R2L, draw the bar cursor on its right rather than on its left.
1847
1848 2010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
1849
1850 * eval.c (Fdefmacro): Only obey one declaration.
1851
1852 * casefiddle.c (casify_region): Setup gl_state.
1853
1854 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
1855
1856 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
1857
1858 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
1859
1860 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
1861
1862 2010-08-18 David De La Harpe Golden <david@harpegolden.net>
1863
1864 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
1865 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
1866 QPRIMARY => NXPrimaryPboard.
1867 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
1868 NXPrimaryPboard => QPRIMARY.
1869 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
1870 NXSecondaryPboard = SecondarySelection.
1871 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
1872
1873 2010-08-18 Joakim Verona <joakim@verona.se>
1874
1875 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
1876 defined:
1877 (imagemagick_image_p): New function to test for ImageMagic image.
1878 (imagemagick_load): New function to load ImageMagick image.
1879 (imagemagick_load_image): New function, helper for imagemagick_load.
1880 (imagemagick-types): New function.
1881 (Qimagemagick): New Lisp_object.
1882 (imagemagick-render-type): New variable, decides which renderer to use.
1883
1884 2010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
1885
1886 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
1887 is a string.
1888
1889 2010-08-17 Jan Djärv <jan.h.d@swipnet.se>
1890
1891 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
1892 x_set_tool_bar_position handler.
1893
1894 2010-08-17 Eli Zaretskii <eliz@gnu.org>
1895
1896 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
1897 x_set_tool_bar_position handler, needed to support changes from
1898 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
1899
1900 2010-08-16 Jan Djärv <jan.h.d@swipnet.se>
1901
1902 * nsselect.m: include keyboard.h for QPRIMARY, remove its
1903 declaration (Bug#6863).
1904 (syms_of_nsselect): Don't intern QPRIMARY.
1905
1906 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
1907
1908 * keyboard.h (QPRIMARY): Declare (Bug#6864).
1909
1910 2010-08-16 Chong Yidong <cyd@stupidchicken.com>
1911
1912 * keyboard.c (command_loop_1): Avoid setting selection twice,
1913 since it's done in deactivate-mark as well.
1914 (Vselect_active_regions): Change default to t. Replace `lazy'
1915 with non-default value `only', meaning only set PRIMARY for
1916 temporarily active regions.
1917
1918 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
1919 select-active-regions.
1920
1921 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
1922
1923 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
1924 isn't a string.
1925
1926 2010-08-15 Andreas Schwab <schwab@linux-m68k.org>
1927
1928 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
1929
1930 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
1931
1932 * keyboard.c (parse_tool_bar_item): malloc buf.
1933 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
1934 new_lbl (Bug#6855).
1935
1936 2010-08-14 Eli Zaretskii <eliz@gnu.org>
1937
1938 * xterm.c (x_draw_stretch_glyph_string):
1939 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
1940 the cursor on the right edge of the stretch glyph.
1941
1942 * xdisp.c (window_box_right_offset, window_box_right):
1943 Fix commentary.
1944
1945 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
1946 direction when point is inside a run of whitespace characters.
1947
1948 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
1949
1950 2010-08-14 Jason Rumney <jasonr@gnu.org>
1951
1952 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
1953
1954 2010-08-14 Chong Yidong <cyd@stupidchicken.com>
1955
1956 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
1957
1958 2010-08-13 Jason Rumney <jasonr@gnu.org>
1959
1960 * w32menu.c (simple_dialog_show): Use unicode message box if available.
1961 (MessageBoxW_Proc): New function typedef.
1962 (unicode-message-box): New function pointer.
1963 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
1964
1965 2010-08-13 Jan Djärv <jan.h.d@swipnet.se>
1966
1967 * frame.h (Qtool_bar_position): Declare.
1968
1969 * xfns.c (Fx_create_frame): Call x_default_parameter for
1970 Qtool_bar_position.
1971
1972 2010-08-13 Eli Zaretskii <eliz@gnu.org>
1973
1974 * unexcoff.c: Remove the parts used when "emacs" is not defined.
1975 (report_error, report_error_1): Ditto.
1976 (write_segment): Remove "#if 0" unused code.
1977 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
1978 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
1979 (start_of_text): Remove unused function (was used only if NO_REMAP
1980 was NOT defined).
1981
1982 * msdos.c (IT_set_face): Fix format string to match argument
1983 types.
1984 (IT_write_glyphs, IT_note_mode_line_highlight)
1985 (IT_set_frame_parameters): Remove unused variables.
1986 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
1987 (IT_set_terminal_modes): Disambiguate expression in if clause.
1988 (Fmsdos_remember_default_colors): Return Qnil.
1989 (IT_set_frame_parameters): Add parens to disambiguate boolean
1990 expression for logging the cursor type to termscript.
1991 (keyboard_layout_list, keypad_translate_map)
1992 (grey_key_translate_map): Add braces in inner initializers.
1993 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
1994 (dos_rawgetc): Remove unused label.
1995 (XMenuActivate): Add braces to remove ambiguous `else'.
1996 (dos_ttraw): Always return a value.
1997 (spawnve): Declare.
1998 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
1999
2000 * dosfns.h (x_set_title): Declare.
2001
2002 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
2003 Remove unused variables.
2004
2005 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
2006 variables.
2007 (init_dosfns): Declare get_lim_data.
2008 (system_process_attributes): Declare Fget_internal_run_time.
2009
2010 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
2011 list to be consistent with menu.h.
2012
2013 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
2014 warnings due to mixing of "char *" and "const char *".
2015
2016 2010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
2017
2018 Introduce a new comment style "c" flag.
2019 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
2020 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
2021 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
2022 (syntax_prefix_flag_p): New function.
2023 (Fstring_to_syntax): Understand new "c" flag.
2024 (Finternal_describe_syntax_value): Recognize new flag; use the
2025 SYNTAX_FLAGS_* macros.
2026 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
2027 comment style to accomodate the new styles.
2028 (back_comment, forw_comment, Fforward_comment, scan_lists)
2029 (scan_sexps_forward): Update code to obey the new comment style flag.
2030
2031 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
2032
2033 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
2034
2035 2010-08-11 Jan Djärv <jan.h.d@swipnet.se>
2036
2037 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
2038 first.
2039 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
2040
2041 * gtkutil.h (xg_check_special_colors): Declare.
2042
2043 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
2044 (xg_create_frame_widgets): Connect theme name changes to
2045 style_changed_cb.
2046
2047 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
2048 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
2049 (x_term_init): Use char[] display_opt and name_opt instead of
2050 string literal. file is const char*.
2051
2052 * xsmfns.c (NOSPLASH_OPT): Change to char[].
2053 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
2054 props. Free them at the end.
2055
2056 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
2057
2058 * xrdb.c (get_system_app): Make path const and use char *p for
2059 non-const char.
2060
2061 * xmenu.c (Fx_popup_dialog): error_name is const char*.
2062 (xmenu_show): error parameter is const char **. pane_string is const
2063 char *.
2064 (button_names): Is const char *.
2065 (xdialog_show): error_name and pane_string is const.
2066
2067 * process.h (synch_process_death): Is const char*.
2068
2069 * w32menu.c (w32_menu_show):
2070 * nsmenu.m (ns_menu_show): error parameter is const char **.
2071
2072 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
2073 is const char **.
2074
2075 * menu.c (Fx_popup_menu): error_name is const.
2076
2077 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
2078 with unsigned char and XtPointer with void *.
2079
2080 * gtkutil.h: Replace widget_value with struct _widget_value.
2081 (enum button_type, struct _widget_value): Remove and use the one from
2082 keyboard.h.
2083
2084 * gtkutil.c (get_utf8_string): Always return an allocated string.
2085 Parameter is const.
2086 (create_dialog, xg_create_one_menuitem, create_menus)
2087 (xg_item_label_same_p, xg_update_menu_item): Free result from
2088 get_utf8_string.
2089 (xg_separator_p, xg_item_label_same_p): label is const.
2090
2091 * font.h (font_open_by_name): Make name const.
2092
2093 * font.c (font_open_by_name): Make name const.
2094
2095 * floatfns.c (matherr): Use a const char* variable for x->name.
2096
2097 * emacs.c (main): Pass char[] to putenv instead of literal.
2098
2099 * callproc.c (synch_process_death): Make const.
2100 (Fcall_process): Make signame const.
2101
2102 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
2103 (addDisplayItemWithImage): Use const char*.
2104
2105 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
2106 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
2107
2108 * nsfont.m (ns_descriptor_to_entity): Use const char*.
2109
2110 * keyboard.h (_widget_value): name, value and key are const char*.
2111
2112 * unexmacosx.c (unexec_error): Use const char *.
2113
2114 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
2115
2116 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
2117 (font_parse_name, font_open_by_name):
2118 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
2119 (font_parse_name, font_open_by_name): Remove const.
2120
2121 2010-08-09 Andreas Schwab <schwab@linux-m68k.org>
2122
2123 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
2124 definition.
2125
2126 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
2127 * m/amdx86-64.h: Likewise.
2128 * m/arm.h: Likewise.
2129 * m/hp800.h: Likewise.
2130 * m/ia64.h: Likewise.
2131 * m/ibmrs6000.h: Likewise.
2132 * m/ibms390.h: Likewise.
2133 * m/intel386.h: Likewise.
2134 * m/iris4d.h: Likewise.
2135 * m/m68k.h: Likewise.
2136 * m/macppc.h: Likewise.
2137 * m/mips.h: Likewise.
2138 * m/sh3.h: Likewise.
2139 * m/sparc.h: Likewise.
2140 * m/template.h: Likewise.
2141 * m/vax.h: Likewise.
2142 * m/xtensa.h: Likewise.
2143 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
2144 WORDS_BIG_ENDIAN.
2145 * lisp.h: Likewise.
2146 * md5.c: Likewise.
2147 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
2148
2149 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
2150
2151 Use const char* instead of char*.
2152 Reduce the number of warnings with -Wwrite-strings.
2153 * xrdb.c (get_environ_db, get_system_name):
2154 * unexelf.c (find_section):
2155 * term.c (string_cost, string_cost_one_line, per_line_cost)
2156 (get_named_tty, init_tty):
2157 * sysdep.c (sys_subshell):
2158 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
2159 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
2160 * search.c (Freplace_match):
2161 * process.c (Fmake_network_process, send_process, init_process):
2162 * lread.c (Fload, init_lread):
2163 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
2164 * keyboard.c (parse_tool_bar_item, struct event_head):
2165 * gtkutil.h (xg_get_font_name):
2166 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
2167 (make_widget_for_menu_item, make_menu_item, create_menus)
2168 (xg_make_tool_item):
2169 * font.c (parse_matrix, font_parse_name):
2170 * floatfns.c (rounding_driver, float_error_fn_name):
2171 * filelock.c (get_boot_time_1, lock_file_1):
2172 * fileio.c (barf_or_query_if_file_exists, check_writable):
2173 * editfns.c (get_system_name, get_operating_system_release)
2174 (Fencode_time, Fset_time_zone_rule):
2175 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
2176 * buffer.c (defvar_per_buffer): Use const.
2177
2178 2010-08-08 Kenichi Handa <handa@m17n.org>
2179
2180 * charset.c: Include <stdlib.h>.
2181 (struct charset_sort_data): New struct.
2182 (charset_compare): New function.
2183 (Fsort_charsets): New function.
2184 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
2185
2186 * coding.c (decode_coding_iso_2022): Fix checking of dimension
2187 number in CTEXT extended segment.
2188
2189 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
2190
2191 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
2192 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
2193
2194 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
2195
2196 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
2197 (Fhash_table_size): Fix typos in docstrings.
2198 (Fmake_hash_table): Doc fix.
2199
2200 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
2201
2202 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
2203 Doc fix (bug#5625).
2204
2205 2010-08-08 Ken Brown <kbrown@cornell.edu>
2206
2207 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
2208 the MSDOS definition.
2209
2210 2010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
2211
2212 Use const char* instead of char*.
2213 * xterm.c (x_create_toolkit_scroll_bar):
2214 * xfont.c (xfont_list_pattern):
2215 * xfns.c (x_default_scroll_bar_color_parameter)
2216 (xic_create_fontsetname, x_default_font_parameter)
2217 (x_screen_planes):
2218 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
2219 (store_mode_line_string, decode_mode_spec, display_string):
2220 * menu.c (digest_single_submenu):
2221 * keymap.h (initial_define_key, initial_define_lispy_key):
2222 * keymap.c (initial_define_key, initial_define_lispy_key):
2223 * image.c (image_error, image_keyword):
2224 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
2225 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
2226 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
2227 (ftfont_list, ftfont_match):
2228 * frame.c (frame_parm_table):
2229 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
2230 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
2231 (font_add_log, font_deferred_log):
2232 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
2233 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
2234 (font_add_log, font_deferred_log):
2235 * emacs.c (argmatch):
2236 * dispextern.h (struct it):
2237 * coding.c (ENCODE_DESIGNATION):
2238 * charset.c (define_charset_internal): Use const.
2239
2240 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
2241
2242 * xrdb.c: Remove include guard.
2243 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
2244 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
2245 realloc->xrealloc instead of using #defines.
2246
2247 2010-08-08 Eli Zaretskii <eliz@gnu.org>
2248
2249 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
2250 * editfns.c (Fline_beginning_position, Fline_end_position):
2251 State in the doc strings that start and end of line are in the
2252 logical order.
2253
2254 * xdisp.c (display_line): Move the handling of overlay arrow after
2255 the call to find_row_edges. (Bug#6699)
2256
2257 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
2258
2259 * keyboard.c (command_loop_1):
2260 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
2261
2262 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
2263
2264 * insdel.c (prepare_to_modify_buffer): Save active region text to
2265 Vsaved_region_selection.
2266
2267 * xselect.c (QPRIMARY): Move to keyboard.c.
2268
2269 * keyboard.c (Vselect_active_regions): Move from simple.el.
2270 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
2271 (command_loop_1): Set window selection prior to deactivating the mark.
2272
2273 2010-08-07 Juanma Barranquero <lekktu@gmail.com>
2274
2275 * alloc.c (lisp_malloc):
2276 * buffer.c (set_buffer_internal, set_buffer_internal_1):
2277 * charset.h (emacs_mule_charset):
2278 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
2279 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
2280 (bitch_at_user):
2281 * lisp.h (Fcheck_coding_system, Fget_text_property)
2282 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
2283 Remove duplicate declarations.
2284
2285 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
2286
2287 * process.c: Simplify include logic.
2288
2289 * keyboard.h (quit_char): Add declaration.
2290 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
2291 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
2292 Add declarations.
2293 * sysdep.c:
2294 * w32.c: Remove the above declarations.
2295
2296 Remove extern declarations in .c files, .h files have them.
2297 * xterm.c:
2298 * xdisp.c:
2299 * msdos.c:
2300 * image.c:
2301 * gtkutil.c:
2302 * fileio.c:
2303 * eval.c: Remove declarations.
2304
2305 * frame.c (frame_params): Make const.
2306
2307 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
2308
2309 * emacs.c (emacs_copyright, emacs_version): Make static.
2310 (Vinitial_window_system, Vauto_save_list_file_name)
2311 (Vinhibit_redisplay): Remove declarations.
2312 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
2313 for AIX.
2314
2315 Use const for some arrays and functions.
2316 * xterm.h (xg_set_icon_from_xpm_data):
2317 * xfns.c (xg_set_icon_from_xpm_data):
2318 * term.c (fkeys):
2319 * keyboard.c (lispy_accent_keys, lispy_function_keys)
2320 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
2321 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
2322 (frame.c frame_parms):
2323 * emacs-icon.h (gnu_xpm_bits):
2324 * callint.c (callint_argfuns): Use const.
2325
2326 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
2327
2328 * sysdep.c: Move include term.h last of includes (Bug#6812).
2329
2330 2010-08-06 Eli Zaretskii <eliz@gnu.org>
2331
2332 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
2333
2334 * msdos.c (IT_display_cursor): Log cursor position on termscript.
2335
2336 * .gdbinit (pgx): Display the avoid_cursor_p flag.
2337
2338 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
2339
2340 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
2341
2342 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
2343
2344 * xterm.h (x_get_focus_frame): Declare.
2345
2346 * keyboard.h (poll_for_input_1): Unconditionally declare.
2347
2348 * nsterm.h (x_set_menu_bar_lines): Declare.
2349
2350 * window.c: Don't include menu.h, it depends on lots of other .h-files.
2351
2352 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
2353
2354 * window.c: Include menu.h.
2355
2356 * unexmacosx.c (print_region_list, print_regions)
2357 (build_region_list, find_emacs_zone_regions)
2358 (unexec_regions_merge, read_load_commands, dump_it)
2359 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
2360
2361 * term.c: Check HAVE_SYS_IOCTL_H.
2362
2363 * sysdep.c: Check HAVE_TERM_H.
2364
2365 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
2366
2367 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
2368 (ns_ring_bell, ns_defined_color, hide_hourglass)
2369 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
2370 Convert to ANSI C prototypes.
2371 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
2372 before code.
2373
2374 * nsterm.h : Include sysselect.h.
2375 (x_sync, x_get_focus_frame, x_set_mouse_position)
2376 (x_set_mouse_pixel_position, x_make_frame_visible)
2377 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
2378 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
2379 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
2380 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
2381 Declare.
2382
2383 * nsmenu.m (popup_activated, name_is_separator)
2384 (syms_of_nsmenu): Convert to ANSI C prototypes.
2385 (runMenuAt): Prototypes and move declarations before code.
2386
2387 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
2388
2389 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
2390 prototypes.
2391
2392 * nsfns.m (have_menus_p, ns_display_info_for_name)
2393 (x_set_cursor_type, ns_appkit_version_str)
2394 (ns_appkit_version_int, ns_do_applescript)
2395 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
2396 (syms_of_nsfns): Convert to ANSI C prototypes.
2397
2398 * menu.h (x_set_menu_bar_line): Declare.
2399 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
2400
2401 * lisp.h (fmod_float): Declare.
2402
2403 * image.c (xpm_scan, xpm_make_color_table_v)
2404 (xpm_put_color_table_v, xpm_get_color_table_v)
2405 (xpm_make_color_table_h, xpm_put_color_table_h)
2406 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
2407 (xpm_load): Convert to ANSI C prototypes.
2408
2409 * emacs.c: Include nsterm.h if HAVE_NS.
2410
2411 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
2412
2413 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
2414
2415 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
2416 subprocesses, only MSDOS does not define HAVE_SOCKETS.
2417 (socket_options): Use const char* for name.
2418
2419 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
2420
2421 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
2422
2423 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
2424 Don't declare xmalloc_widget_value and digest_single_submenu.
2425
2426 * w32font.c (Qlatin): Remove declaration.
2427
2428 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
2429
2430 * dired.c (compile_pattern): Restore declaration.
2431
2432 2010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
2433
2434 Remove extern declarations in .c files, .h files have them.
2435 * data.c:
2436 * dired.c:
2437 * editfns.c:
2438 * filelock.c:
2439 * fns.c:
2440 * font.c:
2441 * fontset.c:
2442 * frame.c:
2443 * fringe.c:
2444 * ftfont.c:
2445 * gtkutil.c:
2446 * indent.c:
2447 * keyboard.c:
2448 * keymap.c:
2449 * lread.c:
2450 * menu.c:
2451 * print.c:
2452 * search.c:
2453 * sound.c:
2454 * window.c:
2455 * xdisp.c:
2456 * xfaces.c:
2457 * xfns.c:
2458 * xfont.c:
2459 * xftfont.c:
2460 * xmenu.c:
2461 * xterm.c: Remove declarations.
2462
2463 Cleanup syssignal.h.
2464 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
2465 (main_thread): Move down to remove #ifdef.
2466 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
2467 Remove conditional definition following unconditional ones.
2468
2469 * lisp.h: Remove HAVE_SHM code, unused.
2470 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
2471 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
2472 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
2473 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
2474 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
2475 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
2476 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
2477 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
2478 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
2479 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
2480 (Qwindow_scroll_functions, Vafter_load_alist)
2481 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
2482 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
2483 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
2484 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
2485 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
2486 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
2487 (initial_argv, last_nonmenu_event, load_in_progress)
2488 (noninteractive_need_newline, scroll_margin): Add declarations.
2489
2490 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
2491 declarations, menu.h has them.
2492 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
2493 (Vinput_method_function, Qinput_method_function)
2494 (Qevent_symbol_element_mask, last_event_timestamp):
2495 * dispextern.h (Voverflow_newline_into_fringe):
2496 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
2497 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
2498 (syms_of_w32font, syms_of_nsfont):
2499 * fontset.h (find_font_encoding, Qlatin):
2500 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
2501 (Vtool_bar_mode, set_frame_menubar):
2502 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
2503 * xterm.h (Qx_gtk_map_stock):
2504 * keymap.h (meta_prefix_char): Add declarations.
2505
2506 * term.c: Remove dead code.
2507
2508 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
2509 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
2510 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
2511 which is what was there before BSD_PGRPS was removed.
2512
2513 2010-08-05 Eli Zaretskii <eliz@gnu.org>
2514
2515 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
2516
2517 * unexcoff.c: Renamed from unexec.c.
2518
2519 2010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
2520
2521 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
2522
2523 2010-08-03 Johan Bockgård <bojohan@gnu.org>
2524
2525 * data.c (Flocal_variable_p): Handle variable aliases correctly.
2526 (Bug#6744)
2527
2528 2010-08-02 Jan Djärv <jan.h.d@swipnet.se>
2529
2530 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
2531 to TRUE if depth of screen is < 16.
2532
2533 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
2534 USE_GTK_TOOLTIP.
2535 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
2536 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
2537 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
2538 USE_GTK_TOOLTIP.
2539 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
2540
2541 * xterm.h (USE_GTK_TOOLTIP): New define.
2542 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
2543
2544 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
2545 to Control-D (Bug#6771).
2546
2547 2010-08-02 Juanma Barranquero <lekktu@gmail.com>
2548
2549 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
2550 Wording by Drew Adams <drew.adams@oracle.com>.
2551
2552 2010-08-01 Jan Djärv <jan.h.d@swipnet.se>
2553
2554 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
2555 ttip_lbl.
2556
2557 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
2558 calling gtk_widget_queue_draw.
2559 (x_free_frame_resources): Call xg_free_frame_widgets.
2560
2561 * xfns.c (x_gtk_use_system_tooltips): New variable.
2562 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
2563 new gtkutil tooltip functions to show the tooltip.
2564 (Fx_hide_tip): Call xg_hide_tooltip.
2565 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
2566
2567 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
2568 (xg_show_tooltip, xg_hide_tooltip): Declare.
2569
2570 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
2571 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
2572 New functions.
2573 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
2574 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
2575 Remove code that is commented out.
2576
2577 2010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
2578
2579 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
2580
2581 2010-07-31 Chong Yidong <cyd@stupidchicken.com>
2582
2583 * xselect.c (x_own_selection): Use list4.
2584
2585 2010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
2586
2587 * buffer.c (Qwindow): Do not define, already defined in data.c.
2588 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
2589
2590 2010-07-29 Chad Brown <yandros@mit.edu>
2591
2592 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
2593 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
2594 * config.in: Undef HAVE_DIRENT_H.
2595 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
2596 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
2597
2598 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
2599
2600 Rename s/usg5-4.h -> s/usg5-4-common.h.
2601 * s/usg5-4.h: Rename file to ...
2602 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
2603 * s/unixware.h:
2604 * s/sol2-6.h:
2605 * s/irix6-5.h: Update includes accordingly.
2606
2607 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
2608
2609 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
2610
2611 * xterm.h (struct x_output): Add toolbar_top_height,
2612 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
2613 Remove toolbar_height.
2614 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
2615 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
2616 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
2617 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
2618
2619 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
2620
2621 * xfns.c (x_set_tool_bar_position): New function.
2622 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
2623 (x_frame_parm_handlers): Add x_set_tool_bar_position.
2624 (syms_of_xfns): If USE_GTK, provide move-toolbar.
2625
2626 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
2627 and FRAME_TOOLBAR_LEFT_WIDTH.
2628
2629 * gtkutil.h (xg_change_toolbar_position): Declare.
2630
2631 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
2632 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
2633 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
2634 (xg_create_frame_widgets): Create a hobox for placing widgets
2635 vertically. Use gtk_box_pack_start.
2636 (xg_height_or_width_changed): Renamed from xg_height_changed.
2637 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
2638 (xg_update_frame_menubar, free_frame_menubar): Change to
2639 xg_height_or_width_changed.
2640 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
2641 size correctly. Remove hardcoded 4, instead use handlebox size -
2642 toolbar size.
2643 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
2644 size correctly. Use handlebox size + toolbar size as additional size.
2645 (xg_pack_tool_bar): POS is a new parameter.
2646 Set orientation of tool bar based on pos.
2647 Only make handlebox_widget if NULL.
2648 Check if tool bar goes to vbox or hbox depending on pos.
2649 (xg_update_tool_bar_sizes): New function.
2650 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
2651 height, call xg_update_tool_bar_sizes instead.
2652 (free_frame_tool_bar): Remove from hbox or vbox depending on
2653 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
2654 (xg_change_toolbar_position): New function.
2655
2656 * frame.h (struct frame): Add tool_bar_position.
2657 (Qbottom): Declare.
2658
2659 * frame.c (Qtool_bar_position): New variable.
2660 (make_frame): Set tool_bar_position to Qtop.
2661 (frame_parms): Add tool-bar-position.
2662 (x_report_frame_params): Store tool_bar_position.
2663 (x_set_fringe_width): Reset wm size hint after fringe changes.
2664
2665 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
2666
2667 Make lisp_time_argument declaration work on all systems.
2668 * lisp.h (lisp_time_argument): Move declaration ...
2669 * systime.h (lisp_time_argument): ... here
2670 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
2671
2672 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
2673
2674 * vm-limit.c (POINTER): Add typedef for it.
2675 (start_of_data): Change return type from POINTER to char *.
2676
2677 * frame.h (Qtty_color_mode): Move declaration out of ifdef
2678 HAVE_WINDOW_SYSTEM.
2679
2680 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
2681
2682 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
2683 Remove reference to __osf__, unused.
2684
2685 * mem-limits.h: Remove duplicated includes.
2686 (NULL): Remove definition, unused.
2687 (POINTER): Remove definition.
2688 (start_of_data): Use char* in prototype, as the function
2689 definition does.
2690
2691 Remove extern declarations from .c files, and them to .h files.
2692 * keyboard.h (Qhelp_echo, waiting_for_input)
2693 (input_available_clear_time, ignore_mouse_drag_p)
2694 (Vdouble_click_time, real_this_command, Vthis_original_command):
2695 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
2696 (Voverriding_local_map_menu_flag):
2697 * lisp.h (Qinteractive_form, use_file_dialog)
2698 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
2699 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
2700 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
2701 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
2702 (Qfunction, debug_on_next_call, Qfield)
2703 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
2704 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
2705 (Qfile_directory_p, Qinsert_file_contents)
2706 (Qcompletion_ignore_case, Qcompletion_ignore_case)
2707 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
2708 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
2709 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
2710 (Qminibuffer_prompt)
2711 (Vtemporary_file_directory,char_ins_del_vector, Qface):
2712 * xterm.h (gray_bitmap_width, gray_bitmap_height)
2713 (gray_bitmap_bits, xic_create_fontsetname):
2714 * coding.h (Vtranslation_table_for_input): Add extern declarations.
2715
2716 * xsmfns.c (Vuser_login_name):
2717 * xrdb.c (Vdouble_click_time):
2718 * xfaces.c (xic_create_fontsetname):
2719 * w32select.c (waiting_for_input):
2720 * print.c (minibuffer_auto_raise):
2721 * msdos.c (Qhelp_echo):
2722 * macros.c (real_this_command):
2723 * keymap.c (Voverriding_local_map):
2724 * xterm.c (poll_for_input_1, gray_bitmap_width)
2725 (gray_bitmap_height, gray_bitmap_bits;
2726 * xmenu.c ( Voverriding_local_map)
2727 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
2728 (use_file_dialog, Xt_app_con):
2729 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
2730 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
2731 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
2732 (Qtool_bar_lines, ignore_mouse_drag_p):
2733 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
2734 (Qrear_nonsticky, nconc2):
2735 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
2736 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
2737 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
2738 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
2739 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
2740 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
2741 (gc_in_progress):
2742 * doc.c (Voverriding_local_map, Qremap):
2743 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
2744 (Vcompletion_regexp_list):
2745 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
2746 (Qcompletion_ignore_case):
2747 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
2748 (Vhistory_length, Vthis_original_command, real_this_command)
2749 (Qface, Qminibuffer_prompt, history_delete_duplicates):
2750 * image.c (Qrisky_local_variable):
2751 * fontset.c (QCname):
2752 * fns.c (minibuffer_auto_raise, QCname):
2753 * dispnew.c (char_ins_del_cost):
2754 * composite.c (font_fill_lglyph_metrics):
2755 * cmds.c (Qface, Vtranslation_table_for_input):
2756 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
2757 * ccl.c (charset_unicode):
2758 * callproc.c (Vtemporary_file_directory):
2759 * buffer.c (emacs_strerror): Remove extern declarations.
2760
2761 * data.c (Qwindow): Make non-static, used from other files too.
2762 * frame.c (validate_x_resource_name): Remove shadow definition for i.
2763
2764 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
2765 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
2766 * s/usg5-4.h (COFF):
2767 * s/template.h:
2768 * s/msdos.h (COFF, NO_REMAP):
2769 * s/ms-w32.h (NO_REMAP):
2770 * s/hpux10-20.h (NO_REMAP):
2771 * m/sparc.h (SEGMENT_MASK):
2772 * m/m68k.h (NO_REMAP):
2773 * m/intel386.h (SEGMENT_MASK):
2774 * m/arm.h (NO_REMAP):
2775 * m/alpha.h (COFF):
2776 * m/template.h: Remove references to unused defines.
2777
2778 2010-07-28 Jan Djärv <jan.h.d@swipnet.se>
2779
2780 * xsettings.c (Ftool_bar_get_system_style): Also check for
2781 Qtext_image_horiz.
2782
2783 * xdisp.c (Qtext_image_horiz): Define.
2784 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
2785 to documentation of tool-bar-style.
2786
2787 * lisp.h (Qtext_image_horiz): Declare.
2788
2789 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
2790 style text_image_horiz.
2791
2792 2010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2793
2794 * emacs.c (Fkill_emacs): Remove return statement.
2795
2796 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
2797 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
2798 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
2799 local extern declarations.
2800
2801 * xmenu.c: Do not included lwlib.h, not needed.
2802
2803 * m/iris4d.h (XUINT, XSET): Remove, not needed.
2804
2805 * process.c: Move definitions earlier to minimize #ifdefs.
2806
2807 * xterm.h (x_get_customization_string, x_load_resources)
2808 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
2809 (x_check_errors, x_property_data_to_lisp, defined_color)
2810 (xic_set_xfontset, x_defined_color): Use const.
2811
2812 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
2813 (x_text_icon, x_check_errors, x_connection_closed): Use const.
2814
2815 * xselect.c (selection_data_to_lisp_data)
2816 (x_property_data_to_lisp):
2817 * xrdb.c (x_get_string_resource, file_p)
2818 (x_get_customization_string, magic_file_p, search_magic_path)
2819 (get_system_app, get_user_app, x_load_resources, x_get_resource)
2820 (x_get_string_resource): Use const.
2821
2822 * xfns.c: Include xlwmenu.h when USE_LUCID.
2823 (x_defined_color, xic_set_xfontset): Use const.
2824 (Fx_hide_tip): Remove local extern declaration.
2825
2826 * xfaces.c (Qmouse_face): Remove declaration.
2827 (face_color_gray_p, tty_defined_color, defined_color)
2828 (face_color_gray_p, face_color_supported_p): Add const.
2829
2830 * xdisp.c (do_mouse_tracking): Remove declaration.
2831 (add_to_log): Use const.
2832
2833 * minibuf.c (Qmouse_face): Remove declaration.
2834
2835 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
2836
2837 * keyboard.h (do_mouse_tracking): Add declaration.
2838
2839 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
2840 (QCdata, QCtype, Qcenter): Remove declarations.
2841
2842 * frame.c (x_get_resource_string, x_get_string_resource)
2843 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
2844 (x_default_parameter): Use const.
2845
2846 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
2847 (QCheight, QCsize, QCname): Remove declarations.
2848
2849 * emacs.c (main): Remove local extern declaration.
2850
2851 * editfns.c (region_limit, syms_of_editfns): Remove local extern
2852 declarations.
2853
2854 * dispnew.c: Remove duplicate #include <unistd.h>.
2855 (update_window, update_frame_1, init_display): Remove local extern
2856 declarations.
2857
2858 * dispextern.h (add_to_log): Remove declaration.
2859 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
2860 (x_frame_get_and_record_arg, x_default_parameter): Add const.
2861
2862 * dired.c (scmp): Add const.
2863 (directory_files_internal): Remove local extern declaration.
2864
2865 * data.c (Finteractive_form): Use const.
2866
2867 * composite.c (syms_of_composite): Remove local extern declarations.
2868
2869 * charset.c (add_to_log): Remove declaration.
2870
2871 * character.c (strwidth, parse_str_to_multibyte): Add const.
2872
2873 * character.h (strwidth, parse_str_to_multibyte): Likewise.
2874
2875 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
2876
2877 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
2878 (Lisp_Subr): Make doc and intspec constant.
2879 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
2880 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
2881 (QCheight, QCsize, QCname, QCwidth, QCforeground)
2882 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
2883 (display_arg): Add declarations.
2884
2885 2010-07-27 Christoph Scholtes <cschol2112@gmail.com>
2886
2887 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
2888
2889 * window.c (Fwindow_height): Doc fix (bug#6518).
2890
2891 2010-07-27 Juanma Barranquero <lekktu@gmail.com>
2892
2893 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
2894
2895 2010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
2896
2897 * keyboard.c (Ftop_level, Fexit_recursive_edit)
2898 (Fabort_recursive_edit): Remove return statements in NO_RETURN
2899 functions.
2900
2901 * frame.h (Qtty_color_mode): Add declaration.
2902
2903 * lisp.h (Ftop_level, Fexit_recursive_edit)
2904 (Fabort_recursive_edit): Mark as NO_RETURN.
2905
2906 2010-07-26 Kenichi Handa <handa@m17n.org>
2907
2908 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
2909 number of glyphs gets smaller than the original length. (Bug#6621)
2910
2911 2010-07-26 Juanma Barranquero <lekktu@gmail.com>
2912
2913 * lread.c (unreadpure, mapatoms_1): Make static.
2914
2915 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
2916
2917 * terminfo.c (tparam): Fix prototype of tparm.
2918
2919 2010-07-25 Andreas Schwab <schwab@linux-m68k.org>
2920
2921 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
2922 find start of text segment.
2923 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
2924 is defined.
2925
2926 * callproc.c (set_initial_environment): Avoid unbalanced braces.
2927
2928 2010-07-25 Ken Brown <kbrown@cornell.edu>
2929
2930 * vm-limit.c (check_memory_limits): Fix previous change;
2931 accidentally reverted an earlier change.
2932
2933 2010-07-25 Ken Brown <kbrown@cornell.edu>
2934
2935 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
2936 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
2937
2938 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
2939
2940 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
2941 * dired.c (opendir, readdir): Fix prototypes.
2942 * editfns.c (w32_get_internal_run_time): Fix prototypes.
2943 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
2944 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
2945 (telldir): Remove declaration.
2946 * ralloc.c (real_morecore, __morecore): Fix prototypes.
2947 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
2948 * syssignal.h (strsignal): Fix prototype.
2949 * term.c (tparam): Fix prototype.
2950 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
2951 (term_get_fkeys): Set inside "#ifndef DOS_NT".
2952 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
2953 and __morecore.
2954 * w32gui.h (XParseGeometry): Fix prototype.
2955 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
2956 * w32term.c (my_set_focus): Declare inside #if 0.
2957 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
2958 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
2959 (drain_message_queue, get_next_msg, post_msg, parse_button)
2960 (ClipboardSequence_Proc): Fix prototypes.
2961 (wait_for_sync): Remove declaration.
2962
2963 2010-07-24 Juanma Barranquero <lekktu@gmail.com>
2964
2965 * w32fns.c (w32_to_x_color): Remove, unused.
2966
2967 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
2968
2969 * lisp.h: Remove leftover P_.
2970
2971 2010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
2972
2973 * ecrt0.c, unexalpha.c: Remove files, unused.
2974
2975 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
2976
2977 * cmds.c (internal_self_insert): Make static.
2978 * lisp.h (internal_self_insert): Remove declaration.
2979
2980 2010-07-23 Juanma Barranquero <lekktu@gmail.com>
2981
2982 * alloc.c (free_float):
2983 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
2984 * frame.c (delete_frame_handler):
2985 * ralloc.c (reorder_bloc):
2986 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
2987 Remove unused static functions.
2988
2989 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
2990 it is called only from NS code.
2991
2992 * w32term.c (my_set_focus): #ifdef away; it is called only from
2993 "#ifdef 0" code.
2994
2995 * w32fns.c (x_edge_detection):
2996 * xfaces.c (may_use_scalable_font_p):
2997 Remove obsolete static declarations.
2998
2999 2010-07-20 Juanma Barranquero <lekktu@gmail.com>
3000
3001 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
3002 (emacs_blocked_realloc, uninterrupt_malloc):
3003 * fringe.c (w32_reset_fringes):
3004 * image.c (convert_mono_to_color_image, lookup_rgb_color)
3005 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
3006 * sound.c (be2hs, do_play_sound):
3007 * vm-limit.c (get_lim_data, ret_lim_data):
3008 * w32term.c (x_free_frame_resources):
3009 * xfaces.c (x_create_gc, x_free_gc):
3010 Convert definitions to standard C.
3011
3012 2010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
3013
3014 * eval.c (Feval, Ffuncall): Use the new names.
3015
3016 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
3017 (DEFUN): Add braces around the union initialisation and use ## to
3018 specify the right union alternative and avoid a cast.
3019
3020 2010-07-18 Juanma Barranquero <lekktu@gmail.com>
3021
3022 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
3023
3024 2010-07-17 Chong Yidong <cyd@stupidchicken.com>
3025
3026 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
3027
3028 2010-07-17 Jan Djärv <jan.h.d@swipnet.se>
3029
3030 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
3031 is related to the menu bar (Bug#6499).
3032 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
3033
3034 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
3035
3036 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
3037
3038 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
3039
3040 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
3041 i.e. don't put back ButtonRelease (Bug#6608).
3042
3043 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
3044 instead of Window. Call xg_event_is_for_menubar when
3045 USE_GTK (Bug#6499).
3046
3047 * gtkutil.h (xg_event_is_for_menubar): Declare.
3048
3049 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
3050
3051 2010-07-16 Eli Zaretskii <eliz@gnu.org>
3052
3053 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
3054 when it's the same as the old foreground. (Bug#6609)
3055
3056 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
3057
3058 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
3059 widget is non-null (Bug#6645).
3060
3061 2010-07-15 Andreas Schwab <schwab@linux-m68k.org>
3062
3063 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
3064 Convert old-style definition.
3065
3066 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
3067 timestamp argument.
3068
3069 2010-07-15 Eli Zaretskii <eliz@gnu.org>
3070
3071 * fringe.c (update_window_fringes): Restore mistakenly reverted
3072 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
3073
3074 2010-07-14 Jan Djärv <jan.h.d@swipnet.se>
3075
3076 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
3077 (SET_SAVED_KEY_EVENT): Remove (not used).
3078 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
3079 remove size parameter.
3080 (handle_one_xevent): Check popup_activated () for menu for Xt also.
3081 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
3082 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
3083 ButtonRelease.
3084 (x_set_window_size_1): scroll_bar_actual_width is always
3085 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
3086
3087 * xdisp.c (pending_menu_activation): Remove extern declaration.
3088 (prepare_menu_bars): Remove setting of pending_menu_activation.
3089
3090 * xmenu.c (pending_menu_activation): Remove.
3091 (x_activate_menubar): Set popup_activated_flag for Xt also.
3092 Remove setting of pending_menu_activation.
3093 (set_frame_menubar): Remove check of pending_menu_activation.
3094 Declare menubar_size before code. Correct spelling in comment.
3095
3096 2010-07-14 Kenichi Handa <handa@m17n.org>
3097
3098 * font.c (font_open_entity): Cancel previous change.
3099 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
3100
3101 2010-07-13 Eli Zaretskii <eliz@gnu.org>
3102
3103 Remove subprocesses #ifdefs.
3104 * process.c <inhibit_sentinels>: Move to the common part.
3105 (Fwaiting_for_user_input_p): Move to the common part; return nil
3106 if async subprocesses aren't supported.
3107 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
3108 MS-DOS. Remove "#ifdef subprocesses".
3109 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
3110 (gettimeofday): Remove "#ifdef subprocesses".
3111 (wait_without_blocking): Remove function.
3112 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
3113 Remove "#ifdef subprocesses".
3114 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
3115 compiled on MS-DOS.
3116 * callproc.c (Fcall_process) [!MSDOS]: Don't call
3117 wait_for_termination on MS-DOS.
3118 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
3119 initialization of inhibit_sentinels.
3120 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
3121 subprocesses" conditional.
3122 * callproc.c (Fcall_process) [!subprocesses]: Don't call
3123 wait_for_termination, since `buffer' cannot be an integer when
3124 async subprocesses are not supported
3125 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
3126 for ifdefing away the call to Fprocess_status.
3127
3128 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
3129 away the entire body of the function.
3130
3131 2010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
3132
3133 Remove subprocesses #ifdefs from term.c.
3134 * process.c (add_keyboard_wait_descriptor)
3135 (delete_keyboard_wait_descriptor): Move to common section, do
3136 nothing when subprocesses is not defined.
3137 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
3138 Remove subprocesses #ifdefs.
3139
3140 Convert maybe_fatal to standard C.
3141 * lisp.h (verror): Declare.
3142 * eval.c (verror): New function containing the code from ...
3143 (error): ... this. Call verror.
3144 * term.c (vfatal): New function containing the code from ...
3145 (fatal): ... this. Call vfatal.
3146 (maybe_fatal): Convert to standard C, use variable number of
3147 arguments. Declare as non-return.
3148 (init_tty): Fix maybe_fatal call.
3149
3150 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
3151
3152 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
3153 (_scroll_bar_note_movement): Convert definitions to standard C.
3154 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
3155 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
3156
3157 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
3158
3159 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
3160 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
3161 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
3162 (xaw_jump_callback, xaw_scroll_callback)
3163 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
3164 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
3165 definitions to standard C.
3166 * xmenu.c (menubar_id_to_frame, popup_get_selection)
3167 (popup_activate_callback, popup_deactivate_callback)
3168 (menu_highlight_callback, menubar_selection_callback)
3169 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
3170 (free_frame_menubar, popup_selection_callback, as)
3171 (create_and_show_popup_menu, dialog_selection_callback)
3172 (create_and_show_dialog):
3173 * xfns.c (hack_wm_protocols, x_window):
3174 * xfaces.c (x_update_menu_appearance):
3175 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
3176 (char_to_pixel_size, round_size_to_char, get_wm_shell)
3177 (set_frame_size, update_wm_hints, setup_frame_gcs)
3178 (update_various_frame_slots, update_from_various_frame_slots)
3179 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
3180 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
3181 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
3182
3183 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
3184
3185 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
3186
3187 2010-07-12 Eli Zaretskii <eliz@gnu.org>
3188
3189 * process.c (setup_process_coding_systems): Move to the part
3190 shared by non-subprocesses systems, and make its body empty when
3191 subprocesses is not defined.
3192 (close_process_descs): Move to the part shared by non-subprocesses
3193 systems.
3194 (wait_reading_process_output) [!subprocesses]: Convert arg list to
3195 ANSI C.
3196
3197 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
3198
3199 * editfns.c (transpose_markers): Convert old-style definition.
3200 * emacs.c (abort, shut_down_emacs, fixup_locale)
3201 (synchronize_system_time_locale)
3202 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
3203 * floatfns.c (extract_float, matherr, init_floatfns)
3204 (syms_of_floatfns): Likewise.
3205 * fns.c (make_hash_table): Likewise.
3206 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
3207 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
3208 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
3209 (ftfont_variation_glyphs): Likewise.
3210 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
3211 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
3212 * lread.c (read_filtered_event): Likewise.
3213 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
3214 * process.c (wait_reading_process_output): Likewise.
3215 * scroll.c (do_line_insertion_deletion_costs): Likewise.
3216 * search.c (search_buffer, boyer_moore): Likewise.
3217 * syntax.c (scan_sexps_forward): Likewise.
3218 * xdisp.c (try_scrolling): Likewise.
3219 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
3220 (face_at_string_position): Likewise.
3221 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
3222 * xselect.c (x_get_window_property, receive_incremental_selection)
3223 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
3224 Likewise.
3225 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
3226
3227 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
3228
3229 * callproc.c (child_setup): Remove subprocesses conditional.
3230 Remove code dealing with SET_EMACS_PRIORITY, unused.
3231
3232 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
3233 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
3234
3235 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
3236 (__do_global_dtors, __main): Use void in definition.
3237 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
3238 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
3239 the only users from ...
3240 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
3241 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
3242 (HAVE_VOLATILE): Remove, unused.
3243
3244 Convert more function definitions to standard C.
3245 * xdisp.c (window_box_edges, handle_single_display_spec)
3246 (display_string): Convert definition to standard C.
3247 * scroll.c (do_direct_scrolling, scrolling_1):
3248 * dispnew.c (allocate_matrices_for_frame_redisplay)
3249 (mirrored_line_dance):
3250 * coding.c (code_convert_string):
3251 * charset.c (map_charset_chars):
3252 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
3253 (Fregister_ccl_program, Fregister_code_conversion_map):
3254 * keyboard.c (kbd_buffer_nr_stored): Likewise.
3255 (head_table): Make static and const.
3256
3257 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
3258
3259 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
3260 (PROFILING_LDFLAGS): Set from substitution.
3261 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
3262 CFLAGS last.
3263
3264 2010-07-12 Kenichi Handa <handa@m17n.org>
3265
3266 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
3267 (shortlisp): Likewise.
3268
3269 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
3270
3271 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
3272 of FONT_ENTITY_INDEX.
3273 (Ffont_get): If KEY is :otf and the font-object doesn't have the
3274 property, get the property value dynamically.
3275 (Ffont_put): Accept font-entity and font-object too.
3276 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
3277 return value changed.
3278 (syms_of_font): Adjusted for the above change.
3279
3280 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
3281
3282 * blockinput.h: Remove obsolete comment.
3283
3284 * lisp.h: Include <stddef.h>.
3285 (OFFSETOF): Don't define.
3286 (VECSIZE): Use offsetof instead of OFFSETOF.
3287 (PSEUDOVECSIZE): Likewise.
3288 * process.c (conv_sockaddr_to_lisp): Likewise.
3289 * alloc.c: Don't include <stddef.h>.
3290 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
3291
3292 * process.c: Remove obsolete comment.
3293
3294 2010-07-11 Chong Yidong <cyd@stupidchicken.com>
3295
3296 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
3297
3298 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
3299
3300 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
3301 index, rindex.
3302 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
3303 * editfns.c (Fuser_full_name, Fformat): Likewise.
3304 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
3305 * fileio.c (Ffile_symlink_p): Likewise.
3306 * filelock.c (current_lock_owner): Likewise.
3307 * font.c (font_parse_name, font_parse_family_registry): Likewise.
3308 * fontset.c (fontset_pattern_regexp): Likewise.
3309 * lread.c (read1): Likewise.
3310 * sysdep.c (init_system_name): Likewise.
3311 * xfns.c (select_visual): Likewise.
3312 * s/hpux10-20.h (index, rindex): Don't define.
3313 * s/ms-w32.h (index): Likewise.
3314 * s/usg5-4.h: Likewise.
3315
3316 * callproc.c (relocate_fd): Use F_DUPFD if defined.
3317
3318 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
3319 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
3320 (egetenv): Likewise.
3321 * doprnt.c (doprnt): Likewise.
3322 * editfns.c (set_time_zone_rule, format2): Likewise.
3323 * emacs.c (decode_env_path): Likewise.
3324 * eval.c (signal_error, error): Likewise.
3325 * insdel.c (replace_range_2): Likewise.
3326 * keyboard.c (cmd_error_internal): Likewise.
3327 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
3328 * print.c (write_string, write_string_1, print_error_message):
3329 Likewise.
3330 * vm-limit.c (warn_function, memory_warnings): Likewise.
3331 * xdisp.c (message1, message1_nolog, message_with_string)
3332 (vmessage, message, message_nolog): Likewise.
3333 * emacs.c: Remove duplicate declaration.
3334 * keyboard.h: Likewise.
3335 * lisp.h: Update prototypes.
3336
3337 * eval.c: Fix indentation problem.
3338
3339 * keyboard.c: Include "process.h"
3340
3341 * eval.c: Remove obsolete noinline declaration.
3342 * fns.c: Likewise.
3343
3344 2010-07-11 Ken Raeburn <raeburn@raeburn.org>
3345
3346 * doprnt.c (doprnt): Take a va_list argument instead of count and
3347 pointer.
3348 * eval.c (error): Change to a standard-C variadic function.
3349 * xdisp.c (vmessage): Renamed from message, made static, and
3350 changed to take a va_list argument.
3351 (message): New variadic wrapper.
3352 (message_nolog): Now a variadic function, calling vmessage.
3353 * lisp.h: Include stdarg.h for va_list.
3354 (doprnt, error, message, message_nolog): Decls updated.
3355
3356 2010-07-11 Eli Zaretskii <eliz@gnu.org>
3357
3358 * process.c (syms_of_process) <delete-exited-processes>: Define
3359 even if !subprocesses.
3360 (delete_exited_processes): Ditto.
3361
3362 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
3363 (delete_exited_processes): Don't define.
3364
3365 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
3366
3367 * frame.c (make_frame): Initialize menu_bar_lines and
3368 tool_bar_lines members.
3369 (make_initial_frame, make_terminal_frame): Initialize
3370 menu_bar_lines using value of menu-bar-mode.
3371
3372 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
3373
3374 2010-07-10 Eli Zaretskii <eliz@gnu.org>
3375
3376 * process.c: Reshuffle #include's. Condition some of the global
3377 and static variables on `subprocesses'.
3378 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
3379 Leave only one implementation.
3380 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
3381 (kill_buffer_processes, Flist_system_processes)
3382 (Fprocess_attributes, init_process, syms_of_process): Unify the
3383 implementations for with subprocesses and without them.
3384
3385 2010-07-09 Jan Djärv <jan.h.d@swipnet.se>
3386
3387 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
3388 correct size for Motif.
3389 (free_frame_menubar): Call x_set_window_size to update frame size.
3390
3391 * xfns.c (x_window): Set borderWidth to 0 for pane and
3392 EmacsFrame. Frame size calculation is wrong otherwise.
3393
3394 2010-07-09 Michael Albinus <michael.albinus@gmx.de>
3395
3396 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
3397 allows to suppress errors when polling in Emacs' main loop.
3398 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
3399 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
3400 (Fdbus_method_error_internal, Fdbus_send_signal)
3401 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
3402 (Fdbus_register_method): Use it. (Bug#6579)
3403
3404 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
3405
3406 * alloc.c: Convert DEFUNs to standard C.
3407 * buffer.c:
3408 * bytecode.c:
3409 * callint.c:
3410 * callproc.c:
3411 * casefiddle.c:
3412 * casetab.c:
3413 * category.c:
3414 * character.c:
3415 * charset.c:
3416 * chartab.c:
3417 * cmds.c:
3418 * coding.c:
3419 * composite.c:
3420 * data.c:
3421 * dbusbind.c:
3422 * dired.c:
3423 * dispnew.c:
3424 * doc.c:
3425 * dosfns.c:
3426 * editfns.c:
3427 * emacs.c:
3428 * eval.c:
3429 * fileio.c:
3430 * filelock.c:
3431 * floatfns.c:
3432 * fns.c:
3433 * font.c:
3434 * fontset.c:
3435 * frame.c:
3436 * fringe.c:
3437 * image.c:
3438 * indent.c:
3439 * insdel.c:
3440 * keyboard.c:
3441 * keymap.c:
3442 * lread.c:
3443 * macros.c:
3444 * marker.c:
3445 * menu.c:
3446 * minibuf.c:
3447 * msdos.c:
3448 * nsfns.m:
3449 * nsmenu.m:
3450 * nsselect.m:
3451 * print.c:
3452 * process.c:
3453 * search.c:
3454 * sound.c:
3455 * syntax.c:
3456 * term.c:
3457 * terminal.c:
3458 * textprop.c:
3459 * undo.c:
3460 * w16select.c:
3461 * w32console.c:
3462 * w32fns.c:
3463 * w32font.c:
3464 * w32menu.c:
3465 * w32proc.c:
3466 * w32select.c:
3467 * window.c:
3468 * xdisp.c:
3469 * xfaces.c:
3470 * xfns.c:
3471 * xmenu.c:
3472 * xselect.c:
3473 * xsettings.c:
3474 * xsmfns.c: Likewise.
3475
3476 2010-07-08 Eli Zaretskii <eliz@gnu.org>
3477
3478 * process.c (kbd_is_on_hold, hold_keyboard_input)
3479 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
3480
3481 2010-07-08 Jan Djärv <jan.h.d@swipnet.se>
3482
3483 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
3484 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
3485 unless USE_LUCID.
3486
3487 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
3488
3489 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
3490 declaration.
3491
3492 Clean up include guards.
3493 * tparam.c: Remove include guards for config.h, string.h and code
3494 that assumes #ifndef emacs.
3495 * termcap.c:
3496 * unexalpha.c:
3497 * sysdep.c:
3498 * filemode.c:
3499 * filelock.c:
3500 * bidi.c: Likewise.
3501
3502 Remove prefix-args.c
3503 * prefix-args.c: Remove file.
3504 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
3505 * Makefile.in (temacs${EXEEXT}): Remove references to
3506 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
3507 (mostlyclean): Remove reference to prefix-args.
3508 (prefix-args): Remove.
3509
3510 Simplify cstart_of_data, start_of_code and related code.
3511 * mem-limits.h: Remove !emacs and _LIBC conditional code.
3512 (start_of_data): Merge into start_of_data function.
3513 * sysdep.c (start_of_text): Remove. Move simplified versions of
3514 it in the only users: unexaix.c and unexec.c.
3515 (read_input_waiting): Remove local declaration of quit_char.
3516 (start, etext): Remove declarations.
3517 (start_of_data): Merge with the version in mem-limits.h and move
3518 to vm-limits.c.
3519 * vm-limit.c (start_of_data): Merged and simplified version of the
3520 code formerly in mem-limits.h and sysdep.c.
3521 * unexec.c (start): New declaration, moved from sysdep.c.
3522 (start_of_text): Simplified version of the code formerly in sysdep.c.
3523 * unexaix.c (start_of_text): Simplified version of the code
3524 formerly in sysdep.c.
3525 * m/alpha.h (HAVE_TEXT_START): Remove.
3526 (TEXT_START): Move ...
3527 * unexalpha.c (TEXT_START): ... here.
3528 * s/hpux10-20.h (TEXT_START): Remove.
3529 * s/darwin.h (TEXT_START):
3530 * m/mips.h (TEXT_START):
3531 * m/macppc.h (HAVE_TEXT_START):
3532 * m/m68k.h (TEXT_START):
3533 * m/iris4d.h (TEXT_START):
3534 * m/intel386.h (TEXT_START):
3535 * m/ibmrs6000.h (TEXT_START):
3536 * m/ia64.h (HAVE_TEXT_START):
3537 * s/msdos.h (TEXT_START): Likewise.
3538
3539 2010-07-07 Andreas Schwab <schwab@linux-m68k.org>
3540
3541 * alloc.c (overrun_check_malloc, overrun_check_realloc)
3542 (overrun_check_free, xstrdup, allocate_string)
3543 (allocate_string_data, compact_small_strings, Fmake_string)
3544 (make_unibyte_string, make_multibyte_string)
3545 (make_string_from_bytes, make_specified_string, make_float)
3546 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
3547 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
3548 memcpy, memmove, memset, memcmp.
3549 * atimer.c (start_atimer, set_alarm): Likewise.
3550 * buffer.c (clone_per_buffer_values, report_overlay_modification)
3551 (mmap_realloc, init_buffer_once): Likewise.
3552 * callint.c (Fcall_interactively): Likewise.
3553 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
3554 (getenv_internal_1): Likewise.
3555 * casefiddle.c (casify_object): Likewise.
3556 * ccl.c (ccl_driver): Likewise.
3557 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
3558 * charset.c (load_charset_map_from_file)
3559 (load_charset_map_from_file, load_charset_map_from_vector)
3560 (Fdefine_charset_internal): Likewise.
3561 * cm.c (Wcm_clear): Likewise.
3562 * coding.c (decode_eol, decode_coding_object)
3563 (Fset_coding_system_priority, make_subsidiaries): Likewise.
3564 * data.c (Faset): Likewise.
3565 * dired.c (directory_files_internal, file_name_completion_stat):
3566 Likewise.
3567 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
3568 (clear_glyph_row, copy_row_except_pointers)
3569 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
3570 (save_current_matrix, restore_current_matrix)
3571 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
3572 (mirror_line_dance, scrolling_window): Likewise.
3573 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
3574 Likewise.
3575 * doprnt.c (doprnt): Likewise.
3576 * editfns.c (Fuser_full_name, make_buffer_string_both)
3577 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
3578 * emacs.c (sort_args): Likewise.
3579 * eval.c (Fapply, Ffuncall): Likewise.
3580 * fileio.c (Ffile_name_directory, make_temp_name)
3581 (Fexpand_file_name, search_embedded_absfilename)
3582 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
3583 (auto_save_error): Likewise.
3584 * fns.c (Fstring_equal, Fcopy_sequence, concat)
3585 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
3586 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
3587 (Fmake_hash_table): Likewise.
3588 * fringe.c (Fdefine_fringe_bitmap): Likewise.
3589 * ftfont.c (ftfont_text_extents): Likewise.
3590 * getloadavg.c (getloadavg): Likewise.
3591 * image.c (define_image_type, make_image, make_image_cache)
3592 (x_create_x_image_and_pixmap, xbm_image_p)
3593 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
3594 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
3595 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
3596 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
3597 (tiff_image_p, tiff_read_from_memory, gif_image_p)
3598 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
3599 Likewise.
3600 * indent.c (scan_for_column, compute_motion): Likewise.
3601 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
3602 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
3603 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
3604 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
3605 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
3606 (store_user_signal_events, menu_bar_items, tool_bar_items)
3607 (process_tool_bar_item, append_tool_bar_item)
3608 (read_char_minibuf_menu_prompt, read_key_sequence)
3609 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
3610 Likewise.
3611 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
3612 Likewise.
3613 * lisp.h (STRING_COPYIN): Likewise.
3614 * lread.c (Fload, read1, oblookup): Likewise.
3615 * msdos.c (Frecent_doskeys): Likewise.
3616 * nsfns.m (Fx_create_frame): Likewise.
3617 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
3618 Likewise.
3619 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
3620 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
3621 Likewise.
3622 * nsmenu.m (ns_update_menubar): Likewise.
3623 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
3624 * print.c (print_unwind, printchar, strout, print_string)
3625 (print_error_message): Likewise.
3626 * process.c (conv_lisp_to_sockaddr, set_socket_option)
3627 (Fmake_network_process, Fnetwork_interface_list)
3628 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
3629 (init_process): Likewise.
3630 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
3631 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
3632 Likewise.
3633 * scroll.c (do_scrolling, do_direct_scrolling)
3634 (scrolling_max_lines_saved): Likewise.
3635 * search.c (search_buffer, wordify, Freplace_match): Likewise.
3636 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
3637 * syntax.c (skip_chars, skip_syntaxes): Likewise.
3638 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
3639 (emacs_set_tty): Likewise.
3640 * term.c (encode_terminal_code, calculate_costs)
3641 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
3642 Likewise.
3643 * termcap.c (tgetst1, gobble_line): Likewise.
3644 * termhooks.h (EVENT_INIT): Likewise.
3645 * tparam.c (tparam1): Likewise.
3646 * unexalpha.c (unexec): Likewise.
3647 * unexec.c (write_segment): Likewise.
3648 * unexmacosx.c (unexec_write_zero): Likewise.
3649 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
3650 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
3651 * w32font.c (w32font_list_family, w32font_text_extents)
3652 (w32font_list_internal, w32font_match_internal)
3653 (w32font_open_internal, compute_metrics, Fx_select_font):
3654 Likewise.
3655 * w32menu.c (set_frame_menubar, add_menu_item)
3656 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
3657 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
3658 * w32uniscribe.c (uniscribe_list_family): Likewise.
3659 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
3660 * window.c (make_window, replace_window, set_window_buffer)
3661 (Fsplit_window): Likewise.
3662 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
3663 (add_to_log, message3, x_consider_frame_title)
3664 (append_space_for_newline, extend_face_to_end_of_line)
3665 (decode_mode_spec_coding, init_glyph_string): Likewise.
3666 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
3667 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
3668 (face_attr_equal_p, make_realized_face, make_face_cache)
3669 (free_realized_faces, lookup_named_face, smaller_face)
3670 (face_with_height, lookup_derived_face)
3671 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
3672 (Finternal_set_font_selection_order, realize_default_face)
3673 (compute_char_face, face_at_buffer_position)
3674 (face_for_overlay_string, face_at_string_position, merge_faces):
3675 Likewise.
3676 * xfns.c (xic_create_fontsetname, Fx_create_frame)
3677 (Fx_window_property, x_create_tip_frame)
3678 (Fx_backspace_delete_keys_p): Likewise.
3679 * xfont.c (xfont_list, xfont_match, xfont_list_family)
3680 (xfont_text_extents): Likewise.
3681 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
3682 * xrdb.c (magic_file_p, x_get_resource): Likewise.
3683 * xselect.c (x_queue_event, x_get_window_property)
3684 (receive_incremental_selection): Likewise.
3685 * xsmfns.c (x_session_check_input): Likewise.
3686 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
3687 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
3688 Likewise.
3689 * character.h (BCOPY_SHORT): Removed.
3690 * config.in: Regenerate.
3691 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
3692 * emacs.c (main) [PROFILING]: Don't declare
3693 dump_opcode_frequencies.
3694 * lisp.h (safe_bcopy): Remove declaration.
3695 (memset) [!HAVE_MEMSET]: Declare.
3696 (memcpy) [!HAVE_MEMCPY]: Likewise.
3697 (memmove) [!HAVE_MEMMOVE]: Likewise.
3698 (memcmp) [!HAVE_MEMCMP]: Likewise.
3699 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
3700 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
3701 Don't define.
3702 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
3703 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
3704 (BCOPY_DOWNWARD_SAFE): Don't define.
3705 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
3706 (memcpy) [!HAVE_MEMCPY]: Define.
3707 (memmove) [!HAVE_MEMMOVE]: Define.
3708 (memcmp) [!HAVE_MEMCMP]: Define.
3709
3710 2010-07-07 Jan Djärv <jan.h.d@swipnet.se>
3711
3712 * process.c (kbd_is_on_hold): New variable.
3713 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
3714 New functions.
3715 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
3716 select on empty input mask.
3717 (init_process): Initialize kbd_is_on_hold to 0.
3718
3719 * process.h (hold_keyboard_input, unhold_keyboard_input)
3720 (kbd_on_hold_p): Declare.
3721
3722 * keyboard.c (input_available_signal): Declare.
3723 (kbd_buffer_nr_stored): New function.
3724 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
3725 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
3726 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
3727 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
3728 (tty_read_avail_input): If input is on hold, return.
3729 Don't read more that free slots in kbd_buffer (Bug#6571).
3730
3731 2010-07-07 Eli Zaretskii <eliz@gnu.org>
3732
3733 * msdos.h:
3734 * msdos.c:
3735 * dosfns.c:
3736 * w16select.c: Convert function definitions to ANSI C.
3737
3738 * msdos.h (ctrl_break_func, install_ctrl_break_check):
3739 Remove unused prototypes.
3740
3741 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
3742
3743 * coding.c, sysdep.c: Convert some more functions to standard C.
3744
3745 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
3746
3747 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
3748 (encode_coding_object): Use SPECPDL_INDEX.
3749 (syms_of_coding): Use DOS_NT.
3750
3751 2010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
3752
3753 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
3754
3755 Make the function member of Lisp_Subr use standard C prototypes.
3756 * lisp.h (struct Lisp_Subr): Use a union for the function member.
3757 (DECL_ALIGN): Add a cast for the function.
3758 * eval.c (Feval, Ffuncall): Use the proper type for each type
3759 function call.
3760
3761 2010-07-06 Chong Yidong <cyd@stupidchicken.com>
3762
3763 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
3764 fringe face id, so face-remapping-alist works (Bug#6091).
3765
3766 2010-07-06 Juanma Barranquero <lekktu@gmail.com>
3767
3768 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
3769 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
3770 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
3771
3772 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
3773
3774 * xterm.c (x_get_keysym_name): Change type of parameter to int.
3775 * lisp.h: Declare x_get_keysym_name.
3776 * keyboard.c (modify_event_symbol): Don't declare
3777 x_get_keysym_name here.
3778
3779 2010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
3780
3781 * ecrt0.c: Revert conversion to standard C.
3782
3783 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
3784
3785 * vm-limit.c (memory_warnings):
3786 * keyboard.c (modify_event_symbol):
3787 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
3788 (round2, emacs_rint):
3789 * process.c (send_process, old_sigpipe): Convert function
3790 definitions and declarations to standard C.
3791
3792 2010-07-05 Juanma Barranquero <lekktu@gmail.com>
3793
3794 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
3795 * xdisp.c: Convert function definitions to standard C.
3796
3797 * cm.c (cmputc): Arg C is now int, not char.
3798 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
3799
3800 2010-07-05 James Cloos <cloos@jhcloos.com>
3801
3802 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
3803
3804 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
3805 _NET_WM_ICON_NAME atoms.
3806
3807 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
3808 and _NET_WM_ICON_NAME properties, too, matching what is
3809 done in the Gtk+ case.
3810
3811 2010-07-05 Jan Djärv <jan.h.d@swipnet.se>
3812
3813 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
3814
3815 * xsmfns.c (SSDATA): New macro.
3816 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
3817 passed to strlen/strcpy/strcat.
3818 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
3819 7:th arg to XChangeProperty to (unsigned char *).
3820
3821 * xsettings.c (something_changedCB, parse_settings)
3822 (apply_xft_settings): Reformat prototype.
3823 (something_changedCB, init_gconf): Remove unused variable i.
3824 (read_settings): Remove unused variable long_len.
3825
3826 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
3827 (xg_get_image_for_pixmap, create_dialog)
3828 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
3829 (menuitem_highlight_callback, make_menu_item)
3830 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
3831 (xg_create_scroll_bar, xg_update_scrollbar_pos)
3832 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
3833 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
3834 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
3835 (xg_tool_bar_item_expose_callback): Reformat prototype.
3836 (xg_update_menubar): GList *group => GSList *group.
3837 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
3838 before use.
3839 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
3840 to GTK_IMAGE (wimage).
3841
3842 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
3843
3844 * atimer.c: Use "" instead of <> for local includes for
3845 consistency with the rest of the code.
3846
3847 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
3848 * xrdb.c (get_system_name):
3849 * window.c (shrink_windows):
3850 * syntax.c (forw_comment):
3851 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
3852 (ins_del_costs):
3853 * mem-limits.h (start_of_data):
3854 * lread.c (readevalloop):
3855 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
3856 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
3857 * frame.c (x_get_focus_frame):
3858 * floatfns.c (fmod_float):
3859 * fileio.c (choose_write_coding_system):
3860 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
3861 (malloc_initialize_hook, sort_args, synchronize_locale):
3862 * doprnt.c (doprnt):
3863 * dired.c (compile_pattern):
3864 * data.c (fmod_float):
3865 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
3866 (map_char_table_for_charset):
3867 * charset.c (define_charset_internal):
3868 * alloc.c (Fgarbage_collect): Convert declarations or definitions
3869 to standard C.
3870
3871 2010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
3872 Stefan Monnier <monnier@iro.umontreal.ca>
3873
3874 * lread.c (read1): Fix up last change to not mess up `c'.
3875
3876 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
3877
3878 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
3879
3880 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
3881
3882 Fix prototypes.
3883
3884 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
3885 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
3886 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
3887 arg, as required by internal_condition_case_1.
3888 * print.c (strout): Use const char* for arg PTR.
3889 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
3890 (analyse_first): Fix "const const".
3891 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
3892 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
3893 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
3894
3895 2010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
3896
3897 * alloc.c: Convert function definitions to standard C.
3898 * atimer.c:
3899 * bidi.c:
3900 * bytecode.c:
3901 * callint.c:
3902 * callproc.c:
3903 * casefiddle.c:
3904 * casetab.c:
3905 * category.c:
3906 * ccl.c:
3907 * character.c:
3908 * charset.c:
3909 * chartab.c:
3910 * cmds.c:
3911 * coding.c:
3912 * composite.c:
3913 * data.c:
3914 * dbusbind.c:
3915 * dired.c:
3916 * dispnew.c:
3917 * doc.c:
3918 * doprnt.c:
3919 * ecrt0.c:
3920 * editfns.c:
3921 * fileio.c:
3922 * filelock.c:
3923 * filemode.c:
3924 * fns.c:
3925 * font.c:
3926 * fontset.c:
3927 * frame.c:
3928 * fringe.c:
3929 * ftfont.c:
3930 * ftxfont.c:
3931 * gtkutil.c:
3932 * indent.c:
3933 * insdel.c:
3934 * intervals.c:
3935 * keymap.c:
3936 * lread.c:
3937 * macros.c:
3938 * marker.c:
3939 * md5.c:
3940 * menu.c:
3941 * minibuf.c:
3942 * prefix-args.c:
3943 * print.c:
3944 * ralloc.c:
3945 * regex.c:
3946 * region-cache.c:
3947 * scroll.c:
3948 * search.c:
3949 * sound.c:
3950 * strftime.c:
3951 * syntax.c:
3952 * sysdep.c:
3953 * termcap.c:
3954 * terminal.c:
3955 * terminfo.c:
3956 * textprop.c:
3957 * tparam.c:
3958 * undo.c:
3959 * unexelf.c:
3960 * window.c:
3961 * xfaces.c:
3962 * xfns.c:
3963 * xfont.c:
3964 * xftfont.c:
3965 * xgselect.c:
3966 * xmenu.c:
3967 * xrdb.c:
3968 * xselect.c:
3969 * xsettings.c:
3970 * xsmfns.c:
3971 * xterm.c: Likewise.
3972
3973 2010-07-03 Eli Zaretskii <eliz@gnu.org>
3974
3975 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
3976 frames other than the initial one. Fix reversal of colors when
3977 `reverse' is specified in the frame parameters. Call
3978 update_face_from_frame_parameter instead of
3979 internal-set-lisp-face-attribute. Initialize screen colors from
3980 initial_screen_colors[] when f->default_face_done_p is zero,
3981 instead of depending on being called with default-frame-alist as
3982 the alist argument.
3983
3984 * xfaces.c (update_face_from_frame_parameter): Move out of
3985 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
3986 with HAVE_WINDOW_SYSTEM.
3987
3988 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
3989 to menu-bar-mode, if not set in the frame parameters or in
3990 default-frame-alist.
3991
3992 * w32console.c (sys_tputs): Adjust argument list to prototype in
3993 term.c.
3994
3995 2010-07-03 Juanma Barranquero <lekktu@gmail.com>
3996
3997 * lisp.h (memory_warnings): Fix prototype.
3998
3999 * cm.h (evalcost): Fix prototype.
4000
4001 * cm.c (evalcost): Fix arg type.
4002
4003 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
4004
4005 * term.c (term_clear_mouse_face, Fidentity):
4006 * syssignal.h (signal_handler_t):
4007 * lisp.h (memory_warnings):
4008 * coding.h (preferred_coding_system):
4009 * cm.h (evalcost):
4010 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
4011
4012 2010-07-02 Eli Zaretskii <eliz@gnu.org>
4013
4014 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
4015 from prototypes.
4016
4017 * msdos.h (load_pixmap): Don't define away.
4018
4019 2010-07-02 Jan Djärv <jan.h.d@swipnet.se>
4020
4021 * lisp.h:
4022 * atimer.h: Remove define for P_.
4023
4024 * alloc.c: Remove __P and P_ from .c and .m files.
4025 * atimer.c:
4026 * buffer.c:
4027 * callint.c:
4028 * category.c:
4029 * charset.c:
4030 * chartab.c:
4031 * cm.c:
4032 * coding.c:
4033 * composite.c:
4034 * data.c:
4035 * dired.c:
4036 * dispnew.c:
4037 * doc.c:
4038 * editfns.c:
4039 * emacs.c:
4040 * eval.c:
4041 * fileio.c:
4042 * filelock.c:
4043 * fns.c:
4044 * font.c:
4045 * fontset.c:
4046 * frame.c:
4047 * ftfont.c:
4048 * ftxfont.c:
4049 * gmalloc.c:
4050 * gtkutil.c:
4051 * image.c:
4052 * indent.c:
4053 * intervals.c:
4054 * keyboard.c:
4055 * keymap.c:
4056 * lread.c:
4057 * marker.c:
4058 * menu.c:
4059 * minibuf.c:
4060 * print.c:
4061 * process.c:
4062 * scroll.c:
4063 * search.c:
4064 * sound.c:
4065 * strftime.c:
4066 * syntax.c:
4067 * sysdep.c:
4068 * term.c:
4069 * terminal.c:
4070 * textprop.c:
4071 * unexalpha.c:
4072 * w32console.c:
4073 * w32fns.c:
4074 * w32font.c:
4075 * w32menu.c:
4076 * w32term.c:
4077 * w32uniscribe.c:
4078 * window.c:
4079 * xdisp.c:
4080 * xfaces.c:
4081 * xfns.c:
4082 * xfont.c:
4083 * xftfont.c:
4084 * xmenu.c:
4085 * xselect.c:
4086 * xterm.c: Likewise.
4087
4088 Remove P_ and __P macros.
4089 * atimer.h: Remove P_ and __P macros.
4090 * buffer.h:
4091 * category.h:
4092 * ccl.h:
4093 * character.h:
4094 * charset.h:
4095 * cm.h:
4096 * coding.h:
4097 * composite.h:
4098 * dispextern.h:
4099 * disptab.h:
4100 * dosfns.h:
4101 * font.h:
4102 * fontset.h:
4103 * frame.h:
4104 * gtkutil.h:
4105 * indent.h:
4106 * intervals.h:
4107 * keyboard.h:
4108 * keymap.h:
4109 * lisp.h:
4110 * macros.h:
4111 * md5.h:
4112 * menu.h:
4113 * msdos.h:
4114 * nsterm.h:
4115 * puresize.h:
4116 * region-cache.h:
4117 * syntax.h:
4118 * syssignal.h:
4119 * systime.h:
4120 * termhooks.h:
4121 * w32font.h:
4122 * w32term.h:
4123 * widget.h:
4124 * window.h:
4125 * xgselect.h:
4126 * xsettings.h:
4127 * xterm.h: Likewise.
4128
4129 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
4130
4131 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
4132
4133 Cleanup old code.
4134 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
4135 * syssignal.h: Remove code for Lynx, not supported anymore.
4136 * vm-limit.c: Remove unused code the depends on emacs not being
4137 defined and NO_LIM_DATA being defined.
4138 * mem-limits.h: Remove dead code.
4139
4140 2010-07-01 Jan Djärv <jan.h.d@swipnet.se>
4141
4142 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
4143
4144 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
4145 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
4146
4147 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
4148 parameters, they are already absolute.
4149
4150 * nsterm.m (x_set_window_size, initFrameFromEmacs):
4151 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
4152
4153 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
4154
4155 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
4156 Update FRAME_TOOLBAR_HEIGHT.
4157
4158 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
4159 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
4160
4161 2010-06-30 Chong Yidong <cyd@stupidchicken.com>
4162
4163 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
4164 check default-frame-alist.
4165
4166 2010-06-30 Andreas Schwab <schwab@linux-m68k.org>
4167
4168 * process.c (create_process): Avoid using invalid file descriptors.
4169
4170 * callproc.c (child_setup): Avoid closing a file descriptor twice.
4171
4172 2010-06-30 Jan Djärv <jan.h.d@swipnet.se>
4173
4174 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
4175 Improve documentation. Return font regardless of use_system_font.
4176 (syms_of_xsettings): Improve documentation for font-use-system-font.
4177
4178 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
4179
4180 * xfaces.c (realize_face): Garbage the frame if a face is removed
4181 (Bug#6593).
4182
4183 2010-07-05 Andreas Schwab <schwab@linux-m68k.org>
4184
4185 * keyboard.c: Remove duplicate <setjmp.h>.
4186 (read_key_sequence): Remove volatile qualifiers.
4187
4188 2010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4189
4190 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
4191 (struct glyph_row): New members left_fringe_offset and
4192 right_fringe_offset.
4193
4194 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
4195 specially.
4196 * w32term.c (w32_draw_fringe_bitmap): Likewise.
4197 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
4198
4199 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
4200 Take account of bitmap offset.
4201 (draw_window_fringes): Take account of window vscroll.
4202 (update_window_fringes): Likewise. Extend top-aligned top indicator
4203 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
4204 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
4205 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
4206
4207 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
4208
4209 * w32fns.c (Qtooltip): Declare.
4210 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
4211
4212 2010-07-03 Jan Djärv <jan.h.d@swipnet.se>
4213
4214 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
4215 grab on just Press (Bug#6499).
4216
4217 2010-07-02 Chong Yidong <cyd@stupidchicken.com>
4218
4219 * frame.c (Qtooltip): New var.
4220 (delete_frame): Use it. Fix faulty if statement. Don't update
4221 mode line for tooltip frames. Suggested by Martin Rudalics.
4222
4223 * xfns.c (x_create_tip_frame):
4224 * w32fns.c (x_create_tip_frame): Use it.
4225
4226 2010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
4227
4228 * xftfont.c (xftfont_open): Check font width one by one also when
4229 spacing is dual.
4230
4231 * ftfont.c (ftfont_open): Ditto.
4232
4233 2010-06-30 Glenn Morris <rgm@gnu.org>
4234
4235 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
4236
4237 * Makefile.in (CANNOT_DUMP): Update for configure name change.
4238
4239 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
4240 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
4241 * s/darwin.h (SYSTEM_MALLOC):
4242 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
4243
4244 2010-06-29 Jan Djärv <jan.h.d@swipnet.se>
4245
4246 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
4247 (ns_get_screen): Don't assign integer to f.
4248 (Fx_display_color_cells): Declarations before statements.
4249
4250 2010-06-28 Jan Djärv <jan.h.d@swipnet.se>
4251
4252 * xfns.c (x_default_font_parameter): Remove got_from_system
4253 (Bug#6526).
4254
4255 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
4256 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
4257 defines based on what configure finds.
4258
4259 * xterm.c (XTflash): Use gtk_widget_get_window.
4260 (xg_scroll_callback): Use gtk_adjustment_get_upper and
4261 gtk_adjustment_get_page_size.
4262 (handle_one_xevent): Use gtk_widget_get_mapped.
4263 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
4264 messages.
4265
4266 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
4267
4268 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
4269 HAVE_GTK_FILE_SELECTION_NEW.
4270
4271 * gtkutil.c (xg_display_open, xg_display_close): Remove
4272 HAVE_GTK_MULTIDISPLAY, it is always defined.
4273 (xg_display_open): Return type is void.
4274 (gtk_widget_set_has_window)
4275 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
4276 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
4277 (gtk_adjustment_set_page_increment)
4278 (gtk_adjustment_get_step_increment): #define these if not found
4279 by configure.
4280 (remove_submenu): New define based on Gtk+ version.
4281 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
4282 gtk_widget_get_window.
4283 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
4284 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
4285 (create_dialog): Use gtk_dialog_get_action_area and
4286 gtk_dialog_get_content_area.
4287 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
4288 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
4289 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
4290 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
4291 g_object_ref and g_object_unref.
4292 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
4293 gtk_widget_get_sensitive.
4294 (xg_update_submenu): Use remove_submenu.
4295 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
4296 properties instead to get old x and y position.
4297 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
4298 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
4299 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
4300 (xg_get_tool_bar_widgets): New function.
4301 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
4302 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
4303 (toolbar_set_orientation): New #define based on if configure
4304 finds gtk_orientable_set_orientation.
4305 (xg_create_tool_bar): Call toolbar_set_orientation.
4306 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
4307 instead of gtk_box_pack_start_defaults.
4308
4309 2010-06-28 Chong Yidong <cyd@stupidchicken.com>
4310
4311 * cmds.c (Fdelete_backward_char): Move into Lisp.
4312
4313 2010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
4314
4315 * s/freebsd.h (BSD4_2): Remove redundant definition.
4316 bsd-common.h defines it already.
4317
4318 2010-06-27 Chong Yidong <cyd@stupidchicken.com>
4319
4320 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
4321 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
4322 tool-bar-mode, which are now set using these X resources at
4323 startup, to determine the defaults (Bug#2249).
4324
4325 * w32fns.c (Fx_create_frame):
4326 * nsfns.m (Fx_create_frame): Likewise.
4327
4328 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
4329
4330 2010-06-24 Juanma Barranquero <lekktu@gmail.com>
4331
4332 * gtkutil.c (xg_update_scrollbar_pos):
4333 Avoid C99 mid-block variable declaration.
4334
4335 2010-06-22 Jan Djärv <jan.h.d@swipnet.se>
4336
4337 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
4338
4339 * gtkutil.h (xg_show_scroll_bar): Remove.
4340
4341 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
4342 if height is less than scroll bar min size.
4343 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
4344
4345 * xfns.c (x_default_font_parameter): Try to open font from system
4346 before using it (bug#6478). Rename got_from_gconf to got_from_system.
4347
4348 2010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
4349
4350 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
4351
4352 2010-06-20 Eli Zaretskii <eliz@gnu.org>
4353
4354 * xdisp.c (try_scrolling): When scroll-conservatively is set to
4355 most-positive-fixnum, be extra accurate when scrolling window
4356 start, to avoid missing the cursor line.
4357
4358 2010-06-19 Eli Zaretskii <eliz@gnu.org>
4359
4360 * xdisp.c (try_scrolling): Compute the limit for searching point
4361 in forward scroll from scroll_max, instead of an arbitrary limit
4362 of 10 screen lines. See
4363 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
4364 and
4365 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
4366 for details.
4367
4368 2010-06-16 Glenn Morris <rgm@gnu.org>
4369
4370 * editfns.c (Fbyte_to_string): Pacify compiler.
4371
4372 2010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
4373
4374 * lread.c (read1): Phase out old-style backquotes a bit more.
4375
4376 2010-06-12 Eli Zaretskii <eliz@gnu.org>
4377
4378 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
4379 bidimirror.h.
4380
4381 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
4382
4383 * bidi.c (bidi_initialize): Remove explicit initialization of
4384 bidi_type_table; include biditype.h instead. Don't support
4385 entries whose second codepoint is zero. Initialize bidi_mirror_table.
4386 (bidi_mirror_char): Use bidi_mirror_table.
4387
4388 * biditype.h: New file.
4389
4390 * bidimirror.h: New file.
4391
4392 * window.c (syms_of_window): Doc fix (bug#6409).
4393
4394 2010-06-12 Romain Francoise <romain@orebokech.com>
4395
4396 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
4397 ediff-hook.
4398
4399 2010-06-10 Glenn Morris <rgm@gnu.org>
4400
4401 * editfns.c (Fbyte_to_string): Pacify compiler.
4402
4403 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
4404
4405 2010-06-26 Andreas Schwab <schwab@linux-m68k.org>
4406
4407 * alloc.c (Fmake_byte_code): Don't access undefined argument
4408 (Bug#6517).
4409
4410 2010-06-25 Chong Yidong <cyd@stupidchicken.com>
4411
4412 * xdisp.c (next_element_from_image): Ensure that after-strings are
4413 read the next time we hit handle_stop (Bug#1336).
4414
4415 2010-06-23 Andreas Schwab <schwab@linux-m68k.org>
4416
4417 * lread.c (read1): Signal error if #s is not followed by paren.
4418
4419 2010-06-19 Chong Yidong <cyd@stupidchicken.com>
4420
4421 * image.c (free_image): Mark frame as garbaged (Bug#6426).
4422
4423 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
4424
4425 2010-06-15 Glenn Morris <rgm@gnu.org>
4426
4427 * editfns.c (Fbyte_to_string): Pacify compiler.
4428
4429 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
4430
4431 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
4432 Check `object's type before accessing its guts.
4433
4434 2010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
4435
4436 * s/usg5-4.h: Fix previous change.
4437 Suggested by Lawrence Mitchell <wence@gmx.li>
4438
4439 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
4440
4441 * minibuf.c (Fall_completions): Add more checks.
4442
4443 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
4444
4445 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
4446
4447 2010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
4448
4449 * lread.c (X_OK): Remove, unused.
4450
4451 * dispnew.c: Remove obsolete comment.
4452
4453 Remove INCLUDED_FCNTL.
4454 * xterm.c (INCLUDED_FCNTL):
4455 * callproc.c (INCLUDED_FCNTL):
4456 * alloc.c (INCLUDED_FCNTL):
4457 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
4458 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
4459
4460 2010-06-07 Martin Rudalics <rudalics@gmx.at>
4461
4462 * window.c (Fselect_window): Move `record_buffer' up to the
4463 beginning of this function, so the buffer gets recorded
4464 even if the selected window does not change.
4465 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
4466
4467 2010-06-07 Juanma Barranquero <lekktu@gmail.com>
4468
4469 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
4470 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
4471
4472 2010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
4473
4474 Remove BSTRING related code, all platforms define it.
4475 * s/usg5-4.h (BSTRING): Remove definition.
4476 * s/template.h (BSTRING):
4477 * s/msdos.h (BSTRING):
4478 * s/ms-w32.h (BSTRING):
4479 * s/hpux10-20.h (BSTRING):
4480 * s/gnu-linux.h (BSTRING):
4481 * s/darwin.h (BSTRING):
4482 * s/cygwin.h (BSTRING):
4483 * s/bsd-common.h (BSTRING):
4484 * s/aix4-2.h (BSTRING): Likewise.
4485 * sysdep.c: Remove code depending on BSTRING not being defined.
4486
4487 2010-06-05 Juanma Barranquero <lekktu@gmail.com>
4488
4489 Remove obsolete macro BASE_LEADING_CODE_P.
4490 * character.h (BASE_LEADING_CODE_P): Remove.
4491 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
4492 * buffer.c (Fset_buffer_multibyte):
4493 * indent.c (scan_for_column, compute_motion):
4494 * insdel.c (count_combining_before, count_combining_after):
4495 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
4496
4497 2010-06-04 Juanma Barranquero <lekktu@gmail.com>
4498
4499 Turn `directory-sep-char' into a noop.
4500
4501 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
4502 (DIRECTORY_SEP): Define unconditionally.
4503
4504 * s/ms-w32.h (DIRECTORY_SEP): Remove.
4505
4506 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
4507 call dostounix_filename directly.
4508
4509 * fileio.c (CORRECT_DIR_SEPS): Remove.
4510 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
4511 (Fsubstitute_in_file_name): Use dostounix_filename instead.
4512 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
4513 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
4514
4515 * w32proc.c (CORRECT_DIR_SEPS): Remove.
4516 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
4517
4518 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
4519
4520 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
4521 (Bug#6346)
4522
4523 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
4524
4525 * ccl.c (Fccl_program_p): Fix typo in docstring.
4526
4527 2010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
4528
4529 Move UNEXEC definition to autoconf.
4530 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
4531 * s/sol2-10.h (UNEXEC):
4532 * s/irix6-5.h (UNEXEC):
4533 * s/hpux10-20.h (UNEXEC):
4534 * s/gnu-linux.h (UNEXEC):
4535 * s/darwin.h (UNEXEC):
4536 * s/cygwin.h (UNEXEC):
4537 * s/bsd-common.h (UNEXEC):
4538 * s/aix4-2.h (UNEXEC):
4539 * m/alpha.h (UNEXEC): Likewise.
4540 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
4541
4542 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
4543
4544 Remove obsolete pre-unicode2 macros.
4545 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
4546 * composite.c (composition_reseat_it):
4547 * data.c (Faset):
4548 * fns.c (Ffillarray):
4549 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
4550 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
4551
4552 2010-06-03 Juri Linkov <juri@jurta.org>
4553
4554 * buffer.c (Fother_buffer): Add CHECK_FRAME.
4555 (Fswitch_to_buffer): Remove unused variable `err'.
4556
4557 2010-06-03 Glenn Morris <rgm@gnu.org>
4558
4559 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
4560
4561 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
4562 now that AH_BOTTOM does it.
4563
4564 * m/hp800.h (HAVE_ALLOCA):
4565 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
4566
4567 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
4568 Remove NOT_C_CODE tests, it is always true now.
4569
4570 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
4571
4572 Fix config.h includes.
4573 * xsettings.c:
4574 * xgselect.c:
4575 * nsterm.m:
4576 * nsselect.m:
4577 * nsimage.m:
4578 * nsfont.m:
4579 * nsfns.m:
4580 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
4581 other files do.
4582
4583 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
4584
4585 * s/sol2-6.h: Remove obsolete comments.
4586
4587 Remove unnecessary alloca.h includes.
4588 * keymap.c: Do not include alloca.h, config.h does that.
4589 * sysdep.c: Likewise. Do not define fwrite, not used.
4590
4591 2010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
4592
4593 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
4594 the HAVE_TERMIO where it belongs (bug#6149).
4595
4596 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
4597
4598 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
4599 of bug#6305).
4600
4601 2010-05-30 Eli Zaretskii <eliz@gnu.org>
4602
4603 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
4604 state is always cached (bug#6306).
4605
4606 2010-05-29 Eli Zaretskii <eliz@gnu.org>
4607
4608 Fix cursor motion in bidi-reordered continued lines.
4609 * xdisp.c (try_cursor_movement): Backup to non-continuation line
4610 only after finding point's row. Fix the logic. Rewrite the loop
4611 over continuation lines in bidi-reordered buffers. Return
4612 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
4613 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
4614
4615 2010-05-28 Michael Albinus <michael.albinus@gmx.de>
4616
4617 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
4618
4619 2010-05-28 Kenichi Handa <handa@m17n.org>
4620
4621 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
4622 Don't sheck SPEC if it is nil.
4623 (font_list_entities): Call font_delete_unmatched if
4624 Vface_ignored_fonts is non-nil. (Bug#6287)
4625
4626 2010-05-28 Glenn Morris <rgm@gnu.org>
4627
4628 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
4629
4630 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
4631
4632 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
4633 whether to trash.
4634 (internal_delete_file, Frename_file): Callers changed.
4635 (delete_by_moving_to_trash): Doc fix.
4636 (Fdelete_directory_internal): Don't move to trash.
4637
4638 * callproc.c (delete_temp_file):
4639 * buffer.c (Fkill_buffer): Callers changed.
4640
4641 * lisp.h: Update prototype.
4642
4643 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
4644
4645 * xdisp.c (redisplay_window): After redisplay, check if point is
4646 still valid before setting it (Bug#6177).
4647
4648 2010-05-27 Glenn Morris <rgm@gnu.org>
4649
4650 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
4651 Convert comments to Makefile format.
4652
4653 * Makefile.in (bootstrap-clean): No more Makefile.c.
4654
4655 2010-05-26 Glenn Morris <rgm@gnu.org>
4656
4657 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
4658 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
4659
4660 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
4661 Remove.
4662 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4663
4664 2010-05-26 Kenichi Handa <handa@m17n.org>
4665
4666 * composite.c (composition_compute_stop_pos): Fix condition for
4667 backward scanning.
4668
4669 2010-05-25 Glenn Morris <rgm@gnu.org>
4670
4671 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
4672 Move before TEMACS_LDFLAGS.
4673 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4674 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4675
4676 * Makefile.in (NOT_C_CODE): No longer define.
4677 (config.h): No longer include.
4678
4679 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
4680 variables it may reference.
4681
4682 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
4683 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
4684
4685 2010-05-25 Kenichi Handa <handa@m17n.org>
4686
4687 * dispextern.h (struct composition_it): New members rule_idx and
4688 charpos.
4689
4690 * xdisp.c (set_iterator_to_next): While scanning backward, assume
4691 that the character positions of IT point the last character of the
4692 current grapheme cluster.
4693 (next_element_from_composition): Don't change character positions
4694 of IT.
4695 (append_composite_glyph): Set glyph->charpos to
4696 it->cmp_it.charpos.
4697
4698 * composite.c (autocmp_chars): Change the first argument to RULE,
4699 and try composition with RULE only.
4700 (composition_compute_stop_pos): Record the index number of the
4701 composition rule in CMP_IT->rule_idx.
4702 (composition_reseat_it): Call autocmp_chars repeatedly until the
4703 correct rule of the composition is found.
4704 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
4705 is at the last character of the current grapheme cluster when
4706 CMP_IT->reversed_p is nonzero.
4707
4708 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
4709
4710 * editfns.c (Fbyte_to_string): New function.
4711
4712 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
4713
4714 * process.c (Fmake_network_process): Set :host to nil if it's not used.
4715 Suggested by Masatake YAMATO <yamato@redhat.com>.
4716
4717 2010-05-23 Eli Zaretskii <eliz@gnu.org>
4718
4719 * dispextern.h (init_iterator): Sync prototype with changed definition.
4720
4721 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
4722
4723 * s/netbsd.h: If terminfo is found, use it in preference to
4724 termcap. (Bug#6190) [Backport from trunk]
4725
4726 2010-05-19 Eli Zaretskii <eliz@gnu.org>
4727
4728 Redesign and reimplement bidi-aware edge positions of glyph rows.
4729
4730 * dispextern.h (struct glyph_row): New members minpos and maxpos.
4731 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
4732 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
4733 and maxpos members instead of start.pos and end.pos, respectively.
4734
4735 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
4736 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
4737 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
4738 (try_window_reusing_current_matrix, try_window_id):
4739 Use ROW->minpos rather than ROW->start.pos.
4740 (init_from_display_pos, init_iterator): Use EMACS_INT for
4741 character and byte positions.
4742 (find_row_edges): Rename from find_row_end. Accept additional
4743 arguments for minimum and maximum buffer positions seen by
4744 display_line for this row. Don't use iterator to find the
4745 position following the maximum one; instead, increment the
4746 position found by display_line directly. Fix logic; eol_pos
4747 should be tested before the rest. Handle the case of characters
4748 delivered from display vector (bug#6036). Fix tests related to
4749 it->method. Handle the truncated_on_right_p rows.
4750 (RECORD_MAX_MIN_POS): New macro.
4751 (display_line): Use it to record the minimum and maximum buffer
4752 positions for glyphs in the row being assembled. Record the
4753 position of the newline that terminates the line. If word wrap is
4754 in effect, restore minimum and maximum positions seen up to the
4755 wrap point, when iterator returns to it.
4756 (try_window_reusing_current_matrix): Give up if in bidi-reordered
4757 row and cursor not already at point. Restore original pre-bidi
4758 code for unidirectional buffers.
4759
4760 * dispnew.c (increment_row_positions, check_matrix_invariants):
4761 Increment and check row->start.pos and row->end.pos, in addition
4762 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
4763
4764 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
4765 Display truncated_on_left_p and truncated_on_right_p flags.
4766 Formatting fixes.
4767 (pmtxrows): Display the ordinal number of each row. Don't display
4768 rows beyond the last one.
4769
4770 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
4771 it is not copied by bidi_copy_it.
4772
4773 2010-05-22 Eli Zaretskii <eliz@gnu.org>
4774
4775 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
4776 (Bug#6237)
4777
4778 2010-05-22 Chong Yidong <cyd@stupidchicken.com>
4779
4780 * image.c (Fimage_flush): Rename from image-refresh.
4781
4782 2010-05-21 Chong Yidong <cyd@stupidchicken.com>
4783
4784 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
4785 just one window.
4786
4787 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
4788 (clear_image_cache): If the number of cached images is unusually
4789 large, decrease the cache eviction delay (Bug#6230).
4790
4791 2010-05-21 Glenn Morris <rgm@gnu.org>
4792
4793 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
4794 Move these rules to ns.mk.
4795 * ns.mk: New file.
4796
4797 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
4798
4799 * Makefile.in (CANNOT_DUMP): New, set by configure.
4800 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
4801
4802 2010-05-20 Juri Linkov <juri@jurta.org>
4803
4804 * fileio.c (Fdelete_file): Change interative spec to use
4805 `read-file-name' like in `find-file-read-args' where the default
4806 value is `default-directory' instead of `buffer-file-name'.
4807 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
4808
4809 2010-05-20 Kevin Ryde <user42@zip.com.au>
4810
4811 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
4812 (Voverriding_terminal_local_map, Vsystem_key_alist)
4813 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
4814
4815 2010-05-20 Glenn Morris <rgm@gnu.org>
4816
4817 * Makefile.in (DEPDIR): New constant.
4818 (DEPFLAGS): Set with configure, not cpp.
4819 (MKDEPDIR): New, set by configure.
4820 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
4821 (clean): Use $DEPDIR.
4822 (deps_frag): Include from configure.
4823 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
4824 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
4825
4826 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
4827 reallocation of the cache. (Bug#6210)
4828
4829 2010-05-19 Glenn Morris <rgm@gnu.org>
4830
4831 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
4832
4833 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
4834 (GNULIB_VAR): Remove.
4835 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
4836
4837 * m/ibms390x.h (LINKER):
4838 * m/macppc.h (LINKER) [GNU_LINUX]:
4839 * s/aix4-2.h (ORDINARY_LINK):
4840 * s/cygwin.h (LINKER):
4841 * s/darwin.h (ORDINARY_LINK):
4842 * s/gnu.h (ORDINARY_LINK):
4843 * s/netbsd.h (LINKER):
4844 * s/usg5-4.h (ORDINARY_LINK):
4845 Move to configure.
4846
4847 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
4848
4849 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
4850
4851 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
4852 prevent stack overflow if number of arguments is too large
4853 (Bug#6214).
4854
4855 2010-05-18 Juanma Barranquero <lekktu@gmail.com>
4856
4857 * charset.c (load_charset_map_from_file): Don't call close after fclose.
4858
4859 2010-05-18 Glenn Morris <rgm@gnu.org>
4860
4861 * s/gnu-linux.h: Combine two conditionals.
4862
4863 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
4864 $(POST_ALLOC_OBJ).
4865
4866 * Makefile.in (RALLOC_OBJ): New, set by configure.
4867 (rallocobj): Replace with the previous variable.
4868 (otherobj): Use $RALLOC_OBJ.
4869
4870 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
4871 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
4872
4873 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
4874 (gmallocobj, vmlimitobj): Replace with previous two variables.
4875 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
4876
4877 2010-05-17 Glenn Morris <rgm@gnu.org>
4878
4879 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
4880 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
4881
4882 2010-05-16 Glenn Morris <rgm@gnu.org>
4883
4884 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
4885
4886 * Makefile.in (clean): Get rid of HAVE_NS conditional.
4887
4888 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
4889 trailing "/".
4890
4891 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
4892 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
4893
4894 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
4895 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
4896 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
4897 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
4898 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
4899
4900 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
4901 Remove ${STARTFLAGS}, nothing ever sets it.
4902
4903 2010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
4904
4905 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
4906
4907 2010-05-16 Glenn Morris <rgm@gnu.org>
4908
4909 * Makefile.in (LIBX_BASE): Always define.
4910
4911 * Makefile.in (LIBX_OTHER): Move out of cpp section.
4912
4913 * Makefile.in (LIBXT): Always define.
4914
4915 2010-05-15 Glenn Morris <rgm@gnu.org>
4916
4917 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
4918
4919 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
4920 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
4921
4922 2010-05-15 Ken Raeburn <raeburn@raeburn.org>
4923
4924 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
4925 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
4926
4927 * emacs.c (main): Initialize initial-environment and
4928 process-environment before generating from env, not after.
4929
4930 Handle --version reasonably in CANNOT_DUMP configuration.
4931 * emacs.c (emacs_version, emacs_copyright): New string variables.
4932 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
4933 (syms_of_emacs): Defvar them, and initialize them from the C
4934 string variables.
4935 (main): If initialization hasn't been done, print initial version
4936 info from the C strings, instead of starting an interactive session.
4937
4938 2010-05-15 Eli Zaretskii <eliz@gnu.org>
4939
4940 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
4941 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
4942 (bidi_paragraph_init): Remove redundant assertion that we are at
4943 the beginning of a line after call to bidi_find_paragraph_start.
4944
4945 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
4946 (syms_of_xdisp): Defsubr it.
4947
4948 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
4949
4950 * Makefile.in: Fix MSDOS-related comments.
4951
4952 2010-05-15 Glenn Morris <rgm@gnu.org>
4953
4954 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
4955 (really-lwlib, really-oldXMenu): Always define.
4956 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
4957
4958 * Makefile.in: Simplify cpp conditional.
4959
4960 * Makefile.in (${ns_appdir}): Simplify using umask.
4961
4962 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
4963
4964 2010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
4965
4966 * eval.c (specbind): Remove left-over duplicate test.
4967 Disallow let-binding frame-local vars. Add comment.
4968
4969 2010-05-14 Eli Zaretskii <eliz@gnu.org>
4970
4971 Make the cache of bidi iterator states dynamically allocated.
4972 * bidi.c (bidi_cache_shrink): New function.
4973 (bidi_init_it): Call it.
4974 (bidi_cache_iterator_state): Enlarge the cache if needed.
4975
4976 * bidi.c (bidi_move_to_visually_next): Rename from
4977 bidi_get_next_char_visually. All callers changed.
4978
4979 2010-05-14 Kenichi Handa <handa@m17n.org>
4980
4981 * dispextern.h (struct composition_it): New member reversed_p.
4982
4983 * composite.c (composition_compute_stop_pos): Search backward if
4984 ENDPOS < CHARPOS.
4985 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
4986 Set CMP_IT->reversed_p.
4987 (composition_update_it): Pay attention to CMP_IT->reversed_p.
4988
4989 * xdisp.c (set_iterator_to_next):
4990 Call composition_compute_stop_pos with negative ENDPOS if we are
4991 scanning backward. Call composition_compute_stop_pos if scan
4992 direction is changed.
4993 (next_element_from_buffer): Call composition_compute_stop_pos with
4994 negative ENDPOS if we are scanning backward.
4995 (next_element_from_composition): Pay attention to
4996 IT->cmp_it.reversed_p.
4997
4998 2010-05-14 Kenichi Handa <handa@m17n.org>
4999
5000 * font.c (font_range): Return the range for the font found at first.
5001
5002 2010-05-14 Glenn Morris <rgm@gnu.org>
5003
5004 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
5005
5006 * Makefile.in (mktime, X11, register): Move undefs to configure.
5007
5008 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
5009 (MSDOS_X_OBJ): New variable.
5010 (MSDOS_SUPPORT_REAL): New constant.
5011 (MSDOS_SUPPORT): Set as a variable, not with cpp.
5012 (obj): Use MSDOS_X_OBJ.
5013 (lisp): Use MSDOS_SUPPORT as a variable.
5014
5015 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
5016 (GPM_MOUSE_SUPPORT): Now it's a constant.
5017 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
5018 not cpp.
5019
5020 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
5021 (ns_appresdir): Remove, unused.
5022
5023 * Makefile.in (SHELL): Move outside cpp section.
5024
5025 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
5026
5027 2010-05-13 Glenn Morris <rgm@gnu.org>
5028
5029 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
5030 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
5031
5032 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
5033 HAVE_WINDOW_SYSTEM must be too.
5034
5035 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
5036 (lisp): Remove WINNT_SUPPORT.
5037
5038 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
5039 Let configure set these variables (to empty) in this case as well.
5040
5041 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
5042 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
5043
5044 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
5045 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
5046 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
5047 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
5048 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
5049 the values output by configure.
5050 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
5051
5052 2010-05-12 Glenn Morris <rgm@gnu.org>
5053
5054 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
5055 (LINKER_WAS_SPECIFIED): Remove.
5056
5057 * Makefile.in (LIB_GCC): Set using configure, not cpp.
5058 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
5059 * m/arm.h (LIB_GCC) [GNU_LINUX]:
5060 * s/cygwin.h (LIB_GCC):
5061 * s/freebsd.h (LIB_GCC):
5062 * s/gnu-linux.h (LIB_GCC):
5063 * s/msdos.h (LIB_GCC):
5064 * s/netbsd.h (LIB_GCC):
5065 Move to configure.
5066
5067 2010-05-11 Karel Klic <kklic@redhat.com>
5068
5069 * ftfont.c: Fix incorrect parentheses of #if condition for
5070 definining M17N_FLT_USE_NEW_FEATURE.
5071
5072 2010-05-11 Glenn Morris <rgm@gnu.org>
5073
5074 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
5075 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
5076
5077 2010-05-10 Eli Zaretskii <eliz@gnu.org>
5078
5079 * xdisp.c (init_iterator): Don't turn on bidi reordering in
5080 unibyte buffers. See
5081 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
5082
5083 2010-05-10 Glenn Morris <rgm@gnu.org>
5084
5085 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
5086 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
5087 (LIBES): Use LIBS_SYSTEM as a variable.
5088 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
5089 * s/aix4-2.h (LIBS_SYSTEM):
5090 * s/freebsd.h (LIBS_SYSTEM):
5091 * s/hpux10-20.h (LIBS_SYSTEM):
5092 * s/sol2-6.h (LIBS_SYSTEM):
5093 * s/unixware.h (LIBS_SYSTEM):
5094 Move to configure.
5095
5096 * s/aix4-2.h (MAIL_USE_LOCKF):
5097 * s/bsd-common.h (MAIL_USE_FLOCK):
5098 * s/darwin.h (MAIL_USE_FLOCK):
5099 * s/gnu-linux.h (MAIL_USE_FLOCK):
5100 * s/irix6-5.h (MAIL_USE_FLOCK):
5101 * s/template.h (MAIL_USE_FLOCK):
5102 Move to configure.
5103
5104 2010-05-08 Chong Yidong <cyd@stupidchicken.com>
5105
5106 * Version 23.2 released.
5107
5108 2010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5109
5110 * composite.c (autocmp_chars): Save point as marker before calling
5111 auto-composition-function (Bug#5984).
5112
5113 * lisp.h (restore_point_unwind): Add prototype.
5114
5115 * fileio.c (restore_point_unwind): Remove static attribute.
5116
5117 2010-05-08 Kenichi Handa <handa@m17n.org>
5118
5119 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
5120 new feature of libotf and m17n-flt.
5121 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
5122 Call OTF_check_features even if no specific feature is given.
5123 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
5124 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
5125 that OUT is NULL. Use OTF_drive_gsub_with_log and
5126 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
5127 OTF_drive_gpos.
5128 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
5129 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
5130 Setup mflt_enable_new_feature and mflt_try_otf.
5131
5132 2010-05-08 Jan Djärv <jan.h.d@swipnet.se>
5133
5134 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
5135
5136 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
5137 box and toolbar (Bug #6139).
5138 (xg_create_tool_bar): Remove comment (Bug #6139).
5139 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
5140 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
5141
5142 2010-05-08 Juanma Barranquero <lekktu@gmail.com>
5143
5144 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
5145 Update dependencies.
5146
5147 2010-05-08 Eli Zaretskii <eliz@gnu.org>
5148
5149 * fringe.c (update_window_fringes): Set up truncation bitmaps for
5150 R2L lines.
5151
5152 2010-05-08 Glenn Morris <rgm@gnu.org>
5153
5154 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
5155
5156 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
5157 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
5158 (termcapobj): Replace with TERMCAP_OBJ.
5159 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
5160 (LIBES): Use LIBS_TERMCAP as a variable.
5161
5162 * s/freebsd.h (osreldate.h): No longer include, since this file
5163 does not use __FreeBSD_version any more.
5164
5165 * s/aix4-2.h (TERMINFO):
5166 * s/cygwin.h (TERMINFO):
5167 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
5168 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
5169 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
5170 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
5171 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
5172 * s/irix6-5.h (TERMINFO):
5173 * s/netbsd.h (LIBS_TERMCAP):
5174 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
5175 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
5176 * s/usg5-4.h (TERMINFO):
5177 Move to configure.
5178
5179 2010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
5180
5181 * eval.c (unbind_to): Don't unbind a local binding into the global
5182 binding when the local binding disappeared. Inversely, don't unbind
5183 a global binding into a newly created local binding.
5184 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
5185 can specify the frame to use, when applicable. Adjust callers.
5186
5187 2010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
5188 Stefan Monnier <monnier@iro.umontreal.ca>
5189
5190 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
5191
5192 2010-05-07 Eli Zaretskii <eliz@gnu.org>
5193
5194 * w32fns.c: Include w32.h.
5195 (Fw32_shell_execute): Decode the error message before passing it
5196 to `error'. (Bug#6126)
5197
5198 * msdos.c (dos_set_window_size):
5199 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
5200 instead of `XSYMBOL (foo)->value'.
5201
5202 2010-05-07 Eli Zaretskii <eliz@gnu.org>
5203
5204 Fix the MS-DOS build, broken by autoconfiscation.
5205
5206 * Makefile.in: Don't use Make-style comments past the "start of
5207 cpp stuff" line.
5208 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
5209
5210 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
5211 edited directly by msdos/sed1v2.inp).
5212
5213 2010-05-07 Glenn Morris <rgm@gnu.org>
5214
5215 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
5216 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
5217 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
5218 move out of cpp section.
5219 * s/freebsd.h (LD_SWITCH_SYSTEM):
5220 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
5221 * s/netbsd.h (LD_SWITCH_SYSTEM):
5222 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
5223
5224 2010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
5225
5226 Define LIB_STANDARD and START_FILES using autoconf.
5227 * s/usg5-4.h (LIB_STANDARD):
5228 * s/netbsd.h (START_FILES):
5229 * s/irix6-5.h (LIB_STANDARD):
5230 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
5231 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
5232 * s/freebsd.h (START_FILES):
5233 * s/darwin.h (START_FILES):
5234 * s/cygwin.h (START_FILES):
5235 * s/aix4-2.h (LIB_STANDARD):
5236 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
5237 * Makefile.in (STARTFILES): Rename to START_FILES, define using
5238 autoconf, not cpp.
5239
5240 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
5241
5242 Remove NEED_BSDTTY and NEED_UNISTD_H.
5243 * s/hpux10-20.h (NEED_BSDTTY): Remove.
5244 * s/aix4-2.h (NEED_UNISTD_H): Remove.
5245 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
5246 <sys/ptyio.h> and <unistd.h>.
5247
5248 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
5249
5250 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
5251 * s/gnu.h (START_FILES): Remove empty definition.
5252
5253 2010-05-06 Jan Djärv <jan.h.d@swipnet.se>
5254
5255 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
5256
5257 2010-05-06 Glenn Morris <rgm@gnu.org>
5258
5259 * Makefile.in (CPP, LN_S): Remove unused variables.
5260
5261 2010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
5262
5263 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
5264
5265 2010-05-05 Lawrence Mitchell <wence@gmx.li>
5266
5267 * m/sparc.h: Fix typo in earlier change.
5268
5269 2010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
5270
5271 Misc tweaks.
5272 * eval.c (Fdefvaralias): Remove unintended nested if.
5273 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
5274
5275 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
5276
5277 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
5278
5279 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
5280
5281 Remove BSD_PGRPS.
5282 * s/bsd-common.h (BSD_PGRPS): Remove undef.
5283 * s/gnu-linux.h (BSD_PGRPS): Remove.
5284 * term.c (dissociate_if_controlling_tty):
5285 * sysdep.c (narrow_foreground_group, widen_foreground_group)
5286 (init_sys_modes, reset_sys_modes):
5287 * emacs.c (main):
5288 * callproc.c (Fcall_process, child_setup): Remove code depending
5289 on BSD_PGRPS.
5290
5291 Remove POSIX_SIGNALS.
5292 * s/usg5-4.h (POSIX_SIGNALS):
5293 * s/netbsd.h (POSIX_SIGNALS):
5294 * s/msdos.h (POSIX_SIGNALS):
5295 * s/ms-w32.h (POSIX_SIGNALS):
5296 * s/hpux11.h (POSIX_SIGNALS):
5297 * s/gnu.h (POSIX_SIGNALS):
5298 * s/gnu-linux.h (POSIX_SIGNALS):
5299 * s/freebsd.h (POSIX_SIGNALS):
5300 * s/darwin.h (POSIX_SIGNALS):
5301 * s/cygwin.h (POSIX_SIGNALS):
5302 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
5303 * s/unixware.h:
5304 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
5305 * process.c (create_process):
5306 * syssignal.h:
5307 * sysdep.c (wait_for_termination, init_signals):
5308 * process.c (create_process):
5309 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
5310 remove all code that assumes the contrary.
5311
5312 2010-05-04 Glenn Morris <rgm@gnu.org>
5313
5314 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
5315 variable.
5316 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
5317 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
5318 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
5319 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
5320 LD_SWITCH_SYSTEM_tmp.
5321 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
5322 New variables, set by configure.
5323
5324 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
5325 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
5326 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
5327 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
5328 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
5329
5330 * s/aix4-2.h (C_SWITCH_SYSTEM):
5331 * m/alpha.h (C_SWITCH_MACHINE):
5332 Move to configure.in.
5333 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
5334 New variables, set by configure.
5335 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
5336 $c_switch_machine and $c_switch_system.
5337
5338 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
5339
5340 * s/hpux10-20.h (LIB_STANDARD): New definition.
5341 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
5342 on it, not used anymore.
5343
5344 2010-05-03 Chong Yidong <cyd@stupidchicken.com>
5345
5346 * eval.c (internal_condition_case_n): Rename from
5347 internal_condition_case_2.
5348 (internal_condition_case_2): New function.
5349
5350 * xdisp.c (safe_call): Use internal_condition_case_n.
5351
5352 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
5353 (internal_delete_file, Frename_file): Callers changed.
5354
5355 * buffer.c (Fkill_buffer):
5356 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
5357
5358 * lisp.h: Update prototypes.
5359
5360 2010-05-03 Glenn Morris <rgm@gnu.org>
5361
5362 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
5363 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
5364 (LIBXT): Set with configure, not cpp.
5365 (LIBX): Remove.
5366 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
5367
5368 2010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
5369
5370 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
5371 The FreeBSD is not needed, the default works, Solaris version is
5372 not needed, and the remaining case is not supported by configure.
5373
5374 2010-05-02 Jan Djärv <jan.h.d@swipnet.se>
5375
5376 * xsmfns.c (CHDIR_OPT): New define.
5377 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
5378 restarting emacs.
5379
5380 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
5381 shut_down_emacs.
5382
5383 * emacs.c (USAGE1): Mention --chdir.
5384 (main): Handle --chdir.
5385 (standard_args): Add --chdir.
5386 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
5387 #5552).
5388
5389 2010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
5390
5391 Remove LD_SWITCH_MACHINE.
5392 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
5393 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
5394
5395 Clean up IRIX code.
5396 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
5397 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
5398
5399 Clean up AIX code.
5400 * m/ibmrs6000.inp: Remove file, unused.
5401 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
5402 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
5403 definition ...
5404 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
5405
5406 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
5407 unused.
5408
5409 2010-05-01 Eli Zaretskii <eliz@gnu.org>
5410
5411 Emulate POSIX_SIGNALS on MS-Windows.
5412
5413 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
5414 (SIG_SETMASK, SIG_UNBLOCK): Define.
5415
5416 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
5417 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
5418 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
5419
5420 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
5421 New stubs.
5422
5423 Miscellaneous fixes of bidi display.
5424
5425 * xdisp.c (find_row_end): New function, refactored from display_line.
5426 (display_line): Use it.
5427 (extend_face_to_end_of_line): In almost-filled rows, extend only
5428 if the row is R2L and not continued.
5429 (display_line): Fix prepending of truncation glyphs to R2L rows.
5430 Preserve overlay and string info in row->end.
5431 (insert_left_trunc_glyphs): Support addition of left truncation
5432 glyphs to R2L rows.
5433 (set_cursor_from_row): Don't place cursor on the vertical border
5434 glyph between adjacent windows. Fix a crash when a display string
5435 is continued to the next line. Don't return zero if cursor was
5436 found by `cursor' property of a display string.
5437 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
5438 test for that explicitly.
5439
5440 2010-05-01 Glenn Morris <rgm@gnu.org>
5441
5442 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
5443 for clarity.
5444 (OTHER_OBJ): Remove.
5445 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
5446 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
5447
5448 2010-05-01 Karel Klíč <kklic@redhat.com>
5449
5450 * fileio.c (Ffile_selinux_context): Context functions may return null.
5451
5452 2010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
5453
5454 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
5455
5456 2010-04-30 Glenn Morris <rgm@gnu.org>
5457
5458 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
5459 (OTHER_OBJ): Define as a separate variable, for clarity.
5460
5461 2010-04-30 Jan Djärv <jan.h.d@swipnet.se>
5462
5463 * xsettings.c: include limits.h and update file comment.
5464
5465 2010-04-30 Glenn Morris <rgm@gnu.org>
5466
5467 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
5468 Set with configure, not cpp.
5469 (LIBW): Remove, replace with $TOOLKIT_LIBW.
5470
5471 * Makefile.in (mallocobj): Remove.
5472 (otherobj): Simplify using @OTHER_OBJ@.
5473
5474 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
5475 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
5476 Don't bother making nsgui.h dependency platform-specific.
5477
5478 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
5479
5480 2010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
5481
5482 * process.c (read_process_output, exec_sentinel): Don't burp if the
5483 sentinel/filter kills the current buffer (bug#6060).
5484
5485 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
5486 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
5487 Remove unused var `args'.
5488 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
5489 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
5490 * doc.c (store_function_docstring): Use XSETCAR.
5491
5492 2010-04-28 Glenn Morris <rgm@gnu.org>
5493
5494 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
5495 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
5496
5497 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
5498
5499 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
5500 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
5501
5502 * Makefile.in (FONT_OBJ): New, set by configure.
5503 (FONT_DRIVERS): Use $FONT_OBJ.
5504
5505 * Makefile.in (LIBXMU): Set with configure, not cpp.
5506 * s/aix4-2.h (LIBXMU):
5507 * s/hpux10-20.h (LIBXMU):
5508 Remove definition, now set in configure.
5509
5510 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
5511
5512 * m/amdx86-64.h [i386]: Move this test to configure.in.
5513
5514 2010-04-27 Glenn Morris <rgm@gnu.org>
5515
5516 * Makefile.in (LIBXTR6): Set with configure, not cpp.
5517 * s/unixware.h (NEED_LIBW): Remove definition.
5518
5519 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
5520 (TOOLKIT_LIBW): New, set by configure.
5521 (@X_TOOLKIT_TYPE@): No longer define it.
5522
5523 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
5524 (MOTIF_LIBW): Set with configure, not cpp.
5525 * s/aix4-2.h (LIB_MOTIF):
5526 * s/gnu-linux.h (LIB_MOTIF):
5527 * s/unixware.h (LIB_MOTIF): Move to configure.in.
5528
5529 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
5530
5531 Reduce CPP usage.
5532 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
5533 (obj): Use autoconf for unexec instead of cpp.
5534 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
5535 definitions and undefs. Inline definitions in the only user.
5536 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
5537
5538 2010-04-27 Glenn Morris <rgm@gnu.org>
5539
5540 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
5541 since the defaults (set by the system file) are fine in most cases.
5542 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
5543 * m/ibms390x.h (START_FILES, LIB_STANDARD):
5544 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
5545 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
5546 Remove definitions, since they are set correctly in s/gnu-linux.h.
5547 * s/freebsd.h (START_FILES, LIB_STANDARD):
5548 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
5549 * s/hpux10-20.h (START_FILES):
5550 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
5551 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
5552
5553 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
5554 (MOTIF_LIBW): Use $LIBXP.
5555 (otherobj): Use $WIDGET_OBJ.
5556
5557 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
5558
5559 * Makefile.in (LIBS_MACHINE): Remove, unused.
5560
5561 Use autoconf instead of cpp for LIB_MATH.
5562 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
5563 * s/cygwin.h (LIB_MATH): Likewise.
5564 * Makefile.in (LIB_MATH): Do not define with cpp.
5565 (LIBES): Use autoconf for LIB_MATH.
5566
5567 2010-04-26 Kenichi Handa <handa@m17n.org>
5568
5569 * composite.c (Ffind_composition_internal): Fix the return value
5570 for an automatic composition.
5571
5572 2010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
5573
5574 Remove all NO_ARG_ARRAY uses.
5575 * fns.c (concat2, concat3, nconc2):
5576 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
5577 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
5578 * m/xtensa.h (NO_ARG_ARRAY):
5579 * m/template.h (NO_ARG_ARRAY):
5580 * m/sparc.h (NO_ARG_ARRAY):
5581 * m/sh3.h (NO_ARG_ARRAY):
5582 * m/mips.h (NO_ARG_ARRAY):
5583 * m/macppc.h (NO_ARG_ARRAY):
5584 * m/iris4d.h (NO_ARG_ARRAY):
5585 * m/intel386.h (NO_ARG_ARRAY):
5586 * m/ibms390x.h (NO_ARG_ARRAY):
5587 * m/ibms390.h (NO_ARG_ARRAY):
5588 * m/ibmrs6000.h (NO_ARG_ARRAY):
5589 * m/ia64.h (NO_ARG_ARRAY):
5590 * m/hp800.h (NO_ARG_ARRAY):
5591 * m/arm.h (NO_ARG_ARRAY):
5592 * m/amdx86-64.h (NO_ARG_ARRAY):
5593 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
5594
5595 2010-04-25 Eli Zaretskii <eliz@gnu.org>
5596
5597 * xdisp.c (display_line): Don't assume 2nd call to
5598 get_next_display_element cannot return zero. (Bug#6030)
5599 (iterate_out_of_display_property): New function, body from pop_it.
5600 (pop_it): Use it.
5601
5602 2010-04-24 Glenn Morris <rgm@gnu.org>
5603
5604 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
5605 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
5606 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
5607 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
5608
5609 2010-04-24 Eli Zaretskii <eliz@gnu.org>
5610
5611 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
5612 use `get_next_display_element' and `set_iterator_to_next' to
5613 advance to the next character, when looking for the character that
5614 begins the next row.
5615
5616 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
5617 definition of "struct Lisp_Symbol".
5618
5619 2010-04-24 Glenn Morris <rgm@gnu.org>
5620
5621 * Makefile.in (CRT_DIR): New variable, set by configure.
5622 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
5623 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
5624
5625 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
5626
5627 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
5628
5629 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
5630
5631 Remove redundant flags.
5632 * s/freebsd.h (C_SWITCH_SYSTEM):
5633 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
5634 * s/netbsd.h (C_SWITCH_SYSTEM):
5635 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
5636 of these.
5637
5638 Simplify m/intel386.h.
5639 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
5640 user: ecrt0.c.
5641 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
5642 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
5643 the only user: s/unixware.h.
5644 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
5645 from m/intel386.h.
5646 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
5647 moved here from m/intel386.h.
5648
5649 * m/mips.h: Remove #if 0 code.
5650
5651 2010-04-23 Eli Zaretskii <eliz@gnu.org>
5652
5653 Fix display of composed characters from L2R scripts in bidi buffers.
5654 * xdisp.c (set_iterator_to_next, next_element_from_composition):
5655 After advancing IT past the composition, resync the bidi iterator
5656 with IT's position. (Bug#5977)
5657
5658 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
5659
5660 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
5661 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
5662
5663 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
5664
5665 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
5666
5667 2010-04-23 Eli Zaretskii <eliz@gnu.org>
5668
5669 Support `display' text properties and overlay strings in bidi buffers.
5670 * xdisp.c (pop_it): When the stack is popped after displaying
5671 from a string, bidi-iterate to exit from the text portion covered
5672 by the `display' property or overlay. (Bug#5988, bug#5920)
5673
5674 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
5675
5676 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
5677 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
5678
5679 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
5680 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
5681
5682 Simplify STARTFILES definition.
5683 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
5684 relying on Makefile.in to define it.
5685 * s/cygwin.h (START_FILES): Likewise.
5686 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
5687
5688 Clean up Solaris code.
5689 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
5690 (LIB_MOTIF): Remove, configure takes care of this.
5691 (NOT_USING_MOTIF): Remove, unused.
5692 * xrdb.c: Remove #if 0-ed #include.
5693 (SYSV): Remove conditional for old SysV.
5694 * sysdep.c (closedir): Remove conditional code for Solaris,
5695 Solaris has closedir.
5696
5697 2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
5698
5699 * xsettings.c (read_and_apply_settings): Check if current_font is
5700 NULL before strcmp (Bug#6001).
5701
5702 2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
5703
5704 Clean up HP-UX files.
5705 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
5706 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
5707 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
5708 * s/hpux10-20.h: ... to the only user, here.
5709
5710 2010-04-21 Eli Zaretskii <eliz@gnu.org>
5711
5712 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
5713 use buffer-local values of paragraph-start and paragraph-separate.
5714 <paragraph_start_re, paragraph_separate_re>: Rename from
5715 fallback_paragraph_start_re and fallback_paragraph_separate_re.
5716 (Bug#5992)
5717
5718 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
5719
5720 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
5721 current_tool_bar_style are new.
5722 (store_config_changed_event): Rename from store_font_changed_event.
5723 (XSETTINGS_TOOL_BAR_STYLE): New define.
5724 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
5725 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
5726 HAVE_XFT.
5727 (something_changedCB): store_font_changed_event is now
5728 store_config_changed_event.
5729 (parse_settings): Rename from parse_xft_settings. Read
5730 non-xft xsettings outside #ifdef HAVE_XFT.
5731 (read_settings): Renamed from read_xft_settings.
5732 (apply_xft_settings): Take current settings as parameter. Do not
5733 call read_(xft)_settings.
5734 (read_and_apply_settings): New function.
5735 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
5736 read_and_apply_settings if there are settings to be read.
5737 (init_xsettings): Renamed from init_xfd_settings.
5738 Call read_and_apply_settings unconditionally.
5739 (xsettings_initialize): Call init_xsettings.
5740 (Ftool_bar_get_system_style): New function.
5741 (syms_of_xsettings): Define Qmonospace_font_name and
5742 Qtool_bar_style. Initialize current_tool_bar_style to nil.
5743 defsubr Stool_bar_get_system_style. Fprovide on
5744 dynamic-setting.
5745 Move misplaced HAVE_GCONF
5746
5747 * xsettings.h (Ftool_bar_get_system_style): Declare.
5748
5749 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
5750 Qtext, Qboth, Qboth_horiz are new.
5751 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
5752 Vtool_bar_style, tool_bar_max_label_size.
5753
5754 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
5755
5756 * keyboard.c: QClabel is new.
5757 (parse_tool_bar_item): Take out QClabel from tool bar items.
5758 Try to construct a label if ther is no QClabel.
5759 (syms_of_keyboard): Intern :label as QClabel.
5760
5761 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
5762 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
5763 New.
5764
5765 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
5766 dynamic-setting.el.
5767
5768 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
5769 (xg_make_tool_item, xg_show_toolbar_item): New function.
5770 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
5771 Call xg_make_tool_item to make a tool bar item.
5772 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
5773
5774 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
5775 into account for toolbars.
5776
5777 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
5778
5779 * data.c (make_blv): Declarations before code (Bug#5993).
5780
5781 2010-04-21 Glenn Morris <rgm@gnu.org>
5782
5783 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
5784 Define using autoconf, not cpp.
5785 (LIBXSM): New variable, set by autoconf.
5786 (LIBXT): Use $LIBXSM.
5787
5788 2010-04-21 Dan Nicolaescu <local_user@dannlt>
5789
5790 Remove NOMULTIPLEJOBS, unused.
5791 * s/template.h (NOMULTIPLEJOBS):
5792 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
5793
5794 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
5795 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
5796 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
5797 detects -znocombreloc and passes it to the linker
5798 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
5799
5800 2010-04-21 Glenn Morris <rgm@gnu.org>
5801
5802 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
5803
5804 2010-04-21 Karel Klíč <kklic@redhat.com>
5805
5806 * Makefile.in (LIBSELINUX_LIBS): New.
5807 (LIBES): Add $LIBSELINUX_LIBS.
5808 * eval.c, lisp.h (call7): New function.
5809 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
5810 (Ffile_selinux_context, Fset_file_selinux_context):
5811 New functions.
5812 (Fcopy_file): New parameter preserve-selinux-context.
5813 (Frename_file): Preserve selinux context when renaming by copy-file.
5814
5815 2010-04-21 Juanma Barranquero <lekktu@gmail.com>
5816 Eli Zaretskii <eliz@gnu.org>
5817
5818 Don't depend on cm.c or termcap.c on Windows, use stubs.
5819 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
5820 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
5821 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
5822 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
5823 (sys_tputs, sys_tgetstr): New stubs.
5824 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
5825 (tputs, tgetstr): New; define to sys_*.
5826
5827 2010-04-20 Juanma Barranquero <lekktu@gmail.com>
5828
5829 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
5830
5831 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
5832
5833 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
5834 Just signal a warning rather than an error when inside a let.
5835 (Fmake_variable_frame_local): Add the same test.
5836
5837 * font.c (syms_of_font): Make the style table vars read-only.
5838
5839 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
5840 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
5841
5842 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
5843
5844 2010-04-20 Eli Zaretskii <eliz@gnu.org>
5845
5846 Fix R2L paragraph display on TTY.
5847
5848 * xdisp.c (unproduce_glyphs): New function.
5849 (display_line): Use it when produced glyphs are discarded from R2L
5850 glyph rows.
5851 (append_composite_glyph): In R2L rows, prepend the glyph rather
5852 than appending it.
5853
5854 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
5855 rather than append it. Set up the resolved_level and bidi_type
5856 attributes of the appended glyph.
5857 (produce_special_glyphs): Mirror the backslash continuation
5858 character in R2L lines.
5859
5860 Implement display of R2L paragraphs in GUI sessions.
5861
5862 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
5863 append_stretch_glyph.
5864 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
5865 off-by-one error in computing x at end of text in the row.
5866 (append_stretch_glyph): In reversed row, prepend the glyph rather
5867 than append it. Set resolved_level and bidi_type of the glyph.
5868 (extend_face_to_end_of_line): If the row is reversed, prepend a
5869 stretch glyph whose width is such that the rightmost glyph will be
5870 drawn at the right margin of the window. Fix off-by-one error on
5871 TTY frames in testing whether a line needs face extension. Fix
5872 face extension at ZV. If this is the last glyph row, use
5873 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
5874 region face.
5875 (set_cursor_from_row, display_line): Use
5876 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
5877 row->continuation_lines_width.
5878 (next_element_from_buffer): Don't call bidi_paragraph_init if we
5879 are at ZV. Fixes a crash when reseated to ZV by
5880 try_window_reusing_current_matrix.
5881 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
5882 which happens with R2L glyph rows. Fixes a crash when inserting a
5883 character at end of an R2L line.
5884 (set_cursor_from_row): Don't be fooled by truncated rows: don't
5885 treat them as having zero-width characters. Improve comments.
5886 Don't reverse pos_before and pos_after for reversed glyph rows.
5887 Set cursor.x to negative value when the cursor might be on the
5888 left fringe.
5889 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
5890 left fringe, not the right one.
5891 (notice_overwritten_cursor, draw_phys_cursor_glyph)
5892 (erase_phys_cursor): For reversed cursor_row, support cursor on
5893 the left fringe.
5894
5895 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
5896 of continuation indicators on the fringes.
5897 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
5898 left fringe.
5899
5900 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
5901 draw cursor on the left fringe.
5902
5903 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
5904 cursor on the left fringe.
5905
5906 * dispnew.c (update_text_area): Handle reversed desired rows when
5907 the cursor is on the left fringe.
5908 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
5909 below, not by 0, for when the cursor is on the left fringe.
5910
5911 2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
5912
5913 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
5914 widget is a scrollbar.
5915
5916 2010-04-20 Kenichi Handa <handa@m17n.org>
5917
5918 * charset.c (char_charset): Consider Vcharset_non_preferred_head
5919 only when the arg CHARSET_LIST is nil.
5920
5921 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
5922
5923 Make variable forwarding explicit rather the using special values.
5924 Basically, this makes the structure of buffer-local values and object
5925 forwarding explicit in the type of Lisp_Symbols rather than use
5926 special Lisp_Objects for that. This tends to lead to slightly more
5927 verbose code, but is more C-like, simpler, and makes it easier to make
5928 sure we handled all cases, among other things by letting the compiler
5929 help us check it.
5930 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
5931 Removing forwarding objects.
5932 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
5933 (struct Lisp_Symbol): Make the various forms of variable-forwarding
5934 explicit rather than hiding them inside Lisp_Object "values".
5935 (XFWDTYPE): New macro.
5936 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
5937 (XBUFFER_LOCAL_VALUE): Remove.
5938 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
5939 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
5940 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
5941 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
5942 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
5943 Remove the Lisp_Misc_* header.
5944 (struct Lisp_Buffer_Local_Value): Redefine.
5945 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
5946 (struct Lisp_Misc_Any): Add filler to get the right size.
5947 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
5948 Lisp_Intfwd.
5949 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
5950 (DEFVAR_KBOARD): Allocate a forwarding object.
5951 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
5952 (let_shadows_global_binding_p): New function.
5953 (union Lisp_Val_Fwd): New type.
5954 (make_blv): New function.
5955 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
5956 (store_symval_forwarding, swap_in_global_binding, Fboundp)
5957 (swap_in_symval_forwarding, find_symbol_value, Fset)
5958 (let_shadows_buffer_binding_p, set_internal, default_value)
5959 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
5960 (Fkill_local_variable, Fmake_variable_frame_local)
5961 (Flocal_variable_p, Flocal_variable_if_set_p)
5962 (Fvariable_binding_locus):
5963 * xdisp.c (select_frame_for_redisplay):
5964 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
5965 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
5966 * frame.c (store_frame_param):
5967 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
5968 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
5969 value structure.
5970 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
5971 (clone_per_buffer_values): Only adjust markers into the current buffer.
5972 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
5973 (Fbuffer_local_value, set_buffer_internal_1)
5974 (swap_out_buffer_local_variables):
5975 Adapt to the new symbol value structure.
5976 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
5977 (defvar_per_buffer): Take a new arg for the fwd object.
5978 (buffer_lisp_local_variables): Return a proper alist (different fix
5979 for bug#4138).
5980 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
5981 (Fgarbage_collect): Don't handle buffer_defaults specially.
5982 (mark_object): Handle new symbol value structure rather than the old
5983 special Lisp_Misc_* objects.
5984 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
5985 * term.c (set_tty_color_mode):
5986 * bidi.c (bidi_initialize): Don't access the ->value field directly.
5987 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
5988 a buffer_local_flags.
5989 * print.c (print_object): Get rid of impossible forwarding objects.
5990
5991 2010-04-19 Eli Zaretskii <eliz@gnu.org>
5992
5993 * bidi.c (bidi_get_type, bidi_get_category)
5994 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
5995 (bidi_type_of_next_char, bidi_level_of_next_char):
5996 Declare static. Use `INLINE' rather than `inline'.
5997
5998 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
5999
6000 * dired.c (Ffile_attributes): Fix typo in docstring.
6001
6002 2010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6003
6004 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
6005 NSInteger (Bug#5811).
6006
6007 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6008
6009 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
6010 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
6011
6012 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6013
6014 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
6015
6016 2010-04-19 Chong Yidong <cyd@stupidchicken.com>
6017
6018 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
6019 terminal frames (Bug#5837).
6020
6021 2010-04-19 Eli Zaretskii <eliz@gnu.org>
6022
6023 * .gdbinit (xsubchartable): New command.
6024
6025 2010-04-19 Eli Zaretskii <eliz@gnu.org>
6026
6027 * xdisp.c (display_line): Don't write beyond the last glyph row in
6028 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
6029 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
6030 and
6031 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
6032
6033 2010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
6034
6035 * alloc.c (Fpurecopy): Hash-cons if requested.
6036 (syms_of_alloc): Update purify-flag docstring.
6037
6038 2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
6039
6040 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
6041 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
6042
6043 2010-04-17 Eli Zaretskii <eliz@gnu.org>
6044
6045 Fix a crash when an NSM character is inserted at BEGV.
6046
6047 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
6048 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
6049 NEUTRAL_B or UNKNOWN_BT.
6050
6051 2010-04-16 Eli Zaretskii <eliz@gnu.org>
6052
6053 * xdisp.c (set_cursor_from_row): Don't consider possibility of
6054 other rows with cursor unless they are different from this row and
6055 this row is part of a continued line. (Bug#5943)
6056
6057 2010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
6058
6059 * s/freebsd.h: Restore osreldate.h include.
6060 Suggested by Naohiro Aota.
6061
6062 2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
6063
6064 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
6065
6066 2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
6067
6068 * s/cygwin.h: Avoid linking against static libgcc.
6069
6070 2010-04-15 Juri Linkov <juri@jurta.org>
6071
6072 * window.c: Add Qscroll_command.
6073 Remove Vscroll_preserve_screen_position_commands.
6074 (window_scroll_pixel_based, window_scroll_line_based): Check the
6075 `scroll-command' property on the last command instead of searching
6076 the last command in Vscroll_preserve_screen_position_commands.
6077 (syms_of_window): Initialize and staticpro `Qscroll_command'.
6078 Put Qscroll_command property on Qscroll_up and Qscroll_down.
6079 (scroll-preserve-screen-position): Doc fix.
6080 (Vscroll_preserve_screen_position_commands): Remove variable.
6081
6082 2010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
6083
6084 * xdisp.c (message): Do not use NO_ARG_ARRAY.
6085
6086 2010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
6087
6088 Reduce cpp use in Makefile.in.
6089 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
6090 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
6091 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
6092 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
6093 (CRT0_COMPILE): Remove, inline it in the only user.
6094
6095 2010-04-14 Juri Linkov <juri@jurta.org>
6096
6097 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
6098 `scroll-up-command' and `M-v' from `scroll-down' to
6099 `scroll-down-command'.
6100
6101 2010-04-14 Juri Linkov <juri@jurta.org>
6102
6103 * window.c (Vscroll_preserve_screen_position_commands): New variable
6104 with the default value as the list of Qscroll_down and Qscroll_up.
6105 (window_scroll_pixel_based, window_scroll_line_based): Search the
6106 last command in the list Vscroll_preserve_screen_position_commands
6107 instead of comparing with Qscroll_up and Qscroll_down.
6108
6109 2010-04-13 Jan Djärv <jan.h.d@swipnet.se>
6110
6111 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
6112 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
6113 does that.
6114
6115 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
6116 to zero.
6117
6118 2010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
6119
6120 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
6121
6122 Try to solve the problem of spurious EOF chars in long lines of text
6123 sent to interactive subprocesses.
6124 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
6125 (system_process_attributes): Remove unused var `ttotal'.
6126 * process.c (send_process): Don't bother breaking long line with EOF
6127 chars when talking to ttys any more.
6128 (wait_reading_process_output): Output a warning when called in such
6129 a way that it could block without being interruptible.
6130
6131 Try to detect file modification within the same second.
6132 * buffer.h (struct buffer): New field modtime_size.
6133 * buffer.c (reset_buffer): Initialize it.
6134 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
6135 (Fverify_visited_file_modtime): Check it.
6136 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
6137 (Fset_visited_file_modtime): Set (or clear) it.
6138
6139 2010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
6140
6141 * process.c (status_notify): Remove unused var `ro'.
6142
6143 2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
6144
6145 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
6146 more than one visual (Bug#5938).
6147
6148 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
6149
6150 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
6151 Undefine.
6152
6153 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
6154
6155 Remove C_SWITCH_SYSTEM_TEMACS.
6156 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
6157 (malloc, realloc, free): Use emacs, not temacs for conditional
6158 definition.
6159
6160 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
6161 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
6162
6163 Use autoconf, not cpp for some variables.
6164 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
6165 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
6166 (ALL_CFLAGS): Use them as make variables.
6167 (really-lwlib, really-oldXMenu): Do not pass them.
6168
6169 2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
6170
6171 * xmenu.c (apply_systemfont_to_dialog): New.
6172 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
6173
6174 2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
6175
6176 * process.c (exec_sentinel): Preserve current-buffer.
6177
6178 * process.c (read_process_output): Move the save-current-buffer to
6179 apply to both the filter and the non-filter branches.
6180
6181 2010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
6182
6183 * s/msdos.h (UNEXEC): New definition.
6184
6185 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6186
6187 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
6188 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
6189
6190 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
6191 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
6192 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
6193 TRY_WINDOW_CHECK_MARGINS.
6194
6195 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
6196 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
6197 width only when it is for padding.
6198
6199 2010-04-09 Jan Djärv <jan.h.d@swipnet.se>
6200
6201 * xfns.c (Fx_show_tip): Call try_window in a loop until
6202 fonts_changed_p is zero (Bug#2423).
6203
6204 2010-04-08 Eli Zaretskii <eliz@gnu.org>
6205
6206 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
6207 the end of TEXT_AREA. (Bug#5856)
6208
6209 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
6210
6211 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
6212 HAVE_GCONF.
6213
6214 2010-04-08 Eli Zaretskii <eliz@gnu.org>
6215
6216 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
6217 prev.orig_type, for resolving type of NSM. (Bug#5858)
6218
6219 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
6220
6221 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
6222 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
6223 in current_font.
6224 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
6225 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
6226 New functions.
6227 (syms_of_xsettings): Initialize current_font.
6228 defsubr Sfont_get_system_normal_font.
6229
6230 * xsettings.h (Ffont_get_system_normal_font)
6231 (xsettings_get_system_normal_font): Declare.
6232
6233 * xfns.c (extern xlwmenu_default_font): Remove.
6234 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
6235 to xlwmenu.c.
6236
6237 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
6238 menu items in UTF-8.
6239
6240 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
6241 (apply_systemfont_to_menu): New function.
6242 (set_frame_menubar, create_and_show_popup_menu): Call
6243 apply_systemfont_to_menu.
6244
6245 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
6246
6247 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
6248 FRAME_LINE_TO_PIXEL_Y.
6249
6250 * xterm.c (x_set_window_size_1): Don't add border_width/height to
6251 pixelwidth/height.
6252
6253 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
6254
6255 Simplify code for HP machines.
6256 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
6257 for GNU_LINUX, not needed.
6258 (UNEXEC, NEED_BSDTTY): Move definitions...
6259 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
6260
6261 * m/iris4d.h (UNEXEC): Move definition ...
6262 * s/irix6-5.h (UNEXEC): ... here.
6263
6264 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
6265
6266 * xfns.c (set_machine_and_pid_properties): New function.
6267 (Fx_create_frame): Call set_machine_and_pid_properties.
6268
6269 2010-04-03 Eli Zaretskii <eliz@gnu.org>
6270
6271 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
6272 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
6273 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
6274
6275 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
6276 in this function. (Bug#5703)
6277
6278 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
6279
6280 * nsterm.h: Fix last change.
6281
6282 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
6283
6284 * m/intel386.h (NO_REMAP): Move definition ...
6285 * s/msdos.h (NO_REMAP): ... here.
6286
6287 * m/vax.h (CRT0_DUMMIES): Remove, unused.
6288
6289 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
6290 used on those platforms.
6291
6292 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
6293
6294 Remove extern errno declarations.
6295 * xterm.c:
6296 * xrdb.c:
6297 * w32term.c:
6298 * unexec.c:
6299 * unexaix.c:
6300 * sysdep.c:
6301 * process.c:
6302 * lread.c:
6303 * keyboard.c:
6304 * floatfns.c:
6305 * filelock.c:
6306 * fileio.c:
6307 * emacs.c (main):
6308 * ecrt0.c:
6309 * dispnew.c:
6310 * callproc.c:
6311 * buffer.c: Remove errno extern declarations.
6312 * s/netbsd.h (NEED_ERRNO): Remove.
6313
6314 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
6315
6316 Remove all uses of LIBX11_SYSTEM.
6317 * Makefile.in (LIBX11_SYSTEM): Remove.
6318 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
6319 instead.
6320
6321 2010-04-01 Eli Zaretskii <eliz@gnu.org>
6322
6323 Remove support for DJGPP v1.x (bug#5813).
6324
6325 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
6326 * s/msdos.h:
6327 * unexec.c (make_hdr, copy_text_and_data):
6328 * sysdep.c (wait_for_termination, sys_subshell):
6329 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
6330 (IT_set_terminal_modes, __write, _rename, gethostname)
6331 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
6332 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
6333 the value of __DJGPP__.
6334 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
6335 compatibility code.
6336 * lread.c:
6337 * gmalloc.c (memalign):
6338 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
6339 * emacs.c (main):
6340 * dosfns.c (init_dosfns):
6341 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
6342
6343 2010-04-01 Eli Zaretskii <eliz@gnu.org>
6344
6345 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
6346 string with `cursor' property comes from an `after-string'
6347 overlay. (Bug#5816)
6348
6349 2010-04-01 Glenn Morris <rgm@gnu.org>
6350
6351 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
6352 Define as Makefile variables.
6353 (LIBX): Use above variables rather than directly using autoconf.
6354
6355 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
6356
6357 Clean up BSD_SYSTEM use.
6358 * xterm.c:
6359 * process.c:
6360 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
6361 for including <sys/ioctl.h>.
6362 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
6363 code is only used for MSDOS.
6364
6365 2010-03-31 Juri Linkov <juri@jurta.org>
6366
6367 * image.c: Add `Qextension_data'.
6368 (syms_of_image): Initialize and staticpro `Qextension_data'.
6369 (Fimage_metadata): Rename from `Fimage_extension_data'.
6370 (gif_load): Put GIF extension data to the property
6371 `Qextension_data'.
6372
6373 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
6374
6375 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
6376 * nsterm.h: Fix prototype.
6377
6378 2010-03-31 Eli Zaretskii <eliz@gnu.org>
6379
6380 * xdisp.c (highlight_trailing_whitespace): Support highlight of
6381 trailing whitespace in right-to-left rows.
6382
6383 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
6384
6385 Get rid of the direct_output optimizations.
6386 * keyboard.c (nonundocount): Remove extern declaration.
6387 (command_loop_1): Remove brittle optimisation for cheap and
6388 common operations.
6389 * xdisp.c (redisplay_internal): Don't bother checking
6390 redisplay_performed_directly_p any more.
6391 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
6392 any more.
6393 * dispnew.c (redisplay_performed_directly_p)
6394 (direct_output_for_insert, direct_output_forward_char):
6395 * dispextern.h (redisplay_performed_directly_p)
6396 (direct_output_for_insert, direct_output_forward_char): Remove.
6397 * cmds.c (nonundocount): Make it static.
6398
6399 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
6400
6401 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
6402
6403 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
6404
6405 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
6406 invisible (Bug#5766).
6407
6408 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
6409
6410 * xdisp.c (x_consider_frame_title, update_window_cursor):
6411 Remove HAVE_NS conditionals.
6412 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
6413
6414 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
6415 filename for the title.
6416 (ns_set_doc_edited): Do nothing if the selected window is a
6417 minibuffer window.
6418
6419 * nsterm.h: Add prototypes for ns_set_name_as_filename and
6420 ns_set_doc_edited.
6421
6422 * nsterm.m: Remove unneeded prototype.
6423
6424 2010-03-31 Glenn Morris <rgm@gnu.org>
6425
6426 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
6427 in the DOC file. (Bug#5336)
6428
6429 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
6430
6431 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
6432
6433 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
6434
6435 * window.c (keys_of_window): Remove redundant/overridden bindings.
6436
6437 2010-03-30 Eli Zaretskii <eliz@gnu.org>
6438
6439 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
6440 Restore original behavior when the iterator is not bidi_p.
6441
6442 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
6443
6444 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
6445
6446 2010-03-30 Eli Zaretskii <eliz@gnu.org>
6447
6448 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
6449 are outside the range of cached character positions.
6450
6451 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
6452
6453 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
6454
6455 2010-03-30 Eli Zaretskii <eliz@gnu.org>
6456
6457 Initial support for bidirectional editing.
6458
6459 * Makefile.in (obj): Include bidi.o.
6460 (bidi.o): New target.
6461
6462 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
6463 ($(BLD)/bidi.$(O)): New target.
6464
6465 * bidi.c: New file.
6466
6467 * buffer.h (struct buffer): New members bidi_display_reordering
6468 and bidi_paragraph_direction.
6469
6470 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
6471 and bidi_paragraph_direction.
6472 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
6473 and bidi-paragraph-direction.
6474 (Fbuffer_swap_text): Swap the values of
6475 bidi_display_reordering and bidi_paragraph_direction.
6476
6477 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
6478 (bidi_type_t, bidi_dir_t): New types.
6479 (bidi_saved_info, bidi_stack, bidi_it): New structures.
6480 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
6481 prev_stop, base_level_stop, and eol_pos.
6482 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
6483 (IT_STACK_SIZE): Enlarge to 5.
6484 (struct glyph_row): New member reversed_p.
6485 <string_buffer_position>: Update prototype.
6486 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
6487 glyph_row if bidi_it.paragraph_dir == R2L.
6488 (struct glyph): New members resolved_level and bidi_type.
6489
6490 * dispnew.c (direct_output_forward_char): Give up if we need bidi
6491 processing or buffer's direction is right-to-left.
6492 (prepare_desired_row): Preserve the reversed_p flag.
6493 (row_equal_p): Compare the reversed_p attributes as well.
6494
6495 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
6496 bidi_init_it and set it->paragraph_embedding from the current
6497 buffer's value of bidi_paragraph_direction.
6498 (reseat_1): Initialize bidi_it.first_elt.
6499 (set_iterator_to_next, next_element_from_buffer): Use the value of
6500 paragraph_embedding to determine the paragraph direction.
6501 (set_iterator_to_next): Under bidi reordering, call
6502 bidi_get_next_char_visually. Call bidi_paragraph_init if the
6503 new_paragraph flag is set in the bidi iterator.
6504 (next_element_from_buffer): If bidi_it.first_elt is set,
6505 initialize paragraph direction and find the first character to
6506 display in the visual order. If reseated to a middle of a line,
6507 prime the bidi iterator starting at the line's beginning. Handle
6508 the situation where we overstepped stop_charpos due to
6509 non-linearity of the bidi iteration. Likewise for when we back up
6510 beyond the previous stop_charpos. When moving across stop_charpos,
6511 record it in prev_stop.
6512 (display_line): Set row->end and it->start for the next row to the
6513 next character in logical order. Always extend reversed_p rows to
6514 the end of line, even if they end at ZV. Copy the reversed_p flag
6515 to the next glyph row. Keep calling set_cursor_from_row for
6516 bidi-reordered rows even if we already have a possible candidate
6517 for cursor position. Set row_end after all the row's glyphs have
6518 been produced, by looping over the glyphs. Record the position
6519 after EOL in it->eol_pos, and use it to set end_pos of the last
6520 row produced for a continued line.
6521 <Qright_to_left, Qleft_to_right>: New variables.
6522 (syms_of_xdisp): Initialize and staticpro them.
6523 (string_buffer_position_lim): New function.
6524 (string_buffer_position): Most of code moved to
6525 string_buffer_position_lim. Last argument and return value are
6526 now EMACS_INT; all callers changed.
6527 (set_cursor_from_row): Rewritten to support bidirectional text and
6528 reversed glyph rows.
6529 (text_outside_line_unchanged_p, try_window_id): Disable
6530 optimizations if we are reordering bidirectional text and the
6531 paragraph direction can be affected by the change.
6532 (append_glyph, append_composite_glyph)
6533 (produce_image_glyph, append_stretch_glyph): Set the
6534 resolved_level and bidi_type members of each glyph.
6535 (append_glyph): If the glyph row is reversed, prepend the glyph
6536 rather than appending it.
6537 (handle_stop_backwards): New function.
6538 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
6539 (reseat): call handle_stop_backwards to recompute prev_stop and
6540 base_level_stop for the new position.
6541 (handle_invisible_prop): Under bidi iteration, skip invisible text
6542 using bidi_get_next_char_visually. If we are `reseat'ed, init the
6543 paragraph direction. Update IT->prev_stop after skipping
6544 invisible text.
6545 (move_it_in_display_line_to): New variables prev_method
6546 and prev_pos. Compare for strict equality in
6547 BUFFER_POS_REACHED_P.
6548 (try_cursor_movement): Examine all the candidate rows that occlude
6549 point, to return the best match. If rows are bidi-reordered
6550 and point moved backwards, back up to the row that is not a
6551 continuation line, and start looking for a suitable row from
6552 there.
6553
6554 * term.c (append_glyph): Reverse glyphs by pre-pending them,
6555 rather than appending, if the glyph_row's reversed_p flag is set.
6556 Set the resolved_level and bidi_type members of each glyph.
6557
6558 * .gdbinit (pbiditype): New command.
6559 (pgx): Use it to display bidi level and type of the glyph.
6560 (pitx): Display some bidi information about the iterator.
6561 (prowlims, pmtxrows): New commands.
6562
6563 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
6564
6565 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
6566 * s/usg5-4.h (LIBS_DEBUG):
6567 * s/irix6-5.h (C_DEBUG_SWITCH):
6568 * s/gnu-linux.h (LIBS_DEBUG):
6569 * s/darwin.h (LIBS_DEBUG):
6570 * s/bsd-common.h (LIBS_DEBUG):
6571 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
6572 * m/iris4d.h (LIBS_DEBUG):
6573 * m/hp800.h (LIBS_DEBUG): Remove definitions.
6574
6575 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
6576 (LIBS_DEBUG): Remove definition.
6577
6578 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
6579
6580 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
6581 Windows.
6582
6583 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6584
6585 * process.c (Fmake_network_process): Don't call turn_on_atimers around
6586 `connect' (Bug#5723).
6587
6588 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
6589
6590 * process.c (Fmake_network_process): Call `select' for interrupted
6591 `connect' rather than creating new socket (Bug#5173).
6592
6593 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
6594
6595 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
6596
6597 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
6598
6599 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
6600
6601 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6602
6603 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
6604 XLoadQueryFont.
6605
6606 2010-03-24 Kenichi Handa <handa@m17n.org>
6607
6608 * coding.c (decode_coding_ccl): Fix previous change for the
6609 multibyte case.
6610 (encode_coding_ccl): Don't setup ccl program here. Fix for the
6611 case that the output buffer is fullfilled.
6612 (encode_coding): Setup ccl program here.
6613
6614 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
6615
6616 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
6617
6618 Simplify LIBS_MACHINE definitions.
6619 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
6620 * m/iris4d.h (LIBS_MACHINE): Likewise.
6621 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
6622 * s/aix4-2.h (LIBS_SYSTEM): ... here.
6623 * s/netbsd.h: Remove commented out code.
6624
6625 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
6626
6627 Remove dead code dealing with POSIX_SIGNALS.
6628 * atimer.c (set_alarm): Remove dead code, all USG systems define
6629 POSIX_SIGNALS.
6630 * data.c (arith_error): Likewise.
6631 * keyboard.c (input_available_signal, handle_user_signal)
6632 (interrupt_signal): Likewise.
6633 * process.c (sigchld_handler): Likewise.
6634 (create_process): Remove if 0 code. Remove HPUX conditional when
6635 !defined (POSIX_SIGNALS), it cannot be true.
6636 * syssignal.h: Remove USG5_4 and USG conditionals when
6637 !POSIX_SIGNALS, they cannot be true.
6638
6639 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
6640 NO_SOCK_SIGIO, not used anymore.
6641
6642 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
6643
6644 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
6645 support vax on BSDs.
6646
6647 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
6648 * s/aix4-2.h (ORDINARY_LINK): ... here.
6649
6650 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
6651
6652 * Makefile.in (abs_builddir): Define.
6653 (bootstrap_exe): Use it.
6654 (VPATH): Use $(srcdir) instead of @srcdir@.
6655
6656 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
6657
6658 * Makefile.in (bootstrap_exe): Use an absolute name.
6659
6660 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
6661
6662 Remove support for old GNU/Linux using libc version 5.
6663 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
6664 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
6665
6666 Consolidate redundant definitions in s/bsd-common.h.
6667 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6668 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6669 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
6670 doing it in all files that include this one.
6671 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6672 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6673 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6674 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6675 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6676 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6677 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6678 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6679 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6680
6681 Consolidate redundant definitions.
6682 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
6683 it's undefined in all files that include this one.
6684 (POSIX_SIGNALS): Define here instead of doing it in all files that
6685 include this one.
6686 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6687 (POSIX_SIGNALS): Do not define.
6688 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6689 (POSIX_SIGNALS): Do not define.
6690 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6691 (POSIX_SIGNALS): Do not define.
6692
6693 Remove support for old UNIX System V systems.
6694 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
6695 * s/usg-5-4-2.h: Remove.
6696
6697 Remove support for Solaris on PPC and for old versions.
6698 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
6699 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
6700 that cancel each other.
6701 * s/sol2-3.h:
6702 * s/sol2-4.h:
6703 * s/sol2-5.h: Remove.
6704 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
6705 (NO_REMAP): Remove, unused.
6706 (UNEXEC): Move definition ...
6707 * s/aix4-2.h (UNEXEC): ... here.
6708
6709 * s/openbsd.h: Remove support for non-ELF and for systems that do
6710 not support shared libraries.
6711 * s/netbsd.h:
6712 * s/freebsd.h: Likewise.
6713
6714 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
6715
6716 Remove non-working support for lynxos 3.0.
6717 * s/lynxos.h: Remove file.
6718
6719 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
6720 COFF_BSD_SYMBOLS, nothing defines it anymore.
6721
6722 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
6723
6724 Remove obsolete uses of HAVE_SHM.
6725 * emacs.c (standard_args):
6726 (Fdump_emacs):
6727 (syms_of_emacs): Remove code depending on HAVE_SHM.
6728
6729 * alloc.c: Remove HAVE_SHM dependent definition.
6730
6731 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
6732
6733 2010-03-18 Glenn Morris <rgm@gnu.org>
6734
6735 * emacs.c (USAGE4): Hard-code bug address.
6736 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
6737 (bug_reporting_address): Remove.
6738 (main): Don't call bug_reporting_address.
6739
6740 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
6741 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
6742
6743 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
6744
6745 * xfns.c (Fx_create_frame):
6746 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
6747 on left.
6748
6749 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
6750
6751 * editfns.c (Fformat): Account for string precision when computing
6752 field width (Bug#5710).
6753
6754 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
6755
6756 * xfns.c (Fx_create_frame): Set default to Qright.
6757
6758 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
6759 all window systems.
6760
6761 2010-03-12 Eli Zaretskii <eliz@gnu.org>
6762
6763 These changes remove termcap.c from the build on Posix platforms.
6764 * Makefile.in (termcapobj): Move termcap.o from here...
6765 (MSDOS_OBJ): ...to here.
6766 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
6767 now identical to when LIBS_TERMCAP is defined.
6768
6769 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
6770
6771 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
6772
6773 * config.in: Regenerated. (See top-level ChangeLog.)
6774
6775 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
6776
6777 * Branch for 23.2.
6778
6779 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
6780
6781 Cleanup setup of gl_state in various parts of the code.
6782 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
6783 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
6784 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
6785 (skip_chars):
6786 * regex.c (regex_compile): Use it.
6787 (re_compile_pattern): Don't set gl_state.current_syntax_table since
6788 it's now set in regex_compile when/if we need it.
6789
6790 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
6791
6792 Make it possible to C-g in a tight bytecode loop again (bug#5680).
6793 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
6794 (QUIT): Use it to consolidate code and remove redundancy.
6795 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
6796
6797 * regex.c (regex_compile): Setup gl_state as well.
6798
6799 * syntax.c (skip_chars): Setup gl_state (bug#3823).
6800 (in_classes): Use CONSP before XCAR/XCDR.
6801
6802 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
6803
6804 * keymap.c (Fwhere_is_internal): Use Fequal to compare
6805 definitions, so that keyboard macros are correctly handled
6806 (Bug#5481).
6807
6808 2010-03-02 Eli Zaretskii <eliz@gnu.org>
6809
6810 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
6811 text that could be relocated inside the call to emacs_mule_char.
6812 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
6813 (CODING_DECODE_CHAR): Add a comment describing its purpose.
6814
6815 2010-03-02 Kenichi Handa <handa@m17n.org>
6816
6817 * character.c (parse_str_as_multibyte): Fix handling of the
6818 multibyte form of raw-bytes.
6819 (str_as_multibyte): Likewise.
6820
6821 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
6822 form of raw-bytes.
6823
6824 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
6825
6826 * charset.c (load_charset_map_from_file)
6827 (load_charset_map_from_vector): Zero out allocated
6828 charset_map_entries before using them.
6829
6830 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
6831
6832 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
6833
6834 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
6835
6836 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
6837 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
6838
6839 2010-02-26 Kenichi Handa <handa@m17n.org>
6840
6841 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
6842
6843 * xdisp.c (reseat_to_string): Fix previous change.
6844
6845 2010-02-26 David Reitter <david.reitter@gmail.com>
6846
6847 * nsfont.m (nsfont_draw): ns_antialias_text should be a
6848 Lisp_Object (Bug#4736).
6849
6850 2010-02-25 Kenichi Handa <handa@m17n.org>
6851
6852 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
6853
6854 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
6855
6856 * xterm.c (XTflash): Move declarations before statements.
6857
6858 * gtkutil.c (xg_get_gdk_display): Remove (unused).
6859 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
6860 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
6861 (xg_create_tool_bar): Remove unused variables.
6862 (x_wm_set_size_hint): Move declarations before statements.
6863 (xg_create_frame_widgets): Remove variable grav.
6864
6865 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
6866
6867 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
6868
6869 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
6870
6871 * term.c (fatal): Add a final \n if needed (bug#5596).
6872
6873 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
6874
6875 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
6876
6877 2010-02-18 Glenn Morris <rgm@gnu.org>
6878
6879 * callint.c (Finteractive): Doc fix.
6880
6881 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
6882
6883 * coding.c (record_conversion_result):
6884 Handle CODING_RESULT_INSUFFICIENT_DST.
6885 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
6886 memory allocation error.
6887
6888 2010-02-17 Kenichi Handa <handa@m17n.org>
6889
6890 * coding.c (decode_coding_ccl): Don't setup ccl program here.
6891 Fix for the case that the output buffer is fullfilled.
6892 (decode_coding): Setup ccl program here. Keep looping when the
6893 decoder stopped because the output buffer is
6894 fullfilled (bug#5534).
6895
6896 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
6897
6898 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
6899
6900 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
6901 bug #5571.
6902 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
6903 overdrawn.
6904
6905 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
6906
6907 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
6908 doing_interact here.
6909 (ice_connection_closed): New function.
6910 (x_session_check_input, smc_die_CB, ice_io_error_handler)
6911 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
6912 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
6913 returns I/O error.
6914 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
6915 bug #5512.
6916
6917 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
6918
6919 * nsfont.m (nsfont_open): The system's value for the font descent
6920 is negative, so round it down to avoid clipping.
6921
6922 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
6923
6924 * charset.c (load_charset_map_from_file)
6925 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
6926 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
6927
6928 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
6929
6930 * charset.c (load_charset_map_from_file): Allocate large
6931 charset_map_entries structure on the heap rather than the stack.
6932 (Bug#5526).
6933
6934 2010-01-31 Kenichi Handa <handa@m17n.org>
6935
6936 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
6937 size in NAME is invalid, return -1 (Bug#5396).
6938
6939 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
6940
6941 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
6942 <deactivated@gmail.com> (Bug#3605).
6943
6944 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
6945
6946 * fileio.c (Frename_file): Correctly rename symlinks to
6947 directories (Bug#5496).
6948
6949 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
6950
6951 * nsterm.m (ns_ring_bell): Handle visible bell like X.
6952
6953 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
6954
6955 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
6956
6957 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
6958
6959 * frame.c (DEFAULT_ROWS): Change default to 35.
6960
6961 * xfns.c (x_default_font_parameter): Change default XFT font to
6962 monospace-10 (Bug#3643).
6963
6964 2010-01-29 Eli Zaretskii <eliz@gnu.org>
6965
6966 * w32inevt.c (key_event): Remove unnecessary comparison of
6967 event->uChar.AsciiChar with 128.
6968
6969 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
6970
6971 * fileio.c (Frename_file): Fix last change (Bug#5487).
6972
6973 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
6974
6975 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
6976
6977 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
6978
6979 * xfns.c (Fx_create_frame): Remove window size matching code from
6980 2010-01-15.
6981 (x_get_current_desktop, x_get_desktop_workarea): Remove.
6982
6983 2010-01-27 Jason Rumney <jasonr@gnu.org>
6984
6985 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
6986 (key_event): Use unicode for characters 128 and higher (Bug#4567).
6987
6988 2010-01-27 Kenichi Handa <handa@m17n.org>
6989
6990 * regex.c (analyse_first): Fix setting of fastmap for unibyte
6991 pattern string (Bug#4209).
6992
6993 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
6994
6995 * fileio.c (Frename_file): Call copy-directory and
6996 delete-directory for directories, in order to handle cross-device
6997 renaming (Bug#3353).
6998
6999 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
7000
7001 * xfns.c (Fx_create_frame): If frame height is too big, try
7002 sizes 24 and 10. Bug #3643.
7003
7004 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
7005
7006 Try and fix bug#788, hopefully for real this time.
7007 * keymap.c (shadow_lookup): Add `remap' arg.
7008 (describe_map, describe_vector): Update calls to shadow_lookup.
7009 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
7010 `remapped' so this flag is applicable to `sequence'. Be careful to
7011 perform remapping during shadow_lookup check of remapped_sequences.
7012
7013 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
7014
7015 * image.c (png_load): Use png_sig_cmp instead of the obsolete
7016 png_check_sig, which has been removed in libpng 1.4.
7017
7018 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
7019
7020 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
7021 lacks this header file).
7022
7023 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7024
7025 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
7026 as in Emacs 22.
7027
7028 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7029
7030 * lisp.h (make_pure_string): String pointer arg now points to const.
7031
7032 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
7033 args now point to const.
7034
7035 2010-01-22 Eli Zaretskii <eliz@gnu.org>
7036
7037 * lread.c (Fload): Don't treat files without .elc extension as
7038 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
7039 them. (bug#5303)
7040
7041 2010-01-20 Kenichi Handa <handa@m17n.org>
7042
7043 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
7044 treat the source as actual byte sequence.
7045
7046 2010-01-19 Alan Mackenzie <acm@muc.de>
7047
7048 Fix spurious before-change-functions invocation from (insert ?\n).
7049 * textprop.c (set_text_properties): Rename parameter
7050 `signal_after_change_p' to `coherent_change_p', and make the
7051 invocation of `modify_region' conditional on it.
7052
7053 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
7054
7055 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
7056 for debug purpose.
7057 (syms_of_xsettings): Declare xft-settings.
7058
7059 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
7060
7061 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
7062
7063 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
7064
7065 * xterm.c (event_handler_gdk): Block input (Bug#5037).
7066
7067 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
7068
7069 * emacs.c (standard_args): Adjust arg priorities to reflect how
7070 they are processed in startup.el.
7071
7072 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
7073
7074 * Makefile.in (lisp, shortlisp): Update.
7075
7076 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
7077
7078 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
7079 code, link the new kboard into all_kboard before running Lisp code,
7080 and protect the new terminal with GCPRO (Bug#5365).
7081 (x_term_init): Remove unused var `atom'.
7082 (x_delete_display, x_delete_terminal): Remove unused var `i'.
7083
7084 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
7085
7086 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
7087 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
7088 to find out usable size of the desktop. Don't make frames larger than
7089 this. Bug #3643.
7090
7091 2010-01-15 Kenichi Handa <handa@m17n.org>
7092
7093 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
7094
7095 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
7096
7097 * nsterm.m (Qnone): Define.
7098
7099 * nsfns.m (Qnone): Move definition to nsterm.m.
7100
7101 2010-01-14 Kenichi Handa <handa@m17n.org>
7102
7103 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
7104 systems.
7105
7106 2010-01-14 Kenichi Handa <handa@m17n.org>
7107
7108 Make auto-composition work on all buffers even if they are
7109 fundamental mode.
7110
7111 * composite.c (Vauto_composition_mode): New variable.
7112 (composition_compute_stop_pos): Check Vauto_composition_mode
7113 instead of Vauto_composition_function.
7114 (composition_adjust_point, Ffind_composition_internal): Likewise.
7115 (syms_of_composite): Declare Lisp variable
7116 "auto-composition-mode" here.
7117
7118 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
7119
7120 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
7121 during call to vendor-specific-keysyms (Bug#5365).
7122
7123 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7124
7125 * keyboard.c (input_available_signal) [SYNC_INPUT]:
7126 Call SIGNAL_THREAD_CHECK (Bug#5333).
7127
7128 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
7129 Call SIGNAL_THREAD_CHECK.
7130
7131 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
7132
7133 Try to fix bug#5314. This is probably not the final word, tho.
7134 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
7135 recent-auto-save-p as a side-effect.
7136 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
7137 * buffer.c (Fkill_buffer, reset_buffer):
7138 * editfns.c (Fsubst_char_in_region):
7139 * fileio.c (Finsert_file_contents, Fdo_auto_save)
7140 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
7141
7142 2010-01-13 Kenichi Handa <handa@m17n.org>
7143
7144 Display buffer name, etc. in mode line by composing correctly.
7145
7146 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
7147 STRING is not nil.
7148 (display_mode_element): Adjust for the change of
7149 decode_mode_spec and display_line.
7150 (decode_mode_spec): Change arg MULTIBYTE to STRING.
7151 (display_string): Handle the case that STRING is non-null and
7152 LISP_STRING is not nil.
7153
7154 * xterm.c (x_draw_composite_glyph_string_foreground):
7155 Pay attention to s->face->overstrike.
7156
7157 * composite.c (composition_reseat_it): Don't check PT if STRING is
7158 non nil.
7159
7160 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7161
7162 * keyboard.c (read_char): Don't apply previous change when current
7163 buffer is unchanged by command execution.
7164
7165 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
7166
7167 * keyboard.c (read_char): Return after executing from special map.
7168
7169 2010-01-12 Glenn Morris <rgm@gnu.org>
7170
7171 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
7172 bug-gnu-emacs rather than emacs-pretest-bug.
7173
7174 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
7175
7176 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
7177 initializing the Lisp variables that depend on them.
7178
7179 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7180
7181 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
7182 Clear areas that will not be updated after change of menu bar lines.
7183 Clear the menu bar window's current matrix when the window gets empty.
7184
7185 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
7186
7187 * intervals.h, textprop.c (extend_property_ranges): Return value
7188 and args changed. Discard properties that begin at or after the
7189 new end (Bug#5306).
7190
7191 * editfns.c (Fformat): Caller changed.
7192
7193 * nsterm.m (ns_set_default_prefs): Delete function.
7194 (syms_of_nsterm): Initialize ns_command_modifier,
7195 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
7196 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
7197
7198 * xdisp.c (pos_visible_p): Check for invisible text at the correct
7199 position (Bug#4040).
7200
7201 2010-01-09 Eli Zaretskii <eliz@gnu.org>
7202
7203 * editfns.c (Ffloat_time): Doc fix.
7204
7205 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
7206
7207 * xfns.c (Fx_create_frame): Don't create frame larger than display
7208 by default bug#3643.
7209
7210 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7211
7212 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
7213 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
7214 windows above internal border.
7215
7216 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
7217 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
7218 windows above internal border.
7219
7220 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
7221 tool bar windows specially.
7222
7223 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
7224
7225 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
7226 specially.
7227 (XTflash): Take account of menu bar height.
7228
7229 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
7230 specially.
7231
7232 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
7233
7234 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
7235 also be true before we can return early (bug #5339).
7236
7237 2010-01-06 David Reitter <david.reitter@gmail.com>
7238
7239 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
7240 (Fns_display_usable_bounds): Rewrite, computing bounds properly
7241 (Bug#3233).
7242
7243 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
7244
7245 * font.c (font_open_entity): Enable chache and call cached_font_ok
7246 for the driver if defined.
7247 (QCuser_spec): New symbol.
7248 (font_spec_from_name): Save name as user-spec.
7249 (font_load_for_lface): Keep user-spec instead of name.
7250 (font_open_by_name): Save name as user-spec.
7251 (syms_of_font): Initialize QCuser_spec.
7252 (font_clear_prop): Clear name if it exists in font (bug#5157).
7253
7254 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
7255 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
7256 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
7257
7258 * font.h (struct font_driver): Add cached_font_ok.
7259
7260 * xterm.c (x_clear_frame): Queue draw for scroll bars.
7261
7262 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
7263
7264 * xterm.c (x_new_font): Move code for setting rows/cols before
7265 resizing ...
7266 (x_set_window_size): ... to here. Bug #2568.
7267
7268 * gtkutil.c (xg_clear_under_internal_border): New function.
7269 (xg_frame_resized, xg_frame_set_char_size):
7270 Call xg_clear_under_internal_border.
7271 (xg_update_scrollbar_pos): Clear under old scroll bar position.
7272
7273 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
7274
7275 * keyboard.c (read_key_sequence): Catch keyboard switch after
7276 making a new tty frame (Bug#5095).
7277
7278 2010-01-05 Kenichi Handa <handa@m17n.org>
7279
7280 * fontset.c (fontset_find_font): Fix getting the frame pointer.
7281
7282 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
7283
7284 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
7285 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
7286 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
7287
7288 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
7289
7290 * dbusbind.c (xd_add_watch): Improve debug message.
7291 (xd_remove_watch): Improve debug message. If DATA is the session
7292 bus, unset D-Bus session environment.
7293 (Fdbus_init_bus): Pass the bus as argument to
7294 dbus_connection_set_watch_functions. (Bug#5283)
7295
7296 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
7297
7298 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
7299
7300 * lread.c (syms_of_lread): Make it clearer that these are the
7301 names of loaded files (Bug#5068).
7302
7303 * eval.c (run_hook_with_args): Handle the case where the global
7304 value has the obsolete single-function form (Bug#5026).
7305
7306 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
7307
7308 * minibuf.c (Fall_completions): Minor optimization.
7309
7310 2009-12-26 Eli Zaretskii <eliz@gnu.org>
7311
7312 * .gdbinit (pgx): Fix display of composite glyphs.
7313 Display cmp.from and cmp.to as well.
7314 (pitx): Fix last change.
7315
7316 2009-12-25 Kenichi Handa <handa@m17n.org>
7317
7318 * composite.h (composition_adjust_point): Update prototype.
7319
7320 * composite.c (composition_reseat_it): Don't make a composition
7321 spanning over point.
7322 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
7323 composable characters.
7324 (composition_adjust_point): New arg NEW_PT. Callers changed.
7325
7326 * keyboard.c (command_loop_1): Force redisplay if the last point
7327 was within a composition.
7328 (adjust_point_for_property): Don't adjust point for automatic
7329 composition when called after buffer modification.
7330
7331 2009-12-19 Eli Zaretskii <eliz@gnu.org>
7332
7333 * .gdbinit (pitx): Don't use enum names, use their values.
7334 Remove reference to non-existing value GET_FROM_COMPOSITION.
7335 (pgx): Don't use enum names, use their values.
7336 (pitmethod): New helper command.
7337 (pitx): Use it to display iteration method.
7338 (pgrowit): New command.
7339
7340 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
7341
7342 Update dependencies in Makefile.in.
7343
7344 * Makefile.in (alloc.o): Depend on termhooks.h.
7345 (atimer.o): Depend on blockinput.h.
7346 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
7347 and frame.h.
7348 (callint.o): Depend on systime.h, coding.h, and composite.h.
7349 (callproc.o): Depend on buffer.h.
7350 (casefiddle.o): Don't depend on charset.h.
7351 (casetab.o): Depend on character.h.
7352 (ccl.o): Depend on composite.h.
7353 (chartab.o): Depend on ccl.h.
7354 (cm.o): Depend on dispextern.h.
7355 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
7356 (coding.o): Don't depend on $(INTERVALS_H).
7357 (composite.o): Don't depend on dispextern.h explicitly (it's in
7358 $(INTERVALS_H)). Depend on ccl.h.
7359 (data.o): Depend on systime.h, coding.h, composite.h,
7360 dispextern.h, font.h, and ccl.h.
7361 (dired.o): Depend on composite.h.
7362 (dispnew.o): Depend on coding.h. Don't depend explicitly on
7363 composite.h (it's in $(INTERVALS_H)).
7364 (doc.o): Depend on systime.h, coding.h, and composite.h.
7365 (editfns.o): Don't depend explicitly on dispextern.h.
7366 (emacs.o): Depend on frame.h and coding.h.
7367 (eval.o): Depend on coding.h, composite.h, and xterm.h.
7368 (fileio.o): Depend on frame.h and commands.h. Don't depend
7369 explicitly on dispextern.h.
7370 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
7371 composite.h.
7372 (fns.o): Don't depend on termhooks.h.
7373 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
7374 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
7375 coding.h, $(INTERVALS_H), window.h, xterm.h.
7376 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
7377 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
7378 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
7379 fontset.h, ccl.h, and ftfont.h.
7380 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
7381 (gtkutil.o): Depend on dispextern.h and composite.h.
7382 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
7383 termhooks.h, and ccl.h.
7384 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
7385 (intervals.o): Depend on systime.h and coding.h.
7386 (keyboard.o): Depend on composite.h and coding.h.
7387 (keymap.o): Depend on coding.h and frame.h.
7388 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
7389 (macros.o): Depend on systime.h, coding.h, and composite.h.
7390 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
7391 and atimer.h.
7392 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
7393 dispextern.h explicitly.
7394 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
7395 Don't depend explicitly on dispextern.h and composite.h.
7396 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
7397 (regex.o): Don't depend on charset.h.
7398 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
7399 (search.o): Don't depend explicitly on composite.h.
7400 (sound.o): Depend on atimer.h and systime.h.
7401 (syntax.o): Don't depend explicitly on composite.h.
7402 (sysdep.o): Depend on coding.h and composite.h.
7403 (term.o): Depend on xterm.h and buffer.h.
7404 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
7405 (textprop.o): Don't depend on dispextern.h explicitly.
7406 (undo.o): Depend on dispextern.h.
7407 (window.o): Depend on coding.h and termhooks.h. Don't depend on
7408 dispextern.h and composite.h explicitly.
7409 (xdisp.o): Depend on ccl.h.
7410 (xfaces.o): Depend on coding.h and ccl.h.
7411 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
7412 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
7413 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
7414 ftfont.h.
7415 (xgselect.o): New dependency.
7416 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
7417 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
7418 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
7419 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
7420 (xsmfns.o): Depend on frame.h and dispextern.h.
7421 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
7422 sysselect.h.
7423
7424 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
7425
7426 * font.c (Fclear_font_cache): Pass correct cache argument to
7427 font_clear_cache.
7428
7429 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
7430
7431 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
7432 twice.
7433
7434 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
7435
7436 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
7437 calling file-remote-p. Reported by Jim Meyering.
7438
7439 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
7440
7441 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
7442 avoid compiler warnings. (Bug #5217)
7443
7444 2009-12-14 Kenichi Handa <handa@m17n.org>
7445
7446 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
7447 in 8-bit encoding.
7448
7449 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
7450
7451 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
7452 tooltip windows.
7453
7454 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
7455
7456 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
7457 Xatom_net_window_type.
7458
7459 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
7460 Xatom_net_window_type.
7461
7462 * xterm.c (my_log_handler): New function.
7463 (x_term_init): Set my_log_handler as log handler during gtk_init
7464 so we can filter out buggy messages. (Bug #5120).
7465
7466 * xterm.c (xg_scroll_callback): Parameter list changed,
7467 use parameter GtkScrollType to determine scroll/line/page.
7468 Only allow dragging if a button < 4 is grabbed (bug #5177).
7469 (xg_end_scroll_callback): New function.
7470 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
7471 xg_create_scroll_bar.
7472
7473 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
7474 (scroll_end_callback): Remove.
7475 (xg_create_scroll_bar): Add parameter end_callback, bind it to
7476 button-release-event. Replace value-changed event with change-value,
7477 bug #5177.
7478 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
7479 bug #5177.
7480
7481 * gtkutil.h (XG_LAST_SB_DATA): Remove.
7482 (xg_create_scroll_bar): Add GCallback end_callback.
7483
7484 * xftfont.c (QClcdfilter): New variable.
7485 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
7486 (syms_of_xftfont): Initialize QClcdfilter.
7487
7488 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
7489
7490 * xsettings.c (struct xsettings): Add member seen.
7491 (parse_xft_settings): Update member seen with what we have read.
7492 Return non-zero if Xft-settings have been parsed, 0 otherwise.
7493 (apply_xft_settings): Only update Xft settings with what member seen
7494 indicates as new.
7495
7496 2009-12-12 Eli Zaretskii <eliz@gnu.org>
7497
7498 * dispextern.h (struct text_pos): Use EMACS_INT.
7499 (struct glyph): Use EMACS_INT for charpos.
7500 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
7501 region_beg_charpos, region_end_charpos,
7502 redisplay_end_trigger_charpos, and also for
7503 iterator_stack_entry.end_charpos and
7504 iterator_stack_entry.stop_charpos.
7505
7506 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
7507
7508 * gtkutil.c (scroll_end_callback): New function (bug #5177).
7509 (xg_create_scroll_bar): Call scroll_end_callback on button release
7510 event (bug #5177).
7511 (xg_event_is_for_scrollbar): != replaced with ==.
7512
7513 2009-12-12 Kenichi Handa <handa@m17n.org>
7514
7515 * ftfont.c (struct ftfont_info): New member matrix.
7516 (ftfont_open): Setup xftfont_info->matrix.
7517 (MFLTFontFT): New member matrix.
7518 (FLOOR, CEIL, ROUND): New macros.
7519 (ftfont_get_metrics): Handle matrix transformation.
7520 (ftfont_shape_by_flt): New arg matrix. Callers changed.
7521
7522 * xftfont.c (struct xftfont_info): New member matrix.
7523 (xftfont_open): Setup xftfont_info->matrix.
7524
7525 2009-12-10 Kenichi Handa <handa@m17n.org>
7526
7527 * xdisp.c (append_space_for_newline): Consider face-remapping.
7528
7529 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
7530
7531 * xsettings.c: Include "keyboard.h".
7532
7533 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
7534
7535 Fix implicit function declarations.
7536 * cmds.c: Include "frame.h".
7537 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
7538 * frame.h: Move declaration of delete_frame outside of
7539 HAVE_WINDOW_SYSTEM.
7540
7541 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
7542
7543 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
7544
7545 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
7546 GTK builds.
7547
7548 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
7549
7550 * unexelf.c (unexec): Don't search for .data twice.
7551
7552 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
7553
7554 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
7555 if push failed.
7556 (handle_line_prefix): Set avoid_cursor_p here. Check return value
7557 of push_display_prop (Bug#5000).
7558
7559 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
7560 value of font_list_entities (Bug#5085).
7561
7562 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
7563
7564 Fix `string-to-number' to deal consistently with integers and floats.
7565 * lread.c (isfloat_string): New argument ignore_trailing to accept all
7566 trailing characters, not just whitespace.
7567 (read1): Pass new arg 0 to keep old behavior.
7568 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
7569 trailing chars, as it is already done for integers. Doc fixes.
7570 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
7571
7572 2009-12-04 Eli Zaretskii <eliz@gnu.org>
7573
7574 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
7575 Delete unused enumeration value.
7576
7577 2009-12-03 Eli Zaretskii <eliz@gnu.org>
7578
7579 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
7580
7581 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
7582
7583 * process.c (Fmake_network_process): Fix up the tests for
7584 "connectionless socket", so they DTRT for seqpacket sockets as well.
7585
7586 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
7587
7588 * process.c (Qseqpacket): New symbol.
7589 (HAVE_SEQPACKET): New macro.
7590 (Fmake_network_process): Accept new :type `seqpacket'.
7591 (init_process): Add `seqpacket' feature when applicable.
7592 (syms_of_process): Initialize Qseqpacket.
7593
7594 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7595
7596 * font.c (font_load_for_lface, font_open_by_name): Don't store name
7597 if entity is Qnil.
7598
7599 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
7600
7601 * print.c (print_preprocess): Preprocess the key_and_value table of
7602 hashtables, even tho they're "hidden" (bug#5082).
7603
7604 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
7605
7606 * frame.c (frame_make_pointer_invisible)
7607 (frame_make_pointer_visible): Declare f before statements.
7608
7609 2009-11-28 Eli Zaretskii <eliz@gnu.org>
7610
7611 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
7612 omitted dependencies on lisp.h.
7613
7614 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
7615
7616 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
7617 is NULL.
7618
7619 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
7620
7621 * frame.c (frame_make_pointer_invisible)
7622 (frame_make_pointer_visible): Just return if there isn't any selected
7623 frame.
7624
7625 * search.c (simple_search): Remove warning by making *p const.
7626
7627 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
7628
7629 * xdisp.c (power_letter): Remove duplicate const.
7630
7631 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
7632
7633 * term.c (delete_tty): Remove check for last terminal (bug#4970).
7634
7635 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
7636 defaults (bug #5025).
7637
7638 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
7639
7640 * insdel.c (adjust_markers_for_delete): Move it in the
7641 right direction! (bug#4803)
7642
7643 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7644
7645 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
7646
7647 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
7648
7649 2009-11-24 Glenn Morris <rgm@gnu.org>
7650
7651 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
7652
7653 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
7654
7655 * Makefile.in: Must create deps for ecrt0.o in its rule.
7656
7657 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
7658 because that is what Gtk+ font dialog understands.
7659
7660 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
7661 of Fcopy_sequence.
7662 (font_open_by_name): Put name given into QCname for font-object returned.
7663
7664 * frame.c (x_set_font): Save original font name as frame parameter
7665 font-parameter.
7666
7667 * xsettings.c (set_default_xft_settings): New function.
7668 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
7669 is found.
7670
7671 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
7672
7673 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
7674 searching backwards through multibyte buffer.
7675
7676 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
7677
7678 * xterm.c: #include xgselect.h.
7679 (x_initialize): Call xgselect_initialize.
7680
7681 * xsettings.c (something_changedCB): C++ comments => C comments.
7682 (init_gconf): Do not deal with any GLib file descriptors, xg_select
7683 does that now.
7684
7685 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
7686 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
7687 (scroll_bar_button_cb): Remove.
7688 (create_menus): C++ comments => C comments. Don't bind grab-notify
7689 event.
7690 (xg_create_scroll_bar): Don't bind button-press-event and
7691 button-release-event.
7692
7693 * process.c: Include xgselect.h if defined (USE_GTK) ||
7694 defined (HAVE_GCONF).
7695 (wait_reading_process_output): Call xg_select for the same condition.
7696
7697 * xgselect.c (xg_select): New function to better integrate with
7698 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
7699
7700 * xgselect.h: New file, declare xg_select, xgselect_initialize.
7701
7702 * Makefile.in (XOBJ): Add xgselect.o.
7703
7704 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
7705
7706 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
7707 Remove ignored second argument. All callers changed.
7708 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
7709 (RE_STRING_CHAR_AND_LENGTH): Likewise.
7710 * xdisp.c (string_char_and_length): Likewise.
7711
7712 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
7713
7714 * xterm.c (x_new_font):
7715 * print.c (print_object):
7716 * cmds.c (Fself_insert_command): Move declarations before statements.
7717
7718 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
7719
7720 * s/cygwin.h: Remove unneeded linker flags.
7721
7722 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
7723
7724 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
7725
7726 * xsettings.h: Declare xsettings_get_system_font.
7727
7728 * xsettings.c (xsettings_get_system_font): New function.
7729 (init_gconf): No use initiating gconf unless we have Xft also.
7730 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
7731 HAVE_GCONF.
7732
7733 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
7734 add a blank entry so it doesn't collapse into nothing.
7735
7736 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
7737
7738 * lread.c (Funintern): Comment out last change.
7739
7740 2009-11-19 Richard Stallman <rms@gnu.org>
7741
7742 * lread.c (Funintern): Error if symbol is t or nil.
7743
7744 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
7745
7746 * insdel.c (make_gap_larger): Don't make as many assumptions about the
7747 representation of Lisp integers.
7748 Reported by MJ Chan <mjchan.inbox@gmail.com>.
7749
7750 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
7751
7752 * lisp.h: Remove declaration of Ffont_get_system_font.
7753 * xfns.c: Move include of "xsettings.h".
7754 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
7755
7756 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
7757
7758 * xsettings.c (something_changedCB, Ffont_get_system_font):
7759 Check use_system_font.
7760 (syms_of_xsettings): DEFVAR font-use-system-font.
7761
7762 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
7763
7764 * xfns.c (x_default_font_parameter): Remove dead assignment.
7765
7766 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
7767
7768 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
7769
7770 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
7771 not have FC_LCD_*. #define them if not there.
7772
7773 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
7774
7775 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
7776
7777 * xterm.c (handle_one_xevent): Call xft_settings_event for
7778 ClientMessage, PropertyNotify and DestroyNotify.
7779 (x_term_init): If we have XFT, get DPI from Xft.dpi.
7780 Call xsettings_initialize.
7781
7782 * xftfont.c (xftfont_fix_match): New function.
7783 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
7784 Call xftfont_fix_match after XftFontMatch.
7785
7786 * xfont.c (xfont_driver): Initialize all members.
7787
7788 * xfns.c (x_default_font_parameter):
7789 Try font from Ffont_get_system_font.
7790 Do not get font from x_default_parameter if we got one from
7791 Ffont_get_system_font.
7792 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
7793
7794 * w32font.c (w32font_driver): Initialize all members.
7795
7796 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
7797
7798 * lisp.h: Declare syms_of_xsettings.
7799
7800 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
7801 Handle CONFIG_CHANGED_EVENT.
7802
7803 * ftfont.c (ftfont_filter_properties): New function.
7804
7805 * frame.c (x_set_font): Remove unused variable lval.
7806
7807 * font.h (struct font_driver): Add filter_properties.
7808
7809 * font.c (font_put_extra): Don't return if val is nil, it means
7810 boolean option is off.
7811 (font_parse_fcname): Collect all extra properties in extra_props
7812 and call filter_properties for all drivers with extra_props and
7813 font as parameter.
7814 (font_open_entity): Do not use cache, it does not pick up new
7815 fontconfig settings like hinting.
7816 (font_load_for_lface): If spec had a name in it, store it in entity.
7817
7818 * emacs.c (main): Call syms_of_xsettings.
7819
7820 * config.in: HAVE_GCONF is new.
7821
7822 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
7823 xsettings.o is new.
7824
7825 2009-11-17 Kenichi Handa <handa@m17n.org>
7826
7827 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
7828 back to the default font in case that no suitable font is found.
7829
7830 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
7831
7832 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
7833 Suggested by Chad Brown <yandros@mit.edu>.
7834 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
7835
7836 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
7837
7838 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
7839
7840 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
7841
7842 * Makefile.in: Ignore errors from mkdir when creating deps directory.
7843
7844 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
7845
7846 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
7847 has a parent.
7848
7849 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
7850 dependency files in deps/. Include those files into Makefile.
7851
7852 * config.in: Generated (AUTO_DEPEND).
7853
7854 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
7855
7856 * dbusbind.c (Vdbus_registered_objects_table): Rename from
7857 Vdbus_registered_functions_table, because it contains also
7858 properties. Fix docstring.
7859 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
7860
7861 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
7862
7863 * alloc.c (mark_object): Don't reprocess marked strings.
7864 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
7865 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
7866
7867 2009-11-13 Kenichi Handa <handa@m17n.org>
7868
7869 * category.c (word_boundary_p): Adjust for the change of the
7870 semantics of Vword_combining_categories.
7871 (Vword_combining_categories): Describe the slight change of the
7872 semantics.
7873
7874 2009-11-13 Eli Zaretskii <eliz@gnu.org>
7875
7876 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
7877
7878 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
7879
7880 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
7881
7882 * xdisp.c (syms_of_xdisp): Fix typo in last change.
7883
7884 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
7885
7886 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
7887
7888 2009-11-11 David Reitter <david.reitter@gmail.com>
7889
7890 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
7891 variables to fix 2009-11-09 change.
7892
7893 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
7894
7895 * process.c (ifflag_def): Make flag_sym constant.
7896 (Fnetwork_interface_info): Use a constant pointer.
7897 (ifflag_table):
7898 * xfns.c (cursor_bits):
7899 * xdisp.c (power_letter):
7900 * termcap.c (speeds, esctab):
7901 * sysdep.c (baud_convert):
7902 * keyboard.c (lispy_accent_codes, modifier_names):
7903 * image.c (xbm_format, xpm_format, pbm_format, png_format)
7904 (jpeg_format, tiff_format, gif_format, svg_format)
7905 (interlace_start, interlace_increment, gs_format):
7906 * gtkutil.c (separator_names):
7907 * fringe.c (swap_nibble):
7908 * fns.c (base64_value_to_char, base64_char_to_value):
7909 * fileio.c (make_temp_name_tbl):
7910 * coding.c (suffixes): Make constant.
7911
7912 * frame.c (make_initial_frame):
7913 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
7914 build_string.
7915 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
7916
7917 * s/freebsd.h:
7918 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
7919
7920 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
7921 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
7922
7923 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
7924 * xterm.c (syms_of_xterm):
7925 * xfaces.c (syms_of_xfaces):
7926 * xdisp.c (syms_of_xdisp):
7927 * lread.c (syms_of_lread):
7928 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
7929 build_string.
7930
7931 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
7932
7933 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
7934
7935 * fns.c (Fplist_get): Merge the active and the commented out code.
7936
7937 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
7938
7939 * keyboard.h: Declare timer_check.
7940
7941 * keyboard.c (timer_check_2): New function that does what the old
7942 timer_check did.
7943 (timer_check): Call timer_check_2 until -1 or a non-zero time is
7944 returned, i.e. don't return -1 with timers pending.
7945
7946 * process.c: Remove extern declaration of timer_check.
7947
7948 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
7949 even if timer_check returned -1.
7950
7951 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
7952 xg_dialog_data.
7953 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
7954 the event loop.
7955 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
7956 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
7957 Destroy the dialog after xg_dialog_run.
7958
7959 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
7960
7961 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
7962
7963 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
7964
7965 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
7966
7967 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
7968
7969 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
7970
7971 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
7972
7973 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
7974 w32menu.c, and nsmenu.m.
7975 Simplify the obsolete case where position is nil.
7976 (cleanup_popup_menu): New function, moved from nsmenu.m.
7977 (struct skp): Remove slot `notreal'.
7978 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
7979 adjust callers.
7980 (single_menu_item): Adjust call to parse_menu_item.
7981 (syms_of_menu): Defsubr x-popup-menu.
7982 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
7983 (keymap_panes): Don't export any more.
7984 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
7985 (xmenu_show): Declare.
7986 * keyboard.c (parse_menu_item): Remove arg `notreal'.
7987 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
7988 * keyboard.h (parse_menu_item): Update declaration.
7989 * xmenu.c (Fx_popup_menu): Remove.
7990 (syms_of_xmenu): Don't defsubr x-popup-menu.
7991 * w32menu.c (Fx_popup_menu): Remove.
7992 (syms_of_w32menu): Don't defsubr x-popup-menu.
7993 * nsmenu.m (cleanup_popup_menu): Remove.
7994 (ns_menu_show): Rename from ns_popup_menu and remove all the code
7995 moved to menu.c's Fx_popup_menu.
7996 (Fx_popup_menu): Remove.
7997 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
7998 menu_items (it's done in menu.c already).
7999
8000 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
8001
8002 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
8003 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
8004
8005 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
8006
8007 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
8008 xmenu_show. Hide any tooltip before opening a menu.
8009 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
8010 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
8011
8012 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
8013
8014 Let integers use up 2 tags to give them one extra bit and thus double
8015 their range.
8016 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
8017 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
8018 New macros.
8019 (enum Lisp_Type): Use them. Give explicit values.
8020 (Lisp_Type_Limit): Remove.
8021 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
8022 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
8023 Pay attention to USE_2_TAGS_FOR_INTS.
8024 (INTEGERP): Use LISP_INT_TAG_P.
8025 * fns.c (internal_equal): Simplify the default case.
8026 (sxhash): Use case_Lisp_Int.
8027 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
8028 any more.
8029 (Ftype_of): Use case_Lisp_Int.
8030 (store_symval_forwarding): Take into account the fact that Ints can
8031 now have more than one tag.
8032 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
8033 (buffer_slot_type_mismatch):
8034 * xfaces.c (face_attr_equal_p):
8035 * print.c (print_object):
8036 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
8037 Use case_Lisp_Int.
8038
8039 2009-11-06 Eli Zaretskii <eliz@gnu.org>
8040
8041 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
8042
8043 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
8044 warning.
8045
8046 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
8047
8048 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
8049
8050 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
8051
8052 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
8053 ButtonPressRelease and MotionNotify (bug#4870).
8054
8055 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
8056
8057 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
8058
8059 * xterm.c (syms_of_xterm):
8060 * xselect.c (syms_of_xselect):
8061 * xmenu.c (syms_of_xmenu):
8062 * xfns.c (syms_of_xfns):
8063 * xfaces.c (syms_of_xfaces):
8064 * xdisp.c (syms_of_xdisp):
8065 * window.c (syms_of_window):
8066 * w32fns.c (syms_of_w32fns):
8067 * undo.c (syms_of_undo):
8068 * textprop.c (syms_of_textprop):
8069 * terminal.c (syms_of_terminal):
8070 * syntax.c (syms_of_syntax):
8071 * sound.c (syms_of_sound):
8072 * search.c (syms_of_search):
8073 * print.c (syms_of_print):
8074 * minibuf.c (syms_of_minibuf):
8075 * macros.c (syms_of_macros):
8076 * keymap.c (syms_of_keymap, initial_define_key)
8077 (initial_define_lispy_key):
8078 * keyboard.c (syms_of_keyboard):
8079 * insdel.c (syms_of_insdel):
8080 * image.c (syms_of_image):
8081 * fringe.c (syms_of_fringe):
8082 * frame.c (syms_of_frame):
8083 * fontset.c (syms_of_fontset):
8084 * fns.c (syms_of_fns):
8085 * fns.c (syms_of_fns):
8086 * fileio.c (syms_of_fileio):
8087 * fileio.c (syms_of_fileio):
8088 * eval.c (syms_of_eval):
8089 * doc.c (syms_of_doc):
8090 * dispnew.c (syms_of_display):
8091 * dired.c (syms_of_dired):
8092 * dbusbind.c (syms_of_dbusbind):
8093 * data.c (syms_of_data):
8094 * composite.c (syms_of_composite):
8095 * coding.c (syms_of_coding):
8096 * cmds.c (syms_of_cmds):
8097 * charset.c (define_charset_internal, syms_of_character):
8098 * ccl.c (syms_of_ccl):
8099 * category.c (syms_of_category, init_category_once):
8100 * casetab.c (syms_of_casetab):
8101 * casefiddle.c (syms_of_casefiddle):
8102 * callint.c (syms_of_callint):
8103 * bytecode.c (syms_of_bytecode):
8104 * buffer.c (keys_of_buffer, syms_of_buffer):
8105 * alloc.c (syms_of_alloc):
8106 * process.c (syms_of_process, init_process):
8107 * lread.c (syms_of_lread, init_obarray):
8108 * font.c (build_style_table):
8109 * emacs.c (syms_of_emacs, main): Replace calls to intern with
8110 intern_c_string, calls to make_pure_string with
8111 make_pure_c_string. Use pure_cons instead of Fcons.
8112
8113 * process.c (socket_options): Make it const.
8114 (set_socket_option, init_process): Use a const pointer.
8115
8116 * lread.c (intern_c_string): New function.
8117 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
8118 (defvar_int): Uset it. Make the name const char*.
8119
8120 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
8121 (defvar_int): Update prototypes.
8122 (DEFUN, EXFUN): Support for prototypes is now required.
8123 (intern_c_string): New prototype.
8124 (struct Lisp_Subr): Make symbol_name constant.
8125
8126 * font.c (struct table_entry): Remove unused member. Make NAMES
8127 constant.
8128 (weight_table, slant_table, width_table): Make constant.
8129
8130 * emacs.c (struct standard_args): Make name and longname constant.
8131
8132 * character.h (DEFSYM): Use intern_c_string.
8133
8134 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
8135
8136 * alloc.c (make_pure_c_string): New function.
8137
8138 * eval.c (Fautoload): Purecopy all arguments.
8139
8140 2009-11-05 Kenichi Handa <handa@m17n.org>
8141
8142 * fileio.c (Finsert_file_contents): Be sure set coding-system of
8143 the buffer in case of replace.
8144
8145 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
8146
8147 * puresize.h (BASE_PURESIZE): Increase to 1620000.
8148
8149 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
8150
8151 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
8152 when applicable (bug#4851).
8153
8154 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
8155 (P_): Support for prototypes is now required.
8156
8157 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
8158
8159 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
8160 (Bug#4827).
8161
8162 2009-10-30 Eli Zaretskii <eliz@gnu.org>
8163
8164 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
8165
8166 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
8167
8168 * puresize.h (BASE_PURESIZE): Increase to 1470000.
8169
8170 * lread.c (Fload): Purecopy the file name when building
8171 Vpreloaded_file_list.
8172
8173 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
8174
8175 * w32fns.c (syms_of_w32fns): Change default value of
8176 w32-scroll-lock-modifier to nil. (Bug#2827)
8177
8178 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
8179
8180 * minibuf.c (Fall_completions): Fix typos in docstring.
8181
8182 2009-10-26 Andreas Schwab <schwab@redhat.com>
8183
8184 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
8185
8186 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
8187
8188 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
8189 For delta < 0, skip check that only makes sense when the mini-window
8190 is going to be enlarged. (Bug#4534)
8191
8192 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
8193
8194 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
8195 string in menu maps (Bug#4471).
8196
8197 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
8198
8199 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
8200 FRAME_NS_VIEW on terminal frames (Bug#4765).
8201
8202 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
8203
8204 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
8205 DBUS_TYPE_UINTnn separately to get proper sign extension.
8206
8207 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
8208 can properly handle unsigned types.
8209 (make_uid, make_gid): Remove.
8210
8211 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
8212 types again.
8213
8214 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
8215 (system_process_attributes): Likewise.
8216
8217 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
8218
8219 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
8220
8221 * eval.c (Fautoload): Purecopy the filename. Simplify.
8222
8223 * category.c (Fdefine_category): Purecopy docstring.
8224
8225 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
8226
8227 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
8228
8229 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
8230
8231 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
8232
8233 * window.c (Fwindow_edges, Fwindow_pixel_edges)
8234 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
8235 (Bug#4775).
8236
8237 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
8238
8239 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
8240 (init_fileio_once):
8241 * lisp.h (init_fileio_once): Remove.
8242 * emacs.c (main): Don't call init_fileio_once.
8243
8244 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
8245
8246 * puresize.h (BASE_PURESIZE): Increase to 1430000.
8247
8248 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
8249
8250 * doprnt.c (doprnt): Fix overflow check.
8251
8252 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
8253
8254 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
8255
8256 * xterm.h (x_wait_for_event): Declare it.
8257
8258 * xterm.c (pending_event_wait): New variable.
8259 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
8260 see pending_event_wait.eventtype.
8261 (handle_one_xevent): Don't change gravity when parent changes.
8262 (x_new_font): Call change_frame_size with new rows/columns before we
8263 try to resize the frame.
8264 (x_wait_for_event): New function.
8265 (x_set_window_size_1): Don't change gravity unless change_gravity
8266 is set.
8267 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
8268 don't change frame size, instead wait for the ConfigureNotify.
8269 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
8270 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
8271 (x_initialize): Initialize pending_event_wait.
8272
8273 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
8274 size.
8275
8276 * widget.c (EmacsFrameSetValues): Add comment.
8277 (EmacsFrameSetCharSize): Just call x_set_window_size.
8278
8279 * gtkutil.c (xg_frame_set_char_size): Flush events and call
8280 x_wait_for_event.
8281 (flush_and_sync): Remove again.
8282 (xg_get_font_name): Suggest monospace if no previous font is known.
8283
8284 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
8285
8286 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
8287 8th bit, since that only made sense in the ASCII world (bug#4751).
8288
8289 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8290
8291 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
8292 processing pending events when event is filtered for input method.
8293 (Bug#3681)
8294
8295 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
8296
8297 * fns.c: Add #endif accidentally removed in previous change.
8298
8299 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
8300
8301 * fns.c: Remove code for unsupported system: MAC_OS.
8302 * image.c: Likewise. Include setjmp.h.
8303
8304 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
8305
8306 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
8307 pixel -1 (bug #4742).
8308
8309 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
8310
8311 * process.c (create_pty): Remove conditionals for no longer
8312 supported systems: UNIPLUS and RTU.
8313
8314 * xterm.c:
8315 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
8316
8317 * alloc.c: Do not define struct catchtag.
8318 * eval.c: Move struct catchtag definition ...
8319 * lisp.h: ... here.
8320
8321 * image.c: Move png.h #include earlier to avoid warnings.
8322
8323 * xterm.c:
8324 * xsmfns.c:
8325 * xselect.c:
8326 * xrdb.c:
8327 * xmenu.c:
8328 * xftfont.c:
8329 * xfont.c:
8330 * xfns.c:
8331 * xfaces.c:
8332 * xdisp.c:
8333 * window.c:
8334 * widget.c:
8335 * w32xfns.c:
8336 * w32uniscribe.c:
8337 * w32term.c:
8338 * w32select.c:
8339 * w32reg.c:
8340 * w32proc.c:
8341 * w32menu.c:
8342 * w32inevt.c:
8343 * w32heap.c:
8344 * w32font.c:
8345 * w32fns.c:
8346 * w32console.c:
8347 * w32.c:
8348 * w16select.c:
8349 * vm-limit.c:
8350 * unexsol.c:
8351 * unexec.c:
8352 * unexcw.c:
8353 * unexaix.c:
8354 * undo.c:
8355 * tparam.c:
8356 * textprop.c:
8357 * terminfo.c:
8358 * terminal.c:
8359 * termcap.c:
8360 * term.c:
8361 * syntax.c:
8362 * sound.c:
8363 * sheap.c:
8364 * search.c:
8365 * scroll.c:
8366 * region-cache.c:
8367 * regex.c:
8368 * ralloc.c:
8369 * process.c:
8370 * print.c:
8371 * nsterm.m:
8372 * nsselect.m:
8373 * nsmenu.m:
8374 * nsimage.m:
8375 * nsfont.m:
8376 * nsfns.m:
8377 * msdos.c:
8378 * minibuf.c:
8379 * menu.c:
8380 * marker.c:
8381 * macros.c:
8382 * keymap.c:
8383 * keyboard.c:
8384 * intervals.c:
8385 * insdel.c:
8386 * indent.c:
8387 * gtkutil.c:
8388 * ftxfont.c:
8389 * ftfont.c:
8390 * fringe.c:
8391 * frame.c:
8392 * fontset.c:
8393 * font.c:
8394 * fns.c:
8395 * floatfns.c:
8396 * filelock.c:
8397 * fileio.c:
8398 * emacs.c:
8399 * editfns.c:
8400 * dosfns.c:
8401 * doprnt.c:
8402 * doc.c:
8403 * dispnew.c:
8404 * dired.c:
8405 * dbusbind.c:
8406 * data.c:
8407 * composite.c:
8408 * coding.c:
8409 * cmds.c:
8410 * cm.c:
8411 * chartab.c:
8412 * charset.c:
8413 * character.c:
8414 * ccl.c:
8415 * category.c:
8416 * casetab.c:
8417 * casefiddle.c:
8418 * callproc.c:
8419 * callint.c:
8420 * bytecode.c:
8421 * buffer.c:
8422 * atimer.c: Include setjmp.h. (Bug#4643)
8423
8424 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
8425
8426 Remove leftover table unibyte_to_multibyte_table.
8427 * character.c (unibyte_to_multibyte_table): Remove.
8428 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
8429 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
8430 * character.h (UNIBYTE_TO_CHAR): New macro.
8431 (MAKE_CHAR_MULTIBYTE): Use it.
8432 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
8433 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
8434 (message_dolog, set_message_1):
8435 * search.c (Freplace_match):
8436 * editfns.c (Fcompare_buffer_substrings):
8437 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
8438 (concat):
8439 * insdel.c (copy_text, count_size_as_multibyte):
8440 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
8441 * term.c (produce_glyphs):
8442 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
8443 * regex.c (RE_CHAR_TO_MULTIBYTE):
8444 * cmds.c (internal_self_insert):
8445 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
8446
8447 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
8448
8449 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
8450
8451 * puresize.h (BASE_PURESIZE): Increase to 1310000.
8452
8453 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
8454
8455 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
8456
8457 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8458
8459 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
8460 still needed under Tiger.
8461
8462 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
8463
8464 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
8465 __Apple__.
8466
8467 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
8468
8469 2009-10-15 Kenichi Handa <handa@m17n.org>
8470
8471 * print.c (print_object): Escape a symbol like "2E10" too.
8472
8473 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
8474
8475 Cleanups and changes for 64-bit compile under Snow Leopard.
8476 Based on suggestions by Erik Charlebois.
8477
8478 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
8479
8480 * nsfont.m (ns_char_width): Replace deprecated call.
8481 (ns_findfonts, nsfont_list_family): Use long format in printf, and
8482 cast argument.
8483 (nsfont_open): Use ns_char_width() everywhere.
8484 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
8485
8486 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
8487
8488 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
8489 where appropriate.
8490
8491 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
8492 where appropriate.
8493 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
8494 Use stringWithUTF8String.
8495 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
8496
8497 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
8498 Add formal protocol mention to inheritance.
8499 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
8500
8501 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
8502 Fix printf format.
8503 (ns_query_color): Use CGFloat where appropriate.
8504 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
8505 (EmacsScroller-mouseDown:): Use long format in printf, and cast
8506 argument.
8507
8508 * config.in (NS_HAVE_NSINTEGER): Drop.
8509
8510 * dbusbind.c (dbus-method-return-internal)
8511 (dbus-method-error-internal): Use long format in printf, and cast
8512 argument.
8513
8514 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
8515 in printf, and cast argument.
8516
8517 * process.c (list_processes_1): Use long format in printf, and
8518 cast argument.
8519
8520 2009-10-11 Glenn Morris <rgm@gnu.org>
8521
8522 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
8523
8524 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
8525
8526 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
8527 menu bar with a small width so it doesn't enlarge the frame.
8528
8529 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
8530
8531 * fontset.c (Fset_fontset_font): Fix typos in error messages.
8532
8533 2009-10-06 Glenn Morris <rgm@gnu.org>
8534
8535 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
8536 SOME_MACHINE_LISP (this enters indirectly via DOC).
8537
8538 2009-10-05 Eli Zaretskii <eliz@gnu.org>
8539
8540 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
8541
8542 2009-10-04 Eli Zaretskii <eliz@gnu.org>
8543
8544 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
8545 Doc fix.
8546
8547 2009-10-03 Martin Rudalics <rudalics@gmx.at>
8548
8549 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
8550
8551 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
8552
8553 * lisp.h (Qdelete_directory_internal): Remove, because it is not
8554 used anymore outside fileio.c.
8555
8556 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
8557
8558 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
8559
8560 * lisp.h (Qdelete_directory_internal):
8561 Declare, instead of Qdelete_directory.
8562
8563 * w32fns.c (Fsystem_move_file_to_trash): Use it.
8564
8565 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
8566
8567 * eval.c (Fcalled_interactively_p): Add `kind' argument.
8568
8569 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
8570
8571 * fileio.c (Fdelete_directory_internal): Rename from
8572 Fdelete_directory. It is not a command anymore. It has no file
8573 name handler.
8574
8575 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
8576
8577 * xdisp.c (get_next_display_element): Use an enum in last change.
8578
8579 2009-09-28 Kenichi Handa <handa@m17n.org>
8580
8581 * xdisp.c (get_next_display_element): Pay attention to
8582 unibyte_display_via_language_environment in handling
8583 Vnobreak_char_display.
8584
8585 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8586
8587 * nsterm.h (ns_app_name): New extern variable.
8588
8589 * nsterm.m (ns_app_name): New variable.
8590 (ns_term_init): Set and use it.
8591 (ns_term_shutdown): Use it.
8592
8593 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
8594 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
8595
8596 * nsfns.m (ns_set_name_iconic, ns_set_name)
8597 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
8598 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
8599
8600 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
8601 Remove double-casting in client_data comparison.
8602
8603 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8604
8605 * keyboard.c (make_lispy_event): Remember last wheel direction.
8606 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
8607
8608 2009-09-26 Glenn Morris <rgm@gnu.org>
8609
8610 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
8611 internal.elc. Add term/pc-win.elc.
8612 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
8613 term/x-win.elc.
8614 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
8615 term/w32-win.elc.
8616 (NS_SUPPORT): New.
8617 (lisp): Add NS_SUPPORT.
8618 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
8619
8620 2009-09-25 David Reitter <david.reitter@gmail.com>
8621
8622 * nsmenu.m (EmacsMenu-clear): Recognize application menu
8623 on Mac OS X 10.6+ (bug#4513).
8624
8625 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
8626
8627 * frame.c (xrdb_get_resource): Return nil for empty string resources;
8628 some parts of Emacs code (like font selection) don't grok them.
8629 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
8630
8631 2009-09-24 Andreas Schwab <schwab@redhat.com>
8632
8633 * coding.c (decode_coding_iso_2022): Fix operator precedence.
8634
8635 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
8636
8637 * dired.c (Fdirectory_files): Fix typo in docstring.
8638
8639 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8640
8641 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
8642 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
8643 (EmacsScroller-setPosition:portion:whole:): Remove -display call
8644 under GNUstep.
8645 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
8646
8647 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
8648 glyph advancement.
8649
8650 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8651
8652 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
8653 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
8654
8655 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
8656 deleted (bug #4492).
8657
8658 * nsfont.m (Vns_reg_to_script): New lisp variable.
8659 (syms_of_nsfont): Declare it.
8660 (ns_registry_to_script): New function.
8661 (ns_get_req_script): Call it.
8662 (ns_findfonts): Don't give up on non-unicode registry.
8663
8664 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
8665
8666 2009-09-20 Tom Tromey <tromey@redhat.com>
8667
8668 * eval.c (find_handler_clause): Make stack-trace-on-error work in
8669 batch mode (bug#4228).
8670
8671 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
8672
8673 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
8674 carefully. (Bug #4339)
8675
8676 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
8677
8678 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
8679
8680 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
8681
8682 * emacs.c (inhibit_x_resources): Update doc string for NS.
8683 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
8684 legacy code for -NXHost. Fix error printf in daemon case.
8685
8686 * nsterm.h (ns_no_defaults): Remove.
8687
8688 * nsterm.m (ns_no_defaults): Remove.
8689 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
8690 (ns_use_qd_smoothing): Remove legacy variable.
8691 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
8692 don't update the NSWindow itself.
8693 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
8694 state detection and store user rect ourselves. (Bug #3581)
8695
8696 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
8697 ns_use_qd_smoothing.
8698
8699 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
8700 platform versions. Drop support for emacs-20-style face specs.
8701 (x-close-connection): Drop PSFlush() under OS X.
8702 (x-focus-frame): Activate the app first. (Bug #4180)
8703
8704 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
8705
8706 * emacs.c (inhibit_x_resources): New variable.
8707 (main) [HAVE_NS]: Don't process --quick command line option.
8708 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
8709
8710 * lisp.h (inhibit_x_resources): Declare it extern.
8711
8712 * w32reg.c (x_get_string_resource):
8713 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
8714
8715 2009-09-17 Eli Zaretskii <eliz@gnu.org>
8716
8717 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
8718 Add lisp/term/internal.elc.
8719
8720 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
8721
8722 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
8723 (bug#4461).
8724
8725 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
8726
8727 * puresize.h (BASE_PURESIZE): Increase to 1290000.
8728
8729 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
8730 (OBJECTS_MACHINE): Remove, unused.
8731
8732 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
8733
8734 * frame.c (x_get_resource_string): Remove unused.
8735
8736 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
8737
8738 * xterm.c (x_new_font): Call change_frame_size before calling
8739 x_set_window_size, in case frame size won't change.
8740
8741 * frame.c (x_set_font): Remove dead code.
8742
8743 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
8744
8745 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
8746
8747 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8748
8749 * lread.c (Fload): Don't output a message after loading an obsolete
8750 package any more (done in Lisp now).
8751
8752 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
8753
8754 * fns.c (syms_of_fns): Doc fix (Bug#4227).
8755
8756 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8757
8758 * keymap.c (Fwhere_is_internal): Use nconc2.
8759
8760 2009-09-11 Alan Mackenzie <acm@muc.de>
8761
8762 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
8763 batch mode.
8764
8765 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
8766
8767 * xdisp.c (display_mode_element): Detect cycles.
8768
8769 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
8770
8771 * keymap.c (where_is_internal): Don't erroneously return nil right after
8772 filling the cache.
8773 (where_is_internal_1): Fix up typo.
8774
8775 2009-09-11 Glenn Morris <rgm@gnu.org>
8776
8777 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
8778 share a common doc-string.
8779
8780 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
8781
8782 * keymap.c (get_keymap): Return the actual keymap symbol rather than
8783 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
8784
8785 * keymap.c (QCadvertised_binding): New constant.
8786 (syms_of_keymap): Initialize it.
8787 (Fwhere_is_internal): Try and use bindings from :advertised-binding
8788 if applicable.
8789
8790 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
8791
8792 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
8793 (parse_menu_item): Streamline since bindings are recomputed all the
8794 time anyway. Don't bother checking Vdefine_key_rebound_commands any
8795 more and don't support lmenu's menu-alias any more either.
8796
8797 * keymap.c (where_is_internal_data): Make noindirect a boolean.
8798 (where_is_internal): Strip it down to only traverse the keymaps.
8799 Move the cache handling from Fwhere_is_internal to here.
8800 (Fwhere_is_internal): Move the handling of remapping and the choice of
8801 the best binding from where_is_internal to here.
8802 Unify the cached/noncached paths, so remapping is also handled
8803 correctly when the cache is used, and so the cache can be used to
8804 speed up remap-handling when applicable.
8805 Give preference to non-remapped bindings.
8806 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
8807 non-remapped bindings.
8808 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
8809 command remapping.
8810
8811 * xdisp.c (display_mode_element): Move list length limit from 50 to
8812 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
8813
8814 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
8815
8816 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
8817
8818 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
8819
8820 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
8821 (Bug#4334)
8822
8823 * keymap.c (where_is_internal): Filter out shadowed remappings.
8824 Assume that where_is_internal returns unshadowed bindings to simplify
8825 the code and get rid of the gotos. Use ASIZE.
8826
8827 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
8828
8829 * xterm.c (x_focus_changed): If we get a focusout and pointer
8830 is invisible, make it visible.
8831
8832 * xterm.h: Remove condition for declaration of
8833 x_*_window_to_frame.
8834
8835 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
8836
8837 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
8838 initial terminal as well.
8839
8840 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
8841
8842 * xterm.h: Rename x_non_menubar_window_to_frame to
8843 x_menubar_window_to_frame.
8844
8845 * xterm.c: Remove declarations also in xterm.h.
8846 (XTmouse_position): Do not return valid positions
8847 for clicks in the menubar and the toolbar for Gtk+.
8848
8849 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
8850 if the widget for the event has the same top level as a frame,
8851 return the frame.
8852 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
8853 internal windows, bug #4122.
8854 (x_non_menubar_window_to_frame): Remove.
8855
8856 2009-09-02 Glenn Morris <rgm@gnu.org>
8857
8858 * buffer.c (default-major-mode): Move most of the doc from here...
8859 (major-mode): ... to here.
8860
8861 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
8862
8863 * process.c (wait_reading_process_output): Keep the descriptor
8864 when pty is used by a non-child process, e.g., in I/O buffer of
8865 GDB this allows inferior to be restarted.
8866
8867 2009-08-29 Eli Zaretskii <eliz@gnu.org>
8868
8869 * xdisp.c (redisplay_internal): Remove redundant test and collapse
8870 both branches into one.
8871
8872 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
8873
8874 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
8875 (main): Use enable-multibyte-characters rather than
8876 default-enable-multibyte-characters. Output a warning message when
8877 running a unibyte session.
8878
8879 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8880
8881 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
8882 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
8883 (copy_data_segment): Also copy __program_vars section.
8884 (copy_dyld_info) [LC_DYLD_INFO]: New function.
8885 (dump_it) [LC_DYLD_INFO]: Use it.
8886
8887 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
8888
8889 2009-08-28 Eli Zaretskii <eliz@gnu.org>
8890
8891 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
8892 $(SRC)/buildobj.h.
8893 (buildobj.h): Renamed from $(SRC)/buildobj.h.
8894 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
8895 $(SRC)/buildobj.h.
8896 (clean): Add buildobj.h.
8897
8898 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
8899
8900 * print.c (print_object): Set escapeflag to 1 when printing
8901 hashtable keys and values.
8902
8903 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
8904
8905 * lread.c (read_integer): Use doubles (and potentially return a float
8906 number) as we do in string-to-number.
8907 (read1): Use strtol to read integers, signal errors on strtol's
8908 overflow and use floats if strtol's output is too large for
8909 Elisp integers.
8910
8911 2009-08-27 Eli Zaretskii <eliz@gnu.org>
8912
8913 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
8914 (make-buildobj-SH): Fix last change.
8915 (SRC): Move to before where it's first used.
8916
8917 2009-08-27 Kenichi Handa <handa@m17n.org>
8918
8919 * process.c (send_process): Use encode_coding_object instead of
8920 encode_coding_string to perform eol-conversion even if the string
8921 is unibyte.
8922
8923 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
8924 character.
8925
8926 * cmds.c (Fself_insert_command): Avoid unnecessay
8927 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
8928
8929 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
8930
8931 * callproc.c (Fcall_process): Remove always true #if.
8932
8933 * lisp.h: Replace #if 0 code for checking with text pointing to
8934 the --enable-checking configure flag.
8935
8936 * emacs.c (main): Mention the --enable-profiling configure flag
8937 instead of using CFLAGS.
8938
8939 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
8940
8941 * Makefile.in (buildobj.h): New target.
8942 (doc.o): Depend on it.
8943 (temacs${EXEEXT}): Don't generate buildobj.lst.
8944 (mostlyclean): Delete buildobj.h, not buildobj.lst.
8945 * makefile.w32-in ($(SRC)/buildobj.h): New target.
8946 ($(BLD)/doc.$(O)): Depend on it.
8947 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
8948 provided by Eli Zaretskii.)
8949 ($(TEMACS)): Don't generate buildobj.lst.
8950 * doc.c: Include buildobj.h.
8951 (buildobj): New static variable.
8952 (Fsnarf_documentation): Use it, instead of opening and reading
8953 buildobj.lst.
8954
8955 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
8956
8957 * dbusbind.c (Fdbus_call_method)
8958 (Fdbus_call_method_asynchronously): Use English numeric format for
8959 timeout values in doc string.
8960
8961 2009-08-25 Kenichi Handa <handa@m17n.org>
8962
8963 * alloc.c (mark_char_table): New function.
8964 (mark_object): Use mark_char_table for a char-table.
8965
8966 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
8967 (CHAR_TABLE_REF): Use it.
8968
8969 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
8970
8971 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
8972 before invoking the newly build emacs to check for load-path
8973 shadowing.
8974
8975 2009-08-22 Glenn Morris <rgm@gnu.org>
8976
8977 * Makefile.in (bootstrap_exe): New variable.
8978 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
8979 Use ${bootstrap_exe}.
8980
8981 2009-08-22 Eli Zaretskii <eliz@gnu.org>
8982
8983 * coding.h (encode_coding_string): Don't encode unibyte strings.
8984 (Bug#4047)
8985
8986 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
8987
8988 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
8989
8990 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
8991 intended as hotfix only.
8992 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
8993
8994 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8995
8996 * nsterm.m (ns_get_color): Update documentation properly for last
8997 change, and clean up loose ends in the code left by it. Fix
8998 longstanding bug with 16-bit hex parsing, and add support for
8999 yet another X11 format (rgb:r/g/b) for compatibility.
9000 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
9001 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
9002
9003 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
9004
9005 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
9006
9007 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
9008
9009 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
9010 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
9011 (xd_initialize, xd_pending_messages): Check, whether
9012 $DBUS_SESSION_BUS_ADDRESS is set.
9013
9014 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9015
9016 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
9017
9018 * nsterm.m (ns_get_color): Remove incompatible color formats again.
9019
9020 2009-08-20 Glenn Morris <rgm@gnu.org>
9021
9022 * emacs.c (system-type): Doc fix.
9023
9024 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
9025
9026 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
9027 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
9028
9029 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
9030
9031 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
9032 New functions.
9033 (xd_initialize): Revert change from 2009-08-16.
9034
9035 2009-08-18 Kenichi Handa <handa@m17n.org>
9036
9037 * fontset.c (Ffontset_font): If a nil element is found in a
9038 font-group vector, return nil.
9039
9040 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
9041
9042 * process.c (status_notify): Don't perform redisplay.
9043 (Fdelete_process, list_processes_1, process_send_signal):
9044 Expliticly perform redisplay.
9045 (wait_reading_process_output): Always check process status, but
9046 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
9047
9048 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
9049
9050 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
9051 (XFLOAT_INIT): New macro for storing a float value.
9052 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
9053 * fns.c (sxhash): Copy out the value of a float in order to
9054 examine its bytes.
9055 * dbusbind.c (xd_append_arg): Likewise.
9056
9057 * emacs.c (main): Don't call syms_of_data twice.
9058
9059 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
9060
9061 * dbusbind.c (xd_initialize): Add connection file descriptor to
9062 input_wait_mask, in order to let select() detect, whether a new
9063 message has been arrived.
9064 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
9065
9066 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
9067
9068 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
9069 New functions.
9070
9071 * lisp.h (xd_pending_messages): Declare.
9072
9073 * keyboard.c (readable_events): Call xd_pending_messages.
9074
9075 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
9076
9077 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
9078
9079 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
9080
9081 * buffer.c (set_buffer_internal_1)
9082 (swap_out_buffer_local_variables): Check for unbound local
9083 variables (Bug#4138).
9084
9085 2009-08-14 Eli Zaretskii <eliz@gnu.org>
9086
9087 * process.c (create_pty): Fix last change.
9088
9089 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
9090
9091 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
9092 (xbm_load_image): Caller changed.
9093 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
9094
9095 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
9096
9097 * process.c (create_pty): New function.
9098 (Fstart_process): Use it to allow Emacs to just associate a pty
9099 with the buffer. See associated change in gdb-mi.el.
9100 (list_processes_1): Deal with no program name.
9101 (start_process_unwind): Use pid == -2 to mean no process.
9102
9103 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
9104
9105 * cmds.c (nonundocount): New global variable.
9106 (keys_of_cmds): Initialize it.
9107 (Fself_insert_command): Use it to combine upto 20 sequential chars
9108 into a single undo entry, just like the Qself_insert_command code in
9109 keyboard.c does.
9110 Call frame_make_pointer_invisible, also like the Qself_insert_command
9111 code in keyboard.c does.
9112 * keyboard.c (command_loop_1): Use the new global nonundocount rather
9113 than its own local replacement for it.
9114
9115 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
9116
9117 * fns.c (concat): Don't re-set string length to its current value.
9118
9119 * coding.h (decode_coding_string, encode_coding_string):
9120 Use SBYTES macro.
9121
9122 * doprnt.c (doprnt_lisp): Delete unused function.
9123 (doprnt): Merge with doprnt1, discarding lispstrings code.
9124 * lisp.h (doprnt_lisp): Don't declare.
9125
9126 2009-08-07 Juri Linkov <juri@jurta.org>
9127
9128 * puresize.h (BASE_PURESIZE): Increase to 1270000.
9129
9130 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
9131
9132 * print.c (syms_of_print): Undo previous change.
9133
9134 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
9135
9136 * lread.c (read1, syms_of_lread): Read hashtables back from the
9137 readable format.
9138
9139 * print.c (print_preprocess, print_object): Print hashtables fully
9140 and readably.
9141 (syms_of_print): Provide 'hashtable-print-readable.
9142
9143 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
9144
9145 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
9146 no family set.
9147 (nsfont_open): Handle case when entity has no family.
9148
9149 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9150
9151 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
9152 element, not a list, for match case.
9153
9154 2009-07-28 Kenichi Handa <handa@m17n.org>
9155
9156 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
9157 rigidly.
9158
9159 * xfont.c (xfont_list_pattern): Don't ignore the return value of
9160 font_parse_xlfd. Check font properties more rigidly.
9161
9162 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
9163
9164 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
9165 bsd-common.h.
9166
9167 2009-07-27 Kenichi Handa <handa@m17n.org>
9168
9169 * xfaces.c (face_with_height): Call font_clear_prop.
9170
9171 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
9172
9173 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
9174
9175 * xterm.c (x_term_init): Use Qx.
9176
9177 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
9178
9179 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
9180 (ns_get_color): Revert 2009-07-16 change.
9181
9182 2009-07-25 Eli Zaretskii <eliz@gnu.org>
9183
9184 * lread.c (syms_of_lread) <force_load_messages>: New variable.
9185 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
9186
9187 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
9188
9189 * coding.h (decode_coding_string, encode_coding_string):
9190 Use SCHARS macro.
9191
9192 * lread.c: Rewrite 2009-07-21 changes.
9193 (load_depth): Delete.
9194 (Qload_in_progress): New variable.
9195 (load_unwind): Don't reference load_depth or load_in_progress.
9196 (Fload): Likewise; specbind Qload_in_progress instead.
9197 (init_lread): Don't initialize load_depth.
9198 (syms_of_lread): Initialize and protect Qload_in_progress.
9199
9200 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9201
9202 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
9203
9204 2009-07-23 Yavor Doganov <yavor@gnu.org>
9205
9206 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
9207
9208 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
9209
9210 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
9211 Bugs 3792, 3720, 2402.
9212 (ns_lookup_indexed_color): Check for bad index.
9213 (ns_index_color): Init unused slot to 0.
9214 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
9215 Bug 3714, possibly 3082.
9216
9217 2009-07-22 Jason Rumney <jasonr@gnu.org>
9218
9219 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
9220 Position IME window at cursor (Bug#2570).
9221 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
9222 (globals_of_w32fns): Dynamically load functions required above.
9223
9224 * w32term.c (w32_draw_window_cursor): Send message to reposition
9225 any IME window.
9226
9227 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
9228
9229 * fileio.c: Revert 2009-07-16 changes.
9230 (Vauto_save_include_big_deletions): New variable.
9231 (Fdo_auto_save): Disable auto-save only if
9232 auto-save-include-big-deletions is nil.
9233
9234 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
9235
9236 * xdisp.c (move_it_to): For continued lines ending in a tab, take
9237 the overflowed pixels into account (Bug#3879).
9238
9239 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
9240
9241 * lread.c (load_depth): New variable.
9242 (Fload, load_unwind, init_lread): Set it to the load recursion
9243 depth; set load_in_progress as a simple boolean based on the
9244 current load_depth. (Bug#3892)
9245
9246 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9247
9248 * nsfont.m (ns_has_attribute): Remove.
9249 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
9250
9251 2009-07-18 Juri Linkov <juri@jurta.org>
9252
9253 * process.c (Fset_process_query_on_exit_flag): Mention killing
9254 a buffer in docstring.
9255
9256 2009-07-17 Kenichi Handa <handa@m17n.org>
9257
9258 * casetab.c (shuffle): Fix the logic of setting up the cycle.
9259
9260 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9261
9262 * nsfns.m (Fns_set_alpha): Remove function.
9263 (syms_of_nsfns): Don't defsubr it.
9264
9265 * nsterm.m (ns_get_color): Remove incompatible color formats.
9266 (ns_color_to_lisp): Generate #rrggbb color format string.
9267
9268 2009-07-16 Richard Stallman <rms@gnu.org>
9269
9270 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
9271 (Fset_buffer_auto_saved): Handle save_length = -2.
9272
9273 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
9274
9275 * xterm.c (Qx_gtk_map_stock): New var.
9276
9277 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
9278 of calling intern each time.
9279
9280 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9281
9282 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
9283 does tiling.
9284
9285 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
9286
9287 2009-07-14 Kenichi Handa <handa@m17n.org>
9288
9289 * font.c (font_vconcat_entity_vectors): New function.
9290 (struct font_sort_data): New member font_driver_preference.
9291 (font_compare): Check font_driver_preference.
9292 (font_sort_entities): The format of the first argument changed.
9293 (font_delete_unmatched): Likewise.
9294 (font_list_entities): The return type changed.
9295 (font_select_entity): The format of the second argument changed.
9296 (font_find_for_lface): Adjuste for the above changes.
9297 Don't suppress the checking of C even if the repertory supports it.
9298 (Flist_fonts): Adjust for the above changes.
9299
9300 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
9301 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
9302 Reject a font who has adstyle property that is different from a
9303 langname derived from registry property.
9304 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
9305
9306 2009-07-13 Eli Zaretskii <eliz@gnu.org>
9307
9308 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
9309 local copy of dirfilename.
9310
9311 2009-07-13 Kenichi Handa <handa@m17n.org>
9312
9313 * chartab.c (sub_char_table_ref_and_range): Fix the range check
9314 against max_char.
9315
9316 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
9317 calling XSYMBOL (sym).
9318
9319 2009-07-11 Eli Zaretskii <eliz@gnu.org>
9320
9321 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
9322 New function.
9323 (directory_files_internal) [WINDOWSNT]:
9324 Bind w32-get-true-file-attributes to either t or nil, depending whether
9325 the filesystem of the directory is fast or slow.
9326
9327 * w32.c (logon_network_drive): Don't assume PATH is an absolute
9328 file name.
9329 (is_slow_fs): New function.
9330 (stat): Use it to determine whether to issue more system calls to
9331 get accurate file attributes, when w32-get-true-file-attributes is
9332 `local'.
9333
9334 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
9335
9336 * xfns.c (Fx_select_font): Remember last font selected in
9337 x_last_font_name and use that the next time. Also try the frame
9338 parameter font-parameter as default to the font dialog.
9339
9340 2009-07-10 Kenichi Handa <handa@m17n.org>
9341
9342 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
9343
9344 2009-07-09 Eli Zaretskii <eliz@gnu.org>
9345
9346 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
9347
9348 * w32.c (stat): Treat UNC file names as residing on remote
9349 drives. (Bug#3542)
9350
9351 2009-07-09 Kenichi Handa <handa@m17n.org>
9352
9353 * fontset.c (fontset_find_font): Fix previous change.
9354
9355 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
9356
9357 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
9358 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
9359 error flag.
9360
9361 2009-07-08 Kenichi Handa <handa@m17n.org>
9362
9363 * fontset.c (fontset_find_font): Fix the logic of handling
9364 charset_matched.
9365 (font_for_char): Delete unused var.
9366 (generate_ascii_font_name): Delete it.
9367
9368 * coding.h (JIS_TO_SJIS2): Fix the code range check.
9369
9370 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
9371 (encode_coding_sjis): Fix the code range check.
9372
9373 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
9374
9375 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
9376 (Fexpand_file_name): Copy string data properly (Bug#3772).
9377
9378 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
9379
9380 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
9381 first MapNotify.
9382
9383 2009-07-07 Kenichi Handa <handa@m17n.org>
9384
9385 * character.h (unibyte_has_multibyte_table): Delete extern.
9386 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
9387
9388 * charset.c (Fset_charset_priority): Update charset_unibyte.
9389 (syms_of_charset): Initialize charset_unibyte.
9390
9391 * character.c (unibyte_has_multibyte_table): Delete it.
9392 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
9393 charset_unibyte.
9394 (multibyte_char_to_unibyte_safe): Likewise.
9395 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
9396
9397 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
9398 (x_produce_glyphs): Likewise.
9399
9400 * .gdbinit (xcharset): Fix the treating $arg0.
9401
9402 2009-07-04 Eli Zaretskii <eliz@gnu.org>
9403
9404 Emulation of `getloadavg' on MS-Windows.
9405 * w32.c: Include float.h.
9406 (g_b_init_get_native_system_info, g_b_init_get_system_times)
9407 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
9408 (get_native_system_info, get_system_times): New functions.
9409 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
9410 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
9411 (globals_of_w32): Initialize g_b_init_get_native_system_info,
9412 g_b_init_get_system_times, and num_of_processors.
9413
9414 2009-07-03 Jason Rumney <jasonr@gnu.org>
9415
9416 * w32term.c (w32_initialize): Use standard types.
9417
9418 2009-07-03 Eli Zaretskii <eliz@gnu.org>
9419
9420 * dired.c (Ffile_attributes): Decode user and group names by the
9421 locale's encoding. (Bug#3443)
9422
9423 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
9424
9425 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
9426 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
9427
9428 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
9429
9430 * term.c (init_tty): Remove spurious #ifdef.
9431
9432 * m/mips.h: Mention this file is also used for netbsd.
9433 * m/pmax.h: Remove file.
9434
9435 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
9436
9437 * xterm.h (struct x_display_info): Add invisible_cursor.
9438 (struct x_output): Add current_cursor.
9439
9440 * xterm.c (XTtoggle_invisible_pointer): New function.
9441 (x_define_frame_cursor): Don't define cursor if invisible or the
9442 same as before. Set current_cursor.
9443 (x_create_terminal): Set toggle_invisible_pointer_hook.
9444
9445 * xfns.c (make_invisible_cursor): New function.
9446 (x_set_mouse_color): Call make_invisible_cursor.
9447 Set current_cursor.
9448 (x_window): Set current_cursor.
9449
9450 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
9451
9452 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
9453 inserting a character.
9454 (read_avail_input): Call frame_make_pointer_visible.
9455
9456 * frame.c (Vmake_pointer_invisible): New variable.
9457 (frame_make_pointer_invisible, frame_make_pointer_visible):
9458 New functions.
9459 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
9460
9461 * frame.h: Declare frame_make_pointer_invisible and
9462 frame_make_pointer_visible.
9463 (struct frame): Add pointer_invisible.
9464
9465 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
9466
9467 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
9468 frame isn't visible.
9469 (xg_frame_resized): If width/height is -1, get size of window
9470 from X server.
9471
9472 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
9473 for MapNotify.
9474
9475 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
9476 here or call change_frame_size. Just call flush_and_sync.
9477 (flush_and_sync): Reintroduce.
9478
9479 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
9480
9481 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
9482
9483 * xterm.c (x_handle_net_wm_state): Also look for sticky.
9484 (x_term_init): Initialize Xatom_net_wm_state_sticky.
9485
9486 * frame.h: Declare Qsticky.
9487
9488 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
9489
9490 * nsfns.m (ns_frame_parm_handlers): Ditto.
9491
9492 * frame.c: Declare Qsticky.
9493 (frame_parms): Add sticky.
9494
9495 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
9496
9497 * xterm.h: Declare x_set_sticky.
9498
9499 * xterm.c (x_set_sticky): New function.
9500
9501 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
9502 (xg_tool_bar_menu_proxy): Attach enter/leave events to
9503 xg_tool_bar_proxy_help_callback.
9504
9505 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
9506
9507 * frame.c: Qmaximized is new.
9508 (x_set_frame_parameters): Do not handle fullscreen specially.
9509 Only set width and height if explicitly set.
9510 (x_set_fullscreen): Handle Qmaximized.
9511 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
9512 (syms_of_frame): Initialize Qmaximized.
9513
9514 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
9515 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
9516
9517 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
9518 for Expose event. Add call to x_check_fullscreen for MapNotify event.
9519 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
9520 set gravity to NorthWestGravity when USE_GTK.
9521 (set_wm_state): New function.
9522 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
9523 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
9524 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
9525 or the case when no window manager is running. That means remove calls
9526 to x_real_positions and x_fullscreen_adjust.
9527
9528 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
9529 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
9530 flush_and_sync.
9531 (xg_height_changed): New function.
9532 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
9533 and gtk_window_set_policy. Set frame gravity after parsing the
9534 geometry string.
9535 (xg_update_frame_menubar, free_frame_menubar)
9536 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
9537 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
9538 Remove calls to xg_frame_set_char_size.
9539
9540 2009-07-01 Kenichi Handa <handa@m17n.org>
9541
9542 * keyboard.c (decode_keyboard_code): New function.
9543 (tty_read_avail_input): Decode the input bytes if necessary.
9544
9545 * coding.c (setup_coding_system):
9546 Initialize coding->carryover_bytes to 0.
9547 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
9548 use Qno_conversion.
9549
9550 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9551
9552 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
9553
9554 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
9555
9556 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
9557
9558 2009-06-30 Jason Rumney <jasonr@gnu.org>
9559
9560 * w32term.c (w32_initialize): Use GetModuleHandle for library that
9561 is already loaded.
9562 Set user model ID if supported (bug#1849).
9563
9564 2009-06-29 Jim Meyering <meyering@redhat.com>
9565
9566 Remove useless if-before-xfree test.
9567 * nsfont.m (nsfont_close): Remove useless test.
9568 * term.c (delete_tty): Likewise.
9569 * w32.c (system_process_attributes): Likewise.
9570 * w32font.c (w32font_close): Likewise.
9571 * xfaces.c (x_free_gc): Likewise.
9572 * xselect.c (buffer): Likewise.
9573
9574 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
9575
9576 * process.c (send_process): Keep decoded string in a local
9577 variable and protect it from GC. (Bug#3521)
9578
9579 2009-06-28 Eli Zaretskii <eliz@gnu.org>
9580
9581 * term.c (create_tty_output) [MSDOS]: #ifdef away.
9582 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
9583
9584 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
9585
9586 * xdisp.c (start_display, handle_face_prop)
9587 (move_it_vertically_backward, cursor_row_fully_visible_p)
9588 (redisplay_window, try_window_id, produce_image_glyph):
9589 Delete some #ifdef-ed out code chunks that are now obsolete.
9590
9591 * xterm.c (x_update_window_begin, x_new_focus_frame)
9592 (x_scroll_bar_handle_click, handle_one_xevent)
9593 (handle_one_xevent, XTread_socket, x_focus_on_frame)
9594 (x_make_frame_visible, x_make_frame_invisible)
9595 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
9596 code chunks that are now obsolete.
9597
9598 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
9599
9600 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
9601 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
9602 for hours, when optimzation is enabled.
9603 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
9604 (xd_read_message): Make them static.
9605
9606 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
9607
9608 * term.c (turn_on_face): Allow simultaneously bold and dim
9609 terminal faces (Bug#3530).
9610
9611 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
9612
9613 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
9614
9615 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
9616 truncation glyphs (Bug#3686).
9617
9618 2009-06-27 Glenn Morris <rgm@gnu.org>
9619
9620 * m/pmax.h: Restore file, with only netbsd portions.
9621
9622 2009-06-26 David Reitter <david.reitter@gmail.com>
9623
9624 * nsterm.m (keydown): Avoid infinite loop.
9625
9626 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
9627
9628 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
9629 the arg FORCE_SYMBOL.
9630
9631 2009-06-25 Kenichi Handa <handa@m17n.org>
9632
9633 * fontset.c (fontset_find_font): When a usable rfont_def is found
9634 in a fallback font-group, make it the first element of the group.
9635
9636 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
9637
9638 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
9639
9640 2009-06-24 Kenichi Handa <handa@m17n.org>
9641
9642 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
9643 set for C.
9644 (fontset_font): Record the availability of a font for C both in
9645 the realized fontsets of the current one and the default one.
9646
9647 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
9648
9649 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
9650 conditional, it is always defined on AIX.
9651
9652 2009-06-23 Miles Bader <miles@gnu.org>
9653
9654 * window.c (Vrecenter_redisplay): New variable.
9655 (syms_of_window): Initialize it.
9656 (Qtty): New extern declaration.
9657 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
9658
9659 2009-06-23 Jim Meyering <meyering@redhat.com>
9660
9661 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
9662 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
9663 pointer dereferences are guaranteed to be valid.
9664
9665 2009-06-23 Kenichi Handa <handa@m17n.org>
9666
9667 * emacs.c (main): Call init_font ().
9668
9669 * font.h (Vfont_log): Extern it.
9670 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
9671
9672 * font.c (font_sort_entities, font_list_entities)
9673 (font_matching_entity, font_open_entity)
9674 (font_close_object): Change font_add_log to FONT_ADD_LOG.
9675 (Vfont_log): Delete static.
9676 (font_log_env_checked): Delete this variable.
9677 (font_add_log): Don't check font_log_env_checked.
9678 (font_deferred_log): Check Vfont_log.
9679 (init_font): New function.
9680
9681 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
9682
9683 * w32font.c: Change font_add_log to FONT_ADD_LOG.
9684
9685 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
9686
9687 * xfont.c: Change font_add_log to FONT_ADD_LOG.
9688
9689 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
9690 (face_for_char): Don't call font_deferred_log here.
9691 (font_for_char): Likewise.
9692
9693 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
9694
9695 * w32term.c (x_draw_glyph_string): Use the glyph string's width
9696 rather than its background_width for drawing the overline and
9697 underline (Bug#489).
9698
9699 * xterm.c (x_draw_glyph_string): Use the glyph string's width
9700 rather than its background_width for drawing the overline and
9701 underline (Bug#489).
9702 (xg_default_icon_file): New variable.
9703 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
9704 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9705
9706 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
9707 (load_overlay_strings): Remove externs.
9708 (fast_find_position): Function deleted.
9709 (mouse_face_from_buffer_pos): New function, based on
9710 fast_find_position. Correctly handle before-strings,
9711 display-strings, and after-strings (Bug#1220).
9712 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
9713
9714 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
9715
9716 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
9717 (move_it_in_display_line_to, move_it_in_display_line_to)
9718 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
9719
9720 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
9721
9722 * Branch for 23.1.
9723
9724 2009-06-21 Jason Rumney <jasonr@gnu.org>
9725
9726 * w32term.c (keyboard_codepage): New static variable.
9727 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
9728 (w32_read_socket) [WM_CHAR]: Use it to decode character
9729 input (bug#3237).
9730 (w32_initialize): Initialize it.
9731 (codepage_for_locale): New function.
9732
9733 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
9734
9735 * process.c (status_message): Pass Faset index argument as a lisp
9736 object, so as to work with USE_LISP_UNION_TYPE.
9737
9738 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9739
9740 * coding.c (Ffind_coding_systems_region_internal):
9741 Cache checked characters.
9742
9743 2009-06-18 Kenichi Handa <handa@m17n.org>
9744
9745 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
9746
9747 2009-06-18 Andreas Schwab <aschwab@redhat.com>
9748
9749 * xdisp.c (redisplay_internal): Check that the frame is still
9750 live after redisplay of its windows.
9751 (redisplay_windows): Check that the window is still live.
9752
9753 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
9754
9755 * coding.c (detect_coding_utf_16): Fix previous change.
9756
9757 2009-06-16 Kenichi Handa <handa@m17n.org>
9758
9759 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
9760 UTF-16 by checking the dispersion of Eth and Oth bytes.
9761
9762 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
9763
9764 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
9765
9766 2009-06-15 Kenichi Handa <handa@m17n.org>
9767
9768 * process.c (status_message): Fix previous change. Be sure to
9769 decode a localized string.
9770
9771 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9772
9773 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
9774 add comment explaining why.
9775
9776 2009-06-14 Sidney Markowitz <sidney@sidney.com>
9777
9778 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
9779
9780 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
9781
9782 * nsfont.m (ns_attribute_value): Remove.
9783 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
9784 (ns_has_attribute): Shrink the normal range.
9785 (ns_findfonts): Don't worry about requested spec in determining
9786 need for synthItal.
9787 (ns_get_covering_families): Retain scriptToFamilies.
9788
9789 2009-06-14 Seiji Zenitani <zenitani@mac.com>
9790
9791 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
9792
9793 2009-06-11 Kenichi Handa <handa@m17n.org>
9794
9795 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
9796 overhang for the static composition case.
9797
9798 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9799
9800 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
9801 overhang for the automatic composition case.
9802
9803 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
9804 composition case.
9805
9806 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
9807
9808 * xdisp.c (get_next_display_element): When handling wrap-prefix
9809 and line-prefix, treat \n as a control character (bug#3502).
9810
9811 2009-06-10 Kenichi Handa <handa@m17n.org>
9812
9813 * font.c (font_parse_family_registry): Fix for one-char foundry.
9814 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
9815
9816 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
9817
9818 * process.c (status_message): Fix handling of multibyte signal
9819 string (Bug#3499).
9820
9821 2009-06-09 Jim Meyering <meyering@redhat.com>
9822
9823 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
9824 color name is missing.
9825
9826 2009-06-09 Kenichi Handa <handa@m17n.org>
9827
9828 * charset.c (Fmap_charset_chars): In docstring, state clearly that
9829 FROM-CODE and TO-CODE are codepoints of CHARSET.
9830
9831 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
9832
9833 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
9834
9835 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
9836
9837 Changes to support :script/:lang/:otf in NS font driver.
9838 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
9839 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
9840 indicate not part of font driver interface, and change callers.
9841 (ns_get_family): Remove pointless null check.
9842 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
9843 ns_spec_to_descriptor, ns_descriptor_to_entity.
9844 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
9845 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
9846 (ns_spec_to_descriptor, ns_descriptor_to_entity)
9847 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
9848 (ns_get_req_script, ns_accumulate_script_ranges)
9849 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
9850 New functions.
9851 (nsfont_list, nsfont_match): Use ns_findfonts.
9852 (nsfont_open): Use font descriptor instead of traits.
9853 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
9854 (dump_glyphstring): Rename to ns_dump_glyphstring.
9855
9856 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
9857
9858 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
9859
9860 * fontset.c (fontset_from_font): Remove NS-specific code.
9861
9862 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
9863
9864 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
9865 nonactive windows.
9866
9867 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
9868
9869 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
9870
9871 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
9872
9873 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
9874
9875 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
9876
9877 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
9878 account for the overflowing of newlines into the last glyph on the
9879 display line (Bug#3482).
9880
9881 2009-06-05 David Reitter <david.reitter@gmail.com>
9882
9883 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
9884 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
9885 Fns_selection_exists_p, Fns_selection_owner_p.
9886
9887 2009-06-03 Jason Rumney <jasonr@gnu.org>
9888
9889 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
9890 available. (Bug#3379)
9891
9892 2009-05-29 Kenichi Handa <handa@m17n.org>
9893
9894 * coding.c (get_translation_table):
9895 Check Venable_character_translation.
9896
9897 2009-05-26 David Reitter <david.reitter@gmail.com>
9898
9899 * nsterm.m (ns_raise_frame): Only raise frame if visible.
9900 (x_make_frame_visible): Move frame to front rather than calling
9901 ns_raise_frame().
9902 (keyDown:): Do not swallow events that aren't re-sent if frame
9903 isn't key window.
9904 (drawRect:): Do not set visibility/iconified flags because
9905 drawRect may be called by NSView even if the frame is hidden.
9906
9907 * nsfns.m (Fx_create_frame): Follow other ports in
9908 determining visibility; default to t. Ensure async_visible is set.
9909
9910 2009-05-23 Eli Zaretskii <eliz@gnu.org>
9911
9912 * dired.c (Ffile_attributes): Doc fix.
9913
9914 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
9915
9916 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
9917
9918 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
9919
9920 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
9921 and xfont_scratch_props.
9922 (syms_of_xfont): Do it here instead.
9923 (xfont_find_ccl_program): Delete, unused.
9924 (xfont_open): Delete unused var `i'.
9925
9926 2009-05-21 Kenichi Handa <handa@m17n.org>
9927
9928 * fontset.c (Qlatin): Don't make it static.
9929
9930 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
9931 New functions.
9932 (xfont_scripts_cache, xfont_scratch_props): New variables.
9933 (Qlatin, Vscalable_fonts_allowed): Extern it.
9934 (xfont_list_pattern): Argument changed. Callers changed.
9935 Check Vscalable_fonts_allowed. Check the support of a script.
9936 (xfont_list): Don't reject a font spec with :script property.
9937 (xfont_has_char): Fix setting of encoding.
9938 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
9939 xfont_scratch_props.
9940
9941 2009-05-19 Kenichi Handa <handa@m17n.org>
9942
9943 * font.c (font_sort_entities): Rename from font_sort_entites.
9944 Callers changed.
9945
9946 2009-05-18 Kenichi Handa <handa@m17n.org>
9947
9948 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
9949
9950 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
9951
9952 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
9953 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
9954
9955 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9956
9957 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
9958 (x_delete_terminal): Dissociate resource database from display and
9959 then call XrmDestroyDatabase before closing display.
9960
9961 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
9962
9963 * nsterm.m (ns_read_socket): Remove unused variable.
9964 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
9965 whether selected frame is viable before raising it (based on patch
9966 by David Reitter), and improve commentary.
9967 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9968
9969 2009-05-15 Kenichi Handa <handa@m17n.org>
9970
9971 * font.c (Ffont_spec): Check arguments.
9972
9973 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
9974
9975 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
9976 weight when testing attributes (Bug#3282).
9977
9978 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9979
9980 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
9981 what we expect to get in the next ConfigureNotify event.
9982
9983 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
9984 before Xft one (Bug#1696).
9985
9986 2009-05-07 David Reitter <david.reitter@gmail.com>
9987
9988 * nsfns.m (Fx_display_planes): Compute bitplanes using
9989 NSBitsPerPixelFromDepth (Bug#3207).
9990
9991 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
9992
9993 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
9994
9995 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
9996
9997 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
9998
9999 2009-05-07 David Reitter <david.reitter@gmail.com>
10000
10001 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
10002 Respect mouse face background.
10003
10004 2009-05-07 David Reitter <david.reitter@gmail.com>
10005
10006 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
10007 Mouse movement/highlight: bracket drawing operations
10008 in ns_update_begin and ns_update_end.
10009
10010 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
10011
10012 * nsfns.m (ns_get_screen): Rewrite.
10013 Don't presume selected-frame is of type `ns'.
10014
10015 * font.c (font_update_drivers): Sanity fallback to avoid disabling
10016 all drivers.
10017
10018 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
10019
10020 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10021
10022 * keyboard.h (add_user_signal): Fix typo in extern.
10023
10024 * lisp.h (add_user_signal): Remove extern.
10025
10026 * unexelf.c (unexec): Consider a section to precede the .bss section
10027 if its addresses overlap that of .bss.
10028 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
10029 instead of dumping process.
10030
10031 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
10032
10033 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
10034
10035 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
10036
10037 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
10038
10039 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
10040
10041 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
10042 any statements.
10043
10044 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
10045
10046 * process.c (read_process_output): Make sure the current buffer is
10047 always restored.
10048
10049 * coding.c (record_conversion_result): Don't modify
10050 Vlast_code_conversion_error for successful result.
10051 (alloc_destination): Don't clobber conversion result. (Bug#1650)
10052
10053 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10054
10055 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
10056 (load_charset_map): Remove unnecessary code.
10057
10058 2009-04-30 David Reitter <david.reitter@gmail.com>
10059
10060 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
10061 through f24.
10062
10063 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
10064
10065 * xfaces.c (face_at_buffer_position): New arg base_face_id.
10066
10067 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
10068 face_at_buffer_position.
10069 (face_before_or_after_it_pos, get_next_display_element)
10070 (note_mouse_highlight): Update face_at_buffer_position call.
10071
10072 * term.c (term_mouse_highlight):
10073 * msdos.c (IT_note_mouse_highlight):
10074 * fontset.c (Finternal_char_font):
10075 * font.c (font_at, font_range): Update face_at_buffer_position call.
10076
10077 * dispextern.h (face_at_buffer_position): Update prototype.
10078
10079 2009-04-30 Kenichi Handa <handa@m17n.org>
10080
10081 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
10082
10083 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
10084
10085 * callproc.c (Fcall_process): Fix GC protection. Make sure
10086 current buffer is always restored.
10087
10088 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10089
10090 * atimer.c (init_atimer): Also clear stopped_atimers.
10091
10092 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
10093
10094 * process.c (create_process): Clean up merger residues of
10095 2008-07-17 change.
10096
10097 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
10098
10099 * lread.c (Vread_circle): New variable.
10100 (read1): Disable recursive read if Vread_circle is nil.
10101
10102 2009-04-29 Kenichi Handa <handa@m17n.org>
10103
10104 * fontset.h (set_default_ascii_font): Delete extern.
10105
10106 * fontset.c (set_default_ascii_font): Delete this unused function.
10107
10108 * frame.c (x_set_font): When ARG is a font-object, check if the
10109 font-object matches with the ASCII font-spec of the frame's
10110 fontset. If not, create a new fontset for the frame. (Bug #3075)
10111
10112 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
10113
10114 * fns.c (Flocale_info): Protect vector from GC during decoding.
10115
10116 * process.c (Fstart_process): Protect argv strings from GC during
10117 encoding.
10118
10119 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
10120
10121 * sysdep.c: Include <ctype.h>.
10122
10123 2009-04-27 David Reitter <david.reitter@gmail.com>
10124
10125 * nsfont.m (nsfont_open): Remove unused variable shrink.
10126 Remove commented-out code.
10127
10128 2009-04-26 Johan Bockgård <bojohan@gnu.org>
10129
10130 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
10131
10132 2009-04-25 Jason Rumney <jasonr@gnu.org>
10133
10134 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
10135
10136 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10137
10138 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
10139 Swap bytes in short integer if fringe bitmap width > 8.
10140
10141 2009-04-23 Kenichi Handa <handa@m17n.org>
10142
10143 * xfaces.c (Fx_list_fonts): If a font size is specified in
10144 PATTERN, set it in returned scalable fonts.
10145
10146 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
10147
10148 * keyboard.c (Fset_input_meta_mode): Doc fix.
10149
10150 * dispnew.c (Fsend_string_to_terminal): Doc fix.
10151
10152 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
10153
10154 * coding.c (Fterminal_coding_system): Doc fix.
10155
10156 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
10157 (Fx_display_pixel_height, Fx_display_planes)
10158 (Fx_display_color_cells, Fx_server_max_request_size)
10159 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
10160 (Fx_display_mm_height, Fx_display_mm_width)
10161 (Fx_display_backing_store, Fx_display_visual_class)
10162 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
10163 Doc fixes, replacing "terminal id" with "terminal object".
10164 (check_x_display_info): Handle terminal objects instead of
10165 terminal ids.
10166
10167 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
10168 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
10169 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
10170 Doc fixes, replacing "terminal id" with "terminal object".
10171
10172 2009-04-21 Kenichi Handa <handa@m17n.org>
10173
10174 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
10175 (font_score): Check AVGWIDTH too.
10176
10177 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
10178 worst case.
10179 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
10180 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
10181
10182 2009-04-19 Jason Rumney <jasonr@gnu.org>
10183
10184 The following changes fix Bug#3005 for wide glyphs on each platform,
10185 without reintroducing Bug#1258 for stretch glyphs.
10186
10187 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
10188 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
10189 get_phys_cursor_geometry.
10190
10191 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
10192 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
10193 using get_phys_cursor_geometry.
10194
10195 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
10196 correctly calculated.
10197
10198 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
10199
10200 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
10201 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
10202 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
10203 is deprecated.
10204
10205 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
10206
10207 * font.c (font_put_frame_data): Use xfree instead of free.
10208
10209 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
10210
10211 * w32font.c (Qja, Qko): Remove declarations.
10212 (syms_of_w32font): Don't DEFSYM them.
10213
10214 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
10215
10216 * font.c (Qja, Qko): Move definitions here from ftfont.c.
10217
10218 * font.h (Qja, Qko): Extern them.
10219
10220 * ftfont.c (Qja, Qko): Remove declarations.
10221
10222 * xfont.c (Qja, Qko): Remove declarations.
10223
10224 2009-04-17 Kenichi Handa <handa@m17n.org>
10225
10226 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
10227 string from a vector to handle Latin-1 characters correctly.
10228
10229 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
10230 entity even if the cache hits.
10231
10232 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
10233
10234 * search.c (boyer_moore): Use zero as marker value for a possible
10235 match instead of depending on overflow behavior. (Bug#2844)
10236
10237 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
10238 * lisp.h: Adjust prototypes.
10239
10240 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
10241
10242 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
10243 change (Bug#3003).
10244
10245 2009-04-16 Kenichi Handa <handa@m17n.org>
10246
10247 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
10248
10249 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
10250 adstyle.
10251
10252 * ftfont.c (Qja, Qko): Don't make them static.
10253 (enum ftfont_cache_for): New enum.
10254 (fc_charset_table): Undo the previous change.
10255 (ftfont_get_latin1_charset): Delete it.
10256 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
10257 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
10258 non-scarable font, try to get AVERAGE_WIDTH.
10259 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
10260 Change ft_face_cache from a list of a hash-table. Don't check
10261 `ja' and `ko' adstyle here.
10262 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
10263 FTFONT_CACHE_FOR_CHARET.
10264 (ftfont_get_charset): Undo the previous change.
10265 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
10266 (ftfont_close): Likewise.
10267 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
10268
10269 * font.c (font_sort_entites): Change the meaning of the arg
10270 BEST-ONLY. Don't optimize for VEC of lenght 1.
10271 (font_select_entity): Just return the value of font_sort_entites.
10272
10273 * xfaces.c (merge_face_vectors): Reflect font properties in
10274 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
10275 font_clear_prop if a face attribute doesn't change.
10276
10277 * charset.h (charset_ksc5601): Extern it.
10278
10279 * charset.c (charset_ksc5601): New variable.
10280 (Fdefine_charset_internal): Set charset_ksc5601.
10281 (init_charset_once): Initialize charset_ksc5601 to -1.
10282
10283 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
10284
10285 * fileio.c (history_delete_duplicates): Remove unused declaration.
10286
10287 * callint.c (history_delete_duplicates): New declaration.
10288 (Fcall_interactively): Remove command history duplicates when
10289 history_delete_duplicates is true.
10290
10291 2009-04-14 Eli Zaretskii <eliz@gnu.org>
10292
10293 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
10294
10295 2009-04-14 Kenichi Handa <handa@m17n.org>
10296
10297 * font.c (Ffont_info): Fix docstring. Fix the second element of
10298 the returned value (bug#2949).
10299
10300 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
10301
10302 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
10303
10304 2009-04-14 Kenichi Handa <handa@m17n.org>
10305
10306 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
10307 encoding charset is ascii_compatible.
10308
10309 * charset.c (Fdefine_charset_internal): Make charset
10310 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
10311 code_offset is 0, and covers all ASCII characters.
10312
10313 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
10314
10315 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
10316 (ns_string_to_pasteboard_internal):
10317 * nsmenu.m (process_dialog):
10318 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
10319 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
10320 * lisp.h (Fx_load_color_file): Declare.
10321
10322 2009-04-13 Kenichi Handa <handa@m17n.org>
10323
10324 * font.c (font_delete_unmatched): Preserve the order of list elements.
10325 (font_select_entity): Suppress the code to optimize for the same
10326 kind of fonts.
10327 (font_load_for_lface): Get a font that supports at least ASCII
10328 characters.
10329
10330 * ftfont.c (Qja, Qko): New variables.
10331 (fc_charset_table): Delete uniquifier data for iso8859-1.
10332 (ftfont_get_latin1_charset): New function.
10333 (get_adstyle_property): New function.
10334 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
10335 bitmap fonts.
10336 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
10337 Delete iso-8859-1 range from the charset of fonts whose adstyle is
10338 `ko' or `ja'.
10339 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
10340 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
10341 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
10342 property.
10343 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
10344 (syms_of_ftfont): DEFSYM Qja and Qko.
10345
10346 2009-04-09 Kenichi Handa <handa@m17n.org>
10347
10348 * charset.c (map_charset_chars): For a charset of `superset'
10349 method, fix calculation of code range.
10350
10351 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
10352 from the list of extra properties.
10353 (font_clear_prop): Be sure to delete `:name' font property.
10354
10355 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10356
10357 * dispnew.c (redraw_overlapping_rows): Fix detection of
10358 overlapping for topmost and bottommost rows.
10359
10360 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
10361
10362 2009-04-06 Jason Rumney <jasonr@gnu.org>
10363
10364 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
10365
10366 2009-04-06 Kenichi Handa <handa@m17n.org>
10367
10368 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
10369
10370 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
10371
10372 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10373
10374 * ftfont.c (ftfont_open): Fix checking of the return value of
10375 FT_Load_Char. Fix setting font->underline_thickness.
10376
10377 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
10378
10379 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
10380 (Fterminal_parameters, Fterminal_parameter)
10381 (Fset_terminal_parameter): In doc string, refer to terminal
10382 objects rather than terminal ids.
10383
10384 2009-04-04 Eli Zaretskii <eliz@gnu.org>
10385
10386 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
10387 ret_lim_data. (Bug#2867)
10388
10389 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
10390
10391 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
10392 so they don't get wider than the window, matching 2006-01-23
10393 change to the partner function in xdisp.c (Bug#2800).
10394
10395 2009-04-03 Kenichi Handa <handa@m17n.org>
10396
10397 * print.c (print_object): Make each lowest sub_char_table start a
10398 new line (Bug#2866).
10399
10400 2009-04-02 Kenichi Handa <handa@m17n.org>
10401
10402 * fontset.c (fontset_font): Record no-font when a fontset
10403 explicitly tells not to try another font-specs.
10404
10405 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
10406
10407 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
10408
10409 2009-03-30 Kenichi Handa <handa@m17n.org>
10410
10411 * fontset.c (fontset_from_font): Specify only registry in a
10412 font-spec for all characters supported by that registry.
10413
10414 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
10415 even if HAVE_M17N_FLT is not defined.
10416
10417 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
10418
10419 * ftfont.c: Conditionalize prototyping and use of
10420 ftfont_variation_glyphs.
10421
10422 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
10423
10424 * frame.c (delete_frame): Work around compiler bug.
10425
10426 * editfns.c (general_insert_function): Adjust to insdel.c changes.
10427 * insdel.c (prepare_to_modify_buffer, signal_before_change):
10428 Some more EMACS_INT.
10429 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
10430
10431 * xdisp.c (dump_glyph): Fix typo.
10432
10433 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
10434 (adjust_markers_gap_motion, adjust_markers_for_delete)
10435 (adjust_markers_for_insert, adjust_point)
10436 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
10437 (make_gap, copy_text, count_size_as_multibyte, insert)
10438 (insert_and_inherit, insert_before_markers)
10439 (insert_before_markers_and_inherit, insert_1)
10440 (count_combining_before, count_combining_after, insert_1_both)
10441 (insert_from_string, insert_from_string_before_markers)
10442 (insert_from_string_1, insert_from_gap, insert_from_buffer)
10443 (insert_from_buffer_1, adjust_after_replace)
10444 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
10445 (replace_range_2, del_range, del_range_1, del_range_byte)
10446 (del_range_both, del_range_2, modify_region)
10447 (prepare_to_modify_buffer, signal_before_change)
10448 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
10449 for buffer positions and sizes.
10450 * lisp.h: Adjust prototypes accordingly.
10451
10452 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
10453 (non_regular_inserted, non_regular_nbytes, read_non_regular)
10454 (Finsert_file_contents): Use EMACS_INT for buffer positions.
10455
10456 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
10457
10458 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
10459
10460 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
10461 lines and columns so we keep the same pixel height and width.
10462
10463 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
10464 the property _NET_WM_STATE has changed.
10465 (x_handle_net_wm_state): New function to update frame parameter
10466 fullscreen.
10467 (x_term_init): Initialize atoms for _NET_WM_STATE.
10468
10469 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
10470
10471 2009-03-27 Kevin Ryde <user42@zip.com.au>
10472
10473 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
10474 Gpm_GetEvent as an error that justifies closing the filedescriptor.
10475 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
10476 (Fgpm_mouse_stop): Pass that new parameter.
10477 * termhooks.h (close_gpm): Adjust prototype.
10478
10479 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
10480
10481 * lisp.h (Fx_focus_frame): Declare.
10482
10483 * callint.c (Fcall_interactively): For '^' just delegate the work to
10484 handle-shift-selection.
10485 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
10486
10487 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
10488
10489 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
10490
10491 * data.c (Qinteractive_form): New variable.
10492 (Finteractive_form): Use it.
10493
10494 * eval.c (Fcommandp): Use Qinteractive_form.
10495
10496 2009-03-24 Jason Rumney <jasonr@gnu.org>
10497
10498 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
10499 Calculate total size precisely. Decode environment variables
10500 before substituting. (Bug#38)
10501
10502 2009-03-24 Kenichi Handa <handa@m17n.org>
10503
10504 * font.c (find_font_encoding): Return Qnil for unsupported
10505 encoding (Bug#2722).
10506
10507 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
10508
10509 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
10510 that gdpy is set.
10511
10512 2009-03-22 Alan Mackenzie <acm@muc.de>
10513
10514 * callint.c (Finteractive): Clarify the doc string - even
10515 promptless elements need \n separators.
10516
10517 2009-03-22 Jason Rumney <jasonr@gnu.org>
10518
10519 * w32term.c (syms_of_w32term): Doc fix for
10520 x-use-underline-position-properties.
10521
10522 2009-03-21 Eli Zaretskii <eliz@gnu.org>
10523
10524 * w32.c (getpwuid): Change argument type to unsigned.
10525 (struct w32_id): Change type of `rid' member to unsigned.
10526 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
10527 argument ID to unsigned. All callers changed.
10528 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
10529
10530 2009-03-20 Eli Zaretskii <eliz@gnu.org>
10531
10532 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
10533 negative, produce a float value.
10534
10535 * dired.c (make_uid, make_gid): New functions.
10536 (Ffile_attributes): Use them to avoid negative UID and GID.
10537
10538 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
10539
10540 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
10541 (syms_of_keyboard) <command-hook-internal, input-method-function>:
10542 Fix typos in docstrings.
10543
10544 2009-03-19 Kenichi Handa <handa@m17n.org>
10545
10546 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
10547 changed, use font_load_for_lface to get a new font object.
10548 Call free_realized_fontset after handling ASCII font change.
10549
10550 * frame.c (x_set_font): Handle the case that ARG is a cons.
10551
10552 2009-03-19 Glenn Morris <rgm@gnu.org>
10553
10554 * fileio.c (Fsubstitute_in_file_name): Doc fix.
10555
10556 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
10557
10558 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
10559
10560 2009-03-19 Kenichi Handa <handa@m17n.org>
10561
10562 * charset.c (load_charset_map_from_file): When a mapfile can't be
10563 loaded, signal an error.
10564
10565 2009-03-18 Eli Zaretskii <eliz@gnu.org>
10566
10567 * dired.c (Ffile_attributes): Make sure UID and GID are always
10568 positive, even if the value is too large for a positive EMACS_INT.
10569 Doc fix.
10570
10571 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
10572
10573 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10574
10575 * xmenu.c (xdialog_show): Move Fredisplay call ...
10576 (Fx_popup_dialog): ... here.
10577
10578 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
10579
10580 * dired.c (file_name_completion): Disable the first optimization just
10581 installed, since it is not implemented correctly.
10582
10583 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
10584
10585 * dired.c (file_name_completion): Check completion-ignored-extensions
10586 only if the entry can affect bestmatch.
10587 Stop the search early, as Ftry_completion already does.
10588
10589 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
10590
10591 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
10592
10593 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
10594
10595 * keyboard.c (parse_menu_item): Don't display remappings as menu
10596 equivalent bindings (Bug#788).
10597
10598 2009-03-15 Jason Rumney <jasonr@gnu.org>
10599
10600 * w32term.h (WM_EMACS_PAINT): New message.
10601 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
10602 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
10603 before passing to lisp thread. (Bug#950)
10604
10605 2009-03-14 David Reitter <david.reitter@gmail.com>
10606
10607 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
10608 variable as it was never reset.
10609 (ns_term_init): Remove initialization of Lisp-settable defaults
10610 and ns_expand_space.
10611 (-setPanelFromDefaultValues): Remove ns_expand_space.
10612 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
10613 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
10614 i.e. no additional spacing, similar to Carbon port.
10615
10616 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
10617 * nsfns.m (ns-popup-prefs-panel): Remove.
10618
10619 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
10620
10621 * sound.c (alsa_configure): Remove call to deprecated
10622 snd_pcm_sw_params_set_xfer_align.
10623
10624 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
10625
10626 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
10627 after clicking in a detached tool bar.
10628 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
10629
10630 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
10631
10632 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
10633 int/Lisp_Object mixup).
10634
10635 2009-03-13 Kenichi Handa <handa@m17n.org>
10636
10637 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
10638 Handle NAME nil and t correctly. Callers changed.
10639 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
10640 (set_fontset_font): Change ARG to a vector. Handle range_list in
10641 ARG correctly.
10642 (Fset_fontset_font): Fix the case that TARGET is both a script
10643 name and charset name. Adjust the arg to set_fontset_font for
10644 the above change.
10645 (fontset_from_font): Fix previous change.
10646 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
10647 entry. If FONTSET is the default fontset, don't set the extra
10648 slot of the returning char-table.
10649
10650 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
10651
10652 * nsfns.m (Fx_close_connection): Doc fix.
10653 (Fns_do_applescript): Reflow docstring.
10654 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
10655 (Fx_display_pixel_width, Fx_display_pixel_height)
10656 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
10657 Fix typos in docstrings.
10658 (Fns_set_alpha): Fix typos in error messages.
10659
10660 2009-03-12 David Reitter <david.reitter@gmail.com>
10661
10662 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
10663 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
10664 were used for such events.
10665
10666 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
10667 (toggleToolbar, performDragOperation, runHelp): Use it.
10668
10669 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
10670 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
10671
10672 2009-03-11 Kenichi Handa <handa@m17n.org>
10673
10674 * font.h (font_open_by_spec): Extern it.
10675
10676 * font.c (font_open_by_spec): New function.
10677 (font_open_by_name): Use font_open_by_spec.
10678
10679 * frame.c (x_set_font): When ARG is a font-object, don't alter the
10680 fontset of the frame.
10681
10682 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
10683 modify the default font of frames that use this fontset.
10684 (num_auto_fontsets): New variable.
10685 (fontset_from_font): Use num_auto_fontsets to decide a fontset
10686 name. Be sure to set FONTSET_ASCII to the correct font name.
10687 (update_auto_fontset_alist): New function.
10688
10689 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
10690
10691 * makefile.w32-in: Update dependencies.
10692
10693 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10694
10695 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
10696
10697 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
10698
10699 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
10700
10701 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
10702
10703 * lread.c (Feval_buffer): Doc fix.
10704
10705 2009-03-09 Kenichi Handa <handa@m17n.org>
10706
10707 * charset.c (Qfile_name_handler_alist): Extern it.
10708 (load_charset_map_from_file): Temporarily bind
10709 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
10710
10711 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
10712
10713 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
10714 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
10715
10716 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10717
10718 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
10719 (x_set_window_size): Change back to calculated method of setting
10720 toolbar height under Cocoa. (Bug#2546)
10721 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
10722 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
10723
10724 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
10725
10726 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
10727 accelerator in parens under GNUstep.
10728
10729 2009-03-06 Kenichi Handa <handa@m17n.org>
10730
10731 These changes are to detect incorrect composition sequence without
10732 looking ahead the source. (Bug#2370)
10733
10734 * coding.h: Include "composite.h".
10735 (enum compisition_state): New enum.
10736 (struct compisition_status): New struct.
10737 (struct iso_2022_spec): New member cmp_status.
10738 (struct emacs_mule_spec): New struct.
10739 (struct coding_system): New members ctext_extended_segment_len and
10740 embedded_utf_8. Change the union member
10741 spec.emacs_mule_full_support to spec.emacs_mule.
10742
10743 * coding.c (CODING_ISO_CMP_STATUS): New macro.
10744 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
10745 (MAX_ANNOTATION_LENGTH): Define to 5.
10746 (ADD_COMPOSITION_DATA): New arg nbytes.
10747 (emacs_mule_char): New arg cmp_status.
10748 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
10749 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
10750 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
10751 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
10752 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
10753 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
10754 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
10755 (EMACS_MULE_COMPOSITION_END): New macro.
10756 (emacs_mule_finish_composition): New function.
10757 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
10758 (decode_coding_emacs_mule): Avoid long looking ahead while
10759 handling composition.
10760 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
10761 (ENCODE_COMPOSITION_RULE): New macro.
10762 (finish_composition): New function.
10763 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
10764 (DECODE_COMPOSITION_START): New implementation.
10765 (DECODE_COMPOSITION_END): Likewise.
10766 (STORE_COMPOSITION_RULE): New macro.
10767 (decode_coding_iso_2022): Avoid long looking ahead while handling
10768 composition, CTEXT extended segment, and embedded UTF-8.
10769 (setup_coding_system): For a coding of type iso-2022, reset
10770 CODING_ISO_EXTSEGMENT_LEN (coding) and
10771 CODING_ISO_EMBEDDED_UTF_8 (coding).
10772 (get_translation): Delete arguments last_block, from_nchars,
10773 to_nchars. Callers changed.
10774 (produce_chars): Don't modify charbuf. Adjusted for the change of
10775 get_translation.
10776 (produce_composition): Adjust for the new annotation sequence.
10777 (handle_composition_annotation): Likewise.
10778 (consume_chars): Adjust for the change of get_translation.
10779
10780 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
10781
10782 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
10783
10784 2009-03-05 Kenichi Handa <handa@m17n.org>
10785
10786 * font.c (font_select_entity): New function.
10787 (font_find_for_lface): Use font_select_entity to select a font.
10788
10789 * fontset.c (fontset_find_font): If a font found without
10790 restricting to the characters C doesn't support C, try to find a
10791 font with C restriction.
10792
10793 2009-03-04 Nikolaj Schumacher <me@nschum.de>
10794
10795 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
10796
10797 2009-03-04 Jason Rumney <jasonr@gnu.org>
10798
10799 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
10800 characters that have already been read. (Bug#2569)
10801
10802 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
10803 Log an error message if check_image_size failed.
10804 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
10805 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10806
10807 2009-03-02 Eli Zaretskii <eliz@gnu.org>
10808
10809 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
10810 when decoding process output.
10811
10812 2009-03-01 Richard M Stallman <rms@gnu.org>
10813
10814 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
10815
10816 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
10817
10818 2009-02-28 Eli Zaretskii <eliz@gnu.org>
10819
10820 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
10821 (decode_coding_emacs_mule, decode_coding_iso_2022)
10822 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10823 (decode_coding_raw_text, decode_coding_charset)
10824 (setup_coding_system, decode_eol, decode_coding, consume_chars):
10825 Honor inhibit-eol-conversion. (Bug #2186)
10826
10827 2009-02-28 Jason Rumney <jasonr@gnu.org>
10828
10829 * coding.c (detect_coding_charset): If not checking latin extra,
10830 fail on characters between 0x80 and 0xA0. (Bug#2354)
10831
10832 2009-02-28 Eli Zaretskii <eliz@gnu.org>
10833
10834 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
10835 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
10836
10837 2009-02-27 Glenn Morris <rgm@gnu.org>
10838
10839 * callint.c (Finteractive): Doc fix.
10840
10841 2009-02-27 Kenichi Handa <handa@m17n.org>
10842
10843 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
10844
10845 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
10846
10847 * font.c (font_style_to_value): Set value for unknown symbols to
10848 100 instead of 255.
10849 (weight_table, slant_table, width_table): Treat "unspecified" as
10850 the default value.
10851
10852 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
10853
10854 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
10855
10856 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
10857
10858 * lread.c (Fload): Stop checking Vloads_in_progress and signal
10859 error as soon as a recursive load is detected.
10860
10861 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10862
10863 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
10864 before caching.
10865
10866 2009-02-24 Kenichi Handa <handa@m17n.org>
10867
10868 * fontset.c (fontset_find_font): Fix the condition for checking
10869 unavailable font.
10870
10871 2009-02-24 Glenn Morris <rgm@gnu.org>
10872
10873 * xfaces.c (Finternal_set_font_selection_order): Remove leading
10874 whitespace that confuses documentation.
10875
10876 2009-02-23 Miles Bader <miles@gnu.org>
10877
10878 * process.c (Flist_system_processes, Fprocess_attributes)
10879 (syms_of_process): Rename `system-process-attributes' to
10880 `process-attributes'.
10881
10882 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
10883
10884 * coding.h (struct coding_system): Make safe_charsets a pointer to
10885 unsigned char.
10886 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
10887 being 255.
10888 (SAFE_CHARSET_P): Likewise.
10889 (setup_iso_safe_charsets): Properly setup safe_charsets.
10890 (Fdefine_coding_system_internal): Likewise.
10891 (setup_coding_system): Likewise. Remove unneeded casts.
10892 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
10893 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
10894 unneeded casts.
10895
10896 * insdel.c (del_range_2): Don't modify gap contents when called
10897 from decode_coding_object. (Bug#1809)
10898
10899 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
10900
10901 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
10902 Qfont_object.
10903 (Ftype_of): Recognize font objects.
10904
10905 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
10906
10907 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
10908 moved to data.c.
10909
10910 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10911
10912 * nsterm.m (x_make_frame_invisible): Unset async_visible,
10913 async_iconified. Based on a patch by Christian Lynbech
10914 <christian.lynbech@tieto.com>.
10915 (EmacsView-windowDidMiniaturize:): Unset async_visible.
10916
10917 2009-02-20 Glenn Morris <rgm@gnu.org>
10918
10919 * syntax.c (Fskip_chars_forward): Fix doc typo.
10920
10921 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
10922
10923 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
10924
10925 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
10926
10927 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
10928
10929 2009-02-19 Kenichi Handa <handa@m17n.org>
10930
10931 * coding.c (detect_coding): Preserve coding->mode.
10932 Don't overflow coding->carryover. (Bug#2370)
10933
10934 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
10935
10936 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
10937
10938 2009-02-18 Kenichi Handa <handa@m17n.org>
10939
10940 * font.c (font_check_otf_features): Fix handling of `nil' element.
10941 (Ffont_spec): Describe :lang and :otf in the docstring.
10942
10943 2009-02-16 Andreas Schwab <schwab@suse.de>
10944
10945 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
10946 string.
10947
10948 2009-02-16 Kenichi Handa <handa@m17n.org>
10949
10950 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
10951 (Bug#1723)
10952
10953 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
10954
10955 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
10956
10957 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
10958 (handle_line_prefix): Suppress wrapping of wrap prefixes.
10959
10960 2009-02-14 Eli Zaretskii <eliz@gnu.org>
10961
10962 * msdos.c (MAX_SCREEN_BUF): New macro.
10963 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
10964 Encode the entire run of glyphs sharing the same face, instead of
10965 doing that one glyph at a time (fixes a bug with displaying
10966 double-size characters).
10967
10968 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
10969
10970 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
10971
10972 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
10973 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
10974 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
10975
10976 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
10977 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
10978
10979 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
10980
10981 * keyboard.c (adjust_point_for_property): Allow stopping between two
10982 invisible areas.
10983
10984 2009-02-12 Jason Rumney <jasonr@gnu.org>
10985
10986 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
10987 (add_font_entity_to_list): Call check_face_name even when family
10988 is unspecified.
10989
10990 * w32term.c (x_display_pixel_height, x_display_pixel_width):
10991 Release DC when finished. Use NULL window to refer to desktop.
10992 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
10993
10994 * w32font.c (add_font_entity_to_list): Fix check for substituted
10995 raster fonts. (Bug#2219)
10996
10997 2009-02-12 Kenichi Handa <handa@m17n.org>
10998
10999 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
11000 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
11001 (autocmp_chars): Use fast_looking_at. Don't compose more
11002 characters than MAX_COMPOSITION_COMPONENTS.
11003 (find_automatic_composition): While looking forward and backward,
11004 check static composition. Fix where to stop looking forward.
11005 (composition_adjust_point): Fix checking of static composition.
11006 (Fcomposition_get_gstring): Pay attention to
11007 MAX_COMPOSITION_COMPONENTS.
11008
11009 * lisp.h (fast_looking_at): Extern it.
11010
11011 * search.c (fast_looking_at): New function.
11012
11013 * term.c (encode_terminal_code): Adjust for the change of
11014 <struct glyph>.u.cmp.to.
11015 (append_composite_glyph): Likewise.
11016
11017 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
11018 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
11019 composition.
11020 (append_composite_glyph): Adjust for the change of
11021 <strcut glyph>.u.cmp.to.
11022
11023 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
11024
11025 * casetab.c (init_casetab_once):
11026 * coding.c (ALLOC_CONVERSION_WORK_AREA):
11027 * font.c (font_update_lface):
11028 * fontset.c (Fnew_fontset):
11029 * ftfont.c (ftfont_drive_otf):
11030 * xfont.c (xfont_open):
11031 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
11032
11033 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
11034
11035 * fileio.c (Fwrite_region): !NILP -> CONSP.
11036
11037 2009-02-10 Andreas Schwab <schwab@suse.de>
11038
11039 * process.c (send_process): Properly relocate pointer into data
11040 when using encoded data. (Bug#2272)
11041
11042 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
11043
11044 * coding.c (detect_coding_charset): Fix previous change.
11045
11046 2009-02-08 Jason Rumney <jasonr@gnu.org>
11047
11048 * w32fns.c (w32_hide_hourglass): Handle case where frame
11049 disappeared while hourglass was displayed. (Bug #2193)
11050
11051 2009-02-07 Andreas Schwab <schwab@suse.de>
11052
11053 * unexelf.c (unexec): Fix error message.
11054
11055 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
11056
11057 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
11058 when modal window is active. (Bug #2152)
11059 (applicationShouldTerminate:): Remove now-unneeded while loop
11060 around NSRunAlertPanel.
11061
11062 * nsmenu.m (popupSession): New file-global variable.
11063 (pop_down_menu): End the popupSession before closing dialog.
11064 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
11065 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
11066 don't query NSApp for events (just sleep instead).
11067
11068 2009-02-07 Eli Zaretskii <eliz@gnu.org>
11069
11070 * coding.c (syms_of_coding) <translation-table-for-input>:
11071 Modify doc string to discourage use for character code unification.
11072
11073 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11074
11075 * atimer.c (run_timers): Update pending_atimers.
11076
11077 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
11078
11079 * image.c (svg_load_image): Fix last change.
11080
11081 * xfns.c (Fx_create_frame): Signal an error if no font is
11082 found (Bug#2147).
11083
11084 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
11085
11086 * character.c (syms_of_character) <script-representative-chars>:
11087 Fix typo in docstring.
11088
11089 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11090
11091 * nsmenu.m (pop_down_menu): New function.
11092 (ns_popup_dialog): Call it on unwind.
11093 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
11094 call timer_check() (Bug#2154).
11095 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
11096 handling_signal is set.
11097 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
11098
11099 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
11100
11101 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
11102
11103 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
11104
11105 * keyboard.c (poll_for_input_1, handle_async_input):
11106 Set handling_signal under HAVE_NS.
11107
11108 2009-02-04 Glenn Morris <rgm@gnu.org>
11109
11110 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
11111
11112 2009-02-04 Kenichi Handa <handa@m17n.org>
11113
11114 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
11115
11116 * charset.c (Fchar_charset): New optional arg restriction.
11117
11118 * coding.h (coding_system_charset_list): Extern it.
11119
11120 * coding.c (coding_system_charset_list): New function.
11121
11122 * composite.c: Include coding.h and termhooks.h.
11123 (composition_gstring_p): Fix for the terminal case.
11124 (composition_gstring_width): Likewise.
11125 (fill_gstring_body): Likewise.
11126 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
11127 the frame.
11128 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
11129 is within a composition.
11130 (Fcomposition_get_gstring): Fix the terminal case.
11131
11132 * term.c (encode_terminal_code): Fix handling of composition.
11133 (produce_composite_glyph): For static composition, get pixel_width
11134 from struct composition.
11135
11136 2009-02-02 Andreas Schwab <schwab@suse.de>
11137
11138 * unexelf.c (unexec): Handle unaligned bss offset.
11139
11140 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11141
11142 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
11143 XT,w32read_socket changes to ns_read_socket.
11144
11145 * keyboard.c (handle_interrupt): Don't call
11146 quit_throw_to_read_char() under NS.
11147
11148 * blockinput.h: Remove NS-specific code.
11149
11150 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
11151
11152 * dispnew.c (window_change_signal): Don't try to get the size of a
11153 suspended tty frame.
11154 * term.c (Fresume_tty): Resize if the size has changed while the
11155 tty was suspended.
11156
11157 * alloc.c (mark_stack): Properly conditionalize previous change.
11158
11159 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
11160
11161 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
11162 * w32term.c (w32_read_socket) [SYNC_INPUT]:
11163 Remove; this code is not used on Windows.
11164
11165 2009-01-30 Eli Zaretskii <eliz@gnu.org>
11166
11167 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
11168 EOLs that also has stray ^M characters.
11169
11170 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
11171
11172 * atimer.c (run_timers, alarm_signal_handler):
11173 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
11174 * w32inevt.c (w32_console_read_socket):
11175 * w32term.c (w32_read_socket):
11176 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
11177
11178 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
11179
11180 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
11181 Initialize it as a relative filename pattern.
11182 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
11183 (Fcall_process_region): Simplify temp file creation using
11184 temporary-file-directory.
11185
11186 2009-01-29 Eli Zaretskii <eliz@gnu.org>
11187
11188 * msdos.c: Rename pending_signals to msdos_pending_signals.
11189 (sig_suspender, sigprocmask): Adjust.
11190
11191 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
11192
11193 * keyboard.c (pending_signals): New var.
11194 (poll_for_input, input_available_signal, init_keyboard): Set it.
11195 (process_pending_signals): New function.
11196
11197 * lisp.h (QUIT): Check pending_signals instead of
11198 interrupt_input_pending. Use process_pending_signals.
11199
11200 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
11201
11202 * process.c (wait_reading_process_output): Use process_pending_signals.
11203
11204 * sysdep.c (emacs_write): Use process_pending_signals.
11205
11206 * xterm.c (XTread_socket): Update pending_signals.
11207
11208 * w32term.c (w32_read_socket): Update pending_signals.
11209
11210 * w32inevt.c (w32_console_read_socket): Update pending_signals.
11211
11212 2009-01-29 Kenichi Handa <handa@m17n.org>
11213
11214 * xftfont.c (xftfont_has_char): New function.
11215 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
11216
11217 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
11218
11219 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
11220 under GNUstep.
11221 (ns_query_color): New declaration.
11222
11223 * nsterm.m (ns_confirm_quit): New variable.
11224 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
11225 (EmacsApp-applicationShouldTerminate:): Use it.
11226 (EmacsPrefsController): Let user set it.
11227 (ns_query_color): New function.
11228 (ns_defined_color): Use it.
11229 (ns_initialize): Drop.
11230 (ns_term_init): Add two lines from ns_initialize(), and set
11231 input_interrupt_mode to nil.
11232
11233 * image.c (svg_load_image): Don't right-shift background RGB when
11234 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
11235
11236 2009-01-28 Kenichi Handa <handa@m17n.org>
11237
11238 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
11239 (fontset_get_font_group): Remember that no font-group is specified
11240 for C.
11241
11242 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
11243
11244 * fns.c (concat): Check for string overflow (bug#1787).
11245
11246 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
11247 Quadruple undo limits (bug#1501).
11248
11249 2009-01-27 Kenichi Handa <handa@m17n.org>
11250
11251 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
11252 directly use GT_Get_Char_index.
11253
11254 * xftfont.c (struct xftfont_info): New member `index'.
11255
11256 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
11257 (Ffontset_font): Adjust for the change of fontset entry.
11258
11259 2009-01-26 Kenichi Handa <handa@m17n.org>
11260
11261 * fontset.c (fontset_find_font): Fix handling of non-cons return
11262 value of fontset_get_font_group.
11263 (fontset_font): Revert last change.
11264
11265 2009-01-26 Jason Rumney <jasonr@gnu.org>
11266
11267 * w32font.c (w32font_list_internal): Return quickly if registry is
11268 unknown. Simplify final return.
11269 (add_font_entity_to_list): Break complex logic down into more
11270 manageable chunks. Move unknown registry check to
11271 w32font_list_internal.
11272
11273 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
11274
11275 Changes to remove Feval calls from GUI under NS.
11276
11277 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
11278 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
11279 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
11280
11281 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
11282 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
11283 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
11284 instead of NON_ASCII_KEYSTROKE_EVENT.
11285 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
11286 (EmacsApp-applicationShouldTerminate:): Query user.
11287 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
11288 instead of Feval.
11289
11290 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
11291
11292 * keyboard.c (kbd_buffer_get_event): Check for it.
11293 (keys_of_keyboard): Define lispy keys for
11294 ns-put/unput-working-text.
11295
11296 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
11297 versions.
11298 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
11299
11300 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
11301
11302 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
11303 setting current_buffer directly. (Bug#2044)
11304
11305 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
11306
11307 * fontset.c (fontset_font): If we know there is no font, don't do
11308 any work. (Bug#1952, bug#1990).
11309
11310 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
11311
11312 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
11313
11314 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
11315 (ns_no_defaults): New declaration.
11316 (main): Use it.
11317
11318 * nsterm.h (ns_no_defaults): New declaration.
11319
11320 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
11321
11322 * nsterm.m (ns_no_defaults): New variable.
11323 (ns_initialize): Don't read defaults when ns_no_defaults.
11324 (EmacsView-readSelectionFromPasteboard:)
11325 (writeSelectionToPasteboard:types:): New stubbed-out methods for
11326 NSServicesRequests protocol. (Bug#1435)
11327 (ns_dumpglyphs_stretch): New function.
11328 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
11329 of 2008-11-15 to other terms. (Bug#615)
11330
11331 * nsimage.m (setPixmapData:): Set to ignore image DPI.
11332
11333 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
11334
11335 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
11336 call for Sparc64.
11337
11338 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11339
11340 * nsfns.m:
11341 * nsgui.h:
11342 * nsmenu.m:
11343 * nsselect.m:
11344 * nsterm.h:
11345 * nsterm.m: Remove '23' comments that indicated code added during
11346 update from emacs-20 -> emacs-23.
11347
11348 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11349
11350 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
11351 ns_alternate_modifier. (Bug#1217)
11352
11353 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
11354 Display all shortcuts, including those w/o super modifier.
11355
11356 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
11357
11358 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
11359
11360 * fileio.c (Vwrite_region_post_annotation_function)
11361 (Vwrite_region_annotation_buffers): New vars.
11362 (build_annotations_unwind): Just reset
11363 Vwrite_region_annotation_buffers.
11364 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
11365 Call write-region-post-annotation-function.
11366 (build_annotations): Add to Vwrite_region_annotation_buffers if
11367 buffer changes.
11368
11369 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11370
11371 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
11372 Tiger.
11373 * nsfns.m (ns_do_applescript):
11374 Conditionalize typeUTF16ExternalRepresentation on Tiger.
11375
11376 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
11377
11378 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
11379
11380 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11381
11382 * nsmenu.m (NSMENUPROFILE): Change #if style.
11383
11384 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
11385
11386 * nsterm.m (x_set_frame_alpha): Add prototype.
11387 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
11388 handle Ctrl-tab. (Bug#1841)
11389 (ns_get_color): Use unsigned long long for scanned hex string value.
11390 (ns_term_shutdown): Abort on non SIGTERM signals.
11391 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
11392 (EmacsPrefsController-setPanelFromDefaultValues): New function.
11393 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
11394 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
11395 (ns_defined_color): Fix settings of the XColor variable fields:
11396 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
11397
11398 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
11399 DPI. (Bug#1316)
11400 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
11401 values in onTiger section.
11402
11403 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
11404
11405 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
11406 Check return value of font_spec_from_name.
11407 (Fx_list_fonts): Doc fix. (Bug#1951)
11408
11409 * font.c (font_spec_from_name): Return Qnil if font name could not
11410 be parsed.
11411 (font_parse_name): Treat a `?' character as part of an XLFD.
11412
11413 * fns.c (Fsubstring): Doc fix.
11414
11415 2009-01-19 Kenichi Handa <handa@m17n.org>
11416
11417 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
11418 (ftfont_list): Likewise.
11419
11420 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
11421
11422 * dbusbind.c (Fdbus_register_signal):
11423 * process.c (conv_sockaddr_to_lisp):
11424 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
11425
11426 * callproc.c (Fgetenv_internal): Doc fix.
11427
11428 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
11429
11430 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
11431 it is not even used.
11432
11433 2009-01-16 Glenn Morris <rgm@gnu.org>
11434
11435 * font.c (Ffont_variation_glyphs): Silence compiler.
11436
11437 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
11438
11439 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
11440 Reported by David Robinow <drobinow@gmail.com>.
11441
11442 2009-01-15 Kenichi Handa <handa@m17n.org>
11443
11444 * coding.c (detect_coding_system): Fix handling of null_byte_found.
11445
11446 2009-01-14 Jason Rumney <jasonr@gnu.org>
11447
11448 * frame.c (x_set_font): Always store a font to the font parameter,
11449 never a fontset. (Bug#1562)
11450
11451 2009-01-14 Kenichi Handa <handa@m17n.org>
11452
11453 * coding.c (TWO_MORE_BYTES): New macro.
11454 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
11455
11456 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
11457
11458 * font.c (font_clear_prop): If clearing the family, clear the font
11459 width index too.
11460
11461 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
11462
11463 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
11464
11465 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
11466 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
11467 functions, use sizeof.
11468
11469 2009-01-12 Martin Rudalics <rudalics@gmx.at>
11470
11471 * keyboard.c (read_char): Fix case where last_nonmenu_event
11472 returned a bad value with submenus. (Bug#447)
11473
11474 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
11475
11476 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
11477 family, clear the font width index too.
11478
11479 2009-01-11 Jason Rumney <jasonr@gnu.org>
11480
11481 * keyboard.c (cmd_error_internal): Exit when errors occur before
11482 frame creation and not in daemon mode. (Bug#1836)
11483
11484 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
11485
11486 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
11487 of a display vector, backtrack.
11488 (try_window_reusing_current_matrix): Check glyph type before
11489 referencing charpos member.
11490
11491 2009-01-10 Eli Zaretskii <eliz@gnu.org>
11492
11493 Fix Bug #876:
11494
11495 * coding.c (inhibit_null_byte_detection): New variable.
11496 (detect_coding, detect_coding_system): Don't pay attention to null
11497 bytes if inhibit_null_byte_detection is non-zero.
11498 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
11499 <inhibit-iso-escape-detection>: Doc fix.
11500
11501 2009-01-09 Jason Rumney <jasonr@gnu.org>
11502
11503 * w32font.c (add_font_entity_to_list): Don't report unknown
11504 Windows charset as any unrecognized registry. (Bug#1548)
11505 Only report Unicode Plane 2 fonts as unicode-sip.
11506
11507 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
11508
11509 * xfaces.c (Fx_font_family_list): Delete function.
11510 Move compatibility version to faces.el.
11511
11512 * font.c (Ffont_family_list): Return a list of strings, not symbols.
11513
11514 2009-01-09 Martin Rudalics <rudalics@gmx.at>
11515
11516 * frame.c (x_set_frame_parameters): Remember requested value for
11517 fullscreen before it's reset by the parameter handler.
11518
11519 2009-01-09 Glenn Morris <rgm@gnu.org>
11520
11521 * keyboard.c (last_command_char): For clarity, rename to...
11522 (last_command_event): ... and update all users.
11523 (last_input_char): For clarity, rename to...
11524 (last_input_event): ... and update all users.
11525 (last-command-char, last-input-char): Move to subr.el as aliases.
11526 * cmds.c, commands.h: Update for last_command_char rename.
11527
11528 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
11529
11530 * font.c (font_open_for_lface): Handle unspecified height attribute.
11531
11532 2009-01-08 Jason Rumney <jasonr@gnu.org>
11533
11534 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
11535 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
11536 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
11537 Don't declare.
11538 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
11539 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
11540
11541 2009-01-07 Kenichi Handa <handa@m17n.org>
11542
11543 * fileio.c (Finsert_file_contents): In the case of replace,
11544 remember the coding system used for decoding in
11545 coding_system (Bug#1039).
11546
11547 * coding.c (decode_coding_utf_8): Check byte_after_cr before
11548 breaking the loop. (Bug#870)
11549 (decode_coding_utf_16, decode_coding_emacs_mule)
11550 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11551 (decode_coding_charset): Likewise.
11552
11553 2009-01-05 Martin Rudalics <rudalics@gmx.at>
11554
11555 * frame.c (x_set_frame_parameters): Make sure height (width) get
11556 applied when fullwidth (fullheight) is set. (Bug#1522)
11557
11558 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
11559
11560 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
11561 (utc_base): Declare as ULONGLONG, not long double.
11562 (convert_time_raw): Delete.
11563 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
11564 (initialize_utc_base): New function.
11565 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
11566 (convert_from_time_t): Use initialize_utc_base; compute result with
11567 64-bit arithmetic.
11568 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
11569
11570 2009-01-03 Eli Zaretskii <eliz@gnu.org>
11571
11572 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
11573 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
11574 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
11575 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
11576 [!subprocesses]: Define.
11577 (syms_of_process) [!subprocesses]: Intern and staticpro them.
11578 (Flist_system_processes, Fsystem_process_attributes)
11579 [!subprocesses]: Call list_system_processes and
11580 system_process_attributes instead of returning Qnil.
11581
11582 * dosfns.c (system_process_attributes, list_system_processes):
11583 New functions.
11584
11585 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
11586
11587 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
11588 Don't use the default (no-op) implementation.
11589
11590 2009-01-03 Jason Rumney <jasonr@gnu.org>
11591
11592 * keyboard.c (parse_modifiers_uncached): Wheel events are
11593 clicks (bug#687).
11594
11595 * w32term.c (x_query_colors, x_query_color): New functions.
11596
11597 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
11598 (svg_load_image): Cast returned pointers from dynamically loaded
11599 functions. Eliminate W32 specific code.
11600
11601 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
11602
11603 * nsfns.m (x_set_foreground_color, x_set_background_color)
11604 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
11605 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
11606 x_ prefix instead of ns_. Update references.
11607 (syms_of_nsfns): Add a FIXME comment.
11608
11609 * nsterm.m (x_set_cursor_type): New prototype.
11610 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
11611
11612 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
11613 for Solaris instead of incorrectly providing Qutime and Qcutime.
11614
11615 2009-01-02 Eli Zaretskii <eliz@gnu.org>
11616
11617 * w32.c (process_times): Compute sum of utime and stime.
11618 (system_process_attributes): Add Qtime to the alist.
11619
11620 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
11621 and add them to the alist.
11622
11623 * process.c (top level) <Qtime, Qctime>: New variables.
11624 (syms_of_process): staticpro them.
11625 (Fsystem_process_attributes): Add their documentation to the doc
11626 string.
11627
11628 * process.h: Declare Qtime and Qctime.
11629
11630 2009-01-02 Jason Rumney <jasonr@gnu.org>
11631
11632 * image.c (Qgobject): New symbol.
11633 (syms_of_image): Initialize it.
11634 (init_svg_functions): Load some functions from gobject library.
11635
11636 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
11637
11638 * frame.c (make_terminal_frame): Remove redundant code and useless
11639 block.
11640
11641 2009-01-01 Andreas Schwab <schwab@suse.de>
11642
11643 * process.c (conv_sockaddr_to_lisp): Add workaround for
11644 getsockname bug on BSD.
11645
11646 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
11647
11648 * xfns.c (x_create_tip_frame): Set border width of the X window.
11649
11650 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
11651
11652 2009-01-01 Jason Rumney <jasonr@gnu.org>
11653
11654 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
11655 Don't block input, as per earlier xterm.c changes.
11656
11657 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
11658
11659 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
11660 (ns_appkit_version_int): New function.
11661 (x-server-version): Use ns_appkit_version_int and follow 21+
11662 convention of returning 3 integers.
11663
11664 2008-12-30 Kenichi Handa <handa@m17n.org>
11665
11666 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
11667 (CHAR_SURROGATE_PAIR_P): New macro.
11668
11669 * font.h (struct font_driver): New member get_variation_glyphs.
11670
11671 * font.c (font_range): Don't require a font for a variation selector.
11672 (Ffont_variation_glyphs): New function.
11673 (syms_of_font): Defsubr it.
11674
11675 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
11676 ftfont_variation_glyphs.
11677 (setup_otf_gstring): New function.
11678 (ftfont_drive_otf): Use it.
11679 (ftfont_shape_by_flt): Handle variation selector.
11680 (ftfont_variation_glyphs): New function.
11681
11682 2008-12-30 Martin Rudalics <rudalics@gmx.at>
11683
11684 * frame.c (Vemacs_iconified): Remove.
11685
11686 2008-12-30 Jason Rumney <jasonr@gnu.org>
11687
11688 * frame.c (store_frame_param, x_get_arg): Enable newer code on
11689 WINDOWSNT too, as related changes have already been synced. (Bug#117)
11690
11691 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
11692
11693 * indent.c (Fvertical_motion): Don't advance iterator if we have
11694 reseated to the desired position.
11695
11696 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
11697 checking for pos match.
11698
11699 2008-12-30 Kenichi Handa <handa@m17n.org>
11700
11701 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
11702 just get the low 8-bit of the code.
11703
11704 * font.c (font_intern_prop): Validate str as multibyte.
11705
11706 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
11707
11708 * dispextern.h (struct face): Move lface and hash from the middle
11709 of bitfields.
11710
11711 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
11712
11713 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
11714
11715 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
11716 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
11717 instead of intervals.h.
11718
11719 2008-12-26 Andreas Schwab <schwab@suse.de>
11720
11721 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
11722 cons.
11723
11724 2008-12-26 Martin Rudalics <rudalics@gmx.at>
11725
11726 * textprop.c (Qminibuffer_prompt): New variable.
11727 (syms_of_textprop): Initialize it.
11728 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
11729 in minibuffer-prompt face. (Bug#1662)
11730
11731 2008-12-25 Jason Rumney <jasonr@gnu.org>
11732
11733 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
11734
11735 2008-12-24 Jason Rumney <jasonr@gnu.org>
11736
11737 * ralloc.c (r_alloc_reset_variable): New function.
11738
11739 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
11740 record of what points where. (Bug#716)
11741
11742 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
11743
11744 * minibuf.c (read_minibuf): Follow the non-interactive case when
11745 running as a daemon, before detaching.
11746
11747 2008-12-22 Andreas Schwab <schwab@suse.de>
11748
11749 * buffer.c (init_buffer): Use realloc instead of xrealloc.
11750 * gtkutil.c (free_widget_value): Use xfree instead of free.
11751
11752 2008-12-22 Martin Rudalics <rudalics@gmx.at>
11753
11754 * frame.c (delete_frame): New function derived from
11755 Fdelete_frame to handle Qnoelisp value for FORCE argument.
11756 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
11757 (Fdelete_frame): Call delete_frame. Remove line from doc-string
11758 saying that FORCE non-nil doesn't run `delete-frame-functions'.
11759 * frame.h: Extern delete_frame.
11760 * window.c (window_loop):
11761 * terminal.c (delete_terminal):
11762 * xterm.c (x_connection_closed):
11763 * xfns.c (Fx_hide_tip):
11764 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
11765
11766 2008-12-21 Jason Rumney <jasonr@gnu.org>
11767
11768 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
11769 when character maps to .notdef character.
11770
11771 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
11772
11773 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
11774
11775 2008-12-20 Jason Rumney <jasonr@gnu.org>
11776
11777 * frame.c (Fmake_terminal_frame): Raise an error when called from
11778 a graphical frame on Windows. (Bug#1325)
11779
11780 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
11781
11782 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
11783
11784 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
11785
11786 * minibuf.c (Fread_buffer): Doc fix.
11787
11788 2008-12-20 Jason Rumney <jasonr@gnu.org>
11789
11790 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
11791 server name in UNC paths. (Bug#719)
11792
11793 * coding.c (decode_coding): Clear chars_at_source flag when using
11794 charbuf. (Bug#1035)
11795
11796 2008-12-19 Daniel Engeler <engeler@gmail.com>
11797
11798 * sysdep.c (serial_configure): Fix typo.
11799
11800 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
11801
11802 * sysdep.c: Include alloca.h.
11803 (system_process_attributes): Add implementation for Solaris.
11804
11805 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
11806
11807 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
11808
11809 Reorganize implementation of Flist_system_processes and
11810 Fsystem_process_attributes. No functional changes.
11811 * process.c: Don't #include pwd.h, grp.h and limits.h.
11812 (Flist_system_processes): Just call list_system_processes.
11813 (Fsystem_process_attributes): Just call system_process_attributes.
11814 (procfs_list_system_processes, time_from_jiffies)
11815 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
11816 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
11817
11818 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
11819 (list_system_processes): Rename from
11820 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
11821 Provide a do nothing implementation.
11822 (system_process_attributes): Rename from
11823 procfs_list_system_processes.
11824 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
11825 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
11826
11827 * w32.c (list_system_processes): Rename from
11828 w32_list_system_processes.
11829 (system_process_attributes): Rename from
11830 w32_system_process_attributes.
11831
11832 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
11833
11834 * process.h (w32_list_system_processes)
11835 (w32_system_process_attributes): Remove.
11836 (list_system_processes, system_process_attributes):
11837 New prototypes.
11838
11839 2008-12-19 Kenichi Handa <handa@m17n.org>
11840
11841 * xfont.c (xfont_decode_coding_xlfd): New function.
11842 (xfont_encode_coding_xlfd): New function.
11843 (xfont_list_pattern): Decode XLFD by iso-8859-1.
11844 (xfont_list): Decode and encode XLFD by iso-8859-1.
11845 (xfont_match): Likewise.
11846 (xfont_list_family): Likewise.
11847 (xfont_open): Likewise.
11848
11849 * ftfont.c (ftfont_open): Generate a multibyte string if given
11850 names are utf-8.
11851
11852 * xftfont.c (xftfont_open): Generate a multibyte string if given
11853 names are utf-8.
11854
11855 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
11856
11857 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
11858 changed.
11859 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
11860 clicked on a detached tool bar button.
11861
11862 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
11863
11864 * emacs.c (main): Print and error and exit when no data is read
11865 from the pipe.
11866
11867 2008-12-17 Jason Rumney <jasonr@gnu.org>
11868
11869 * w32font.c (w32font_has_char): Always return -1.
11870
11871 2008-12-16 Kenichi Handa <handa@m17n.org>
11872
11873 * font.c (font_open_entity): Fix previous change.
11874
11875 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
11876
11877 * process.c: Include <limits.h>.
11878
11879 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
11880
11881 * font.c (font_update_drivers): Fix mistake in reconstructing the
11882 driver list.
11883
11884 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
11885
11886 * font.c (font_clear_cache): Fix format of font cache data.
11887
11888 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
11889
11890 * xftfont.c (xftfont_open): Free Xft font pattern if
11891 XftFontOpenPattern fails.
11892
11893 * xterm.c (x_free_frame_resources): Remove extraneous call to
11894 free_frame_faces.
11895
11896 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
11897
11898 * xterm.c (x_delete_display): Move xim_close_dpy call to
11899 x_delete_terminal.
11900 (x_delete_terminal): Call xim_close_dpy.
11901
11902 2008-12-13 Jason Rumney <jasonr@gnu.org>
11903
11904 * w32font.c (intern_font_name): New function.
11905 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
11906 (w32font_open_internal, Fx_select_font): Decode font name.
11907 (fill_in_logfont, list_all_matching_fonts): Encode font name.
11908
11909 * w32font.h (intern_font_name): Declare new function.
11910
11911 * w32uniscribe.c (add_opentype_font_name_to_list):
11912 Use intern_font_name.
11913
11914 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
11915
11916 * frame.c (Fdelete_frame): Call free_font_driver_list.
11917
11918 * font.c (free_font_driver_list): Implement missing function.
11919
11920 * w32term.c (w32_term_init): Don't initialize the image cache
11921 here; it will be done in init_frame_faces.
11922
11923 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
11924 (struct x_display_info): Remove unused member null_pixel. New
11925 member xim_callback_data.
11926
11927 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
11928 (xim_initialize): Save pointer to callback function data.
11929 (xim_close_dpy): Free callback function data. Call XCloseIM,
11930 reverting 2008-11-04 change by David Smith.
11931 (x_term_init): Don't initialize the image cache here; it will be
11932 done in init_frame_faces. Remove ancient "null_pixel" cruft.
11933 (x_delete_display): Free x_dnd_atoms member.
11934
11935 2008-12-13 Kenichi Handa <handa@m17n.org>
11936
11937 * font.c (font_rescale_ratio): Moved from xfaces.c.
11938 Argument type changed. Handle a font-spec too.
11939 (font_score): Check Vface_font_rescale_alist.
11940 (font_open_entity): Likewise. (Bug#1547)
11941
11942 * xfaces.c (font_rescale_ratio): Moved to font.c.
11943
11944 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
11945
11946 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
11947
11948 2008-12-12 Jason Rumney <jasonr@gnu.org>
11949
11950 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
11951 Vwindow_system_version to the real w32 major version.
11952
11953 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
11954
11955 * term.c (init_tty): Move setting the terminal name before the
11956 potential user: maybe_fatal.
11957
11958 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
11959
11960 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
11961 all callers changed. Call free_frame_faces to free the face cache.
11962
11963 2008-12-11 Jason Rumney <jasonr@gnu.org>
11964
11965 * w32font.c (fill_in_logfont): Don't assume symbol script means
11966 SYMBOL_CHARSET. (Bug#547)
11967
11968 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
11969 size for surrogates. (Bug#1096, bug#872)
11970
11971 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
11972
11973 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
11974
11975 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
11976
11977 * process.c (Fsystem_process_attributes, syms_of_process):
11978 Fix typo in name of Ssystem_process_attributes.
11979 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
11980
11981 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
11982
11983 * syntax.c (Fmodify_syntax_entry): Doc fix.
11984
11985 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
11986
11987 * font.c (Ffont_spec): Move usage to end of docstring.
11988
11989 2008-12-10 Jason Rumney <jasonr@gnu.org>
11990
11991 * w32font.c (Qcham): New symbol.
11992 (font_supported_scripts): Add cham, and comments for other new
11993 scripts in bitfield from OpenType spec.
11994 (add_font_entity_to_list): Limit unicode-sip fonts to those that
11995 contain characters beyond the bmp.
11996
11997 2008-12-10 Kenichi Handa <handa@m17n.org>
11998
11999 * ftfont.c (fc_charset_table): Add "unicode-sip".
12000 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
12001 Qunicode_sip.
12002
12003 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
12004
12005 * coding.c (QCdefault_char): Rename from QCdefalut_char.
12006 (Fcoding_system_put): Use QCdefault_char.
12007 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
12008
12009 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
12010
12011 * xftfont.c (syms_of_xftfont): Fix typo.
12012
12013 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
12014
12015 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
12016
12017 * emacs.c (main): Close daemon_pipe on exec.
12018
12019 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
12020
12021 * termchar.h (struct tty): New members termcap_term_buffer and
12022 termcap_strings_buffer.
12023
12024 * term.c (encode_terminal_code): Free any previous memory blocks
12025 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
12026 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
12027 All callers changed.
12028 (init_tty): Store termcap data and string buffers in new struct
12029 tty members termcap_term_buffer and termcap_strings_buffer.
12030 (delete_tty): Free them.
12031 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
12032
12033 2008-12-07 Seiji Zenitani <zenitani@mac.com>
12034
12035 * nsfns.m (ns_set_background_color): Remove code duplication.
12036 It was a substitute for face-transparency on OS X 10.3.
12037
12038 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
12039
12040 * coding.c (make_conversion_work_buffer): Disable buffer
12041 modification hooks in the work buffer.
12042
12043 2008-12-05 Eli Zaretskii <eliz@gnu.org>
12044
12045 * process.c (procfs_system_process_attributes): If `nread' has a
12046 negative value, assign zero to it.
12047
12048 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
12049
12050 * eval.c (Vdebug_on_error): Doc fix.
12051
12052 2008-12-05 Kenichi Handa <handa@m17n.org>
12053
12054 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
12055 second character is a combining character.
12056
12057 2008-12-05 Eli Zaretskii <eliz@gnu.org>
12058
12059 * process.c (procfs_system_process_attributes): Don't use cmd,
12060 cmdsize, and q without initializing them first.
12061
12062 2008-12-04 Jason Rumney <jasonr@gnu.org>
12063
12064 * w32font.c (w32font_draw): Initialize orig_clip before getting
12065 it, and delete it when finished.
12066
12067 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
12068
12069 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
12070 case when running as a daemon before detaching.
12071
12072 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
12073
12074 * w32.c (init_environment): Don't unload library shell32.dll.
12075
12076 2008-12-03 Kenichi Handa <handa@m17n.org>
12077
12078 * font.c (font_at): Set `multibyte' at first.
12079
12080 * coding.c (decode_coding_charset): Check type of an element of
12081 vector VALIDS.
12082 (encode_coding_emacs_mule): Be sure to set `code'.
12083
12084 * fontset.c (face_for_char): Handle invalid charset property correctly.
12085 (font_for_char): Likewise.
12086
12087 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
12088
12089 * font.c (Fopen_font): Compute pixel size correctly.
12090 (font_update_lface): Handle fonts with corrupted size specs,
12091 i.e. non-int and non-float.
12092
12093 * ftfont.c (ftfont_match): Initialize entity variable.
12094 (ftfont_resolve_generic_family): Avoid using uninitialized var.
12095 (ftfont_list_family): Initialize list var earlier.
12096
12097 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
12098
12099 * xterm.c (x_draw_glyph_string): Fall back on
12100 underline_minimum_offset for underline position.
12101
12102 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
12103
12104 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
12105
12106 * character.c (c_string_width): Specify the type for LEN.
12107
12108 2008-12-03 Kenichi Handa <handa@m17n.org>
12109
12110 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
12111 (decode_coding_utf_8): Likewise.
12112 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
12113 (produce_chars): Initialize consumed_chars to 0.
12114
12115 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
12116
12117 * keyboard.c (make_lispy_position): Only use PT if the selected
12118 window is current.
12119
12120 2008-12-02 Andreas Schwab <schwab@suse.de>
12121
12122 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
12123
12124 * doprnt.c (doprnt1): Fix size of charbuf.
12125
12126 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
12127
12128 * keyboard.c (timer_check): Revert last change.
12129
12130 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
12131
12132 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
12133
12134 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
12135
12136 * makefile.w32-in: Update dependencies.
12137 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
12138
12139 2008-12-01 Andreas Schwab <schwab@suse.de>
12140
12141 * font.c (register_font_driver): Use xmalloc.
12142 (font_put_frame_data): Likewise.
12143
12144 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
12145
12146 * xfaces.c (realize_x_face): Make abort condition clearer.
12147
12148 * gtkutil.c (update_frame_tool_bar): Initialize variable.
12149
12150 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
12151
12152 * keyboard.c (timer_check): After a timer runs, ensure that the
12153 selected window's buffer is current.
12154
12155 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
12156
12157 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
12158 It was accidentally restored by the Unicode merge.
12159
12160 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
12161
12162 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
12163
12164 * w32proc.c: Include "coding.h".
12165 (Fw32_short_file_name): Encode filename passed to Windows API.
12166 (Fw32_long_file_name): Encode filename passed to Windows API and
12167 decode back the result. (Bug#1433)
12168
12169 2008-11-29 Kenichi Handa <handa@m17n.org>
12170
12171 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
12172 not before accessing it.
12173
12174 * charset.c (Fdefine_charset_internal): After calculating
12175 min_char, max_char, and fastmap, copy the charset structure again.
12176 (encode_char): Fix the previous change.
12177
12178 2008-11-28 Seiji Zenitani <zenitani@mac.com>
12179
12180 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
12181
12182 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
12183
12184 * nsterm.m (x_set_frame_alpha): New function.
12185
12186 2008-11-27 Eli Zaretskii <eliz@gnu.org>
12187
12188 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
12189
12190 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
12191
12192 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
12193 pointer to check_face_name.
12194
12195 2008-11-27 Kenichi Handa <handa@m17n.org>
12196
12197 * category.h (SET_CATEGORY_SET): Call set_category_set.
12198 (set_category_set): Extern it.
12199
12200 * category.c (hash_get_category_set): New function.
12201 (Fmodify_category_entry): Adjusted for the change of
12202 char_table_ref_and_range. Call hash_get_category_set to get a
12203 category set to store in the table.
12204
12205 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
12206 Funify_charset.
12207
12208 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
12209 (DECODE_CHAR): Check if the decoder vector is ready.
12210 (ENCODE_CHAR): Check if the encoder char-table is ready.
12211 (maybe_unify_char): Extern it.
12212
12213 * charset.c (Vchar_unified_charset_table): Delete it.
12214 (inhibit_load_charset_map): New variable.
12215 (temp_charset_work): New variable.
12216 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
12217 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
12218 New macros.
12219 (load_charset_map): Meaning of control_flag changed. If
12220 inhibit_load_charset_map is nonzero, setup a table in
12221 temp_charset_work.
12222 (load_charset): New argument control_flag.
12223 (map_charset_for_dump): New function.
12224 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
12225 map_charset_for_dump.
12226 (Fdefine_charset_internal): If the charset method is MAP, load
12227 mapping tables by calling load_charset.
12228 (Funify_charset): Don't load a mapping table but directly set
12229 Vchar_unify_table.
12230 (maybe_unify_char): New function.
12231 (decode_char): Don't handle the deleted method MAP_DEFERRED.
12232 Handle the case of inhibit_load_charset_map being nonzero.
12233 (encode_char): Don't handle the deleted method MAP_DEFERRED.
12234 Handle the case of inhibit_load_charset_map being nonzero.
12235 (Fclear_charset_maps): Just free temp_charset_work.
12236 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
12237 variable.
12238
12239 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
12240 change of char_table_ref_and_range.
12241 (char_table_ref_and_range): Change the meaning of argument FROM
12242 and TO. Now the caller must provide initial values for *FROM
12243 and *TO.
12244
12245 * fontset.c (fontset_add): Adjusted for the change of
12246 char_table_ref_and_range.
12247 (fontset_get_font_group): Likewise.
12248 (Ffontset_info): Likewise.
12249
12250 * keymap.c (describe_vector): Adjusted for the change of
12251 char_table_ref_and_range. For char-table, put boundary between
12252 non-ASCII and 8-bit characters.
12253
12254 * print.c (print_object): For bool-vector, delete unnecessary
12255 check of ASCII_BYTE_P.
12256
12257 2008-11-26 Jason Rumney <jasonr@gnu.org>
12258
12259 * w32font.c (w32font_open_internal): Don't include external
12260 leading in font height. (Bug#879)
12261
12262 2008-11-26 Glenn Morris <rgm@gnu.org>
12263
12264 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
12265 redefinition with ifdef. (Bug#1383)
12266
12267 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
12268
12269 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
12270
12271 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
12272
12273 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
12274 New EmacsView methods.
12275 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
12276 Fixes bug #1048,1357,1414.
12277
12278 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
12279
12280 Fix bug #1362.
12281 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
12282 is not an indexed color.
12283 * nsterm.m (free_indexed_color): Add argument checking.
12284 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
12285
12286 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
12287
12288 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
12289 Document confirm-after-completion value for
12290 minibuffer-completion-confirm.
12291
12292 2008-11-24 Jason Rumney <jasonr@gnu.org>
12293
12294 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
12295 warning.
12296
12297 2008-11-23 Jason Rumney <jasonr@gnu.org>
12298
12299 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
12300 restored before returning.
12301
12302 * w32font.c (check_face_name): New function.
12303 (add_font_entity_to_list): Use it to filter out common substituted
12304 fonts. (Bug#642)
12305
12306 2008-11-22 Martin Rudalics <rudalics@gmx.at>
12307
12308 * buffer.c (Fswitch_to_buffer): Reword and mention new option
12309 confirm-nonexistent-file-or-buffer in doc-string.
12310
12311 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
12312
12313 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
12314 Fix copy/paste typo. Add checks.
12315
12316 2008-11-21 Kenichi Handa <handa@m17n.org>
12317
12318 * coding.c (detect_coding_iso_2022): Reject invalid composition
12319 sequence.
12320 (DECODE_COMPOSITION_START): If the current source is the last
12321 block, and the current composition doesn't end, regard this
12322 sequence as invalid.
12323 (decode_coding_iso_2022): Handle invalid composition sequence.
12324
12325 2008-11-20 Martin Rudalics <rudalics@gmx.at>
12326
12327 * window.c (coordinates_in_window): Don't return
12328 ON_VERTICAL_BORDER for the rightmost position of a mode/header
12329 line when the window is not the rightmost one. (Bug#1372)
12330
12331 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
12332
12333 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
12334
12335 2008-11-15 Eli Zaretskii <eliz@gnu.org>
12336
12337 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
12338 and bright_bg if noninteractive is non-zero.
12339
12340 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12341
12342 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
12343 x_draw_glyph_string_background.
12344
12345 * w32term.c (x_draw_glyph_string): Likewise.
12346
12347 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
12348
12349 * xterm.c (x_draw_glyph_string): Stop drawing the background of
12350 the next glyph string once past the overhang width.
12351
12352 * nsterm.m (ns_draw_glyph_string): Likewise.
12353
12354 * w32term.c (x_draw_glyph_string): Likewise.
12355
12356 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
12357
12358 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
12359 double file close.
12360
12361 2008-11-14 Martin Rudalics <rudalics@gmx.at>
12362
12363 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
12364 dedicated status of window before attempting to display another
12365 buffer in it.
12366
12367 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
12368
12369 * msdos.c (Fmsdos_long_file_names):
12370 (syms_of_msdos) <dos-unsupported-char-glyph>:
12371 * dosfns.c (Fint86): Fix typos in docstrings.
12372
12373 2008-11-14 Eli Zaretskii <eliz@gnu.org>
12374
12375 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
12376
12377 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
12378
12379 * puresize.h (BASE_PURESIZE): Increase to 1260000.
12380
12381 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
12382
12383 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
12384
12385 * frame.h: Negative alpha means "don't touch".
12386
12387 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
12388
12389 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
12390
12391 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
12392
12393 * hftctl.c:
12394 * chpdef.h:
12395 * acldef.h: Remove files used only for systems no longer supported.
12396
12397 * Makefile.in: Fix .o alphabetical ordering.
12398 (hftctl.o): Remove dependency, file removed.
12399 (keymap.o, print.o): Depend on charset.h.
12400
12401 2008-11-10 Kenichi Handa <handa@m17n.org>
12402
12403 * character.c (Fget_byte): Fix and make it faster for unibyte target.
12404
12405 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
12406
12407 * dired.c (file_name_completion): If completion_ignore_case is
12408 enabled, ignore case when checking completion-regexp-list.
12409
12410 2008-11-08 Eli Zaretskii <eliz@gnu.org>
12411
12412 * vm-limit.c (get_lim_data): Fix last change.
12413
12414 2008-11-08 Kenichi Handa <handa@m17n.org>
12415
12416 * character.c (Fget_byte): New function.
12417 (syms_of_character): Defsubr Fget_byte.
12418
12419 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
12420
12421 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
12422 cursor position is valid after scrolling.
12423
12424 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
12425
12426 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
12427
12428 2008-11-06 Glenn Morris <rgm@gnu.org>
12429
12430 * xterm.c (handle_one_xevent): Don't let popup menus cause
12431 mouse-autoselect-window related window switching. (Bug#1261)
12432
12433 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
12434
12435 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
12436
12437 2008-11-04 Andreas Schwab <schwab@suse.de>
12438
12439 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
12440
12441 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
12442
12443 * xfns.c (Fx_wm_set_size_hint): New function.
12444
12445 2008-11-03 Martin Rudalics <rudalics@gmx.at>
12446
12447 * textprop.c (Fprevious_single_char_property_change): Return 0
12448 when there's no change in a string. (Bug#1301)
12449
12450 2008-11-02 Martin Rudalics <rudalics@gmx.at>
12451
12452 * frame.c (do_switch_frame): New argument NORECORD passed to
12453 Fselect_window.
12454 (Fselect_frame): New argument NORECORD passed to
12455 do_switch_frame.
12456 (Fset_frame_selected_window): New argument NORECORD passed to
12457 Fselect_frame.
12458 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
12459 in call of do_switch_frame.
12460 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
12461 Handle NORECORD argument in call of Fselect_frame.
12462 * lisp.h (do_switch_frame, Fselect_frame)
12463 (Fset_frame_selected_window): Adjust declarations.
12464 * window.c (select_frame_norecord): New function.
12465 (run_window_configuration_change_hook): Use it and call
12466 Fselect_frame with NORECORD set.
12467 (Fselect_window): Pass NORECORD to Fselect_frame.
12468 (Fset_window_configuration): Handle NORECORD argument in call of
12469 do_switch_frame.
12470 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
12471 Fset_frame_selected_window.
12472 * keyboard.c (command_loop_1): Handle NORECORD in call of
12473 Fselect_frame (currently ifdefd).
12474
12475 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
12476
12477 * emacs.c (USAGE2): Untabify.
12478
12479 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
12480
12481 * composite.c (fill_gstring_header): Fix copy/paste typo.
12482
12483 2008-10-31 Martin Rudalics <rudalics@gmx.at>
12484
12485 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
12486 (Fother_window): Rename argument and rewrite doc-string.
12487 (select_window_norecord): Fix return value. (Bug#1276)
12488
12489 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
12490
12491 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
12492 new frames overriding foreground for tooltips. Based on similar patch
12493 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
12494
12495 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
12496
12497 * emacs.c (Fdaemon_initialized): Initialize nfd.
12498
12499 2008-10-29 Martin Rudalics <rudalics@gmx.at>
12500
12501 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
12502 (Fwindow_text_height): Clarify doc-strings.
12503 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
12504 doc-string of window-scroll-functions.
12505
12506 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
12507
12508 * category.c (syms_of_category): Fix typo in docstring.
12509
12510 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
12511
12512 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
12513 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
12514 Fix typos in docstrings.
12515
12516 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
12517
12518 * emacs.c (daemon_pipe): Make non-static.
12519 (IS_DAEMON): Move definition ...
12520 * lisp.h (IS_DAEMON): ... here.
12521 (daemon_pipe): Declare.
12522 (is_daemon): Remove.
12523 * dispnew.c (init_display): Use IS_DAEMON.
12524
12525 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
12526
12527 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
12528 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
12529
12530 * emacs.c (is_daemon): Remove.
12531 (main): Don't set is_daemon.
12532 (IS_DAEMON): New macro.
12533 (Fdaemonp, Fdaemon_initialized): Use it.
12534 (Fdaemon_initialized): Write a char into the pipe to make sure the
12535 parent exits.
12536 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
12537
12538 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
12539
12540 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
12541 over-sized glyph, draw it with the default glyph width.
12542
12543 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
12544 glyph, draw it with the default glyph width.
12545
12546 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
12547 glyph, draw it with the default glyph width.
12548
12549 * xdisp.c (try_scrolling): When computing the distance from the
12550 scroll margin to PT, try moving some distance past the window
12551 bottom before giving up.
12552
12553 2008-10-27 Martin Rudalics <rudalics@gmx.at>
12554
12555 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
12556 (Fset_window_buffer): Explain in doc-string that a window can be
12557 "strongly" dedicated to its buffer.
12558
12559 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
12560
12561 * emacs.c (daemon_name): New variable.
12562 (main): Deal with --daemon=SERVER_NAME.
12563 (Fdaemonp): Return a name if one was passed to --daemon.
12564
12565 2008-10-26 Romain Francoise <romain@orebokech.com>
12566
12567 * emacs.c (daemon_pipe): New variable.
12568 (main): Create a pipe before forking, make the parent exit only after
12569 the child has closed its end of the pipe. Move closing the
12570 descriptors ...
12571 (Fdaemon_initialized): ... here. New function.
12572
12573 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
12574
12575 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
12576 the previous unoptimized table.
12577
12578 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
12579 the distinction between non-nil and non-t value of `dedicated'.
12580
12581 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
12582
12583 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
12584 read_char_minibuf_menu_text is large enough to hold the menu string.
12585
12586 2008-10-25 Martin Rudalics <rudalics@gmx.at>
12587
12588 * window.c (Fget_buffer_window, Fdelete_windows_on)
12589 (Freplace_buffer_in_windows): Make buffer argument optional and
12590 rename to buffer_or_name.
12591
12592 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
12593
12594 * xdisp.c (handle_single_display_spec, handle_display_prop):
12595 Undo 2005-05-16 change.
12596 (handle_stop): Pop iterator if it's loaded with an empty string.
12597 (get_overlay_strings_1): Don't save iterator if it's loaded with
12598 an empty string (bug#1201).
12599
12600 2008-10-24 Kenichi Handa <handa@m17n.org>
12601
12602 * ftfont.c (ftfont_otf_features): Fix previous change.
12603 (ftfont_otf_capability): Check FeatureList.FeatureCount before
12604 calling ftfont_otf_features.
12605
12606 2008-10-24 Kenichi Handa <handa@m17n.org>
12607
12608 * font.c (font_match_p): Fix for the case that a vector of
12609 characters is in script-representative-chars.
12610
12611 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
12612
12613 * dbusbind.c (xd_in_read_queued_messages): New variable.
12614 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
12615 (xd_read_queued_messages): Catch Qdbus_error from the macros.
12616 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
12617 macro. (Bug#1186)
12618
12619 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
12620
12621 * s/sol2-10.h: New file.
12622
12623 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
12624
12625 * xdisp.c (fill_glyph_string): Fix typo in source (though the
12626 poor beast has survived 9+ years and the jump from xterm.c!).
12627
12628 2008-10-23 Martin Rudalics <rudalics@gmx.at>
12629
12630 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
12631 Reword doc-string.
12632 (Fbury_buffer): In doc-string say what happens to the buffer's window.
12633
12634 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
12635
12636 * character.c (syms_of_character) <script-representative-chars>:
12637 <unicode-category-table>: Doc fixes.
12638
12639 2008-10-23 Noah Friedman <friedman@splode.com>
12640
12641 * coding.c (make_conversion_work_buffer): Check that
12642 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
12643 Fget_buffer_create.
12644
12645 2008-10-23 Kenichi Handa <handa@m17n.org>
12646
12647 * font.c (font_add_log): Check the values of extra properties.
12648
12649 2008-10-22 Martin Rudalics <rudalics@gmx.at>
12650
12651 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
12652 Reword doc-string.
12653 (Fset_window_parameter): Use NILP.
12654 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
12655 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12656
12657 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
12658
12659 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
12660
12661 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12662
12663 * nsfns.m (ns_appkit_version): New function.
12664 (x-server-version): Use it.
12665 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
12666 (x-server-vendor): Don't check_ns().
12667
12668 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
12669
12670 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
12671
12672 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
12673 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
12674
12675 2008-10-22 Kenichi Handa <handa@m17n.org>
12676
12677 * syntax.c (scan_words): Call word_boundary_p instead of comparing
12678 scripts.
12679
12680 * category.c (word_boundary_p): Check scripts instead of charset.
12681 Handle nil value in word-separating-categories and
12682 word-combining-categories.
12683 (syms_of_category): Fix docstrings of word-separating-categories
12684 and word-combining-categories.
12685
12686 2008-10-21 Eli Zaretskii <eliz@gnu.org>
12687
12688 * coding.c (Fencode_coding_region, Fdecode_coding_region)
12689 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
12690
12691 2008-10-21 Martin Rudalics <rudalics@gmx.at>
12692
12693 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
12694 Rename arg "buffer" to "buffer_or_name".
12695 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
12696 it optional.
12697 (no_switch_window): Remove since the return value is not used.
12698 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
12699 Consider window as dedicated when Fwindow_dedicated_p returns a
12700 non-nil value.
12701 * lisp.h: Remove prototype for no_switch_window.
12702
12703 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
12704
12705 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
12706 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
12707
12708 2008-10-21 Kenichi Handa <handa@m17n.org>
12709
12710 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
12711 check Vlatin_extra_code_table.
12712
12713 2008-10-20 Eli Zaretskii <eliz@gnu.org>
12714
12715 * fileio.c (Fset_file_modes): Doc fix.
12716
12717 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
12718
12719 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
12720 in arrays.
12721
12722 2008-10-19 Martin Rudalics <rudalics@gmx.at>
12723
12724 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
12725 Mention kill-buffer in doc-string.
12726 (Fset_window_buffer): Reinsert tem check removed in last commit.
12727 (Fenlarge_window, Fshrink_window): Have argument names and
12728 doc-string follow Elisp manual more closely.
12729
12730 2008-10-18 Eli Zaretskii <eliz@gnu.org>
12731
12732 * fileio.c (Fset_file_modes): Doc fix.
12733
12734 2008-10-18 Martin Rudalics <rudalics@gmx.at>
12735
12736 * window.c (Fwindow_width, Fset_window_start)
12737 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
12738 (Fdelete_windows_on, Freplace_buffer_in_windows):
12739 Make doc-strings follow code and Elisp manual more closely.
12740 (Fwindow_dedicated_p): Make window argument optional.
12741 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
12742 (Fset_window_buffer): Respect any non-nil dedicated value for
12743 window. Rename "buffer" argument to "buffer_or_name".
12744
12745 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
12746
12747 * m/sh3.h: New file, machine description for SuperH.
12748
12749 2008-10-17 Martin Rudalics <rudalics@gmx.at>
12750
12751 * window.c (Fsplit_window): Rename arg horflag to horizontal.
12752
12753 2008-10-17 Kenichi Handa <handa@m17n.org>
12754
12755 * ftfont.c (ftfont_otf_features): Fix indexing
12756 gsub_gpos->FeatureList.Feature. Check the validity of indices.
12757
12758 2008-10-16 Magnus Henoch <mange@freemail.hu>
12759
12760 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
12761 (Fdbus_call_method_asynchronously): Ditto.
12762 This change makes C-h f display the argument list.
12763
12764 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
12765
12766 * fileio.c (Fexpand_file_name): Doc fix.
12767
12768 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
12769 of :foreground and :background equivalent to unspecified (20.x
12770 compatibility).
12771
12772 2008-10-15 Eli Zaretskii <eliz@gnu.org>
12773
12774 * buffer.c (syms_of_buffer): Doc fix.
12775
12776 2008-10-14 Kenichi Handa <handa@m17n.org>
12777
12778 * font.c (font_clear_prop): When clearing font width, clear the
12779 average width field too.
12780
12781 2008-10-12 Andreas Schwab <schwab@suse.de>
12782
12783 * ftfont.c (ftfont_shape_by_flt): Make static.
12784 * ftfont.h (ftfont_shape_by_flt): Don't declare.
12785
12786 * font.c: Don't include <m17n-flt.h>.
12787
12788 2008-10-10 Eli Zaretskii <eliz@gnu.org>
12789
12790 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
12791
12792 2008-10-09 Eli Zaretskii <eliz@gnu.org>
12793
12794 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
12795 away code.
12796
12797 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
12798
12799 * dispnew.c (update_text_area): Avoid looping due to large glyph
12800 overhangs (bug#1070).
12801
12802 2008-10-09 Kenichi Handa <handa@m17n.org>
12803
12804 * fontset.c (face_for_char): If face->fontset is negative, just
12805 return ascii_face.
12806
12807 * font.c (font_delete_unmatched): Fix previous change.
12808 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
12809
12810 2008-10-09 Martin Rudalics <rudalics@gmx.at>
12811
12812 * frame.c (Fraise_frame): On text-only terminals select frame in
12813 order to make it visible. (Bug#1061)
12814
12815 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
12816
12817 * fontset.c (fontset_find_font): Check frame validity.
12818
12819 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
12820
12821 * gtkutil.c (xg_display_open): Reset default display if none exists.
12822 (xg_display_close): Allow Emacs to close all displays (bug#985).
12823
12824 2008-10-06 Andreas Schwab <schwab@suse.de>
12825
12826 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
12827
12828 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
12829
12830 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
12831
12832 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
12833
12834 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
12835 during initialization.
12836
12837 2008-10-04 Eli Zaretskii <eliz@gnu.org>
12838
12839 * xdisp.c (redisplay_internal): If frame switched, redisplay the
12840 whole thing on MSDOS frames as well as on a TTY.
12841
12842 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
12843 well as for TTY.
12844 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
12845 well as on a TTY.
12846
12847 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
12848 as well as for TTY.
12849
12850 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
12851
12852 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
12853 MSDOS frames as well.
12854
12855 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
12856
12857 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
12858 correct arguments.
12859 * menu.c (find_and_return_menu_selection): Add cast.
12860
12861 2008-10-03 Glenn Morris <rgm@gnu.org>
12862
12863 * emacs.c (USAGE1): Add --daemon.
12864
12865 2008-10-02 Eli Zaretskii <eliz@gnu.org>
12866
12867 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
12868 100, so it's in percents as advertised.
12869
12870 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
12871
12872 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
12873 (ns_output.current_cursor, ns_output.desired_cursor)
12874 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
12875 (FRAME_NEW_CURSOR_COLOR): Remove.
12876
12877 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
12878 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
12879 enumeration (HOLLOW_BOX_CURSOR, etc.).
12880
12881 * nsterm.m (ns_frame_rehighlight): Remove commented code.
12882 (draw_window_cursor): Simplify code.
12883 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
12884 Don't change cursor type. In latter, call rehighlight instead of doing
12885 updates manually.
12886 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
12887 Use core Emacs cursor types.
12888
12889 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
12890
12891 2008-10-02 Martin Rudalics <rudalics@gmx.at>
12892
12893 * process.c (Faccept_process_output): Fix doc-string.
12894
12895 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
12896
12897 * gmalloc.c (__sbrk): Also define for uClibc.
12898
12899 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
12900 for uClibc.
12901
12902 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12903
12904 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
12905 styles.
12906 (nsfont_open): Reenable the cache.
12907
12908 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12909
12910 * font.c (font_matching_entity): Reflect ATTRS in font selection.
12911 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
12912
12913 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
12914
12915 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
12916 a suspended terminal.
12917
12918 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
12919
12920 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
12921
12922 2008-09-30 Eli Zaretskii <eliz@gnu.org>
12923
12924 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
12925
12926 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
12927
12928 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
12929 in a continued line coincides with a line beginning.
12930
12931 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
12932
12933 * nsfont.m (nsfont_trait_distance): Fix bug.
12934 (nsfont_list): Return a list rather than a vector (syncs with Handa
12935 changes of 2008-05-14).
12936 (nsfont_open): Improve logging.
12937
12938 2008-09-29 Andreas Schwab <schwab@suse.de>
12939
12940 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
12941
12942 2008-09-28 Martin Rudalics <rudalics@gmx.at>
12943
12944 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
12945 name as char-resolve-modifiers.
12946 Reported by: Markus Triska <markus.triska@gmx.at>
12947
12948 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
12949
12950 * dispnew.c (init_display): Return earlier when running as a daemon.
12951
12952 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12953
12954 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
12955
12956 2008-09-27 Eli Zaretskii <eliz@gnu.org>
12957
12958 * composite.c (Fcomposition_get_gstring)
12959 (Fcompose_region_internal, Fcompose_string_internal)
12960 (Ffind_composition_internal): Doc fix.
12961 (syms_of_composite) <compose-chars-after-function>: Doc fix.
12962 (syms_of_composite) <auto-composition-function>: Doc fix.
12963 (syms_of_composite) <composition-function-table>: Doc fix.
12964
12965 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
12966
12967 * search.c (wordify): New argument for lax word-ends.
12968 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
12969
12970 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
12971
12972 * lisp.h (is_daemon): Declare.
12973 * dispnew.c (init_display): Do not try to initialize the terminal
12974 when running as a daemon.
12975
12976 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
12977
12978 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
12979 x_display_pixel_height.
12980
12981 2008-09-22 Martin Rudalics <rudalics@gmx.at>
12982
12983 * undo.c (record_point): Don't call Fundo_boundary for first
12984 change. (Bug#731)
12985
12986 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
12987
12988 * emacs.c (Fdaemonp): Doc fix.
12989
12990 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
12991
12992 * emacs.c (main): Place #ifdef in the proper place.
12993
12994 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
12995
12996 * emacs.c (standard_args): Add --daemon.
12997 (main): Disconnect from the terminal when --daemon is passed.
12998 (is_daemon): New variable.
12999 (Fdaemonp): New function.
13000 (syms_of_emacs): Defsubr it.
13001
13002 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
13003
13004 * xdisp.c (get_next_display_element): Handle string display
13005 correctly when checking for the end of a box run.
13006
13007 2008-09-20 Glenn Morris <rgm@gnu.org>
13008
13009 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
13010 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
13011 (Frename_file): Avoid copying to trash if a rename involves
13012 a delete. (Bug#964).
13013
13014 2008-09-20 Eli Zaretskii <eliz@gnu.org>
13015
13016 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
13017 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
13018 frames as well as termcap frames.
13019 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
13020 get_named_tty.
13021
13022 2008-09-19 Eli Zaretskii <eliz@gnu.org>
13023
13024 * process.c (procfs_system_process_attributes): Fix cmdline in
13025 case /proc/PID/cmdline is empty.
13026
13027 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
13028 x_display_pixel_height.
13029
13030 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
13031
13032 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
13033
13034 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
13035 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
13036
13037 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
13038
13039 * dispextern.h (struct it): Move line_wrap away from the middle of
13040 bitfields. Move voffset in struct iterator_stack_entry after the
13041 bitfields. Move tab_width near after another short.
13042
13043 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
13044
13045 * frame.h (struct frame): Move alpha from the middle of bitfields.
13046
13047 * window.h (struct window): Move frozen_window_start_p after the
13048 rest of the bitfields to reduce padding.
13049
13050 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
13051
13052 * xterm.h (x_display_info): Remove `height' and `width' members.
13053
13054 * nsterm.h (ns_display_info): Remove `height' and `width' members.
13055
13056 * w32term.h (w32_display_info): Remove `height', `width',
13057 `height_in', and `width_in' members.
13058
13059 * xterm.c (x_display_pixel_height, x_display_pixel_width):
13060 New functions.
13061 (x_calc_absolute_position): Use them.
13062 (x_term_init): Omit removed `height' and `width' members.
13063
13064 * w32term.c (x_display_pixel_height, x_display_pixel_width):
13065 New functions.
13066 (w32_read_socket, x_calc_absolute_position): Use them.
13067 (w32_initialize_display_info, w32_term_init): Omit removed members
13068 of w32_display_info.
13069
13070 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
13071 New functions.
13072 (ns_initialize_display_info): Omit removed members of ns_display_info.
13073
13074 * xterm.c (x_display_pixel_height, x_display_pixel_width):
13075 New functions.
13076 (x_calc_absolute_position): Use them.
13077 (x_term_init): Omit removed `height' and `width' members.
13078
13079 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
13080 (compute_tip_xy):
13081 * frame.c (x_fullscreen_adjust):
13082 * xmenu.c (menu_position_func): Use x_display_pixel_height and
13083 x_display_pixel_width.
13084
13085 2008-09-18 Kenichi Handa <handa@m17n.org>
13086
13087 * composite.c (fill_gstring_header): Don't check FROM and TO here.
13088 (composition_compute_stop_pos): Fix handling of static composition.
13089 (Fcomposition_get_gstring): Check FROM and TO at first.
13090
13091 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
13092
13093 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
13094 mixup (YAILOM).
13095
13096 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
13097
13098 * indent.c (Fvertical_motion): Use position reported by iterator
13099 instead of PT for determining screen motion (bug#943).
13100
13101 2008-09-17 Romain Francoise <romain@orebokech.com>
13102
13103 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
13104
13105 2008-09-17 Kenichi Handa <handa@m17n.org>
13106
13107 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
13108
13109 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
13110 if necessary.
13111
13112 2008-09-16 Kenichi Handa <handa@m17n.org>
13113
13114 * coding.c (make_conversion_work_buffer): Avoid calling
13115 Fget_buffer_create if it is not necessary.
13116
13117 2008-09-15 Martin Rudalics <rudalics@gmx.at>
13118
13119 * window.c (Fselect_window): Don't update window_select_count and
13120 use_time when norecord is not nil.
13121
13122 2008-09-14 Kenichi Handa <handa@m17n.org>
13123
13124 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
13125 specpdl_ptr.
13126
13127 2008-09-12 Kenichi Handa <handa@m17n.org>
13128
13129 * indent.c (scan_for_column): Don't handle automatic composition
13130 if the current buffer is not associated with a window.
13131
13132 * composite.c (composition_reseat_it): If the current buffer is
13133 not associated with a window, ignore the automatic composition.
13134 (find_automatic_composition): Likewise.
13135
13136 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
13137
13138 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
13139 (Fgpm_mouse_stop): Use it.
13140 * termhooks.h (close_gpm): Declare.
13141 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
13142 connection if Gpm_GetEvent fails.
13143
13144 * window.c (set_window_buffer): Always preserve current-buffer.
13145
13146 2008-09-12 Glenn Morris <rgm@gnu.org>
13147
13148 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
13149
13150 2008-09-11 Glenn Morris <rgm@gnu.org>
13151
13152 * charset.c (charset-map-path): Doc fix.
13153
13154 2008-09-10 Kenichi Handa <handa@m17n.org>
13155
13156 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
13157
13158 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
13159 compose a grapheme cluster with the preceding base glyph.
13160
13161 * composite.c (composition_compute_stop_pos): Fix previous change.
13162 Reset cmp_it->id to -1 at first.
13163
13164 2008-09-10 Glenn Morris <rgm@gnu.org>
13165
13166 * Makefile.in (character.o, chartab.o): Fix config.h typo.
13167
13168 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
13169
13170 * keyboard.c (read_key_sequence): Reapply translation maps when
13171 switching keyboards.
13172
13173 2008-09-09 Kenichi Handa <handa@m17n.org>
13174
13175 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
13176 characters.
13177
13178 * composite.c (FORWARD_CHAR): Fix calculation
13179 of (POSITION).pos_byte.
13180 (composition_compute_stop_pos): Limit the search of composition to
13181 at most 500 characters ahead. If we reach the limit or find a
13182 newline, set cmp_it->ch to -2 and return 0.
13183 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
13184
13185 2008-09-08 Kenichi Handa <handa@m17n.org>
13186
13187 * indent.c (Fvertical_motion): Be sure to set
13188 it_overshoot_expected if it.cmp_it.id is non-negative.
13189
13190 2008-09-07 Andreas Schwab <schwab@suse.de>
13191
13192 * callproc.c (Fcall_process): Don't hold references to string data
13193 across garbage collection. Move initialisation of new_argv down
13194 to avoid compiler bug.
13195
13196 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
13197
13198 * process.c (Fsystem_process_attributes): Doc fix.
13199
13200 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
13201
13202 * callproc.c (Fcall_process): Canonicalize current directory name.
13203
13204 * xdisp.c (move_it_to): When moving by vpos, ensure that the
13205 iterator advances to the next line if the current line ends in a
13206 continued tab.
13207
13208 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
13209
13210 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
13211 member to point to cmp_from.
13212
13213 * xdisp.c: Doc fix for references to gidx data member.
13214
13215 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
13216
13217 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
13218
13219 2008-09-07 Kenichi Handa <handa@m17n.org>
13220
13221 * composite.c (FORWARD_CHAR): Check STOP after
13222 incrementing (POSITION).pos.
13223
13224 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
13225
13226 * process.c (Fsystem_process_attributes): Doc fix.
13227
13228 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
13229
13230 * keyboard.c (Ftop_level): Doc fix.
13231
13232 2008-09-06 Eli Zaretskii <eliz@gnu.org>
13233
13234 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
13235 minibuffer, don't let lower part of menu invade the echo area.
13236
13237 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
13238 "char *q" to access menu text and advance through it. Revert the
13239 change that displayed ">" instead of ASCII character 0x10.
13240
13241 2008-09-05 Eli Zaretskii <eliz@gnu.org>
13242
13243 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
13244 toggle boxes and radio buttons on MS-DOS as well.
13245
13246 2008-09-05 Kenichi Handa <handa@m17n.org>
13247
13248 * composite.c (autocmp_chars): Check lookback count.
13249 (composition_compute_stop_pos): Set cmp_it->lookback.
13250 (composition_reseat_it): Check lookback count.
13251 (struct position_record): New struct.
13252 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
13253 (find_automatic_composition): New function.
13254 (composition_adjust_point): Use find_automatic_composition.
13255
13256 * dispextern.h (struct composition_it): New member lookback.
13257
13258 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
13259
13260 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
13261 if moving by a single line.
13262
13263 2008-09-02 Andreas Schwab <schwab@suse.de>
13264
13265 * xterm.c (x_delete_display): Fix merge error.
13266
13267 * fileio.c (Fexpand_file_name): Remove unused variables.
13268
13269 2008-09-02 Eli Zaretskii <eliz@gnu.org>
13270
13271 * fileio.c (Fexpand_file_name): Copy argument `name' into local
13272 storage on all platforms, not just on DOS_NT.
13273
13274 2008-09-02 Jason Rumney <jasonr@gnu.org>
13275
13276 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
13277 Ensure mouse is not grabbed after menu is finished.
13278
13279 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
13280
13281 * xfaces.c (Finternal_set_alternative_font_family_alist)
13282 (Finternal_set_alternative_font_registry_alist): Properly copy
13283 entire alist structure.
13284
13285 2008-09-01 Kenichi Handa <handa@m17n.org>
13286
13287 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
13288 representative chars of the script is a vector.
13289 (ftfont_list): Handle the case where the representative chars of
13290 the script is a vector.
13291
13292 * character.c (syms_of_character): Docstring of
13293 script-representative-chars fixed.
13294
13295 2008-08-31 Eli Zaretskii <eliz@gnu.org>
13296
13297 * msdos.c (BUILD_CHAR_GLYPH): New macro.
13298 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
13299 the menu. Allocate larger buffer for `text', to account for
13300 possible ^C characters.
13301
13302 2008-08-31 Martin Rudalics <rudalics@gmx.at>
13303
13304 * xdisp.c (prepare_menu_bars): Don't call
13305 Vwindow_size_change_functions with arg Qt.
13306
13307 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
13308
13309 * font.h (font_range):
13310 * fileio.c (report_file_error):
13311 * composite.c (composition_update_it): Yet another int/Lisp_Object
13312 mixup (YAILOM).
13313
13314 2008-08-30 Glenn Morris <rgm@gnu.org>
13315
13316 * data.c (Fmake_variable_frame_local): Doc fix.
13317
13318 * frame.c (Fmodify_frame_parameters): Doc fix.
13319
13320 2008-08-30 Eli Zaretskii <eliz@gnu.org>
13321
13322 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
13323 needed by GetTokenInformation.
13324 (w32_system_process_attributes): Check return values of all system
13325 APIs.
13326
13327 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
13328 only when the state changes.
13329 (IT_update_begin, IT_update_end): Add termscript trace.
13330
13331 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
13332 clipboard is unavailable. Set dst to NULL if it doesn't point to
13333 malloc'ed data.
13334 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
13335 passing random values to xfree.
13336
13337 * dispnew.c (init_display): Set `tty's association in frame's
13338 parameters alist to the name of the terminal device, if that is known.
13339
13340 2008-08-29 Jason Rumney <jasonr@gnu.org>
13341
13342 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
13343
13344 2008-08-29 Eli Zaretskii <eliz@gnu.org>
13345
13346 * composite.c (fill_gstring_body): Avoid compiler warnings.
13347
13348 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
13349 LGLYPH_SET_CODE to avoid compiler warnings.
13350
13351 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
13352
13353 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
13354
13355 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
13356 LGLYPH_SET_CODE.
13357
13358 2008-08-29 Kenichi Handa <handa@m17n.org>
13359
13360 * fileio.c (report_file_error): Don't downcase the first character
13361 of errstring if it is still unibyte.
13362
13363 2008-08-29 Kenichi Handa <handa@m17n.org>
13364
13365 These changes are to re-implement the automatic composition so
13366 that it doesn't use text properties.
13367
13368 * Makefile.in (ftfont.o): Depend on composite.h.
13369 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
13370
13371 * character.h (Vunicode_category_table): Extern it.
13372
13373 * character.c (Vunicode_category_table): New variable.
13374 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
13375
13376 * chartab.c (optimize_sub_char_table): Perform more greedy
13377 optimization.
13378
13379 * composite.h (enum composition_method):
13380 Delete COMPOSITION_WITH_GLYPH_STRING.
13381 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
13382 (Vcomposition_function_table): Extern it.
13383 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
13384 (composition_gstring_put_cache, composition_gstring_from_id)
13385 (composition_gstring_p, composition_gstring_width)
13386 (composition_compute_stop_pos, composition_reseat_it)
13387 (composition_update_it, composition_adjust_point): Extern them.
13388 (Fcomposition_get_gstring): EXFUN it.
13389
13390 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
13391 (Vcomposition_function_table)
13392 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
13393 (gstring_hash_table, gstring_work, gstring_work_headers):
13394 New variables.
13395 (gstring_lookup_cache, composition_gstring_put_cache)
13396 (composition_gstring_from_id, composition_gstring_p)
13397 (composition_gstring_width, fill_gstring_header)
13398 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
13399 (composition_reseat_it, composition_update_it)
13400 (composition_adjust_point, Fcomposition_get_gstring): New functions.
13401 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
13402 and gstring_work_headers. DEFVAR_LISP composition-function-table.
13403 Defsubr composition_get_gstring.
13404
13405 * dispextern.h (struct glyph): New union u.cmp. Delete the member
13406 cmp_id.
13407 (struct glyph_string): Delete the member gidx. New members
13408 cmp_id, cmp_from, and cmp_to.
13409 (enum it_method): Delete GET_FROM_COMPOSITION.
13410 (struct composition_it): New struct.
13411 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
13412 Delete c, len, cmp_id, cmp_len in u.comp.
13413
13414 * font.h (enum lgstring_indices): Delete it.
13415 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
13416 (enum lglyph_indices): Likewise.
13417 (font_range): Adjust extern.
13418 (font_fill_lglyph_metrics): Extern it.
13419
13420 * font.c (QCf): New variable.
13421 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
13422 (font_prepare_composition): Delete this function.
13423 (font_range): Type and arguments changed.
13424 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
13425 (font_fill_lglyph_metrics): New function.
13426 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
13427 (syms_of_font): DEFSYM QCf. Delete defsubr for
13428 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
13429 Defsubr Sfont_shape_gstring.
13430
13431 * fontset.h (font_for_char): Extern it.
13432
13433 * fontset.c (font_for_char): New function.
13434
13435 * ftfont.c: Include composite.h.
13436 (ftfont_resolve_generic_family): Add langset "en" to pattern.
13437 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
13438
13439 * indent.c: Include composite.h and dispextern.h.
13440 (check_composition): Delete this function.
13441 (scan_for_column): Handle composition by
13442 composition_compute_stop_pos, composition_reseat_it, and
13443 composition_update_it.
13444 (compute_motion): Likewise.
13445 (Fvertical_motion): Fix checking of composition.
13446
13447 * keyboard.c (adjust_point_for_property): Check composition by
13448 composition_adjust_point.
13449
13450 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
13451 struct glyph_string.
13452
13453 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
13454 (append_composite_glyph): Adjust for the change of struct it and
13455 struct glyph.
13456 (produce_composite_glyph): Likewise.
13457
13458 * w32term.c (x_draw_composite_glyph_string_foreground):
13459 Adjust for the change of struct glyph_string.
13460 (x_draw_glyph_string): Likewise.
13461
13462 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
13463 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
13464
13465 * xdisp.c: Include font.h.
13466 (it_props): Delete the entry for Qauto_composed.
13467 (init_iterator): Initialize it->cmp_it.id to -1.
13468 (compute_stop_pos): Call composition_compute_stop_pos.
13469 (face_before_or_after_it_pos): Adjust for the change of struct it.
13470 (handle_auto_composed_prop): Delete it.
13471 (handle_composition_prop): Handle only static composition.
13472 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
13473 from xassert. Initialize it->cmp_it.stop_pos.
13474 (push_it): Adjust for the change of struct it.
13475 (pop_it): Likewise.
13476 (get_next_element): Delete next_element_from_composition.
13477 (CHAR_COMPOSED_P): New macro.
13478 (get_next_display_element): For automatic composition, get a face
13479 from the font in the glyph-string.
13480 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
13481 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
13482 (next_element_from_string): Check if the character at the current
13483 position is composed by CHAR_COMPOSED_P.
13484 (next_element_from_buffer): Likewise.
13485 (next_element_from_composition): Adjust for the change of struct it.
13486 Update it->cmp_it.
13487 (dump_glyph): Adjust for the change of struct glyph.
13488 (fill_composite_glyph_string): Adjust for the change of struct
13489 it and struct glyph. Don't handle automatic composition here.
13490 (fill_gstring_glyph_string): New function.
13491 (x_get_glyph_overhangs): Handle automatic composition.
13492 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
13493 (BUILD_GSTRING_GLYPH_STRING): New macro.
13494 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
13495 automatic composition.
13496 (append_composite_glyph): Adjust for the change of struct it and
13497 struct glyph.
13498 (x_produce_glyphs): Adjust for the change of struct it.
13499
13500 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13501 the change of struct glyph_string.
13502 (x_draw_glyph_string): Likewise.
13503
13504 2008-08-29 Glenn Morris <rgm@gnu.org>
13505
13506 * buffer.c (word-wrap): Doc fix.
13507 * xdisp.c (truncate-partial-width-windows): Doc fix.
13508 Increase default to 50.
13509
13510 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
13511
13512 * xdisp.c (update_tool_bar_unwind): New function.
13513 (update_tool_bar): Temporarily set selected frame before building
13514 tool-bar items.
13515
13516 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
13517
13518 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
13519 snprintf, respectively.
13520 (xd_append_arg): Convert strings with Fstring_make_unibyte.
13521
13522 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
13523
13524 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
13525 LDFLAGS to GNUstep CC invocation.
13526
13527 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
13528
13529 * indent.c (Fvertical_motion): Revert last change. Handle the
13530 general case where we are moving forward, and PT spans multiple
13531 screen lines.
13532
13533 * eval.c (find_handler_clause): Temporarily increase
13534 max-lisp-eval-depth while printing the backtrace buffer, to
13535 guarantee that help-mode code can run.
13536
13537 2008-08-27 Eli Zaretskii <eliz@gnu.org>
13538
13539 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
13540 colors under -rv.
13541 (IT_set_frame_parameters): Don't swap foreground and background
13542 colors if `(reverse . t)' is present in the frame properties.
13543 (internal_terminal_init): Call init_frame_faces only for the
13544 initial frame.
13545
13546 2008-08-27 Andreas Schwab <schwab@suse.de>
13547
13548 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
13549
13550 2008-08-27 Andreas Schwab <schwab@suse.de>
13551
13552 * search.c (search_buffer): Set char_base to zero only at the end.
13553
13554 2008-08-27 Kenichi Handa <handa@m17n.org>
13555
13556 * fileio.c (report_file_error): Fix handling of multibyte error string.
13557
13558 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
13559
13560 * xterm.c (x_term_init): Temporarily hide the partially
13561 initialized terminal while calling vendor-specific-keysyms.
13562
13563 2008-08-26 Eli Zaretskii <eliz@gnu.org>
13564
13565 * msdos.c (internal_terminal_init): Most initializations done only
13566 once, especially initial_screen_colors[] and termscript open.
13567
13568 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
13569
13570 * eval.c (Fcondition_case): Doc fix.
13571
13572 * widgetprv.h (EmacsFramePart): Change font member to the new font
13573 struct.
13574
13575 * widget.c: Include character.h and font.h for XSETFONT.
13576 (setup_frame_gcs): Compute X font id from font struct, just once.
13577
13578 2008-08-26 Eli Zaretskii <eliz@gnu.org>
13579
13580 * term.c (get_named_tty): Fix last change.
13581
13582 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
13583
13584 * indent.c (Fvertical_motion): If moving forward starting from a
13585 multi-line string, move the iterator to the last line of that string.
13586
13587 2008-08-25 Eli Zaretskii <eliz@gnu.org>
13588
13589 * frame.c (do_switch_frame): Mark previously displayed frame as
13590 obscured for FRAME_MSDOS_P frames as well.
13591
13592 2008-08-24 Eli Zaretskii <eliz@gnu.org>
13593
13594 * frame.c (make_terminal_frame): Initialize f->terminal,
13595 f->terminal->reference_count, and scroll bars on MS-DOS as well.
13596 Set the top frame to newly created frame.
13597 (Fmake_terminal_frame): Reuse the_only_display_info.
13598
13599 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
13600 estimating available memory.
13601
13602 2008-08-23 David Reitter <david.reitter@gmail.com>
13603
13604 * nsterm.m (ns_draw_window_cursor): Don't call
13605 NSDisableScreenUpdates and NSEnableScreenUpdates on
13606 non-NS_IMPL_COCOA systems.
13607
13608 2008-08-23 Andreas Schwab <schwab@suse.de>
13609
13610 * process.c (procfs_system_process_attributes): Fix use of
13611 uninitialized variables.
13612
13613 2008-08-23 Eli Zaretskii <eliz@gnu.org>
13614
13615 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
13616
13617 * dispnew.c (init_display): Remove MS-DOS specific conditions for
13618 calling tty-set-up-initial-frame-faces.
13619
13620 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
13621 Allow MSDOS frames along with X frames.
13622
13623 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
13624 addition to output_termcap.
13625
13626 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
13627
13628 * termchar.h (FRAME_TTY): Support output_msdos_raw.
13629 (struct tty_display_info) [MSDOS]: Add fields related to mouse
13630 highlight.
13631
13632 * process.c [!subprocesses]: Define QCname.
13633 (syms_of_process): Intern and staticpro it.
13634
13635 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
13636 Adjust for changes in encoding/decoding routines.
13637 Use encode_coding_object and decode_coding_object instead of
13638 encode_coding and decode_coding.
13639
13640 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
13641
13642 * dosfns.c: Include frame.h before termhooks.h.
13643 (dos_cleanup): Use CURTTY ()->termscript instead of a global
13644 variable termscript.
13645
13646 * s/msdos.h (USER_FULL_NAME): Define.
13647 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
13648
13649 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
13650 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
13651 pw->pw_gecos.
13652
13653 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
13654 SELECTED_FRAME as additional (1st) argument.
13655 (tty_read_avail_input): Handle output_msdos_raw in
13656 addition to output_termcap.
13657
13658 * msdos.c: Include frame.h before termhooks.h.
13659 (mouse_on, mouse_off, mouse_moveto, mouse_init)
13660 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
13661 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
13662 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
13663 (IT_set_terminal_modes, IT_reset_terminal_modes)
13664 (IT_set_frame_parameters): Use tty->termscript instead of a global
13665 variable termscript.
13666 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
13667 global variable terminal_coding. Don't refer to
13668 Vnonascii_translation_table.
13669 (internal_terminal_init): Set Vwindow_system in current_kboard.
13670 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
13671 Announce date and time of session start, if termscript is open.
13672 Don't zero out the_only_display_info (it is done in
13673 term.c:init_tty). Open termscript only of not already open.
13674 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
13675 here instead of dos_ttraw. Don't initialize display if this is an
13676 initial tty. Don't set FRAME_FONT.
13677 (Vwindow_system_version): Bump to 23.
13678 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
13679 is available, set up mouse_position_hook.
13680 (dos_ttraw, IT_set_terminal_modes): If called with initial
13681 terminal, do nothing.
13682 (IT_set_frame_parameters): Handle the Qtty_type frame
13683 parameter by calling internal_terminal_init.
13684 (dos_set_window_size, show_mouse_face)
13685 (clear_mouse_face, IT_note_mode_line_highlight)
13686 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
13687 (dos_rawgetc): Use tty_display_info instead of x_display_info.
13688 (initialize_msdos_display): New function.
13689 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
13690 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
13691 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
13692 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
13693 Accept additional argument: a pointer to a frame. Update all callers.
13694 (request_sigio, unrequest_sigio): Don't define, now defined on
13695 sysdep.c.
13696 (IT_write_glyphs): Rewrite to use encode_terminal_code.
13697
13698 * term.c [MSDOS]: Include msdos.h.
13699 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
13700 conditional to DOS_NT. Allow only one call to this function in a
13701 session. Don't allocate a new struct tty_display_info; instead,
13702 reuse the_only_display_info. Call get_tty_size to get screen
13703 dimensions. Call init_baud_rate to set bad_rate.
13704 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
13705 (Fsuspend_tty) [MSDOS]: Don't close input and output.
13706 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
13707 (get_tty_terminal, get_named_tty, Ftty_type)
13708 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
13709 output_termcap.
13710 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
13711 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
13712 only when subprocesses are supported.
13713
13714 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
13715 f->output_data.x.
13716 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
13717 terminal devices.
13718
13719 * msdos.h: Remove definition of struct x_display_info and struct
13720 x_output.
13721 (FRAME_FONT): Use output_data.tty.
13722 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
13723 (struct x_display_info): Rename from display_info. Update all users in
13724 msdos.c.
13725 (struct x_output): Remove background_pixel and foreground_pixel.
13726 (the_only_display_info): Rename from the_only_x_display.
13727 (dos_ttraw): Update prototype.
13728
13729 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
13730 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
13731
13732 2008-08-23 Jason Rumney <jasonr@gnu.org>
13733
13734 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
13735 (fn_TIFFSetDirectory): New library function used.
13736 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
13737 (tiff_load): Use :index to select among multiple images. Set count
13738 property when multiple images exist.
13739 (gif_format): Use :index, not :image.
13740
13741 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
13742
13743 * xdisp.c (try_scrolling): Check INT_MAX instead of
13744 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
13745 to obtain INT_MAX.
13746
13747 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
13748
13749 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
13750
13751 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
13752
13753 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
13754 GNUstep library location.
13755
13756 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
13757
13758 * xfaces.c (x_update_menu_appearance): Check validity of menu font
13759 before using it.
13760
13761 * puresize.h (BASE_PURESIZE): Increase to 1250000.
13762
13763 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13764
13765 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
13766 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
13767 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
13768 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
13769 (EmacsApp-cursor_blink_handler): Remove declaration.
13770 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
13771 match 01 Feb 2008 changes in xterm.c.
13772 (ns_read_socket): Add cast to avoid warning.
13773 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
13774 GNUstep.
13775
13776 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
13777
13778 * xselect.c (x_get_foreign_selection): Return nil if desired
13779 selection could not be obtained, instead of signalling an error.
13780
13781 2008-08-20 David Reitter <david.reitter@gmail.com>
13782
13783 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
13784 * nsterm.m: Remove ns-specific code for cursor blinking.
13785 (ns_draw_window_cursor): Clear cursor properly rather than
13786 redrawing the area. Respect width of bar cursors.
13787 These changes enable the use of generic blink-cursor-mode and
13788 generic cursor types in NS and support smooth cursor movements (do
13789 not blink off after command).
13790 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
13791 Nextstep, too.
13792
13793 2008-08-19 Kenichi Handa <handa@m17n.org>
13794
13795 * font.c (Vfont_log_deferred): New variable.
13796 (font_add_log): Check Vfont_log_deferred.
13797 (font_deferred_log): New function.
13798
13799 * font.h (font_deferred_log): Extern it.
13800
13801 * fontset.c (reorder_font_vector): Use encoding charset of fonts
13802 for sorting.
13803 (face_for_char): Use deferred log.
13804
13805 2008-08-18 Kenichi Handa <handa@m17n.org>
13806
13807 * fontset.c (face_for_char): Add font log.
13808
13809 * font.c (font_add_log): Add the font properties :script, :lang,
13810 and :otf in the log.
13811
13812 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
13813
13814 * xdisp.c: Remove dead code.
13815 (handle_invisible_prop, next_overlay_string): Defer call to
13816 setup_for_ellipsis.
13817 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
13818
13819 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
13820
13821 * xfaces.c (lookup_derived_face): Properly handle possible zero
13822 return value of get_lface_attributes.
13823 (merge_faces): Don't tell lookup_derived_face to signal an error
13824 if face is not found.
13825
13826 * dired.c (Fdirectory_files): Doc fix.
13827
13828 * process.c (make_process): Initialize kill_without_query struct
13829 member.
13830
13831 2008-08-15 Eli Zaretskii <eliz@gnu.org>
13832
13833 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
13834 Alternative calculation of totphys for Visual Studio 6.
13835
13836 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
13837
13838 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
13839 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
13840 All users changed.
13841 (stat): Only root directory passed to GetDriveType. Allow RAM
13842 disk as well as local fixed disk when w32-get-true-file-attributes
13843 is set to `local'.
13844 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
13845 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
13846 (w32_cached_id, w32_add_to_cache): New functions.
13847 (get_name_and_id): Look account names in the cache before calling
13848 lookup_account_sid.
13849 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
13850 New initialization flags.
13851 (globals_of_w32): Initialize them to zero.
13852 (w32_system_process_attributes): Use w32_cached_id and
13853 w32_add_to_cache.
13854
13855 2008-08-14 Lawrence Mitchell <wence@gmx.li>
13856
13857 * lread.c (Fread_char, Fread_char_exclusive): If no character
13858 event is read before timeout is reached, return nil, rather than
13859 converting to a number.
13860
13861 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
13862
13863 * fns.c (use_dialog_box): Doc fix.
13864
13865 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
13866 on OS X.
13867
13868 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
13869
13870 * frame.c (Qns_parse_geometry): New var.
13871 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
13872
13873 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
13874
13875 * xdisp.c (x_produce_glyphs): Handle the case when font has no
13876 space character in calculating tabs.
13877
13878 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
13879
13880 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
13881
13882 2008-08-10 Glenn Morris <rgm@gnu.org>
13883
13884 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
13885 silence gcc "limited range of data type" warnings in some
13886 make_fixnum_or_float calls.
13887
13888 2008-08-09 Eli Zaretskii <eliz@gnu.org>
13889
13890 * w32.c (w32_system_process_attributes): If the process does not
13891 exist, return nil.
13892
13893 * w32.c: Include thelp32.h, psapi.h and coding.h.
13894 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
13895 declarations.
13896 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
13897 (Process32Next_Proc): New typedefs.
13898 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
13899 (g_b_init_process32_next, g_b_init_open_thread_token)
13900 (g_b_init_impersonate_self, g_b_init_revert_to_self)
13901 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
13902 (g_b_init_get_process_working_set_size)
13903 (g_b_init_global_memory_status_ex): New static variables.
13904 (globals_of_w32): Initialize them.
13905 (create_toolhelp32_snapshot, process32_first, process32_next)
13906 (open_thread_token, impersonate_self, revert_to_self)
13907 (get_process_memory_info, get_process_working_set_size)
13908 (global_memory_status, global_memory_status_ex): New wrapper
13909 functions.
13910 (w32_list_system_processes, w32_system_process_attributes)
13911 (enable_privilege, restore_privilege, ltime, process_times):
13912 New functions.
13913 (convert_time_raw): New function.
13914 (convert_time): Remove conversion of FILETIME into time in 100
13915 nsec units, call convert_time_raw instead.
13916
13917 * process.h (w32_list_system_processes, w32_system_process_attributes):
13918 Add prototypes.
13919 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
13920 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
13921 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
13922 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
13923
13924 * process.c (Fsystem_process_attributes): Doc fix.
13925
13926 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
13927
13928 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
13929 a continued multi-char glyph; if so, advance to the actual glyph.
13930
13931 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
13932
13933 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
13934
13935 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
13936 (.m.o): Use it.
13937 * config.in: Regenerate.
13938
13939 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
13940
13941 * xdisp.c (redisplay_window): Revert last change.
13942 (try_window): Check bottom scroll margin too.
13943
13944 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
13945
13946 * config.in: Regenerate.
13947
13948 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
13949 -list-load-path-shadows'.
13950 (nsgui.h): Reduce number of things depending on it.
13951
13952 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
13953
13954 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
13955 instead of window-end which does the wrong thing at eob.
13956 (try_cursor_movement): Minor optimization.
13957 (redisplay_window): If scroll margin is defined, don't assume
13958 window doesn't need scrolling.
13959
13960 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
13961
13962 * config.in: Regenerate.
13963
13964 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
13965 (mostlyclean): Don't delete *.d under NS.
13966
13967 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
13968
13969 2008-08-06 Kenichi Handa <handa@m17n.org>
13970
13971 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
13972
13973 2008-08-06 Andreas Schwab <schwab@suse.de>
13974
13975 * config.in: Regenerate.
13976
13977 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
13978
13979 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
13980 forcing a window start.
13981
13982 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
13983 (auto_save_1): Update modtime when auto-save-list-file-name is on.
13984
13985 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13986
13987 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
13988 argument.
13989
13990 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
13991
13992 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
13993 <scroll-down-aggressively, before-change-functions>:
13994 <after-change-functions>: Reflow docstrings.
13995
13996 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13997 Ken Raeburn <raeburn@gnu.org>
13998
13999 Dock menu customization, based on a patch by Ken Raeburn, plus some
14000 other fixes.
14001 * nsmenu.m (dockMenu): New variable.
14002 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
14003
14004 * nsterm.h (dockMenu): Declare.
14005
14006 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
14007 (ns_term_init): Initialize dockMenu.
14008 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
14009 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
14010 left.
14011
14012 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
14013
14014 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
14015
14016 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
14017
14018 * config.in: Regenerate.
14019
14020 2008-08-04 Seiji Zenitani <zenitani@mac.com>
14021
14022 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
14023
14024 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
14025
14026 * nsterm.h (find_and_call_menu_selection): Fix prototype.
14027
14028 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
14029
14030 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
14031
14032 * keyboard.h: Comment an #endif.
14033
14034 * lisp.h (have_menus_p): Adjust comment.
14035
14036 * menu.c (find_and_return_menu_selection): Fix comparison with
14037 client_data.
14038
14039 * nsmenu.m (popup_activated_flag): New variable.
14040 (popup_activated): New function.
14041 (menu-or-popup-active-p): New exported lisp definition.
14042 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
14043 when popup done.
14044 (ns_popup_dialog): Set popup_activated_flag.
14045
14046 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
14047 version for GNUstep (handled by conditional typedef in nsterm.m).
14048 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
14049 in rgb.txt).
14050
14051 * process.c (init_process): Use DARWIN_OS, not DARWIN.
14052
14053 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
14054
14055 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
14056
14057 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
14058 shortcircuit if popup_activated like GTK and X toolkit.
14059
14060 * m/inter386.h: Change DARWIN to DARWIN_OS.
14061
14062 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
14063 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
14064 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
14065 comment on NO_SOCK_SIGIO.
14066
14067 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
14068
14069 * nsterm.m (windowDidResize): Remove stopModal call.
14070
14071 2008-08-03 Andreas Schwab <schwab@suse.de>
14072
14073 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
14074 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
14075
14076 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
14077
14078 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
14079 Don't use uninitialized pointer variable when using getrlimit.
14080
14081 2008-08-02 Jason Rumney <jasonr@gnu.org>
14082
14083 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
14084
14085 2008-08-02 Eli Zaretskii <eliz@gnu.org>
14086
14087 * alloc.c (NSTATICS): Bump to 0x640.
14088
14089 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
14090
14091 * lisp.h: Add prototype for directory_files_internal.
14092
14093 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
14094 New functions.
14095 (syms_of_process): Defsubr them. Add initializations for various
14096 Q* symbols used in procfs_system_process_attributes.
14097 (procfs_list_system_processes, procfs_system_process_attributes)
14098 [HAVE_PROCFS]: New functions.
14099 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
14100 (procfs_get_total_memory): New functions.
14101
14102 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
14103
14104 * xfaces.c (Fx_load_color_file): Fix previous change;
14105 it is #ifdef WINDOWSNT, not WINDOWS_NT.
14106
14107 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
14108
14109 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
14110
14111 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14112
14113 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
14114
14115 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
14116
14117 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
14118
14119 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
14120 define NSApplicationDelegateReplySuccess.
14121 (EmacsView -converstationIdentifier): Use long instead of
14122 NSInteger for GNUstep, since it doesn't have NSInteger.
14123
14124 * xmenu.c: Revert last change.
14125
14126 * keyboard.h: Fix last change.
14127
14128 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
14129
14130 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
14131 on Windows.
14132
14133 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14134
14135 Warning clearing and clean-up in NS port.
14136 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
14137 Add prototypes.
14138 * nsgui.h (FACE_DEFAULT): Remove, unused.
14139 (XGCValues): Change colors to unsigned long.
14140 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
14141 nsterm.m.
14142 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
14143 (ns_list_fonts): Remove, unused.
14144 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
14145 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
14146 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
14147 (nsfont_draw): Compare face colors to 0, not nil.
14148 * nsmenu.m (struct widget_value): Drop unneeded declaration.
14149 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
14150 (-addSubmenuWithTitle:): Use NSMenuItem class.
14151 (ns_popup_menu): Use NO, not NULL, for enabled setting.
14152 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
14153 (ns_clip_to_row): Make gc arg a BOOL.
14154 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
14155 ns_clip_to_row() call.
14156 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
14157 used). Cast FRAME_FONT assignments.
14158 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
14159 (ns_string_to_lispmod): Change arg to const char.
14160 (ns_term_init): Use NSMenuItem class.
14161 (EmacsApp -openFile:): Move to different section of file.
14162 (EmacsApp -application:openFiles:): Don't return a value, call
14163 -replyToOpenOrPrint:.
14164 (EmacsView -keyDown:): Fix up cast.
14165 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
14166 (EmacsView -menuDown:): Cast tag in call to
14167 find_and_call_menu_selection().
14168 (ns_list_fonts): Remove, unused.
14169 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
14170 (ns_fontname_to_xlfd): Make static.
14171 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
14172 Remove prototypes (now in keyboard.h).
14173 (next_menubar_widget_id): Remove, unused.
14174 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
14175 Remove prototypes (now in keyboard.h).
14176 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
14177
14178 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
14179
14180 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
14181 (floatfns.o): Depend on syssignal.h.
14182 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
14183
14184 * systty.h: Fix previous change that removed BSD_TERMIOS.
14185 Add comments to #ifdefs.
14186
14187 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14188
14189 * w32fns.c (w32-load-color-file): Remove.
14190 (x-open-connection): Use renamed Fx_load_color_file.
14191 * xfaces.c (x-load-color-file): Add.
14192 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
14193 Emacs.clr.
14194 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
14195
14196 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
14197
14198 * dbusbind.c (Fdbus_call_method_asynchronously)
14199 (Fdbus_method_error_internal): New defuns.
14200 (xd_read_message): Handle also reply messages.
14201 (Vdbus_registered_functions_table): Extend docstring.
14202
14203 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
14204
14205 * keyboard.c (gobble_input): Fix previous change.
14206
14207 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
14208
14209 * bitmaps/README:
14210 * xfns.c:
14211 * termcap.c:
14212 * term.c:
14213 * syswait.h:
14214 * systty.h:
14215 * systime.h:
14216 * syssignal.h:
14217 * sysdep.c:
14218 * process.h:
14219 * process.c:
14220 * print.c:
14221 * ndir.h:
14222 * lread.c:
14223 * keyboard.c:
14224 * getpagesize.h:
14225 * floatfns.c:
14226 * fileio.c:
14227 * emacs.c:
14228 * doc.c:
14229 * dispnew.c:
14230 * dired.c:
14231 * data.c:
14232 * callproc.c:
14233 * buffer.c:
14234 * README:
14235 * Makefile.in:
14236 * s/template.h:
14237 * s/msdos.h:
14238 * m/vax.h: Remove VMS support.
14239 * s/vms.h:
14240 * vlimit.h:
14241 * uaf.h:
14242 * temacs.opt:
14243 * param.h:
14244 * ioctl.h: Remove file.
14245
14246 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
14247
14248 * s/ms-w32.h (MULTI_KBOARD): Remove.
14249 * xterm.c:
14250 * xselect.c:
14251 * xfns.c:
14252 * window.c:
14253 * w32term.c:
14254 * w32fns.c:
14255 * terminal.c:
14256 * termhooks.h:
14257 * term.c:
14258 * sysdep.c:
14259 * keyboard.h:
14260 * keyboard.c:
14261 * frame.h:
14262 * frame.c:
14263 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
14264 * config.in: Regenerate.
14265
14266 2008-07-30 Jason Rumney <jasonr@gnu.org>
14267
14268 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
14269
14270 * w32font.c (w32font_encode_char): Leave as unicode if in range.
14271 (w32font_open_internal): Get unicode version of textmetrics.
14272 Don't enable or disable glyph indices here.
14273 (w32font_open): Disable use of glyph indices.
14274
14275 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
14276
14277 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
14278
14279 * minibuf.c (Vread_buffer_function): Doc fix.
14280
14281 2008-07-30 John Paul Wallington <jpw@pobox.com>
14282
14283 * minibuf.c (read_buffer_completion_ignore_case): New var.
14284 (Fread_buffer): Use it.
14285
14286 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
14287
14288 * systty.h (sensemode): Remove empty #if. Remove reference to
14289 BSD_TERMIOS, unused.
14290
14291 * sysdep.c: Remove reference to DGUX.
14292 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
14293
14294 * config.in: Regenerate.
14295
14296 2008-07-30 Jason Rumney <jasonr@gnu.org>
14297
14298 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
14299
14300 2008-07-29 Jason Rumney <jasonr@gnu.org>
14301
14302 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
14303 is populated.
14304 (uniscribe_encode_char): Always use uniscribe.
14305 Avoid using context if cache is populated.
14306
14307 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
14308
14309 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
14310 open menu.
14311
14312 * gtkutil.c (menu_nav_ended): Remove.
14313 (create_menus): Remove signal connect for menu_nav_ended.
14314
14315 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
14316
14317 * xdisp.c (redisplay_window): Check return value of
14318 compute_window_start_on_continuation_line before forcing a window
14319 start.
14320
14321 2008-07-28 Jason Rumney <jasonr@gnu.org>
14322
14323 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
14324
14325 * w32term.c (w32_enable_unicode_output, cleartype_active):
14326 Remove obsolete display options.
14327 (x_draw_glyph_string_background): Don't use old cleartype_active
14328 workaround.
14329 (w32_initialize): Remove cleartype_active initialization.
14330 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
14331
14332 2008-07-28 Andreas Schwab <schwab@suse.de>
14333
14334 * lisp.h (init_weak_hash_tables, syms_of_font)
14335 (xd_read_queued_messages, syms_of_dbusbind): Declare.
14336 (remove_hash_entry): Don't declare.
14337 * eval.c (maybe_call_debugger): Make static and move before use.
14338 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
14339 * xdisp.c: Include "gtkutil.h" if USE_GTK.
14340 * xterm.h (x_set_frame_alpha): Declare.
14341
14342 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
14343
14344 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
14345 (create_menus): Connect selection-done to menu_nav_ended.
14346
14347 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
14348
14349 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
14350 Set Vx_resource_name to a fallback. Replace read of 'buffered'
14351 parameter with read of 'alpha' one.
14352 (Qns_frame_parameter): Remove.
14353 * nsselect.m (selection-coding-system)
14354 (next-selection-coding-system, Vselection_coding_system)
14355 (Vnext_selection_coding_system): Drop.
14356
14357 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
14358
14359 * nsfns.m (do-applescript, do_applescript): Rename to
14360 ns-do-applescript, ns_do_applescript, and move within file.
14361
14362 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
14363
14364 Remove support for Mac Carbon.
14365 * mactoolbox.c:
14366 * macterm.h:
14367 * macterm.c:
14368 * macselect.c:
14369 * macmenu.c:
14370 * macgui.h:
14371 * macfns.c:
14372 * mac.c: Remove file.
14373 * s/darwin.h:
14374 * m/intel386.h:
14375 * xfaces.c:
14376 * xdisp.c:
14377 * window.c:
14378 * tparam.c:
14379 * termhooks.h:
14380 * termcap.c:
14381 * term.c:
14382 * syssignal.h:
14383 * sysselect.h:
14384 * sysdep.c:
14385 * process.c:
14386 * lread.c:
14387 * lisp.h:
14388 * keyboard.c:
14389 * image.c:
14390 * fringe.c:
14391 * frame.h:
14392 * frame.c:
14393 * fontset.c:
14394 * font.h:
14395 * font.c:
14396 * fns.c:
14397 * fileio.c:
14398 * emacs.c:
14399 * dispnew.c:
14400 * dispextern.h:
14401 * config.in:
14402 * atimer.c:
14403 * Makefile.in: Remove code for Carbon.
14404
14405 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14406
14407 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
14408
14409 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14410
14411 * macterm.h (kCGBitmapByteOrder32Host): New define for
14412 non-universal SDKs.
14413
14414 * image.c (mac_create_cg_image_from_image, image_load_image_io)
14415 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
14416
14417 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
14418 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
14419
14420 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
14421
14422 * w32inevt.c: Include dispextern.h.
14423
14424 2008-07-26 Andreas Schwab <schwab@suse.de>
14425
14426 * print.c (print_object): Fix off-by-one in last change.
14427
14428 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
14429
14430 * term.c (syms_of_term): Don't initialize default_orig_pair,
14431 default_set_foreground and default_set_background on Windows.
14432
14433 2008-07-25 Jason Rumney <jasonr@gnu.org>
14434
14435 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
14436 ScriptItemize. Clean up return value checking. Remove unused
14437 variables.
14438 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
14439 shaping engine.
14440
14441 * w32font.c (w32font_has_char): Handle the case where we can't
14442 determine the script for a character.
14443
14444 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
14445
14446 * term.c (syms_of_term): Initialize default_orig_pair,
14447 default_set_foreground, and default_set_background.
14448
14449 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
14450 clash (bug#86).
14451 (getloadavg): Callers changed.
14452
14453 * image.c (svg_load_image): Fix last change.
14454 (svg_load_image): Use rsvg_handle_get_dimensions to check that
14455 image size is valid. Use g_object_unref instead of deprecated
14456 rsvg_handle_free to free rsvg handle.
14457 (x_from_xcolors): Don't initialize pixmap (silence compiler).
14458
14459 2008-07-25 Jason Rumney <jasonr@gnu.org>
14460
14461 * w32font.c (w32font_encode_char): Encode characters outside BMP as
14462 surrogates before looking up glyph index.
14463 (w32font_text_extents): Encode as surrogates if falling back to
14464 functions that need UTF-16 wide chars.
14465
14466 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
14467 BMP as surrogates before looking up glyph index.
14468
14469 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
14470
14471 * image.c (svg_load_image): Check for failure in return value of
14472 rsvg_handle_get_pixbuf. Free rsvg handle when done.
14473
14474 2008-07-25 Jason Rumney <jasonr@gnu.org>
14475
14476 * w32font.c (Fx_select_font): Reverse sense of second arg.
14477
14478 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
14479
14480 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
14481 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
14482
14483 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
14484 (PURESIZE): Use it.
14485
14486 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
14487
14488 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
14489 * m/alpha.h (TEXT_END):
14490 * m/ibmrs6000.h (TEXT_END):
14491 * m/macppc.h (TEXT_END):
14492 * s/darwin.h (TEXT_END):
14493 * s/msdos.h (TEXT_END): Remove, unused.
14494 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
14495 * s/cygwin.h: Remove comment.
14496
14497 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
14498 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
14499 * m/intel386.h (DOT_GLOBAL_START):
14500 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
14501 (USG): Remove, file not used on USG platforms.
14502
14503 * Makefile.in (HAVE_X11): Remove empty #else.
14504
14505 2008-07-24 Andreas Schwab <schwab@suse.de>
14506
14507 * fileio.c (Finsert_file_contents): Properly adjust undo list
14508 after format conversion.
14509
14510 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
14511
14512 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
14513 (menu_nav_ended): Remove.
14514 (create_menus): Remove signal connect for menu_nav_ended.
14515 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
14516 create_menus.
14517 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
14518
14519 2008-07-23 Jason Rumney <jasonr@gnu.org>
14520
14521 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
14522 with opened font.
14523 (w32font_open): Set font type to gdi.
14524
14525 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
14526
14527 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
14528
14529 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
14530 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
14531 defines it.
14532 * unexec.c (ADDR_CORRECT): Define unconditionally.
14533
14534 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
14535
14536 * unexec.c: Remove code depending on !COFF and USG, the file is
14537 not used for such systems.
14538
14539 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
14540 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
14541 (LD_SWITCH_SYSTEM_1): Remove, update users.
14542
14543 * s/darwin.h (DATA_END):
14544 * m/intel386.h (DATA_END):
14545 * m/ibmrs6000.h (DATA_END):
14546 * m/alpha.h (DATA_END): Remove, unused.
14547
14548 * config.in: Regenerate.
14549 * s/ms-w32.h (subprocesses): Define unconditionally.
14550 * s/template.h (subprocesses): Update comment.
14551 * s/vms.h (subprocesses):
14552 * s/usg5-4.h (subprocesses):
14553 * s/hpux10-20.h (subprocesses):
14554 * s/gnu-linux.h (subprocesses):
14555 * s/cygwin.h (subprocesses):
14556 * s/bsd-common.h (subprocesses):
14557 * s/aix4-2.h (subprocesses):
14558 * s/darwin.h (subprocesses): Do not define, defined by default now.
14559
14560 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
14561 Remove all references.
14562 (temacs): Add GNUstep specific ld flags.
14563
14564 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
14565 similarly to what X does.
14566
14567 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
14568
14569 * nsfns.m (x-list-fonts): Remove.
14570 (syms_of_nsfns): Drop the x-list-fonts declaration.
14571 * nsterm.m: Get rid of remaining "//" comments.
14572
14573 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
14574
14575 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
14576
14577 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
14578 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
14579 (Fns_own_selection_internal, Fx_disown_selection_internal)
14580 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
14581
14582 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
14583 ... */' style of docstrings. Doc fixes.
14584
14585 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
14586
14587 * terminfo.c (UP, BC, PC): Undo previous change.
14588
14589 * nsfns.m: Rename ns prefixed functions/variables to the
14590 corresponding x versions. Update references.
14591
14592 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
14593
14594 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
14595
14596 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
14597
14598 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
14599 Remove forwarding functions.
14600 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
14601 non-static.
14602 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
14603 non-static.
14604 (ns_frame_parm_handlers): Use the new names.
14605 (syms_of_nsfns): Move to the end of file.
14606
14607 * nsterm.m (syms_of_nsterm): Move to the end of file.
14608
14609 * dispnew.c (init_display): Remove code for X10.
14610
14611 2008-07-22 Jason Rumney <jasonr@gnu.org>
14612
14613 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
14614 bare drive.
14615
14616 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
14617
14618 * nsterm.m (syms_of_nsterm): Remove debugging println.
14619
14620 2008-07-22 David Reitter <david.reitter@gmail.com>
14621
14622 * nsfns.m (do_applescript, F_do_applescript): NS version of the
14623 Carbon implementation of the same functionality: execute arbitrary
14624 AppleScript code.
14625
14626 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
14627
14628 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
14629 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
14630 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
14631 (Fx_display_mm_height, Fx_display_mm_width)
14632 (Fx_display_backing_store, Fx_display_visual_class)
14633 (Fx_display_save_under, Fx_open_connection)
14634 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
14635 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
14636 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
14637 (Fx_display_pixel_width, Fx_display_pixel_height)
14638 (Fx_display_usable_bounds, Fx_display_planes)
14639 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
14640 ... */' style of docstrings.
14641
14642 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
14643
14644 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
14645 on this platform.
14646 (mips):
14647 * m/iris4d.h (mips): Do not define.
14648 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
14649
14650 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
14651
14652 * image.c:
14653 * nsfns.m:
14654 * nsselect.m:
14655 * nsterm.h:
14656 * nsterm.m: Rename ns prefixed functions/variables to the
14657 corresponding x versions. Update references.
14658
14659 * m/ibms390x.h (NO_REMAP): Do not undefine.
14660
14661 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
14662
14663 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
14664
14665 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
14666 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
14667 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
14668 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
14669 (Fns_display_mm_height, Fns_display_mm_width)
14670 (Fns_display_backing_store, Fns_display_visual_class)
14671 (Fns_display_save_under, Fns_open_connection)
14672 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
14673 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
14674 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
14675 (Fns_display_pixel_width, Fns_display_pixel_height)
14676 (Fns_display_usable_bounds, Fx_display_planes)
14677 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
14678
14679 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
14680
14681 * print.c (print_object): Check print_depth before searching for
14682 circularities.
14683
14684 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
14685
14686 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
14687 only sprintf.
14688
14689 2008-07-21 Kenichi Handa <handa@m17n.org>
14690
14691 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
14692
14693 2008-07-20 Andreas Schwab <schwab@suse.de>
14694
14695 * syntax.c (find_start_pos, find_start_value)
14696 (find_start_value_byte, find_start_begv, find_defun_start)
14697 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
14698
14699 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
14700
14701 * s/sol2-3.h: Insert contents of s/sol2.h.
14702 (LD_SWITCH_SYSTEM): Remove redundant definition.
14703 * s/sol2.h: Remove, unused.
14704
14705 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14706
14707 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
14708
14709 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14710
14711 * Makefile.in (ns_appdir): Fix typo in find command.
14712
14713 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
14714
14715 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
14716
14717 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
14718 added not supported anymore.
14719
14720 * s/usg5-4-2.h (LIBS_SYSTEM):
14721 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
14722
14723 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
14724 * s/lynxos.h (GETPGRP_NO_ARG):
14725 * s/hpux10-20.h (NO_SIOCTL_H):
14726 * s/gnu.h (GETPGRP_NO_ARG):
14727 * s/gnu-linux.h (NO_SIOCTL_H):
14728 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
14729 * s/cygwin.h (GETPGRP_NO_ARG):
14730 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
14731 (C_DEBUG_SWITCH): Remove duplicate definition.
14732
14733 * m/ibms390.h: Remove boilerplate comments.
14734
14735 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
14736
14737 * process.c (HAVE_SERIAL): Consolidate ifdefs.
14738 (wait_reading_process_output): Remove code for SunOS, platform not
14739 supported anymore. Use SOLARIS2 instead of sun.
14740
14741 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14742
14743 * font.c (font_open_by_name): Under NS, default lface height to zero.
14744 (font_open_for_lface): Under NS, set size based on frame fontsize.
14745 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
14746 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
14747
14748 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14749
14750 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
14751 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
14752 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
14753 YES/NO.
14754 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
14755 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
14756 * Makefile.in (clean): Clear out build destination dir.
14757
14758 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14759
14760 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
14761 xterm, xselect.
14762 * lisp.h: Remove declaration of hash_remove.
14763 * nsgui.h: Remove redefinitions of hash_remove.
14764 * fns.c (hash_remove): Rename to hash_remove_from_table.
14765
14766 2008-07-19 Seiji Zenitani <zenitani@mac.com>
14767
14768 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
14769 strdup() the family UTF8String before modifying it.
14770
14771 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14772
14773 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
14774 NS_FACE_BACKGROUND with 0 instead of nil.
14775 * nsfont.m (nsfont_draw): Same.
14776
14777 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
14778
14779 * nsfns.m (ns_set_background_color): Fix crash.
14780
14781 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
14782
14783 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
14784
14785 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
14786
14787 * puresize.h (BASE_PURESIZE): Increase to 1240000.
14788
14789 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14790
14791 * gtkutil.c: Include <config.h> instead of "config.h".
14792
14793 * lisp.h (Foverlay_buffer): Add EXFUN.
14794
14795 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
14796 child process to complete child_setup. Undo 2005-09-21 change.
14797
14798 * s/darwin.h: Mention setsid after vfork.
14799
14800 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14801
14802 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
14803 Depend on macgui.h.
14804
14805 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
14806 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
14807
14808 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
14809 and f19.
14810 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
14811
14812 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
14813 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
14814 Remove enumerators.
14815
14816 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
14817 Check if FACE_FROM_ID returns NULL.
14818
14819 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
14820
14821 * w32inevt.c (change_frame_size): Remove extern declaration.
14822 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
14823 change_frame_size.
14824
14825 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
14826
14827 * getloadavg.c: Revert last change (2008-07-15).
14828
14829 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
14830
14831 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
14832 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
14833 from configure.
14834
14835 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
14836
14837 * s/sol2.h:
14838 * s/sol2-4.h: Reorganize conditionals.
14839
14840 * ecrt0.c: Remove code depending on m68000, not used anymore.
14841
14842 * fns.c (hash_remove): Make static.
14843 * lisp.h (hash_remove): Don't prototype.
14844
14845 * m/ibmrs6000.h:
14846 * m/ibms390x.h:
14847 * m/macppc.h: Remove boilerplate comments.
14848
14849 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
14850 Solaris, which does not need them.
14851
14852 * m/vax.h: Remove comments about unsupported systems.
14853
14854 * s/darwin.h: Reorganize ifdefs.
14855
14856 2008-07-17 Andreas Schwab <schwab@suse.de>
14857
14858 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
14859
14860 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
14861
14862 Use SDATA. Follow coding convention of placing operators at
14863 beginning of next line rather than end of previous line, and placing
14864 spaces around infix operators.
14865
14866 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
14867 in case it was defined already.
14868 USE @GNUSTEP_MAKEFILES@ rather than envvars.
14869 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
14870 ns_default.
14871 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
14872 Lisp_Objects.
14873 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
14874 (ns_defined_color, ns_color_to_lisp): Declare.
14875 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
14876 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
14877 it's accepted even with USE_LISP_UNION_TYPE.
14878 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
14879 (update_frame_tool_bar): Remove apparently obsolete tests for
14880 non-integerness of f->tool_bar_lines.
14881 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
14882 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
14883 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
14884 (nsfont_open): Don't confuse NULL for Qnil.
14885 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
14886 * menu.h (find_and_call_menu_selection):
14887 * menu.c (find_and_call_menu_selection): Use just int for vector size.
14888 (find_and_return_menu_selection): Always return something.
14889 * frame.h: Include dispextern.h for Display_Info.
14890 (display_x_get_resource): Declare.
14891
14892 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
14893
14894 * syntax.c: Remove stdio.h include accidentally introduced in
14895 Emacs.app commit.
14896 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
14897 NS_IMPL_COCOA.
14898 * keyboard.c (handle_async_input, input_available_signal): Remove
14899 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
14900
14901 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
14902
14903 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
14904 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
14905 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
14906 Use SDATA.
14907
14908 * keymap.c: Remove all NS-specific code.
14909 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
14910 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
14911 where_is_preferred_modifier, return a different value depending on how
14912 preferred is the binding.
14913 (where_is_internal): Adjust accordingly.
14914 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
14915 Adjust to new preferred_sequence_p.
14916 (syms_of_keymap): Declare `where-is-preferred-modifier'.
14917 * keyboard.c (parse_solitary_modifier): Not static any more.
14918 * keyboard.h (parse_solitary_modifier): Declare.
14919
14920 2008-07-16 Andreas Schwab <schwab@suse.de>
14921
14922 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
14923 of easymenu.
14924
14925 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
14926
14927 * xdisp.c (move_it_in_display_line): Account for word wrap, so
14928 that we don't move off the line.
14929
14930 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
14931
14932 * keyboard.c (Qsuper): Remove.
14933 (parse_menu_item): Don't call where_is_internal specially for NS.
14934
14935 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
14936
14937 * s/gnu-linux.h: Remove boilerplate comments.
14938
14939 * m/alpha.h (__ELF__): Consolidate conditions.
14940
14941 * m/m68k.h (linux): Use GNU_LINUX instead.
14942 Remove boilerplate comments.
14943
14944 * m/intel386.h: Undo refactoring from previous change.
14945 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
14946 too, remove dead code.
14947 (linux): Use GNU_LINUX instead.
14948
14949 2008-07-16 Jason Rumney <jasonr@gnu.org>
14950
14951 * w32gui.h: Repeat 26 June changes lost by last change.
14952
14953 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
14954
14955 * systty.h: Remove code for Aix on 386, unsupported platform.
14956
14957 * s/ms-w32.h: Remove boilerplate comments.
14958 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
14959
14960 * s/gnu-linux.h (TERM): Remove support.
14961 (HAVE_SYSVIPC): Remove, unused.
14962 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
14963 for this system.
14964
14965 * process.c: Remove support for IRIS, unused.
14966 Remove support for TERM, not relevant anymore.
14967
14968 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
14969 used with the definition.
14970
14971 * s/aix4-2.h (static): Do not undef.
14972
14973 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
14974 only used on Aix.
14975 (HAVE_SYSVIPC): Remove, unused.
14976
14977 * m/hp800.h (CANNOT_DUMP): Do not undef.
14978
14979 * m/alpha.h: Fix comment.
14980
14981 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
14982 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
14983 used by this configuration.
14984 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
14985 * unexec.c: Remove code depending on HPUX and
14986 USG_SHARED_LIBRARIES, not used with this file. Remove code
14987 depending on IRIS, unused. Remove if 0-ed code.
14988
14989 * s/template.h: Remove comments about static.
14990
14991 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
14992 Remove if 0-ed code.
14993 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
14994 were the same as the default.
14995 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
14996 Remove boilerplate comments.
14997 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
14998 (HAVE_SYSVIPC): Remove, unused.
14999 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
15000
15001 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
15002 Remove boilerplate comments.
15003 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
15004 Remove boilerplate comments.
15005 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
15006 Remove boilerplate comments.
15007 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
15008
15009 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
15010 USG systems which do not use DATA_SEG_BITS.
15011 Refactor code. Remove boilerplate comments.
15012
15013 * m/ibms390.h:
15014 * m/m68k.h:
15015 * s/bsd-common.h:
15016 * s/cygwin.h:
15017 * s/darwin.h:
15018 * s/freebsd.h:
15019 * s/gnu.h:
15020 * s/msdos.h: Remove boilerplate comments.
15021
15022 * m/iris4d.h: Remove boilerplate comments and code for systems that
15023 do not use this file.
15024 (IRIS_4D): Remove, unused.
15025
15026 * m/mips.h: Remove boilerplate comments and code for systems that
15027 do not use this file.
15028 (SIGN_EXTEND_CHAR):
15029 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
15030 * unexmips.c: Remove file, unused.
15031
15032 * editfns.c (Fuser_full_name): Replace the only use of
15033 USER_FULL_NAME with its value.
15034 * config.in: Regenerate.
15035
15036 2008-07-16 David Reitter <david.reitter@gmail.com>
15037
15038 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
15039 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
15040
15041 2008-07-16 Glenn Morris <rgm@gnu.org>
15042
15043 * emacs.c (system-type): Doc fix.
15044
15045 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
15046
15047 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
15048 If the cache doesn't work, let's fix it, rather than work around it.
15049
15050 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
15051
15052 * Makefile.in: Correct additions for nsfont.o in last commit.
15053 * nsfont.m: New file (forgot last commit).
15054
15055 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
15056
15057 * callproc.c (set_initial_environment): Initialize
15058 Vprocess_environment under CANNOT_DUMP (fixes crash when
15059 batch-compiling for bootstrap).
15060
15061 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
15062 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15063
15064 * frame.c (make_initial_frame): Call init_frame_faces(f) in
15065 CANNOT_DUMP case -- fix crash due to different init order.
15066
15067 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
15068
15069 Changes and additions for NeXTstep windowing system (Cocoa and
15070 GNUstep) support.
15071
15072 * Makefile.in:
15073 * config.in: Support defines and build commands for NS port.
15074 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
15075 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
15076 * dispextern.h: Include nsgui.h and add needed typedefs under NS
15077 windowing.
15078 (struct face): Add synth_ital field.
15079 * dispnew.c: Include nsterm.h when compiling under NS windowing.
15080 (init_display): Initialize Vinitial_window_system to "ns" when so
15081 compiled.
15082 * emacs.c: Include GSConfig.h when compiling under GNUstep.
15083 (display_arg): Use under NS.
15084 (main): Under NS, allocate autorelease pool and handle command line
15085 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
15086 (standard_args): Add NS-specific args.
15087 (shut_down_emacs): Shut down NS terminal if compiled under NS.
15088 * font.c (DEFAULT_ENCODING): New variable.
15089 (font_find_for_lface): Use it.
15090 (syms_of_font): Load syms_of_nsfont under NS.
15091 * font.h: Declare nsfont_driver when compiled under NS.
15092 * fontset.c: When compiling under NS, include nsterm.h.
15093 (fontset_from_font): Autoconstruct fontset under NS.
15094 * frame.c (various): Under NS, include nsterm.h, add Qns window system
15095 symbol, document and use it.
15096 (do_switch_frame): When for_deletion under Cocoa, add
15097 Fraise_frame(Qnil).
15098 (x_set_frame_parameters): Ensure font attribute changes are picked up.
15099 (x_get_arg): Allow "yes" and "no" as boolean values.
15100 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
15101 Qright under Cocoa.
15102 (focus-follows-mouse): Default to 0 under NS.
15103 * frame.h (enum output_method): Add output_ns.
15104 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
15105 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
15106 (FRAME_WINDOW_P): NS-specific definition.
15107 * fringe.c (max_used_fringe_bitmap): Make public.
15108 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
15109 (getloadavg): Use NeXT code under descendant OS's.
15110 * image.c (includes and header section, x_create_bitmap_from_data)
15111 (x_create_bitmap_from_file, free_bitmap_record, image_background)
15112 (image_background_transparent, x_clear_image_1)
15113 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
15114 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
15115 (x_to_xcolors, x_from_xcolors, x_disable_image)
15116 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
15117 other GUIs, including XPM support using code originally written for
15118 Carbon GUI.
15119 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
15120 using NS API.
15121 (image_ascent): Use font metrics macros instead of direct struct field
15122 access.
15123 * keyboard.c (includes): Add nsterm.h when compiling under NS.
15124 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
15125 Also, handle NS as GTK for menu bar purposes.
15126 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
15127 toolkit where they differ.
15128 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
15129 use cachelist, still needed under NS.
15130 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
15131 (struct widget_value): Define it here for menu.c.
15132 * keymap.c (includes): Include modifier internals.
15133 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
15134 NS.
15135 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
15136 support for preferring sequences using certain modifiers, specified by
15137 the FIRSTONLY argument.
15138 * lisp.h (hash_remove): Rename to avoid name clash when compiling
15139 under NS GNUstep implementation.
15140 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
15141 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
15142 * menu.c: Include nsterm.h under NS.
15143 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
15144 (free_menubar_widget_tree_value, update_submenu_strings)
15145 (find_and_call_menu_selection): Treat NS as X and NT.
15146 (find_and_return_menu_selection): New function, used for popup menus.
15147 * nsgui.h:
15148 * nsterm.h:
15149 * nsfns.m:
15150 * nsimage.m:
15151 * nsmenu.m:
15152 * nsselect.m:
15153 * nsterm.m: New files.
15154 * process.c (wait_reading_process_output): Under NS, call ns_select()
15155 instead of plain select().
15156 * syntax.c (char_quoted): Under NS, avoid a crash when called near
15157 beginning of buffer.
15158 * sysselect.h (init_process): Rename when compiling under Cocoa to
15159 avoid name conflict.
15160 * termhooks.h (display_info): Add ns_display_info to union.
15161 * terminal.c (Fterminal_live_p): Add ns to terminal types.
15162 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
15163 COCOA environment.
15164 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
15165 unexec() signature. (Note, this will dump, but the resulting file
15166 crashes; unexosx is used instead; keeping around for reference and
15167 possible aid in getting dump working under GNUstep.)
15168 * w32gui.h (button_type, widget_value): Remove definitions (now in
15169 keyboard.h).
15170 * window.c: Include nsterm.h when compiling under NS.
15171 * xdisp.c (includes): Include nsterm.h when compiling under NS.
15172 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
15173 other GUI windowing systems.
15174 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
15175 GTK.
15176 (x_consider_frame_title): Under NS, set icon type and frame
15177 modified-state indicator; use ns_set_name_as_filename() when using
15178 formatted title.
15179 (update_window_cursor): Make public when compiling under NS.
15180 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
15181 (hourglass_atimer, Vhourglass_delay
15182 * xfaces.c (header section, init_frame_faces, clear_font_table)
15183 (defined_color, unload_color, x_face_list_fonts)
15184 (prepare_face_for_display): Add NS support parallel to other GUIs.
15185 Emulate GCs like other non-X GUIs.
15186 (split_font_name): Don't lowercase font name under NS.
15187 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
15188 under NS.
15189 * s/darwin.h: Add support for compilation under NS.
15190
15191 2008-07-15 Jason Rumney <jasonr@gnu.org>
15192
15193 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
15194 (w32_show_hourglass): Rename from show_hourglass.
15195 (w32_hide_hourglass): Rename from hide_hourglass.
15196 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
15197 (Vhourglass_delay): Declare extern.
15198 (hourglass_started): Remove.
15199
15200 * xdisp.c (Vhourglass_delay): Remove static.
15201 (hourglass_started, start_hourglass, cancel_hourglass):
15202 Don't include these versions on WINDOWSNT.
15203
15204 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
15205
15206 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
15207 variables (formerly in xfns.c).
15208 (show_hourglass, hide_hourglass): New prototypes (same).
15209 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
15210 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
15211 in xfns.c).
15212 (syms_of_xdisp): Declare/initialize display-hourglass,
15213 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
15214 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
15215 formerly in xfns.c.
15216 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
15217 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
15218 (start_hourglass, cancel_hourglass): Remove.
15219 (show_hourglass, hide_hourglass): Remove prototypes and static
15220 modifiers.
15221 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
15222 hourglass_atimer, hourglass_shown_p declaration/initialization.
15223 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
15224 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
15225 (start_hourglass, cancel_hourglass): Remove.
15226 (show_hourglass, hide_hourglass): Remove prototypes and static
15227 modifiers.
15228 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
15229 hourglass_atimer, hourglass_shown_p declaration/initialization.
15230 * w32fns.c (display_hourglass_p, Vhourglass_delay)
15231 (DEFAULT_HOURGLASS_DELAY): Remove.
15232 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
15233 hourglass_shown_p declaration/initialization.
15234
15235 2008-07-14 Jason Rumney <jasonr@gnu.org>
15236
15237 * w32fns.c (w32_get_arg): Remove wrapper function.
15238 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
15239 directly.
15240 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
15241
15242 2008-07-14 Kenichi Handa <handa@m17n.org>
15243
15244 * xfont.c (xfont_open): Add workaround for X's bug.
15245
15246 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
15247
15248 * fontset.c: Include <stdio.h> unconditionally.
15249
15250 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
15251
15252 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
15253 for filtering.
15254
15255 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
15256
15257 * s/vms.h: Use __GNUC__ instead of _GNUC_.
15258
15259 * m/macppc.h:
15260 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
15261
15262 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
15263 (SPECIAL_EMACS_INT):
15264 * m/ia64.h (SPECIAL_EMACS_INT):
15265 * m/amdx86-64.h (SPECIAL_EMACS_INT):
15266 * s/gnu.h (NLIST_STRUCT):
15267 * s/aix4-2.h (X11R5_INHIBIT_I18N):
15268 * s/gnu-linux.h (LINUX):
15269 * s/msdos.h (HAVE_FACES):
15270 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
15271
15272 * systty.h:
15273 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
15274 anymore.
15275
15276 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
15277
15278 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
15279 always defined as int.
15280
15281 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
15282 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
15283 * s/gnu-linux.h (HAVE_WAIT_HEADER):
15284 * s/freebsd.h (HAVE_WAIT_HEADER):
15285 * s/bsd-common.h (HAVE_UNION_WAIT):
15286 * s/aix4-2.h (HAVE_WAIT_HEADER):
15287 * m/mips.h (HAVE_UNION_WAIT):
15288 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
15289 (COFF, static): Do not define, they are undefined later in the file.
15290
15291 * process.c (update_status): Don't use a union.
15292 (status_convert):
15293 (sigchld_handler): Use int instead of WAITTYPE.
15294
15295 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
15296
15297 * indent.c (Fvertical_motion): Restore hscroll before moving to
15298 goal column.
15299
15300 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
15301
15302 * lisp.h: Remove left over code.
15303
15304 2008-07-11 Andreas Schwab <schwab@suse.de>
15305
15306 * lisp.h: Fix logic in last change.
15307
15308 * menu.h: New file.
15309 * menu.c: Include it.
15310 * xmenu.c: Likewise.
15311 * Makefile.in: Update dependencies.
15312
15313 2008-07-11 Kenichi Handa <handa@m17n.org>
15314
15315 * fontset.c (fontset_from_font): Cancel the previous change.
15316
15317 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
15318
15319 * lisp.h:
15320 * w32heap.c:
15321 * emacs.c:
15322 * alloc.c: Replace all references of NO_UNION_TYPE with
15323 USE_LISP_UNION_TYPE.
15324
15325 * m/xtensa.h (NO_UNION_TYPE):
15326 * m/vax.h (NO_UNION_TYPE):
15327 * m/template.h (NO_UNION_TYPE):
15328 * m/sparc.h (NO_UNION_TYPE):
15329 * m/mips.h (NO_UNION_TYPE):
15330 * m/macppc.h (NO_UNION_TYPE):
15331 * m/m68k.h (NO_UNION_TYPE):
15332 * m/iris4d.h (NO_UNION_TYPE):
15333 * m/intel386.h (NO_UNION_TYPE):
15334 * m/ibms390x.h (NO_UNION_TYPE):
15335 * m/ibms390.h (NO_UNION_TYPE):
15336 * m/ibmrs6000.h (NO_UNION_TYPE):
15337 * m/ia64.h (NO_UNION_TYPE):
15338 * m/hp800.h (NO_UNION_TYPE):
15339 * m/arm.h (NO_UNION_TYPE):
15340 * m/amdx86-64.h (NO_UNION_TYPE):
15341 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
15342 defining it the same.
15343
15344 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
15345
15346 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
15347
15348 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
15349
15350 * fileio.c:
15351 * sysdep.c:
15352 * systty.h:
15353 * m/ibmrs6000.h:
15354 * m/iris4d.h:
15355 * s/aix4-2.h:
15356 * s/freebsd.h:
15357 * s/gnu-linux.h:
15358 * s/hpux10-20.h:
15359 * s/hpux11.h:
15360 * s/netbsd.h:
15361 * s/sol2-3.h:
15362 * s/sol2-4.h:
15363 * s/sol2.h:
15364 * s/usg5-4.h:
15365 * s/vms.h: Remove references to unused variables.
15366
15367 2008-07-10 Andreas Schwab <schwab@suse.de>
15368
15369 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
15370 pattern before matching the generic family.
15371
15372 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
15373
15374 * unexec.c:
15375 * s/vms.h:
15376 * s/usg5-4-2.h:
15377 * s/sol2-5.h:
15378 * s/freebsd.h:
15379 * s/darwin.h: Remove dead code.
15380
15381 * m/template.h:
15382 * m/sparc.h:
15383 * m/mips.h:
15384 * m/m68k.h:
15385 * m/iris4d.h:
15386 * m/intel386.h:
15387 * m/ibms390x.h:
15388 * m/ibms390.h:
15389 * m/ia64.h:
15390 * m/hp800.h:
15391 * m/arm.h:
15392 * m/amdx86-64.h: Remove dead code and references to unused
15393 and compiler defined symbols.
15394
15395 * unexmips.c:
15396 * unexelf.c: Remove references to desupported systems.
15397
15398 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
15399
15400 * m/powermac.h: Remove boilerplate comments.
15401 (NO_REMAP): Remove unused definition.
15402
15403 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
15404 define them.
15405
15406 2008-07-10 Kenichi Handa <handa@m17n.org>
15407
15408 * xfont.c (xfont_open): Log the reason of failure.
15409
15410 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
15411
15412 * fontset.c (fontset_get_font_group):
15413 * font.c (font_check_otf): Specify argument types.
15414
15415 2008-07-09 Kenichi Handa <handa@m17n.org>
15416
15417 * coding.c (detect_coding_utf_8): Set detect_info->found only when
15418 non-ASCII char is found.
15419
15420 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
15421 (reorder_font_vector): Change the arg preferred_family to font.
15422 Prefer the spec matching with font.
15423 (fontset_get_font_group): New function.
15424 (fontset_find_font): Change the format of an element of a realized
15425 fontset. Use fontset_get_font_group.
15426 (fontset_font): Try the current fontset, the default fontset, the
15427 fallbacks of the current fontset, and the fallbacks of the default
15428 fontset in this order.
15429 (face_for_char): Delete the shortcut to use the current font.
15430 (fontset_from_font): Don't set fonts for Latin in the fontset.
15431
15432 * font.h (font_make_object, font_match_p): Adjust prototypes.
15433
15434 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
15435
15436 * font.c (font_make_object): New arg entity and pixelsize.
15437 (font_check_otf_features, font_check_otf): New functions.
15438 (font_match_p): Check :lang, :script, and :otf properties.
15439
15440 * xfont.c (xfont_open): Adjust it for the change of
15441 font_make_object.
15442 (xfont_text_extents): Fix initial setting of metrics.
15443
15444 * ftfont.c (struct ftfont_info): New member index, delete member
15445 fc_charset_idx. Make the member order compatible with struct
15446 xftfont_info.
15447 (fc_charset_table): Change charset names to registry names.
15448 (ftfont_pattern_entity): Delete the args registry and
15449 fc_charset_idx. Change the value of :font-entity property
15450 to (FONTNAME . INDEX). Always set :registry property to
15451 `iso10646-1'.
15452 (struct ftfont_cache_data): New struct.
15453 (ftfont_lookup_cache): New arg for_face.
15454 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
15455 (ftfont_driver): Set the member otf_capability.
15456 (ftfont_get_charset): Adjust it for the change of
15457 fc_charset_table.
15458 (OTF_TAG_SYM): New macro.
15459 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
15460 for the change of fc_charset_table.
15461 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
15462 ftfont_pattern_entity. Add FC_INDEX to objset.
15463 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
15464 and ftfont_pattern_entity.
15465 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
15466 font_make_object, struct ftfont_info.
15467 (ftfont_has_char): Use ftfont_get_fc_charset.
15468 (ftfont_otf_features, ftfont_otf_capability): New functions.
15469 (ftfont_shape): Use ftfont_get_otf.
15470 (ftfont_text_extents): Fix initial setting of metrics.
15471
15472 * xftfont.c (struct xftfont_info): New member ft_size. Make the
15473 member order compatible with struct ftfont_info.
15474 (xftfont_open): Add FC_CHARSET to the pattern. Set
15475 xftfont_info->ft_size. Don't unlock the face. Check BDF
15476 properties if appropriate.
15477 (xftfont_close): Unlock the face.
15478 (xftfont_anchor_point, xftfont_shape): Deleted.
15479 (syms_of_xftfont): Don't set members anchor_point and shape of
15480 xftfont_driver.
15481
15482 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
15483 font_make_object.
15484
15485 * w32font.c (w32font_open): Adjust it for the change of
15486 font_make_object.
15487 (w32font_open_internal): Don't set properties of font_object here.
15488
15489 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
15490
15491 * macfns.c (x_create_tip_frame):
15492 * w32fns.c (x_create_tip_frame):
15493 * xfns.c (x_create_tip_frame): Pass parameter argument to
15494 face-set-after-frame-default.
15495
15496 * xfaces.c (Finternal_merge_in_global_face): Save merged
15497 attributes for the default face back into the face vector.
15498
15499 2008-07-08 Andreas Schwab <schwab@suse.de>
15500
15501 * fontset.h: Declare fontset_from_font. Don't declare
15502 new_fontset_from_font and fontset_from_font_name.
15503 * xterm.c: Include "fontset.h".
15504 * Makefile.in (xterm.o): Update dependencies.
15505
15506 2008-07-08 Glenn Morris <rgm@gnu.org>
15507
15508 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
15509 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
15510
15511 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
15512
15513 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
15514 (x_set_frame_parameters): Don't bind it.
15515
15516 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
15517
15518 * w32fns.c (map_w32_filename): Declare extern.
15519
15520 2008-07-07 Jason Rumney <jasonr@gnu.org>
15521
15522 * w32term.c (WS_EX_LAYERED): Define if not already.
15523
15524 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
15525
15526 * xfaces.c (set_font_frame_param): Don't try to set the font
15527 parameter if it is still unspecified in the lface.
15528
15529 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
15530
15531 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
15532 face if it didn't already exist.
15533
15534 * xdisp.c (try_window_id): Give up if word-wrapping is on.
15535
15536 2008-07-05 Andreas Schwab <schwab@suse.de>
15537
15538 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
15539
15540 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
15541
15542 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
15543 word-wrapping.
15544 (IT_DISPLAYING_WHITESPACE): New macro.
15545 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
15546 when word-wrapping. Simplify word-wrapping logic. Use correct
15547 pixel positions when saving copies of the iterator.
15548 (display_line): Use proper wrap point if the last character on a
15549 line was preceded by whitespace.
15550
15551 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
15552
15553 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
15554
15555 2008-07-04 Kenichi Handa <handa@m17n.org>
15556
15557 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
15558
15559 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
15560
15561 2008-07-02 Jason Rumney <jasonr@gnu.org>
15562
15563 * xfns.c (syms_of_xfns): Only define x-select-font when both
15564 HAVE_FREETYPE and USE_GTK.
15565
15566 * xdisp.c (next_element_from_display_vector): Move assignment out
15567 of if statement.
15568
15569 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
15570
15571 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
15572
15573 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
15574 (syms_of_fileio): Initialize and export them.
15575 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
15576
15577 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
15578 (Fsystem_move_file_to_trash): New function.
15579 (syms_of_w32fns): Export it to lisp.
15580
15581 2008-07-01 Jason Rumney <jasonr@gnu.org>
15582
15583 * w32font.c (w32font_text_extents): Don't count overhang as part
15584 of width.
15585
15586 2008-06-30 Miles Bader <miles@gnu.org>
15587
15588 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
15589 Add `avoid_cursor_p' field.
15590
15591 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
15592 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
15593 (append_glyph, append_composite_glyph, produce_image_glyph)
15594 (append_stretch_glyph): Initialize avoid_cursor_p.
15595 (get_it_property): Rename from `get_line_height_property'.
15596 (x_produce_glyphs): Use get_it_property.
15597 (handle_line_prefix, push_display_prop): New functions.
15598 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
15599 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
15600 New variables.
15601 (syms_of_xdisp): Initialize them.
15602
15603 2008-06-30 Kenichi Handa <handa@m17n.org>
15604
15605 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
15606 XftDefaultSubstitute (they are called in XftFontMatch).
15607 (xftfont_open): Fix args to ftfont_font_format.
15608
15609 * ftfont.c (fc_charset_table): New member lang.
15610 (ftfont_resolve_generic_family): New arg pattern.
15611 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
15612 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
15613 (ftfont_open): Fix args to ftfont_font_format.
15614 (ftfont_font_format): New arg filename.
15615
15616 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
15617
15618 * xfaces.c (Finternal_merge_in_global_face): If default face was
15619 modified, realize it again. Update the font face attribute.
15620
15621 2008-06-29 Jason Rumney <jasonr@gnu.org>
15622
15623 * w32term.c (x_set_frame_alpha): Fix logic.
15624
15625 2008-06-29 Kenichi Handa <handa@m17n.org>
15626
15627 * fontset.c (Finternal_char_font): Return font-object instead of
15628 font-name.
15629
15630 * composite.c (get_composition_id): Fix the width calculation for TAB.
15631
15632 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
15633
15634 * indent.c (Fvertical_motion): Properly handle float column arg.
15635
15636 2008-06-28 Jason Rumney <jasonr@gnu.org>
15637
15638 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
15639 (pfnSetLayeredWindowAttributes): New function pointer.
15640 (w32_initialize): Initialize it when supported.
15641 (x_set_frame_alpha): New function.
15642
15643 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
15644 (w32_frame_parm_handlers): Set alpha handler.
15645
15646 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
15647
15648 2008-06-27 Jason Rumney <jasonr@gnu.org>
15649
15650 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
15651 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
15652 (w32_to_x_charset, x_to_w32_charset)
15653 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
15654 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
15655 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
15656 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
15657 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
15658 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
15659 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
15660 (Qw32_charset_unicode): Remove.
15661 (syms_of_w32fns): Update for above changes.
15662
15663 * w32font.c (w32_to_x_charset, x_to_w32_charset)
15664 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
15665 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
15666 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
15667 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
15668 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
15669 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
15670 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
15671 (syms_of_w32font): Update for above changes.
15672
15673 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
15674
15675 * s/usg5-4.h: Fix previous change: keep the correct branch of a
15676 removed #if.
15677 (USG_SHARED_LIBRARIES): Remove duplicate definition.
15678
15679 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
15680 Eli Zaretskii <eliz@gnu.org>
15681
15682 * makefile.w32-in (LOCAL_FLAGS):
15683 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
15684
15685 * sysdep.c (_spawnlp, _getpid):
15686 Declare with explicit _cdecl instead of _CRTAPI1.
15687
15688 * editfns.c (Fget_internal_run_time):
15689 Check for WINDOWSNT with #ifdef, not #if.
15690
15691 2008-06-26 Jason Rumney <jasonr@gnu.org>
15692
15693 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
15694
15695 * w32term.c (x_draw_glyph_string_foreground)
15696 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
15697 Use FONT_HANDLE macro.
15698 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
15699
15700 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
15701 (uniscribe_encode_char): Use FONT_HANDLE macro.
15702
15703 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
15704 (w32font_text_extents): Use precast w32_font.
15705 (w32font_close): Free cached metrics.
15706 (w32font_open_internal): Allocate space for name on stack.
15707
15708 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
15709
15710 * xdisp.c (extend_face_to_end_of_line): Fix last change.
15711
15712 2008-06-26 Jason Rumney <jasonr@gnu.org>
15713
15714 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
15715 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
15716
15717 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
15718
15719 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
15720
15721 2008-06-26 Jason Rumney <jasonr@gnu.org>
15722
15723 * w32bdf.c, w32bdf.h: Remove obsolete files.
15724
15725 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
15726
15727 * w32gui.h: Don't include w32bdf.h.
15728 (XCharStruct, enum w32_char_font_type, W32FontStruct):
15729 Remove obsolete font support.
15730
15731 * w32font.h (struct w32font_info): Remove compat_w32_font.
15732 Add hfont member.
15733 (FONT_COMPAT): Remove obsolete macro.
15734
15735 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
15736 (w32font_encode_char, w32font_text_extents): Use new hfont member.
15737 (w32font_open_internal): Remove compat code. Set new hfont member.
15738 (Fx_select_font): Use new hfont member.
15739
15740 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
15741 (uniscribe_encode_char): Use new hfont member.
15742
15743 * w32term.c (x_draw_glyph_string_foreground)
15744 (x_draw_composite_glyph_string_foreground): Use new hfont member.
15745 (x_draw_glyph_string): Use metrics in w32font_info.
15746
15747 2008-06-26 Kenichi Handa <handa@m17n.org>
15748
15749 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
15750
15751 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
15752
15753 * unexnext.c:
15754 * m/ews4800.h:
15755 * m/hp9000s300.h:
15756 * m/ibm370aix.h:
15757 * m/mips-siemens.h:
15758 * m/ncr386.h:
15759 * m/next.h:
15760 * m/pmax.h:
15761 * m/powerpcle.h:
15762 * m/tandem-s2.h:
15763 * s/386bsd.h:
15764 * s/bsd386.h:
15765 * s/bsd4-1.h:
15766 * s/bsd4-2.h:
15767 * s/bsdos2-1.h:
15768 * s/bsdos2.h:
15769 * s/bsdos3.h:
15770 * s/bsdos4.h:
15771 * s/nextstep.h:
15772 * s/ultrix4-3.h:
15773 * s/usg5-0.h:
15774 * s/usg5-2-2.h:
15775 * s/usg5-2.h:
15776 * s/usg5-4-3.h:
15777 * s/ux4800.h:
15778 * s/uxpds.h:
15779 * s/uxpv.h: Remove support for obsolete systems.
15780 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
15781 Remove, insert contents in s/hpux10-20.h.
15782 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
15783 Remove, insert contents in s/aix4-2.h.
15784 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
15785 * s/bsd4-3.h: Rename to ...
15786 * s/bsd-common.h: ... this.
15787 * data.c:
15788 * doc.c:
15789 * ecrt0.c:
15790 * emacs.c:
15791 * fileio.c:
15792 * floatfns.c:
15793 * keyboard.c:
15794 * mem-limits.h:
15795 * print.c:
15796 * process.c:
15797 * sysdep.c:
15798 * syssignal.h:
15799 * systty.h:
15800 * syswait.h:
15801 * term.c:
15802 * unexec.c:
15803 * unexelf.c:
15804 * unexhp9k800.c:
15805 * m/hp800.h:
15806 * m/ibmrs6000.h:
15807 * m/mips.h:
15808 * m/vax.h:
15809 * s/darwin.h:
15810 * s/freebsd.h:
15811 * s/gnu.h:
15812 * s/ms-w32.h:
15813 * s/msdos.h:
15814 * s/netbsd.h:
15815 * s/template.h: Remove references to obsolete variables.
15816
15817 * Makefile.in: Add dependencies for all unexec files.
15818 (admindir): Remove unused variable.
15819 (UNEXEC_SRC): Remove references.
15820
15821 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
15822
15823 * xfns.c (x_default_font_parameter): If Xft is available, first
15824 try Monospace-12 for the default font.
15825
15826 2008-06-25 Jason Rumney <jasonr@gnu.org>
15827
15828 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
15829
15830 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
15831
15832 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
15833
15834 * buffer.c (syms_of_buffer): Remove default-word-wrap.
15835
15836 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
15837
15838 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
15839 <scroll-conservatively>: Fix typo in docstring.
15840
15841 * xselect.c (Fx_send_client_event): Doc fix.
15842
15843 2008-06-25 Kenichi Handa <handa@m17n.org>
15844
15845 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
15846
15847 * font.c (font_parse_fcname): Remove unused variables.
15848 (font_sort_entites): Delete the arg SPEC. Caller changed.
15849 Fix for the case of ! best_only.
15850 (font_delete_unmatched): Check DPI and AVGWIDTH too.
15851
15852 * lisp.h (Fstring_to_unibyte): EXFUN it.
15853
15854 * character.h (str_to_unibyte): Extern it.
15855
15856 * character.c (str_to_unibyte): New function.
15857
15858 * fns.c (Fstring_to_unibyte): New function.
15859 (syms_of_fns): Defsubr it.
15860
15861 2008-06-24 Kenichi Handa <handa@m17n.org>
15862
15863 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
15864 DPI too.
15865 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
15866
15867 2008-06-24 Andreas Schwab <schwab@suse.de>
15868
15869 * Makefile.in (${lispsource}loaddefs.el): Rename from
15870 ../lisp/loaddefs.el.
15871 (bootstrap-clean): Do what distclean does but don't remove
15872 Makefile.
15873 (distclean): Depend on bootstrap-clean and remove Makefile.
15874
15875 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
15876
15877 * buffer.h (struct buffer): New member word_wrap.
15878
15879 * buffer.c (syms_of_buffer): New variables default-word-wrap and
15880 word-wrap.
15881 (init_buffer_once): Initialize them.
15882
15883 * dispextern.h (struct it): Replace bool truncate_lines_p with a
15884 line_wrap enum possessing three possible values.
15885
15886 * termopts.h: Replace truncate_partial_width_windows with
15887 Vtruncate_partial_width_windows.
15888
15889 * dispnew.c (direct_output_for_insert): Avoid direct output when
15890 inserting a space with word wrap on.
15891
15892 * indent.c (compute_motion): Obey integer values of
15893 truncate-partial-width-windows.
15894
15895 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
15896 replacing truncate_partial_width_windows.
15897 (init_iterator): If Vtruncate_partial_width_windows is an integer,
15898 truncate only if the window width is below that integer.
15899 (start_display, resize_mini_window, produce_stretch_glyph)
15900 (display_string, move_it_in_display_line_to): Use line_wrap.
15901 (back_to_previous_visible_line_start, reseat_1): Reset
15902 string_from_display_prop_p.
15903 (display_line): Extend default face to end of line when wrapping.
15904
15905 2008-06-24 Kim F. Storm <storm@cua.dk>
15906
15907 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
15908 to wrap continued lines at word boundaries.
15909
15910 2008-06-24 Jason Rumney <jasonr@gnu.org>
15911
15912 * font.c (Ffont_face_attributes): Multiply pixel size before point
15913 conversion to avoid multiplying rounding error.
15914
15915 2008-06-23 Jason Rumney <jasonr@gnu.org>
15916
15917 * w32term.c (x_draw_glyph_string_background)
15918 (x_draw_glyph_string): Remove old bdf font code.
15919
15920 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
15921
15922 2008-06-22 Kenichi Handa <handa@m17n.org>
15923
15924 * font.c (font_find_for_lface): Try the adstyle specified in
15925 the property of LFACE_FONT of LFACE (if any).
15926
15927 2008-06-21 Seiji Zenitani <zenitani@mac.com>
15928 Ryo Yoshitake <ryo@shiftmode.net>
15929
15930 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
15931
15932 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
15933
15934 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
15935 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
15936 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
15937 (witness-emacs): Remove.
15938 (lisp, shortlisp): Move loaddefs.el earlier.
15939 (mostlyclean): Forget about witness-emacs.
15940
15941 2008-06-22 Glenn Morris <rgm@gnu.org>
15942
15943 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
15944 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
15945
15946 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
15947
15948 * Makefile.in (PRECOMP): Remove.
15949 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
15950 (witness-emacs): Run `compile-first'.
15951 (.el.elc): Use the new compile-onefile target.
15952
15953 2008-06-21 Kenichi Handa <handa@m17n.org>
15954
15955 * xftfont.c (xftfont_open): Handle QCembolden only when
15956 FC_EMBOLDEN is defined.
15957
15958 2008-06-21 Andreas Schwab <schwab@suse.de>
15959
15960 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
15961 (.el.elc): Likewise.
15962
15963 2008-06-21 Miles Bader <miles@gnu.org>
15964
15965 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
15966 build dir, not the lisp source dir.
15967
15968 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
15969
15970 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
15971 (bootstrapclean): Remove.
15972 (.el.elc): New rule.
15973 (PRECOMP): New var.
15974 (../lisp/subdirs.el): Remove.
15975 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
15976 (witness-emacs): New target.
15977 (mostlyclean): Remove witness-emacs as well.
15978 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
15979 Add witness-emacs dependency.
15980
15981 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
15982
15983 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
15984 defined by the font.
15985
15986 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
15987
15988 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
15989 (bootstrap-clean): New target that keeps TAGS around.
15990 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
15991 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
15992
15993 2008-06-20 Jason Rumney <jasonr@gnu.org>
15994
15995 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
15996 Remove obsolete font code.
15997
15998 * w32font.c (font_matches_spec): Use csb bitfield from font signature
15999 to determine language support.
16000
16001 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
16002
16003 * sysdep.c (cfsetspeed): New fun extracted from the code.
16004 (cfmakeraw): Move before first use.
16005
16006 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
16007
16008 * sysdep.c (cfmakeraw): Provide fallback implementation.
16009 (serial_configure): Provide fallback implementation of cfsetspeed.
16010
16011 2008-06-20 Kenichi Handa <handa@m17n.org>
16012
16013 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
16014 the pattern.
16015
16016 * fontset.c (fontset_from_font): Copy font_spec before changing
16017 the elements.
16018
16019 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
16020
16021 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
16022
16023 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
16024 for explicit `font' parameters.
16025
16026 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
16027
16028 2008-06-19 Kenichi Handa <handa@m17n.org>
16029
16030 * frame.c: Include <ctype.h>.
16031 (x_set_font_backend): Allow spacing characters in the X resource
16032 for FontBackend.
16033
16034 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
16035
16036 * w32fns.c, xfns.c (Qfont_param): New var.
16037 (syms_of_w32fns): Initialize it.
16038 (x_default_font_parameter): Record explicit `font' into
16039 `font-parameter'.
16040
16041 2008-06-18 Kenichi Handa <handa@m17n.org>
16042
16043 * font.c (font_parse_xlfd): Fix previous change.
16044 (font_parse_fcname): Don't use :fc-unknown-spec.
16045 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
16046 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
16047 (font_add_log): Prepend the driver name to the resulting fonts.
16048
16049 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
16050 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
16051 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
16052
16053 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
16054 (QCembolden): New variables.
16055 (syms_of_xftfont): DEFSYM them.
16056 (xftfont_open): Call XftFontMatch. Don't trust the result of
16057 XftTextExtents8 if the pixel_size is less than 5.
16058
16059 2008-06-18 Andreas Schwab <schwab@suse.de>
16060
16061 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
16062 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
16063
16064 2008-06-18 Jason Rumney <jasonr@gnu.org>
16065
16066 * w32font.c (w32font_list, w32font_match): Add logging.
16067
16068 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
16069
16070 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
16071
16072 * font.c (font_parse_fcname): Store divider characters for
16073 unknown-spec list. For known key symbols, intern using correct
16074 symbol name.
16075
16076 2008-06-17 Kenichi Handa <handa@m17n.org>
16077
16078 * xfaces.c (realize_default_face): If the frame is not on window
16079 system, set the fontset of face to nil.
16080
16081 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
16082
16083 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
16084
16085 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
16086
16087 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
16088 (build_font_name_from_vector): Delete externs.
16089
16090 * xfaces.c (struct font_name): Don't declare.
16091
16092 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
16093
16094 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
16095
16096 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
16097
16098 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
16099
16100 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
16101
16102 * font.c (Ffont_spec): Fix usage in docstring.
16103 (Ffont_face_attributes): Doc fix.
16104
16105 2008-06-16 Andreas Schwab <schwab@suse.de>
16106
16107 * font.c (Ffont_face_attributes): Fix definition.
16108
16109 2008-06-16 Jason Rumney <jasonr@gnu.org>
16110
16111 * font.h (font_style_symbolic_from_value): Remove.
16112
16113 * font.c (font_style_symbolic_from_value): Remove.
16114 (font_style_symbolic): Revert to pre 2008-06-13 version.
16115
16116 * w32font.c (w32_to_fc_weight): New function.
16117 (w32font_full_name, logfont_to_fcname): Use it.
16118
16119 2008-06-16 Kenichi Handa <handa@m17n.org>
16120
16121 * font.c (font_check_object): Delete it.
16122 (font_clear_cache): Check if a font-object is alive.
16123 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
16124 font-object to nil.
16125 (font_close_object): Don't check FONT_CLOSE_OBJECT.
16126 (font_at): Don't call font_check_object.
16127 (Ffont_get): Return a symbol for :weight, :slant, and :width.
16128
16129 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
16130
16131 * puresize.h (BASE_PURESIZE): Increase to 1230000.
16132
16133 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
16134
16135 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
16136
16137 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
16138
16139 * font.c (font_parse_fcname): Only one decimal point.
16140 (font_unparse_fcname): Handle data in family and foundry indices
16141 as symbols, not strings.
16142 (font_unparse_gtkname, Ffont_face_attributes): New functions.
16143
16144 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
16145
16146 * font.h (font_unparse_gtkname): Add prototype.
16147
16148 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
16149
16150 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
16151
16152 2008-06-15 Andreas Schwab <schwab@suse.de>
16153
16154 * font.c (font_update_drivers): Fix crash when no drivers match.
16155
16156 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
16157
16158 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
16159 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
16160
16161 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
16162
16163 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
16164
16165 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
16166
16167 * process.c (Fserial_process_configure, Fprocess_send_eof):
16168 Use EQ to compare Lisp_Objects.
16169
16170 2008-06-13 Jason Rumney <jasonr@gnu.org>
16171
16172 * w32fns.c (Fw32_select_font): Remove old font API function.
16173
16174 * w32font.c (logfont_to_fcname): New function.
16175 (Fx_select_font): New font dialog function compatible with
16176 GTK/fontconfig version.
16177
16178 * font.c (font_style_symbolic_from_value): New function.
16179 (font_style_symbolic): Use it.
16180
16181 * font.h (font_style_symbolic_from_value): Declare new function.
16182
16183 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
16184
16185 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
16186 <font-width-table>: Fix typos in docstrings.
16187
16188 2008-06-13 Daniel Engeler <engeler@gmail.com>
16189
16190 These changes add serial port access.
16191 * process.c: Add HAVE_SERIAL.
16192 (Fdelete_process, Fprocess_status, Fset_process_buffer)
16193 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
16194 (list_processes_1, select_wrapper, Fstop_process)
16195 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
16196 (status_notify): Modify to handle serial processes.
16197 [HAVE_SERIAL] (Fserial_process_configure)
16198 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
16199 New functions.
16200 * process.h (struct Lisp_Process): Add `type'.
16201 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
16202 New functions.
16203 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
16204 serial ports.
16205 (serial_open, serial_configure): New functions.
16206 * w32.h: Add FILE_SERIAL.
16207 (struct _child_process): Add ovl_read, ovl_write.
16208
16209 2008-06-13 Kenichi Handa <handa@m17n.org>
16210
16211 * dispextern.h (enum lface_attribute_index): New member
16212 LFACE_FOUNDRY_INDEX.
16213
16214 * font.c (font_score): Delete arg alternate_families. Check only
16215 weight, slant, width, and size. Ignore the difference of alias
16216 style symbols.
16217 (font_sort_entites): Adjust for the above change. Reflect the
16218 order of font-driver to scores.
16219 (font_list_entities): Don't check alternate_familes here.
16220 (font_clear_prop): Handle foundry.
16221 (font_update_lface): Don't parse "foundry-family" form here.
16222 Handle FONT_FOUNDRY_INDEX.
16223 (font_find_for_lface): Likewise. Handle alternate families here.
16224 If registry is nil, try iso8859-1 and ascii-0.
16225 (font_open_for_lface): Pay attention to size in ENTITY.
16226 (font_open_by_name): Simplify by calling font_load_for_lface.
16227 (free_font_driver_list): Delete it.
16228 (font_update_drivers): Preserve the order of backends.
16229 (syms_of_font): Setting of sort_shift_bits adjusted for the change
16230 of font_score and font_sort_entites.
16231 (font_update_sort_order): Likewise.
16232
16233 * xfaces.c (LFACE_FOUNDRY): New macro.
16234 (check_lface_attrs): Check foundry.
16235 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
16236 (merge_face_vectors): Check foundry.
16237 (merge_face_ref): Likewise.
16238 (Finternal_set_lisp_face_attribute): Likewise.
16239 (x_update_menu_appearance): Likewise.
16240 (Finternal_get_lisp_face_attribute): Likewise.
16241 (lface_hash): Likewise.
16242 (lface_same_font_attributes_p): Likewise.
16243 (x_supports_face_attributes_p): Likewise.
16244 (tty_supports_face_attributes_p): Likewise.
16245 (Finternal_set_alternative_font_family_alist): Intern strings.
16246 (Finternal_set_alternative_font_registry_alist): Downcase strings.
16247 (realize_default_face): Set LFACE_FOUNDRY (lface).
16248
16249 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
16250 font-driver at first.
16251
16252 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
16253
16254 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
16255
16256 * lread.c (Fload): Use xfree, not free on saved_doc_string.
16257
16258 2008-06-12 Jim Meyering <meyering@redhat.com>
16259
16260 Make unexec_free handle NULL the same way free does.
16261 * unexmacosx.c (unexec_free): Ignore a NULL argument.
16262
16263 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
16264
16265 * character.h (CHAR_TO_BYTE_SAFE): New macro.
16266 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
16267 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
16268 (WEAK_ALIAS): Simplify.
16269 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
16270 when searching a unibyte buffer.
16271
16272 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
16273
16274 * xfns.c (Fx_select_font): Rename from x-font-dialog.
16275
16276 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
16277
16278 * w32font.c: Include ctype.h.
16279
16280 2008-06-11 Jason Rumney <jasonr@gnu.org>
16281
16282 * w32font.c (w32font_encode_char): Detect missing glyphs that are
16283 misreported as space.
16284 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
16285 as aliases for registry iso10646-1.
16286
16287 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
16288
16289 * buffer.c (clone_per_buffer_values): Skip `name'.
16290
16291 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
16292
16293 * font.c (font_parse_fcname): Fix last change; accept decimal
16294 points in font size.
16295
16296 2008-06-10 Jason Rumney <jasonr@gnu.org>
16297
16298 * w32uniscribe.c (add_opentype_font_name_to_list):
16299 Skip non unicode fonts.
16300
16301 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
16302
16303 * xfns.c (Fx_font_dialog): New function.
16304
16305 * gtkutil.c (xg_dialog_response_cb): Rename from
16306 xg_file_response_callback.
16307 (pop_down_dialog): Rename from pop_down_file_dialog.
16308 (xg_get_file_name): Callers changed.
16309 (xg_get_font_name): New function.
16310
16311 * gtkutil.h (xg_get_font_name): Insert prototype.
16312
16313 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
16314
16315 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
16316 x_underline_minimum_display_offset.
16317 (syms_of_xdisp): Declare it here rather than in xterm.c.
16318 * dispextern.h (underline_minimum_offset): Declare it.
16319 * w32term.c (x_draw_glyph_string): Use it.
16320 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
16321 (syms_of_xterm): Don't declare it any more.
16322 (x_draw_glyph_string): Adjust to the new name.
16323
16324 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
16325
16326 * xterm.c (x_underline_minimum_display_offset): New var.
16327 (x_draw_glyph_string): Use it.
16328 (syms_of_xterm): Declare it.
16329
16330 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
16331
16332 * font.c (font_parse_fcname): Accept GTK-style font names too.
16333
16334 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
16335
16336 * dired.c (file_name_completion): Don't return t if the match is exact
16337 but with different capitalization.
16338 * minibuf.c (Ftry_completion): Simplify.
16339
16340 * window.c (Vwindow_point_insertion_type): New var.
16341 (set_window_buffer): Use it.
16342 (syms_of_window): Init and export it to Lisp.
16343
16344 2008-06-10 Kenichi Handa <handa@m17n.org>
16345
16346 * font.h (font_intern_prop): Prototype adjusted.
16347
16348 * font.c (font_intern_prop): New arg force_symbol.
16349 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
16350 Adjust for the change of font_intern_prop.
16351
16352 * ftfont.c (ftfont_pattern_entity):
16353 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
16354 (w32_registry):
16355 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
16356 the change of font_intern_prop.
16357
16358 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
16359
16360 * w32menu.c (digest_single_submenu): Declare extern.
16361
16362 2008-06-09 Jason Rumney <jasonr@gnu.org>
16363
16364 * w32term.c (x_make_frame_visible): Use alternate restore flags.
16365
16366 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
16367 (parse_single_submenu): Remove.
16368 (digest_single_submenu): Remove.
16369 (syms_of_w32menu): Don't initialise variables that have moved
16370 to menu.c.
16371 (set_frame_menubar): Sync with version in xmenu.c.
16372 (w32_menu_show): Sync with xmenu_show in xmenu.c.
16373
16374 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
16375 Make static again.
16376
16377 2008-06-09 Jason Rumney <jasonr@gnu.org>
16378
16379 Changes to w32 files related to the move of common menu code
16380 to menu.c on 2008-06-08 by Chong Yidong.
16381
16382 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
16383 defs to w32gui.h.
16384 (single_keymap_panes, push_menu_item, push_menu_pane):
16385 Make globally visible.
16386
16387 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
16388 (local_free, malloc_widget_value, free_widget_value)
16389 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
16390 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
16391 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
16392 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
16393 (menu_items, menu_items_allocated, menu_items_used)
16394 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
16395 (init_menu_items, finish_menu_items, discard_menu_items)
16396 (grow_menu_items, push_submenu_start, push_submenu_end)
16397 (push_left_right_boundary, push_menu_pane, push_menu_item)
16398 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
16399 (free_menubar_widget_tree_value, parse_single_submenu)
16400 (update_submenu_strings): Remove functions.
16401 (xmalloc_widget_value): Remove and declare extern.
16402
16403 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
16404 (OBJ1): Build it.
16405
16406 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
16407 (local_heap, local_alloc, local_free, malloc_widget_value)
16408 (free_widget_value): Define here.
16409
16410 2008-06-09 Kenichi Handa <handa@m17n.org>
16411
16412 * font.h (Qascii_0): Extern it.
16413
16414 * font.c (Qascii_0): New variable.
16415 (syms_of_font): DEFSYM it.
16416 (font_open_by_name): If the registry "iso8859-1" fails, try also
16417 "ascii-0".
16418
16419 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
16420
16421 2008-06-08 Kenichi Handa <handa@m17n.org>
16422
16423 * .gdbinit (xfont): New command.
16424
16425 2008-06-08 Andreas Schwab <schwab@suse.de>
16426
16427 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
16428 * Makefile.in (menu.o): Update dependencies.
16429
16430 * Makefile.in (obj): Always add menu.o.
16431 * emacs.c (main): Always call syms_of_menu.
16432 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
16433
16434 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
16435
16436 * Makefile.in: Compile menu.c.
16437
16438 * lisp.h: Declare syms_of_menu.
16439
16440 * emacs.c (main): Call syms_of_menu.
16441
16442 * keyboard.h: Relocate platform-independent menu definitions from
16443 xmenu.c.
16444
16445 * menu.c: New file. Relocate platform-independent menu
16446 definitions from xmenu.c. Suggested by Adrian Robert.
16447
16448 * xmenu.c: Remove platform-independent menu definitions.
16449 (menu_items, menu_items_inuse, menu_items_allocated)
16450 (menu_items_used, menu_items_n_panes)
16451 (menu_items_submenu_depth): Move to keyboard.h.
16452 (init_menu_items, finish_menu_items, unuse_menu_items)
16453 (discard_menu_items, restore_menu_items, save_menu_items)
16454 (grow_menu_items, push_submenu_start, push_submenu_end)
16455 (push_left_right_boundary, push_menu_pane, push_menu_item)
16456 (keymap_panes, single_keymap_panes, single_menu_item)
16457 (list_of_panes, list_of_items, find_and_call_menu_selection)
16458 (xmalloc_widget_value, free_menubar_widget_value_tree)
16459 (parse_single_submenu, digest_single_submenu)
16460 (update_submenu_strings): Move to menu.c.
16461
16462 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
16463
16464 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
16465
16466 2008-06-06 Miles Bader <miles@gnu.org>
16467
16468 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
16469 face, not frame default.
16470
16471 2008-06-05 Martin Rudalics <rudalics@gmx.at>
16472
16473 * window.c (pop_up_windows, pop_up_frames)
16474 (display_buffer_reuse_frames, Vpop_up_frame_function)
16475 (Vdisplay_buffer_function, Veven_window_heights)
16476 (Vspecial_display_buffer_names, Vspecial_display_regexps)
16477 (Vspecial_display_function, Vsame_window_buffer_names)
16478 (Vsame_window_regexps, split_height_threshold)
16479 (Vsplit_window_preferred_function): Move those vars to window.el.
16480 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
16481 (Fdisplay_buffer): Move those functions to window.el.
16482 (syms_of_window): Remove corresponding declarations.
16483 (display_buffer): New function.
16484 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
16485 * dispnew.c (Flast_nonminibuf_frame): New function.
16486 * buffer.c (Fpop_to_buffer): Move to window.el.
16487
16488 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
16489
16490 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
16491
16492 2008-06-05 Kenichi Handa <handa@m17n.org>
16493
16494 * coding.c (detect_coding): Fix previous change.
16495 (detect_coding_system): Likewise.
16496
16497 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
16498
16499 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
16500
16501 * keymap.c (Vminibuffer_local_filename_must_match_map):
16502 Rename from Vminibuffer_local_must_match_filename_map.
16503 (syms_of_keymap):
16504 * minibuf.c (Fcompleting_read): Adjust accordingly.
16505 * commands.h: Rename declaration as well.
16506
16507 2008-06-05 Kenichi Handa <handa@m17n.org>
16508
16509 * font.c (Ffont_spec): Don't use font_parse_family_registry for
16510 family name.
16511 (Ffont_put): Likewise.
16512
16513 * fontset.c (fontset_find_font): Call font_open_for_lface with the
16514 current font-spec.
16515
16516 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
16517 is unspecified.
16518
16519 * xfaces.c (realize_x_face): If the font-related face attributes
16520 are the same as those of default face, realize a new fontset from
16521 default->fontset.
16522 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
16523
16524 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
16525
16526 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
16527 (move_it_in_display_line): New wrapper.
16528
16529 * window.c (window_scroll_pixel_based_preserve_x)
16530 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
16531 (window_scroll_pixel_based, window_scroll_line_based):
16532 Use them to preserve column positions.
16533 (syms_of_window): Initialize them.
16534
16535 * indent.c (Fvertical_motion): Extend first arg to allow passing an
16536 (HPOS . VPOS) pair.
16537
16538 * dispextern.h (move_it_in_display_line): Declare.
16539
16540 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
16541
16542 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
16543 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
16544 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
16545
16546 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
16547
16548 * window.c (Fset_window_parameter): Doc fix.
16549 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
16550
16551 2008-06-04 Joakim Verona <joakim@verona.se>
16552
16553 * window.h (struct window): Add new member window_parameters.
16554
16555 * window.c (Fwindow_parameters, Fwindow_parameter)
16556 (Fset_window_parameter): New defuns.
16557 (syms_of_window): Defsubr the new defuns.
16558 (make_window): Initialize window_parameters to nil.
16559
16560 2008-06-04 John Paul Wallington <jpw@pobox.com>
16561
16562 * eval.c (Fdefmacro): Doc fix.
16563
16564 2008-06-04 Kenichi Handa <handa@m17n.org>
16565
16566 * coding.c (detect_coding): Fix handling of coding->head_ascii.
16567 Be sure to call setup_coding_system when we find a proper coding system.
16568 (detect_coding_system): Fix handling of coding->head_ascii.
16569
16570 2008-06-03 Andreas Schwab <schwab@suse.de>
16571
16572 * font.c (font_prop_validate_spacing): Fix last change.
16573
16574 2008-06-03 Kenichi Handa <handa@m17n.org>
16575
16576 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
16577 (font_parse_fcname): Fix handling of unknown key.
16578
16579 * xfont.c (xfont_list): Try an alias.
16580
16581 * charset.c (char_charset): Return NULL if the arg charset_list is
16582 specified and C doesn't belong to any of them.
16583
16584 2008-06-02 Chip Coldwell <coldwell@redhat.com>
16585
16586 * font.c (font_pixel_size): Don't take cdr of an integer.
16587
16588 2008-06-02 Jim Meyering <meyering@redhat.com>
16589
16590 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
16591 * alloc.c (xfree): Return right away for a NULL arg.
16592 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
16593 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
16594 * mac.c (create_apple_event_from_event_ref): Likewise.
16595 (create_apple_event_from_drag_ref, cfstring_create_normalized):
16596 Likewise.
16597 * doprnt.c (doprnt1): Likewise.
16598 * frame.c (frame): Likewise.
16599 * keyboard.c (wipe_kboard): Likewise.
16600 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
16601 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
16602 * term.c (tty_default_color_capabilities, maybe_fatal)
16603 (delete_tty): Likewise.
16604 * w16select.c (string): Likewise.
16605 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
16606 * w32bdf.c (w32_free_bdf_font): Likewise.
16607 * w32fns.c (w32_unload_font): Likewise.
16608 * w32font.c (w32font_close): Likewise.
16609 * window.c (size_window): Likewise.
16610 * xselect.c (receive_incremental_selection): Likewise.
16611 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
16612 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
16613 * w32.c (stat): Likewise.
16614
16615 Remove useless if-before-free tests.
16616 * editfns.c (Fset_time_zone_rule): Likewise.
16617 * lread.c (nosuffix): Likewise.
16618 * ralloc.c (get_bloc): Likewise.
16619 * regex.c (reg_free): Likewise.
16620 * xftfont.c (xftfont_open, xftfont_close): Likewise.
16621 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
16622 * xsmfns.c (smc_save_yourself_CB): Likewise.
16623
16624 2008-06-02 Kenichi Handa <handa@m17n.org>
16625
16626 * font.c (font_find_for_lface): Handle float font size.
16627 (font_open_for_lface): Likewise.
16628
16629 * xfaces.c (x_supports_face_attributes_p): Check face->font before
16630 comparing the properties.
16631
16632 2008-06-01 Jason Rumney <jasonr@gnu.org>
16633
16634 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
16635 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
16636 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
16637 Don't add empty script list.
16638 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
16639
16640 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
16641
16642 * Makefile.in (dot, dotdot): Remove, update users.
16643 ".." has been used elsewhere in the file for a long time.
16644 (LIBXT_STATIC): Remove conditional based on unused variable.
16645
16646 2008-06-01 Miles Bader <miles@gnu.org>
16647
16648 * xfaces.c (Vface_remapping_alist): New variable.
16649 (syms_of_xfaces): Initialize it.
16650 (enum named_merge_point_kind): New type.
16651 (struct named_merge_point): Add `named_merge_point_kind' field.
16652 (push_named_merge_point): Make cycle detection respect different
16653 named-merge-point kinds.
16654 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
16655 Remove face-name alias resolution.
16656 (lface_from_face_name): New definition using
16657 `lface_from_face_name_no_resolve'.
16658 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
16659 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
16660 (get_lface_attributes): New definition that layers face-remapping on
16661 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
16662 (lookup_basic_face): New function.
16663 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
16664 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
16665 `get_lface_attributes'.
16666 (face_at_buffer_position): Use `lookup_basic_face' to lookup
16667 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
16668 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
16669
16670 * xdisp.c (init_iterator): Pass base_face_id through
16671 `lookup_basic_face' when we actually use it as a face-id.
16672 (handle_single_display_prop): Use `lookup_basic_face' to lookup
16673 DEFAULT_FACE_ID.
16674
16675 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
16676 lookup the initial face-id.
16677
16678 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
16679
16680 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
16681
16682 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
16683 (Fremove_text_properties): Fix typos in docstrings.
16684
16685 2008-05-31 Kenichi Handa <handa@m17n.org>
16686
16687 * font.c (font_list_entities): Fix the car part of data to be
16688 stored in the cache.
16689
16690 * ftfont.c (ftfont_font_format): Don't use strcasestr.
16691
16692 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
16693
16694 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
16695 Add a `test' argument so another predicate than `equal' can be used.
16696 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
16697 (map_char_table): Remove unused vars `c' and `i'.
16698 * lisp.h (Foptimize_char_table): Adjust declaration.
16699 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
16700
16701 2008-05-30 Kenichi Handa <handa@m17n.org>
16702
16703 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
16704 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
16705 defined.
16706
16707 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
16708
16709 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
16710 (Fmake_variable_frame_local): Disallow mixing buffer-local and
16711 frame-local settings for the same variable.
16712
16713 2008-05-30 Kenichi Handa <handa@m17n.org>
16714
16715 * fontset.c (Ffont_info): Move to font.c.
16716 (syms_of_fontset): Delete defsubr of Sfont_info.
16717
16718 * font.c (font_style_to_value, font_score): Delete casting of the
16719 args to xstcasecmp.
16720 (register_font_driver): Increment num_font_drivers only when
16721 registering the driver globally.
16722 (Ffont_info): Move from fontset.c. Handle a font object too.
16723 (syms_of_font): Defsubr Sfont_info.
16724
16725 2008-05-29 Kenichi Handa <handa@m17n.org>
16726
16727 * coding.h (enum define_coding_utf8_arg_index): New enum.
16728 (enum coding_attr_index): Change coding_attr_utf_16_bom to
16729 coding_attr_utf_bom.
16730 (enum utf_bom_type): Rename from utf_16_bom_type.
16731 (struct utf_16_spec): Adjust for the above change.
16732 (struct coding_system): Add utf_8_bom in `spec' union.
16733
16734 * coding.c (CODING_UTF_8_BOM): New macro.
16735 (enum coding_category): Delete coding_category_utf_8, add
16736 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
16737 coding_category_utf_8_sig.
16738 (CATEGORY_MASK_UTF_8): Delete it.
16739 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
16740 (CATEGORY_MASK_UTF_8_SIG): New macros.
16741 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
16742 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
16743 CATEGORY_MASK_UTF_8_SIG.
16744 (CATEGORY_MASK_UTF_8): New macro.
16745 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
16746 (detect_coding_utf_8): Check BOM.
16747 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
16748 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
16749 (encode_coding_utf_16): Likewise.
16750 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
16751 (detect_coding, detect_coding_system): Handle utf-8-auto.
16752 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
16753 (syms_of_coding): Fix setting up of Vcoding_category_table.
16754
16755 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
16756
16757 * process.c (Faccept_process_output): If `millisec' is non-nil,
16758 `seconds' default to 0.
16759 (wait_reading_process_output): Also return non-nil if we read output
16760 from a non-running process.
16761
16762 2008-05-29 Jason Rumney <jasonr@gnu.org>
16763
16764 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
16765 `raster' specified.
16766 (add_font_entity_to_list): Allow non-opentype truetype fonts back
16767 in the uniscribe backend, but disallow any font that has no
16768 unicode subrange support.
16769
16770 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
16771
16772 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
16773 Fix typos in docstrings.
16774
16775 2008-05-29 Kenichi Handa <handa@m17n.org>
16776
16777 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
16778 (Fx_family_fonts): Set frame correctly.
16779
16780 2008-05-28 Jason Rumney <jasonr@gnu.org>
16781
16782 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
16783
16784 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
16785
16786 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
16787 calling build_annotations.
16788
16789 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
16790
16791 * coding.c (Fdecode_coding_region, Fencode_coding_region)
16792 (Fencode_coding_string):
16793 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
16794 <latin-extra-code-table>: Fix typos in docstrings.
16795 (syms_of_coding) <coding-system-alist>: Doc fix.
16796 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
16797
16798 2008-05-28 Kenichi Handa <handa@m17n.org>
16799
16800 * fontset.c (Ffont_info): Don't call font_close_object.
16801
16802 * font.c (font_parse_family_registry): Use Ffont_put to validate
16803 foundry and family.
16804 (font_delete_unmatched): Don't check spacing.
16805 (font_list_entities): Add spacing to the spec to list fonts.
16806
16807 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
16808 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
16809
16810 * coding.c (encode_coding_raw_text): Fix previous change.
16811 (encode_coding_object): When the dst_object is a buffer and is
16812 different from src_object, move gap to PT.
16813
16814 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
16815
16816 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
16817
16818 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
16819
16820 * coding.c (encode_coding_raw_text): Set coding->produced_char for
16821 all branches. Compute it differently.
16822
16823 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
16824
16825 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
16826
16827 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
16828 into "else if () ... else ...".
16829
16830 2008-05-27 Jason Rumney <jasonr@gnu.org>
16831
16832 * w32font.c (w32font_open_internal): Determine if glyph indices
16833 are likely to work here.
16834
16835 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
16836
16837 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
16838 draw overlap glyphs with appropriate highlighting.
16839
16840 2008-05-27 Kenichi Handa <handa@m17n.org>
16841
16842 * xfont.c (xfont_open): Fix calculation of font->average_width.
16843
16844 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
16845
16846 * casefiddle.c (casify_object): Try to guess better whether the
16847 argument is a byte or a char.
16848
16849 2008-05-26 Andreas Schwab <schwab@suse.de>
16850
16851 * xselect.c (x_reply_selection_request): Properly handle format == 32.
16852 Always send multiples of format size.
16853
16854 * xterm.c (x_set_frame_alpha): Fix type mismatch.
16855
16856 2008-05-26 Jason Rumney <jasonr@gnu.org>
16857
16858 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
16859 (compute_metrics): Don't set failure if we just cleared the cache.
16860 (w32_weight_table): Remove unused variable.
16861 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
16862 backwards compatibility.
16863
16864 2008-05-25 Kenichi Handa <handa@m17n.org>
16865
16866 * w32term.c (x_draw_glyph_string):
16867 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
16868
16869 * xfaces.c: Delete unused function prototypes.
16870 (xstrlwr, font_frame): Delete them.
16871 (clear_face_cache): Delete unused variable.
16872
16873 * xftfont.c (xftfont_open): Delete unused variable.
16874 If underline_thickness is not 1, adjust underline_position.
16875
16876 * ftxfont.c (ftxfont_open): Delete unused variable.
16877
16878 * fontset.c (face_for_char): Optimize for the case of no charset
16879 property.
16880
16881 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
16882 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
16883 (otf_open, font_otf_capability, generate_otf_features)
16884 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
16885 Comment out by surrounding "#if 0" and "#endif" for the moment.
16886 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
16887 (syms_of_font): Codes for accessing above commented out.
16888
16889 2008-05-24 Eli Zaretskii <eliz@gnu.org>
16890
16891 * w32proc.c: Include dispextern.h.
16892
16893 * w32.c: Include dispextern.h.
16894
16895 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
16896
16897 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
16898 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
16899 Fix typos in docstrings.
16900
16901 2008-05-23 Jason Rumney <jasonr@gnu.org>
16902
16903 * xsmfns.c: Remove includes that are already included by config.h.
16904
16905 2008-05-23 Kenichi Handa <handa@m17n.org>
16906
16907 * charset.c (Qemacs, charset_emacs): New variables.
16908 (char_charset): Fix for non-Unicode characters.
16909 (syms_of_charset): Define charset_emacs.
16910
16911 * w32term.c (x_draw_glyph_string): Be sure to update
16912 s->underline_thickness and s->underline_position. Be sure to draw
16913 underline within the current line area.
16914
16915 * xterm.c (x_draw_glyph_string): Be sure to update
16916 s->underline_thickness and s->underline_position. Be sure to draw
16917 underline within the current line area.
16918
16919 * fontset.c: Delete unused variables and add casting for char *
16920 throughout the file.
16921 (fontset_font): Try the fallback fonts of the current fontset
16922 before consulting the default fontset.
16923
16924 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
16925
16926 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
16927
16928 2008-05-22 Jason Rumney <jasonr@gnu.org>
16929
16930 * font.c: Don't include strings.h.
16931
16932 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
16933
16934 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
16935 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
16936 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
16937 to call xstrcasecmp.
16938
16939 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
16940
16941 * fontset.c (fs_query_fontset): Use xstrcasecmp.
16942
16943 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
16944
16945 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
16946
16947 2008-05-22 Kenichi Handa <handa@m17n.org>
16948
16949 * puresize.h (BASE_PURESIZE): Increase to 1220000.
16950
16951 * font.c (font_prop_validate_style): Adjust for the format
16952 change of font_style_table.
16953
16954 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
16955 two args.
16956
16957 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
16958 two args.
16959
16960 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
16961
16962 * minibuf.c (keys_of_minibuf): Delete.
16963 * lisp.h (keys_of_minibuf): Delete.
16964 * emacs.c (main): Don't call keys_of_minibuf.
16965
16966 2008-05-22 Kenichi Handa <handa@m17n.org>
16967
16968 * ftfont.c (ftfont_resolve_generic_family): Rename from
16969 ftfont_list_generic_family. Return a single family for each
16970 generic family.
16971 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
16972 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
16973 Call font_add_log.
16974 (ftfont_match): Call font_add_log.
16975
16976 * font.h (Ffont_xlfd_name): EXFUN adjusted.
16977 (FONT_DEBUG): Define it.
16978 (font_add_log): Extern it.
16979 (font_assert): Rename from xassert.
16980
16981 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
16982 (xfont_list_family): Call font_add_log.
16983 (xfont_match): Likewise.
16984 (memq_no_quit): Delete.
16985
16986 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
16987 call of Ffont_xlfd_name.
16988
16989 * xfaces.c (struct table_entry, slant_table, weight_table)
16990 (swidth_table): Move to font.c.
16991
16992 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
16993 xassert are changed to font_assert. Delete many unused variables.
16994 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
16995 New variables.
16996 (struct table_entry): Move from xfaces.c and modified.
16997 (weight_table, slant_table, width_table): Move from xfaces.c and
16998 contents adjusted for the change of struct table_entry.
16999 (font_style_to_value, font_style_symbolic): Adjust for the
17000 format change of font_style_table.
17001 (font_parse_family_registry): Don't overwrite existing foundry and
17002 family of font_spec.
17003 (font_score): Fix calculation of diff for sizes.
17004 (font_sort_entites): Call font_add_log.
17005 (font_delete_unmatched): Return a newly created list.
17006 (font_list_entities): Fix previous change. Call font_add_log.
17007 (font_matching_entity, font_open_entity, font_close_entity):
17008 Call font_add_log.
17009 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
17010 (Finternal_set_font_style_table): Delete.
17011 (BUILD_STYLE_TABLE): New macro.
17012 (build_style_table): New function.
17013 (Vfont_log, font_log_env_checked): New variables.
17014 (font_add_log): New function.
17015 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
17016 Declare Lisp variables "font-weight-table", "font-slant-table",
17017 "font-width-table", and "font-log". Initialize font_style_table.
17018
17019 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
17020
17021 * xterm.c (x_set_frame_alpha): Move declarations before statements.
17022
17023 2008-05-21 Seiji Zenitani <zenitani@mac.com>
17024 Ryo Yoshitake <ryo@shiftmode.net>
17025
17026 * frame.c (Qalpha): Add a new frame parameter `alpha'.
17027 (Vframe_alpha_lower_limit): New variable.
17028 (x_set_alpha): New function.
17029
17030 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
17031
17032 * xfns.c (x-create-frame, Qalpha):
17033 Initialize the frame parameter `alpha'.
17034 * xterm.c (OPAQUE, OPACITY): New.
17035 (x_set_frame_alpha): New function.
17036 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
17037
17038 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
17039 * w32fns.c (w32_frame_parm_handlers): Likewise.
17040
17041 2008-05-20 Jason Rumney <jasonr@gnu.org>
17042
17043 * w32font.c (add_font_entity_to_list): Don't add non-opentype
17044 truetype fonts to opentype list.
17045
17046 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
17047
17048 * fontset.c (Ffontset_info): Doc fix.
17049 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
17050 <ignore-relative-composition>: Fix typos in docstrings.
17051
17052 * font.c (syms-of-font) <font-encoding-alist>:
17053 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
17054 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
17055 (Ffont_otf_alternates): Doc fixes.
17056
17057 2008-05-20 Kenichi Handa <handa@m17n.org>
17058
17059 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
17060 font.h through out the file.
17061 (FONT_DRIVERS): Rename from FONTOBJ.
17062 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
17063 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
17064
17065 * emacs.c (main): Call syms_of_font unconditionally.
17066
17067 * font.h (find_font_encoding): Extern it.
17068
17069 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
17070 fontset.c.
17071 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
17072 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
17073 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
17074 only when HAVE_WINDOW_SYSTEM is defined.
17075 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
17076 when HAVE_WINDOW_SYSTEM is defined.
17077
17078 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
17079 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
17080
17081 * xfaces.c: Include font.h unconditionally.
17082 (merge_face_ref, merge_face_vectors)
17083 (Finternal_set_lisp_face_attribute): Cancel the previous change.
17084
17085 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
17086
17087 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
17088 indirect_variable.
17089 * eval.c (lisp_indirect_variable): New fun.
17090 (Fuser_variable_p): Use it.
17091
17092 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
17093
17094 * lisp.h (indirect_variable):
17095 * data.c (indirect_variable, let_shadows_buffer_binding_p):
17096 Use Lisp_Symbol pointers rather than Lisp_Object.
17097 Adjust callers.
17098 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
17099 To this end, change calling-convention.
17100
17101 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
17102 if some non-hidden buffers are selected by string&pred.
17103
17104 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
17105
17106 * process.c (wait_reading_process_output): Always check status
17107 when in batch mode.
17108
17109 2008-05-19 Kenichi Handa <handa@m17n.org>
17110
17111 * font.c (font_list_entities): Fix handling of cache.
17112 (font_matching_entity): Likewise.
17113
17114 * ftfont.c (cs_iso8859_1): Delete.
17115 (ft_face_cache): New variable.
17116 (struct ftfont_info): New member fc_charset_idx.
17117 (ftfont_build_basic_charsets): Delete.
17118 (fc_charset_table): New variable.
17119 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
17120 . FC_CHARSET_IDX) as :font-entity property in the font entity.
17121 Callers changed.
17122 (ftfont_lookup_cache, ftfont_get_charset): New functions.
17123 (ftfont_spec_pattern): New argument fc_charset_idx.
17124 Check registry more rigidly. Change callers.
17125 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
17126 change of :font-entity property of the font.
17127
17128 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
17129 property of the font.
17130
17131 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
17132
17133 * coding.c (Fcoding_system_p): Rename argument to match docstring.
17134 (Funencodable_char_position, Fcheck_coding_systems_region)
17135 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
17136 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
17137 (Ffind_operation_coding_system, Fset_coding_system_priority)
17138 (Fcoding_system_eol_type): Doc fixes.
17139
17140 2008-05-17 Glenn Morris <rgm@gnu.org>
17141
17142 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
17143
17144 2008-05-16 Eli Zaretskii <eliz@gnu.org>
17145
17146 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
17147 and st_gid.
17148
17149 * frame.c (Fdelete_frame): Don't call font_update_drivers if
17150 HAVE_WINDOW_SYSTEM is not defined.
17151
17152 * xfaces.c (merge_face_ref, merge_face_vectors)
17153 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
17154 HAVE_WINDOW_SYSTEM is defined.
17155 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
17156
17157 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
17158
17159 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
17160
17161 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17162
17163 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
17164
17165 2008-05-15 Kenichi Handa <handa@m17n.org>
17166
17167 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
17168 preference.
17169
17170 2008-05-15 Glenn Morris <rgm@gnu.org>
17171
17172 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
17173
17174 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
17175
17176 * fns.c (init_fns): Don't initialize weak_hash_tables here.
17177 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
17178
17179 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
17180
17181 2008-05-15 Kenichi Handa <handa@m17n.org>
17182
17183 * ftfont.c (ftfont_list): Downcase family name to check generic
17184 families.
17185
17186 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
17187 font-spec for QCfont value.
17188
17189 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
17190 buffer. Check the return value of it.
17191
17192 2008-05-14 Jason Rumney <jasonr@gnu.org>
17193
17194 * w32term.c (w32_get_glyph_overhangs): Remove.
17195 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
17196
17197 2008-05-14 Kenichi Handa <handa@m17n.org>
17198
17199 * font.c (font_prop_validate): Make nil a valid value.
17200 (font_clear_cache): Check if the cached vector of entities is nil
17201 or not.
17202
17203 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17204
17205 * emacs.c (main_thread): Conditionalize on
17206 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
17207 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
17208
17209 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
17210 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
17211 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
17212
17213 2008-05-14 Kenichi Handa <handa@m17n.org>
17214
17215 * coding.c (detect_coding_iso_2022): Ignore a coding category that
17216 has no corresponding coding system.
17217
17218 2008-05-14 Jason Rumney <jasonr@gnu.org>
17219
17220 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
17221
17222 * w32font.h (w32font_open_internal): Update declaration.
17223
17224 * w32font.c (w32font_open_internal): Change last argument from
17225 w32font_info struct to font object. Fill in font object from
17226 font_entity. Get Outline metrics if possible. Use them to
17227 calculate underline position and thickness. Use xlfd name as name
17228 property. Don't set codepage.
17229 (w32font_open): Pass font_object to w32font_open_internal. Don't
17230 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
17231 (w32font_draw): Use s->font.
17232 (clear_cached_metrics): Don't clear non-existent blocks.
17233
17234 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
17235 font was not found.
17236 (x_draw_glyph_string): Use underline position and thickness from font.
17237
17238 * w32uniscribe.c (uniscribe_open): Pass font_object to
17239 w32font_open_internal.
17240
17241 2008-05-14 Kenichi Handa <handa@m17n.org>
17242
17243 These changes are to delete all legacy font-handling codes, and
17244 make Emacs use only font-backends.
17245
17246 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
17247 (frame.o, image.o, print.o): Depend on $(FONTSRC).
17248
17249 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
17250
17251 * charset.h (Vcharset_non_preferred_head)
17252 (Vcurrent_iso639_language): Extern them.
17253
17254 * charset.c (Vcharset_non_preferred_head): New variable.
17255 (Vcurrent_iso639_language): New variable.
17256 (syms_of_charset): Declare it as a Lisp variable.
17257 (char_charset): Don't check non preferred charsets. As a last
17258 resort, return charset_unicode.
17259 (Fset_charset_priority): Update Vcharset_non_preferred_head.
17260
17261 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
17262 conditionals. Don't check enable_font_backend. Delete all codes
17263 used only when USE_FONT_BACKEND is not defined.
17264
17265 * dispextern.h (struct glyph_string): Change type of `font' to
17266 `struct font *'.
17267 (struct glyph_string): New member underline_position and
17268 underline_thickness.
17269 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
17270 (struct face): Change type of `font' to `struct font *'. Remove
17271 members `font_name', `font_info_id'.
17272 (per_char_metric, encode_char): Delete externs.
17273 (calc_pixel_width_or_height): Adjust the prototype.
17274
17275 * emacs.c (enable_font_backend): Delete extern.
17276 (main): Don't set enable_font_backend. Don't check the command
17277 line argument "-disable-font-backend".
17278
17279 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
17280 (enum font_property_index): New members FONT_DPI_INDEX,
17281 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
17282 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
17283 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
17284 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
17285 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
17286 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
17287 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
17288 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
17289 (struct font_spec, struct font_entity): New structs.
17290 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
17291 (struct font): Many members from old "struct font_info" moved to
17292 here. Members font and entity deleted.
17293 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
17294 the new font-related objects.
17295 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
17296 (CHECK_FONT_GET_OBJECT): Likewise.
17297 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
17298 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
17299 (struct font_driver): New members case_sensitive anc check. Type
17300 of the member list and open changed.
17301 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
17302 (font_symbolic_width, font_find_object, font_get_spec)
17303 (font_set_lface_from_name): Delete extern.
17304 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
17305
17306 * font.c: Include <strings.h>.
17307 (enable_font_backend): Delete it.
17308 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
17309 (CHECK_VALIDATE_FONT_SPEC): Delete it.
17310 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
17311 (null_string): Delete it.
17312 (null_vector): Make it static.
17313 (font_family_alist): Delete it.
17314 (Qnormal): Extern it.
17315 (QCextra, QClanguage): Delete it.
17316 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
17317 (font_make_spec, font_make_entity, font_make_object)
17318 (font_intern_prop): Renamed from intern_downcase. Don't downcase
17319 the string. Callers changed.
17320 (font_pixel_size): Adjusted for the format change of font-related
17321 objects.
17322 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
17323 (font_style_to_value, font_style_symbolic): New function.
17324 (build_font_family_alist): Delete it.
17325 (font_registry_charsets): Use Fassoc_string instead of
17326 assq_no_quit.
17327 (font_prop_validate_symbol): Don't return null_string.
17328 (font_prop_validate_style): Adjusted for the change of
17329 style-related values in a font vector.
17330 (font_property_table): Delete entries for QClanguage and
17331 QCantialias, add entries for QCavgwidth.
17332 (get_font_prop_index): Delete the 2nd argument FROM.
17333 (font_prop_validate): Arguments changed.
17334 (font_put_extra): Adjusted for the change of font-related objects.
17335 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
17336 (font_parse_fcname, font_unparse_fcname)
17337 (font_prepare_composition): Likewise.
17338 (font_parse_family_registry): Renamed from font_merge_old_spec.
17339 (otf_open): Delete the 1st arg entity.
17340 (font_otf_capability): Adjusted for the above change.
17341 (font_score): New arg alternate_families. Adjusted for the change
17342 of font-related objects.
17343 (font_sort_entites): New arg best_only.
17344 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
17345 Delete them.
17346 (font_match_p): Check alternate families.
17347 (font_find_object): Delete it.
17348 (font_check_object): New function.
17349 (font_clear_cache): Adjusted for the change of font-related objects.
17350 (font_delete_unmatched): New arg.
17351 (font_list_entities): Call font_driver->list with a spec that
17352 doesn't specify style-related properties.
17353 (font_matching_entity): Arguments changed. Caller changed.
17354 (font_open_entity): Adjusted for the change of font-related objects.
17355 (font_close_object, font_has_char, font_encode_char)
17356 (font_get_name, font_get_spec): Likewise.
17357 (font_spec_from_name, font_clear_prop, font_update_lface):
17358 New functions.
17359 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
17360 (font_prepare_for_face, font_done_for_face, font_open_by_name)
17361 (font_at): Adjusted for the change of font-related objects.
17362 (font_range): New function.
17363 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
17364 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
17365 (Fcopy_font_spec, Fmerge_font_spec): New function.
17366 (Ffont_family_list): Renamed from list-families.
17367 (Finternal_set_font_style_table): Arguments changed.
17368 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
17369 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
17370 change of font-related objects.
17371 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
17372
17373 * fontset.h (struct font_info): Delete it. Most members go to
17374 struct font.
17375 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
17376 (enum FONT_SPEC_INDEX): Delete it.
17377 (font_info, list_fonts_func, load_font_func, query_font_func)
17378 (set_frame_fontset_func, find_ccl_program_func)
17379 (get_font_repertory_func, new_fontset_from_font_name): Delete
17380 externs.
17381 (fontset_from_font_name): Extern it.
17382 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
17383 (FONT_INFO_FROM_FACE): Deleted.
17384 (face_for_font): Adjust prototype.
17385
17386 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
17387 conditionals. Don't check enable_font_backend. Delete all codes
17388 used only when USE_FONT_BACKEND is not defined.
17389 (get_font_info_func, list_font_func, load_font_func)
17390 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
17391 (get_font_repertory_func): Delete them.
17392 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
17393 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
17394 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
17395 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
17396 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
17397 (fontset_compare_rfontdef): New function.
17398 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
17399 rfont-defs by qsort. Adjusted for the change of font-group vector.
17400 (load_font_get_repertory): Deleted.
17401 (fontset_find_font): Use new macros to ref/set elements of
17402 font-def and rfont-def.
17403 (fontset_font): Fix the timing of remembering that no font for C.
17404 (free_face_fontset): Do nothing if the face has no fontset.
17405 (face_suitable_for_char_p): Use new macros to ref/set elements of
17406 rfont-def.
17407 (face_for_char): Likewise. Call face_for_char with font_object.
17408 (fs_load_font): Delete. Delete #pragma surrounding it.
17409 (fs_query_fontset): Use strcasecmp instead of strcmp.
17410 (generate_ascii_font_name): Adjusted for the format change of
17411 font-spec.
17412 (Fset_fontset_font): Likewise. Use new macros to set elements of
17413 font-def.
17414 (Fnew_fontset): Use font_unparse_xlfd to generate
17415 FONTSET_ASCII (fontset).
17416 (new_fontset_from_font_name): Deleted.
17417 (fontset_from_font): Renamed from new_fontset_from_font. Check if
17418 a fontset is already created for the font. FIx updating of
17419 Vfontset_alias_alist.
17420 (fontset_ascii_font): Deleted.
17421 (Ffont_info): Adjusted for the format change of font-spec.
17422 (Finternal_char_font): Likewise.
17423 (Ffontset_info): Likewise.
17424 (syms_of_fontset): Don't check load_font_func.
17425
17426 * fns.c (internal_equal): Handle PREV_FONT.
17427
17428 * frame.h: Delete USE_FONT_BACKEND conditional.
17429
17430 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
17431 conditionals. Don't check enable_font_backend. Delete all codes
17432 used only when USE_FONT_BACKEND is not defined.
17433 (x_set_font): Call x_new_font, not x_new_fontset2.
17434 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
17435 already set for the frame.
17436
17437 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
17438 a font-entity by font_make_entity. Use font_intern_prop instead
17439 of intern_downcase. Use FONT_SET_STYLE to set a style-related
17440 font property. If a font is scalable, set avgwidth property to 0.
17441 Set font-entity property by font_put_extra.
17442 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
17443 (ffont_driver): Adjusted for the change of struct font_driver.
17444 (ftfont_spec_pattern): New function.
17445 (ftfont_list): Return a list, not vector.
17446 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
17447 (ftfont_list_family): Don't downcase names.
17448 (ftfont_free_entity): Deleted.
17449 (ftfont_open): Return a font-object. Adjusted for the change of
17450 struct font. Get underline_thickness and underline_position from
17451 font property. Don't update dpyinfo->smallest_font_height and
17452 dpyinfo->smallest_char_width.
17453 (ftfont_close): Don't free `struct font'.
17454 (ftfont_has_char): Adjusted for the format change of font-entity.
17455 (ftfont_encode_char, ftfont_text_extents): Likewise.
17456
17457 * ftxfont.c (ftxfont_list): Return a list, not vector.
17458 (ftxfont_open): Return a font-object. Adjusted for the change of
17459 struct font. Get underline_thickness and underline_position from
17460 font property. Don't update dpyinfo->smallest_font_height and
17461 dpyinfo->smallest_char_width.
17462 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
17463 (ftxfont_draw): Adjusted for the change of struct font.
17464
17465 * image.c (image_ascent): Don't include "charset.h". Include
17466 "character.h" and "font.h".
17467
17468 * lisp.h (enum pvec_type): New member PREV_FONT.
17469 (Fassoc_string): EXFUN it.
17470
17471 * print.c: Include font.h.
17472 (print_object): Handle font-related objects.
17473
17474 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
17475 conditionals. Don't check enable_font_backend. Delete all codes
17476 used only when USE_FONT_BACKEND is not defined.
17477 (handle_auto_composed_prop): Do nothing if it->f is not on a
17478 window system. Check how many following characters can be
17479 displayed by the same font.
17480 (calc_pixel_width_or_height): Type of the 4th arg is changed to
17481 'struct font *'.
17482 (get_char_face_and_encoding): Assign the whole encoding task to
17483 the `encode-char' method of a font driver.
17484 (fill_composite_glyph_string): Adjusted for the change of `struct
17485 face' and `struct glyph_string'.
17486 (fill_glyph_string): Likewise.
17487 (get_per_char_metric): Arguments changed.
17488 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
17489 and `struct glyph_string'.
17490 (produce_stretch_glyph, calc_line_height_property)
17491 (x_produce_glyphs): Likewise.
17492
17493 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
17494 conditionals. Don't check enable_font_backend. Delete all codes
17495 used only when USE_FONT_BACKEND is not defined. Use
17496 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
17497 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
17498 (Qp): Extern them.
17499 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
17500 Deleted.
17501 (struct font_name): Deleted.
17502 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
17503 (compare_fonts_by_sort_order): New function.
17504 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
17505 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
17506 Deleted.
17507 (Fx_family_fonts): Use font_list_entities, and sort fonts by
17508 compare_fonts_by_sort_order.
17509 (Fx_font_family_list): Call Ffont_family_list.
17510 (face_numeric_value, face_numeric_weight, face_numeric_slant)
17511 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
17512 (face_symbolic_slant, face_symbolic_swidth)
17513 (split_font_name_into_vector, build_font_name_from_vector)
17514 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
17515 (font_rescale_ratio, split_font_name, build_font_name)
17516 (free_font_names, sort_fonts, x_face_list_fonts)
17517 (face_font_available_p, sorted_font_list, cmp_font_names)
17518 (font_list_1, concat_font_list, font_list, remove_duplicates):
17519 Deleted.
17520 (Fx_list_fonts): Use Ffont_list.
17521 (LFACE_AVGWIDTH): Deleted.
17522 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
17523 by FONTP.
17524 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
17525 (set_lface_from_font_name): Delete it.
17526 (set_lface_from_font): Renamed from
17527 set_lface_from_font_and_fontset. Caller changed. Don't set
17528 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
17529 for face.
17530 (merge_face_vectors): Copy font-spec if necessary.
17531 Clear properties of the font-spec if necessary.
17532 (merge_face_ref): Clear properties of the font-spec if necessary.
17533 (Finternal_set_lisp_face_attribute): Likewise.
17534 (set_font_frame_param): Use font_load_for_lface to load a
17535 font-object, and call Fmodify_frame_parameters with it.
17536 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
17537 font name by Ffont_xlfd_name.
17538 (Finternal_lisp_face_attribute_values): Don't check QCweight,
17539 QCslant, and QCwidth.
17540 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
17541 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
17542 Compare fonts by EQ.
17543 (lookup_non_ascii_face): Deleted.
17544 (face_for_font): The 2nd argument changed.
17545 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
17546 Check atomic font properties by case insensitive.
17547 (realize_non_ascii_face): Set face->overstrike correctly.
17548 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
17549 (dump_realized_face): Get font name from
17550 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
17551
17552 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
17553 conditionals. Don't check enable_font_backend. Delete all codes
17554 used only when USE_FONT_BACKEND is not defined.
17555 (xic_create_xfontset): Original code deleted and renamed from
17556 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
17557 (x_make_gc): Don't set GCFont in GCs.
17558 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
17559 opened by "fixed".
17560 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
17561 find_ccl_program_func, query_font_func, set_frame_fontset_func,
17562 get_font_repertory_func.
17563
17564 * xfont.c: Include <stdlib.h> and "ccl.h".
17565 (struct xfont_info): New structure.
17566 (xfont_query_font): Deleted.
17567 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
17568 moved from xterm.c.
17569 (xfont_driver): Adjusted for the change of struct font_driver.
17570 (compare_font_names): New function.
17571 (xfont_list_pattern): Sort font names case insensitively. Make
17572 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
17573 (xfont_list): Return a list, not vector.
17574 (xfont_match): If the font doesn't have QCname property, generate
17575 a name from the other font properties.
17576 (xfont_open): Return a font-object. Adjusted for the change of
17577 struct font. Get underline_thickness and underline_position from
17578 font property. Don't update dpyinfo->smallest_font_height and
17579 dpyinfo->smallest_char_width.
17580 (xfont_close): Don't free struct font.
17581 (xfont_prepare_face): Adjusted for the change of struct font.
17582 (xfont_done_face): Deleted.
17583 (xfont_has_char): Adjusted for the change of struct font.
17584 (xfont_encode_char, xfont_draw): Likewise.
17585 (xfont_check): New function.
17586
17587 * xftfont.c (xftfont_list): Adjusted for the change of `list'
17588 callback function.
17589 (xftfont_match): Adjusted for the format change of font-entity.
17590 (xftfont_open): Adjusted for the format change of font-entity and
17591 font-object. Adjusted for the change of struct font. Return a
17592 font-object. Don't update dpyinfo->smallest_font_height and
17593 dpyinfo->smallest_char_width.
17594 (xftfont_close): Block input while calling XftFontClose.
17595 (xftfont_prepare_face): Don't block input while calling
17596 xftfont_get_colors. Adjusted for the change of struct font.
17597 (xftfont_shape): Return value of error case fixed.
17598
17599 * xrdb.c (x_load_resources): Don't setup a fontset resource.
17600
17601 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
17602 conditionals.
17603 (FONT_WIDTH): Return (f)->max_width.
17604 (struct x_display_info): Delete member `font'.
17605 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
17606 (x_find_ccl_program, x_get_font_repertory): Delete externs.
17607 (struct x_output): Change type of `font' to `struct font *'.
17608
17609 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
17610 conditionals. Don't check enable_font_backend. Delete all codes
17611 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
17612 (x_per_char_metric, x_encode_char): Deleted.
17613 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
17614 (x_compute_glyph_string_overhangs): Adjusted for the change of
17615 `struct face'.
17616 (x_draw_glyph_string_foreground)
17617 (x_draw_composite_glyph_string_foreground): Likewise.
17618 (x_draw_glyph_string): Likewise. Use font->underline_position and
17619 font->underline_thickness.
17620 (x_new_font): Renamed from x_new_fontset2.
17621 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
17622 (x_check_font): Call `check' method of a font driver.
17623 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
17624 (x_query_font, x_get_font_repertory): Deleted.
17625 (x_find_ccl_program): Renamed and moved to xfont.c.
17626 (x_redisplay_interface): Adjusted for the change of `struct
17627 redisplay_interface'.
17628
17629 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
17630 conditionals. Don't check enable_font_backend. Delete all codes
17631 used only when USE_FONT_BACKEND is not defined. Surround non-used
17632 code by "#ifdef OLD_FONT" and "endif".
17633 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
17634
17635 * w32font.h (struct w32font_info): New member.
17636 (FONT_COMPAT): New macro.
17637 (w32font_open_internal): Prototype adjusted.
17638
17639 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
17640 OLD_FONT" and "endif".
17641
17642 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
17643 conditionals. Don't check enable_font_backend. Delete all codes
17644 used only when USE_FONT_BACKEND is not defined.
17645 (w32font_open): Return a font-object. Make a font-object by
17646 font_make_object. Adjusted for the change of struct w32font_info.
17647 (w32font_close): Don't free struct font. Adjusted for the change
17648 of struct w32font_info.
17649 (w32font_encode_char, w32font_text_extents, w32font_draw):
17650 Adjusted for the change of struct w32font_info.
17651 (w32font_draw): Likewise.
17652 (w32font_list_internal): Return a list, not vector.
17653 (w32font_open_internal): Change the 4th arg to font-object.
17654 Adjusted for the change of struct w32font_info and font-object format.
17655 (add_font_name_to_list): Don't downcase names.
17656 (w32_enumfont_pattern_entity): Make a font-entity by
17657 font_make_entity. Adjusted for the format change of font-entity.
17658 Use FONT_SET_STYLE to set a style-related font property. If a
17659 font is scalable, set avgwidth property to 0. Set font-entity
17660 property by font_put_extra.
17661 (font_matches_spec): Adjusted for the format change of font-entity.
17662 (w32_weight_table, w32_decode_weight): New variables.
17663 (w32_encode_weight): New function.
17664 (fill_in_logfont): Adjusted for the format change of font-spec.
17665 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
17666 weight value.
17667 (w32font_driver): Adjusted for the change of struct font_driver.
17668
17669 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
17670 conditionals. Don't check enable_font_backend. Surround non-used
17671 code by "#ifdef OLD_FONT" and "endif".
17672 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
17673 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
17674
17675 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
17676 conditionals. Don't check enable_font_backend. Delete all codes
17677 used only when USE_FONT_BACKEND is not defined. Surround non-used
17678 code by "#ifdef OLD_FONT" and "endif".
17679
17680 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
17681 (uniscribe_open): Return value changed to font-object.
17682 Adjusted for the format change of font-object.
17683 (uniscribe_otf_capability): Adjusted for the change of struct font.
17684 (add_opentype_font_name_to_list): Don't downcase names.
17685 (uniscribe_font_driver): Adjusted for the change of struct
17686 font_driver.
17687
17688 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
17689
17690 * dispnew.c (update_frame_1): Check if tty output is still valid
17691 before flushing it.
17692
17693 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
17694
17695 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
17696 to Gtk+ menus.
17697
17698 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
17699
17700 * dired.c (file_name_completion): Tweak the code so as to always do it
17701 in a single pass. Tighten the scope of some variables.
17702
17703 * dired.c (Qdefault_directory): New var.
17704 (file_name_completion): Use it instead of Fexpand_file_name.
17705 (syms_of_dired): Initialize it.
17706
17707 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
17708
17709 * fileio.c (double_dollars): Remove dead code.
17710
17711 2008-05-10 Eli Zaretskii <eliz@gnu.org>
17712
17713 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
17714 Mention w32-get-true-file-attributes in doc string.
17715
17716 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
17717
17718 2008-05-09 Glenn Morris <rgm@gnu.org>
17719
17720 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
17721 2008-04-23.
17722
17723 2008-05-09 Eli Zaretskii <eliz@gnu.org>
17724
17725 Support for reporting owner and group of each file on MS-Windows:
17726 * dired.c (stat_uname, stat_gname): New functions, with special
17727 implementation for w32.
17728 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
17729
17730 * w32.c: Rename the_passwd_* to dflt_passwd_*.
17731 (dflt_group_name): New static variable.
17732 (dflt_group): Rename from the_group.
17733 (init_user_info): Init dflt_group fields. Get user's group name
17734 from LookupAccountSid.
17735 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
17736 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
17737 New initialization states.
17738 (globals_of_w32): Initialize them to zero. Initialize the default
17739 group name to "None".
17740 (GetFileSecurity_Name): New global var, the name of the function
17741 to call for GetFileSecurity.
17742 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
17743 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
17744 (get_file_security, get_security_descriptor_owner)
17745 (get_security_descriptor_group, is_valid_sid)
17746 (get_file_security_desc, get_rid, get_name_and_id)
17747 (get_file_owner_and_group): New functions.
17748 (stat): Use get_file_security_desc and get_file_owner_and_group to
17749 report the owner and primary group of each file. Don't ignore the
17750 high 32 bits of file's size, now that st_size is 64-bit wide.
17751 Fix test when to get true file attributes.
17752 (init_user_info): Use get_rid instead of equivalent inline code.
17753 (fstat): Don't ignore the high 32 bits of file's size.
17754
17755 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
17756
17757 * image.c (png_load): Use correct bit-depth for setting background
17758 color.
17759
17760 2008-05-08 Eli Zaretskii <eliz@gnu.org>
17761
17762 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
17763 epa-hook.elc.
17764
17765 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
17766
17767 * font.c (Ffont_match_p): Don't use `iff' in docstring.
17768
17769 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
17770
17771 * macfns.c (Fx_create_frame): Make a copy of frame parameters
17772 because the original parameters are in pure storage now.
17773 (mac_window): Remove unused params. Update callers.
17774
17775 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
17776
17777 * lread.c (substitute_object_recurse): Use lower-level primitives.
17778 Don't signal errors when traversing sub-char-tables.
17779 Don't loop over all the possible characters when traversing char-tables.
17780
17781 * print.c (print_preprocess): Add sub-char-tables to the print-table,
17782 just like we do in print.c.
17783
17784 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
17785
17786 * minibuf.c (Ftry_completion): Remove code left over from when we used
17787 scmp instead of Fcompare_strings.
17788
17789 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
17790
17791 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
17792
17793 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17794
17795 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
17796 Create bitmap context in native byte order.
17797
17798 * macterm.c (XDrawLine)
17799 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
17800 context in native byte order.
17801
17802 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17803
17804 * config.in: Regenerate.
17805
17806 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
17807 New definitions for Image I/O support.
17808 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
17809 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
17810 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
17811 (mac_data_provider_release_data, image_load_image_io)
17812 [USE_MAC_IMAGE_IO]: New functions.
17813 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
17814 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
17815 (init_image_func_pointer) [MAC_OSX]: Remove function.
17816 (image_load_quartz2d) [MAC_OSX]: Check availability of
17817 CGImageCreateWithPNGDataProvider at compile time.
17818 Use lowercase `false' for boolean constant.
17819 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
17820 Use image_load_image_io.
17821 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
17822 Don't check MyCGImageCreateWithPNGDataProvider.
17823 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
17824 Don't call init_image_func_pointer.
17825
17826 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
17827
17828 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
17829 Make variable non-static.
17830 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
17831 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
17832
17833 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
17834 (RED_FROM_ULONG): Mask off higher bits.
17835 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
17836
17837 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
17838 Include AvailabilityMacros.h.
17839 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
17840 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
17841
17842 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
17843
17844 * chartab.c (Fset_char_table_range): If range is t, really set all
17845 chars to that value.
17846
17847 2008-05-03 Eli Zaretskii <eliz@gnu.org>
17848
17849 * dired.c (Ffile_attributes): Don't allow the device number become
17850 negative.
17851
17852 2008-05-02 Daiki Ueno <ueno@unixuser.org>
17853
17854 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
17855
17856 2008-05-02 Juri Linkov <juri@jurta.org>
17857
17858 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
17859 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
17860 DEFAULT argument as a list of default values in docstrings.
17861
17862 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
17863
17864 * puresize.h (BASE_PURESIZE): Increase to 1210000.
17865
17866 2008-05-01 Martin Rudalics <rudalics@gmx.at>
17867
17868 * dispnew.c (change_frame_size_1): Preserve small windows when
17869 shrinking frames by calling set_window_height|width with third
17870 arg 2.
17871
17872 * window.h (struct window): Replace field too_small_ok by field
17873 resize_proportionally.
17874
17875 * window.c (make_window): Initialize resize_proportionally.
17876 (enlarge_window): Temporarily set resize_proportionally to make
17877 sure that shrink_windows does scale the window proportionally.
17878 (shrink_windows): When window has resize_proportionally set try
17879 to shrink it proportionally by stealing from other windows.
17880 (struct saved_window, Fset_window_configuration)
17881 (compare_window_configurations): Handle resize_proportionally.
17882 (WINDOW_TOTAL_SIZE): New macro.
17883 (window_min_size, shrink_windows, size_window): Use it.
17884 (check_min_window_sizes): Remove. Invalid values of
17885 window-min-height|width are handled by window_min_size_2 now.
17886 (size_window, Fsplit_window, enlarge_window)
17887 (adjust_window_trailing_edge, grow_mini_window): Don't call
17888 check_min_window_sizes.
17889 (window_min_size_2, window_min_size_1, window_min_size):
17890 New argument safe_p for retrieving "safe" minimum sizes.
17891 (Fdisplay_buffer, Fsplit_window, enlarge_window)
17892 (adjust_window_trailing_edge, grow_mini_window):
17893 Adjust arguments of window_min_size... functions.
17894 (shrink_windows): Argument min_size removed. New argument
17895 safe_p allows shrinking windows to their safe minimum sizes.
17896 Calculate minimum size and decide whether a window shall be
17897 deleted for each window individually.
17898 (size_window): When nodelete_p equals 2, tell shrink_windows to
17899 delete windows only if their new minimum size is no more safe.
17900 (shrink_window_lowest_first): Call window_min_size_1 to make
17901 sure to preserve modeline of bottom-most window when resizing
17902 the minibuffer.
17903 (Fset_window_configuration, Fcurrent_window_configuration)
17904 (compare_window_configurations): Do not handle
17905 window-min-height|width any more.
17906 (syms_of_window): Clarify window-min-height|width doc-strings.
17907
17908 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
17909
17910 * dired.c (file_name_completion): Fix up the encoding/decoding issue
17911 some more. Copy some of the code from Ftry_completions.
17912 Remove special case code that dates back to initial revision when the
17913 slash was only added when necessary and that can't trigger nowadays.
17914
17915 2008-04-27 Kenichi Handa <handa@m17n.org>
17916
17917 * font.c (font_prop_validate): Signal `error' instead of `font'.
17918
17919 2008-04-29 Jason Rumney <jasonr@gnu.org>
17920
17921 * w32fns.c (Fw32_battery_status): New defun.
17922 (syms_of_w32fns): Defsubr it.
17923
17924 2008-04-28 Andreas Schwab <schwab@suse.de>
17925
17926 * dired.c (file_name_completion): Fix another mixing of encoded
17927 and decoded names.
17928
17929 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
17930
17931 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
17932
17933 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
17934
17935 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
17936
17937 2008-04-27 Andreas Schwab <schwab@suse.de>
17938
17939 * dired.c (file_name_completion): Fix inappropriate mixing of
17940 encoded and decoded names.
17941
17942 * xterm.c (XTread_socket): Fix use of uninitialized variable.
17943
17944 * puresize.h (BASE_PURESIZE): Increase to 1200000.
17945
17946 2008-04-26 Eli Zaretskii <eliz@gnu.org>
17947
17948 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
17949 2008-03-31, it's not needed anymore with `struct stat' definition
17950 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
17951 for the same reasons.
17952
17953 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
17954
17955 * m/sparc.h: Additional redefinitions for GNU/Linux.
17956
17957 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17958
17959 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
17960 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
17961 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
17962 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
17963 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
17964 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
17965 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
17966 Likewise.
17967
17968 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
17969 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
17970 (mac_ax_number_of_characters): Add externs.
17971 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
17972 [USE_MAC_TSM]: Likewise.
17973 (mac_handle_text_input_event) [MAC_OSX]:
17974 Handle kEventTextInputOffsetToPos for no active input area case.
17975 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
17976 (mac_handle_document_access_event)
17977 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
17978 (install_application_handler) [MAC_OSX]: Register handlers for
17979 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
17980 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
17981 Register mac_handle_document_access_event.
17982
17983 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
17984 Make functions non-static.
17985
17986 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
17987
17988 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
17989 (read_file_name_completion_ignore_case, insert_default_directory)
17990 (Qdefault_directory): Move to minibuffer.el.
17991 (Fread_file_name): Call the new `read-file-name' instead.
17992
17993 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17994
17995 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
17996 Make function non-static.
17997 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
17998 Remove function.
17999 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
18000 Move to mactoolbox.c.
18001 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
18002
18003 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
18004 (mac_rect_make): New macro.
18005
18006 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
18007 instead of float.
18008 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
18009 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
18010 (XSetBackground) [USE_CG_DRAWING]: Likewise.
18011 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
18012 CGRectMake.
18013 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
18014 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
18015 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
18016 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
18017 instead of WindowRef in argument type.
18018 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
18019 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
18020 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
18021 instead of DISPLAY. All uses changed.
18022 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
18023 (x_calc_absolute_position): Simplify so as not to use
18024 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
18025
18026 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
18027 instead of WindowRef in argument type.
18028 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
18029 [TARGET_API_MAC_CARBON]: Remove externs.
18030 (create_apple_event, mac_event_parameters_to_lisp)
18031 [TARGET_API_MAC_CARBON]: Add externs.
18032
18033 * mactoolbox.c (Vmac_ts_script_language_on_focus)
18034 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
18035 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
18036 is clicked.
18037 (x_activate_menubar): Remove extern for saved_menu_event_location.
18038 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
18039 Move from mac.c.
18040
18041 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18042
18043 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
18044 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
18045
18046 2008-04-23 Jason Rumney <jasonr@gnu.org>
18047
18048 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
18049 attributes only for local files.
18050
18051 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
18052 default to Qlocal.
18053
18054 2008-04-22 Juri Linkov <juri@jurta.org>
18055
18056 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
18057 read-buffer-to-switch instead of using the letter "B".
18058
18059 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
18060
18061 * fileio.c (Qdefault_directory): New variable.
18062 (Fread_file_name): Use it to pass `dir' to the completion functions.
18063
18064 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
18065
18066 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
18067
18068 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
18069
18070 * keyboard.c (Vpre_help_message): Remove.
18071 (show_help_echo): Remove default C code.
18072
18073 * dired.c (directory_files_internal, file_name_completion):
18074 Only call ENCODE_FILE if the string is indeed decoded.
18075
18076 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
18077
18078 * Makefile.in (TOOLKIT_DEFINES): Remove.
18079 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
18080
18081 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18082
18083 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
18084 (mactoolbox.o): New target.
18085
18086 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
18087 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
18088
18089 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
18090 Use mac_set_frame_window_background instead of XSetWindowBackground.
18091 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
18092 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
18093 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
18094 instead of SetWindowTitleWithCFString.
18095 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
18096 Move function to mactoolbox.c.
18097 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
18098 Use mac_set_window_modified instead of SetWindowModified.
18099 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
18100 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
18101 (Fx_focus_frame): Use mac_front_non_floating_window instead of
18102 FrontNonFloatingWindow. Use mac_activate_window instead of
18103 ActivateWindow. Use mac_active_non_floating_window instead of
18104 ActiveNonFloatingWindow.
18105 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
18106 Use mac_show_hourglass and mac_hide_hourglass.
18107 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
18108 instead of GetGlobalMouse.
18109 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
18110 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
18111 Use mac_bring_window_to_front instead of BringToFront.
18112 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
18113 mactoolbox.c.
18114 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
18115 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
18116 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
18117 mactoolbox.c.
18118
18119 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
18120 (XtPointer): Move typedef from macmenu.c.
18121 (enum button_type): Move enum from macmenu.c.
18122 (widget_value): Move typedef from macmenu.c.
18123 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
18124 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
18125 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
18126 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
18127 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
18128 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
18129 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
18130 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
18131 (Selection): Move typedef from macselect.c.
18132 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
18133 macterm.c.
18134 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
18135 (mac_is_window_collapsed, mac_bring_window_to_front)
18136 (mac_send_window_behind, mac_hide_window, mac_show_window)
18137 (mac_collapse_window, mac_front_non_floating_window)
18138 (mac_active_non_floating_window, mac_activate_window)
18139 (mac_move_window_structure, mac_move_window, mac_size_window)
18140 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
18141
18142 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
18143 (enum mac_menu_kind): Move enum to mactoolbox.c.
18144 (min_menu_id): Move variable to mactoolbox.c.
18145 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
18146 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
18147 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
18148 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
18149 [TARGET_API_MAC_CARBON]: Likewise.
18150 (XtPointer): Move typedef to macgui.h.
18151 (enum button_type): Move enum to macgui.h.
18152 (widget_value): Move typedef to macgui.h.
18153 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
18154 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
18155 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
18156 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
18157 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
18158 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
18159 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
18160 (popup_activated_flag): Make variable non-static.
18161 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
18162 (add_menu_item, fill_menu, dispose_menus):
18163 Move functions to mactoolbox.c.
18164 (restore_show_help_function, menu_target_item_handler)
18165 (install_menu_target_item_handler, mac_handle_dialog_event)
18166 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
18167 [TARGET_API_MAC_CARBON]: Likewise.
18168 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
18169 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
18170 (find_and_call_menu_selection, name_is_separator): Make function
18171 non-static.
18172 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
18173 to mactoolbox.c.
18174 (set_frame_menubar): Don't call install_menu_quit_handler.
18175 (menu_item_selection): New variable.
18176 (mac_menu_show): Use create_and_show_popup_menu.
18177 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
18178 selection but set variable menu_item_selection. All uses changed.
18179 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
18180 Call install_menu_quit_handler. Move to mactoolbox.c.
18181
18182 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
18183 (Selection): Move typedef to macgui.h.
18184 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
18185 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
18186 Make variables non-static.
18187 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
18188 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
18189 Make functions non-static.
18190 (Vmac_service_selection) [MAC_OSX]: Likewise.
18191 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
18192 (mac_valid_selection_target_p, mac_clear_selection)
18193 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
18194 (mac_put_selection_value, mac_selection_has_target_p)
18195 (mac_get_selection_value, mac_get_selection_target_list)
18196 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
18197 Move functions to mactoolbox.c.
18198 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
18199 Likewise.
18200 (copy_scrap_flavor_data, mac_handle_service_event)
18201 (install_service_handler) [MAC_OSX]: Likewise.
18202 (syms_of_macselect) <Vmac_dnd_known_types>:
18203 Use mac_dnd_default_known_types.
18204
18205 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
18206 Move to mactoolbox.c.
18207 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
18208 (Fx_selection_owner_p): Add EXFUN.
18209 (install_window_handler, remove_window_handler, XSetWindowBackground):
18210 Remove externs.
18211 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
18212 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
18213 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
18214 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
18215 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
18216 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
18217 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
18218 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
18219 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
18220 (create_and_show_popup_menu, mac_get_selection_from_symbol)
18221 (mac_valid_selection_target_p, mac_clear_selection)
18222 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
18223 (mac_put_selection_value, mac_selection_has_target_p)
18224 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
18225 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
18226 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
18227 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
18228 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
18229 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
18230 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
18231 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
18232 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
18233
18234 * mactoolbox.c: New file.
18235
18236 2008-04-18 Jason Rumney <jasonr@gnu.org>
18237
18238 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
18239
18240 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
18241
18242 * character.c (Fmultibyte_char_to_unibyte):
18243 Return latin1 chars unchanged.
18244
18245 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
18246 relocated if it points to `name'.
18247
18248 2008-04-17 Kenichi Handa <handa@m17n.org>
18249
18250 * data.c (Faset): Allow setting a multibyte character in an
18251 ASCII-only unibyte string.
18252
18253 * lisp.h (STRING_SET_MULTIBYTE): New macro.
18254
18255 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
18256
18257 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
18258 done in config.h.
18259
18260 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
18261
18262 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
18263 (Fchar_direction): Add usage in the docstring.
18264
18265 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
18266
18267 * keyboard.c (read_key_sequence): Remove always-true checks.
18268
18269 2008-04-14 Jason Rumney <jasonr@gnu.org>
18270
18271 * w32font.c (w32font_open_internal): Set max_bounds.descent in
18272 compatibility struct, for better underline positioning.
18273
18274 2008-04-13 David Hansen <david.hansen@gmx.net>
18275
18276 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
18277 string.
18278
18279 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
18280
18281 * m/hp800.h (XUINT, XSET): Remove.
18282
18283 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
18284
18285 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
18286 previous change.
18287
18288 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
18289
18290 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
18291 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
18292
18293 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
18294
18295 * keymap.h (map_keymap_canonical): Declare.
18296 * xmenu.c (single_keymap_panes): Use it.
18297
18298 2008-04-11 Glenn Morris <rgm@gnu.org>
18299
18300 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
18301 set the target's value to that of the alias.
18302
18303 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
18304
18305 * term.c (set_tty_color_mode): Left over typo.
18306
18307 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
18308
18309 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
18310 only after check for file name handler functions. Signal, when
18311 native functionality is not supported.
18312 (syms_of_fileio): Declare it unconditionally.
18313
18314 2008-04-10 Jason Rumney <jasonr@gnu.org>
18315
18316 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
18317 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
18318
18319 * w32.c (logon_network_drive): Also logon to remote drives that
18320 are mapped to drive letters.
18321
18322 2008-04-10 Glenn Morris <rgm@gnu.org>
18323
18324 * xdisp.c (truncate-partial-width-windows): Doc fix.
18325
18326 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
18327
18328 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
18329 Move functions to minibuffer.el.
18330 (syms_of_fileio): Don't declare them.
18331
18332 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
18333
18334 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
18335 (syms_of_minibuf): Remove its initialization.
18336
18337 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
18338
18339 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
18340
18341 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
18342
18343 2008-04-09 Jason Rumney <jasonr@gnu.org>
18344
18345 * makefile.w32-in (distclean): Delete makefile too.
18346 (maintainer-clean): New target.
18347
18348 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
18349
18350 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
18351 for new font backend and composite cases.
18352
18353 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
18354
18355 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
18356 Most of the code moved to run_timers.
18357 (do_pending_atimers): Call run_timers.
18358 (run_timers): New function.
18359
18360 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
18361 run atimers.
18362
18363 * process.c (wait_reading_process_output): The same as above.
18364
18365 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
18366
18367 * minibuf.c (last_exact_completion): Remove variable.
18368 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
18369 (complete_and_exit_1, complete_and_exit_2)
18370 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
18371 (Fdisplay_completion_list, display_completion_list_1)
18372 (Fminibuffer_completion_help, Fself_insert_and_exit)
18373 (Fexit_minibuffer, Fminibuffer_message): Move functions to
18374 minibuffer.el.
18375 (syms_of_minibuf): Remove corresponding initializations.
18376
18377 * keyboard.c (Qdeactivate_mark): New var.
18378 (command_loop_1): Use it to call `deactivate-mark'.
18379 (syms_of_keyboard): Initialize it.
18380
18381 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
18382 to another frame.
18383 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
18384 Don't call set_tty_color_mode.
18385 (store_frame_param): Reset previous_frame rather than call
18386 set_tty_color_mode.
18387 * term.c (set_tty_color_mode): Rewrite.
18388 * dispextern.h (set_tty_color_mode): New type.
18389 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
18390
18391 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
18392
18393 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
18394 for generic chars, which do not exist any more in emacs-unicode.
18395
18396 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
18397
18398 * coding.c (detect_coding_emacs_mule)
18399 (Ffind_operation_coding_system): Fix typo.
18400
18401 2008-04-08 Jason Rumney <jasonr@gnu.org>
18402
18403 * w32uniscribe.c (SNAME): Extract only symbol name.
18404
18405 * w32font.h (struct w32_metric_cache): New struct.
18406 (w32font_info): Use it.
18407 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
18408 (CACHE_BLOCKSIZE): New constants.
18409
18410 * w32font.c (Qja, Qko, Qzh): New symbols.
18411 (syms_of_w32font): Initialise them.
18412 (font_matches_spec): Use them to filter by language.
18413 (recompute_cached_metrics): Remove function.
18414 (compute_metrics, clear_cached_metrics): New functions.
18415 (w32font_encode_char): Use them to manage metric cache.
18416 (w32font_text_extents): Cache metrics for all glyphs on demand.
18417 Delay converting glyph indices to WORD until needed.
18418 (w32font_open_internal): Initialize metric cache to empty.
18419 (registry_to_w32_charset): Charset should always be a symbol.
18420 (fill_in_logfont, list_all_matching_fonts): Family should
18421 always be a symbol.
18422
18423 2008-04-06 Jason Rumney <jasonr@gnu.org>
18424
18425 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
18426 Give up if glyph indices not supported. Use uniscribe obtained
18427 ABC widths for individual metrics. Map glyph clusters back to
18428 characters using fClusterStart flag. Return number of glyphs
18429 produced, not chars processed.
18430 (uniscribe_shape): Map char at FROM to current glyph.
18431
18432 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18433
18434 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
18435 Use SetMenuItemHierarchicalMenu.
18436
18437 2008-04-05 Jason Rumney <jasonr@gnu.org>
18438
18439 * image.c (pbm_load): Allow color values up to 65535.
18440 Throw an error if max_color_idx is outside the supported range.
18441 Report an error when image size is invalid.
18442 Read two bytes at a time when raw images have max_color_idx above 255.
18443
18444 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
18445
18446 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
18447 append "CCL: Quitted" when the CCL program is quitted.
18448 (setup_ccl_program): Initialize ccl->quit_silently to zero.
18449
18450 * ccl.h (struct ccl_program): New member quit_silently.
18451
18452 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
18453
18454 * search.c (compile_pattern_1): Treat non-nil and non-string of
18455 search-spaces-regexp as nil.
18456
18457 * minibuf.c (Fassoc_string): Tweak docstring.
18458
18459 2008-04-05 Eli Zaretskii <eliz@gnu.org>
18460
18461 * dired.c (Ffile_attributes): Support inode numbers wider than 32
18462 bits. Remove ugly WINDOWSNT-specific kludge introduced on
18463 2008-03-14 to force inode be positive.
18464
18465 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
18466 _S_* ones, since we now use our own sys/stat.h.
18467 (stat, fstat): Don't mangle the inode number.
18468 (init_user_info): Don't restrict UID and GID to 0-60000 range.
18469
18470 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
18471
18472 * frame.h (struct frame): Give one more bit to `visible' since we use
18473 values larger than 1 to indicate obscured frames on ttys.
18474
18475 * keymap.c (Qkeymap_canonicalize): New var.
18476 (Fmap_keymap_internal): New fun.
18477 (describe_map): Use keymap-canonicalize.
18478
18479 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
18480 (Fundo_boundary): Set them.
18481 (syms_of_undo): Initialize them.
18482 (record_point): Use them instead of last_point_position*.
18483 (last_undo_buffer): Change type.
18484
18485 2008-04-04 Jason Rumney <jasonr@gnu.org>
18486
18487 * w32font.c (w32font_text_extents): Use font's ascent and descent.
18488 (recompute_cached_metrics): Don't set ascent and descent per char.
18489
18490 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
18491 (uniscribe_check_otf): Add GC protection before consing.
18492 Rearrange loop for counting features.
18493
18494 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
18495
18496 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
18497 buffer with byte-size of source buffer.
18498
18499 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
18500
18501 * callint.c (Fcall_interactively): Handle temporary region even
18502 when shift-select-mode is off.
18503
18504 2008-04-03 Jason Rumney <jasonr@gnu.org>
18505
18506 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
18507
18508 2008-04-03 Kenichi Handa <handa@m17n.org>
18509
18510 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
18511 (CATEGORY_MASK_UTF_16): Likewise.
18512 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
18513 binary file.
18514 (detect_coding): Add null-byte detection for a binary file.
18515 (detect_coding_system): Likewise.
18516
18517 2008-04-03 Jason Rumney <jasonr@gnu.org>
18518
18519 * w32uniscribe.c: New file.
18520
18521 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
18522
18523 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
18524
18525 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
18526 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
18527 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
18528 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
18529 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
18530 (Qphonetic): New symbols.
18531 (syms_of_w32font): Initialize them.
18532 (font_supported_scripts): Use them.
18533 (w32font_list_family): List all charsets.
18534 (w32font_text_extents, recompute_cached_metrics): Fix metric
18535 calculations.
18536 (w32_enumfont_pattern_entity): Make full_type a DWORD.
18537 Give opentype fonts their own format.
18538 (font_matches_spec): New arguments backend and logfont.
18539 Handle :otf spec for uniscribe backend.
18540 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
18541 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
18542
18543 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
18544 font backend.
18545 (globals_of_w32fns): Initialize uniscribe font backend.
18546
18547 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
18548 dependencies.
18549 (w32uniscribe.$(O)): New file to build.
18550 (FONT_OBJ): Include w32uniscribe.$(O).
18551 (LIBS): Add uniscribe libraries.
18552
18553 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
18554
18555 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
18556
18557 * callint.c (Vshift_select_mode): New var.
18558 (Finteractive): Document new ^ spec.
18559 (Fcall_interactively): Call handle-shift-selection if the ^ spec
18560 is present.
18561
18562 * keyboard.c (Vthis_command_keys_shift_translated): New var.
18563 (command_loop_1): Avoid running the direct display versions of
18564 forward-char and backward-char if shift-selection may occur.
18565 (read_key_sequence): Set Vthis_command_keys_shift_translated if
18566 shift-translation takes place.
18567
18568 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
18569 avoid clobbering by define-minor-mode.
18570
18571 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
18572 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
18573
18574 * syntax.c (Fforward_word): Add ^ interactive spec.
18575
18576 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
18577 (Fscroll_right): Add ^ interactive spec.
18578
18579 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
18580
18581 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
18582
18583 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
18584
18585 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
18586
18587 2008-03-31 Juri Linkov <juri@jurta.org>
18588
18589 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
18590
18591 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
18592
18593 * gtkutil.c (xg_set_geometry): Fix indentation.
18594 (xg_resize_outer_widget): Remove.
18595 (x_wm_size_hint_off): Fix indentation.
18596 (xg_frame_set_char_size): Call flush_and_sync after
18597 gtk_window_resize.
18598 (x_wm_set_size_hint): Pass NULL as geometry window to
18599 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
18600 Add menu bar and tool bar height to base height.
18601 (xg_update_frame_menubar, free_frame_menubar)
18602 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
18603 (update_frame_tool_bar, free_frame_tool_bar):
18604 Change xg_resize_outer_widget to xg_frame_set_char_size.
18605
18606 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
18607
18608 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
18609 (Fdbus_call_method): New parameter TIMEOUT.
18610 (dbus-send-signal): Optimize UNGCPRO call.
18611
18612 2008-03-29 Juri Linkov <juri@jurta.org>
18613
18614 * window.c (Fdisplay_buffer): Move call to
18615 Vsplit_window_preferred_function out of conditions that check
18616 if window is eligible for vertical splitting.
18617 When Vsplit_window_preferred_function is non-nil, call it and use
18618 its non-nil return value as window. Otherwise, continue doing
18619 vertical splitting using Fsplit_window with arg horflag=nil.
18620 (syms_of_window) <Vsplit_window_preferred_function>: Change the
18621 default value from `split-window' to nil.
18622
18623 2008-03-29 Juri Linkov <juri@jurta.org>
18624
18625 * callint.c (Fcall_interactively): Revert 2008-03-16 change
18626 for interactive code letters 'b' and 'B'.
18627
18628 2008-03-29 Eli Zaretskii <eliz@gnu.org>
18629
18630 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
18631 multibyte string.
18632
18633 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
18634
18635 * keyboard.c (pending_funcalls): New var.
18636 (timer_check): Run it.
18637 (syms_of_keyboard): Initialize it.
18638 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
18639 (Vdelete_terminal_functions): New vars.
18640 (syms_of_terminal): Initialize them.
18641 (Fdelete_terminal): Run delete-terminal-functions.
18642 * xdisp.c (safe_eval): Rewrite.
18643 (safe_call2): New fun.
18644 * frame.c (Qdelete_frame_functions): New var.
18645 (syms_of_frame): Initialize it.
18646 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
18647 * lisp.h (safe_call2, pending_funcalls): Declare.
18648
18649 2008-03-28 Andreas Schwab <schwab@suse.de>
18650
18651 * indent.c (Fmove_to_column): Move declaration before statements.
18652
18653 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
18654
18655 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
18656 (struct frame): Use bit fields for boolean vars.
18657
18658 * process.c (server_accept_connection): Simplify naming.
18659 (emacs_get_tty_pgrp): Use SDATA.
18660
18661 * coding.c (decode_coding_object): Fix last change.
18662
18663 2008-03-27 Jason Rumney <jasonr@gnu.org>
18664
18665 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
18666
18667 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
18668
18669 * charset.c (Fdefine_charset_internal): Change the way of
18670 registering charsets in Vcharset_order_list.
18671 (syms_of_charset): Make the charset `eight-bit' supplementary.
18672
18673 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
18674
18675 * regex.c (EXTEND_BUFFER): Change order of pointer addition
18676 operations, to avoid having the difference between pointers
18677 overflow.
18678
18679 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
18680
18681 * indent.c (check_display_width): New fun.
18682 (scan_for_column): Use it.
18683
18684 * data.c (syms_of_data): Mark most-positive-fixnum and
18685 most-negative-fixnum as constants.
18686
18687 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
18688
18689 * indent.c (scan_for_column): Extract from current_column_1.
18690 Merge with the same code from Fmove_to_column.
18691 (current_column_1, Fmove_to_column): Use it.
18692
18693 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
18694
18695 * keymap.c (map_keymap_internal): New fun.
18696 (map_keymap): Use it.
18697 (Fmap_keymap_internal): New fun.
18698 (Fmap_keymap): Remove left-out test from before make_save_value.
18699
18700 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
18701
18702 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
18703 Use XCAR/XCDR.
18704
18705 * process.h (struct Lisp_Process): Remove filter_multibyte.
18706 * process.c (QCfilter_multibyte): Remove.
18707 (setup_process_coding_systems): Don't use filter_multibyte.
18708 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
18709 (read_process_output): Don't adjust multibyteness to filter_multibyte.
18710 (Fset_process_filter_multibyte): Change the coding-system to
18711 approximate the previous behavior.
18712 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
18713 coding-system.
18714
18715 * coding.c (decode_coding_object): When not decoding into a buffer,
18716 obey the coding system's preference of (uni|multi)byte.
18717
18718 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
18719
18720 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
18721 every char is changed and has a different byte-length.
18722 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
18723 Fix int -> EMACS_INT.
18724
18725 2008-03-23 David Hansen <david.hansen@gmx.net>
18726
18727 * dbusbind.c (xd_read_message): Remove extra copying of message
18728 strings. Check for NULL `interface' or `member'.
18729
18730 2008-03-22 Eli Zaretskii <eliz@gnu.org>
18731
18732 * w32.c (readdir): If FindFirstFile/FindNextFile return in
18733 cFileName a file name that includes `?' characters, use the 8+3
18734 alias in cAlternateFileName instead.
18735
18736 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
18737
18738 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
18739
18740 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
18741
18742 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
18743 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
18744 work on current_buffer only instead (that was already the case
18745 for some of the code anyway).
18746 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
18747 (temp_set_point, temp_set_point_both): Use EMACS_INT.
18748 (SET_PT, SET_PT_BOTH): Adjust.
18749 * intervals.h (set_point, temp_set_point, set_point_both)
18750 (temp_set_point_both): Remove redundant declarations.
18751
18752 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
18753
18754 * fileio.c (Finsert_file_contents):
18755 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
18756 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
18757 when buffer != current_buffer anyway.
18758
18759 2008-03-20 Andreas Schwab <schwab@suse.de>
18760
18761 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
18762 as default.
18763
18764 2008-03-19 Jason Rumney <jasonr@gnu.org>
18765
18766 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
18767 (syms_of_w32fns): Initialize them.
18768 (HOURGLASS_ID): New constant.
18769 (x_window_to_frame): Don't check hourglass_window.
18770 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
18771 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
18772 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
18773 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
18774 Only change the cursor if hourglass is not active.
18775 (Fx_create_frame): Initialize frame's current_cursor.
18776 (hourglass_atimer): Remove.
18777 (hourglass_started): New function.
18778 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
18779 (show_hourglass): Adapt to w32, changing argument to frame.
18780
18781 * w32term.h (struct w32_output): Remove hourglass_window.
18782 Add current_cursor.
18783
18784 * eval.c (call_debugger, Fsignal):
18785 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
18786 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
18787 (Fexecute_extended_command, cancel_hourglass_unwind):
18788 * minibuf.c (read_minibuf):
18789 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
18790
18791 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
18792
18793 * window.c (run_funs): New fun.
18794 (run_window_configuration_change_hook): Use it to run the buffer-local
18795 and the global part of the hook.
18796
18797 * xdisp.c (format_mode_line_unwind_data): Add window argument.
18798 (unwind_format_mode_line): Restore selected window.
18799 (x_consider_frame_title, Fformat_mode_line): Set selected window.
18800
18801 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
18802
18803 * editfns.c (Fchar_equal): Check they are valid characters.
18804
18805 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
18806
18807 2008-03-17 Andreas Schwab <schwab@suse.de>
18808
18809 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
18810 against a charset.
18811
18812 * lisp.h (Fbuffer_list): Declare.
18813
18814 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
18815
18816 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
18817 handlebox_widget is != 0.
18818
18819 2008-03-16 Juri Linkov <juri@jurta.org>
18820
18821 * callint.c (Fcall_interactively): For interactive code letters
18822 'b' and 'B' put the buffer list into the list of default "future"
18823 values of the minibuffer.
18824
18825 2008-03-16 Andreas Schwab <schwab@suse.de>
18826
18827 * keyboard.c (read_key_sequence): Fix downcasing of letters with
18828 modifiers.
18829
18830 * regex.c (re_match_2_internal): Correct matching of a charset
18831 against latin-1 characters.
18832
18833 2008-03-16 Kenichi Handa <handa@m17n.org>
18834
18835 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
18836 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
18837 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
18838 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
18839 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
18840 CHAR_STRING_ADVANCE.
18841 (produce_chars): Fix for the case that the source and the
18842 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
18843 instead of CHAR_STRING_ADVANCE.
18844 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
18845 STRING_CHAR_ADVANCE.
18846
18847 2008-03-15 Andreas Schwab <schwab@suse.de>
18848
18849 * regex.c (re_match_2_internal): Correct matching of eight bit
18850 characters in unibyte strings.
18851
18852 2008-03-15 Martin Rudalics <rudalics@gmx.at>
18853
18854 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
18855 at end of range when it coincides with the end of the buffer.
18856
18857 2008-03-14 Eli Zaretskii <eliz@gnu.org>
18858
18859 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
18860
18861 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
18862
18863 2008-03-14 Jason Rumney <jasonr@gnu.org>
18864
18865 * editfns.c (initial_tz): New variable.
18866 (syms_of_editfns): Initialize it.
18867 (Fset_time_zone_rule): Set it when first called.
18868 Use it when TZSTRING is nil.
18869
18870 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
18871 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
18872 (monitor_from_point_fn, get_monitor_info_fn): New globals.
18873 (globals_of_w32fns): Initialize them.
18874 (compute_tip_xy): Use them to position tooltips.
18875
18876 2008-03-14 Glenn Morris <rgm@gnu.org>
18877
18878 * emacs.c (main): Revert previous change.
18879 (standard_args): Revert -internal-script back to -scriptload,
18880 and remove the long-option form.
18881
18882 2008-03-13 Glenn Morris <rgm@gnu.org>
18883
18884 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
18885 Remove option -enable-font-backend.
18886
18887 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
18888
18889 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
18890
18891 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
18892
18893 * xterm.c (x_connection_closed): For GTK: If this is the last
18894 terminal just exit without closing the display.
18895
18896 2008-03-11 Jason Rumney <jasonr@gnu.org>
18897
18898 * w32font.c (w32font_full_name): Use floor to round.
18899
18900 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
18901
18902 * sound.c (alsa_configure): Declare vol at beginning of block.
18903
18904 * fontset.c (Ffontset_info): Remove extra semicolon.
18905
18906 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
18907
18908 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
18909 size of resulting string.
18910
18911 2008-03-10 Jason Rumney <jasonr@gnu.org>
18912
18913 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
18914
18915 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18916
18917 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
18918 Don't pretend as if characters with display property haven't been
18919 consumed for string-replacing-string case.
18920
18921 2008-03-08 Kim F. Storm <storm@cua.dk>
18922
18923 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
18924 (get_next_display_element, next_element_from_string)
18925 (next_element_from_ellipsis, next_element_from_buffer): Use it.
18926
18927 2008-03-08 Andreas Schwab <schwab@suse.de>
18928
18929 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
18930
18931 2008-03-06 Jason Rumney <jasonr@gnu.org>
18932
18933 * w32font.c (w32_registry): Take font_type argument. Use ANSI
18934 when charset not specified. Only translate ANSI to unicode when
18935 font_type is truetype.
18936 (w32font_coverage_ok): New function.
18937 (add_font_entity_to_list): Use it to filter unsuitable fonts.
18938
18939 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
18940
18941 * lread.c (Fread_char): Resolve modifiers.
18942 (Fread_char_exclusive): Likewise.
18943
18944 * character.c (char_resolve_modifier_mask): New function.
18945 (char_string): Use char_resolve_modifier_mask.
18946 (Fchar_resolve_modifiers): New function.
18947 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
18948 function.
18949
18950 2008-03-04 Jason Rumney <jasonr@gnu.org>
18951
18952 * makefile.w32-in: Always include w32font.c in the build.
18953 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
18954
18955 2008-03-04 Andreas Schwab <schwab@suse.de>
18956
18957 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
18958 (versionclean): Likewise.
18959
18960 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
18961
18962 * .cvsignore: Add oo.
18963
18964 2008-03-03 Andreas Schwab <schwab@suse.de>
18965
18966 * coding.c (decode_coding_object): Inhibit gap shrinking while
18967 decoding in place.
18968
18969 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
18970
18971 * w32term.c: Remove unused include "gnu.h".
18972 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
18973
18974 * gnu.h: Rename to ...
18975 * emacs-icon.h: ... this.
18976 * xterm.c: Use emacs-icon.h instead of gnu.h.
18977 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
18978
18979 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
18980
18981 * w32font.c: Include math.h.
18982
18983 2008-03-03 Jason Rumney <jasonr@gnu.org>
18984
18985 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
18986 Compute options separately.
18987 (w32font_open_internal): Set glyph_idx before caching metrics.
18988
18989 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
18990 Define if system headers don't.
18991 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
18992 (w32font_encode_char): Don't declare here.
18993
18994 * w32font.c (Quniscribe, QCformat): New symbols.
18995 (syms_of_w32font): Define them.
18996 (w32font_has_char): Indicate uncertainty.
18997 (w32font_encode_char): Encode as glyph point. Make static.
18998 (recompute_cached_metrics): New function.
18999 (w32font_open_internal): Use it. Set font to use glyph points
19000 initially. Set format based on type of font.
19001 (w32font_text_extents, w32font_draw): Optionally use glyph points.
19002 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
19003 on it. Set format based on information available here.
19004 (add_font_entity_to_list): Identify backend based on opentype_only.
19005
19006 2008-03-02 Andreas Schwab <schwab@suse.de>
19007
19008 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
19009
19010 * coding.c (decode_coding_big5, produce_chars):
19011 Fix typos in last change.
19012
19013 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
19014
19015 * gnu.h: New icon.
19016
19017 2008-03-02 Kenichi Handa <handa@m17n.org>
19018
19019 * coding.c (decode_coding_utf_8): When eol-type of CODING is
19020 `dos', don't decode '\r' if that is the last in the source.
19021 (decode_coding_utf_16, decode_coding_emacs_mule)
19022 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19023 (decode_coding_raw_text, decode_coding_charset): Likewise.
19024 (produce_chars): Don't decode EOL here. Use EMACS_INT.
19025
19026 2008-03-01 Jason Rumney <jasonr@gnu.org>
19027
19028 * w32font.c (w32font_full_name): Report point size for scalable fonts.
19029
19030 2008-03-01 Kim F. Storm <storm@cua.dk>
19031
19032 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
19033
19034 2008-03-01 Jason Rumney <jasonr@gnu.org>
19035
19036 * w32font.c (w32font_full_name): New function.
19037 (w32font_open_internal): Use it.
19038
19039 2008-03-01 Kim F. Storm <storm@cua.dk>
19040
19041 * dispnew.c (line_draw_cost): Fix invalid glyph check.
19042
19043 2008-03-01 Jason Rumney <jasonr@gnu.org>
19044
19045 * font.c (font_unparse_fcname): Increase len when style is a symbol.
19046
19047 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
19048
19049 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
19050 xg_frame_resized when the event is for the edit widget.
19051
19052 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
19053
19054 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
19055 set_char_size.
19056 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
19057 operations on widgets here. Just set frame size if needed.
19058 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
19059 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
19060 (x_wm_set_size_hint): Set size hints on the edit widget only, not
19061 the whole frame.
19062 (xg_create_tool_bar): Move attachment of the tool bar to
19063 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
19064 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
19065
19066 2008-03-01 Jason Rumney <jasonr@gnu.org>
19067
19068 * w32fns.c (w32_msg_pump): Disable debug code.
19069
19070 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19071
19072 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
19073
19074 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
19075
19076 * xdisp.c (next_overlay_string): Don't set
19077 overlay_strings_at_end_processed_p if we're currently reading from
19078 a display string.
19079
19080 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
19081
19082 * xdisp.c (get_overlay_strings_1): Fix typo.
19083
19084 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
19085
19086 * xdisp.c (get_overlay_strings_1): Add missing argument type.
19087
19088 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
19089
19090 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
19091
19092 * xdisp.c (display_mode_element): Cancel the previous change.
19093 (decode_mode_spec): Likewise.
19094 (handle_auto_composed_prop): Don't make composition if it->string
19095 is a string.
19096
19097 2008-02-27 Kim F. Storm <storm@cua.dk>
19098
19099 * lisp.h (GLYPH): Change type from int to struct with separate char
19100 and face_id members.
19101 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
19102 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
19103 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
19104 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
19105 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
19106 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
19107 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
19108 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
19109 handle new Lisp glyph code encoding, either an integer or a cons.
19110
19111 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
19112 (GLYPH_ALIAS): Delete.
19113 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
19114 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
19115 (GLYPH_FROM_CHAR): Replace macro by ...
19116 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
19117
19118 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
19119 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
19120 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
19121 (GLYPH_INVALID_P): New macro.
19122 (spec_glyph_lookup_face): Update prototype.
19123
19124 * dispnew.c (line_draw_cost): Adapt to new glyph type.
19125 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
19126 new glyph code encoding.
19127 (spec_glyph_lookup_face): No return value; update passed glyph instead.
19128 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
19129
19130 * xdisp.c (get_next_display_element, next_element_from_display_vector):
19131 Adapt to new glyph type and new glyph code encoding.
19132
19133 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
19134
19135 * indent.c (current_column, current_column_1, Fmove_to_column)
19136 (compute_motion): Adapt to new glyph code encoding.
19137
19138 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
19139
19140 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
19141
19142 * process.c (wait_reading_process_output): Check for window
19143 changes caused by timers.
19144 Suggested by Johan Bockgård.
19145
19146 2008-02-27 Glenn Morris <rgm@gnu.org>
19147
19148 * emacs.c (USAGE1): Add `--disable-font-backend'.
19149
19150 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
19151
19152 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
19153 is made to the buffer.
19154
19155 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
19156
19157 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
19158 (face_at_string_position):
19159 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
19160 (face_at_string_position):
19161 * xdisp.c (display_string, next_overlay_change):
19162 * buffer.h (overlays_at):
19163 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
19164 Update callers.
19165
19166 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
19167
19168 * editfns.c (Fformat): Doc fix.
19169
19170 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
19171
19172 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
19173 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
19174 (Ffont_otf_alternates, Fquery_font): Doc fixes.
19175
19176 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
19177
19178 * buffer.c (Fbuffer_swap_text): New function.
19179 (syms_of_buffer): Defsubr it.
19180
19181 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
19182
19183 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
19184
19185 2008-02-25 Jason Rumney <jasonr@gnu.org>
19186
19187 * w32font.c (w32font_draw): Draw one character at a time when padding.
19188
19189 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
19190
19191 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
19192 Handle a nil arg. Use run_window_configuration_change_hook.
19193 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
19194 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
19195 Use run_window_configuration_change_hook.
19196
19197 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
19198
19199 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
19200 1-pixel width.
19201
19202 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
19203
19204 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
19205 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
19206 if the glyph in the font is zero pixel with.
19207
19208 * dispextern.h (struct glyph_string): New member padding_p.
19209
19210 * w32font.c (w32font_draw): Pay attention to s->padding_p.
19211
19212 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
19213
19214 * xfont.c (xfont_draw): Pay attention to s->padding_p.
19215
19216 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
19217
19218 * font.c: If the font driver doesn't have `shape' function, return Qnil.
19219
19220 2008-02-25 Jason Rumney <jasonr@gnu.org>
19221
19222 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
19223
19224 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
19225
19226 Allow fine-grained image-cache flushing.
19227 * dispextern.h (struct image): Add `dependencies' field.
19228 (clear_image_caches): Change arg to Lisp_Object.
19229 * image.c (make_image): Initialize `dependencies' field.
19230 (clear_image_cache): Change arg to allow fine-grained flushing.
19231 Perform the flush even if image-cache-eviction-delay is nil.
19232 (clear_image_caches): Change arg to Lisp_Object.
19233 (Fclear_image_cache): Expand meaning of the argument.
19234 (mark_image): Mark `dependencies' field.
19235 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
19236 (lface_hash): Use XHASH rather than XFASTINT.
19237 (face_at_buffer_position): Fix int -> EMACS_INT position.
19238 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
19239 (select_frame_for_redisplay): Remove code duplication.
19240 (redisplay_internal): Adapt arg to call to clear_image_caches.
19241
19242 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
19243
19244 * s/vms4-0.h:
19245 * s/vms4-2.h:
19246 * s/vms4-4.h:
19247 * s/vms5-5.h: Remove, unused.
19248
19249 * s/irix5-2.h:
19250 * s/irix6-0.h:
19251 * s/riscos5.h:
19252 * s/mach-bsd4-3.h:
19253 * m/mips4.h: Remove files for obsolete systems.
19254
19255 * Makefile.in:
19256 * filelock.c:
19257 * unexmips.c:
19258 * m/hp9000s300.h:
19259 * m/iris4d.h:
19260 * s/aix3-1.h:
19261 * s/hpux.h:
19262 * s/msdos.h:
19263 * s/usg5-0.h:
19264 * s/usg5-2-2.h:
19265 * s/usg5-2.h:
19266 * s/usg5-3.h: Remove references to obsolete variables.
19267
19268 * s/irix5-0.h: Remove, move all the contents ...
19269 * s/irix6-5.h: ... here. Simplify.
19270 * config.in: Regenerate.
19271
19272 2008-02-24 Jason Rumney <jasonr@gnu.org>
19273
19274 * w32term.c (x_draw_glyph_string_background): Clear the background
19275 manually when cleartype is in use.
19276 (x_draw_glyph_string_foreground): Draw text transparently when
19277 cleartype is in use.
19278
19279 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
19280 a font into it unless we have to.
19281
19282 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
19283
19284 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
19285 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
19286
19287 2008-02-18 Jason Rumney <jasonr@gnu.org>
19288
19289 * w32fns.c (Fw32_shell_execute): Encode parameters.
19290
19291 2008-02-09 Eli Zaretskii <eliz@gnu.org>
19292
19293 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
19294
19295 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
19296
19297 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
19298
19299 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
19300
19301 * xterm.c (x_set_offset): Don't change the gravity if
19302 CHANGE_GRAVITY is -1.
19303
19304 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
19305
19306 * fileio.c (auto_save_error_occurred): New var.
19307 (auto_save_error): Set it.
19308 (Fdo_auto_save): Don't overwrite the error message if an auto-save
19309 error occurred.
19310
19311 2008-02-23 Eli Zaretskii <eliz@gnu.org>
19312
19313 * w32.c (globals_of_w32): Add initializations for
19314 g_b_init_get_sid_sub_authority and
19315 g_b_init_get_sid_sub_authority_count.
19316
19317 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
19318
19319 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
19320 (font_parse_xlfd): Use them for sanity check.
19321 (Finternal_set_font_style_table): Make sure the table is bijective.
19322
19323 Consolidate the image_cache to the terminal struct.
19324 * termhooks.h (P_): Remove redundant def.
19325 (struct terminal): New field `image_cache'.
19326 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
19327 of FRAME_X_IMAGE_CACHE.
19328 * xterm.h (struct x_display_info): Remove image_cache field.
19329 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
19330 * w32term.h (struct w32_display_info): Remove image_cache field.
19331 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
19332 * macterm.h (struct mac_display_info): Remove image_cache field.
19333 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
19334 * xterm.c (x_term_init):
19335 * w32term.c (w32_term_init):
19336 * macterm.c (mac_term_init): Set the image_cache in the terminal.
19337 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
19338 Remove declarations.
19339 (clear_image_caches, mark_image_cache): New declarations.
19340 * xfaces.c (clear_face_cache):
19341 * xdisp.c (redisplay_internal): Use clear_image_caches.
19342 * image.c (clear_image_cache): Don't check that a frame is on
19343 a window-system before checking if it shares the same cache.
19344 (clear_image_caches): New function.
19345 (Fclear_image_cache): Use it.
19346 (mark_image): Move from allo.c.
19347 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
19348 * alloc.c (mark_image, mark_image_cache): Move to image.c.
19349 (mark_object): Don't call mark_image_cache for frames.
19350 (mark_terminals): Call mark_image_cache.
19351
19352 * lisp.h (Fdelete_terminal): Declare.
19353
19354 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
19355 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
19356 wrong_type_argument.
19357
19358 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
19359
19360 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
19361 malayalam.el, and tamil.el. Add sinhala.el.
19362
19363 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
19364
19365 * xterm.c (x_connection_closed): Consolidate identical tests.
19366 (x_delete_terminal): Don't crash if called via x_connection_closed.
19367
19368 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
19369
19370 * xdisp.c (decode_mode_spec): New arg string.
19371 (display_mode_element): Adjust for the above change.
19372
19373 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
19374
19375 * callint.c (Fcall_interactively): Use AREF.
19376
19377 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
19378
19379 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
19380
19381 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
19382
19383 * xfns.c (Fx_show_tip): Set string to " " if empty.
19384
19385 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
19386
19387 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
19388 with Qt.
19389
19390 2008-02-17 Kenichi Handa <handa@m17n.org>
19391
19392 * ftfont.c (ftfont_shape): Return Lispy number.
19393
19394 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
19395 for GCs.
19396 (Finternal_set_font_selection_order): Call font_update_sort_order
19397 only when enable_font_backend is set.
19398 (realize_x_face): Set face->font_info to that of default face only
19399 when enable_font_backend is set.
19400
19401 * xdisp.c (handle_composition_prop): Set it->c to the fist
19402 character of the composed region.
19403 (fill_composite_glyph_string): Set base_face->font_info to
19404 s->font_info. Get a face for ascii from base_face->ascii_face.
19405 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
19406 with a face already decided.
19407 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
19408 non-negative.
19409 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
19410 call font_prepare_composition unconditionally.
19411
19412 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
19413
19414 * xterm.h (struct x_display_info): New member font.
19415
19416 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
19417 (x_set_mouse_face_gc, x_new_font): Likewise.
19418 (x_term_init): Setup display_info->font.
19419 (x_delete_terminal): Free display_info->font.
19420
19421 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
19422
19423 * ftxfont.c (ftxfont_default_fid): Delete it.
19424 (ftxfont_open): Set xfont->fid to 0.
19425 (ftxfont_end_for_frame): Clear data specific to the frame and the
19426 font-driver.
19427
19428 * xftfont.c (xftfont_default_fid): Delete it.
19429 (xftfont_open): Set xfont->fid to 0.
19430
19431 * fontset.c (FONTSET_OBJLIST): New macro.
19432 (fontset_find_font): Update font-object list of the fontset.
19433 (free_realized_fontset): New function.
19434 (free_face_fontset): Call free_realized_fontset.
19435 (Ffont_info): Call font_close_object only when enable_font_backend
19436 is set.
19437
19438 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
19439 [HAVE_NTGUI]: Include w32term.h.
19440 [MAC_OS]: Include macterm.ch.
19441 (font_otf_ValueRecord): Use make_number.
19442 (font_finish_cache): Fix handling of reference count.
19443 (font_clear_cache): Update num_fonts.
19444 (font_open_entity): Update smallest_char_width and
19445 smallest_font_height of the frame.
19446 (font_close_object): Update num_fonts.
19447 (Fclear_font_cache): Fix finding the target cache data.
19448
19449 2008-02-16 Glenn Morris <rgm@gnu.org>
19450
19451 * fontset.c (Finternal_char_font): Fix compilation warning.
19452
19453 2008-02-16 Eli Zaretskii <eliz@gnu.org>
19454
19455 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
19456 instead of char arrays. Enlarge the size of array passed to
19457 get_token_information.
19458
19459 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
19460 warnings.
19461
19462 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
19463
19464 * .gdbinit: Don't set `args', it breaks gdb --args.
19465
19466 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
19467
19468 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
19469 within a narrowed buffer.
19470
19471 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
19472
19473 * coding.c (decode_coding_object, encode_coding_object):
19474 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
19475
19476 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
19477
19478 * coding.c (coding_set_destination): Use BEG_BYTE rather than
19479 hardcoding 1.
19480 (detect_coding_system):
19481 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
19482 (string_char_to_byte, string_byte_to_char, insert_from_gap):
19483 * insdel.c (insert_from_gap):
19484 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
19485 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
19486 (string_to_multibyte):
19487 * character.c (chars_in_text, multibyte_chars_in_text):
19488 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
19489
19490 * character.h (FETCH_STRING_CHAR_ADVANCE)
19491 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
19492 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
19493 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
19494
19495 * casefiddle.c (casify_region): Only call after-change and composition
19496 functions on the part of the region that was changed.
19497
19498 * keyboard.c (read_avail_input):
19499 * frame.c (Fdelete_frame): Call Fdelete_terminal.
19500
19501 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
19502
19503 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
19504 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
19505
19506 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
19507
19508 * w32menu.c (push_submenu_start, push_submenu_end)
19509 (push_left_right_boundary, push_menu_pane, push_menu_item):
19510 * keyboard.c (read_key_sequence): Don't pass args with side effects
19511 to AREF, it fails when compiling with -DENABLE_CHECKING.
19512
19513 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
19514
19515 * Makefile.in (${lispsource}international/charprop.el):
19516 Delete this target.
19517
19518 * search.c (boyer_moore): Fix incorrect synching of the trunk and
19519 emacs-unicode-2.
19520
19521 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
19522
19523 * terminal.c (Fdelete_terminal): Clean up the `force' path.
19524
19525 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
19526
19527 * frame.c (Qnoelisp): New symbol.
19528 (syms_of_frame): Initialize it.
19529 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
19530 harmless Elisp code, from a strong `force' from x_connection_closed.
19531 * frame.h (Qnoelisp): Declare.
19532 * xterm.c (x_connection_closed): Pass `noelisp'.
19533
19534 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
19535 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
19536 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
19537 rather than `int' for the type of `type'.
19538
19539 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
19540
19541 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
19542
19543 * Makefile.in (GNUC): Remove support for gcc-1.x.
19544
19545 2008-02-10 Richard Stallman <rms@gnu.org>
19546
19547 * lisp.h (ASET): Use AREF, not ASLOT.
19548
19549 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
19550
19551 * lisp.h (ASET): Check bounds.
19552
19553 2008-02-10 Glenn Morris <rgm@gnu.org>
19554
19555 * buffer.c (mode-name): Doc fix.
19556
19557 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
19558
19559 * Makefile.in:
19560 * emacs.c:
19561 * gmalloc.c:
19562 * keyboard.c:
19563 * lisp.h:
19564 * m/ibm370aix.h:
19565 * process.c:
19566 * regex.c:
19567 * s/hpux.h:
19568 * sysdep.c:
19569 * sysselect.h:
19570 * systty.h:
19571 * unexec.c:
19572 * w32term.c:
19573 * xsmfns.c:
19574 * xterm.c: Remove code that deals with obsolete variables.
19575
19576 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
19577
19578 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
19579 nothing else needs it anymore.
19580
19581 2008-02-09 Eli Zaretskii <eliz@gnu.org>
19582
19583 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
19584 instead of unibyte_char_to_multibyte.
19585
19586 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
19587
19588 * s/gnu-linux.h: Remove commented out code.
19589
19590 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
19591
19592 * Makefile.in: Update what RMS says about using autoconf.
19593 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
19594 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
19595 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
19596 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
19597
19598 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
19599
19600 * keymap.c (Fkey_description): Move side effect outside of macro call.
19601
19602 * xfaces.c (Finternal_make_lisp_face):
19603 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
19604
19605 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
19606 (syms_of_fontset): Use ASET.
19607
19608 * fns.c (concat): Move side effect outside of macro call.
19609 (hash_clear): Use ASET.
19610
19611 2008-02-08 Richard Stallman <rms@gnu.org>
19612
19613 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
19614 If FORCE, and frame has a surrogate minibuffer for another frame,
19615 delete the other frame first.
19616
19617 2008-02-07 Timo Savola <timo.savola@iki.fi>
19618
19619 * xterm.c (x_detect_focus_change): Handle embed client message.
19620 (handle_one_xevent): Ditto.
19621 (handle_one_xevent): If embedded and we get a button press/release,
19622 request focus.
19623 (xembed_set_info, xembed_send_message): New functions.
19624 (x_make_frame_visible): Call xembed_set_info if embedded.
19625 (x_make_frame_invisible): Call xembed_set_info if embedded.
19626 (x_term_init): Initialize Xatom_XEMBED.
19627 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
19628 (x_iconify_frame): Ditto.
19629
19630 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
19631 (enum xembed_info, enum xembed_message, enum xembed_focus)
19632 (enum xembed_modifier, enum xembed_accelerator): New.
19633 (xembed_set_info, xembed_send_message): Declare.
19634 (FRAME_X_EMBEDDED_P): New.
19635
19636 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
19637 gtk_plug_new.
19638
19639 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
19640 window ID of a frame.
19641 (x_window): Reparent frame if embedded.
19642 (Fx_create_frame): Don't set border width if embedded.
19643
19644 * emacs.c (USAGE3): Add --parent-id.
19645 (standard_args): Ditto.
19646
19647 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
19648
19649 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
19650
19651 2008-02-07 Jim Meyering <meyering@redhat.com>
19652
19653 Use "do...while (0)", not "if (1)...else" in macro definitions.
19654 The latter provokes a warning from gcc about the empty else, when
19655 followed by ";". Also, without that trailing semicolon, it would
19656 silently swallow up any following statement.
19657 * syntax.h (SETUP_SYNTAX_TABLE)
19658 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
19659 * buffer.h (DECODE_POSITION): Likewise.
19660 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
19661 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
19662 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
19663 (FETCH_CHAR_ADVANCE): Likewise.
19664 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
19665
19666 2008-02-07 Jim Meyering <meyering@redhat.com>
19667
19668 * lread.c [lint]: Don't include <sys/inode.h>.
19669
19670 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
19671
19672 * xselect.c (x_handle_dnd_message):
19673 * xmenu.c (digest_single_submenu, xmenu_show):
19674 * xdisp.c (with_echo_area_buffer_unwind_data)
19675 (format_mode_line_unwind_data, unwind_format_mode_line)
19676 (display_menu_bar):
19677 * eval.c (Ffetch_bytecode):
19678 * doc.c (store_function_docstring):
19679 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
19680 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
19681 * buffer.c (add_overlay_mod_hooklist): Use ASET.
19682
19683 2008-02-07 Kenichi Handa <handa@m17n.org>
19684
19685 * ftxfont.c (ftxfont_open): Don't set
19686 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
19687
19688 * ftfont.c (ftfont_open): Fix previous change.
19689
19690 2008-02-06 Jason Rumney <jasonr@gnu.org>
19691
19692 * w32font.c (w32font_text_extents): Fill in lbearing metric.
19693 Use cached metrics for ASCII characters.
19694 (w32font_open_internal): Don't set font's owning_frame.
19695 Cache metrics for ASCII characters.
19696
19697 * w32font.h (struct w32font_info): Add ascii_metrics.
19698 Remove owning_frame.
19699
19700 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
19701
19702 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
19703 to negative value.
19704
19705 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
19706
19707 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
19708
19709 * charset.c (syms_of_charset): Set QCtest and Qeq.
19710
19711 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
19712
19713 * process.c (Fstart_process):
19714 * callproc.c (Fcall_process): Handle the case where
19715 Funhandled_file_name_directory returns nil.
19716
19717 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
19718 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
19719 * font.c (check_gstring): Use them and AREF to access the vector before
19720 we know it's really a gstring.
19721 (Ffont_shape_text): Fix typo.
19722 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
19723
19724 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
19725 Declare.
19726
19727 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
19728
19729 2008-02-05 Jason Rumney <jasonr@gnu.org>
19730
19731 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
19732 Set smallest_font_height and smallest_char_width in display info.
19733
19734 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
19735
19736 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
19737
19738 2008-02-05 Miles Bader <miles@gnu.org>
19739
19740 * xfaces.c (get_lface_attributes, merge_named_face)
19741 (lookup_named_face, lookup_derived_face, realize_named_face):
19742 Revert 2008-02-01 change by cyd@stupidchicken.com.
19743
19744 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
19745
19746 * fontset.c (Ffontset_info): Handle the case of inhibitting the
19747 fallback fonts.
19748 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
19749
19750 2008-02-04 Jason Rumney <jasonr@gnu.org>
19751
19752 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
19753 set full_name.
19754 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
19755
19756 2008-02-03 Jason Rumney <jasonr@gnu.org>
19757
19758 * makefile.w32-in (OBJ1): Include font.o here.
19759 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
19760
19761 2008-02-02 Jason Rumney <jasonr@gnu.org>
19762
19763 * makefile.w32-in (temacs): Bump EMHEAP to 21.
19764
19765 2008-02-01 Jason Rumney <jasonr@gnu.org>
19766
19767 * s/cygwin.h: Define VIRT_ADDR_VARIES.
19768
19769 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
19770
19771 2008-02-01 Andreas Schwab <schwab@suse.de>
19772
19773 * Makefile.in (shortlisp, lisp): Update for rename of
19774 ../lisp/language/myanmar.el.
19775
19776 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
19777
19778 * xfaces.c (get_lface_attributes): Delete function.
19779 (merge_named_face, lookup_named_face, lookup_derived_face)
19780 (realize_named_face): Call lface_from_face_name directly, and use
19781 the fact that merge_face_vectors does not alter its FROM argument.
19782
19783 2008-02-01 Jason Rumney <jasonr@gnu.org>
19784
19785 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
19786 input in the default locale. Handle non-Unicode multibyte input.
19787
19788 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19789
19790 * fontset.c (reorder_font_vector): Exclude nil elements from the
19791 font group. Don't try multiple fonts.
19792 (fontset_font): Adjust for the above change.
19793 (Finternal_char_font): Return nil if the found font doesn't
19794 contain the character ch.
19795
19796 * Makefile.in (lisp, shortlisp): Add cham.el.
19797
19798 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19799
19800 * font.h (FONTP): Make it return 1 also for a font-object.
19801
19802 * .gdbinit (xfontset): New function.
19803
19804 * font.c (font_find_for_lface): Check if the character C is
19805 supported or not only for the first font.
19806
19807 * fontset.c (reorder_font_vector): Fix typo.
19808 (fontset_find_font): Don't add a font-spec specifying a script.
19809 Use 0 (not Qt) for the indication of empty font-group. Change the
19810 format of RFONT-DEF. Return Qt if no font in the font-group
19811 support the character.
19812 (fontset_font): Adjust for the above change. If no font was
19813 found the character, remember that.
19814 (face_for_char): Adjust for the change of RFONT-DEF.
19815 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
19816 no font for the target.
19817 (Finternal_char_font): Adjust for the change of RFONT-DEF.
19818
19819 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19820
19821 * font.c (font_load_for_face): Handle the case that the font in
19822 face->lface is a string.
19823
19824 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19825
19826 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
19827
19828 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19829
19830 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
19831 Fix previous change. If the frame is not on a window system,
19832 signal an error.
19833
19834 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19835
19836 * coding.c (decode_coding_object, encode_coding_object): Adjust
19837 marker positions after conversion.
19838
19839 * lisp.h (struct Lisp_Marker): New member need_adjustment.
19840
19841 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19842
19843 * font.c (font_find_for_lface): Fix the handling of the return
19844 value of font_has_char.
19845 (Ffont_shape_text): Fix previous change.
19846
19847 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
19848 (fontset_ref_and_range): Delete it.
19849 (fontset_find_font): Call char_table_ref_and_range instead of
19850 FONTSET_REF_AND_RANGE.
19851 (make_fontset): Don't setup font groups of Latin here.
19852 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
19853 (new_fontset_from_font): Make the specified font the default for
19854 all Latin characters.
19855
19856 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19857
19858 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
19859 is on a window system before accessing the fontset of the frame.
19860
19861 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19862
19863 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
19864
19865 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
19866 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
19867
19868 * font.c (Ffont_shape_text): If the font driver doesn't have a
19869 shaper function, make zero-width glyphs to have at least one-pixel
19870 width. Fix setting of `to' field of glyphs.
19871
19872 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19873
19874 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
19875 glyphs.
19876
19877 * font.h (struct font_driver): Improve docstring of member `shape'.
19878
19879 2008-02-01 Kenichi Handa <handa@m17n.org>
19880
19881 * composite.c (syms_of_composite): Fix docstring of
19882 auto-composition-function.
19883
19884 * font.h (LGLYPH_SIZE): New macro.
19885
19886 * font.c (Ffont_fill_gstring): Stop filling when a character not
19887 supported by the font is found.
19888 (Ffont_shape_text): When a shape callback function returns nil,
19889 try at most two more times with larger gstring.
19890 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
19891
19892 * xdisp.c (handle_auto_composed_prop): Change the argument to
19893 auto-composition-function.
19894
19895 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
19896 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
19897 Lispy glyph and store it in the lgstring.
19898
19899 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
19900
19901 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
19902
19903 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19904
19905 * font.c (Ffont_shape_text): Avoid unnecessary composition.
19906
19907 * fontset.c (Vfont_encoding_charset_alist): New variable.
19908 (syms_of_fontset): DEFVAR it.
19909 (reorder_font_vector, fontset_find_font): Optimize for the case of
19910 no need of reordering.
19911 (face_for_char): Map the charset property by
19912 Vfont_encoding_charset_alist.
19913
19914 2008-02-01 Jason Rumney <jasonr@gnu.org>
19915
19916 * w32font.c (logfonts_match): Don't check adstyle here.
19917 (font_matches_spec): Check here against physical font instead.
19918 (add_font_entity_to_list): Avoid some substitutions.
19919
19920 * font.c (font_parse_fcname): Default weight and slant to normal.
19921 (font_score): Prefer normal fonts if weight or slant unspecified.
19922 (font_score) [WINDOWSNT]: Scale weight difference down to closer
19923 match freetype scores.
19924
19925 2008-02-01 Jason Rumney <jasonr@gnu.org>
19926
19927 * w32font.c (w32font_text_extents): Don't use the frame stored in the
19928 font, as it may have been deleted.
19929 (w32_enumfont_pattern_entity): Map generic family to adstyle using
19930 most common hyphenless variation.
19931 (logfonts_match): Check generic family.
19932 (font_matches_spec): Don't check generic family here.
19933 (fill_in_logfont): Set generic family based on adstyle.
19934
19935 * w32font.h (w32font_get_cache): Update declaration.
19936
19937 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19938
19939 * ftfont.c (ftfont_get_cache): Adjust the argument type.
19940
19941 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
19942 If none of the new drivers are available, call font_update_drivers
19943 with the old drivers.
19944
19945 * w32font.c (w32font_get_cache): Adjust the argument type.
19946
19947 * xfont.c (xfont_get_cache): Adjust the argument type.
19948
19949 * font.h (struct font_driver): Change argument type of get_cache.
19950
19951 * xftfont.c (xftfont_start_for_frame): Delete prototype.
19952
19953 * font.c (Ffont_get): Fix arguments to Fassoc.
19954 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
19955 (font_clear_cache): New function.
19956 (font_list_entities, font_matching_entity): Use font_get_cache.
19957 (font_update_drivers): Call font_clear_cache when finishing a driver.
19958
19959 * fontset.c (fontset_find_font): Fix previous change.
19960
19961 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19962
19963 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
19964 dpyinfo->font_table.
19965 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
19966 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
19967
19968 * font.c (font_at): Handle the case that the arg C is negative.
19969 Handle the unibyte case.
19970 (Ffont_at): Call font_at with the arg C -1.
19971
19972 * xdisp.c (handle_auto_composed_prop): Don't get a character at
19973 the position here, and call font_at with the arg C -1.
19974 Don't check the range of the existing composition at the point.
19975
19976 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19977
19978 * fontset.c (fontset_add): New args charset_id and family.
19979 Change caller.
19980 (load_font_get_repertory, fontset_find_font): Assume that
19981 font_spec is always a font-spec object.
19982 (Fset_fontset_font): Always store a font-spec object in a fontset.
19983
19984 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
19985 instead of get_property_and_range.
19986
19987 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19988
19989 * xftfont.c (struct xftfont_info): Delete the member ft_face.
19990 (xftfont_open): Don't keep locking face.
19991 (xftfont_close): Don't unlock face.
19992 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
19993
19994 * fontset.c (fontset_find_font): Don't prefer a font of
19995 supplementary charset.
19996
19997 2008-02-01 Kenichi Handa <handa@m17n.org>
19998
19999 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
20000 script, langsys_tag to langsys, new member script.
20001 (OTF_TAG_STR): Terminate by '\0'.
20002 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
20003 listing to the script specified in that property. Fix arg to
20004 OTF_check_features.
20005
20006 2008-02-01 Jason Rumney <jasonr@gnu.org>
20007
20008 * w32font.h: New file.
20009
20010 * w32font.c: Include it.
20011 (struct w32font_info): Add owning_frame field. Move to w32font.h.
20012 (w32font_open): Set owning_frame.
20013 (w32font_text_extents): Use owning_frame.
20014 (struct font_callback_data): Add opentype_only field.
20015 (add_font_entity_to_list): Use it to filter fonts.
20016 Don't check against full name.
20017 (w32font_list_internal): New function.
20018 (w32font_list): Use it.
20019 (w32font_match_internal): New function.
20020 (w32font_match): Use it.
20021 (w32font_open_internal): New function.
20022 (w32font_open): Use it.
20023 (w32font_get_cache, w32font_close, w32font_has_char)
20024 (w32font_encode_char, w32font_text_extents, w32font_draw):
20025 Make non-static.
20026
20027 * makefile.w32-in (w32font.o): Depend on w32font.h.
20028
20029 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20030
20031 * charset.c (Fdefine_charset_internal): Record a supplementary
20032 charset at the tail of Vcharset_order_list.
20033
20034 * font.c (Ffont_shape_text): Fix the return value.
20035
20036 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
20037
20038 * xdisp.c (handle_auto_composed_prop): Fix previous change.
20039
20040 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20041
20042 * ftfont.c (struct OpenTypeSpec): New struct.
20043 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
20044 (ftfont_get_open_type_spec): New function.
20045 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
20046
20047 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
20048
20049 2008-02-01 Jason Rumney <jasonr@gnu.org>
20050
20051 * w32font.c (add_font_entity_to_list): Compare only the beginning
20052 of full name.
20053
20054 2008-02-01 Kenichi Handa <handa@m17n.org>
20055
20056 * xdisp.c (handle_auto_composed_prop): Simplify the code.
20057 Never return HANDLED_RECOMPUTE_PROPS.
20058
20059 2008-02-01 Kenichi Handa <handa@m17n.org>
20060
20061 * font.c (font_gstring_produce): Delete it.
20062
20063 * composite.h (COMPOSITION_METHOD):
20064 Handle COMPOSITION_WITH_GLYPH_STRING.
20065
20066 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20067
20068 * xfont.c (Qx): Delete.
20069 (syms_of_xfont): Don't initialize Qx.
20070
20071 * composite.h (enum composition_method):
20072 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
20073
20074 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20075
20076 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
20077 (choose_face_font): Accept new form of font-spec.
20078
20079 * frame.h (font_driver_list): Declare it unconditionally.
20080 (struct frame): Define members font_driver_list and font_data_list
20081 unconditionally.
20082
20083 * fontset.c: Include "font.h" unconditionally.
20084 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
20085 (Fset_fontset_font): Accept a font-spec object.
20086
20087 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
20088 PIXEL_SIZE part a wild card.
20089
20090 * dispextern.h (struct glyph_string): Define members clip and
20091 num_clips unconditionally.
20092 (struct face): Define members font_info and extra unconditionally.
20093
20094 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
20095 ftfont_info only when HAVE_LIBOTF is defined.
20096
20097 2008-02-01 Andreas Schwab <schwab@suse.de>
20098
20099 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
20100 and end.
20101
20102 2008-02-01 Jason Rumney <jasonr@gnu.org>
20103
20104 * w32font.c (w32font_driver): Add new fields.
20105
20106 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20107
20108 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
20109 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
20110 (LIBES): Add @M17N_FLT_CFLAGS@.
20111
20112 * composite.c (compose_text): Don't treat the new style
20113 composition specially.
20114
20115 * emacs.c (main): Call syms_of_font unconditionally.
20116
20117 * font.h (FONT_ENTITY_NOT_LOADABLE)
20118 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
20119 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
20120 (struct font_driver): New member shape.
20121 (font_registry_charsets): Extern it.
20122 (font_find_for_lface, font_prepare_composition): Adjust prototype.
20123 (font_otf_capability, font_drive_otf): Delete their externs.
20124
20125 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
20126 (font_charset_alist, font_registry_charsets): Move from xfont.c
20127 and rename.
20128 (font_prop_validate_otf): New function.
20129 (font_property_table): Register it for QCotf.
20130 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
20131 (font_drive_otf): Delete.
20132 (font_prepare_composition): New arg F. Adjust for the change of
20133 lispy gstring.
20134 (font_find_for_lface): New arg C.
20135 (font_load_for_face): Adjust for the change of font_find_for_lface.
20136 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
20137 lispy gstring.
20138 (Ffont_shape_text): New function.
20139 (Fopen_font): If the font size is not given, use 12-pixel.
20140 (Ffont_at): New arg STRING.
20141 (syms_of_font): Initialize font_charset_alist.
20142 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
20143 conditionally.
20144
20145 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
20146 fonts of the same font-spec. Change the format of RFONT-DEF.
20147 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
20148 Adjust for the change of RFONT-DEF.
20149 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
20150
20151 * ftfont.h: New file.
20152
20153 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
20154 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
20155 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
20156 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
20157 font_otf_capability and font_drive_otf, set ftfont_shape.
20158 (ftfont_list): Adjust for the change of :otf property value.
20159 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
20160 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
20161 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
20162 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
20163 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
20164 (otf_gstring, gstring, m17n_flt_initialized): New variables.
20165
20166 * w32term.c (x_draw_composite_glyph_string_foreground):
20167 Adjust for the change of lispy gstring.
20168
20169 * xdisp.c (handle_composition_prop): Adjust for the change of
20170 lispy gstring. Call a function for auto-composition with the
20171 third arg it->window.
20172 (fill_composite_glyph_string): Adjust for the change of lispy string.
20173 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
20174
20175 * xfaces.c (set_font_frame_param): Adjust for the change of
20176 font_find_for_lface.
20177
20178 * xfont.c (x_font_charset_alist): Move to font.c and rename.
20179 (xfont_registry_charsets): Likewise. Change caller.
20180 (syms_of_xfont): Don't handle x_font_charset_alist.
20181
20182 * xftfont.c: Include "ftfont.h".
20183 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
20184 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
20185 (xftfont_close) [HAVE_LIBOTF]: Close otf.
20186 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
20187 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
20188 Set xftfont_driver.shape to xftfont_shape.
20189
20190 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
20191 the change of lispy gstring.
20192
20193 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20194
20195 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
20196
20197 2008-02-01 Jason Rumney <jasonr@gnu.org>
20198
20199 * w32font.c (w32font_draw): Fill background manually.
20200
20201 2008-02-01 Jason Rumney <jasonr@gnu.org>
20202
20203 * font.c (Qfontp): Remove unused symbol.
20204 (QCantialias): New symbol.
20205 (syms_of_font): Define it.
20206 (font_property_table): Set a validator for QCantialias.
20207
20208 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
20209 Define if not already.
20210 (QCfamily): Share with xfaces.c.
20211 (Qstandard, Qsubpixel, Qnatural): New symbols.
20212 (syms_of_w32font): Define them. Don't define QCfamily here.
20213 (w32_antialias_type, lispy_antialias_type): New functions.
20214 (w32_enumfont_pattern_entity): New arg requested_font.
20215 Set antialias parameter if non-default was requested.
20216 (fill_in_logfont): Fill in lfQuality if :antialias specified.
20217
20218 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20219
20220 * lread.c (read1): Undo the previous change.
20221
20222 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
20223
20224 * frame.c (Fdelete_frame): Call font_update_drivers only when
20225 USE_FONT_BACKEND is defined.
20226
20227 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20228
20229 * font.h (struct font_bitmap): New member bits_per_pixel.
20230 (struct font_driver): New members start_for_frame and end_for_frame.
20231 (struct font_data_list): New struct.
20232 (font_put_frame_data, font_get_frame_data): Extern them.
20233
20234 * frame.h (struct frame): New member font_data_list.
20235
20236 * font.c (font_update_drivers): Call driver->start_for_frame and
20237 driver->end_for_frame at proper timings.
20238 (font_put_frame_data, font_get_frame_data): New functions.
20239 (Ffont_spec): Add usage in the docstring.
20240
20241 * frame.c (make_frame): Initialize f->font_data_list to NULL.
20242 (Fdelete_frame): Call font_update_drivers.
20243
20244 * xftfont.c (struct xftface_info): Delete the member xft_draw.
20245 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
20246 (xftfont_get_xft_draw): New function.
20247 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
20248 (xftfont_end_for_frame): New function.
20249 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
20250
20251 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
20252 Change argument. Cache GCs in the per-frame data.
20253 (struct ftxfont_frame_data): New struct.
20254 (ftxfont_draw_bitmap): New arg gc_fore and flush.
20255 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
20256 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
20257 (ftxfont_end_for_frame): New function.
20258 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
20259
20260 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
20261
20262 2008-02-01 Kenichi Handa <handa@m17n.org>
20263
20264 * xselect.c (Vselection_coding_system)
20265 (Vnext_selection_coding_system): Delete them.
20266 (syms_of_xselect): Don't declare selection-coding-system and
20267 next-selection-coding-system. They are declared in select.el.
20268
20269 2008-02-01 Jason Rumney <jasonr@gnu.org>
20270
20271 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
20272
20273 * w32fns.c: Include imm.h.
20274 (get_composition_string_fn, get_ime_context_fn): New optional
20275 system functions.
20276 (globals_of_w32fns): Load them from imm32.dll.
20277 (ignore_ime_char): New flag.
20278 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
20279 WM_IME_ENDCOMPOSITION messages.
20280
20281 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
20282 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
20283
20284 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20285
20286 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
20287 (READCHAR_REPORT_MULTIBYTE): New macro.
20288 (readchar): New 2nd arg MULTIBYTE.
20289 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
20290 Make symbol's name multibyte according to the multibyteness of the
20291 source.
20292
20293 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20294
20295 * xfaces.c (face_for_overlay_string): Call lookup_face with
20296 correct arguments (fix of synching with the trunk).
20297
20298 2008-02-01 Kenichi Handa <handa@m17n.org>
20299
20300 * font.c (font_prop_validate_symbol, font_prop_validate_style)
20301 (font_prop_validate_non_neg, font_prop_validate_spacing):
20302 Delete argument prop_index.
20303 (font_property_table): Change arguments to validater. Change Callers.
20304 (font_lispy_object): Delete.
20305 (font_at): Use font_find_object instead fo font_lispy_object.
20306
20307 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
20308
20309 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
20310 and file names.
20311
20312 2008-02-01 Jason Rumney <jasonr@gnu.org>
20313
20314 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
20315 (font_matches_spec): Remove debug output.
20316 (add_font_entity_to_list): Avoid using substituted fonts.
20317
20318 2008-02-01 Jason Rumney <jasonr@gnu.org>
20319
20320 * doc.c (Fsnarf_documentation):
20321 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
20322
20323 2008-02-01 Miles Bader <miles@gnu.org>
20324
20325 * dispextern.h (struct glyph_row): Only define "clip" field if
20326 HAVE_WINDOW_SYSTEM is defined.
20327
20328 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
20329
20330 Fix up multi-tty merge.
20331
20332 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
20333 and indentation.
20334
20335 * xfaces.c (free_realized_face, clear_face_gcs):
20336 Include font_done_for_face in the input_blocked section, just in case.
20337
20338 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
20339 (get_char_face_and_encoding): Undo last change and remove the *other*
20340 duplicate definition (i.e. keep the one that's better scoped and that
20341 includes code for the font-backend).
20342
20343 * terminal.c (create_terminal): Default keyboard_coding to
20344 `no-conversion' and terminal_coding to `undecided'.
20345
20346 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
20347
20348 * fontset.c (free_realized_fontsets): Check that the table entry does
20349 contain a fontset before trying to compare it to `base'.
20350
20351 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
20352 syms_of_charset, and syms_of_coding earlier because init_window_once
20353 now needs Vcoding_system_hash_table to be setup.
20354
20355 * coding.h (default_buffer_file_coding): Remove.
20356
20357 * coding.c (default_buffer_file_coding): Remove.
20358 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
20359 than ->symbol, and use the terminal-local coding system.
20360 (syms_of_coding): Don't setup the coding-systems that are not
20361 terminal-local.
20362 (Fdefine_coding_system_internal): Use XCAR/XCDR.
20363
20364 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
20365 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
20366
20367 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
20368 in chartab.c and were re-added here by mistake.
20369 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
20370
20371 * doc.c (Fsnarf_documentation):
20372 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
20373 src to etc.
20374
20375 * ChangeLog.10: Add mistakenly removed entry.
20376
20377 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
20378
20379 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
20380
20381 2008-02-01 Miles Bader <miles@gnu.org>
20382
20383 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
20384 Add extra args to FACE_FOR_CHAR.
20385
20386 2008-02-01 Kenichi Handa <handa@m17n.org>
20387
20388 * keymap.c (where_is_internal_1): If key is a cons, store the copy
20389 in sequence.
20390
20391 * chartab.c (map_sub_char_table, map_char_table): If the range
20392 contains just one character, call the function with that character
20393 even if the depth is not 3.
20394
20395 2008-02-01 Jason Rumney <jasonr@gnu.org>
20396
20397 * w32font.c (w32font_text_extents): Calculate metrics for the
20398 whole string.
20399
20400 2008-02-01 Jason Rumney <jasonr@gnu.org>
20401
20402 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
20403
20404 2008-02-01 Jason Rumney <jasonr@gnu.org>
20405
20406 * w32term.c (x_set_glyph_string_clipping): Use
20407 get_glyph_string_clip_rects.
20408 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
20409 Adjust for the change of struct glyph_string.
20410
20411 * w32font.c (w32font_draw): Do clipping here.
20412
20413 2008-02-01 Kenichi Handa <handa@m17n.org>
20414
20415 * xftfont.c (xftfont_draw): Adjust for the change of struct
20416 glyph_string.
20417
20418 * xterm.c (x_set_glyph_string_clipping): Use
20419 get_glyph_string_clip_rects.
20420 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
20421 Adjust for the change of struct glyph_string.
20422
20423 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
20424 the resulting clip(s}.
20425 (expose_overlaps): Add arg r. Change callers. Set it to
20426 row->clip temporarily.
20427 (expose_window): Redraw rows overlapping the exposed area.
20428
20429 * dispextern.h (struct glyph_row): New member clip.
20430 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
20431 clip_height, new member clip, and num_clips.
20432
20433 2008-02-01 Kenichi Handa <handa@m17n.org>
20434
20435 * data.c (Fchar_or_string_p): Fix docstring.
20436
20437 2008-02-01 Kenichi Handa <handa@m17n.org>
20438
20439 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
20440 create a temporary XftDraw object.
20441
20442 2008-02-01 Kenichi Handa <handa@m17n.org>
20443
20444 * font.c (Ffontp): Fix docstring.
20445
20446 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
20447 strong evidence of ISO-2022.
20448
20449 2008-02-01 Kenichi Handa <handa@m17n.org>
20450
20451 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
20452 SYNTAX_ENTRY_FOLLOW_PARENT.
20453
20454 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
20455
20456 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
20457 its type.
20458 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
20459 Update to the new type of weak_hash_tables and next_weak.
20460
20461 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
20462 a plain C pointer to Lisp_Hash_Table.
20463
20464 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
20465 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
20466 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
20467 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
20468 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
20469 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
20470 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
20471 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
20472 (GC_EQ): Remove since they've been identical to their non-GC_
20473 alter-egos ever since the markbit was eradicated.
20474
20475 * alloc.c:
20476 * buffer.c:
20477 * buffer.h:
20478 * data.c:
20479 * fileio.c:
20480 * filelock.c:
20481 * fns.c:
20482 * frame.h:
20483 * lisp.h:
20484 * macterm.c:
20485 * print.c:
20486 * process.c:
20487 * w32fns.c:
20488 * w32menu.c:
20489 * w32term.c:
20490 * xfns.c:
20491 * xmenu.c:
20492 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
20493
20494 2008-02-01 Kenichi Handa <handa@m17n.org>
20495
20496 * chartab.c (map_sub_char_table): Make it work for the top-level
20497 char-table. Fix handling of parent char-table.
20498 (map_char_table): Adjust for the above change.
20499
20500 2008-02-01 Jason Rumney <jasonr@gnu.org>
20501
20502 * w32font.c (Qgdi): Rename from Qw32.
20503
20504 2008-02-01 Jason Rumney <jasonr@gnu.org>
20505
20506 * w32bdf.c (get_quoted_string): Make function static.
20507
20508 2008-02-01 Kenichi Handa <handa@m17n.org>
20509
20510 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
20511 bigger ascent and descent than those of the font, use them as
20512 font's ascent and descent.
20513
20514 2008-02-01 Kenichi Handa <handa@m17n.org>
20515
20516 * Makefile.in (${lispsource}international/charprop.el): Move this
20517 target within "#ifdef HAVE_UNIDATA" and "#endif".
20518
20519 2008-02-01 Kenichi Handa <handa@m17n.org>
20520
20521 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
20522 (shortlisp): Add ../lisp/language/tai-viet.el.
20523
20524 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
20525
20526 * Makefile.in (${lispsource}international/charprop.el): Depend on
20527 temacs${EXEEXT}.
20528
20529 2008-02-01 Jason Rumney <jasonr@gnu.org>
20530
20531 * w32font.c (w32font_close): Delete the GDI font object.
20532
20533 * w32menu.c: Include character.h.
20534
20535 * w32proc.c: Likewise.
20536
20537 * w32select.c: Likewise.
20538
20539 * makefile.w32-in (w32proc.o): Depend on character.h.
20540
20541 2008-02-01 Jason Rumney <jasonr@gnu.org>
20542
20543 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
20544
20545 * w32menu.c (syms_of_w32menu): Likewise.
20546
20547 * w32proc.c (syms_of_ntproc): Likewise.
20548
20549 * w32select.c (syms_of_w32select): Likewise.
20550
20551 * w32term.c (syms_of_w32term): Likewise.
20552
20553 2008-02-01 Jason Rumney <jasonr@gnu.org>
20554
20555 * w32font.c (w32font_draw): Delete brush after using it.
20556
20557 2008-02-01 Jason Rumney <jasonr@gnu.org>
20558
20559 * w32font.c (w32font_open): Don't set font_idx.
20560 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
20561 to font settings.
20562 (w32font_draw): Fill background explicitly.
20563
20564 2008-02-01 Jason Rumney <jasonr@gnu.org>
20565
20566 * w32term.c (w32_initialize): Don't call w32font_initialize.
20567
20568 * w32font.c (w32font_info): Remove subranges.
20569 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
20570 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
20571 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
20572 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
20573 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
20574 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
20575 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
20576 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
20577 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
20578 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
20579 New symbols.
20580 (font_callback_data): New struct.
20581 (w32font_list, w32font_match): Use it.
20582 (w32font_open): Don't populate subranges.
20583 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
20584 (w32font_encode_char): Always return unicode code-point as-is.
20585 (w32font_text_extents): Supply a transformation matrix to
20586 GetGlyphOutline. Never look up by glyph index. Avoid looping
20587 twice. Use unicode version of GetTexExtentPoint32 instead of
20588 glyph index version.
20589 (set_fonts_frame): Remove.
20590 (w32_enumfont_pattern_entity): Add frame parameter, use it to
20591 set frame parameter. Use backward compatible fake foundries.
20592 Save generic family in extra slot under QCfamily. Make width slot
20593 constant. Save QCspacing value. Save list of scripts instead of
20594 binary subranges.
20595 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
20596 (add_font_entity_to_list): Use font_callback_data struct. Filter
20597 unwanted fonts.
20598 (add_one_font_entity_to_list): Use font_callback_data struct.
20599 (w32_registry): Default to iso10646_1.
20600 (fill_in_logfont): Use dpi from extra slot. Don't bother with
20601 string font registries. Don't fill in font name if it is a generic
20602 family name, fill family instead. Use spacing, family and script
20603 extra info to fill pitch, family and charset fields.
20604 (list_all_matching_fonts): Use font_callback_data struct.
20605 (unicode_range_for_char): Remove.
20606 (font_supported_scripts): New function.
20607 (w32font_initialize): Remove.
20608 (syms_of_w32font): Update which symbols are defined.
20609
20610 2008-02-01 Jason Rumney <jasonr@gnu.org>
20611
20612 * font.c (font_pixel_size): Reverse assq_no_quit args.
20613
20614 * w32term.h (FONT_WIDTH): Report max width, not average.
20615 (FONT_MAX_WIDTH): Remove.
20616 (FONT_AVG_WIDTH): New macro.
20617
20618 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
20619 redefinition of FONT_WIDTH.
20620
20621 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
20622 (w32_cache_char_metrics): Use FONT_WIDTH.
20623
20624 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
20625
20626 2008-02-01 Jason Rumney <jasonr@gnu.org>
20627
20628 * w32font.c (w32font_open): Make lfHeight negative.
20629
20630 * w32fns.c (x_default_font_parameter): Use new style font name.
20631 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
20632
20633 2008-02-01 Jason Rumney <jasonr@gnu.org>
20634
20635 * w32font.c (QCsubranges): New symbol.
20636 (w32font_open, w32font_has_char): Get subranges from subproperty
20637 of extra.
20638 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
20639 (syms_of_w32font): Define :subranges symbol.
20640
20641 * font.c (font_put_extra): Expose externally.
20642
20643 * font.h (font_put_extra): Move declaration from font.c.
20644
20645 * font.c (Ffont_get): Use font driver to determine otf capability.
20646 (adjust_anchor): Check if driver defines anchor_point before using.
20647
20648 * w32font.c (w32font_open): Handle size, height and pixel_size better.
20649 (w32font_draw): Use options.
20650 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
20651 Fix detection of truetype fonts.
20652 (registry_to_w32_charset): Handle charsets other than iso8859-1
20653 expressed as lisp symbols.
20654 (w32_registry): Express charset as lisp symbol.
20655 (fill_in_logfont): Reverse pixel and point height logic.
20656 Don't set width here. Set quality to default.
20657
20658 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
20659 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
20660
20661 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
20662 Remove redundant loop and allocation.
20663
20664 * makefile.w32-in (font.o, w32font.o): New objects.
20665 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
20666 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
20667
20668 * xdisp.c (fill_composite_glyph_string): Make the first arg to
20669 STORE_XCHARB a valid l-value.
20670
20671 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
20672 calculations for non-Truetype fonts.
20673 (x_draw_glyph_string): Sync with xterm.c.
20674 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
20675 Remove redundant code.
20676 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
20677
20678 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
20679 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
20680
20681 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
20682 (x_to_w32_charset, w32_to_x_charset): Expose externally.
20683
20684 * w32font.c: New file for w32 font backend.
20685
20686 2008-02-01 Kenichi Handa <handa@m17n.org>
20687
20688 * term.c: Don't include "buffer.h" twice.
20689
20690 2008-02-01 Kenichi Handa <handa@m17n.org>
20691
20692 * character.c (Funibyte_string): New function.
20693 (syms_of_character): Defsubr it.
20694
20695 2008-02-01 Jason Rumney <jasonr@gnu.org>
20696
20697 * w32term.c [USE_FONT_BACKEND]:
20698 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
20699 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
20700 (x_draw_glyph_string, x_draw_glyph_string_foreground)
20701 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
20702 (x_free_frame_resources): Sync with xterm.c.
20703
20704 2008-02-01 Andreas Schwab <schwab@suse.de>
20705
20706 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
20707 char-table size.
20708
20709 2008-02-01 Kenichi Handa <handa@m17n.org>
20710
20711 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
20712
20713 2008-02-01 Kenichi Handa <handa@m17n.org>
20714
20715 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
20716 font_otf_gpos, add font_drive_otf.
20717
20718 * fontset.c (fontset_find_font): Pay attention to font size
20719 specified for a font.
20720 (reorder_font_vector): Check contents of font_def.
20721
20722 * font.c (struct otf_list): Delete it.
20723 (otf_list): Make it a lisp variable.
20724 (otf_open): Use lispy otf_list.
20725 (generate_otf_features): Rename from parse_gsub_gpos_spec.
20726 (check_otf_features): New function.
20727 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
20728 New functions.
20729 (font_drive_otf): New function merging font_otf_gsub and
20730 font_otf_gpos.
20731 (font_open_for_lface): New arg spec. Change argument order.
20732 (font_load_for_face): Adjust for the change of font_open_for_lface.
20733 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
20734 Ffont_otf_gpos.
20735 (syms_of_font): Staticpro otf_list. Delete defsubr of
20736 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
20737
20738 * xfaces.c (set_font_frame_param): Adjust for the change of
20739 font_open_for_lface.
20740
20741 * font.h (font_open_for_lface): Adjust prototype.
20742 (struct font_driver): Delete members otf_gsub and otf_gpos, add
20743 member otf_drive.
20744 (font_otf_gsub, font_otf_gpos): Delete externs.
20745 (font_drive_otf): Extern it.
20746
20747 2008-02-01 Kenichi Handa <handa@m17n.org>
20748
20749 * font.c (font_at): If the window W is not on a window system,
20750 return Qnil.
20751
20752 * coding.c (produce_chars, encode_coding): Don't call
20753 insert_from_gap if no characters to produce.
20754
20755 2008-02-01 Kenichi Handa <handa@m17n.org>
20756
20757 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
20758 Fclear_face_cache.
20759
20760 * xfaces.c (face_for_font): Check also face->font==font->font.font.
20761
20762 2008-02-01 Miles Bader <miles@gnu.org>
20763
20764 * emacs.c (main): Change default value of `enable_font_backend' to 1.
20765 Parse "--disable-font-backend" option.
20766 (standard_args): Add "--disable-font-backend" option.
20767
20768 2008-02-01 Kenichi Handa <handa@m17n.org>
20769
20770 * fontset.c (fontset_find_font): New function.
20771 (fontset_font): Use fontset_find_font.
20772 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
20773 Register the specified font for all Latin characters.
20774 (new_fontset_from_font): Register the specified font for all Latin
20775 characters.
20776 (dump_fontset): For a realized fontset, include the base fontset
20777 name in the returned vector.
20778
20779 2008-02-01 Kenichi Handa <handa@m17n.org>
20780
20781 * character.h (CHAR_STRING): Cast C to unsigned on calling
20782 char_string.
20783
20784 * character.c (char_string): Type of arg C changed to unsigned.
20785 Signal an error if C is an invalid character code.
20786
20787 * editfns.c (general_insert_function, Fchar_to_string):
20788 Use CHARACTERP, not INTEGERP.
20789
20790 2008-02-01 Kenichi Handa <handa@m17n.org>
20791
20792 * character.h (MIN_MULTIBYTE_LEADING_CODE)
20793 (MAX_MULTIBYTE_LEADING_CODE): New macros.
20794
20795 * regex.c (analyse_first): Fix for multibyte characters in "case
20796 charset:" and "case categoryspec:".
20797
20798 2008-02-01 Andreas Schwab <schwab@suse.de>
20799
20800 * Makefile.in (LIBES): Move standard libraries to the end.
20801
20802 2008-02-01 Kenichi Handa <handa@m17n.org>
20803
20804 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
20805 nonzero, don't shrink the buffer nextb.
20806
20807 * buffer.h (struct buffer_text): New member inhibit_shrinking.
20808
20809 * coding.c (coding_alloc_by_making_gap): New arg offset.
20810 (alloc_destination): Call coding_alloc_by_making_gap with the arg
20811 offset.
20812 (decode_coding_iso_2022): Update coding->safe_charsets.
20813 (decode_coding_gap): Temporarily set
20814 current_buffer->text->inhibit_shrinking to 1.
20815
20816 2008-02-01 Kenichi Handa <handa@m17n.org>
20817
20818 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
20819 indexing into elements of s->cmp and s->char2b.
20820
20821 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
20822
20823 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
20824
20825 2008-02-01 Kenichi Handa <handa@m17n.org>
20826
20827 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
20828 target_multibyte instead of multibyte.
20829 (re_match_2_internal): Call bcmp_translate with target_multibyte.
20830 (bcmp_translate): Change the argument name from multibyte to
20831 target_multibyte.
20832
20833 2008-02-01 Kenichi Handa <handa@m17n.org>
20834
20835 These changes are to compile a regexp into a pattern that can be
20836 used both for multibyte and unibyte targets.
20837
20838 * Makefile.in (search.o): Depend on charset.h.
20839
20840 * character.c (multibyte_char_to_unibyte_safe): New function.
20841
20842 * search.c: Include "charset.h".
20843 (compile_pattern_1): Delete argument multibyte. Don't set
20844 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
20845 (compile_pattern): Don't compare cp->buf.target_multibyte.
20846 Compare cp->buf.charset_unibyte.
20847 (compile_pattern): Set cp->buf.target_multibyte.
20848
20849 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
20850
20851 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
20852
20853 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
20854 multibyte. Change callers.
20855 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
20856 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
20857 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
20858 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
20859 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
20860 (regex_compile): Make the compiled pattern usable both for
20861 multibyte and unibyte targets.
20862 (analyse_first): Make the fastmap usable both for multibyte and
20863 unibyte targets.
20864 (TRANSLATE_VIA_MULTIBYTE): Delete.
20865 (re_match_2_internal): Pay attention to the case that the
20866 multibyteness of bufp and target may be different.
20867
20868 2008-02-01 Kenichi Handa <handa@m17n.org>
20869
20870 * xdisp.c (x_produce_glyphs): When a font is not found, make the
20871 empty box occupy at least one column width.
20872
20873 2008-02-01 Miles Bader <miles@gnu.org>
20874
20875 * Makefile.in: Remove redundant HAVE_XFT clause.
20876
20877 2008-02-01 Kenichi Handa <handa@m17n.org>
20878
20879 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
20880
20881 2008-02-01 Kenichi Handa <handa@m17n.org>
20882
20883 * fontset.c (Finternal_char_font): Fix for the case of POSITION
20884 being nil.
20885
20886 2008-02-01 Kenichi Handa <handa@m17n.org>
20887
20888 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
20889
20890 2008-02-01 Kenichi Handa <handa@m17n.org>
20891
20892 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
20893
20894 2008-02-01 Kenichi Handa <handa@m17n.org>
20895
20896 * search.c (simple_search): Fix previous change.
20897
20898 2008-02-01 Kenichi Handa <handa@m17n.org>
20899
20900 * xftfont.c (ftfont_font_format): Extern declaration.
20901
20902 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
20903
20904 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
20905 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
20906
20907 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
20908 (ftfont_font_format): Fix previous change.
20909
20910 * font.h (Ffont_xlfd_name): EXFUN it.
20911
20912 * font.c (font_parse_xlfd): Fix the array size of `f'.
20913 (register_font_driver): Use EQ to compare driver->type.
20914
20915 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
20916 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
20917 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
20918
20919 2008-02-01 Kenichi Handa <handa@m17n.org>
20920
20921 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
20922 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
20923
20924 2008-02-01 Kenichi Handa <handa@m17n.org>
20925
20926 * xfont.c (xfont_open): Set font->format.
20927
20928 * xftfont.c (xftfont_open): Set font->format.
20929
20930 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
20931 (ftfont_list): Include FC_FONTFORMAT in FcObject.
20932 (ftfont_open): Set font->format.
20933 (ftfont_font_format): New function.
20934
20935 * font.h (struct font): New member format.
20936
20937 * font.c (Qopentype): New variable.
20938 (syms_of_font): Defsym it.
20939 (Fquery_font): Change the format of the last element of the return
20940 value.
20941
20942 2008-02-01 Kenichi Handa <handa@m17n.org>
20943
20944 * xfns.c (xic_create_xfontset): Try the default fontset name as a
20945 last resort.
20946
20947 2008-02-01 Kenichi Handa <handa@m17n.org>
20948
20949 * coding.c (detect_coding_charset): Fix detection of multi-byte
20950 charset.
20951
20952 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
20953
20954 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
20955
20956 2008-02-01 Kenichi Handa <handa@m17n.org>
20957
20958 * xdisp.c (get_next_display_element): Set it->face_id for the
20959 first component of a composition.
20960 (x_produce_glyphs): Check if the font is changed or not for composition.
20961
20962 2008-02-01 Kenichi Handa <handa@m17n.org>
20963
20964 * fontset.c (Qlatin): New variable.
20965 (syms_of_fontset): Define it as a lisp symbol.
20966 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
20967
20968 2008-02-01 Kenichi Handa <handa@m17n.org>
20969
20970 * font.c (font_unparse_fcname): Pay attention to the case that
20971 some of font property is a null string.
20972
20973 2008-02-01 Kenichi Handa <handa@m17n.org>
20974
20975 * term.c: Include "composite.h".
20976 (encode_terminal_code): Output all components of composition.
20977 Check the size of encode_terminal_src.
20978 (produce_glyphs): For composition, call produce_composite_glyph.
20979 (append_composite_glyph, produce_composite_glyph): New functions.
20980
20981 * xdisp.c (x_produce_glyphs): In handling composition, if a font
20982 is not found, get font_info from the current ascii face.
20983
20984 2008-02-01 Kenichi Handa <handa@m17n.org>
20985
20986 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
20987 buffer-file-name to Qnil before calling insert_from_buffer.
20988
20989 * font.c (font_unparse_fcname): Pay attention to the case that
20990 foundry is a null string.
20991
20992 2008-02-01 Kenichi Handa <handa@m17n.org>
20993
20994 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
20995
20996 * font.c (Qunicode_sip): New variable.
20997 (syms_of_font): Declare it as a Lisp symbol.
20998
20999 * font.h (Qunicode_sip): Extern it.
21000
21001 2008-02-01 Kenichi Handa <handa@m17n.org>
21002
21003 * composite.c (get_composition_id): Pay attention to TAB component.
21004
21005 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
21006 TAB. Adjust for the change of s->char2b which always points to
21007 the first element of allocated memory.
21008
21009 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
21010
21011 * xdisp.c (handle_composition_prop): Set it->c to the first
21012 non-TAB component.
21013 (fill_composite_glyph_string): Change argument.
21014 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
21015 (x_produce_glyphs): Fix handling of left/right padding.
21016
21017 2008-02-01 Kenichi Handa <handa@m17n.org>
21018
21019 * coding.c (detect_coding_system): Fix for handling off
21020 inhibit_iso_escape_detection. Fix for the case that no coding
21021 system is defined for a specific coding category.
21022
21023 2008-02-01 Kenichi Handa <handa@m17n.org>
21024
21025 * font.c (font_matching_entity): Delete unused local var.
21026
21027 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
21028 opening a font.
21029
21030 * fileio.c (Finsert_file_contents): On recovering a file, assume
21031 Unix-like eol.
21032 (choose_write_coding_system): On auto-saving a file, force
21033 Unix-like eol.
21034
21035 * coding.c (setup_coding_system): Fix setting of
21036 coding->common_flags based on eol_type.
21037 (coding_inherit_eol_type): If PARENT is not nil, be sure to
21038 inherit from it.
21039
21040 2008-02-01 Kenichi Handa <handa@m17n.org>
21041
21042 * alloc.c (NSTATICS): Increas to 0x600.
21043
21044 2008-02-01 Kenichi Handa <handa@m17n.org>
21045
21046 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
21047 (ftfont_list): Don't check :name property.
21048 (ftfont_match): New function.
21049 (ftfont_pattern_entity): If the pattern doesn't contain
21050 FC_SPACING, don't assume FC_MONO.
21051
21052 * font.h (struct font_driver): New member `match'.
21053 (font_update_drivers): Adjust prototype.
21054
21055 * font.c (font_parse_fcname, font_parse_name): Don't change :name
21056 property of FONT.
21057 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
21058 them unconditionally.
21059 (font_matching_entity): New function.
21060 (font_open_by_name): Try font_matching_entity if exact match is
21061 not found.
21062 (font_update_drivers): Delete the arg FONT. Return a list of
21063 actually used backends. Don't free faces, font caches here.
21064 Don't store data in frame parameters. Don't call x_set_font.
21065 (Ffont_spec): Store :name property as is.
21066 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
21067 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
21068 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
21069 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
21070 Call font->driver->otf_gsub instead of font_otf_gsub.
21071
21072 * frame.c (x_set_font_backend): Do more works that were done in
21073 font_update_drivers before.
21074
21075 * xfont.c (xfont_match): New function.
21076 (xfont_driver): Set xfont_driver.match to xfont_match.
21077 (xfont_draw): Set font in GC if necessary.
21078
21079 * ftxfont.c (ftxfont_match): New function.
21080 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
21081
21082 * xftfont.c (xftfont_match): New function.
21083 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
21084
21085 2008-02-01 Kenichi Handa <handa@m17n.org>
21086
21087 * font.h (struct font): New member scalable.
21088 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
21089 (font_otf_gsub): Adjust prototype.
21090
21091 * font.c (font_otf_capability): Fix handling of the default langsys.
21092 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
21093 Check the contents of SPEC.
21094 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
21095 (check_gstring): New function.
21096 (REPLACEMENT_CHARACTER): New macro.
21097 (font_otf_gsub): New arg alternate_subst. Be sure to set all
21098 glyph codes of GSTRING.
21099 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
21100 (font_prepare_composition): Set cmp->glyph_len.
21101 (font_open_entity): Set font->scalable.
21102 (Ffont_get): Handle :otf property.
21103 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
21104 functions.
21105 (Fquery_font): Use font->font.full_name.
21106 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
21107 Sfont_otf_alternates.
21108
21109 * ftfont.c (ftfont_open): Set font->font.full_name and
21110 font->font.name properly. Fix calculation of font->font.height
21111 and font->min_width.
21112
21113 * ftxfont.c (ftxfont_create_gcs): New function.
21114 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
21115 (ftxfont_draw_backgrond): Fix filling region.
21116 (ftxfont_default_fid): New function.
21117 (ftxfont_open): Set xfont->fid to the return value of
21118 ftxfont_default_fid.
21119 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
21120 (ftxfont_done_face): Free only GCs that are created by
21121 ftxfont_create_gcs.
21122 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
21123
21124 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
21125 Clip to src->width, etc (not src->clip_XXX).
21126
21127 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
21128 FontBackend frame parameter.
21129
21130 2008-02-01 Kenichi Handa <handa@m17n.org>
21131
21132 * font.h (struct font_driver_list): New member `on'.
21133 (Fclear_font_cache): EXFUN it.
21134 (font_update_drivers): Extern it.
21135
21136 * font.c (font_unparse_fcname): Fix typo (swidth->width).
21137 (font_list_entities): Check driver_list->on.
21138 (register_font_driver): Initialize `on' member to 0.
21139 (font_update_drivers): New function.
21140 (Fclear_font_cache): Check driver_list->on.
21141
21142 * frame.h (Qfont_backend): Extern it.
21143 (x_set_font_backend): Extern it.
21144
21145 * frame.c (Qfont_backend): New variable.
21146 (frame_parms): New element for font-backend.
21147 (x_set_font_backend): New function.
21148
21149 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
21150 FontBackend frame parameter.
21151 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
21152 x_set_font_backend.
21153
21154 * xfont.c (xfont_list): Don't try listing by :name property if the
21155 name is not for XLFD.
21156
21157 2008-02-01 Kenichi Handa <handa@m17n.org>
21158
21159 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
21160 (LGLYPH_SET_TO): New macros.
21161 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
21162 element of G is vector or not.
21163 (font_at): Extern it.
21164
21165 * font.c: Include window.h.
21166 (font_lispy_object): New function.
21167 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
21168 end of valid glyph.
21169 (font_close_object): Fix getting (struct font *).
21170 (font_at): New function.
21171 (Ffont_get): If FONT is a font-object, get entity from it.
21172 (Ffont_make_gstring): Initialize elements of glyphs with nil.
21173 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
21174 range check.
21175 (Ffont_at): New function.
21176 (syms_of_font): Defsubr Sfont_at.
21177
21178 * xdisp.c (it_props): Move the entry for Qauto_composed to just
21179 before the entry for Qcomposition.
21180 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
21181 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
21182 the font in gstring.
21183 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
21184 LGLYPH_FORM (g) to detect the end of valid glyph.
21185 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
21186 we are composing with gstring.
21187
21188 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
21189 Check if adjustment is vector or not.
21190
21191 * Makefile.in (font.o): Make it depends on window.h.
21192
21193 2008-02-01 Kenichi Handa <handa@m17n.org>
21194
21195 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
21196 adjustment is vector or not.
21197
21198 2008-02-01 Miles Bader <miles@gnu.org>
21199
21200 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
21201
21202 2008-02-01 Kenichi Handa <handa@m17n.org>
21203
21204 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
21205 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
21206 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
21207
21208 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
21209 (DEVICE_DELTA): Fix typo.
21210 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
21211 LGLYPH format.
21212
21213 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
21214 the change of LGLYPH format.
21215
21216 2008-02-01 Kenichi Handa <handa@m17n.org>
21217
21218 * ftfont.c (ftfont_list): Fix typo.
21219 (ftfont_build_basic_charsets): Don't include letters with diacritics.
21220
21221 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
21222
21223 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
21224
21225 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
21226 xftface_info is non-NULL.
21227
21228 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
21229
21230 * ftfont.c (ftfont_list): Move misplaced #endif.
21231
21232 2008-02-01 Kenichi Handa <handa@m17n.org>
21233
21234 * ftfont.c (ftfont_list): Pay attention to the case that
21235 FC_CAPABILITY is not defined.
21236
21237 2008-02-01 Kenichi Handa <handa@m17n.org>
21238
21239 * xftfont.c (xftfont_open): Set charset related members to -1.
21240
21241 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
21242 QCname.
21243 (ftfont_open): Set charset related members to -1.
21244
21245 * fontset.c (Votf_script_alist): New variable.
21246 (syms_of_fontset): Initialize it.
21247 (fontset_font): Delete unused variable.
21248
21249 * fontset.h (Votf_script_alist): Extern it.
21250
21251 * font.c (font_find_for_lface): Optimize code.
21252
21253 * font.h (font_close_object, font_merge_old_spec): Extern them.
21254
21255 2008-02-01 Kenichi Handa <handa@m17n.org>
21256
21257 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
21258 (syms_of_font): Initialize them.
21259 (font_pixel_size): Allow float value in dpi.
21260 (font_prop_validate_type): Delete.
21261 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
21262 Change caller.
21263 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
21264 (font_prop_validate_extra): Delete.
21265 (font_prop_validate_spacing): New function.
21266 (font_property_table): Add elements for all known properties.
21267 (get_font_prop_index): Rename from check_font_prop_name. New
21268 argument FROM. Change caller.
21269 (font_prop_validate): Validate all known properties.
21270 (font_put_extra): Delete argument force. Change caller.
21271 (font_expand_wildcards): Make it static. Fix the way of shrinking
21272 the possible range.
21273 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
21274 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
21275 Change caller.
21276 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
21277 (font_parse_fcname): Delete argument merge. Fix parsing of point
21278 size. Don't validate properties values here. Change caller.
21279 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
21280 (font_open_by_name): Delete unused variable.
21281 (Ffont_spec): Likewise. Validate property values.
21282 (Ffont_match_p): New function.
21283
21284 * font.h (QCscalable): Extern it.
21285 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
21286
21287 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
21288
21289 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
21290 (xfont_list_pattern): New function.
21291 (xfont_list): Use xfont_list_pattern.
21292
21293 2008-02-01 Kenichi Handa <handa@m17n.org>
21294
21295 * font.h (Flist_fonts): EXFUN it.
21296
21297 2008-02-01 Jason Rumney <jasonr@gnu.org>
21298
21299 * w32term.c (w32_initialize): Add back smoothing_type and
21300 smoothing_enabled definitions.
21301
21302 2008-02-01 Kenichi Handa <handa@m17n.org>
21303
21304 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
21305 s->face->font on determining underline position.
21306
21307 2008-02-01 Kenichi Handa <handa@m17n.org>
21308
21309 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
21310 (font_has_char): Accept font-object too.
21311 (font_find_for_lface): Try at first with a size specified in face.
21312
21313 2008-02-01 Kenichi Handa <handa@m17n.org>
21314
21315 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
21316 font_open_by_name.
21317
21318 2008-02-01 Kenichi Handa <handa@m17n.org>
21319
21320 * font.h (QCspacing, QCdpi): Extern them.
21321 (enum font_spacing): New enum.
21322 (FONT_PIXEL_SIZE_QUANTUM): New macro.
21323
21324 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
21325 (QCspacing, QCdpi): New variables.
21326 (syms_of_font): Initialize them.
21327 (font_pixel_size): New function.
21328 (font_put_extra): New function.
21329 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
21330 in FONT_EXTRA.
21331 (font_parse_fcname): Handle enumerated values (e.g. bold).
21332 Fix handling font size. Add QCname property that contains only
21333 unknown properties.
21334 (font_score): Change argument. Change caller. Pay attention to
21335 FONT_PIXEL_SIZE_QUANTUM.
21336 (font_sort_entites, font_list_entities, font_find_for_lface)
21337 (font_open_for_lface, font_open_by_name): Fix handling of font size.
21338 (Ffont_spec): Add QCname property that contains only unknown properties.
21339
21340 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
21341 include weight in listing pattern, instead check weight of each
21342 listed font. Don't include scalable in pattern. Pay attention to
21343 FONT_PIXEL_SIZE_QUANTUM.
21344
21345 2008-02-01 Kenichi Handa <handa@m17n.org>
21346
21347 * font.c (font_parse_fcname): Fix parsing of point-size.
21348 (font_unparse_fcname): Produce symbolic names for style properties.
21349 (font_list_entities): Handle float size correctly.
21350 (font_open_by_name): Prefer `normal' property values if the name
21351 doesn't specify them.
21352
21353 * fontset.c (Finternal_char_font): Use font_get_name, not
21354 Ffont_xlfd_name.
21355
21356 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
21357 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
21358 pattern. Don't force scalable.
21359
21360 * xftfont.c (xftfont_open): For generating a name, start from
21361 96-byte buffer.
21362
21363 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
21364
21365 * frame.h (x_new_fontset2): Fix prototype.
21366
21367 2008-02-01 Kenichi Handa <handa@m17n.org>
21368
21369 * font.h (struct font_driver): Delete member parse_name.
21370 (font_match_p, font_get_spec, font_parse_fcname)
21371 (font_unparse_fcname): Extern them.
21372 (font_get_name): Adjust prototype.
21373
21374 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
21375 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
21376 (font_expand_wildcards): Fix handling ENCODING field. Avoid
21377 unnecessary checks for weight, slant, and swidth.
21378 (font_parse_fcname): New function.
21379 (font_unparse_fcname): New function.
21380 (font_parse_name): New function.
21381 (font_match_p): New function.
21382 (font_get_name): Change return value to Lisp string.
21383 (font_get_spec): New function.
21384 (Qunspecified, Qignore_defface): Don't extern them.
21385 (font_find_for_lface): Assume that LFACE is fully specified.
21386 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
21387 object, use it for FACE.
21388 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
21389 driver->parse_name.
21390 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
21391
21392 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
21393 prototype.
21394
21395 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
21396 argument F. Don't call Fnew_fontset. Instead, directly call
21397 make_fontset.
21398
21399 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
21400
21401 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
21402 of x_new_fontset2.
21403
21404 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
21405 (Qsans__serif): New variables.
21406 (ftfont_generic_family_list): New variable.
21407 (syms_of_ftfont): Initialize the above variables.
21408 (ftfont_pattern_entity): Delete argument NAME.
21409 (ftfont_list_generic_family): New function.
21410 (ftfont_parse_name): Delete this function.
21411 (ftfont_list): Try generic family only when FcFontList found no font.
21412 (ftfont_list_family): Fix args to FcObjectSetBuild.
21413
21414 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
21415 object in attrs[LFACE_FONT_INDEX].
21416 (set_lface_from_font_name): Cancel all changes for font-backend.
21417 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
21418 function.
21419 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
21420 font object in QCfont attribute.
21421 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
21422 (realize_default_face) [USE_FONT_BACKEND]: Call
21423 set_lface_from_font_and_fontset.
21424
21425 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
21426 "fixed", and signal error here if no suitable font was found.
21427
21428 * xfont.c (xfont_parse_name): Delete this function.
21429
21430 * xftfont.c (xftfont_open): Change coding style of error
21431 handling. Generate fontconfig's fontname pattern.
21432
21433 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
21434 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
21435
21436 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
21437 Both args FONTSET and FONT_OBJECT must be existing ones.
21438
21439 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21440
21441 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
21442
21443 2008-02-01 Kenichi Handa <handa@m17n.org>
21444
21445 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
21446
21447 * font.h (struct font): Fix typo.
21448
21449 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
21450 XLFD_XXX_INDEX.
21451 (enum xlfd_field_mask): New enum.
21452 (intern_font_field): Changed argument. Change caller. If digits
21453 are followed by non-digits, return a symbol.
21454 (font_expand_wildcards): New function.
21455 (font_parse_xlfd): Fix wildcard handling.
21456 (Ffont_spec): If :name is specified, reflect the info in the other
21457 properties.
21458
21459 * ftfont.c (ftfont_pattern_entity): Fix typo.
21460 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
21461 locale.
21462
21463 2008-02-01 Kenichi Handa <handa@m17n.org>
21464
21465 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
21466
21467 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
21468 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
21469 registry doesn't specify encoding part.
21470 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
21471 (font_open_by_name): At first try parsing the name.
21472 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
21473 as Lisp symbols.
21474
21475 * fontset.c (reorder_font_vector): Pay attention to the case that
21476 the 3rd element of font_def is nil.
21477 (fontset_font): For the default fontset, append one more fontset
21478 elements for a script-based font specification. Don't add script
21479 attribute on finding a font.
21480 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
21481 font name.
21482 (fontset_ascii_font): If a font can't be opened, return nil.
21483
21484 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
21485 (ftfont_pattern_entity): New function.
21486 (ftfont_get_cache): Assume that freetype_font_cache is already
21487 initialized.
21488 (ftfont_list): Handle the case that a file is specified in font
21489 name. Use ftfont_pattern_entity to generate entities.
21490 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
21491 (syms_of_ftfont): Initialize freetype_font_cache.
21492
21493 * xftfont.c (xftfont_open): Make the font name fontconfig's
21494 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
21495 (xftfont_close): Free font->font.name if not NULL.
21496
21497 * xfont.c (xfont_list): If script is specified for a font, return
21498 null_vector.
21499 (xfont_list_family): Declare argument type.
21500
21501 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
21502 name, set LFACE_FONT (lface) to nil.
21503
21504 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
21505 return Qnil.
21506
21507 2008-02-01 Kenichi Handa <handa@m17n.org>
21508
21509 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
21510 (standard_args): Add "-enable-font-backend".
21511
21512 2008-02-01 Kenichi Handa <handa@m17n.org>
21513
21514 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
21515 (struct xftdraw_list, xftdraw_list): Delete them.
21516 (register_xftdraw, check_xftdraw): Delete them.
21517 (xftfont_prepare_face): Don't call register_xftdraw.
21518 (xftfont_done_face): Don't call check_xftdraw.
21519 (xftfont_draw): Get background color only when with_background is
21520 nonzero.
21521
21522 * xfont.c (xfont_encode_char): Fix calculation of char2b.
21523
21524 2008-02-01 Kenichi Handa <handa@m17n.org>
21525
21526 These changes are for the new font handling codes.
21527
21528 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
21529 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
21530 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
21531 (FONTSRC, FONTOBJ): New variables.
21532 (obj): Add $(FONTOBJ).
21533 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
21534 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
21535 @LIBOTF_LIBS@.
21536 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
21537 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
21538
21539 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
21540
21541 * character.h (Vscript_representative_chars): Extern it.
21542
21543 * character.c (Vscript_representative_chars): New variable.
21544 (syms_of_character): Declare it as a Lisp variable.
21545
21546 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
21547 enable_font_backend is nonzero, accept the composition method
21548 COMPOSITION_WITH_GLYPH_STRING.
21549
21550 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
21551 enumeration COMPOSITION_WITH_GLYPH_STRING.
21552
21553 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
21554 members clip_x, clip_y, clip_width, and clip_height.
21555 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
21556
21557 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
21558 --enable-font-backend. Call syms_of_font.
21559
21560 * fns.c (assoc_no_quit): New function.
21561
21562 * fontset.h (FONT_INFO_FROM_FACE): New macro.
21563 (face_for_font, new_fontset_from_font)
21564 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
21565
21566 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
21567 (fontset_font, fontset_ascii, face_for_char)
21568 (make_fontset_for_ascii_face, Ffont_info)
21569 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
21570 is nonzero, use font-backend mechanism.
21571 (find_font_encoding): Make it non-static.
21572 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
21573 New functions.
21574
21575 * frame.h (struct frame): New members resx and resy.
21576 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
21577 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
21578
21579 * frame.c [USE_FONT_BACKEND]: Include "font.h".
21580 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
21581
21582 * lisp.h (assoc_no_quit): Extern it.
21583
21584 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
21585 Through out the file, use FONT_INFO_FROM_FACE instead of
21586 FONT_INFO_FROM_ID, use get_per_char_metric instead of
21587 rif->per_char_metric.
21588 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
21589 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
21590 (get_glyph_face_and_encoding, fill_composite_glyph_string)
21591 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
21592 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
21593 nonzero, use font-backend mechanism.
21594 (get_per_char_metric): New function.
21595
21596 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
21597 (set_lface_from_font_name)
21598 (set_font_frame_param, free_realized_face)
21599 (prepare_face_for_display, clear_face_gcs)
21600 (Finternal_set_font_selection_order, realize_x_face)
21601 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
21602 font-backend mechanism.
21603 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
21604 (load_face_font) [USE_FONT_BACKEND]: Abort.
21605 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
21606 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
21607
21608 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
21609 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
21610 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
21611 nonzero, register all available font drivers. Call
21612 x_default_font_parameter for deciding a font.
21613 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
21614
21615 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
21616 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
21617 (x_set_glyph_string_clipping_exactly)
21618 (x_compute_glyph_string_overhangs)
21619 (x_draw_glyph_string_foreground)
21620 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
21621 (x_free_frame_resources) [USE_FONT_BACKEND]: If
21622 enable_font_backend is nonzero, use font-backend mechanism.
21623 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
21624
21625 2008-02-01 Kenichi Handa <handa@m17n.org>
21626
21627 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
21628 system_eol_type.
21629 (syms_of_coding): Initialize system_eol_type.
21630
21631 * process.c (Fset_process_coding_system): Inherit system's eol
21632 format if necessary.
21633
21634 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21635
21636 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
21637
21638 2008-02-01 Kenichi Handa <handa@m17n.org>
21639
21640 * coding.c (decode_eol): Pay attention to buffer relocation in
21641 del_range_2.
21642 (decode_coding): Call decode_eol before restoring undo_list.
21643
21644 2008-02-01 Kenichi Handa <handa@m17n.org>
21645
21646 * charset.c (Fdefine_charset_internal): Fix setting of
21647 emacs_mule_bytes.
21648
21649 2008-02-01 Kenichi Handa <handa@m17n.org>
21650
21651 * keyboard.c (read_char): Check if C is a character or not before
21652 looking up Vkeyboard_translate_table.
21653
21654 2008-02-01 Kenichi Handa <handa@m17n.org>
21655
21656 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
21657 condition to terminate the loop.
21658
21659 2008-02-01 Kenichi Handa <handa@m17n.org>
21660
21661 * coding.c (produce_composition): Compare charbuf[i] instead of
21662 args[i] against 0.
21663 (Fterminal_coding_system): Use EQ to compare Lisp objects.
21664
21665 2008-02-01 Kenichi Handa <handa@m17n.org>
21666
21667 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
21668 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
21669 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
21670 detect_coding.
21671 (emacs_mule_char): Handle old style (Emacs 20) component character
21672 of a composition.
21673 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
21674 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
21675 composition rule.
21676 (decode_coding_emacs_mule): Handle invalid bytes correctly.
21677
21678 2008-02-01 Kenichi Handa <handa@m17n.org>
21679
21680 * coding.c (encode_coding_ccl): Allocate destination dynamically
21681 when necessary.
21682
21683 2008-02-01 Kenichi Handa <handa@m17n.org>
21684
21685 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
21686 the loop. When quitted, show a proper error message.
21687
21688 2008-02-01 Kenichi Handa <handa@m17n.org>
21689
21690 * xterm.c (x_set_glyph_string_clipping_exactly): Set
21691 src->clip_head and src->clip_tail temporarily instead of src->hl.
21692
21693 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
21694 character sequence.
21695 (Fccl_execute_on_string): Use ASET, not XSET.
21696
21697 2008-02-01 Kenichi Handa <handa@m17n.org>
21698
21699 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
21700
21701 2008-02-01 Kenichi Handa <handa@m17n.org>
21702
21703 * coding.c (decode_coding): Fix the condition of terminating the
21704 decoding loop.
21705
21706 2008-02-01 Kenichi Handa <handa@m17n.org>
21707
21708 * data.c (Faset): On setting a character bigger than 255 in a
21709 unibyte string, signal an error instead of make the string multibyte.
21710
21711 2008-02-01 Kenichi Handa <handa@m17n.org>
21712
21713 * charset.c (map_charset_chars): Fix for ascii-compatible charset
21714 made by a mapping table.
21715
21716 2008-02-01 Kenichi Handa <handa@m17n.org>
21717
21718 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
21719 not.
21720 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
21721 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
21722
21723 * xterm.c (x_draw_composite_glyph_string_foreground): Check
21724 s->face is NULL or not.
21725
21726 2008-02-01 Kenichi Handa <handa@m17n.org>
21727
21728 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
21729 (x_draw_glyph_string): Fix drawing of right_overhang and
21730 left_overhang around/on cursor.
21731
21732 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
21733
21734 2008-02-01 Kenichi Handa <handa@m17n.org>
21735
21736 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
21737
21738 2008-02-01 Kenichi Handa <handa@m17n.org>
21739
21740 * coding.c (Fdefine_coding_system_internal)
21741 (Fdefine_coding_system_alias): Avoid a duplicated element in
21742 Vcoding_system_alist.
21743
21744 2008-02-01 Kenichi Handa <handa@m17n.org>
21745
21746 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
21747
21748 * coding.c (Qcoding_system_define_form): New variable.
21749 (syms_of_coding): Intern and staticpro it.
21750 (Fcoding_system_p): Check Qcoding_system_define_form.
21751 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
21752
21753 * coding.h (CODING_SYSTEM_P): If ID is not available, call
21754 Fcoding_system_p.
21755 (CHECK_CODING_SYSTEM): If ID is not available, call
21756 Fcheck_coding_system.
21757 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
21758 Try also Fcheck_coding_system.
21759
21760 2008-02-01 Kenichi Handa <handa@m17n.org>
21761
21762 * coding.c (code_conversion_restore): GCPRO arg.
21763
21764 2008-02-01 Kenichi Handa <handa@m17n.org>
21765
21766 * character.c (lisp_string_width): Check multibyteness of STRING.
21767
21768 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21769
21770 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
21771 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
21772 (decode_mac_font_name): Use decode_coding_c_string instead of
21773 decode_coding.
21774 (x_load_font): Initialize fontp->fontset to -1. Set
21775 fontp->encoding_type.
21776
21777 2008-02-01 Kenichi Handa <handa@m17n.org>
21778
21779 * search.c (search_buffer): Give up BM search on case-fold-search
21780 if one of a target character has a case-equivalence of different
21781 byte length even if that target character is an ASCII.
21782 (simple_search): Fix calculation of byte length of matched text.
21783 (boyer_moore): Fix handling of case-equivalent multibyte characters.
21784
21785 2008-02-01 Kenichi Handa <handa@m17n.org>
21786
21787 * coding.c (decode_coding): Fix handling of invalid bytes.
21788
21789 2008-02-01 Kenichi Handa <handa@m17n.org>
21790
21791 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
21792 Unicode characters.
21793
21794 2008-02-01 Kenichi Handa <handa@m17n.org>
21795
21796 * coding.c (encode_coding_object): If a pre-write-conversion
21797 function makes a new buffer, kill it.
21798
21799 2008-02-01 Kenichi Handa <handa@m17n.org>
21800
21801 * coding.c (QCascii_compatible_p): New variable.
21802 (syms_of_coding): Initialize it.
21803 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
21804 calling string_char.
21805 (record_conversion_result): Add `default:' case.
21806 (coding_charset_list): Delete unused variable `coding_type'.
21807 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
21808 property in the plist of the coding system.
21809 (Fcoding_system_put): Check QCascii_compatible_p.
21810
21811 2008-02-01 Miles Bader <miles@gnu.org>
21812
21813 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
21814 removed calculation of frame `f', as it's now used.
21815
21816 2008-02-01 Kenichi Handa <handa@m17n.org>
21817
21818 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
21819 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
21820 (UNIDATA): New variable.
21821 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
21822 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
21823 $(RUN_TEMACS) unconditionally.
21824
21825 2008-02-01 Kenichi Handa <handa@m17n.org>
21826
21827 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
21828 (admindir): New variable.
21829 ($(lispsource)international/charprop.el): New target.
21830
21831 2008-02-01 Miles Bader <miles@gnu.org>
21832
21833 * character.c (chars-in-region): Remove obsolete function.
21834 (syms_of_character): Remove its initialization.
21835
21836 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
21837
21838 * w32select.c (validate_coding_system)
21839 (setup_windows_coding_system): New functions.
21840 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
21841 setup_windows_coding_system.
21842 (setup_config, Fw32_get_clipboard_data): Use
21843 validate_coding_system.
21844 (Fx_selection_exists): Move call to setup_config to a place
21845 where signals are allowed.
21846
21847 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
21848 (Fcheck_coding_system): Add declarations.
21849
21850 2008-02-01 Kenichi Handa <handa@m17n.org>
21851
21852 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
21853
21854 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21855
21856 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
21857 string as the second argument for x_new_fontset.
21858
21859 2008-02-01 Kenichi Handa <handa@m17n.org>
21860
21861 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
21862 (encode_coding_object): Use safe_call instead of call2.
21863
21864 2008-02-01 Kenichi Handa <handa@m17n.org>
21865
21866 * fontset.c (Fset_fontset_font): Check family element of a given vector.
21867
21868 * Makefile.in (lisp): Include charprop.el.
21869
21870 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21871
21872 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
21873 Not sure if it's unnecessary.
21874
21875 2008-02-01 Steven Tamm <steventamm@mac.com>
21876
21877 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
21878 some possibly unnecessary fontset checking code that crashed
21879 when creating a new frame.
21880
21881 2008-02-01 Kenichi Handa <handa@m17n.org>
21882
21883 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
21884 lookup_face.
21885
21886 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
21887
21888 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
21889
21890 2008-02-01 Kenichi Handa <handa@m17n.org>
21891
21892 * coding.c: Cancel the change done in HEAD on 2008-02-01.
21893 (coding_charset_list): New function.
21894
21895 * coding.h (coding_charset_list): Extern it.
21896
21897 2008-02-01 Kenichi Handa <handa@m17n.org>
21898
21899 * fontset.c (Fset_fontset_font): Call find_font_encoding with
21900 concatenation of family and registry.
21901
21902 2008-02-01 Kenichi Handa <handa@m17n.org>
21903
21904 * character.h (BYTE8_STRING): Fix typo.
21905
21906 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
21907 string to multibyte (sync to HEAD).
21908
21909 * casefiddle.c (casify_region): Handle changes in byte-length
21910 using replace_range_2 (sync to HEAD).
21911
21912 2008-02-01 Andreas Schwab <schwab@suse.de>
21913
21914 * chartab.c (map_char_table): GCPRO table and arg.
21915
21916 2008-02-01 Kenichi Handa <handa@m17n.org>
21917
21918 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
21919 already at limit.
21920
21921 2008-02-01 Kenichi Handa <handa@m17n.org>
21922
21923 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
21924 instead of fast_c_string_match_ignore_case.
21925 (find_font_encoding): Change argument to Lisp_Object. Use
21926 fast_string_match_ignore_case instead of
21927 fast_c_string_match_ignore_case. Change caller.
21928
21929 2008-02-01 Kenichi Handa <handa@m17n.org>
21930
21931 * xdisp.c (get_next_display_element): In unibyte case, decide to
21932 display in octal form by checking a character by
21933 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
21934
21935 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
21936
21937 * character.c (unibyte_has_multibyte_table): New variable.
21938
21939 * character.h (unibyte_has_multibyte_table): Extern it.
21940 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
21941
21942 2008-02-01 Kenichi Handa <handa@m17n.org>
21943
21944 * coding.c (encode_coding_iso_2022): Fix handling of charset
21945 annotation.
21946
21947 2008-02-01 Kenichi Handa <handa@m17n.org>
21948
21949 * coding.c (setup_coding_system): If coding_system is nil, use
21950 Qundecided.
21951 (Fterminal_coding_system): Return nil if terminal coding system is
21952 `undecided'.
21953 (syms_of_coding): Define coding-system `undecided' here. Setup
21954 terminal_coding as `undecided'.
21955
21956 2008-02-01 Kenichi Handa <handa@m17n.org>
21957
21958 * xdisp.c (message_dolog, set_message_1): Call
21959 unibyte_char_to_multibyte with arg type int.
21960
21961 * lread.c (read1): Fix reading of a char-table.
21962
21963 * print.c (print_object): Include sub char-table in circularities
21964 detection.
21965
21966 2008-02-01 Kenichi Handa <handa@m17n.org>
21967
21968 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
21969 Append the found sequences in car of ARGS instead of prepending.
21970
21971 2008-02-01 Kenichi Handa <handa@m17n.org>
21972
21973 * fileio.c (report_file_error): Make a unibyte string from
21974 strerror (errorno).
21975 (Fsubstitute_in_file_name): Fix the arg to
21976 unibyte_char_to_multibyte. It is evaluated twice.
21977
21978 2008-02-01 Kenichi Handa <handa@m17n.org>
21979
21980 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
21981
21982 2008-02-01 Kenichi Handa <handa@m17n.org>
21983
21984 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
21985 BOM is not found.
21986 (detect_coding, detect_coding_system): Optimization for ISO-2022
21987 when no 8-bit data is found.
21988
21989 2008-02-01 Jason Rumney <jasonr@gnu.org>
21990
21991 * w32fns.c (x_to_w32_font): Update to use new coding struct.
21992
21993 2008-02-01 Kenichi Handa <handa@m17n.org>
21994
21995 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
21996 CHARS.
21997
21998 2008-02-01 Steven Tamm <steventamm@mac.com>
21999
22000 * macterm.c (mac_encode_char): Add charset argument and update
22001 to use encoding_type.
22002 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
22003 switch to pure fontset.
22004 (decode_mac_font_name): Temporarily remove decoding.
22005 (x_font_name_to_mac_font_name): Temporarily remove encoding.
22006 (x_load_font): Temporarily remove encoding.
22007
22008 2008-02-01 Kenichi Handa <handa@m17n.org>
22009
22010 * xfaces.c (Fface_font): If frame is not on a window system,
22011 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
22012 refer to face->font.
22013 (split_font_name_into_vector, build_font_name_from_vector)
22014 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
22015 when HAVE_WINDOW_SYSTEM is defined.
22016
22017 2008-02-01 Kenichi Handa <handa@m17n.org>
22018
22019 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
22020 (x_produce_glyphs): Fix setting of members of cmp in case
22021 cmp->glyph_len is zero.
22022
22023 * fontset.c (Fset_fontset_font): Fix docstring.
22024 (Ffontset_info): Make it backward compatible. New arg ALL.
22025
22026 2008-02-01 Kim F. Storm <storm@cua.dk>
22027
22028 * process.c (read_process_output): Grow decoding_buf when needed;
22029 this could cause a crash in allocate_string and compact_small_strings.
22030
22031 2008-02-01 Kenichi Handa <handa@m17n.org>
22032
22033 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
22034
22035 2008-02-01 Kenichi Handa <handa@m17n.org>
22036
22037 * coding.c (setup_coding_system): Set coding->common_flags
22038 correctly for raw-text.
22039 (consume_chars): On encoding unibyte text by raw-text, don't check
22040 multibyte form.
22041 (encode_coding): On encoding by raw-text, never use translation tables.
22042
22043 * fileio.c (e_write): Short cut for the case of no encoding.
22044
22045 2008-02-01 Kenichi Handa <handa@m17n.org>
22046
22047 * coding.c (detect_coding, detect_coding_system): Delete unused
22048 variables.
22049
22050 2008-02-01 Kenichi Handa <handa@m17n.org>
22051
22052 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
22053 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
22054
22055 2008-02-01 Kenichi Handa <handa@m17n.org>
22056
22057 * coding.c (Ffind_coding_systems_region_internal): Include
22058 raw-text and no-conversion in the result.
22059
22060 2008-02-01 Kenichi Handa <handa@m17n.org>
22061
22062 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
22063 (load_font_get_repertory): Delete unnecessary check of ENCODING of
22064 FONT_DEF.
22065 (font_def_arg, add_arg, from_arg, to_arg): New args.
22066 (set_fontset_font): Change argument.
22067 (Fset_fontset_font): Fix for the case that TARGET is a script
22068 name and charset name.
22069 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
22070
22071 2008-02-01 Kenichi Handa <handa@m17n.org>
22072
22073 * fontset.c (fontset_font): Rename from fontset_face. Change return
22074 value.
22075 (face_suitable_for_char_p, face_for_char): Adjust for the change
22076 of fontset_font.
22077 (make_fontset_for_ascii_face): Fix setting of the fontset element
22078 for ASCII.
22079 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
22080 to get a font name.
22081 (Ffontset_info): Adjust for the change of fontset_font.
22082
22083 * coding.c (emacs_mule_char): Check invalid code more rigidly.
22084
22085 * character.h (LEADING_CODE_LATIN_1_MIN)
22086 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
22087
22088 2008-02-01 Kenichi Handa <handa@m17n.org>
22089
22090 * editfns.c (check_translation): New function.
22091 (Ftranslate_region_internal): Handle M:N mapping.
22092
22093 2008-02-01 Kenichi Handa <handa@m17n.org>
22094
22095 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
22096
22097 2008-02-01 Kenichi Handa <handa@m17n.org>
22098
22099 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
22100 goto invalid_code.
22101 (decode_coding_iso_2022): Fix handling of invalid designation.
22102
22103 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
22104 after calling code_conversion_save.
22105
22106 2008-02-01 Kenichi Handa <handa@m17n.org>
22107
22108 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
22109
22110 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
22111
22112 * fontset.c: Include "intervals.h".
22113 (fontset_face): Fix comparing of Lisp_Objects.
22114 (free_face_fontset, new_fontset_from_font_name): Fix
22115 Lisp_Object/int mixup.
22116
22117 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
22118
22119 * coding.c: Add many prototypes for static functions.
22120 (get_translation_table): Allow max_lookup to be NULL.
22121 (decode_coding, Ffind_coding_systems_region_internal)
22122 (Funencodable_char_position, Fcheck_coding_systems_region): Call
22123 get_translation_table with max_lookup NULL.
22124
22125 2008-02-01 Kenichi Handa <handa@m17n.org>
22126
22127 * coding.c (get_translation_table): Declare it as Lisp_Object.
22128 (LOOKUP_TRANSLATION_TABLE): New macro.
22129 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
22130 instead of CHAR_TABLE_REF.
22131
22132 2008-02-01 Kenichi Handa <handa@m17n.org>
22133
22134 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
22135 annotation data format.
22136 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
22137 Change arguments FROM and TO to single argument NCHARS. Change caller.
22138 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
22139 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
22140 (decode_coding_ccl, decode_coding_charset): Pay attention to
22141 coding->charbuf_used.
22142 (get_translation): New function.
22143 (produce_chars): New arguments translation_table and last_block.
22144 Translate characters here. Return number of carryover chars.
22145 Change caller.
22146 (produce_composition): New argument pos. Change caller.
22147 Adjust for the change of annotation data format.
22148 (produce_charset, produce_annotation): Likewise.
22149 (decode_coding, encode_coding): Don't call translate_chars.
22150 (consume_chars): New arg translation_table. Change caller.
22151 (translate_chars): Delete.
22152 (syms_of_coding): Make translation-table's number of extra slots 2.
22153
22154 2008-02-01 Kenichi Handa <handa@m17n.org>
22155
22156 * search.c (simple_search): Fix setting this_pos_byte in backward
22157 search.
22158
22159 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
22160 byte sequence.
22161 (detect_coding_ccl): Fix setting of the variable valids.
22162
22163 2008-02-01 Kenichi Handa <handa@m17n.org>
22164
22165 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
22166
22167 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
22168
22169 * editfns.c (Ftranslate_region_internal): Rename from
22170 Ftranslate_region. Accept a char-table in TABLE.
22171 (syms_of_editfns): Defsubr Stranslate_region_internal.
22172
22173 * xfaces.c (set_lface_from_font_name): If a font is specified for
22174 a frame, generate a fontset from the font.
22175 (build_scalable_font_name): If the scalable font is requested for
22176 a specific size, don't change that size.
22177 (try_font_list): Try a scalable font also in the case that a
22178 pattern string is specified.
22179
22180 2008-02-01 Kenichi Handa <handa@m17n.org>
22181
22182 * xfaces.c (Fface_font): New optional arg CHARACTER.
22183
22184 2008-02-01 Kenichi Handa <handa@m17n.org>
22185
22186 * charset.h (CHARSET_OFFSET): New macro.
22187
22188 2008-02-01 Kenichi Handa <handa@m17n.org>
22189
22190 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
22191
22192 * fontset.c (fontset_face): Handle the case that repertory is a
22193 char-table.
22194 (find_font_encoding): Return nil for unknown encoding.
22195 (Fset_fontset_font): Ignore a font of unknown encoding.
22196
22197 2008-02-01 Kenichi Handa <handa@m17n.org>
22198
22199 * keymap.c (describe_vector): Handle default value of a char table.
22200
22201 * fontset.c (fontset_face): Handle fallback fonts correctly.
22202 (Ffontset_info): Return infomation about fallback fonts.
22203
22204 2008-02-01 Kenichi Handa <handa@m17n.org>
22205
22206 * fontset.c (FONTSET_DEFAULT): New macro.
22207 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
22208 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
22209 the case that it is nil.
22210 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
22211 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
22212
22213 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
22214 subset or superset.
22215
22216 2008-02-01 Kenichi Handa <handa@m17n.org>
22217
22218 * emacs.c (main): Call init_charset after syms_of_XXX.
22219
22220 * charset.c (Vcharset_map_directory): Delete.
22221 (Vcharset_map_path): New variable.
22222 (load_charset_map_from_file): Use Vcharset_map_path instead.
22223 (init_charset): Initialize Vcharset_map_path.
22224 (syms_of_charset): Delete declaration of "charset-map-directory",
22225 add declaration of "charset-map-path".
22226
22227 2008-02-01 Kenichi Handa <handa@m17n.org>
22228
22229 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
22230 ASCII only string.
22231
22232 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
22233
22234 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
22235 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
22236
22237 2008-02-01 Kenichi Handa <handa@m17n.org>
22238
22239 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
22240
22241 * coding.c (QCmnemonic, QCdefalut_char)
22242 (QCdecode_translation_table, QCencode_translation_table)
22243 (QCpost_read_conversion, QCpre_write_conversion): New variables.
22244 (get_translation_table): Return a list of translation tables if
22245 necessary.
22246 (decode_coding): Call get_translation_table with ENCODEP 0.
22247 (char_encodable_p): If translation_table is non-nil, always call
22248 translate_char.
22249 (Fdefine_coding_system_internal): Accept list of translation
22250 tables as :encode-translation-table and :decode-translation-table.
22251 (Fcoding_system_put): New function.
22252 (syms_of_coding): Declare new symbols. Defsubr
22253 Scoding_system_put.
22254 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
22255 typically JISX0212.
22256
22257 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
22258 when the charset is superset type.
22259
22260 * character.c (translate_char): Accept list of translation tables.
22261
22262 2008-02-01 Kenichi Handa <handa@m17n.org>
22263
22264 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
22265 (CODING_ATTR_TRANS_TBL): New macro.
22266
22267 * coding.c (get_translation_table): New function.
22268 (translate_chars): Fix the bug of skipping annotation data.
22269 (decode_coding, encode_coding): Utilize get_translation_table.
22270 (char_encodable_p, Funencodable_char_position): Translate char if
22271 necessary.
22272 (Ffind_coding_systems_region_internal)
22273 (Fcheck_coding_systems_region): Setup translation table for encode
22274 in a coding system attribute vector in advance.
22275 (Fdefine_coding_system_internal): Allow a symbol as translation
22276 table. For shift-jis type coding system, allow 4th charset.
22277
22278 2008-02-01 Kenichi Handa <handa@m17n.org>
22279
22280 * coding.c (decode_coding_sjis): Check the first byte rigidly.
22281
22282 * xdisp.c (get_next_display_element): Pass -1 as POS to
22283 FACE_FOR_CHAR if displaying a C-string.
22284
22285 2008-02-01 Kenichi Handa <handa@m17n.org>
22286
22287 * composite.c (get_composition_id): Handle xoff and yoff in a
22288 composition rule.
22289
22290 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
22291 (struct composition): New member lbearing and rbearing.
22292
22293 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
22294 (x_get_glyph_overhangs): Handle a composition glyph.
22295 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
22296
22297 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
22298 composition glyph.
22299
22300 2008-02-01 Kenichi Handa <handa@m17n.org>
22301
22302 * print.c: Include charset.h.
22303 (Vprint_charset_text_property): New variable.
22304 (Qdefault): Extern it.
22305 (PRINT_STRING_NON_CHARSET_FOUND)
22306 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
22307 (print_check_string_result): New variable.
22308 (print_check_string_charset_prop): New function.
22309 (print_prune_charset_plist): New variable.
22310 (print_prune_string_charset): New function.
22311 (print_object): Call print_prune_string_charset if
22312 Vprint_charset_text_property is not t.
22313 (print_interval): Print nothing if interval->plist is nil.
22314 (syms_of_print): Declare Vprint_charset_text_property as a lisp
22315 variable. Init and staticpro print_prune_charset_plist.
22316
22317 2008-02-01 Kenichi Handa <handa@m17n.org>
22318
22319 * fontset.c (new_fontset_from_font_name): Use the specified font
22320 for all characters in the new fontset.
22321
22322 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
22323 OBJECT args.
22324
22325 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
22326 OBJECT args for composition too.
22327
22328 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
22329 OBJECT args.
22330
22331 2008-02-01 Kenichi Handa <handa@m17n.org>
22332
22333 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
22334
22335 * fontset.c (reorder_font_vector): Adjust for the change of
22336 FONT_DEF format.
22337 (fontset_face): New arg id. Change caller.
22338 (face_for_char): New args pos and object.
22339 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
22340 (fs_query_fontset): Check NAME by Fassoc too.
22341 (Fset_fontset_font): Allow non-XLFD font name.
22342 (Ffontset_info): Adjust for the change of FONT_DEF format.
22343
22344 * fontset.h (face_for_char): Adjust prototype.
22345
22346 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
22347 (append_space, extend_face_to_end_of_line)
22348 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
22349 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
22350
22351 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
22352 POS and OBJECT args.
22353
22354 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
22355 POS and OBJECT args.
22356
22357 2008-02-01 Jason Rumney <jasonr@gnu.org>
22358
22359 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
22360 of GlobalAlloc'ed memory.
22361
22362 2008-02-01 Kenichi Handa <handa@m17n.org>
22363
22364 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
22365
22366 * charset.h (charset_table_used): Delete extern.
22367
22368 * charset.c (charset_table_used): Make it static.
22369 (map_charset_chars): Fix args to c_function with.
22370
22371 * chartab.c (map_sub_char_table_for_charset): Fix args to
22372 c_function with.
22373
22374 * coding.h (enum coding_result_code): Delete
22375 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
22376
22377 * coding.c (Qinsufficient_source, Qinconsistent_eol)
22378 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
22379 (Vlast_code_conversion_error): New variables.
22380 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
22381 (ONE_MORE_BYTE): Record error if any instead of signaling an
22382 error. If non-ASCII multibyte char is found, return the negative
22383 value of the code. All callers changed to check it.
22384 (ONE_MORE_BYTE_NO_CHECK): Likewise.
22385 (record_conversion_result): New function. Change all codes setting
22386 coding->result to call this function.
22387 (detect_coding_utf_8, decode_coding_utf_8)
22388 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
22389 Don't use the local variable incomplete.
22390 (emacs_mule_char): Change the second arg to `const'.
22391 (decode_coding): Fix of flushing out unprocessed data.
22392 (make_conversion_work_buffer): Fix making of a work buffer.
22393 (decode_coding_object): Return coding->dst_object.
22394
22395 * fontset.c (set_fontset_font): Fix args.
22396
22397 * lisp.h (CHARACTERBITS): Define as 22.
22398
22399 * process.c (send_process): Be sure to set coding->src_multibyte.
22400
22401 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
22402
22403 2008-02-01 Kenichi Handa <handa@m17n.org>
22404
22405 * xdisp.c (handle_auto_composed_prop): Give limit to
22406 Fnext_single_char_property_change.
22407
22408 2008-02-01 Kenichi Handa <handa@m17n.org>
22409
22410 * composite.c (syms_of_composite): Don't make the composition hash
22411 table weak.
22412
22413 * fontset.c (Fset_fontset_font): Fix docstring.
22414
22415 * lisp.h (detect_coding_system): Adjust prototype.
22416
22417 * fileio.c (kill_workbuf_unwind): Delete this function.
22418 (Finsert_file_contents): Adjust the call of detect_coding_system.
22419 Get conversion_buffer by code_conversion_save. Use the macro
22420 CODING_MAY_REQUIRE_DECODING. After decoding, update
22421 coding_system.
22422
22423 * coding.h (make_conversion_work_buffer): Delete extern.
22424 (code_conversion_save): Extern it.
22425
22426 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
22427 (CODING_GET_INFO): Delete argument eol_type. Change callers.
22428 (decode_coding_utf_8): Don't do eol converion.
22429 (detect_coding_utf_16): Check coding->src_chars, not
22430 coding->src_bytes. Add heuristics for those that have no signature.
22431 (decode_coding_emacs_mule, decode_coding_iso_2022)
22432 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
22433 Don't do eol converion.
22434 (adjust_coding_eol_type): Return a new coding system.
22435 (detect_coding): Don't detect eol. Fix for utf-16 detection.
22436 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
22437 each change.
22438 (decode_coding): Pay attention to undo_list. Do eol conversion for
22439 all types of coding-systems (if necessary).
22440 (Vcode_conversion_work_buf_list): Delete it.
22441 (Vcode_conversion_reused_workbuf): Rename from
22442 Vcode_conversion_reused_work_buf.
22443 (Vcode_conversion_workbuf_name): New variable.
22444 (reused_workbuf_in_use): New variable.
22445 (make_conversion_work_buffer): Delete the arg DEPTH.
22446 (code_conversion_restore): Change argument to cons.
22447 (code_conversion_save): Delete the argument BUFFER. Change callers.
22448 (detect_coding_system): New argument src_chars. Change callers.
22449 Fix for utf-16 detection.
22450 (init_coding_once): Don't use ISO_carriage_return.
22451 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
22452 reused_workbuf_in_use.
22453
22454 2008-02-01 Kenichi Handa <handa@m17n.org>
22455
22456 * keymap.c (store_in_keymap): Pay attention to the case that idx
22457 is a cons specifying a character range.
22458
22459 2008-02-01 Kenichi Handa <handa@m17n.org>
22460
22461 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
22462 HANDLED_RECOMPUTE_PROPS.
22463
22464 * coding.c (Fdefine_coding_system_internal): Fix checking of
22465 ascii compatibility.
22466
22467 2008-02-01 Kenichi Handa <handa@m17n.org>
22468
22469 * charset.c (find_charsets_in_text): Delete unused locale variable.
22470 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
22471
22472 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
22473 Resync charset_list to Vemacs_mule_charset_list.
22474
22475 * keymap.c (store_in_keymap): Pay attention to the case that idx
22476 is a cons specifying a character range.
22477
22478 2008-02-01 Kenichi Handa <handa@m17n.org>
22479
22480 * composite.c (update_compositions): Bind inhibit-read-only, etc
22481 to t before calling remove-list-of-text-properties.
22482
22483 * print.c (print_object): Always print ASCII chars as is.
22484
22485 2008-02-01 Kenichi Handa <handa@m17n.org>
22486
22487 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
22488
22489 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
22490 is a char table.
22491
22492 2008-02-01 Kenichi Handa <handa@m17n.org>
22493
22494 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
22495
22496 2008-02-01 Kenichi Handa <handa@m17n.org>
22497
22498 * xfaces.c (set_lface_from_font_name): Fix for the case that
22499 FONTNAME is not fontset name.
22500
22501 2008-02-01 Kenichi Handa <handa@m17n.org>
22502
22503 * fns.c (base64_encode_1): Fix previous change.
22504
22505 2008-02-01 Kenichi Handa <handa@m17n.org>
22506
22507 * fontset.c (set_fontset_font): New function.
22508 (Fset_fontset_font): If a font is specified for a charset, use
22509 map_charset_chars to store the font spec in a fontset.
22510
22511 2008-02-01 Kenichi Handa <handa@m17n.org>
22512
22513 * fontset.c (fontset_face): Create a fallback fontset on demand.
22514 (make_fontset): Don't create a fallback fontset here.
22515 (free_face_fontset): Free a fallback fontset (if any) too.
22516 (n_auto_fontsets): Delete this variable.
22517 (auto_fontset_alist): New variable.
22518 (new_fontset_from_font_name): Check auto_fontset_alist.
22519 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
22520 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
22521 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
22522 Defsubr Sfontset_list_all.
22523
22524 2008-02-01 Kenichi Handa <handa@m17n.org>
22525
22526 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
22527
22528 2008-02-01 Kenichi Handa <handa@m17n.org>
22529
22530 * fontset.c (Fnew_fontset): Check NAME more rigidly.
22531
22532 2008-02-01 Kenichi Handa <handa@m17n.org>
22533
22534 * editfns.c (Fgoto_char): Fix docstring.
22535
22536 2008-02-01 Kenichi Handa <handa@m17n.org>
22537
22538 * insdel.c (insert_from_gap): Adjust intervals correctly.
22539
22540 2008-02-01 Jason Rumney <jasonr@gnu.org>
22541
22542 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
22543 (pfnGetFontUnicodeRanges): New dynamically loaded function.
22544 (w32_initialize): Try to load it.
22545 (x_get_font_repertory): Use it if available.
22546 (w32_encode_char): Add shortcut for unicode output.
22547
22548 * w32fns.c (w32_load_system_font): Default charset to -1.
22549 (x_to_w32_charset): Match all fonts for unicode.
22550 (w32_to_x_charset): New parameter matching. Don't return partial
22551 or wildcard charsets.
22552 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
22553 (w32_codepage_for_font): Return CP_UNICODE for unicode.
22554 (w32_to_x_font): Match charset to real charset.
22555 (enum_font_cb2): Always list unicode versions.
22556
22557 * makefile.w32-in (temacs): Increase EMHEAP.
22558
22559 2008-02-01 Jason Rumney <jasonr@gnu.org>
22560
22561 * w32term.c (w32_encode_char): New charset parameter.
22562 font_info.encoding becomes encoding_type.
22563 (x_get_font_repertory): New function. Warning: stub only!
22564 (x_new_font): Return quickly if font already set.
22565 (x_new_fontset): fontsetname parameter is Lisp_Object.
22566 Use new fs_query_fontset. Try new_fontset_from_font_name.
22567 Use fontset_name for return value.
22568
22569 * w32term.h: Declare x_get_font_repertory.
22570
22571 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
22572 place of find_charset_in_text. Use encode_coding_object in place
22573 of encode_coding.
22574 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
22575 decode_coding.
22576
22577 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
22578 of x_new_fontset.
22579 (w32_load_system_font): Initialize charset as unicode.
22580 font_info.encoding becomes encoding_type.
22581 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
22582 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
22583 (syms_of_w32fns): Set get_font_repertory_func.
22584
22585 * w32console.c: Include character.h. Use terminal_encode_buffer
22586 from term.c.
22587 (write_glyphs): Use new version of encode_terminal_code. Use
22588 encode_coding_object in place of encode_coding.
22589
22590 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
22591 encoding becomes encoding_type.
22592
22593 * term.c (terminal_encode_buffer): Make externally visible.
22594
22595 * makefile.w32-in: Add character.h dependancies.
22596 (character.o, chartab.o): New targets.
22597
22598 2008-02-01 Kenichi Handa <handa@m17n.org>
22599
22600 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
22601 CODING_ID_EOL_TYPE.
22602
22603 2008-02-01 Andreas Schwab <schwab@suse.de>
22604
22605 * coding.c (produce_chars): Revert last change.
22606
22607 2008-02-01 Kenichi Handa <handa@m17n.org>
22608
22609 * charset.h (charset_unicode): Extern it.
22610
22611 * charset.c (string_xstring_p): Check by (C >= 0x100).
22612 (find_charsets_in_text): Change format of the arc CHARSETS. New
22613 arg MULTIBYTE.
22614 (Ffind_charset_region, Ffind_charset_string): Adjust for the
22615 change of find_charsets_in_text.
22616 (Fsplit_char): Fix doc. Never return unknown.
22617
22618 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
22619
22620 * coding.c (Fdefine_coding_system_alias): Update
22621 Vcoding_system_list.
22622
22623 * fontset.c (load_font_get_repertory): Pay attention to the case
22624 that ENCODING of a font is specified by a char-table.
22625
22626 * xterm.c (x_get_font_repertory): Handle the case that the
22627 encoding of font is other than Unicode.
22628
22629 2008-02-01 Kenichi Handa <handa@m17n.org>
22630
22631 * term.c (encode_terminal_code): Don't handle glyph-table. Check
22632 if a character is encodable by the terminal coding system. If
22633 not, produces proper number of `?'s. Update
22634 terminal_encode_buffer and terminal_encode_buf_size if necessary.
22635 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
22636
22637 2008-02-01 Kenichi Handa <handa@m17n.org>
22638
22639 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
22640 variables.
22641 (encode_terminal_code): Change argument. Encode multiple
22642 characters at once. Store the result of encoding in
22643 terminal_encode_buffer.
22644 (write_glyphs, insert_glyphs): Adjust for the change of
22645 encode_terminal_code.
22646 (term_init): Initialize terminal_encode_buffer and
22647 terminal_encode_buf_size.
22648
22649 * coding.c (consume_chars): If coding->src_object is nil, don't
22650 check annotation.
22651
22652 2008-02-01 Kenichi Handa <handa@m17n.org>
22653
22654 * character.c (char_string): Use ASCII_CHAR_P instead of
22655 SINGLE_BYTE_CHAR_P.
22656
22657 2008-02-01 Kenichi Handa <handa@m17n.org>
22658
22659 * xdisp.c (handle_auto_composed_prop): Check if the last
22660 characters of auto-composed region is newly composed with the
22661 following characters.
22662 (handle_composition_prop): Fix checking of point being inside
22663 composition.
22664
22665 2008-02-01 Kenichi Handa <handa@m17n.org>
22666
22667 * fns.c (concat): Don't change multibyteness of the result by
22668 concatenating an 8-bit character.
22669
22670 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
22671 multibyteness of the result when newelt is an 8-bit character.
22672
22673 2008-02-01 Dave Love <fx@gnu.org>
22674
22675 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
22676 EMACS_INT.
22677
22678 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
22679
22680 * xfaces.c (face_numeric_value): Declare dim size_t.
22681 (Finternal_lisp_face_equal_p): Remove unused f.
22682
22683 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
22684 (MATRIX_ROW): Remove unused vars.
22685 (draw_glyphs, x_insert_glyphs, fast_find_position)
22686 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
22687 byte/char counts.
22688
22689 * regex.c (regex_compile): Remove unused var.
22690
22691 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
22692
22693 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
22694 (Faccessible_keymaps, where_is_internal): Remove unused vars.
22695
22696 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
22697
22698 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
22699
22700 * fileio.c (Fwrite_region): Remove unused var.
22701
22702 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
22703 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
22704
22705 * composite.c (Fremove_list_of_text_properties): Declare.
22706
22707 * coding.c (inhibit_pre_post_conversion): Remove (unused).
22708 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
22709 (coding_inherit_eol_type): Remove unused attrs.
22710 (detect_coding): Cast arg of detect_eol.
22711
22712 * charset.c (syms_of_charset): Remove unused var p.
22713 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
22714 byte/char counts.
22715
22716 * casetab.c (set_case_table): Remove unused var.
22717
22718 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
22719 unused vars.
22720
22721 2008-02-01 Dave Love <fx@gnu.org>
22722
22723 * xterm.c (x_bitmap_mask): Declare.
22724
22725 2008-02-01 Dave Love <fx@gnu.org>
22726
22727 * xterm.c (x_term_init): Fix type error.
22728
22729 * lisp.h: Add Funibyte_char_to_multibyte.
22730
22731 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
22732 (Fset_coding_system_priority): Doc fix.
22733
22734 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
22735
22736 * indent.c (check_composition): Make start and end EMACS_INT.
22737
22738 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
22739
22740 * xdisp.c (handle_composition_prop, check_point_in_composition):
22741 Make buffer positions EMACS_INT.
22742
22743 * composite.c (find_composition, run_composition_function)
22744 (update_compositions, Ffind_composition_internal): Make buffer
22745 positions EMACS_INT.
22746
22747 * composite.h (find_composition, update_compositions): Make
22748 position args EMACS_INT.
22749
22750 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
22751
22752 * intervals.c (get_property_and_range):
22753 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
22754
22755 * unexalpha.c: Don't include varargs.h.
22756
22757 2008-02-01 Dave Love <fx@gnu.org>
22758
22759 * coding.h (ENCODE_UTF_8): New.
22760
22761 * Makefile.in (gtkutil.o): Depend on coding.h.
22762
22763 * coding.c (Fset_coding_system_priority): Doc fix.
22764
22765 2008-02-01 Kenichi Handa <handa@m17n.org>
22766
22767 * fileio.c (Finsert_file_contents): Call setup_coding_system in
22768 the case of auto saving.
22769
22770 2008-02-01 Andreas Schwab <schwab@suse.de>
22771
22772 * chartab.c (map_char_table, map_char_table_for_charset): Protect
22773 `range' from GC.
22774
22775 2008-02-01 Kenichi Handa <handa@m17n.org>
22776
22777 * coding.c (decode_coding_sjis): Check bytes more rigidly.
22778
22779 2008-02-01 Kenichi Handa <handa@m17n.org>
22780
22781 * fileio.c (choose_write_coding_system): Return a decided coding system.
22782 (Fwrite_region): Set Vlast_coding_system_used to the return value
22783 of choose_write_coding_system.
22784
22785 2008-02-01 Kenichi Handa <handa@m17n.org>
22786
22787 * charset.c (Fset_charset_priority): Pay attention to duplicated
22788 arguments.
22789
22790 * coding.c (QCcategory): New variable.
22791 (syms_of_coding): Defsym it. Set all elements of
22792 Vcoding_category_table and their symbol values.
22793 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
22794 coding-category-XXX, and coding-category-list.
22795 (Fdefine_coding_system_internal): Add category in the plist.
22796
22797 2008-02-01 Kenichi Handa <handa@m17n.org>
22798
22799 * callproc.c (Fcall_process): Handle carryover correctly.
22800
22801 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
22802 (raw_text_coding_system): Check NILP (coding_system).
22803 (coding_inherit_eol_type): Check NILP (coding_system) and
22804 NILP (parent).
22805 (consume_chars): Fix for the case of raw-text.
22806
22807 * process.c (read_process_output): Handle carryover correctly.
22808
22809 2008-02-01 Dave Love <fx@gnu.org>
22810
22811 * regex.c (re_search_2): Fix last change.
22812
22813 2008-02-01 Kenichi Handa <handa@m17n.org>
22814
22815 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
22816 target_multibyte. Even in a unibyte case, return a converted
22817 multibyte char.
22818 (GET_CHAR_AFTER): New macro.
22819 (PATFETCH): Translate via multibyte char.
22820 (HANDLE_UNIBYTE_RANGE): Delete this macro.
22821 (SETUP_MULTIBYTE_RANGE): New macro.
22822 (regex_compile): Setup compiled code so that its multibyteness
22823 matches that of a target. Fix the handling of "[X-YZ]" using
22824 SETUP_MULTIBYTE_RANGE.
22825 (analyse_first) <charset>: For filling fastmap for all multibyte
22826 characters, don't check by BASE_LEADING_CODE_P.
22827 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
22828 the same as RE_MULTIBYTE_P (bufp) now.
22829 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
22830 (TARGET_CHAR_AND_LENGTH): Delete this macro.
22831 (TRANSLATE_VIA_MULTIBYTE): New macro.
22832 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
22833 It is the same as RE_MULTIBYTE_P (bufp) now.
22834 <exactn>: Translate via multibyte.
22835 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
22836 translate it.
22837 <charset, charset_not>: Fetch a character by
22838 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
22839 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
22840 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
22841 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
22842 by GET_CHAR_AFTER.
22843 (bcmp_translate): Likewise.
22844
22845 * search.c (compile_pattern): Check the member target_multibyte,
22846 not the member multibyte of buf.
22847
22848 * lread.c (read1): While reading a string, set force_singlebyte
22849 and force_multibyte correctly.
22850
22851 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
22852 up of unibyte_to_multibyte_table.
22853
22854 2008-02-01 Kenichi Handa <handa@m17n.org>
22855
22856 * coding.c (setup_coding_system): If coding has
22857 post-read-conversion or pre-write-conversion, set
22858 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
22859 respectively.
22860 (decode_coding_gap): Run post-read-conversion if any.
22861
22862 * fileio.c (Finsert_file_contents): Even if we read into a
22863 unibyte buffer, check if we must decode the result or not.
22864
22865 2008-02-01 Kenichi Handa <handa@m17n.org>
22866
22867 * coding.c (make_conversion_work_buffer): Change the work buffer
22868 name to the same one as that of Emacs 21.
22869
22870 2008-02-01 Kenichi Handa <handa@m17n.org>
22871
22872 * coding.h (make_conversion_work_buffer): Adjust prototype.
22873 (code_conversion_restore): Don't extern it.
22874
22875 * coding.c (detected_mask): Delete unused variable.
22876 (decode_coding_iso_2022): Pay attention to the byte sequence of
22877 CTEXT extended segment, and retain those bytes as is.
22878 (decode_coding_ccl): Delete unused variable `valids'.
22879 (setup_coding_system): Delete unused variable `category'.
22880 (consume_chars): Delete unused variable `category'. Make it work
22881 for non-multibyte case.
22882 (make_conversion_work_buffer): Change argument.
22883 (saved_coding): Delete unused variable.
22884 (code_conversion_restore): Don't check saved_coding->destination.
22885 (code_conversion_save): New function.
22886 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
22887 instead of record_unwind_protect.
22888 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
22889 (detect_coding_system): Delete unused variable `mask'.
22890 (Fdefine_coding_system_internal): Delete unused variable id.
22891
22892 * fileio.c (kill_workbuf_unwind): New function.
22893 (Finsert_file_contents): On replacing, call
22894 make_conversion_work_buffer with correct args, and call
22895 record_unwind_protect with the first arg kill_workbuf_unwind.
22896
22897 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
22898
22899 2008-02-01 Kenichi Handa <handa@m17n.org>
22900
22901 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
22902 (fontset_add): Fix for the case that TO is less than TO1.
22903 (Ffontset_info): Don't use fallback fontset on checking the
22904 default fontset.
22905 (dump_fontset): New function for debugging.
22906
22907 * coding.c (Fdefine_coding_system_internal): Fix for the case that
22908 coding_type is Qcharset.
22909
22910 2008-02-01 Kenichi Handa <handa@m17n.org>
22911
22912 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
22913 (map_char_table): Don't inherit the value from the parent on
22914 initializing VAL. Adjust for the above change.
22915
22916 2008-02-01 Kenichi Handa <handa@m17n.org>
22917
22918 * coding.c (Qsignature, Qendian): Delete these variables.
22919 (syms_of_coding): Don't initialize them.
22920 (CATEGORY_MASK_UTF_16_AUTO): New macro.
22921 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
22922 detect_info->found.
22923 (decode_coding_utf_16): Don't detect BOM here.
22924 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
22925 is NOT utf_16_without_bom.
22926 (setup_coding_system): For a coding system of type utf-16, check
22927 if the attribute :endian is Qbig or not (not nil or not), and set
22928 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
22929 (detect_coding): If coding type is utf-16 and BOM detection is
22930 required, detect it.
22931 (Fdefine_coding_system_internal): For a coding system of type
22932 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
22933
22934 2008-02-01 Kenichi Handa <handa@m17n.org>
22935
22936 * coding.c (coding_set_source): Fix for the case that the current
22937 buffer is different from coding->src_object.
22938 (decode_coding_object): Don't use the conversion work buffer if
22939 DST_OBJECT is a buffer.
22940
22941 2008-02-01 Dave Love <fx@gnu.org>
22942
22943 * lread.c (read_emacs_mule_char) [len==2]: Index
22944 emacs_mule_charset correctly.
22945
22946 2008-02-01 Dave Love <fx@gnu.org>
22947
22948 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
22949 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
22950 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
22951 treated specially.)
22952 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
22953 (detected_mask): Remove Big5 bits.
22954
22955 2008-02-01 Kenichi Handa <handa@m17n.org>
22956
22957 The following changes are to make the font rescaling facility
22958 compatible with Emacs 21.
22959
22960 * xfaces.c (Vface_font_rescale_alist): Rename from
22961 Vface_resizing_fonts.
22962 (struct font_name): Rename member resizing_ratio to rescale_ratio.
22963 (font_rescale_ratio): Rename from font_resizing_ratio.
22964 (split_font_name): Set font->rescale_ratio.
22965 (better_font_p): Pay attention to font->rescale_ratio.
22966 (build_scalable_font_name): Likewise. Change RESX, and RESY
22967 fields.
22968 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
22969
22970 2008-02-01 Kenichi Handa <handa@m17n.org>
22971
22972 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
22973 (Qutf_16_le): Remove these variables.
22974 (syms_of_coding): Don't DEFSYM them.
22975 (decode_coding_utf_16): Fix handling of BOM.
22976 (encode_coding_utf_16): Fix handling of BOM.
22977
22978 2008-02-01 Kenichi Handa <handa@m17n.org>
22979
22980 * fileio.c (Finsert_file_contents): On replacing, before decoding
22981 the file into the work buffer, set point of the work buffer to the end.
22982
22983 2008-02-01 Dave Love <fx@gnu.org>
22984
22985 * coding.c (Fcheck_coding_systems_region): Fix type errors.
22986
22987 2008-02-01 Dave Love <fx@gnu.org>
22988
22989 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
22990 and fix C types.
22991
22992 2008-02-01 Kenichi Handa <handa@m17n.org>
22993
22994 * xdisp.c (SKIP_GLYPHS): New macro.
22995 (set_cursor_from_row): Pay attention to string display properties.
22996
22997 * category.c (copy_category_entry): Fix for the case that RANGE
22998 is an integer.
22999
23000 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
23001
23002 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
23003
23004 2008-02-01 Kenichi Handa <handa@m17n.org>
23005
23006 * charset.c (Fcharset_id_internal): New function.
23007 (syms_of_charset): Defsubr it.
23008
23009 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
23010 with the last arg charset_list acquired from coding.
23011 (Fdefine_coding_system_internal): For ccl-based coding system, fix
23012 the attribute coding_attr_ccl_valids.
23013
23014 * coding.h (enum define_coding_ccl_arg_index): Set the first
23015 member coding_arg_ccl_decoder to coding_arg_max.
23016
23017 * ccl.h (ccl_driver): Adjust prototype.
23018
23019 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
23020 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
23021 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
23022 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
23023 last arg Qnil.
23024
23025 2008-02-01 Kenichi Handa <handa@m17n.org>
23026
23027 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
23028 call encode_char.
23029
23030 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
23031
23032 2008-02-01 Dave Love <fx@gnu.org>
23033
23034 * composite.c (syms_of_composite): Make composition_hash_table weak.
23035
23036 2008-02-01 Kenichi Handa <handa@m17n.org>
23037
23038 * dispextern.h (check_face_attributes, generate_ascii_font_name)
23039 (font_name_registry): Don't extern them.
23040 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
23041
23042 * fontset.h (Qfontset): Don't extern it.
23043 (new_fontset_from_font_name): Extern it.
23044
23045 * fontset.c: Give 8 extra slots to fontset objects.
23046 (Qfontset_info): New variable.
23047 (syms_of_fontset): Defsym it.
23048 (FONTSET_FALLBACK): New macro.
23049 (fontset_face): Try also the default fontset.
23050 (make_fontset): Realize a fallback fontset from the default fontset.
23051 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
23052 using split_font_name_into_vector and build_font_name_from_vector.
23053 (Fset_fontset_font): Access the elements of font_spec by enum
23054 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
23055 name by using split_font_name_into_vector.
23056 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
23057 generate a proper font name from the fontset name. Update
23058 Vfontset_alias_alist.
23059 (n_auto_fontsets): New variable.
23060 (new_fontset_from_font_name): New function.
23061 (Ffont_info): Store the information about fonts generated from the
23062 default fontset in the first extra slot of the returned char-table.
23063
23064 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
23065 (font_name_registry): Delete function.
23066 (split_font_name_into_vector): New function.
23067 (build_font_name_from_vector): New function.
23068 (font_list): The argument REGISTRY is now a list of registry names.
23069 (choose_face_font): If we are choosing an ASCII font, and ATTRS
23070 specifies an explicit font name, return the name as is. Make a
23071 list of registy names.
23072
23073 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
23074 of x_new_fontset.
23075 (Fx_create_frame): Don't call x_new_fontset here. Just use
23076 x_list_fonts to check the existence of fonts.
23077
23078 * xterm.h (x_new_fontset): Adjust prototype.
23079
23080 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
23081 string. Use new_fontset_from_font_name to create a fontset from a
23082 font name.
23083
23084 2008-02-01 Kenichi Handa <handa@m17n.org>
23085
23086 * syntax.c (Vfind_word_boundary_function_table): New name for
23087 Vnext_word_boundary_function_table.
23088 (find-word-boundary-function-table): New name for
23089 next-word-boundary-function-table.
23090
23091 2008-02-01 Dave Love <fx@gnu.org>
23092
23093 * Makefile.in: Fix some dependencies.
23094
23095 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
23096 set it to nil before returning.
23097
23098 * composite.c (update_compositions): Fix type error.
23099
23100 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
23101
23102 2008-02-01 Kenichi Handa <handa@m17n.org>
23103
23104 * xterm.c (x_new_font): Optimize for the case that the font is
23105 already set for the frame.
23106
23107 2008-02-01 Kenichi Handa <handa@m17n.org>
23108
23109 * chartab.c (char_table_ascii): Check if the char table contents
23110 is sub-char-table or not.
23111 (char_table_set, char_table_set_range): Fix argument to
23112 char_table_ascii.
23113
23114 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
23115 (detect_coding_utf_8, detect_coding_utf_16)
23116 (detect_coding_emacs_mule, detect_coding_iso_2022)
23117 (detect_coding_sjis, detect_coding_big5)
23118 (detect_coding_ccl, detect_coding_charset): Change argument MASK
23119 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
23120 sequence is valid in this coding system. Change callers.
23121 (MAX_ANNOTATION_LENGTH): New macro.
23122 (ADD_ANNOTATION_DATA): New macro.
23123 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
23124 ADD_ANNOTATION_DATA. Change the format of annotation data.
23125 (ADD_CHARSET_DATA): New macro.
23126 (emacs_mule_char): New argument ID. Change callers.
23127 (decode_coding_emacs_mule, decode_coding_iso_2022)
23128 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
23129 Produce charset annotation data in coding->charbuf.
23130 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
23131 to charset annotation data in coding->charbuf.
23132 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
23133 coding->common_flags if the coding system is iso-2022 based and
23134 uses designation.
23135 (produce_composition): Adjust for the new annotation data format.
23136 (produce_charset): New function.
23137 (produce_annotation): Handle charset annotation.
23138 (handle_composition_annotation, handle_charset_annotation): New
23139 functions.
23140 (consume_chars): Handle charset annotation. Utilize the above two
23141 functions.
23142 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
23143 buffer, get the deleted text as a string and set
23144 coding->src_object to that string.
23145 (detect_coding, detect_coding_system): Use the new struct
23146 coding_detection_info.
23147
23148 * coding.h (struct coding_detection_info): New structure.
23149 (struct coding_system): Adjust prototype of the member `detector'.
23150 (CODING_ANNOTATE_CHARSET_MASK): New macro.
23151
23152 2008-02-01 Kenichi Handa <handa@m17n.org>
23153
23154 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
23155
23156 2008-02-01 Dave Love <fx@gnu.org>
23157
23158 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
23159 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
23160 to new local and nullify apropos_accumulate before returning.
23161 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
23162
23163 2008-02-01 Kenichi Handa <handa@m17n.org>
23164
23165 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
23166 correctly.
23167
23168 2008-02-01 Dave Love <fx@gnu.org>
23169
23170 * fns.c (Flanginfo): Call synchronize_system_time_locale.
23171
23172 2008-02-01 Kenichi Handa <handa@m17n.org>
23173
23174 The following changes are to make character composition happen
23175 automatically on displaying.
23176
23177 * Makefile.in (lisp, shortlisp): Add composite.elc.
23178
23179 * composite.h (Qauto_composed, Vauto_composition_function)
23180 (Qauto_composition_function): Extern them.
23181
23182 * composite.c (Vcomposition_function_table)
23183 (Qcomposition_function_table): Delete variables.
23184 (Qauto_composed, Vauto_composition_function)
23185 (Qauto_composition_function): New variables.
23186 (run_composition_function): Don't call
23187 compose-chars-after-function.
23188 (update_compositions): Clear `auto-composed' text property.
23189 (compose_chars_in_text): Delete this function.
23190 (syms_of_composite): Staticpro Qauto_composed and
23191 Qauto_composition_function. Declare Vauto_composition_function as
23192 a Lisp variable.
23193
23194 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
23195
23196 * xdisp.c (it_props): Add an entry for Qauto_composed.
23197 (handle_auto_composed_prop): New function.
23198
23199 * xselect.c (selection_data_to_lisp_data): Don't call
23200 compose_chars_in_text.
23201
23202 2008-02-01 Dave Love <fx@gnu.org>
23203
23204 * keyboard.c (read_char): Modify checking around use of
23205 Vkeyboard_translate_table.
23206
23207 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
23208 and fix C types.
23209
23210 2008-02-01 Kenichi Handa <handa@m17n.org>
23211
23212 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
23213 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
23214 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
23215 the case that the last byte is '\r' correctly.
23216 (decode_coding): Flush out the unprocessed data correctly.
23217 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
23218
23219 2008-02-01 Dave Love <fx@gnu.org>
23220
23221 * xterm.c (XTread_socket): Fix changes for defined keysyms.
23222 Add XK_ISO... case.
23223 (xaw_scroll_callback): Revert last change.
23224
23225 2008-02-01 Kenichi Handa <handa@m17n.org>
23226
23227 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
23228
23229 2008-02-01 Kenichi Handa <handa@m17n.org>
23230
23231 * xfaces.c (Vface_resizing_fonts): New variable.
23232 (struct font_name): New member `resizing_ratio'.
23233 (font_resizing_ratio): New function.
23234 (split_font_name): Set font->resizing_ratio.
23235 (better_font_p): Pay attention to font->resizing_ratio.
23236 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
23237 RESX, and RESY fields.
23238 (try_alternative_families): Try scalable fonts if
23239 Vscalable_fonts_allowed is not Qt.
23240 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
23241
23242 2008-02-01 Dave Love <fx@gnu.org>
23243
23244 * xterm.c (xaw_scroll_callback): Cast correctly.
23245
23246 2008-02-01 Dave Love <fx@gnu.org>
23247
23248 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
23249 (lispy_kana_keys): Comment out.
23250 (make_lispy_event) [XK_kana_A]: Comment out.
23251
23252 * xterm.c (xaw_scroll_callback): Cast call_data.
23253 (XTread_socket): Deal with ASCII keysyms.
23254 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
23255
23256 2008-02-01 Dave Love <fx@gnu.org>
23257
23258 * xterm.c (Vx_keysym_table): New.
23259 (syms_of_xterm): Initialize it.
23260 (XTread_socket): Use it.
23261 From head: Eliminate incorrect optimization that tried to avoid
23262 decoding the output of X*LookupString.
23263 (x_get_font_repertory): Delete charset declaration.
23264
23265 2008-02-01 Kenichi Handa <handa@m17n.org>
23266
23267 * coding.c (detect_coding_charset): If only ASCII bytes are found,
23268 return 0.
23269 (Fdefine_coding_system_internal): Setup
23270 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
23271
23272 2008-02-01 Dave Love <fx@gnu.org>
23273
23274 * coding.c (Fcheck_coding_system): Doc fix.
23275
23276 * editfns.c (Finsert_byte): Return a proper value.
23277
23278 2008-02-01 Kenichi Handa <handa@m17n.org>
23279
23280 * coding.c (decode_coding): Fix args to translate_chars. Pay
23281 attention to Vstandard_translation_table_for_decode.
23282 (encode_coding): Fix args to translate_chars. Pay attention to
23283 Vstandard_translation_table_for_encode.
23284
23285 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
23286 SINGLE_BYTE_CHAR_P.
23287
23288 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
23289 not by SINGLE_BYTE_CHAR_P.
23290
23291 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
23292 SINGLE_BYTE_CHAR_P.
23293
23294 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
23295 SINGLE_BYTE_CHAR_P.
23296
23297 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
23298 by SINGLE_BYTE_CHAR_P.
23299
23300 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
23301 SINGLE_BYTE_CHAR_P.
23302
23303 2008-02-01 Dave Love <fx@gnu.org>
23304
23305 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
23306
23307 2008-02-01 Dave Love <fx@gnu.org>
23308
23309 * fns.c (Flanginfo): Fix typo.
23310
23311 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
23312
23313 2008-02-01 Kenichi Handa <handa@m17n.org>
23314
23315 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
23316 (detect_coding_emacs_mule, detect_coding_iso_2022)
23317 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
23318 incomplete byte sequence. Don't update *mask when correctly detected.
23319 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
23320 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
23321 (detect_coding, detect_coding_system): Adjust for the changes above.
23322
23323 2008-02-01 Kenichi Handa <handa@m17n.org>
23324
23325 * character.c (char_string): Rename from
23326 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
23327 (string_char): Rename from string_char.
23328
23329 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
23330 if C is greater than MAX_3_BYTE_CHAR.
23331 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
23332 string_char instead of string_char_with_unification.
23333
23334 2008-02-01 Dave Love <fx@gnu.org>
23335
23336 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
23337
23338 2008-02-01 Kenichi Handa <handa@m17n.org>
23339
23340 * keymap.c (push_key_description): Pay attention to force_multibyte.
23341
23342 * regex.c (re_search_2): Fix for the case of unibyte buffer.
23343
23344 2008-02-01 Dave Love <fx@gnu.org>
23345
23346 * charset.c (define_charset_internal): Rename `supprementary'.
23347
23348 * Makefile.in (lisp, shortlisp): Remove latin-N.
23349
23350 2008-02-01 Dave Love <fx@gnu.org>
23351
23352 * xfns.c (x_window, x_window): Use use_xim.
23353
23354 * xterm.c (use_xim): Initialize.
23355 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
23356 (x_term_init): Maybe set use_xim.
23357
23358 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
23359
23360 2008-02-01 Kenichi Handa <handa@m17n.org>
23361
23362 * search.c (search_buffer): Fix case-fold-search of multibyte
23363 characters.
23364 (boyer_moore): Rename the last argument to char_high_bits.
23365
23366 2008-02-01 Kenichi Handa <handa@m17n.org>
23367
23368 * xdisp.c (display_string): Fix for the case of zero width glyph.
23369
23370 * xfns.c (x_set_font): Change the error message of the case that
23371 x_new_fontset returns Qt.
23372
23373 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
23374 (Finternal_set_lisp_face_attribute): Use signal_error for the
23375 error of invalid fontset.
23376
23377 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
23378 fontset, return Qt.
23379
23380 2008-02-01 Dave Love <fx@gnu.org>
23381
23382 * unexelf.c (unexec): Make .got handling not SGI-specific.
23383
23384 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
23385
23386 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
23387
23388 * keyboard.c (read_key_sequence): Fix type error.
23389
23390 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
23391 type error.
23392
23393 * fontset.c (fontset_add): Return Lisp_Object.
23394
23395 2008-02-01 Dave Love <fx@gnu.org>
23396
23397 * charset.h (charset_ordered_list_tick): Declare extern.
23398
23399 2008-02-01 Kenichi Handa <handa@m17n.org>
23400
23401 The following changes (and some of 2008-02-01 changes of mine) are
23402 for handling syntax, category, and case conversion for unibyte
23403 characters by converting them to multibyte on the fly. With these
23404 changes, we don't have to setup syntax and case tables for unibyte
23405 characters in each language environment.
23406
23407 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
23408 multibyte if necessary.
23409
23410 * bytecode.c (Fbyte_code): Likewise.
23411
23412 * character.h (LEADING_CODE_LATIN_1_MIN)
23413 (LEADING_CODE_LATIN_1_MAX): New macros.
23414 (unibyte_to_multibyte_table): Extern it.
23415 (unibyte_char_to_multibyte): New macro.
23416 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
23417 (CHAR_LEADING_CODE): New macro.
23418 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
23419
23420 * character.c (unibyte_to_multibyte_table): New variable.
23421 (unibyte_char_to_multibyte): Move to character.h and define as macro.
23422 (multibyte_char_to_unibyte): If C is an eight-bit character,
23423 convert it to the corresponding byte value.
23424
23425 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
23426 not 1, signals an error. Update the elements of
23427 unibyte_to_multibyte_table.
23428 (init_charset_once): Initialize unibyte_to_multibyte_table.
23429 (syms_of_charset): Define the charset `iso-8859-1'.
23430
23431 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
23432 as is without converting it to unibyte. In a unibyte buffer,
23433 convert C to multibyte before checking the syntax.
23434
23435 * lisp.h (unibyte_char_to_multibyte): Delete extern.
23436
23437 * minibuf.c (Fminibuffer_complete_word): Use the macro
23438 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
23439
23440 * regex.h (struct re_pattern_buffer): New member target_multibyte.
23441
23442 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
23443 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
23444 that is zero, convert an eight-bit char to multibyte.
23445 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
23446 non-emacs case.
23447 (PATFETCH): Convert an eight-bit char to multibyte.
23448 (HANDLE_UNIBYTE_RANGE): New macro.
23449 (regex_compile): Setup the compiled pattern for multibyte chars
23450 even if the given regex string is unibyte. Use PATFETCH_RAW
23451 instead of PATFETCH in many places. To handle `charset'
23452 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
23453 only for ASCII chars.
23454 (analyse_first) <exactn>: Simplify because the compiled pattern
23455 is multibyte.
23456 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
23457 <charset>: Use CHAR_LEADING_CODE to get leading codes.
23458 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
23459 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
23460 multibyte always 1.
23461 (re_search_2): In emacs, set the locale variable multibyte to 1,
23462 otherwise to 0. New local variable target_multibyte. Check it
23463 to decide the multibyteness of STR1 and STR2. If
23464 target_multibyte is zero, convert unibyte chars to multibyte
23465 before translating and checking fastmap.
23466 (TARGET_CHAR_AND_LENGTH): New macro.
23467 (re_match_2_internal): In emacs, set the locale variable multibyte
23468 to 1, otherwise to 0. New local variable target_multibyte. Check
23469 it to decide the multibyteness of STR1 and STR2. Use
23470 TARGET_CHAR_AND_LENGTH to fetch a character from D.
23471 <charset, charset_not>: If multibyte is nonzero, check fastmap
23472 only for ASCII chars. Call bcmp_translate with
23473 target_multibyte, not with multibyte.
23474 <begline>: Declare the local variable C as `unsigned'.
23475 (bcmp_translate): Change the last arg name to target_multibyte.
23476
23477 * search.c (compile_pattern_1): Don't adjust the multibyteness of
23478 the regexp pattern and the matching target. Set cp->buf.multibyte
23479 to the multibyteness of the regexp pattern. Set
23480 cp->but.target_multibyte to the multibyteness of the matching target.
23481 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
23482 FETCH_STRING_CHAR_ADVANCE.
23483 (Freplace_match): Convert unibyte chars to multibyte.
23484
23485 * syntax.c (char_quoted, back_comment, scan_words)
23486 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
23487 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
23488 unibyte chars to multibyte.
23489 (skip_chars): Delete the arg syntaxp, and move the code for
23490 handling syntaxes to skip_syntaxes. Change callers.
23491 Fix the case that the multibyteness of STRING and the current
23492 buffer doesn't match.
23493 (skip_syntaxes): New function.
23494 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
23495 SINGLE_BYTE_CHAR_P.
23496
23497 2008-02-01 Kenichi Handa <handa@m17n.org>
23498
23499 * xfaces.c (QCfontset): New variable.
23500 (LFACE_FONTSET): New macro.
23501 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
23502 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
23503 (Finternal_set_lisp_face_attribute)
23504 (Finternal_get_lisp_face_attribute): Handle QCfontset.
23505 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
23506 check also LFACE_FONTSET_INDEX.
23507 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
23508 attrs[LFACE_FONT_INDEX].
23509 (syms_of_xfaces): Intern and staticpro QCfontset.
23510
23511 * dispextern.h (enum lface_attribute_index): New member
23512 LFACE_FONTSET_INDEX.
23513
23514 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
23515
23516 2008-02-01 Kenichi Handa <handa@m17n.org>
23517
23518 * coding.c (coding_set_destination): Fix coding->destination for
23519 the case converting a region.
23520 (encode_coding_utf_8): Encode eight-bit chars as single byte.
23521 (encode_coding_object): Fix coding->dst_pos and
23522 coding->dst_pos_byte for the case converting a region.
23523
23524 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
23525
23526 * character.h (BYTE8_STRING): New macro.
23527
23528 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
23529
23530 2008-02-01 Kenichi Handa <handa@m17n.org>
23531
23532 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
23533 characters by octal form.
23534
23535 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
23536
23537 * buffer.h (_fetch_multibyte_char_len): Delete extern.
23538 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
23539 _fetch_multibyte_char_len.
23540 (FETCH_CHAR_AS_MULTIBYTE): New macro.
23541
23542 * casetab.c (set_canon, set_identity, shuffle): Simplify.
23543
23544 * casefiddle.c (casify_object): Simplify. Handle the case that
23545 the case conversion change the byte length.
23546 (casify_region): Likewise.
23547
23548 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
23549
23550 * character.c (_fetch_multibyte_char_len): Delete this variable.
23551 (syms_of_character): Setup Vprintable_chars.
23552
23553 * editfns.c (Fchar_equal): Fix for the unibyte case.
23554 (Finsert_byte): New function.
23555 (syms_of_editfns): Defsubr it.
23556
23557 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
23558 of direct code 0x3ffff.
23559
23560 * search.c (Freplace_match): Fix for the unibyte case.
23561
23562 2008-02-01 Kenichi Handa <handa@m17n.org>
23563
23564 * lread.c (safe_to_load_p): Fix the logic.
23565
23566 * syntax.c (scan_words): Don't treat characters belonging to
23567 different scripts as constituting a word.
23568
23569 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
23570
23571 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
23572
23573 * emacs.c (main): In the case of --unibyte, instead of aborting on
23574 finding non-empty buffer, make it unibyte.
23575
23576 2008-02-01 Kenichi Handa <handa@m17n.org>
23577
23578 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
23579 to create a fontset.
23580
23581 2008-02-01 Dave Love <fx@gnu.org>
23582
23583 * character.c (Funibyte_char_to_multibyte): Doc fix.
23584
23585 * xfns.c [HAVE_STDLIB_H]: Fix last change.
23586
23587 2008-02-01 Kenichi Handa <handa@m17n.org>
23588
23589 * fontset.c (fontset_add): Make the type `int'.
23590 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
23591
23592 * character.c (unibyte_char_to_multibyte)
23593 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
23594 charset_unibyte, not charset_primary.
23595
23596 * charset.h (charset_unibyte): Extern it instead of charset_primary.
23597
23598 * charset.c (charset_unibyte): Rename from charset_primary.
23599 (Funibyte_charset): Rename from Fprimary_charset.
23600 (Fset_unibyte_charset): Rename from Fset_primary_charset.
23601 (syms_of_charset): Adjust for the above changes.
23602
23603 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
23604 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
23605 it->multibyte_p is zero.
23606
23607 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
23608 Delete extern.
23609
23610 2008-02-01 Kenichi Handa <handa@m17n.org>
23611
23612 * coding.c (Fdefine_coding_system_internal): Fix category setting
23613 for a coding system of type iso-2022.
23614
23615 2008-02-01 Kenichi Handa <handa@m17n.org>
23616
23617 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
23618
23619 2008-02-01 Kenichi Handa <handa@m17n.org>
23620
23621 * syntax.c (Vnext_word_boundary_function_table): New variable.
23622 (next-word-boundary-function-table): Declare it as a Lisp variable
23623 in syms_of_syntax.
23624 (scan_words): Call functions in Vnext_word_boundary_function_table
23625 if any.
23626
23627 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
23628
23629 * fontset.c (fs_load_font): If fontp->charset is not negative,
23630 return fontp without setting its members.
23631
23632 2008-02-01 Dave Love <fx@gnu.org>
23633
23634 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
23635
23636 * m/sparc.h (HAVE_ALLOCA): Delete.
23637
23638 * s/irix6-5.h: Don't include strings.h.
23639 (bcopy, bzero, bcmp): Don't undef.
23640
23641 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
23642
23643 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
23644 (TIOCSIGSEND): Don't test IRIX6.
23645 (bcopy, bzero, bcmp): Define conditionally.
23646
23647 2008-02-01 Kenichi Handa <handa@m17n.org>
23648
23649 * buffer.c (Qas, Qmake, Qto): New variables.
23650 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
23651 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
23652
23653 * callproc.c (Fcall_process): Don't call insert_1_both directly if
23654 we are inserting a process output into a multibyte buffer.
23655
23656 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
23657 multibyte_char_to_unibyte.
23658
23659 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
23660 by the primary charset, make it eight-bit char.
23661 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
23662
23663 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
23664 (charset_8_bit__control, charset_8_bit_graphic)
23665 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
23666 (define_charset_internal): New function.
23667 (syms_of_charset): Call define_charset_internal for pre-defined
23668 charsets.
23669
23670 * charset.h (charset_8_bit): Extern it.
23671
23672 * coding.c (make_conversion_work_buffer): Adjust for the change
23673 of Fset_buffer_multibyte.
23674 (encode_coding_raw_text): Increment p0 in the loop.
23675
23676 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
23677
23678 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
23679 for the change of Fset_buffer_multibyte.
23680
23681 * fns.c (Fstring_to_multibyte): New function.
23682 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
23683
23684 2008-02-01 Dave Love <fx@gnu.org>
23685
23686 * xfns.c (x_put_x_image): Declare args.
23687
23688 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
23689 (try_font_list): Declare an arg.
23690
23691 * xdisp.c (message2_nolog, set_message): Declare an arg.
23692
23693 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
23694
23695 * syntax.c (scan_sexps_forward): Declare an arg.
23696
23697 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
23698 Declare an arg.
23699
23700 * lisp.h (Fnew_fontset): Declare.
23701
23702 * keymap.c (push_key_description): Call CHARACTERP correctly.
23703
23704 * fontset.c (fontset_add): Declare args. Call make_number correctly.
23705 (face_for_char): Delete unused vars.
23706 (Fset_fontset_font): Doc fix. Delete unused vars.
23707
23708 * doc.c (Fsubstitute_command_keys): Delete unused vars.
23709
23710 * composite.c (update_compositions): Declare arg.
23711
23712 * cm.c (calccost, cmgoto): Declare args.
23713
23714 * charset.c: Remove `emacs' conditional. Doc fixes.
23715 (map_char_table_for_charset): Declare.
23716
23717 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
23718
23719 * ccl.c: Remove `emacs' conditional.
23720
23721 2008-02-01 Kenichi Handa <handa@m17n.org>
23722
23723 The following changes are to allow specifying multiple font
23724 patterns for a character range (specified by script or charset).
23725
23726 * Makefile.in (abbrev.o): Depend on syntax.h.
23727 (xfaces.o): Depend on charset.h.
23728
23729 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
23730 SINGLE_BYTE_CHAR_P.
23731
23732 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
23733
23734 * character.h (Vchar_script_table): Extern it.
23735
23736 * character.c (Vscript_alist): Delete.
23737 (Vchar_script_table, Qchar_script_table): New variable.
23738 (syms_of_character): Declare Vchar_script_table as a lisp variable
23739 and initialize it.
23740
23741 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
23742 have property char-table-extra-slots, make no extra slot.
23743
23744 * dispextern.h (struct face): Delete member `charset'.
23745 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
23746 SINGLE_BYTE_CHAR_P.
23747 (choose_face_font, lookup_non_ascii_face, font_name_registry):
23748 Add prototypes.
23749 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
23750 (generate_ascii_font_name): Rename from generate_ascii_font.
23751
23752 * fontset.h (get_font_repertory_func): New prototype.
23753 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
23754 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
23755
23756 * fontset.c (Qprepend, Qappend): New variables.
23757 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
23758 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
23759 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
23760 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
23761 (fontset_ref_and_range, fontset_add, reorder_font_vector)
23762 (load_font_get_repertory): New functions.
23763 (fontset_set): Delete.
23764 (fontset_face): New arg FACE. Return face ID, not face.
23765 Complete re-write to handle new fontset structure. Change caller.
23766 (free_face_fontset): Use ASET istead of AREF (X) = Y.
23767 (face_for_char): Don't call lookup_face.
23768 (make_fontset_for_ascii_face): New arg FACE.
23769 (fs_load_font): New arg CHARSET_ID. Don't check
23770 Vfont_encoding_alist here.
23771 (find_font_encoding): New function.
23772 (list_fontsets): Use STRINGP, not ! NILP.
23773 (accumulate_script_ranges): New function.
23774 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
23775 re-written to handle new fontset structure.
23776 (Ffontset_font): Return a copy of element.
23777 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
23778 docstring of font-encoding-alist.
23779
23780 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
23781 (Fset_fotset_font): Fix arguments to 5.
23782
23783 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
23784
23785 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
23786 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
23787 (highlight_trailing_whitespace): Adjust for the change of
23788 lookup_named_face.
23789
23790 * xfaces.c: Include charset.h.
23791 (load_face_font): Delete argument C. Change caller.
23792 (generate_ascii_font_name): Rename from generate_ascii_font.
23793 (font_name_registry): New function.
23794 (cache_face): Store ascii faces before non-ascii faces in buckets.
23795 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
23796 Lookup only ascii faces.
23797 (lookup_non_ascii_face): New function.
23798 (lookup_named_face): Delete argument C. Change caller.
23799 (lookup_derived_face): Delete argument C. Change caller.
23800 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
23801 a string, just call font_list with it.
23802 (choose_face_font): Delete arguments FACE and C. New arg
23803 FONT_SPEC. Change caller.
23804 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
23805 Change caller.
23806 (realize_non_ascii_face): New function.
23807 (realize_x_face): Call load_face_font here.
23808 (realize_tty_face): Delete argument C. Change caller.
23809 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
23810 get a face ID.
23811 (dump_realized_face): Don't print charset of FACE.
23812
23813 * xfns.c (x_set_font): Always call x_new_fontset and
23814 store_frame_parameter.
23815 (Fx_create_frame): Call x_new_fontset, not x_new_font.
23816 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
23817
23818 * xterm.h (x_get_font_repertory): Extern it.
23819
23820 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
23821 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
23822 it->multibyte_p is zero.
23823 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
23824 (x_new_fontset): If FONTSETNAME doesn't match any existing
23825 fontsets, create a new one.
23826 (x_get_font_repertory): New function.
23827
23828 2008-02-01 Kenichi Handa <handa@m17n.org>
23829
23830 * coding.c (Ffind_coding_systems_region_internal): Detect an
23831 ASCII only string correctly.
23832
23833 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
23834 version is 0.
23835
23836 2008-02-01 Kenichi Handa <handa@m17n.org>
23837
23838 * lread.c: Include "coding.h".
23839 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
23840 (load_each_byte, unread_char): New variables.
23841 (readchar_backlog): Delete.
23842 (readchar): Return a character unless load_each_byte is nonzero.
23843 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
23844 cons. If unread_char is not -1, simply return it.
23845 (unreadchar): Handle the case that readcharfun is
23846 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
23847 (read_multibyte): Delete.
23848 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
23849 (read_emacs_mule_char): New functions.
23850 (Fload): Even if the file doesn't have the extension ".elc", if
23851 safe_to_load_p returns a positive version number, assume that the
23852 file contains bytecompiled code. If the version is less than 22,
23853 load the file while decoding multibyte sequences by emacs-mule.
23854 (readevalloop): Don't use readchar_backlog.
23855 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
23856 (Fread_from_string): Pay attention to the case that STREAM is a cons.
23857 (read_escape): Delete the arg BYTEREP.
23858 (read1): Set load_each_byte to 1 temporarily while handling
23859 #@NUMBER. Don't call read_multibyte.
23860 (read_vector): Call Fread with a cons. If readcharfun is
23861 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
23862 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
23863 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
23864 and Qload_force_doc_strings.
23865
23866 2008-02-01 Kenichi Handa <handa@m17n.org>
23867
23868 * xdisp.c (face_before_or_after_it_pos): Call
23869 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
23870
23871 2008-02-01 Kenichi Handa <handa@m17n.org>
23872
23873 * character.h (TRAILING_CODE_P): New macro.
23874 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
23875 (string_char_with_unification): Fix prototype.
23876 (Vscript_alist): Extern it.
23877
23878 * character.c (Vscript_alist): New variable.
23879 (string_char_with_unification, str_as_unibyte)
23880 (string_escape_byte8): Add `const' to local variables.
23881 (syms_of_character): Declare script-alist as a Lisp variable.
23882
23883 * charset.h (Vcharset_ordered_list): Extern it.
23884 (charset_ordered_list_tick): Extern it.
23885 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
23886 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
23887 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
23888 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
23889 (Funify_charset): Adjust for the change of Funify_charset.
23890
23891 * charset.c (charset_ordered_list_tick): New variable.
23892 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
23893 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
23894 deunify instead of unify a charset.
23895 (string_xstring_p): Add `const' to local variables.
23896 (find_charsets_in_text): Add `const' to arguments and local variables.
23897 (encode_char): Adjust for the change of Funify_charset. Fix
23898 detecting of invalid code.
23899 (Fset_charset_priority): Increment charset_ordered_list_tick.
23900 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
23901 and TO_CODE.
23902
23903 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
23904 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
23905 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
23906 (decode_coding_ccl, consume_chars)
23907 (Ffind_coding_systems_region_internal)
23908 (Fcheck_coding_systems_region): Add `const' to local variables.
23909
23910 * print.c (print_object): Use octal form for printing the
23911 contents of a bool vector.
23912
23913 2008-02-01 Dave Love <fx@gnu.org>
23914
23915 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
23916 <version == 20>: Refuse to load.
23917
23918 2008-02-01 Dave Love <fx@gnu.org>
23919
23920 * fns.c: Move coding.h.
23921 (Qcodeset, Qdays, Qmonths): New.
23922 (concat): Use CHARACTERP instead of INTEGERP.
23923 (Flocale_codeset): Delete.
23924 (Flanginfo): New function.
23925 (syms_of_fns): Change accordingly.
23926
23927 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
23928
23929 2008-02-01 Dave Love <fx@gnu.org>
23930
23931 * casetab.c (init_casetab_once, init_casetab_once): Fix
23932 CHAR_TABLE_SET call.
23933
23934 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
23935
23936 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
23937
23938 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
23939 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
23940 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
23941
23942 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
23943
23944 * coding.c (ENCODE_DESIGNATION, decode_eol)
23945 (make_conversion_work_buffer, code_conversion_restore)
23946 (Fdefine_coding_system_internal): Convert Lisp types.
23947 (code_conversion_restore): Use EQ, not ==.
23948 (Fencode_coding_string): Fix code_convert_string call.
23949
23950 * coding.h (code_convert_region): Fix prototype.
23951
23952 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
23953
23954 * fontset.c (fontset_ref, fontset_set, fs_load_font)
23955 (Ffontset_info): Convert Lisp types.
23956
23957 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
23958
23959 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
23960
23961 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
23962
23963 * chartab.c: Include "...h", not <...h> in some cases.
23964
23965 * callproc.c (Fcall_process): Remove unused variables.
23966
23967 2008-02-01 Dave Love <fx@gnu.org>
23968
23969 * coding.c (Fset_coding_system_priority): Allow null arg list.
23970
23971 2008-02-01 Dave Love <fx@gnu.org>
23972
23973 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
23974 (Fself_insert_and_exit): Use CHARACTERP.
23975
23976 * callproc.c (Fcall_process): Remove unused vars.
23977
23978 * xterm.c (XTread_socket): Add extra dead keysyms.
23979
23980 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
23981
23982 * dispextern.h: Remove prototypes for redraw_frame,
23983 redraw_garbaged_frames.
23984
23985 * cmds.c (Fself_insert_command): Use CHARACTERP.
23986
23987 * chartab.c (make_sub_char_table): Remove unused var.
23988 (Fset_char_table_default, Fmap_char_table): Doc fix.
23989
23990 * keymap.c (access_keymap): Remove generic char code.
23991 (push_key_description): Use CHARACTERP.
23992
23993 2008-02-01 Dave Love <fx@gnu.org>
23994
23995 * charset.c: Doc fixes.
23996 (Funify_charset): Extra checking.
23997
23998 2008-02-01 Dave Love <fx@gnu.org>
23999
24000 * lread.c: Remove some unused variables.
24001 (safe_to_load_p): If safe, return the magic number version byte.
24002 (Fload): Maybe use load-with-code-conversion.
24003
24004 2008-02-01 Kenichi Handa <handa@m17n.org>
24005
24006 * category.c (Fmodify_category_entry): Don't modify the contents
24007 of category_set for characters out of the range. Avoid
24008 unnecessary modification.
24009
24010 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
24011 Vchar_unify_table. The default value of the table is now nil.
24012
24013 * character.c (syms_of_character): Setup Vchar_width_table for
24014 eight-bit-control and raw-byte chars.
24015
24016 * charset.h (enum define_charset_arg_index): Delete
24017 charset_arg_parents and add charset_arg_subset and
24018 charset_arg_superset.
24019 (enum charset_attr_index): Delete charset_parents and add
24020 charset_subset and charset_superset.
24021 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
24022 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
24023 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
24024 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
24025 (CHARSET_SUPERSET): New macros.
24026 (charset_work): Extern it.
24027 (ENCODE_CHAR): Use charset_work.
24028 (CHAR_CHARSET_P): Adjust for the change of encoder format.
24029 (map_charset_chars): Extern it.
24030
24031 * charset.c (load_charset_map): Set the default value of encoder
24032 and deunifier char-tables to nil.
24033 (map_charset_chars): Change argument. Change callers. Use
24034 map_char_table_for_charset instead of map_char_table.
24035 (Fmap_charset_chars): New optional args from_code and to_code.
24036 (Fdefine_charset_internal): Adjust for the change of
24037 `define-charset' (:parents -> :subset or :superset).
24038 (charset_work): New variable.
24039 (encode_char, syms_of_charset): Adjust for the change of
24040 Fdefine_charset_internal.
24041 (Ffind_charset_string): Setup the vector `charsets' correctly.
24042
24043 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
24044 the previous change.
24045 (char_table_ref_and_range): Adjust for the above change.
24046 (map_sub_char_table_for_charset): New function.
24047 (map_char_table_for_charset): New function.
24048
24049 * keymap.c (describe_vector): Handle a char-table directly here.
24050 (describe_char_table): Delete.
24051
24052 * lisp.h (map_charset_chars): Delete.
24053
24054 2008-02-01 Dave Love <fx@gnu.org>
24055
24056 * fns.c (count_combining): Comment out (unused).
24057 (Flocale_codeset): New.
24058 (syms_of_fns): Defsubr it.
24059
24060 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
24061 (size_t): Remove.
24062
24063 2008-02-01 Dave Love <fx@gnu.org>
24064
24065 * Makefile.in (chartab.o): Depend on charset.h.
24066
24067 2008-02-01 Kenichi Handa <handa@m17n.org>
24068
24069 * character.c (syms_of_character): Set the default value of
24070 Vprintable_chars to Qnil.
24071
24072 2008-02-01 Dave Love <fx@gnu.org>
24073
24074 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
24075
24076 2008-02-01 Kenichi Handa <handa@m17n.org>
24077
24078 * charset.c (load_charset_map): Handle the case that from < to
24079 correctly.
24080
24081 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
24082 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
24083 Pay attention to raw-8-bit chars.
24084
24085 2008-02-01 Kenichi Handa <handa@m17n.org>
24086
24087 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
24088 It is not bytecompiled now.
24089
24090 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
24091 (charset_jisx0208): New variables.
24092 (Fdefine_charset_internal): Setup them if appropriate.
24093 (init_charset_once): Initialize them to -1.
24094
24095 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
24096 (charset_jisx0208): Extern them.
24097
24098 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
24099 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
24100 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
24101 (setup_iso_safe_charsets): Fix arguments to Fassq.
24102 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
24103 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
24104 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
24105 (encode_coding_iso_2022): Change the 1st arg to
24106 ENCODE_ISO_CHARACTER to a variable.
24107
24108 2008-02-01 Kenichi Handa <handa@m17n.org>
24109
24110 * charset.h (enum define_charset_arg_index): New enums
24111 charset_arg_min_code and charset_arg_max_code.
24112 (struct charset): New member char_index_offset.
24113
24114 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
24115 Take charset->char_index_offset into account.
24116 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
24117 args[charset_arg_max_code]. Setup charset.char_index_offset.
24118 (syms_of_charset): Fix args to Fdefine_charset_internal.
24119
24120 2008-02-01 Dave Love <fx@gnu.org>
24121
24122 * coding.c (decode_coding_utf_8): Reject overlong sequences.
24123
24124 2008-02-01 Dave Love <fx@gnu.org>
24125
24126 * coding.c: Doc fixes.
24127 (Fcoding_system_aliases): Fix return value.
24128 (Qmac): Remove (duplicated) definition.
24129
24130 2008-02-01 Dave Love <fx@gnu.org>
24131
24132 * charset.c (Fcharset_priority_list, Fset_charset_priority):
24133 New functions.
24134
24135 * character.c (Fstring): Doc fix.
24136
24137 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
24138
24139 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
24140 (font-encoding-alist): Doc fix.
24141
24142 2008-02-01 Dave Love <fx@gnu.org>
24143
24144 * term.c (costs_set): Declare static, non-initialized for pcc.
24145 (encode_terminal_code): Remove unused var.
24146
24147 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
24148 for K&R.
24149
24150 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
24151
24152 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
24153 (suffixes): Move out of make_subsidiaries for K&R.
24154
24155 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
24156
24157 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
24158
24159 2008-02-01 Dave Love <fx@gnu.org>
24160
24161 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
24162
24163 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
24164
24165 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
24166
24167 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
24168
24169 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
24170
24171 2008-02-01 Kenichi Handa <handa@m17n.org>
24172
24173 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
24174 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
24175
24176 2008-02-01 Kenichi Handa <handa@m17n.org>
24177
24178 * coding.c (decode_coding_charset): Adjust for the change of
24179 Fdefine_coding_system_internal.
24180 (Fdefine_coding_system_internal): For a coding system of
24181 `charset' type, store a list of charset IDs in
24182 `charset_attr_charset_valids' element of coding attributes.
24183
24184 2008-02-01 Kenichi Handa <handa@m17n.org>
24185
24186 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
24187 (emacs_mule_char): New arg src. Delete arg `composition'. Change
24188 caller. Handle 2-byte and 3-byte charsets correctly.
24189 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
24190 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
24191 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
24192 (DECODE_EMACS_MULE_21_COMPOSITION): Call
24193 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
24194 sequence.
24195 (decode_coding_emacs_mule): Handle composition correctly. Rewind
24196 `src' and `consumed_chars' correctly before calling emacs_mule_char.
24197 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
24198 and alt&rule composition.
24199 (decode_coding_iso_2022): Handle composition correctly.
24200 (init_coding_once): Setup emacs_mule_bytes for private charsets.
24201
24202 * charset.c (Fdefine_charset_internal): Fix bug for the case of
24203 re-defining a charset. If the charset has :emacs-mule-id, setup
24204 emacs_mule_bytes.
24205 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
24206
24207 2008-02-01 Kenichi Handa <handa@m17n.org>
24208
24209 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
24210 (encode_coding_big5, encode_coding_charset): If coding requires safe
24211 encoding, produce a character specified by
24212 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
24213
24214 2008-02-01 Dave Love <fx@gnu.org>
24215
24216 * xterm.c (XSetIMValues): Declare.
24217
24218 * process.c: Conditionally include sys/wait.h, pty.h.
24219
24220 * print.c (print_object): Fix print format for 64-bit systems.
24221
24222 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
24223
24224 * buffer.c (emacs_strerror): Declare.
24225
24226 * fontset.c (Fclear_face_cache): Declare.
24227 (accumulate_font_info): Comment-out (unused).
24228 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
24229 variables.
24230
24231 * character.h (string_escape_byte8): Declare.
24232
24233 * charset.c (load_charset_map, load_charset_map_from_file): Remove
24234 unused vars.
24235 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
24236 (Fmap_charset_chars): Doc fix.
24237
24238 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
24239 (Fset_coding_system_priority, Fset_coding_system_priority)
24240 (Fdefine_coding_system_internal): Doc fix.
24241
24242 2008-02-01 Dave Love <fx@gnu.org>
24243
24244 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
24245
24246 2008-02-01 Kenichi Handa <handa@m17n.org>
24247
24248 * character.c (string_escape_byte8): Make multibyte string with
24249 correct size.
24250
24251 * charset.c (Fmake_char): Delete unnecessary code.
24252
24253 2008-02-01 Kenichi Handa <handa@m17n.org>
24254
24255 * xfns.c (x_encode_text): Allocate coding.destination here, and
24256 call encode_coding_object with dst_object Qnil.
24257
24258 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
24259 multibyte form correctly.
24260
24261 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
24262 against Vfont_encoding_alist.
24263
24264 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
24265 handling of charset list.
24266 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
24267 (decode_coding_object): Move point to coding->dst_pos before
24268 calling post-read-conversion function.
24269 (encode_coding_object): Give correct arguments to
24270 pre-write-conversion. Ignore the return value of
24271 pre-write-conversion function. Pay attention to the case that
24272 pre-write-conversion changes the current buffer. If dst_object is
24273 Qt, even if coding->src_bytes is zero, allocate at least one byte
24274 to coding->destination.
24275
24276 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
24277
24278 * charset.c (Fmake_char): Make it more backward compatible.
24279 (Fmap_charset_chars): Fix docstring.
24280
24281 2008-02-01 Dave Love <fx@gnu.org>
24282
24283 * coding.c: Doc fixes.
24284 (Fdefine_coding_system_alias): Use names, not symbols, in
24285 coding-system-alist.
24286
24287 2008-02-01 Kenichi Handa <handa@m17n.org>
24288
24289 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
24290 of calling free_realized_face.
24291
24292 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
24293
24294 * charset.c (read_hex): Don't treat SPC as a comment starter.
24295 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
24296 (Fdecode_char): Fix typo.
24297
24298 2008-02-01 Kenichi Handa <handa@m17n.org>
24299
24300 * charset.h (struct charset): New member `code_space_mask'.
24301
24302 * coding.c (coding_set_source): Delete the local variable beg_byte.
24303 (encode_coding_charset, Fdefine_coding_system_internal):
24304 Delete the local variable charset.
24305 (Fdefine_coding_system_internal): Setup
24306 attrs[coding_attr_charset_valids] correctly.
24307
24308 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
24309 member to check if CODE is valid or not.
24310 (Fdefine_charset_internal): Initialize `code_space_mask' member.
24311 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
24312 is within the range of charset->min_code and carset->max_code.
24313
24314 2008-02-01 Dave Love <fx@gnu.org>
24315
24316 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
24317
24318 * dispextern.h (generate_ascii_font): Fix return type.
24319
24320 * xfaces.c (generate_ascii_font): Fix arg declaration.
24321
24322 * coding.c (coding_inherit_eol_type)
24323 (Fset_terminal_coding_system_internal)
24324 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
24325
24326 2008-02-01 Kenichi Handa <handa@m17n.org>
24327
24328 * coding.c (decode_coding_charset, encode_coding_charset): Handle
24329 multiple charsets correctly.
24330
24331 2008-02-01 Kenichi Handa <handa@m17n.org>
24332
24333 * search.c (boyer_moore): Fix handling of multibyte character
24334 translation.
24335
24336 * xdisp.c (display_mode_element): When the variable `elt' is
24337 changed, update `this' and `lisp_string'.
24338
24339 2008-02-01 Kenichi Handa <handa@m17n.org>
24340
24341 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
24342
24343 * callproc.c (Fcall_process): Be sure to give the current buffer
24344 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
24345
24346 * charset.c (struct charset_map_entries): New struct.
24347 (load_charset_map): Rename from parse_charset_map. New args
24348 entries and n_entries. Change caller.
24349 (load_charset_map_from_file): Rename from load_charset_map.
24350 Change caller. New arg control_flag. Call load_charset_map at
24351 the tail.
24352 (load_charset_map_from_vector): New function.
24353 (Fdefine_charset_internal): Setup charset.compact_codes_p.
24354 (encode_char): If the charset is compact, change a character index
24355 to a code point.
24356
24357 * coding.c (coding_alloc_by_making_gap): Check the case that the
24358 source and destination are the same correctly.
24359 (decode_coding_raw_text): Set coding->consumed_char and
24360 coding->consumed to 0.
24361 (produce_chars): If coding->chars_at_source is nonzero, update
24362 coding->consumed_char and coding->consumed before calling
24363 alloc_destination.
24364 (Fdefine_coding_system_alias): Register ALIAS in
24365 Vcoding_system_alist.
24366 (syms_of_coding): Define `no-conversion' coding system at the tail.
24367
24368 * fileio.c (Finsert_file_contents): Set coding_system instead of
24369 val. If the current buffer is multibyte, always call
24370 decode_coding_gap.
24371
24372 * xfaces.c (try_font_list): Give higher priority to fontset's
24373 family than face's family.
24374
24375 2008-02-01 Kenichi Handa <handa@m17n.org>
24376
24377 * callproc.c (Fcall_process): Be sure to give the current buffer
24378 to decode_coding_c_string.
24379
24380 * xfaces.c (try_font_list): Give a family specified in a fontset
24381 higher priority than a family specified in a face.
24382
24383 2008-02-01 Kenichi Handa <handa@m17n.org>
24384
24385 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
24386 Fix arguments to insert_from_buffer.
24387
24388 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
24389
24390 2008-02-01 Kenichi Handa <handa@m17n.org>
24391
24392 * coding.c (produce_chars): Set the variable `multibytep' correctly.
24393 (decode_coding_gap): Set coding->dst_multibyte correctly.
24394
24395 2008-02-01 Kenichi Handa <handa@m17n.org>
24396
24397 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
24398 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
24399 (encode_coding_utf_16): Substitute coding->default_char for
24400 non-Unicode characters.
24401 (decode_coding): Don't call record_insert here.
24402 (setup_coding_system): Initialize `surrogate' of
24403 coding->spec.utf_16 to 0.
24404 (EMIT_ONE_BYTE): Fix for multibyte case.
24405
24406 * insdel.c (insert_from_gap): Call record_insert.
24407
24408 2008-02-01 Kenichi Handa <handa@m17n.org>
24409
24410 * casefiddle.c (casify_region): Fix multibyte case.
24411
24412 * character.c (c_string_width): Add return type `int'.
24413 (char_string_with_unification): Delete arg ADVANCED.
24414
24415 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
24416 (CHAR_STRING): Adjust for the change of char_string_with_unification.
24417 (CHAR_STRING_ADVANCE): Make it do-while statement.
24418
24419 * chartab.c (sub_char_table_set_range): Optimize for the case
24420 DEPTH == 3. Add workaround code for a GCC optimization bug.
24421
24422 * charset.c (parse_charset_map): Remove an unused variable.
24423
24424 * coding.c: Delete unused variables.
24425
24426 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
24427 earlier. If inserted is zero and the coding system doesn't
24428 require flushing, don't call decode_coding_gap.
24429
24430 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
24431
24432 2008-02-01 Kenichi Handa <handa@m17n.org>
24433
24434 The following changes are for using Unicode as an internal
24435 character model, and use UTF-8 format for buffer/string
24436 representation.
24437
24438 * .gdbinit (xchartable): Adjust for the change of char table structure.
24439 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
24440
24441 * Makefile.in (obj): Add character.o and chartab.o.
24442 (lisp, shortlisp): Remove utf-8.elc.
24443 (*.o): For many files, change dependency on charset.h to
24444 character.h, and add dependency on character.h.
24445 (character.o, chartab.o): New targets.
24446
24447 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
24448 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
24449 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
24450 of "charset.h".
24451
24452 * dired.c, filelock.c: Include "character.h".
24453
24454 * alloc.c: Include "character.h" instead of "charset.h".
24455 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
24456 (syms_of_alloc): Remove defsubr for Smake_char_table.
24457
24458 * buffer.c: Include "character.h" instead of "charset.h", don't
24459 include "coding.h".
24460 (Fset_buffer_multibyte): Adjust for UTF-8.
24461
24462 * buffer.h: EXFUN Fbuffer_live_p.
24463
24464 * callproc.c: Include "character.h" instead of "charset.h".
24465 (Fcall_process): Big change for the new code-conversion APIs.
24466
24467 * casetab.c: Include "character.h" instead of "charset.h".
24468 (set_canon, set_identity, shuffle): Adjust for the new
24469 map_char_table spec.
24470 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
24471 accessing the char table structure.
24472
24473 * chartab.c: New file that implements char table.
24474
24475 * category.c: Include "character.h".
24476 (copy_category_entry): New function.
24477 (copy_category_table): Call map_char_table and copy_category_entry.
24478 (Fmake_category_table): Initialize all top-level slots.
24479 (char_category_set): New function.
24480 (modify_lower_category_set): Delete.
24481 (Fmodify_category_entry): Call char_table_ref_and_range.
24482
24483 * category.h (CATEGORY_SET): Just call char_category_set.
24484
24485 * ccl.c: Include "character.h".
24486 (Qccl, Qcclp): New variables.
24487 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
24488 it's less than 256.
24489 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
24490 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
24491 and DST type.
24492 (ccl_driver): Change types of argument, adjust code accordingly.
24493 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
24494 ccl_driver.
24495 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
24496
24497 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
24498 New members src_multibyte, dst_multibyte, consumed, and produced.
24499 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
24500 (CODING_SPEC_CCL_PROGRAM): New macro.
24501 (ccl_driver): Update prototype.
24502 (Qccl, Qcclp, Fccl_program_p): Extern them.
24503 (CHECK_CCL_PROGRAM): New macro.
24504
24505 * character.c, character.h, chartab.c: New files.
24506
24507 * charset.c: Mostly re-written. Move character and multibyte sequence
24508 handling codes to character.c.
24509
24510 * charset.h: Mostly re-written. Move character and multibyte sequence
24511 handling codes to character.h.
24512
24513 * coding.c, coding.h: Mostly re-written.
24514
24515 * composite.c: Include "character.h" instead of "charset.h".
24516 (CHAR_WIDTH): Move to character.h.
24517 (HASH_KEY, HASH_VALUE): Delete.
24518
24519 * composite.h (enum composition_method): Change order of enumeration
24520 symbols.
24521
24522 * data.c: Include "character.h" instead of "charset.h".
24523 (Faref): Call CHAR_TABLE_REF for a char table.
24524 (Faset): Call CHAR_TABLE_SET for a char table.
24525
24526 * dispextern.h (free_realized_face, check_face_attribytes)
24527 (generate_ascii_font): Extern them.
24528 (free_realized_multibyte_face): Delete extern.
24529
24530 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
24531 table structure.
24532
24533 * editfns.c: Include "character.h" instead of "charset.h".
24534 (Fchar_to_string): Always call CHAR_STRING.
24535
24536 * emacs.c (main): Call init_charset_once, init_charset,
24537 syms_of_chartab, and syms_of_character.
24538
24539 * fileio.c: Include "character.h" instead of "charset.h".
24540 (Finsert_file_contents): Big change for the new code-conversion API.
24541 (choose_write_coding_system, Fwrite_region): Likewise.
24542 (build_annotations_2): Delete.
24543 (e_write): Big change for the new code-conversion API.
24544
24545 * fns.c: Include "character.h" instead of "charset.h".
24546 (copy_sub_char_table): Move to chartab.c.
24547 (Fcopy_sequence): Call copy_char_table for a char table.
24548 (concat): Delete codes calling count_multibyte.
24549 (string_char_to_byte, string_byte_to_char): Adjust for the new
24550 multibyte form.
24551 (internal_equal): Adjust for the change of char table structure.
24552 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
24553 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
24554 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
24555 (char_table_translate, optimize_sub_char_table)
24556 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
24557 chartab.c.
24558 (char_table_ref_and_index): Delete.
24559 (HASH_KEY, HASH_VALUE): Move to lisp.h.
24560 (Fmd5): Call preferred_coding_system instead of accessing
24561 Vcoding_category_list. Adjust for the new code-conversion API.
24562 (syms_of_fns): Move defsubr for char table related functions to
24563 chartab.c.
24564
24565 * fontset.c: Mostly re-written.
24566
24567 * fontset.h (struct font_info): Change type of the member encoding_type.
24568 (enum FONT_SPEC_INDEX): New enum.
24569 (fontset_font_pattern, fs_load_font): Update prototype.
24570 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
24571
24572 * indent.c: Include "character.h" instead of "charset.h".
24573 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
24574
24575 * insdel.c: Include "character.h" instead of "charset.h".
24576 (copy_text): Don't refer to Vnonascii_translation_table.
24577 (insert_from_gap): New function.
24578
24579 * keyboard.c: Include "character.h" instead of "charset.h".
24580 (command_loop_1): Never call direct_output_forward_char before
24581 a non-ASCII character.
24582 (read_char): If Vkeyboard_translate_table is a char table, always
24583 translate a character.
24584
24585 * keymap.c: Include "character.h".
24586 (store_in_keymap): Handle the case that IDX is a cons.
24587 (Fdefine_key): Handle the case that KEY is a cons and the car part
24588 is also a cons (range).
24589 (push_key_description): Adjust for the new character code.
24590 (describe_vector): Call describe_char_table for a char table.
24591 (describe_char_table): New function.
24592
24593 * keymap.h (describe_char_table): Extern it.
24594
24595 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
24596 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
24597 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
24598 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
24599 Delete.
24600 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
24601 structure.
24602 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
24603 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
24604 (CHARTAB_SIZE_BITS_3): New macros.
24605 (chartab_size): Extern it.
24606 (struct Lisp_Char_Table): Re-design.
24607 (struct Lisp_Sub_Char_Table): New structure.
24608 (HASH_KEY, HASH_VALUE): Move from fns.c.
24609 (CHARACTERBITS): Define as 22.
24610 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
24611 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
24612 (GC_SUB_CHAR_TABLE_P): New macro.
24613 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
24614 (code_convert_string_norecord): Deleted extern.
24615 (init_character_once, syms_of_character, init_charset)
24616 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
24617
24618 * lread.c: Include "character.h".
24619 (read_multibyte): New arg NBYTES.
24620 (read_escape): Change the meaning of returned *BYTEREP.
24621 (to_multibyte): Delete.
24622 (read1): Adjust the handling of char table and string.
24623
24624 * print.c: Include "character.h" instead of "charset.h".
24625 (print_string): Convert 8-bit raw bytes to octal form by
24626 string_escape_byte8.
24627 (print_object): Adjust for the new multibyte form. Print 8-bit
24628 raw bytes always in octal form. Handle sub char table correctly.
24629
24630 * process.c: Include "character.h" instead of "charset.h".
24631 (read_process_output, send_process): Adjust for the new
24632 code-conversion API.
24633
24634 * puresize.h (BASE_PURESIZE): Increase.
24635
24636 * regex.c: Include "character.h" instead of "charset.h".
24637 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
24638 (regex_compile): Accept a range whose starting and ending
24639 character have different leading bytes.
24640 (analyse_first): Adjust for the above change.
24641
24642 * search.c: Include "character.h" instead of "charset.h".
24643 (search_buffer, boyer_moore): Adjust for the new multibyte form.
24644 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
24645
24646 * syntax.c: Include "character.h" instead of "charset.h".
24647 (syntax_parent_lookup): Delete.
24648 (Fmodify_syntax_entry): Accept a cons as CHAR.
24649 (skip_chars): Adjust for the new multibyte form.
24650 (init_syntax_once): Call char_table_set_range instead of directly
24651 accessing the structure of a char table.
24652
24653 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
24654 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
24655 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
24656 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
24657
24658 * term.c: Include "buffer.h" and "character.h".
24659 (encode_terminal_code, write_glyphs): Adjust for the new
24660 code-conversion API.
24661 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
24662
24663 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
24664
24665 * xdisp.c: Include "character.h".
24666 (get_next_display_element): Adjust for the new multibyte form.
24667 (disp_char_vector): Adjust for the new char table structure.
24668 (decode_mode_spec_coding): Adjust for the new structure of
24669 coding system.
24670 (decode_mode_spec): Adjust for the new code-conversion API.
24671
24672 * xfaces.c: Include "character.h" instead of "charset.h".
24673 (load_face_font): Adjust for the change of choose_face_font and
24674 FS_LOAD_FONT.
24675 (generate_ascii_font): New function.
24676 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
24677 (set_font_frame_param): Adjust for the change of choose_face_font.
24678 (free_realized_face): Make it public.
24679 (free_realized_faces_for_fontset): Rename from
24680 free_realized_multibyte_face. Free also faces realized for ASCII.
24681 (choose_face_font): Change arguments. Adjust for the change of
24682 fontset_font_pattern and FS_LOAD_FONT.
24683
24684 * xfns.c: Include "character.h".
24685 (x_encode_text): Adjust for the new code-conversion API.
24686
24687 * xselect.c: Don't include "charset.h".
24688 (selection_data_to_lisp_data): Adjust for the new code conversion API.
24689
24690 * xterm.c: Include "character.h".
24691 (x_encode_char): New argument CHARSET. Change caller.
24692 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
24693 Call ENCODE_CHAR instead of SPLIT_CHAR.
24694 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
24695 CHAR_WIDTH instead of CHARSET_WIDTH.
24696 (XTread_socket): Adjust for the new code-conversion API.
24697 (x_new_font): Adjust for the change of FS_LOAD_FONT.
24698 (x_load_font): Adjust for the change of struct font.
24699
24700 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
24701
24702 * xfaces.c (face_at_buffer_position): Remove unused vars.
24703
24704 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24705
24706 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
24707 Fix overflow checking.
24708
24709 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24710
24711 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
24712 Cancel previous change.
24713
24714 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
24715
24716 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
24717 ccl->eight_bit_control. Fix check for buffer overflow.
24718 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
24719 (ccl_driver): Initialize extra_bytes to 0.
24720
24721 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
24722
24723 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
24724 return it ORed with ctrl_modifier.
24725
24726 2008-01-29 Miles Bader <miles@gnu.org>
24727
24728 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
24729
24730 2008-01-28 Jason Rumney <jasonr@gnu.org>
24731
24732 * w32.c (stat): Don't double check for networked drive.
24733
24734 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
24735
24736 * window.c (run_window_configuration_change_hook): New function.
24737 Code extracted from set_window_buffer. Set the selected frame.
24738 (set_window_buffer): Use it.
24739 * window.h (run_window_configuration_change_hook): Declare.
24740 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
24741
24742 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
24743
24744 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
24745
24746 * Makefile.in: Remove references to unused macros.
24747
24748 2008-01-26 Eli Zaretskii <eliz@gnu.org>
24749
24750 * w32.c (g_b_init_get_sid_sub_authority)
24751 (g_b_init_get_sid_sub_authority_count): New static variables.
24752 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
24753 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
24754 (init_user_info): Use them to retrieve uid and gid.
24755 Use 500/513, the Windows defaults, as Administrator's uid/gid.
24756 (fstat): Use pw_uid and pw_gid from the_passwd structure for
24757 st_uid and st_gid of the file.
24758
24759 2008-01-26 Jason Rumney <jasonr@gnu.org>
24760
24761 * w32.c (logon_network_drive): New function.
24762 (stat): Use it.
24763
24764 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
24765
24766 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
24767 invisible text covered with an ellipsis.
24768
24769 2008-01-25 Richard Stallman <rms@gnu.org>
24770
24771 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
24772 jump back to beginning. Move some other initializations after that.
24773 (Qwindow_text_change_functions, Vwindow_text_change_functions):
24774 New variables.
24775 (syms_of_xdisp): Init them.
24776
24777 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
24778
24779 * buffer.c (reset_buffer_local_variables):
24780 Implement `permanent-local-hook'.
24781 (Qpermanent_local_hook): New variable.
24782 (syms_of_buffer): Init and staticpro it.
24783
24784 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
24785
24786 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
24787
24788 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
24789
24790 * fns.c (Fclrhash): Return TABLE.
24791
24792 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24793
24794 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
24795 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
24796 is set even without positional changes.
24797 (x_scroll_bar_clear): Set bar->redraw_needed_p.
24798
24799 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
24800
24801 2008-01-23 Jason Rumney <jasonr@gnu.org>
24802
24803 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
24804
24805 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
24806 the unicode range available in MULE by locale-coding-system.
24807 Improve dbcs lead byte detection. Set event timestamp and modifiers
24808 earlier.
24809
24810 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24811
24812 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
24813 [MAC_OSX] (init_mac_osx_environment): Initialize it.
24814 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
24815 when used on child processes.
24816
24817 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
24818
24819 * dbusbind.c (Fdbus_method_return_internal): Rename from
24820 Fdbus_method_return.
24821 (Fdbus_unregister_object): Move to dbus.el.
24822 (Fdbus_call_method, Fdbus_method_return_internal)
24823 (Fdbus_send_signal): Improve debug messages.
24824
24825 2008-01-20 Martin Rudalics <rudalics@gmx.at>
24826
24827 * undo.c (undo_inhibit_record_point): New variable.
24828 (syms_of_undo): Initialize it.
24829 (record_point): Don't record point when undo_inhibit_record_point
24830 is set.
24831
24832 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
24833
24834 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
24835
24836 * xdisp.c (Qauto_hscroll_mode): New var.
24837 (syms_of_xdisp): Initialize it.
24838 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
24839 window's buffer.
24840 (hscroll_windows): Don't check automatic_hscrolling_p here.
24841
24842 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
24843 vscroll if we're setting window-buffer to the value it already has.
24844
24845 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
24846
24847 * m/intel386.h: Remove references to XENIX.
24848
24849 2008-01-17 Andreas Schwab <schwab@suse.de>
24850
24851 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
24852 instead of HAVE_X86_64_LIB64_DIR.
24853 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
24854
24855 2008-01-17 Glenn Morris <rgm@gnu.org>
24856
24857 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
24858 to HAVE_X86_64_LIB64_DIR.
24859
24860 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
24861
24862 * s/irix3-3.h:
24863 * s/irix4-0.h:
24864 * s/386-ix.h:
24865 * s/domain.h:
24866 * s/hpux9-x11r4.h:
24867 * s/hpux9shxr4.h: Remove files for systems no longer supported.
24868
24869 * sysdep.c: Remove code containing references to symbols defined
24870 by unsupported systems.
24871
24872 2008-01-16 Glenn Morris <rgm@gnu.org>
24873
24874 * coding.c (select-safe-coding-system-function): Doc fix.
24875
24876 2008-01-15 Glenn Morris <rgm@gnu.org>
24877
24878 * config.in: Revert 2008-01-13 change: this is a generated file.
24879
24880 2008-01-13 Tom Tromey <tromey@redhat.com>
24881
24882 * lisp.h: Fix typo.
24883
24884 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
24885
24886 * m/sequent-ptx.h:
24887 * m/sequent.h:
24888 * s/ptx.h:
24889 * s/ptx4-2.h:
24890 * s/ptx4.h: Remove files for systems no longer supported.
24891
24892 * callproc.c (Fcall_process): Fix previous change.
24893
24894 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
24895
24896 * unexsunos4.c: Remove file, system not supported anymore.
24897
24898 * m/mips.h:
24899 * m/intel386.h:
24900 * callproc.c:
24901 * config.in:
24902 * ecrt0.c:
24903 * emacs.c:
24904 * fileio.c:
24905 * frame.c:
24906 * getpagesize.h:
24907 * keyboard.c:
24908 * lread.c:
24909 * process.c:
24910 * puresize.h:
24911 * sysdep.c:
24912 * systty.h:
24913 * syswait.h:
24914 * unexec.c:
24915 * xdisp.c:
24916 * alloc.c: Remove code containing references to symbols defined by
24917 unsupported systems.
24918
24919 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
24920
24921 * coding.c (detect_coding_mask): Fix previous change.
24922
24923 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
24924
24925 * coding.c (detect_coding_iso2022): New arg
24926 latin_extra_code_state. Allow Latin extra codes only
24927 when *latin_extra_code_state is nonzero.
24928 (detect_coding_mask): If there is a NULL byte, detect the encoding
24929 as UTF-16 or binary. If Latin extra codes exist, detect the
24930 encoding as ISO-2022 only when there's no other proper encoding is
24931 found.
24932
24933 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24934
24935 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
24936 #ifdef MAC_OS.
24937
24938 2008-01-08 Richard Stallman <rms@gnu.org>
24939
24940 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
24941
24942 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
24943
24944 * keyboard.c (parse_menu_item): Don't enclose key bindings on
24945 menu bar in parentheses.
24946
24947 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
24948
24949 * m/7300.h:
24950 * m/acorn.h:
24951 * m/alliant-2800.h:
24952 * m/alliant.h:
24953 * m/alliant1.h:
24954 * m/alliant4.h:
24955 * m/altos.h:
24956 * m/amdahl.h:
24957 * m/apollo.h:
24958 * m/att3b.h:
24959 * m/aviion-intel.h:
24960 * m/aviion.h:
24961 * m/celerity.h:
24962 * m/clipper.h:
24963 * m/cnvrgnt.h:
24964 * m/convex.h:
24965 * m/cydra5.h:
24966 * m/delta88k.h:
24967 * m/dpx2.h:
24968 * m/dual.h:
24969 * m/elxsi.h:
24970 * m/f301.h:
24971 * m/gould-np1.h:
24972 * m/gould.h:
24973 * m/i860.h:
24974 * m/ibmps2-aix.h:
24975 * m/ibmrt-aix.h:
24976 * m/ibmrt.h:
24977 * m/irist.h:
24978 * m/is386.h:
24979 * m/isi-ov.h:
24980 * m/mega68.h:
24981 * m/mg1.h:
24982 * m/news-r6.h:
24983 * m/news-risc.h:
24984 * m/news.h:
24985 * m/nh3000.h:
24986 * m/nh4000.h:
24987 * m/ns16000.h:
24988 * m/ns32000.h:
24989 * m/nu.h:
24990 * m/orion.h:
24991 * m/orion105.h:
24992 * m/paragon.h:
24993 * m/pfa50.h:
24994 * m/plexus.h:
24995 * m/pyramid.h:
24996 * m/pyrmips.h:
24997 * m/sh3el.h:
24998 * m/sps7.h:
24999 * m/sr2k.h:
25000 * m/stride.h:
25001 * m/sun1.h:
25002 * m/sun2.h:
25003 * m/sun3-68881.h:
25004 * m/sun3-fpa.h:
25005 * m/sun3-soft.h:
25006 * m/sun3.h:
25007 * m/sun386.h:
25008 * m/symmetry.h:
25009 * m/tad68k.h:
25010 * m/tahoe.h:
25011 * m/targon31.h:
25012 * m/tek4300.h:
25013 * m/tekxd88.h:
25014 * m/tower32.h:
25015 * m/tower32v3.h:
25016 * m/ustation.h:
25017 * m/wicat.h:
25018 * m/xps100.h:
25019 * s/cxux.h:
25020 * s/cxux7.h:
25021 * s/dgux.h:
25022 * s/dgux4.h:
25023 * s/dgux5-4-3.h:
25024 * s/dgux5-4r2.h:
25025 * s/esix.h:
25026 * s/esix5r4.h:
25027 * s/hiuxmpp.h:
25028 * s/hiuxwe2.h:
25029 * s/iris3-5.h:
25030 * s/iris3-6.h:
25031 * s/isc2-2.h:
25032 * s/isc3-0.h:
25033 * s/isc4-0.h:
25034 * s/isc4-1.h:
25035 * s/newsos5.h:
25036 * s/newsos6.h:
25037 * s/osf1.h:
25038 * s/osf5-0.h:
25039 * s/riscix1-1.h:
25040 * s/riscix12.h:
25041 * s/sco4.h:
25042 * s/sco5.h:
25043 * s/sunos4-0.h:
25044 * s/sunos4-1.h:
25045 * s/sunos413.h:
25046 * s/sunos4shr.h:
25047 * s/umax.h:
25048 * s/unipl5-2.h:
25049 * s/xenix.h:
25050 * cxux-crt0.s:
25051 * unexapollo.c:
25052 * unexconvex.c:
25053 * unexenix.c:
25054 * unexsni.c: Remove files for systems no longer supported.
25055
25056 * m/intel386.h: Remove references to unsupported systems.
25057
25058 * w32.c (get_emacs_configuration): Remove reference to i860.
25059
25060 * sysdep.c: Remove dead code.
25061
25062 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
25063
25064 * s/rtu.h:
25065 * m/masscomp.h: Remove files. Platform is obsolete.
25066
25067 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
25068
25069 * dbusbind.c (Fdbus_method_return): New function.
25070 (xd_read_message): Add the serial number to the event.
25071 (Fdbus_register_method): Activate the function.
25072
25073 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
25074
25075 * keyboard.c (read_key_sequence): Fix typo.
25076
25077 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
25078
25079 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
25080 (xd_signature, xd_append_arg): Handle element type detection for
25081 empty arrays.
25082 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
25083 SDATA () calls; this must be solved more general.
25084 (Fdbus_register_signal): Use SBYTES instead of strlen.
25085
25086 2008-01-03 Magnus Henoch <magnus@zemdatav>
25087
25088 * dbusbind.c (xd_append_arg): Use unsigned char instead of
25089 unsigned int for byte values (necessary for big-endian platform).
25090 (Fdbus_call_method): Handle the case of no returned arguments.
25091
25092 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
25093
25094 * dbusbind.c (xd_read_message): Use non-static input_event struct.
25095
25096 2007-12-31 Magnus Henoch <mange@freemail.hu>
25097
25098 * dbusbind.c (xd_signature): Signature of variant is just "v".
25099
25100 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
25101
25102 * dbusbind.c: Fix several errors and compiler warnings.
25103 Reported by Tom Tromey <tromey@redhat.com>.
25104 (XD_ERROR, XD_DEBUG_MESSAGE)
25105 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
25106 (xd_append_arg): Part for basic D-Bus types rewritten.
25107 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
25108 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
25109 appropriate.
25110 (xd_read_message): Return Qnil. Don't signal an error; it is not
25111 useful during event reading.
25112 (Fdbus_register_signal): Signal an error if the check for
25113 FUNCTIONP fails.
25114 (Fdbus_register_method): New function. The implementation is not
25115 complete, the call of the function signals an error therefore.
25116 (Fdbus_unregister_object): New function, renamed from
25117 Fdbus_unregister_signal. The initial check signals an error, if
25118 the object is not well formed.
25119
25120 2007-12-30 Richard Stallman <rms@gnu.org>
25121
25122 * textprop.c (get_char_property_and_overlay):
25123 Signal error if POSITION is out of range in a buffer.
25124
25125 2007-12-29 Martin Rudalics <rudalics@gmx.at>
25126
25127 * w32fns.c (Fx_create_frame): Make copy of frame parameters
25128 because the original parameters are in pure storage now.
25129
25130 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25131
25132 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
25133
25134 2007-12-22 Eli Zaretskii <eliz@gnu.org>
25135
25136 * callint.c (syms_of_callint) <command-history>: Add reference to
25137 history-length in the doc string.
25138
25139 2007-12-17 Jason Rumney <jasonr@gnu.org>
25140
25141 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
25142 before passing as wParam.
25143
25144 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
25145
25146 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
25147 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
25148 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
25149 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
25150 as number.
25151 (Fdbus_call_method): Fix docstring.
25152
25153 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
25154
25155 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
25156 New macros.
25157 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
25158 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
25159 Simplify.
25160 (xd_signature): New function.
25161 (xd_append_arg): Compute also signatures. Major rewrite.
25162 (xd_retrieve_arg): Make debug messages friendly.
25163 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
25164 Check for signatures of arguments.
25165
25166 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
25167
25168 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
25169 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
25170 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
25171 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
25172 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
25173 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
25174 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
25175 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
25176 (xd_retrieve_value): Remove. Functionality included in ...
25177 (xd_append_arg): New function.
25178 (Fdbus_call_method, Fdbus_send_signal): Apply it.
25179
25180 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
25181
25182 * dbusbind.c (top): Include <stdio.h>.
25183 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
25184 dbus_message_new_method_call and dbus_message_new_signal.
25185 (Fdbus_register_signal): Rename unique_name to uname.
25186 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
25187 non-existing unique name. Fix typos in matching rule. Return an
25188 object which is useful in Fdbus_unregister_signal.
25189 (Fdbus_unregister_signal): Reimplementation, in order to remove
25190 only the corresponding entry.
25191 (Vdbus_registered_functions_table): Change the order of entries.
25192 Apply these changes in xd_read_message and Fdbus_register_signal.
25193
25194 2007-12-16 Andreas Schwab <schwab@suse.de>
25195
25196 * fileio.c (Finsert_file_contents): Fix overflow check to not
25197 depend on undefined integer overflow.
25198
25199 2007-12-14 Jason Rumney <jasonr@gnu.org>
25200
25201 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
25202 for characters above 127.
25203
25204 2007-12-13 Jason Rumney <jasonr@gnu.org>
25205
25206 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
25207 before dereferencing array.
25208 (lookup_vk_code): Remove zero comparison.
25209
25210 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
25211
25212 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
25213 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
25214 Use `unsigned int' instead of `uint'.
25215 (xd_read_message, Fdbus_register_signal): Split expressions into
25216 multiple lines before operators "&&" and "||", according to the
25217 GNU Coding Standards.
25218
25219 2007-12-14 Eli Zaretskii <eliz@gnu.org>
25220
25221 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
25222
25223 2007-12-12 Juri Linkov <juri@jurta.org>
25224
25225 * buffer.c (Frename_buffer): In interactive spec replace
25226 `read-buffer' with `read-string' that uses `buffer-name-history'
25227 as history, and the current buffer's name as default.
25228
25229 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
25230
25231 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
25232 manipulating the backtrace manually.
25233 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
25234 (struct backtrace, backtrace_list): Remove.
25235 (command_loop_1): Remove dead var `no_direct'.
25236
25237 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
25238 preserve non-built-in buffer-local variables.
25239 (Fkill_all_local_variables): Don't re-create&re-set permanent
25240 buffer-local variables.
25241
25242 2007-12-09 Juri Linkov <juri@jurta.org>
25243
25244 * buffer.c (Frename_buffer): Change interactive spec from "s" to
25245 Lisp code that uses `read-buffer' with current buffer as default.
25246
25247 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
25248
25249 * dbusbind.c (xd_read_message): Generate an event for every
25250 registered handler. There might be several handlers registered
25251 for the same signal.
25252 (Fdbus_register_signal): Don't overwrite a registration for the
25253 same signal. Add a new registration if handlers are different.
25254 (Vdbus_registered_functions_table): Rework doc string.
25255
25256 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
25257
25258 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
25259 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
25260 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
25261 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
25262 Unify argument lists.
25263 (xd_read_message, Fdbus_register_signal): Reorder and extend event
25264 arguments and hash table keys. Use unique name for service.
25265 (Fdbus_unregister_signal): Remove checks.
25266 (Vdbus_registered_functions_table): Fix doc string.
25267
25268 2007-12-05 Magnus Henoch <mange@freemail.hu>
25269
25270 * process.c (make_process): Initialize pty_flag to 0.
25271
25272 2007-12-05 Jason Rumney <jasonr@gnu.org>
25273
25274 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
25275 specified XBMs.
25276
25277 2007-12-05 Richard Stallman <rms@gnu.org>
25278
25279 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
25280
25281 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25282
25283 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
25284 New variable.
25285 (mac_try_close_socket) [MAC_OSX]: New function.
25286 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
25287 Update cfsockets_for_select. Replace invalid CFRunLoop source.
25288
25289 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
25290 Use mac_try_close_socket.
25291
25292 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25293
25294 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
25295 reloc_base.
25296 (copy_dysymtab): Compute relocation base here.
25297 (rebase_reloc_address) [__ppc64__]: New function.
25298 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
25299 changed.
25300
25301 2007-12-05 Jason Rumney <jasonr@gnu.org>
25302
25303 * w32proc.c (sys_spawnve): Quote args with wildcards.
25304
25305 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25306
25307 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
25308 __objc_* sections.
25309 (unrelocate) [_LP64]: Set relocation base to address of data segment.
25310
25311 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
25312
25313 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
25314 Move check for Vdbus_registered_functions_table to
25315 xd_read_queued_messages.
25316 (xd_read_queued_messages): Protect xd_read_message calls by
25317 internal_condition_case_1.
25318
25319 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
25320
25321 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
25322 Qdbus_system_bus and Qdbus_session_bus, respectively.
25323 (Vdbus_intern_symbols): Remove.
25324 (Vdbus_registered_functions_table): New hash table.
25325 (XD_SYMBOL_INTERN_SYMBOL): Remove.
25326 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
25327 Rewrite in order to manage registered functions by hash table
25328 Vdbus_registered_functions_table.
25329
25330 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
25331
25332 * xterm.c: Update URL to Window Manager Specification in comment.
25333
25334 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
25335
25336 * config.in (HAVE_DBUS): Add.
25337
25338 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
25339 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
25340 (obj): Add $(DBUS_OBJ).
25341 (LIBES): Add $(DBUS_LIBS).
25342 (dbusbind.o): New target.
25343
25344 * dbusbind.c: New file.
25345
25346 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
25347
25348 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
25349 (Qdbus_event): New Lisp symbol.
25350 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
25351 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
25352 (keys_of_keyboard): Define dbus-event.
25353
25354 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
25355
25356 2007-12-01 Richard Stallman <rms@gnu.org>
25357
25358 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
25359
25360 2007-11-30 Jason Rumney <jasonr@gnu.org>
25361
25362 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
25363 (w32con_reset_terminal_modes): Clear screen buffer.
25364 (w32_face_attributes): Don't use color indexes that are out of range.
25365 Only reverse the default colors.
25366
25367 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
25368 WINDOWSNT.
25369
25370 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
25371
25372 2007-11-29 Jason Rumney <jasonr@gnu.org>
25373
25374 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
25375 (w32_face_attributes): Use Vtty_defined_color_alist to determine
25376 if the terminal colors are initialized.
25377 (unspecified_fg, unspecified_bg): Remove unused declarations.
25378
25379 2007-11-29 Andreas Schwab <schwab@suse.de>
25380
25381 * keyboard.c (apply_modifiers): Fix typo.
25382
25383 2007-11-29 Richard Stallman <rms@gnu.org>
25384
25385 * keymap.c (Fcurrent_local_map): Doc fix.
25386
25387 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
25388
25389 * s/gnu-kfreebsd.h: New file.
25390
25391 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
25392
25393 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
25394 Don't cast redundantly.
25395
25396 * keyboard.c (KEY_TO_CHAR): New macro.
25397 (parse_modifiers, apply_modifiers): Accept integer arguments.
25398 (read_key_sequence): Use them to unify the "shift->unshift" mapping
25399 for chars and symbol keys.
25400 After doing such remapping, apply function-key-map again.
25401
25402 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
25403
25404 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
25405 compiled anymore.
25406
25407 2007-11-26 Andreas Schwab <schwab@suse.de>
25408
25409 * process.c (list_processes_1): Fix indentation level of the
25410 command column.
25411
25412 2007-11-23 Andreas Schwab <schwab@suse.de>
25413
25414 * editfns.c (Fformat): Handle %c specially since it requires the
25415 argument to be of type int.
25416
25417 2007-11-23 Markus Triska <markus.triska@gmx.at>
25418
25419 * emacs.c (main): Call init_editfns before init_process, since
25420 init_process sets Vprocess_connection_type depending on OS release.
25421
25422 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
25423
25424 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
25425 (find_symbol_value): Use do_symval_forwarding.
25426
25427 * data.c (set_internal): Set the value in the `cons-cell' (for
25428 Buffer_Local_values) not only for frame-local variables.
25429
25430 2007-11-22 Andreas Schwab <schwab@suse.de>
25431
25432 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
25433 values to sprintf.
25434 * keymap.c (Fsingle_key_description): Likewise.
25435 * print.c (print_object): Likewise.
25436
25437 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
25438
25439 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
25440 file for image is nil.
25441
25442 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
25443
25444 * term.c: Include stdarg.h.
25445 (fatal): Implement using varargs.
25446 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
25447
25448 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
25449
25450 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
25451 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
25452 Update call to buffer_slot_type_mismatch.
25453 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
25454 (buffer_slot_type_mismatch): Update.
25455 * buffer.c (buffer_local_types): Remove.
25456 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
25457 (defvar_per_buffer): Set the type in the buffer_objfwd.
25458
25459 2007-11-21 Jason Rumney <jasonr@gnu.org>
25460
25461 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
25462 CreateFileMapping returns NULL on failure.
25463
25464 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
25465
25466 * search.c (Fset_match_data): Remove the `evaporate' feature.
25467 (unwind_set_match_data): Don't use the `evaporate' feature.
25468
25469 2007-11-21 Jason Rumney <jasonr@gnu.org>
25470
25471 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
25472
25473 * w32console.c (w32con_write_glyphs): Remove unused variables.
25474
25475 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
25476
25477 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
25478
25479 * s/darwin.h (MULTI_KBOARD): Remove.
25480
25481 * macfns.c (x_create_tip_frame, Fx_create_frame)
25482 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
25483
25484 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
25485
25486 * buffer.c (Fbuffer_local_value): Remove redundant test.
25487 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
25488 than in `current-buffer' to match the comment.
25489 Do the swap using swap_in_global_binding.
25490
25491 * data.c (store_symval_forwarding, set_internal):
25492 * eval.c (specbind): Remove dead code.
25493
25494 * coding.c (detect_coding, Fupdate_coding_systems_internal):
25495 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
25496 Since we do not want to see internal Lisp_*fwd objects here.
25497
25498 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
25499
25500 * sysdep.c (init_system_name): Use getaddrinfo if available.
25501
25502 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
25503 (x_scroll_bar_note_movement): start, end, with, height in struct
25504 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
25505
25506 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
25507
25508 * puresize.h (BASE_PURESIZE): Increase to 1190000.
25509
25510 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
25511
25512 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
25513 This undoes Richard's change of 14-Oct-2002.
25514
25515 * alloc.c (allocate_other_vector):
25516 * lisp.h (allocate_other_vector): Remove.
25517
25518 * window.c (struct save_window_data): Move non-lisp data to the end
25519 and make it `int' rather than Lisp_Object.
25520 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
25521 Done wrap/unwrap integer values.
25522 (Fset_window_configuration, compare_window_configurations):
25523 Update use of fields to their new types.
25524
25525 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
25526 Turn integer fields into `int'. Merge x_window_low and x_window_high.
25527 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
25528 (SET_SCROLL_BAR_X_WINDOW): Remove.
25529 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
25530 Access the new x_window field directly.
25531 * xterm.c (x_scroll_bar_create): Use a pseudovector.
25532 Don't wrap/unwrap integers into Lisp_Objects.
25533 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
25534 (x_scroll_bar_report_motion):
25535 Don't wrap/unwrap integers into Lisp_Objects.
25536 (x_term_init): Use SDATA.
25537 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
25538 (x_scroll_bar_set_handle, x_scroll_bar_remove)
25539 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
25540 (x_scroll_bar_report_motion, x_scroll_bar_clear):
25541 * xfns.c (x_set_background_color):
25542 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
25543 Access the new x_window field directly.
25544
25545 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
25546 (allocate_pseudovector): Make non-static.
25547
25548 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
25549 (allocate_pseudovector): Declare.
25550 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
25551
25552 2007-11-15 Andreas Schwab <schwab@suse.de>
25553
25554 * editfns.c (Fformat): Correctly format EMACS_INT values.
25555 Also take precision into account when formatting an integer.
25556
25557 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
25558
25559 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
25560
25561 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
25562 (syms_of_keyboard): Defsubr it.
25563
25564 * data.c (swap_in_global_binding): Fix longstanding bug where
25565 store_symval_forwarding was not called with the right second argument,
25566 thus causing objfwd-ing from being dropped.
25567
25568 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
25569
25570 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
25571 (Fx_display_pixel_height, Fx_display_planes)
25572 (Fx_display_color_cells, Fx_server_max_request_size)
25573 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
25574 (Fx_display_visual_class, Fx_display_save_under):
25575 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
25576 (Fx_display_pixel_height, Fx_display_planes)
25577 (Fx_display_color_cells, Fx_server_max_request_size)
25578 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
25579 (Fx_display_mm_height, Fx_display_mm_width)
25580 (Fx_display_backing_store, Fx_display_visual_class)
25581 (Fw32_select_font, Fx_display_save_under):
25582 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
25583 (Fx_display_pixel_height, Fx_display_planes)
25584 (Fx_display_color_cells, Fx_server_max_request_size)
25585 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
25586 (Fx_display_save_under): Fix typos in docstrings.
25587
25588 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
25589
25590 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
25591 corresponding to deleted entries; they are an implementation detail.
25592 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
25593 Remove variables.
25594 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
25595 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
25596 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
25597 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
25598 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
25599 (Fw32_define_rgb_color, Fw32_load_color_file)
25600 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
25601 Fix typos in docstrings.
25602 (Fx_server_version): Reflow docstring.
25603 (Fw32_shell_execute): Doc fixes.
25604
25605 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
25606
25607 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
25608 if w32_parse_hot_key returned nil.
25609
25610 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
25611
25612 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
25613
25614 2007-11-09 Jason Rumney <jasonr@gnu.org>
25615
25616 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
25617
25618 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
25619
25620 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
25621 Remove W32_SCROLL_BAR_CLICK_EVENT.
25622
25623 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
25624 Add MULTIMEDIA_KEY_EVENT.
25625
25626 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
25627 (lispy_multimedia_keys) [WINDOWSNT]: New array.
25628 (make_lispy_event) [WINDOWSNT]: Use it to translate
25629 MULTIMEDIA_KEY_EVENT.
25630
25631 * w32term.h (WM_APPCOMMAND): Define if not already.
25632 (GET_APPCOMMAND_LPARAM): Likewise.
25633
25634 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
25635 WM_APPCOMMAND.
25636
25637 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
25638 (syms_of_w32fns): Export and initialize it.
25639 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
25640
25641 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
25642
25643 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
25644 twice.
25645
25646 * xdisp.c (handle_face_prop): Fix last change.
25647
25648 2007-11-09 Richard Stallman <rms@gnu.org>
25649
25650 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
25651 not just for after-strings and before-strings.
25652 Call face_for_overlay_string and pass the overlay to it.
25653 (handle_display_prop): Determine whether property came from an overlay.
25654 Pass OVERLAY arg to handle_single_display_spec.
25655 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
25656 (load_overlay_strings): Fill in it->string_overlays.
25657 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
25658
25659 * xfaces.c (face_for_overlay_string): Function renamed from
25660 face_at_buffer_position_no_overlays, and add arg OVERLAY.
25661
25662 * dispextern.h (struct it): New elt string_overlays.
25663 New elt from_overlay, also in stack.
25664 Rearrange a few elements.
25665 (face_for_overlay_string): Decl renamed from
25666 face_at_buffer_position_no_overlays, and add argument.
25667
25668 2007-11-09 Richard Stallman <rms@gnu.org>
25669
25670 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
25671 to get the base face for an overlay string.
25672
25673 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
25674
25675 * xfaces.c (face_at_buffer_position_no_overlays): New function.
25676
25677 * xdisp.c (handle_stop): Move some code out of loop.
25678
25679 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25680
25681 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
25682 Fix conversion from Lisp object to ATSUFontID.
25683
25684 2007-11-09 Jason Rumney <jasonr@gnu.org>
25685
25686 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
25687
25688 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25689
25690 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
25691 Don't assume regions are aligned to page boundary.
25692 (print_load_command_name): Add LC_UUID if defined.
25693
25694 2007-11-09 Richard Stallman <rms@gnu.org>
25695
25696 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
25697
25698 2007-11-07 Jason Rumney <jasonr@gnu.org>
25699
25700 * s/windows95.h: Remove.
25701
25702 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
25703
25704 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
25705 abort with a message on unhandled store_type values.
25706
25707 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
25708
25709 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
25710 Remove HAVE_X11R5 and HAVE_X11R4.
25711
25712 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
25713
25714 * Makefile.in: Remove references to sunfns.c and sunfns.o.
25715
25716 2007-11-01 Johan Bockgård <bojohan@gnu.org>
25717
25718 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
25719 Don't set s->stippled_p here, since it has already been set by
25720 x_set_glyph_string_gc from x_draw_glyph_string.
25721
25722 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
25723
25724 * sunfns.c: Remove file.
25725
25726 * m/sun386.h:
25727 * m/sun2.h:
25728 * m/sparc.h: Remove Sun windows code.
25729
25730 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
25731
25732 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
25733 (init_keyboard): Set current_kboard's window-system to nil.
25734 (tty_read_avail_input): Typo.
25735 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
25736
25737 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
25738
25739 * s/usg5-4.h:
25740 * s/usg5-3.h:
25741 * s/ptx.h:
25742 * m/is386.h:
25743 * m/ibmps2-aix.h:
25744 * Makefile.in: Remove all mentions of X10.
25745
25746 * dispnew.c (syms_of_display): Don't mention version 10.
25747
25748 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
25749
25750 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
25751 ($(BLD)/abbrev.$(O)): Remove.
25752
25753 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
25754
25755 Rewrite abbrev.c in Elisp.
25756 * image.c (Qcount): Don't declare as extern.
25757 (syms_of_image): Initialize and staticpro `Qcount'.
25758 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
25759 * emacs.c (main): Don't call syms_of_abbrev.
25760 * Makefile.in (obj): Remove abbrev.o.
25761 (abbrev.o): Remove.
25762 * abbrev.c: Remove.
25763
25764 2007-10-26 Martin Rudalics <rudalics@gmx.at>
25765
25766 * window.c (window_min_size_2): Don't count header-line.
25767
25768 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
25769
25770 * frame.h (struct frame): Move all bit fields after the first bit
25771 field to take advantage of the available space. Group all the
25772 chars together to reduce wasted space due to padding.
25773
25774 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
25775
25776 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
25777
25778 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
25779 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
25780 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
25781 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
25782 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
25783 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
25784 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
25785 (last_marked, mark_object_loop_halt): Make static.
25786
25787 * frame.c (syms_of_frame) <delete-frame-functions>:
25788 Fix typo in docstring.
25789
25790 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
25791
25792 * w32.c (init_environment): Fix tiny memory leak.
25793 (w32_get_resource): Remove unused variable `ok'.
25794
25795 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
25796
25797 Make `window-system' into a keyboard-local variable (rather than
25798 frame-local as done originally by multi-tty).
25799
25800 * keyboard.h (struct kboard): Add Vwindow_system.
25801 * keyboard.c (init_kboard): Set a default for Vwindow_system.
25802 (mark_kboards): Mark Vwindow_system.
25803
25804 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
25805 (init_display): Don't set the obsolete `window-system' frame-param.
25806
25807 * xterm.c (x_term_init):
25808 * w32term.c (w32_create_terminal):
25809 * term.c (init_tty): Set Vwindow_system.
25810 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
25811 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
25812
25813 * xfns.c (Fx_create_frame, x_create_tip_frame):
25814 * w32fns.c (Fx_create_frame, x_create_tip_frame):
25815 * macfns.c (Fx_create_frame):
25816 Don't set the obsolete `window-system' frame-param.
25817
25818 * frame.h (Qwindow_system): Remove.
25819 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
25820 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
25821
25822 2007-10-24 Richard Stallman <rms@gnu.org>
25823
25824 * frame.c (x_figure_window_size): For fullscreen case,
25825 set USPosition | PPosition without clobbering rest of window_prompting.
25826
25827 * keyboard.c (Fcurrent_idle_time): Doc fix.
25828
25829 * print.c (Fwith_output_to_temp_buffer): Doc fix.
25830
25831 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
25832
25833 * process.c (unwind_request_sigio): Only define if __ultrix__.
25834
25835 * callproc.c (child_setup): Remove spurious *.
25836
25837 * lisp.h (Fget_text_property): Declare.
25838 (have_menus_p): Declare it here rather than in sys-dep header files.
25839 * macterm.h (have_menus_p):
25840 * msdos.h (have_menus_p):
25841 * xterm.h (have_menus_p): Remove.
25842
25843 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
25844 (Fmake_variable_frame_local): Just check the variable's const-ness
25845 rather than checking nil or t.
25846
25847 2007-10-22 Jason Rumney <jasonr@gnu.org>
25848
25849 * w32fns.c: Include math.h.
25850 (w32_abort): Declaration moved to nt/config.nt.
25851
25852 * s/ms-w32.h (HAVE_STDLIB_H): Define.
25853 (abort): Redefinition moved to nt/config.nt.
25854
25855 * m/windowsnt.h: Remove.
25856
25857 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
25858
25859 * emacs.c (Fdump_emacs): Fix typo in message.
25860 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
25861 <installation-directory>: Reflow docstring.
25862
25863 2007-10-22 Juri Linkov <juri@jurta.org>
25864
25865 * minibuf.c: Allow minibuffer default to be a list of default values.
25866 With empty input use the first element of this list as returned default.
25867 (string_to_object)
25868 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
25869 (read_minibuf): If defalt is cons, set histstring to its car.
25870 (Fread_string): If default_value is cons, set val to its car.
25871 (Fread_buffer): If def is cons, use its car.
25872 (Fcompleting_read): If defalt is cons, set val to its car.
25873
25874 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
25875
25876 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
25877
25878 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
25879
25880 * doc.c (Fdocumentation): Check for advice in all cases.
25881
25882 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
25883
25884 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
25885
25886 2007-10-19 Richard Stallman <rms@gnu.org>
25887
25888 * doc.c (Fdocumentation): Check for and handle an advised function.
25889
25890 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
25891
25892 * process.c (Fset_process_filter): Doc fix.
25893
25894 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
25895
25896 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
25897 which caused key-translation-map to applied repeatedly (thus breaking
25898 double-mode).
25899
25900 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
25901
25902 * xselect.c (x_own_selection, x_handle_selection_clear)
25903 (x_clear_frame_selections):
25904 * w32menu.c (list_of_panes, list_of_items):
25905 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
25906 * textprop.c (validate_plist, interval_has_all_properties)
25907 (interval_has_some_properties, interval_has_some_properties_list)
25908 (add_properties, text_property_list):
25909 * process.c (Fget_buffer_process, list_processes_1, status_notify):
25910 * minibuf.c (Fassoc_string):
25911 * macselect.c (x_own_selection, x_clear_frame_selections)
25912 (Fx_disown_selection_internal):
25913 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
25914 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
25915
25916 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
25917
25918 * process.c: Link to libs for calling res_init() if available.
25919 (Fmake_network_process): Call res_init() before getaddrinfo or
25920 gethostbyname, if possible.
25921
25922 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
25923
25924 * lread.c (read1): Set pvectype for char_tables.
25925
25926 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
25927 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
25928 Add type checks.
25929 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
25930
25931 * alloc.c (free_misc): Use XMISCTYPE.
25932 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
25933
25934 2007-10-17 Glenn Morris <rgm@gnu.org>
25935
25936 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
25937 (syms_of_minibuf): Add Qcompletion_ignore_case.
25938 * dired.c (Qcompletion_ignore_case): Change to external.
25939 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
25940 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
25941 (Fread_file_name): Use it rather than intern'ing.
25942
25943 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
25944 (Fread_coding_system): Ignore case of user input.
25945
25946 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25947
25948 * xdisp.c (handle_display_prop): Ignore display specs after
25949 replacing one when string text is being replaced.
25950 (handle_single_display_spec): Pretend as if characters with display
25951 property haven't been consumed only when buffer text is being replaced.
25952
25953 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
25954
25955 * xfns.c (Fx_create_frame, Fx_display_list):
25956 * window.c (window_fixed_size_p, enlarge_window)
25957 (shrink_window_lowest_first):
25958 * macterm.c (init_font_name_table):
25959 * macfns.c (Fx_create_frame, Fx_display_list):
25960 * lread.c (close_load_descs):
25961 * keyboard.c (read_char_x_menu_prompt):
25962 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
25963 * coding.c (code_convert_region_unwind): Test the type of an object
25964 rather than just !NILP before extracting data from it.
25965
25966 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
25967
25968 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
25969 (XMISCANY): New macro.
25970 (XMISCTYPE): Use it.
25971 (struct Lisp_Misc_Any): New type.
25972 (union Lisp_Misc): Use it.
25973 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
25974 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
25975 (find_symbol_value, set_internal, default_value, Fset_default)
25976 (Fmake_variable_buffer_local, Fmake_local_variable)
25977 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
25978 (Flocal_variable_if_set_p, Fvariable_binding_locus):
25979 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
25980 * alloc.c (allocate_buffer): Set the size and tag.
25981 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
25982 Use XMISCANY.
25983 (die): Follow the GNU convention for error messages.
25984 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
25985 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
25986 tag any more.
25987 (set_buffer_internal_1):
25988 * frame.c (store_frame_param):
25989 * eval.c (specbind):
25990 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
25991
25992 * doc.c (Fsnarf_documentation): Simplify.
25993
25994 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
25995
25996 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
25997 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
25998
25999 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
26000
26001 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
26002
26003 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
26004
26005 * eval.c (do_autoload): Don't save autoloads.
26006
26007 * data.c (Ffset): Save autoload of the function being set.
26008
26009 2007-10-07 John Paul Wallington <jpw@pobox.com>
26010
26011 * xfns.c (x_create_tip_frame): Set the `display-type' frame
26012 parameter before setting up faces.
26013
26014 2007-10-13 Eli Zaretskii <eliz@gnu.org>
26015
26016 * ccl.c (Fregister_code_conversion_map):
26017 * keyboard.c (append_tool_bar_item): Reformat last change.
26018
26019 * lisp.h (eabs): Rename from `abs'. All callers changed.
26020
26021 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
26022
26023 * buffer.c (add_overlay_mod_hooklist):
26024 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
26025 * fontset.c (make_fontset):
26026 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
26027 (append_tool_bar_item):
26028 * macmenu.c (grow_menu_items):
26029 * w32menu.c (grow_menu_items):
26030 * xmenu.c (grow_menu_items): Use larger_vector.
26031
26032 2007-10-13 Eli Zaretskii <eliz@gnu.org>
26033
26034 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
26035 selected frame'' on MSDOS).
26036
26037 2007-10-12 Martin Rudalics <rudalics@gmx.at>
26038
26039 * frame.c (Qexplicit_name): New variable.
26040 (x_report_frame_params): Report it in parameter alist.
26041 (syms_of_frame): Intern and staticpro it.
26042
26043 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
26044
26045 * macfns.c (x_create_tip_frame): Set terminal for frame.
26046
26047 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
26048
26049 * frame.c (Qenvironment): Remove.
26050 (syms_of_frame) <Qenvironment>: Don't initialize.
26051 (Fdelete_frame): Don't treat the `environment' param specially.
26052 * frame.h (Qenvironment): Don't declare.
26053 * callproc.c (set_initial_environment): Don't set unused frame param.
26054
26055 * frame.c (Fframe_with_environment): Remove.
26056 (syms_of_frame) <Sframe_with_environment>: Don't declare.
26057
26058 * lisp.h (Fframe_with_environment): Don't declare.
26059
26060 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
26061
26062 * indent.c (indent_tabs_mode, last_known_column)
26063 (last_known_column_modified): Make static.
26064 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
26065
26066 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
26067
26068 * puresize.h (BASE_PURESIZE): Increase to 1170000.
26069
26070 2007-10-09 Jason Rumney <jasonr@gnu.org>
26071
26072 * w32term.c (x_set_window_size): Disable code that attempts to tell
26073 Lisp code about a size change before it actually happens.
26074
26075 2007-10-09 Richard Stallman <rms@gnu.org>
26076
26077 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
26078 return HANDLED_RETURN.
26079
26080 2007-10-08 Martin Rudalics <rudalics@gmx.at>
26081
26082 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
26083 when there's an unread command event.
26084
26085 * frame.c (focus_follows_mouse): Move here from frame.el to allow
26086 window autoselection act appropriately when leaving selected frame.
26087 (syms_of_frame): Initialize focus_follows_mouse.
26088 * frame.h (focus_follows_mouse): Extern it.
26089 * macterm.c (XTread_socket): When focus_follows_mouse is nil
26090 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
26091 * msdos.c (dos_rawgetc): Likewise.
26092 * w32term.c (w32_read_socket): Likewise.
26093 * xterm.c (handle_one_xevent): Likewise.
26094 * xdisp.c (syms_of_xdisp): In doc-string of
26095 mouse-autoselect-window mention focus-follows-mouse.
26096
26097 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26098
26099 * macterm.c (mac_load_query_font): Fix missing return value.
26100 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
26101 Add BLOCK_INPUT.
26102
26103 2007-10-08 Richard Stallman <rms@gnu.org>
26104
26105 * xdisp.c (get_window_cursor_type): Implement documented behavior
26106 for cursor-in-non-selected-windows = t.
26107
26108 2007-10-08 Jason Rumney <jasonr@gnu.org>
26109
26110 * w32.c (w32_get_resource): Always close registry keys.
26111
26112 2007-10-08 Jason Rumney <jasonr@gnu.org>
26113
26114 * makefile.w32-in (LIBS): Add COMCTL32.
26115
26116 * w32fns.c (globals_of_w32fns): Init common controls.
26117
26118 2007-10-08 Richard Stallman <rms@gnu.org>
26119
26120 * image.c (our_memory_buffer): Rename from omfib_buffer.
26121
26122 2007-10-08 Richard Stallman <rms@gnu.org>
26123
26124 * buffer.c (Foverlays_at): Doc fix.
26125
26126 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
26127
26128 * fns.c (Fplist_put): Preserve uneven tail data.
26129
26130 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
26131
26132 * termhooks.h (enum event_kind): Remove trailing comma.
26133
26134 * frame.h (enum): Remove trailing comma.
26135
26136 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
26137
26138 * w32proc.c (delete_child): Don't terminate threads of zombies.
26139
26140 2007-10-08 Martin Rudalics <rudalics@gmx.at>
26141
26142 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
26143
26144 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
26145 last-repeatable-command.
26146 (init_kboard): Initialize Vlast_repeatable_command.
26147 (command_loop_1): Set it to real_this_command unless that was
26148 bound to an input event.
26149 (mark_kboards): Mark it.
26150
26151 2007-10-08 Richard Stallman <rms@gnu.org>
26152
26153 * eval.c (condition-case): Doc fix.
26154
26155 2007-10-08 Masatake YAMATO <jet@gyve.org>
26156
26157 * xfaces.c (tty_supports_face_attributes_p): Fix code
26158 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
26159 was copied and not edited.
26160
26161 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
26162
26163 Add new `input-decode-map' keymap and use it for terminal
26164 escape sequences.
26165 * keyboard.h (struct kboard): Add Vinput_decode_map.
26166 Remove Vlocal_key_translation_map.
26167 * keyboard.c (read_key_sequence): Add support for input-decode-map.
26168 (init_kboard): Init input-decode-map.
26169 Replace local-key-translation-map back with key-translation-map.
26170 (syms_of_keyboard): Declare input-decode-map.
26171 Remove local-key-translation-map. Update docstrings.
26172 (mark_kboards): Mark Vinput_decode_map.
26173 Don't mark Vlocal_key_translation_map.
26174 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
26175 Replace local-key-translation-map back with key-translation-map.
26176 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
26177 Bind in input-decode-map rather than function-key-map.
26178
26179 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
26180 This was made redundant by the previous introduction of XSETPVECTYPE.
26181
26182 2007-10-09 Richard Stallman <rms@gnu.org>
26183
26184 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
26185
26186 2007-09-29 Richard Stallman <rms@gnu.org>
26187
26188 * eval.c (internal_condition_case_2, internal_condition_case_1)
26189 (internal_condition_case): Reenable abort if x_catching_errors ()
26190 to see if that really happens and why.
26191
26192 2007-10-06 Andreas Schwab <schwab@suse.de>
26193
26194 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
26195
26196 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
26197
26198 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
26199
26200 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
26201
26202 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
26203
26204 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
26205
26206 * window.h (struct window):
26207 * window.c (struct save_window_data, struct saved_window):
26208 * termhooks.h (struct terminal):
26209 * process.h (struct Lisp_Process):
26210 * frame.h (struct frame):
26211 * buffer.h (struct buffer):
26212 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
26213 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
26214 The size field of (pseudo)vectors is now unsigned.
26215 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
26216
26217 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
26218 Turn `count' into an integer.
26219
26220 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
26221 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
26222 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
26223 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
26224 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
26225
26226 * alloc.c (allocate_pseudovector): New fun.
26227 (ALLOCATE_PSEUDOVECTOR): New macro.
26228 (allocate_window, allocate_terminal, allocate_frame)
26229 (allocate_process): Use it.
26230 (mark_vectorlike): New function.
26231 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
26232 (mark_terminals): Use it.
26233 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
26234 (Fmake_byte_code): Use XSETPVECTYPE.
26235
26236 * frame.c (Fframe_parameters): Minor simplification.
26237
26238 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
26239
26240 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
26241
26242 * buffer.c (Fget_buffer_create, init_buffer_once):
26243 * lread.c (defsubr):
26244 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
26245
26246 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
26247 defined differently in the m/*.h files.
26248 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
26249 (XSETPVECTYPE): New macro.
26250 (XSETPSEUDOVECTOR): Use it.
26251
26252 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
26253 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
26254
26255 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
26256 * lread.c (defvar_per_buffer):
26257 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
26258
26259 * window.c (candidate_window_p): Only consider as visible frames that
26260 are on the same terminal.
26261
26262 * m/ibms390x.h (MARKBIT): Remove unused macro.
26263
26264 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
26265
26266 * lread.c (Fload): Fix typo in docstring.
26267
26268 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
26269
26270 * floatfns.c (Fexpt): Manually check for overflows, so that a power
26271 of a non-zero value can't yield zero.
26272
26273 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
26274
26275 * term.c (term_clear_mouse_face, term_mouse_highlight)
26276 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
26277
26278 * print.c (safe_debug_print): Use XHASH.
26279
26280 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
26281 Lisp elements such as tags.
26282 (XHASH): New macro.
26283 (EQ): Use it.
26284 (SREF, SSET, STRING_COPYIN): Use SDATA.
26285 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
26286
26287 * alloc.c (mark_terminal): Remove left-over declaration.
26288 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
26289 (allocate_vectorlike): Remove type argument. Adjust callers.
26290 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
26291 Only handle the one remaining MEM_TYPE_VECTORLIKE.
26292
26293 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
26294 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
26295 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
26296 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
26297 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
26298 Use them.
26299
26300 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
26301 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
26302 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
26303
26304 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
26305
26306 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
26307 loaded by default.
26308
26309 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
26310
26311 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
26312 on this tty.
26313 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
26314
26315 * term.c (mouse_face_window): Rename from Qmouse_face_window.
26316 Update all users.
26317 (handle_one_term_event): Use Gpm_DrawPointer.
26318 (Fgpm_mouse_start): Rename from Fterm_open_connection.
26319 Signal errors instead of returning nil. Always return nil.
26320 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
26321 Make it a noop if gpm-mouse was not activated.
26322 (syms_of_term): Update names.
26323
26324 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
26325
26326 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
26327 (init_sys_modes): Check that gpm_tty is the current tty.
26328
26329 * alloc.c (allocate_terminal): Set the vector size to only count the
26330 lisp fields. Initialize those to nil.
26331 (mark_object): Don't treat terminals specially.
26332 (mark_terminal): Remove.
26333 (mark_terminals): Use mark_object instead.
26334
26335 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
26336 the GC to the beginning.
26337
26338 * indent.h:
26339 * indent.c: Use EMACS_INT for ints coming from Elisp data.
26340
26341 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
26342
26343 2007-09-25 Jason Rumney <jasonr@gnu.org>
26344
26345 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
26346
26347 * w32console.c (create_w32cons_output): Remove.
26348
26349 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
26350
26351 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
26352 (reset_sys_modes): Use reset_terminal_modes_hook.
26353
26354 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
26355
26356 * eval.c (do_autoload): Don't output any message.
26357
26358 2007-09-24 Juri Linkov <juri@jurta.org>
26359
26360 * emacs.c (standard_args): Change priority of "--no-splash"
26361 from 40 to 3. Add "--no-desktop" with the same priority.
26362
26363 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
26364
26365 * alloc.c (gc_sweep): Check cons cell mark bits word by word
26366 and optimize the case where they are all 1.
26367
26368 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
26369
26370 * lisp.h (abs): Define if not defined.
26371 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
26372 Don't define `abs', since it's defined in lisp.h.
26373
26374 2007-09-22 Eli Zaretskii <eliz@gnu.org>
26375
26376 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
26377 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
26378 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
26379 (init_tty): Use DEV_TTY instead of "/dev/tty".
26380 [WINDOWSNT]: No need to protect from NAME arg being null.
26381
26382 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
26383
26384 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
26385 up the tty state.
26386
26387 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
26388
26389 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
26390 (gpm_tty): Change its type.
26391 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
26392 (gpm_tty): Change its type and initialize it.
26393 (Fterm_open_connection): Check the frame is indeed a tty.
26394 Use the new gpm_tty.
26395 (Fterm_close_connection): Use the new gpm_tty.
26396 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
26397 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
26398
26399 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
26400
26401 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
26402 underline_color, to draw strike-through.
26403
26404 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
26405
26406 * lisp.h (allocate_terminal): Declare.
26407
26408 * window.c (candidate_window_p): Consider frames that are being placed
26409 by the user as somewhere between visible and iconified.
26410 (window_loop): Prefer windows on the current frame.
26411 (Fselect_window): Move the use of select-frame to the beginning so we
26412 can just delegate all the work (it'll call us back anyway).
26413
26414 * frame.c (Qdisplay_environment_variable):
26415 * frame.h (Qdisplay_environment_variable): Delete.
26416
26417 * .gdbinit (xbacktrace): Print the arg's address rather than the value
26418 of the first arg, since that value may be a union.
26419
26420 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
26421 parameter rather than Qdisplay_environment_variable. If all else
26422 fails, look for DISPLAY in initial-environment.
26423
26424 2007-09-21 Glenn Morris <rgm@gnu.org>
26425
26426 * Makefile.in (emacstool): Remove target.
26427 (lisp, shortlisp): Remove termdev.elc.
26428
26429 2007-09-21 Markus Triska <markus.triska@gmx.at>
26430
26431 * xterm.c (x_delete_display): Compile session management conditionally.
26432
26433 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
26434
26435 * callproc.c (getenv_internal_1): New function.
26436 (getenv_internal): Use it.
26437 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
26438
26439 * terminal.c (get_terminal): Don't accept ints to represent terminals.
26440 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
26441 (Fset_terminal_parameter): Work with dead terminals as well.
26442 (Fmodify_terminal_parameters): Remove.
26443
26444 * terminal.c (get_terminal): Handle terminals.
26445 Make sure the terminal returned is live.
26446 (create_terminal): Use allocate_terminal.
26447 (mark_terminals): Move to alloc.c.
26448 (delete_terminal): Use terminal->name as liveness status.
26449 NULL out fields after freeing their contents.
26450 Don't deallocate the object.
26451 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
26452 rather than an int.
26453 (Fterminal_live_p): Accept non-integer arguments.
26454 (Fterminal_list): Return terminal objects rather than an ints.
26455
26456 * alloc.c (enum mem_type): New member for `terminal' objects.
26457 (allocate_terminal): New function.
26458 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
26459 Handle terminals.
26460 (mark_terminal): New fun.
26461 (mark_terminals): Move from terminal.c.
26462
26463 * term.c (get_tty_terminal): Don't treat output_initial specially.
26464 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
26465 (delete_tty): Use terminal->name as liveness status.
26466
26467 * termhooks.h (struct terminal): Make it into a pseudovector.
26468 Remove `deleted' replaced by checking `name's nullness.
26469
26470 * print.c (print_object): Handle terminals.
26471
26472 * lisp.h (enum pvec_type): New `terminal' pseudovector.
26473 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
26474
26475 * frame.c (make_terminal_frame):
26476 * keyboard.c (tty_read_avail_input):
26477 * w32term.c (x_delete_terminal):
26478 * xfns.c (Fx_create_frame, x_create_tip_frame):
26479 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
26480
26481 2007-09-20 Glenn Morris <rgm@gnu.org>
26482
26483 * process.c (Fmake_network_process): Doc fix.
26484
26485 2007-09-19 Jason Rumney <jasonr@gnu.org>
26486
26487 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
26488
26489 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
26490
26491 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
26492 Fix a C warning regarding variable constness.
26493
26494 * xterm.c (handle_one_xevent): Fix a C warning.
26495
26496 2007-09-18 Jason Rumney <jasonr@gnu.org>
26497
26498 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
26499
26500 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
26501
26502 * gtkutil.c (gdpy_def): New variable.
26503 (xg_initialize): Initialize gdpy_def.
26504 (xg_display_close): If no other display exists, set gdpy_def to a
26505 new connection.
26506
26507 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
26508
26509 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
26510 when we have no file name for the icon.
26511 (xg_tool_bar_expose_callback): Remove.
26512 (xg_create_tool_bar): Don't connect expose signal to
26513 xg_tool_bar_expose_callback.
26514 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
26515
26516 2007-09-16 Andreas Schwab <schwab@suse.de>
26517
26518 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
26519 values instead of zapping them.
26520
26521 2007-09-14 Glenn Morris <rgm@gnu.org>
26522
26523 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
26524 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
26525 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
26526 scope and rename to omfib_buffer for clarity.
26527 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
26528
26529 2007-09-14 Kenichi Handa <handa@m17n.org>
26530
26531 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
26532
26533 2007-09-13 Jason Rumney <jasonr@gnu.org>
26534
26535 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
26536
26537 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
26538
26539 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
26540 (mac_term_init): Call here instead, passing rif.
26541
26542 2007-09-13 Glenn Morris <rgm@gnu.org>
26543
26544 * s/hpux.h: No longer define `static' as nothing.
26545
26546 2007-09-13 Johan Bockgård <bojohan@gnu.org>
26547
26548 * callint.c (Fcall_interactively): Remove unused var `fun'.
26549
26550 2007-09-12 Romain Francoise <romain@orebokech.com>
26551
26552 * window.c (prefer_window_split_horizontally, display_buffer):
26553 Revert 2007-09-08 change.
26554
26555 2007-09-12 Glenn Morris <rgm@gnu.org>
26556
26557 * alloca.c: Remove file.
26558 * Makefile.in (alloca): Do not undef.
26559 (allocaobj, alloca.o): Remove.
26560 (otherobj): Remove allocaobj.
26561 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
26562 * regex.c (C_ALLOCA): Remove all references and code that was only
26563 used when this was defined.
26564 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
26565 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
26566 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
26567
26568 * Makefile.in (SOURCES, unlock, relock): Delete.
26569
26570 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
26571 (menu_grab_callback): All uses changed.
26572
26573 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
26574 (x_reply_selection_request): All uses changed.
26575
26576 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
26577
26578 * lread.c (load_warn_old_style_backquotes): Change message to look
26579 better when it appears in the middle of byte-compiler messages.
26580
26581 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
26582
26583 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
26584
26585 * xterm.c (x_create_terminal): Add comment.
26586
26587 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
26588
26589 2007-09-10 Richard Stallman <rms@gnu.org>
26590
26591 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
26592
26593 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
26594
26595 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
26596 (DEFUN): Document `intspec', use it instead of `prompt'.
26597
26598 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
26599
26600 * data.c (Finteractive_form): If the interactive specification starts
26601 with a `(', use it as a Lisp form.
26602
26603 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
26604 name and file modes.
26605
26606 * callint.c (Fcall_interactively): Comment fixes.
26607
26608 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
26609
26610 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
26611 and compiled functions.
26612
26613 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
26614
26615 * window.c (prefer_window_split_horizontally): New variable.
26616 (display_buffer): Consider splitting window horizontally depending
26617 on prefer_window_split_horizontally.
26618
26619 2007-09-08 Eli Zaretskii <eliz@gnu.org>
26620
26621 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
26622
26623 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
26624
26625 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
26626
26627 * frame.c (x_set_frame_parameters): Check number is positive before
26628 using XFASTINT.
26629
26630 * window.c (freeze_window_start): Don't presume selected_window holds
26631 a window object.
26632 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
26633
26634 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
26635
26636 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
26637
26638 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
26639
26640 * window.c (Vsplit_window_preferred_function): New var.
26641 (Fdisplay_buffer): Use it.
26642 (syms_of_window): Export, and initialize it.
26643
26644 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
26645
26646 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
26647
26648 2007-09-06 Glenn Morris <rgm@gnu.org>
26649
26650 * gtkutil.c (menu_grab_callback) <cnt>:
26651 * xselect.c (x_reply_selection_request) <cnt>: Move static
26652 variable to file scope.
26653
26654 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
26655
26656 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
26657 consistent values of selected_frame and selected_window.
26658
26659 2007-09-04 Jason Rumney <jasonr@gnu.org>
26660
26661 * w32console.c (initialize_w32_display): Zero unused hooks.
26662
26663 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
26664
26665 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
26666 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
26667
26668 2007-09-04 Jason Rumney <jasonr@gnu.org>
26669
26670 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
26671 in w32console.c. Set up input. Remove XXX comments that have been
26672 confirmed as correct.
26673
26674 * s/ms-w32.h (MULTI_KBOARD): Define.
26675
26676 * w32console.c (one_and_only_w32cons): Remove.
26677 (initialize_w32_display): Take terminal argument.
26678
26679 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
26680 initialize_w32_display.
26681 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
26682
26683 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
26684
26685 * keyboard.c (discard_mouse_events): Discard it.
26686 (make_lispy_event): Translate it to a lisp event.
26687 (lispy_wheel_names): Add wheel-left and right events.
26688 (syms_of_keyboard): Enlarge wheel_syms.
26689
26690 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
26691 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
26692
26693 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
26694
26695 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
26696 from WM_MOUSEHWHEEL.
26697 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
26698
26699 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
26700 terminal.
26701
26702 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
26703 keyboard for the terminal.
26704
26705 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
26706
26707 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
26708 (Vresume_tty_hook): Rename from Vresume_tty_functions.
26709 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
26710 and resume-tty-function to resume-tty-hook.
26711 (Fsuspend_tty, Fresume_tty): Use new names.
26712
26713 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
26714
26715 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
26716 if it starts with "n:".
26717
26718 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
26719
26720 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
26721
26722 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
26723
26724 * frame.h:
26725 * frame.c (Qterm_environment_variable): Remove.
26726 (syms_of_frame): Don't init and staticpro it.
26727
26728 * callproc.c (getenv_internal): Remove special case for $TERM.
26729
26730 * callproc.c (Vinitial_environment): New variable.
26731 (set_initial_environment): Initialize it.
26732 (syms_of_callproc): Declare it.
26733 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
26734 TERM under which a process runs is never related to the TERM in which
26735 Emacs is running.
26736
26737 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
26738
26739 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
26740 * s/darwin.h: ... do it here.
26741
26742 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
26743
26744 * lisp.h (set_initial_environment): Rename from set_global_environment.
26745
26746 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
26747 removed by mistake on the multi-tty branch.
26748
26749 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
26750 (Fmodify_frame_parameters): Return a value.
26751
26752 * image.c (png_load): Comment-out var only used in commented-out code.
26753
26754 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
26755 before passing it to mark_object.
26756
26757 * xfaces.c (internal_resolve_face_name): Return a value.
26758 (internal_resolve_face_name, resolve_face_name_error): Comment out.
26759
26760 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
26761 (x_icon): Comment-out var only used in commented-out code.
26762
26763 2007-08-29 Romain Francoise <romain@orebokech.com>
26764
26765 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
26766 QUIT hasn't been provided.
26767
26768 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
26769
26770 * callproc.c (child_setup, getenv_internal): Use the
26771 display-environment-variable and term-environment-variable frame params.
26772 (set_initial_environment): Initialise Vprocess_environment.
26773
26774 * config.in: Disable multi-keyboard support on a mac.
26775
26776 * frame.c (Qterm_environment_variable)
26777 (Qdisplay_environment_variable): New variables.
26778 (syms_of_frame): Intern and staticpro them.
26779 (Fmake_terminal_frame): Disable output method test.
26780
26781 * frame.h: Declare them here.
26782
26783 * macfns.c (x_set_mouse_color): Get rif from the frame.
26784 (x_set_tool_bar_lines): Don't use updating_frame.
26785 (mac_window): Add 2 new parameters for consistency with other systems.
26786 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
26787 frame parameters following what is done in X11 and w32. Don't use
26788 FRAME_MAC_DISPLAY_INFO.
26789 (Fx_open_connection, start_hourglass): Remove window-system check.
26790 (x_create_tip_frame): Get the keyboard from the terminal.
26791
26792 * macmenu.c: Reorder includes.
26793 (Fx_popup_menu): Use terminal specific mouse_position_hook.
26794
26795 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
26796 terminal parameter.
26797 (x_clear_frame): Add a frame parameter.
26798 (note_mouse_movement): Get rif from the frame.
26799 (mac_term_init): Initialize the terminal.
26800 (mac_initialize): Make static and move terminal initialization ...
26801 (mac_create_terminal): ... to this new function.
26802
26803 * macterm.h (struct mac_display_info): Add terminal.
26804 (mac_initialize): Delete declaration.
26805
26806 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
26807
26808 * sysdep.c: Comment out text after #endif.
26809
26810 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
26811 is defined. Better initialize ttys in windows. Use terminal
26812 specific mouse_position_hook.
26813
26814 * termhooks.h (union display_info): Add mac_display_info.
26815
26816 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
26817 Set the default minibuffer frame, window_system and the rest of the
26818 frame parameters following what is done in X11.
26819
26820 * w32term.c (w32_initialize): Make static.
26821
26822 * xselect.c (x_handle_selection_clear): Only access
26823 terminal->kboard when MULTI_KBOARD is defined.
26824
26825 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
26826 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
26827
26828 2007-08-29 Jason Rumney <jasonr@gnu.org>
26829
26830 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
26831 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
26832
26833 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
26834 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
26835
26836 * keyboard.c (restore_kboard_configuration): Only define when
26837 MULTI_KBOARD defined.
26838
26839 * makefile.w32-in: Update dependancies from Makefile.in.
26840 (OBJ1): Add terminal.$(O)
26841
26842 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
26843 Don't define function body.
26844 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
26845
26846 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
26847
26848 * w32.c (request_sigio, unrequest_sigio): Remove.
26849
26850 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
26851 (w32con_clear_frame, w32con_clear_end_of_line)
26852 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
26853 (w32con_delete_glyphs, w32con_set_terminal_window)
26854 (scroll_line, w32_sys_ring_bell): Add frame arg.
26855 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
26856 Add terminal arg.
26857 (PICK_FRAME): Remove.
26858 (w32con_write_glyphs): Use frame specific terminal coding.
26859 (one_and_only_w32cons): New global variable.
26860 (initialize_w32_display): Use it for storing hooks.
26861 (create_w32cons_output): New function.
26862
26863 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
26864 arg a frame.
26865
26866 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
26867 Set window_system.
26868 (x_set_tool_bar_lines): Don't use updating_frame.
26869 (Fx_create_frame): Set terminal and ref count.
26870 (Fx_open_connection): Remove window-system check.
26871
26872 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
26873
26874 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
26875 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
26876 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
26877 Add frame arg.
26878 (x_delete_terminal, w32_create_terminal): New functions.
26879 (w32_term_init): Create a terminal.
26880 (w32_initialize): Move terminal specific initialization to
26881 w32_create_terminal.
26882
26883 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
26884 (w32_clear_rect, w32_clear_area): Use background from frame.
26885 (w32_display_info): Add terminal.
26886 (w32_sys_ring_bell, x_delete_display): Declare here.
26887
26888 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
26889
26890 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
26891
26892 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
26893
26894 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
26895 Fix get_named_tty calls for the controlling tty.
26896
26897 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
26898
26899 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
26900
26901 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
26902
26903 * term.c (tty_insert_glyphs): Add missing first parameter.
26904
26905 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
26906
26907 * buffer.c (Fbuffer_list, Fbury_buffer):
26908 Take frame->buried_buffer_list into account.
26909
26910 * cm.c (current_tty): New variable, for cmputc().
26911 (cmputc): Use it.
26912 (cmcheckmagic): Add tty parameter, look up terminal streams there.
26913 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
26914 (cmgoto): Add tty parameter. Pass it on to calccost().
26915 Use emacs_tputs() instead of tputs().
26916
26917 * cm.h (emacs_tputs): New macro to set current_tty, and then call
26918 tputs().
26919 (current_tty): New variable, for cmputc().
26920 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
26921
26922 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
26923 (internal_condition_case, internal_condition_case_1)
26924 (internal_condition_case_2): Don't abort when x_catching_errors.
26925
26926 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
26927 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
26928 prevent crashes caused by bogus longjmps in read_char.
26929
26930 * keymap.h (Fset_keymap_parent): Add EXFUN.
26931
26932 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
26933 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
26934 Remove redundant definition.
26935
26936 * macfns.c (x_set_mouse_color, x_make_gc):
26937 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26938
26939 * w32term.c (x_free_frame_resources):
26940 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26941 (w32_initialize): Use the accessor macros for terminal characteristics.
26942
26943 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
26944 Use the accessor macros for terminal characteristics.
26945 * msdos.c (internal_terminal_init): Use the accessor macros for
26946 terminal characteristics.
26947 (ScreenVisualBell, internal_terminal_init):
26948 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26949
26950 * termopts.h (no_redraw_on_reenter): Declare.
26951
26952 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
26953 (mark_terminals, mark_ttys): Declare.
26954 (Fgarbage_collect): Call them.
26955 (mark_object): Mark buried_buffer_list.
26956
26957 * prefix-args.c: Include stdlib.h for exit.
26958
26959 * syssignal.h: Add comment.
26960
26961 * indent.c: Include stdio.h.
26962
26963 * window.h (Vinitial_window_system): Declare.
26964 (Vwindow_system): Delete declaration.
26965
26966 * fontset.c (Finternal_char_font): Use FRAME_RIF.
26967
26968 * image.c (lookup_image): Don't initialize `c' until the xasserts
26969 have been run.
26970
26971 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
26972 FRAME_FOREGROUND_PIXEL.
26973
26974 * print.c (print_preprocess): Don't lose print_depth levels while
26975 iterating.
26976
26977 * widget.c (update_from_various_frame_slots):
26978 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26979
26980 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
26981 frames.
26982 (window_internal_height): Remove bogus make_number call.
26983 (init_window_once): Call make_terminal_frame with two zero parameters.
26984
26985 * fileio.c (Fread_file_name): Update comment.
26986
26987 * callint.c (Fcall_interactively):
26988 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
26989 Make sure it is correctly unwound.
26990
26991 * xsmfns.c (x_session_close): New function.
26992
26993 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
26994 Delete declarations.
26995
26996 * xterm.h: Remove declaration for x_fully_uncatch_errors.
26997 (x_output): Remove background_pixel and foreground_pixel fields.
26998 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
26999 (x_delete_device, x_session_close): Declare.
27000
27001 * lread.c: Include setjmp.h. Update declaration of `read_char'.
27002 (read_filtered_event): Call `read_char' with a local
27003 `wrong_kboard_jmpbuf'.
27004
27005 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
27006 Don't call single_kboard_state. Use FRAME_RIF.
27007
27008 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
27009 systems.
27010
27011 * lisp.h (set_process_environment): Rename to `set_global_environment'.
27012 (Fframe_with_environment, Fset_input_meta_mode)
27013 (Fset_quit_char): EXFUN.
27014 (x_create_device, tty_output, terminal, tty_display_info): Declare.
27015 (init_sys_modes, reset_sys_modes): Update prototypes.
27016 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
27017
27018 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
27019 Vlocal_key_translation_map, and Vkeyboard_translate_table.
27020 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
27021 Delete declarations.
27022 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
27023 (temporarily_switch_to_single_kboard, tty_read_avail_input):
27024 New declarations.
27025
27026 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
27027 already does that during init_display(). Call syms_of_keymap
27028 before syms_of_keyboard. Call `syms_of_terminal'.
27029 Call set_initial_environment, not set_process_environment.
27030 (shut_down_emacs): Call reset_all_sys_modes() instead of
27031 reset_sys_modes().
27032
27033 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
27034 (internal_resolve_face_name, resolve_face_name_error): New functions.
27035 (resolve_face_name): Protect against loops and errors thrown by Fget.
27036 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
27037 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
27038
27039 * scroll.c: Replace CURTTY() with local variables throughout the
27040 file (where applicable).
27041 (calculate_scrolling, calculate_direct_scrolling)
27042 (scrolling_1, scroll_cost): Use the accessor macros for terminal
27043 characteristics.
27044
27045 * keymap.c (Vfunction_key_map): Remove.
27046 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
27047 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
27048 (Vkey_translation_map): Remove.
27049 (syms_of_keymap): Remove DEFVAR for key-translation-map.
27050 (Fdescribe_buffer_bindings)
27051 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
27052 Update for terminal-local key-translation-map.
27053
27054 * Makefile.in (callproc.o): Update dependencies.
27055 (lisp, shortlisp): Add termdev.elc.
27056 (obj): Add terminal.o.
27057 (terminal.o): Add dependencies.
27058 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
27059 (data.o, fns.o): Add termhooks.h dependency.
27060 (SOME_MACHINE_LISP): Add dnd.elc.
27061 (minibuf.o): Fix typo.
27062 Update dependencies.
27063
27064 * data.c (do_symval_forwarding, store_symval_forwarding)
27065 (find_symbol_value): Use the selected frame's keyboard, not
27066 current_kboard.
27067
27068 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
27069 Vwindow_system.
27070
27071 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
27072 Fmenu_bar_open.
27073 (syms_of_xmenu): Update defsubr.
27074 (mouse_position_for_popup, Fx_popup_menu)
27075 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
27076 (set_frame_menubar, free_frame_menubar)
27077 (create_and_show_popup_menu, xmenu_show)
27078 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
27079 an X frame.
27080
27081 * xselect.c (x_own_selection): Abort if not an X frame.
27082 (some_frame_on_display): Check if it is an X frame.
27083 (x_handle_selection_clear): Deal with MULTI_KBOARD.
27084
27085 * coding.c: Include frame.h and termhooks.h.
27086 (terminal_coding, keyboard_coding): Delete.
27087 (Fset_terminal_coding_system_internal)
27088 (Fset_keyboard_coding_system_internal)
27089 (Fkeyboard_coding_system)
27090 (Fterminal_coding_system): Add a terminal parameter.
27091 Get terminal_coding from the terminal.
27092 (init_coding_once): Don't call setup_coding_system here.
27093
27094 * dispextern.h (set_scroll_region, turn_off_insert)
27095 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
27096 (tty_clear_end_of_line, tty_setup_colors)
27097 (delete_tty, updating_frame)
27098 (produce_special_glyphs, produce_glyphs, write_glyphs)
27099 (insert_glyphs): Remove.
27100 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
27101 (tty_turn_off_highlight, get_tty_size): Add declaration.
27102 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
27103
27104 * frame.h (enum output_method): Add output_initial.
27105 (struct x_output): Delete.
27106 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
27107 Access foreground_pixel and background_pixel directly from the frame.
27108 (tty_display): Delete.
27109 (struct frame): Add buried_buffer_list, foreground_pixel,
27110 background_pixel and terminal. Delete kboard.
27111 (union output_data): Add tty.
27112 (FRAME_KBOARD): Get the kboard from the terminal.
27113 (FRAME_INITIAL_P): New macro.
27114 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
27115 (Qterm_environment_variable, Qdisplay_environment_variable)
27116 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
27117 New declarations.
27118
27119 * termchar.h (tty_output, tty_display_info): New structures.
27120 (tty_list): Declare.
27121 (FRAME_TTY, CURTTY): New macros.
27122 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
27123 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
27124 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
27125 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
27126
27127 * callproc.c: Include frame.h and termhooks.h, for terminal
27128 parameters.
27129 (add_env): New function.
27130 (child_setup): Use it.
27131 (child_setup, getenv_internal): Handle the new Vprocess_environment.
27132 (getenv_internal): Fix get_terminal_param call.
27133 (Fgetenv_internal, egetenv): Update doc.
27134 (syms_of_callproc): Initialize Vprocess_environment to nil.
27135 Register and initialize them. Remove obsolete defvars. Update doc
27136 strings.
27137 (child_setup): Handle Vlocal_environment_variables.
27138 (getenv_internal): Add terminal parameter.
27139 Handle Vlocal_environment_variables.
27140 (Fgetenv_internal): Add terminal parameter.
27141 (child_setup, getenv_internal, Fgetenv_internal): Store the local
27142 environment in a frame (not terminal) parameter. Update doc strings.
27143 (set_initial_environment): Rename from set_global_environment.
27144 Store Emacs environment in initial frame parameter.
27145
27146 * xdisp.c (redisplay_internal): Update references to
27147 `previous_terminal_frame'.
27148 (display_mode_line, Fformat_mode_line): Replace calls to
27149 `push_frame_kboard' with `push_kboard'.
27150 (get_glyph_string_clip_rects): Add extra parentheses and
27151 braces to prevent compiler warnings.
27152 (calc_pixel_width_or_height): Add xassert to check that the
27153 frame is alive. Don't call `lookup_image' on a termcap frame.
27154 (message2_nolog, message3_nolog, redisplay_internal)
27155 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
27156 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
27157 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
27158 (Fx_display_pixel_width, Fx_display_pixel_height)
27159 (Fx_display_planes, Fx_display_color_cells)
27160 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
27161 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
27162 (Fx_display_backing_store, Fx_display_visual_class)
27163 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
27164 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
27165
27166 * xfns.c (x_set_foreground_color x_set_background_color)
27167 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
27168 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
27169 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
27170 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
27171 terminal that is being deleted.
27172 (Fx_create_frame): Use `store_frame_param' to set `window-system'
27173 frame parameter, and make sure it overrides any user-supplied setting.
27174 (Fx_close_connection, Fx_synchronize): Unify argument names with
27175 the rest of the DEFUNs.
27176
27177 * dispnew.c (Fsend_string_to_terminal): Update call to
27178 `get_tty_terminal'.
27179 (Fredraw_frame, Fsend_string_to_terminal)
27180 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
27181 FRAME_TERMCAP_P and FRAME_TTY.
27182 (window_change_signal): Don't believe width/height values that are
27183 impossibly small.
27184 (Vinitial_window_system): Rename from Vwindow_system.
27185 (termscript, Wcm, rif): Delete.
27186
27187 * termhooks.h (struct terminal): New struct containing the
27188 previously global text display hooks and new members NAME,
27189 DELETED and PARAM_ALIST.
27190 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
27191 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
27192 (FRAME_RIF): New macros.
27193 (get_terminal_param, get_device): New declarations.
27194 (termscript): Delete declaration.
27195
27196 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
27197 (XTflash, x_free_frame_resources, x_scroll_bar_create)
27198 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
27199 FRAME_FOREGROUND_PIXEL.
27200 (x_fully_uncatch_errors): Disable definition.
27201 (x_scroll_bar_expose): Fix reference to foreground pixel.
27202 (XTread_socket): Disable loop on all X displays.
27203 (x_delete_terminal): Don't set terminal->deleted and let
27204 delete_terminal delete the frames on the terminal.
27205 (x_delete_display): Doc update to reflect changes in
27206 delete_terminal.
27207 (x_display_info) <terminal>: Move member earlier in the struct.
27208 (deleting_tty): Remove old variable.
27209 (Fsuspend_tty): Call clear_tty_hooks.
27210 (Fresume_tty, init_tty): Call set_tty_hooks.
27211 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
27212 errors on X frames.
27213 (x_catch_errors_unwind): Abort if x_error_message is NULL.
27214 (handle_one_xevent): Initialize `f' to NULL.
27215 (x_delete_terminal, x_create_terminal): New functions.
27216 (XTset_terminal_modes, XTreset_terminal_modes)
27217 (XTread_socket, x_connection_closed, x_term_init)
27218 (x_term_init, x_delete_display): Add terminal parameter.
27219 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
27220 X connections.
27221
27222 * frame.c: Include termchar.h.
27223 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
27224 (Qwindow_system, Qenvironment, Qterm_environment_variable)
27225 (Qdisplay_environment_variable): New vars.
27226 (Fframep): Deal with output_initial.
27227 (Fframe-live-p): Doc fix.
27228 (Fwindow-system): New function.
27229 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
27230 (make_terminal_frame): Don't create frames on a terminal that is
27231 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
27232 (store_frame_param): Check for found_for_frame before calling XFRAME.
27233 (Fmake_terminal_frame): Handle NULL tty names correctly.
27234 (syms_of_frame): Enhance doc string of `default-frame-alist'.
27235 (Fdelete_frame): Remove unused variable `count'. Don't allow other
27236 frames to refer to a deleted frame in their 'environment parameter.
27237 (Fframe_with_environment): New function.
27238 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
27239 (get_future_frame_param): New function.
27240 (Fmake_terminal_frame): Use it.
27241 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
27242
27243 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
27244 * sysdep.c (reset_sys_modes): Update for renames.
27245
27246 * keyboard.c (tty_read_avail_input): New function.
27247 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
27248 (syms_of_keyboard): Defsubr them.
27249 (Fset_input_meta_mode, Fset_quit_char): New functions.
27250 (Fset_input_mode): Split to above functions.
27251 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
27252 parameter. Use it in call to `read_char'.
27253 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
27254 Set wrong_kboard_jmpbuf correctly in recursive calls.
27255 Use current_kboard to access Vkeyboard_translate_table.
27256 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
27257 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
27258 Update longjmp invocations. Remember the original current_kboard,
27259 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
27260 changes it. Comment out unnecessary calls to
27261 `record_single_kboard_state' and `any_kboard_state'.
27262 Update recursive calls.
27263 (wrong_kboard_jmpbuf): Remove global variable.
27264 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
27265 Handle deleted interrupted_kboards correctly; that is a legal
27266 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
27267 and read_char calls. Abort if interrupted_kboard died in read_char.
27268 (any_kboard_state, single_kboard_state)
27269 (push_frame_kboard): Remove function.
27270 (pop_kboard): Switch out of single_kboard mode if the kboard has
27271 been deleted. Remove unused variable. Help debugging by not
27272 changing current_kboard unnecessarily. Set current_kboard to the
27273 kboard of the selected frame when the stored kboard object has
27274 been deleted before pop_kboard.
27275 (temporarily_switch_to_single_kboard): Change first parameter to a
27276 frame pointer. Throw an error when caller wants to change kboards
27277 while in single_kboard mode. Don't push_kboard if we weren't in
27278 single kboard state. Don't pop_kboard if we popped into any
27279 kboard state.
27280 (restore_kboard_configuration): Abort if pop_kboard changed the
27281 kboard in single_kboard mode. Call pop_kboard only after setting
27282 up single_kboard mode.
27283 (Frecursive_edit): Switch to single_kboard mode only in nested
27284 command loops.
27285 (cmd_error, command_loop, command_loop_1, timer_check):
27286 Comment out unnecessary call to `any_kboard_state' and
27287 `record_single_kboard_state'.
27288 (delete_kboard): Exit single_kboard mode if we have just deleted
27289 that kboard. Use FRAME_KBOARD.
27290 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
27291 `fatal_error_signal'.
27292 (record_single_kboard_state): Don't push_kboard if we weren't in
27293 single kboard state. Don't pop_kboard if we popped into any
27294 kboard state.
27295 (push_frame_kboard): Rename to push_kboard.
27296 (kbd_buffer_get_event): Use FRAME_TERMINAL.
27297 (read_avail_input): Read input from all terminals.
27298 (mark_kboards): Also mark Vkeyboard_translate_table.
27299 (kbd_buffer_store_event_hold): Simplify condition.
27300 (read_key_sequence): Reinitialize fkey and keytran at each replay.
27301 (Vkeyboard_translate_table): Move to struct kboard.
27302 (init_kboard): Initialize Vkeyboard_translate_table.
27303 (syms_of_keyboard): Use DEFVAR_KBOARD to define
27304 Vkeyboard_translate_table. Update doc strings. Update docs of
27305 local-function-key-map and function-key-map.
27306
27307 * terminal.c: New file.
27308
27309 * term.c: Include errno.h.
27310 (Vring_bell_function, device_list, initial_device)
27311 (next_device_id, ring_bell, update_begin, update_end)
27312 (set_terminal_window, cursor_to, raw_cursor_to)
27313 (clear_to_end, clear_frame, clear_end_of_line)
27314 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
27315 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
27316 (syms_of_term): Move their initialization to terminal.c.
27317 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
27318 (Ftty_display_color_cells)
27319 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
27320 (clear_tty_hooks, set_tty_hooks)
27321 (init_tty, maybe_fatal): New functions.
27322 (Ftty_type): Return nil if terminal is not on a tty instead of
27323 throwing an error. Doc update.
27324 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
27325 Doc update. Initialize new subrs and variables.
27326 (delete_tty): Use terminal->deleted.
27327 (tty_set_terminal_modes): Rename from set_terminal_modes.
27328 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
27329 (set_scroll_region): Rename to `tty_set_scroll_region'.
27330 (turn_on_insert): Rename to `tty_turn_on_insert'.
27331 (turn_off_insert): Rename to `tty_turn_off_insert'.
27332 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
27333 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
27334 (toggle_highligh): Rename to `tty_toggle_highlight'.
27335 (background_highlight): Rename to `tty_background_highlight'.
27336 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
27337 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
27338 (tty_set_scroll_region, tty_background_highlight)
27339 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
27340 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
27341 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
27342 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
27343 Add static modifier.
27344 (tty_reset_terminal_modes, tty_set_terminal_window)
27345 (tty_set_scroll_region, tty_background_highlight)
27346 (tty_highlight_if_desired, tty_cursor_to)
27347 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
27348 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
27349 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
27350 renames.
27351
27352 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
27353
27354 * keyboard.c: Qrtl is new.
27355 (parse_tool_bar_item): Handle :rtl keyword.
27356 (syms_of_keyboard): Intern :rtl keyword.
27357
27358 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
27359
27360 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
27361 so no Lisp code is executed.
27362 (file_for_image, find_rtl_image): New functions.
27363 (xg_get_image_for_pixmap): Use file_for_image.
27364 (update_frame_tool_bar): If direction is RTL, use RTL image if
27365 defined. Use Gtk stock images if defined.
27366
27367 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27368
27369 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
27370 for nonexistent or zero-width glyph in composition glyph.
27371
27372 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
27373
27374 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
27375
27376 * xdisp.c (Finvisible_p): New function.
27377 (syms_of_xdisp): defsubr it.
27378
27379 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
27380
27381 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
27382 Doc fixes.
27383
27384 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27385
27386 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
27387
27388 2007-08-24 Martin Rudalics <rudalics@gmx.at>
27389
27390 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
27391 whether decoding has modified buffer contents.
27392
27393 2007-08-24 Jason Rumney <jasonr@gnu.org>
27394
27395 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
27396 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
27397 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
27398 (init_svg_functions) [HAVE_NTGUI]: New function.
27399 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
27400 (svg_load_image): Use them.
27401 (svg_load_image) [HAVE_NTGUI]: Implement background.
27402
27403 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27404
27405 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
27406 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
27407 (LIBX): Remove @RSVG_LIBS@.
27408 (LIBES): Add $(RSVG_LIBS).
27409
27410 * image.c (svg_load_image): Blend with specified background if exists.
27411 Use IMAGE_BACKGROUND. Add Mac OS Support.
27412
27413 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
27414 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
27415 Remove macros.
27416 [MAC_OSX] (socket_callback): Do nothing.
27417 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
27418 ReceiveNextEvent.
27419 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
27420 socket_callback.
27421 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
27422
27423 2007-08-22 Glenn Morris <rgm@gnu.org>
27424
27425 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
27426
27427 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
27428
27429 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
27430
27431 * image.c: Add support for SVG images. Some additional comments
27432 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
27433 (svg_image_p): New function to test for SVG image.
27434 (svg_load): New function to load SVG image.
27435 (svg_load_image): New function, helper for svg_load.
27436 (Qsvg): New Lisp_object.
27437 (svg_keyword_index): New enum.
27438 (svg_format): New static `image_keyword' struct.
27439 (svg_type): New static `image_type' struct.
27440 (librsvg/rsvg.h): Include it.
27441
27442 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
27443
27444 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
27445
27446 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
27447
27448 * lread.c (Qold_style_backquotes): New var.
27449 (syms_of_lread): Init and staticpro it.
27450 (load_warn_old_style_backquotes): New fun.
27451 (Fload): Use them to warn about old style backquotes.
27452 (end_of_file_error, Fload): Remove unused vars.
27453
27454 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
27455
27456 * lread.c (Vold_style_backquotes): New var.
27457 (syms_of_lread): Init and export it to Elisp.
27458 (read1): Set it when we find an old-style (back)quote.
27459
27460 2007-08-22 Jason Rumney <jasonr@gnu.org>
27461
27462 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
27463
27464 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
27465
27466 * puresize.h (BASE_PURESIZE): Increase to 1140000.
27467
27468 2007-08-19 Richard Stallman <rms@gnu.org>
27469
27470 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
27471
27472 2007-08-19 Andreas Schwab <schwab@suse.de>
27473
27474 * alloc.c (pure): Round PURESIZE up.
27475
27476 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
27477
27478 * xterm.c (handle_one_xevent): Remove check that mouse click is in
27479 active frame.
27480
27481 2007-08-16 Richard Stallman <rms@gnu.org>
27482
27483 * eval.c (Fcommandp): Add parens to clarify.
27484
27485 * minibuf.c (Fall_completions): Use enum for type of table.
27486
27487 * emacs.c (USAGE2): Improve text.
27488
27489 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
27490
27491 * term.c (tty_default_color_capabilities): Declare static
27492 variables in file scope, to avoid HPUX compiler problem.
27493
27494 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
27495
27496 * gtkutil.c (update_frame_tool_bar): Use -1 as index
27497 to gtk_toolbar_insert.
27498
27499 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
27500
27501 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
27502
27503 * insdel.c (reset_var_on_error): New fun.
27504 (signal_before_change, signal_after_change):
27505 Use it to reset (after|before)-change-functions to nil in case of error.
27506 Bind inhibit-modification-hooks to t.
27507 Don't bind (after|before)-change-functions to nil while they run.
27508
27509 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27510
27511 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
27512 filling pixmap with stippled background.
27513
27514 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27515
27516 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
27517 Don't use invisible frame as parent window for repositioning.
27518
27519 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
27520
27521 * print.c (new_backquote_output): Rename from old_backquote_output.
27522 (print): Inverse its logic (according to its name) so as to match the
27523 behavior of new_backquote_flag in lread.c.
27524
27525 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27526
27527 * gmalloc.c (posix_memalign): New function.
27528
27529 * macterm.c (frame_highlight, frame_unhighlight): Don't call
27530 ActivateControl/DeactivateControl here.
27531 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
27532 frame-notice-user-settings is non-nil.
27533 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
27534 for kEventParamFMFontStyle.
27535 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
27536 mac_pass_command_to_system and mac_pass_control_to_system here.
27537 (XTread_socket): Call ActivateControl/DeactivateControl here.
27538 (XTread_socket) [TARGET_API_MAC_CARBON]:
27539 Check mac_pass_command_to_system and mac_pass_control_to_system here.
27540 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
27541 for window repositioning.
27542
27543 2007-08-08 Glenn Morris <rgm@gnu.org>
27544
27545 * Replace `iff' in doc-strings and comments.
27546
27547 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
27548
27549 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
27550
27551 2007-08-07 Martin Rudalics <rudalics@gmx.at>
27552
27553 * fileio.c (Finsert_file_contents): Run format-decode and
27554 after_insert_file_functions on entire buffer when REPLACE is
27555 non-nil and inhibit modification_hooks and point_motion_hooks.
27556 For consistency, run after_insert_file_functions iff something
27557 got inserted. Move signal_after_change and update_compositions
27558 after code running after_insert_file_functions. Make sure that
27559 undo_list doesn't record intermediate steps of the decoding process.
27560
27561 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27562
27563 * emacs.c (main)
27564 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
27565 Call malloc_enable_thread on interactive startup.
27566
27567 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
27568 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
27569 [USE_PTHREAD]: Conditionalize with it.
27570 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
27571 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
27572 New functions.
27573
27574 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
27575
27576 * xdisp.c (redisplay_window): When restoring original buffer
27577 position, make sure it is still valid.
27578
27579 * image.c (png_load): Ignore png-supplied background color.
27580
27581 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27582
27583 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
27584 Use kCFAbsoluteTimeIntervalSince1970.
27585
27586 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
27587 New variable.
27588 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
27589 event loop should be quit.
27590 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
27591 Quit dialog event loop if quit_dialog_event_loop is set.
27592
27593 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
27594 (Selection): New typedef. Use instead of ScrapRef.
27595 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
27596 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
27597 (mac_clear_selection): Rename from clear_scrap.
27598 (get_flavor_type_from_symbol): New argument SEL and subsume function of
27599 scrap_has_target_type. All uses changed.
27600 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
27601 (mac_selection_has_target_p): New functions.
27602 (mac_put_selection_value): Rename from put_scrap_string.
27603 (mac_get_selection_value): Rename from get_scrap_string.
27604 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
27605 (put_scrap_private_timestamp, scrap_has_target_type)
27606 (get_scrap_private_timestamp): Remove functions.
27607 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
27608 (x_own_selection, x_get_local_selection):
27609 Use mac_valid_selection_value_p.
27610 (x_own_selection): Don't use put_scrap_private_timestamp.
27611 Record OWNERSHIP-INFO into Vselection_alist instead.
27612 (x_get_local_selection): Don't check type if request is local.
27613 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
27614 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
27615
27616 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
27617
27618 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
27619 add comment explaining why.
27620
27621 2007-08-03 Richard Stallman <rms@gnu.org>
27622
27623 * fileio.c (Fvisited_file_modtime): Use make_time.
27624
27625 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
27626
27627 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
27628 build.
27629
27630 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
27631
27632 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
27633
27634 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
27635
27636 * puresize.h (BASE_PURESIZE): Increase to 1130000.
27637
27638 2007-07-30 Richard Stallman <rms@gnu.org>
27639
27640 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
27641
27642 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
27643
27644 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
27645
27646 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
27647
27648 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
27649 remote default-directory.
27650
27651 * buffer.c (mode-line-format): Update doc string.
27652
27653 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27654
27655 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
27656 scroll bar gap.
27657 (x_scroll_bar_create): Set bar->fringe_extended_p.
27658 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
27659 on frame edge. Check fringe background extension. Don't clear
27660 extended fringe background area.
27661
27662 * w32term.h (struct scroll_bar): New member fringe_extended_p.
27663 (w32_fill_area): Enclose multiple statements with do ... while (0).
27664
27665 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
27666 Extend fringe background to scroll bar gap.
27667 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
27668 Set bar->fringe_extended_p.
27669 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
27670 Put leftmost/rightmost scroll bars on frame edge. Check fringe
27671 background extension. Don't clear extended fringe background area.
27672
27673 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
27674 New member fringe_extended_p.
27675
27676 2007-07-25 Glenn Morris <rgm@gnu.org>
27677
27678 * Relicense all FSF files to GPLv3 or later.
27679
27680 * COPYING: Switch to GPLv3.
27681
27682 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
27683
27684 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
27685
27686 * data.c (Finteractive_form): Check for the presence of an
27687 `interactive-form' symbol property more thoroughly.
27688
27689 * data.c (Finteractive_form): Use an `interactive-form' property if
27690 present, analogous to the function-documentation property.
27691
27692 2007-07-24 Jason Rumney <jasonr@gnu.org>
27693
27694 * w32fns.c (x_real_positions): Get real position from OS instead of
27695 calculating it.
27696
27697 2007-07-23 Jason Rumney <jasonr@gnu.org>
27698
27699 * filelock.c (current_lock_owner): Allow for @ sign in username.
27700
27701 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
27702
27703 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
27704 remote default-directory.
27705
27706 * buffer.c (mode-line-format): Describe above case in doc string.
27707
27708 2007-07-20 Eli Zaretskii <eliz@gnu.org>
27709
27710 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
27711 Define if not defined.
27712
27713 2007-07-18 Jason Rumney <jasonr@gnu.org>
27714
27715 * w32proc.c (w32_executable_type): Handle 64 bit executables.
27716
27717 2007-07-18 Richard Stallman <rms@gnu.org>
27718
27719 * data.c (Fsetq_default): Doc fix.
27720
27721 * eval.c (Fsetq): Doc fix.
27722
27723 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
27724
27725 * coding.c (Ffind_operation_coding_system):
27726 * eval.c (For, Fand): Doc fixes.
27727 Reported by Johan Bockgård.
27728
27729 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
27730
27731 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
27732
27733 * xterm.h: Declare x_ewmh_activate_frame.
27734
27735 * xterm.c (x_ewmh_activate_frame): New function.
27736 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
27737
27738 2007-07-17 Martin Rudalics <rudalics@gmx.at>
27739
27740 * window.c (Fdisplay_buffer): If largest or LRU window is the
27741 only window, split it even if it is not eligible for splitting.
27742 This restores the original behavior broken by the 2007-07-15
27743 change.
27744
27745 2007-07-17 Glenn Morris <rgm@gnu.org>
27746
27747 * abbrev.c (abbrev_check_chars): New function.
27748 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
27749 Call abbrev_check_chars to check abbrev characters are word
27750 constituents. Doc fix.
27751
27752 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
27753
27754 * process.c (Fstart_process, Fmake_network_process)
27755 (read_process_output): Fix up last changes.
27756
27757 2007-07-16 Eli Zaretskii <eliz@gnu.org>
27758
27759 * makefile.w32-in (clean): Don't delete *~.
27760
27761 2007-07-16 Andreas Schwab <schwab@suse.de>
27762
27763 * window.c (Fdisplay_buffer): Use NILP.
27764 (Fset_window_scroll_bars): Likewise.
27765
27766 2007-07-15 Martin Rudalics <rudalics@gmx.at>
27767
27768 * window.c (window_min_size_2): New function.
27769 (window_min_size_1, size_window, Fdisplay_buffer)
27770 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
27771 windows without mode- or header-lines when window-min-height is
27772 too small.
27773 (size_window): Reset nodelete_p after testing it, following an
27774 earlier note by Kim F. Storm.
27775 (display_buffer): Do not set split_height_threshold to twice the
27776 value of window_min_height to avoid changing the value of a
27777 customizable variable. Rather explicitly check whether the
27778 height of the window that shall be splitted is at least as large
27779 as split_height_threshold.
27780 (Fwindow_full_width_p): New defun.
27781 (syms_of_window): Defsubr it.
27782
27783 * window.h: Add EXFUN for Fwindow_full_width_p.
27784
27785 2007-07-14 Jason Rumney <jasonr@gnu.org>
27786
27787 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
27788
27789 2007-07-14 Richard Stallman <rms@gnu.org>
27790
27791 * eval.c (maybe_call_debugger): New function.
27792 (find_handler_clause): Use maybe_call_debugger.
27793 Call it when the handler says `debug'.
27794 Eliminate DEBUGGER_VALUE_PTR.
27795 (Fsignal): Eliminate debugger_value.
27796 (Qdebug): New variable.
27797 (syms_of_eval): Initialize it.
27798
27799 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
27800
27801 * eval.c (Fprogn):
27802 * keyboard.c (Ftrack_mouse):
27803 * print.c (Fwith_output_to_temp_buffer):
27804 * window.c (Fsave_window_excursion): Doc fix.
27805
27806 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
27807
27808 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
27809
27810 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
27811
27812 * process.h (struct Lisp_Process): Turn slots infd, outfd,
27813 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
27814 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
27815 read_output_delay, and read_output_skip from Lisp_Objects to ints.
27816 Remove unused encoding_carryover.
27817 * process.c: Adjust all functions accordingly.
27818
27819 2007-07-12 Richard Stallman <rms@gnu.org>
27820
27821 * term.c: Include unistd.h only if HAVE_UNISTD_H.
27822
27823 2007-07-11 Jason Rumney <jasonr@gnu.org>
27824
27825 * makefile.w32-in (LIBS): Include OLE32.
27826
27827 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
27828 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
27829
27830 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
27831
27832 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
27833 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
27834 from a Lisp_Object into a bare pointer.
27835 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
27836 Adjust the code correspondingly.
27837
27838 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
27839
27840 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
27841 (term_show_mouse_face): Remove unused var `j'.
27842 (handle_one_term_event): Remove unused vars `i' and `j'.
27843 Don't cast return value of ttyname since it's not necessary.
27844
27845 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
27846
27847 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
27848 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
27849
27850 * fns.c (map_char_table): Use an array of int for `indices' rather than
27851 an array of Lisp_Objects (which are only ever integers anyway).
27852 (Fmap_char_table): Update caller.
27853 * lisp.h: Update prototype.
27854 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
27855 * fontset.c (Ffontset_info):
27856 * casetab.c (set_case_table): Update callers.
27857
27858 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
27859
27860 * keymap.c (struct accessible_keymaps_data)
27861 (struct where_is_internal_data): New structures.
27862 (accessible_keymaps_1, where_is_internal_1): Use them to change
27863 interface to adhere to the one used by map_keymap.
27864 (Faccessible_keymaps, where_is_internal): Use map_keymap.
27865 (accessible_keymaps_char_table, where_is_internal_2): Remove.
27866
27867 * keymap.h (map_keymap_function_t): More informative prototype.
27868
27869 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
27870
27871 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
27872 (looking_at_1): Don't change search_regs and last_thing_searched
27873 if `inhibit-changing-match-data' is non-nil.
27874 (string_match_1, search_buffer, set_search_regs): Likewise.
27875 (syms_of_search): Add Lisp level definition for
27876 `inhibit-changing-match-data' and set it to nil.
27877 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
27878 start and end of the match, instead of using values in search_regs.
27879
27880 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
27881
27882 * minibuf.c (Fcompleting_read): New value `confirm-only'
27883 for `require-match'.
27884
27885 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
27886
27887 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
27888 part of the 2007-06-27 change to syms_of_fileio.
27889
27890 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27891
27892 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
27893 Check WINDOWP before using XWINDOW. Consolidate return statements.
27894
27895 2007-06-27 Richard Stallman <rms@gnu.org>
27896
27897 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
27898
27899 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
27900
27901 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
27902
27903 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27904
27905 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
27906 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
27907 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
27908 (_free_internal, memalign): Use them.
27909 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
27910 Initialize to PTHREAD_MUTEX_INITIALIZER.
27911 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
27912 (morecore_nolock): Rename from morecore. All uses changed.
27913 Use only nolock versions of internal allocation functions.
27914 (_malloc_internal_nolock, _realloc_internal_nolock)
27915 (_free_internal_nolock): New functions created from
27916 _malloc_internal, _realloc_internal, and _free_internal.
27917 (_malloc_internal, _realloc_internal, _free_internal): Use them.
27918 Copy hook value to automatic variable before its use.
27919 (memalign): Copy hook value to automatic variable before its use.
27920
27921 2007-06-26 Kenichi Handa <handa@m17n.org>
27922
27923 * coding.c (Ffind_operation_coding_system): Docstring improved.
27924 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
27925
27926 2007-06-25 David Kastrup <dak@gnu.org>
27927
27928 * keymap.c (Fcurrent_active_maps): Add `position' argument.
27929 (Fwhere_is_internal): Adjust call to `current-active-maps' to
27930 cater for additional parameter.
27931
27932 * keymap.h: Adjust number of parameters to `current-active-maps'.
27933
27934 * doc.c (Fsubstitute_command_keys): Adjust call of
27935 `current-active-maps'.
27936
27937 2007-06-25 David Kastrup <dak@gnu.org>
27938
27939 * callint.c (Fcall_interactively): Make the parsing of interactive
27940 specs somewhat more readable.
27941
27942 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27943
27944 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
27945 to scroll bar gap also when bitmap fills fringe. Draw only foreground
27946 if extended background has already been filled.
27947
27948 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27949
27950 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
27951 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
27952
27953 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
27954 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
27955 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
27956 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
27957 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
27958 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
27959 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
27960 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
27961 Run timers during dialog popup.
27962 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
27963
27964 2007-06-21 Jason Rumney <jasonr@gnu.org>
27965
27966 * image.c (convert_mono_to_color_image): Swap fore and background.
27967
27968 2007-06-20 Jason Rumney <jasonr@gnu.org>
27969
27970 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
27971 (w32_free_bdf_font): Unmap memory not handle.
27972
27973 2007-06-20 Sam Steingold <sds@gnu.org>
27974
27975 * gmalloc.c (__morecore): Fix the declaration to comply with the
27976 definition.
27977
27978 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
27979
27980 * w32term.c (w32_delete_display): Remove leftover declaration.
27981 (w32_define_cursor, w32_initialize): Make static.
27982
27983 * w32.c (_wsa_errlist): Fix typo in error message.
27984 (init_environment): Ignore any environment variable from the
27985 registry having a null value.
27986
27987 2007-06-20 Glenn Morris <rgm@gnu.org>
27988
27989 * Makefile.in (LIBGIF): Default to -lgif.
27990
27991 2007-06-17 Jason Rumney <jasonr@gnu.org>
27992
27993 * w32menu.c (add_menu_item): Don't use multibyte string functions on
27994 unicode strings.
27995
27996 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
27997
27998 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
27999 Fix typo in docstring.
28000
28001 2007-06-16 Eli Zaretskii <eliz@gnu.org>
28002
28003 * w32menu.c (add_menu_item): Escape `&' characters in menu items
28004 and their keybindings.
28005
28006 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
28007
28008 * composite.c (update_compositions): Fix last fix.
28009
28010 2007-06-14 Jason Rumney <jasonr@gnu.org>
28011
28012 * w32.c (get_process_times_fn): New function pointer.
28013 (globals_of_w32): Intialize it if present in kernel32.dll.
28014 (w32_get_internal_run_time): New function.
28015
28016 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
28017
28018 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
28019
28020 * composite.c (update_compositions): Check the validness of
28021 compositions.
28022
28023 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28024
28025 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
28026 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
28027
28028 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
28029 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
28030
28031 * macgui.h (USE_MAC_TOOLBAR): New define.
28032
28033 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
28034 Return immediately unless popup is activated.
28035
28036 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
28037 background to scroll bar gap.
28038 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
28039 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
28040 scroll bars on frame edge. Check fringe background extension.
28041 Don't clear extended fringe background area.
28042 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
28043 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
28044 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
28045 [USE_MAC_TOOLBAR]: New macros.
28046 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
28047 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
28048 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
28049 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
28050 [USE_MAC_TOOLBAR]: New functions.
28051 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
28052 manually if previous repositioning has failed.
28053 (mac_handle_keyboard_event): Use precomputed event kind.
28054 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
28055 as tool bar item click. Handle mouse movement over tool bar items.
28056
28057 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
28058 toolbar_win_gravity.
28059 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
28060 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
28061 Add externs.
28062
28063 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
28064 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
28065
28066 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
28067
28068 * image.c (search_image_cache): Remove unused variable.
28069
28070 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
28071
28072 * xfns.c, xmenu.c: Link to xaw3d if available.
28073
28074 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28075
28076 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
28077 frame_foreground and frame_background.
28078
28079 * image.c (lookup_image): Save frame foreground and background colors.
28080 (search_image_cache): Check if saved and current frame colors match.
28081
28082 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
28083
28084 * regex.c (regex_compile): Remove the `regnum' counter.
28085 Use bufp->re_nsub instead. Add support for \(?N:RE\).
28086
28087 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
28088
28089 * term.c: Include intervals.h to declare Fget_text_property.
28090
28091 2007-06-10 Jason Rumney <jasonr@gnu.org>
28092
28093 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
28094
28095 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
28096
28097 * callint.c (Fcall_interactively):
28098 * editfns.c (Fdelete_and_extract_region):
28099 * fileio.c (Fread_file_name):
28100 * fns.c (Fmapconcat):
28101 * keyboard.c (cmd_error_internal):
28102 * keymap.c (Fkey_description):
28103 * lread.c (openp):
28104 * minibuf.c (read_minibuf):
28105 * search.c (wordify):
28106 * sunfns.c (sel_read):
28107 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
28108 * xfns.c (x_default_scroll_bar_color_parameter):
28109 * xmenu.c (menu_help_callback):
28110 * xselect.c (Fx_get_atom_name):
28111 * xterm.c (x_term_init): Use empty_unibyte_string.
28112
28113 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
28114
28115 * alloc.c (init_strings): Initialize canonical empty strings.
28116 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
28117 canonical empty string when the requested size is 0.
28118
28119 * emacs.c (empty_unibyte_string): Rename from empty_string.
28120 (empty_multibyte_string): New canonical empty string.
28121 (syms_of_emacs): Don't initialize empty_string.
28122
28123 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
28124 string, if appropriate.
28125 (empty_unibyte_string, empty_multibyte_string): New externs.
28126 (empty_string): Remove extern.
28127
28128 * lread.c (syms_of_lread): Use empty_unibyte_string.
28129
28130 2007-06-07 Jason Rumney <jasonr@gnu.org>
28131
28132 * s/ms-w32.h: Don't define HAVE_TZNAME.
28133
28134 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
28135
28136 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28137
28138 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
28139
28140 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
28141 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
28142
28143 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
28144 Don't call next handler.
28145 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
28146 Remove argument. Install handler to application.
28147 (set_frame_menubar): Don't change deep_p.
28148 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
28149 FRAME_OUTER_TO_INNER_DIFF_Y.
28150 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
28151 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
28152 [HAVE_DIALOGS]: New macros.
28153 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
28154 Use them.
28155 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
28156
28157 * macselect.c [MAC_OSX] (install_service_handler): Rename from
28158 init_service_handler. All callers changed. Return OSStatus value.
28159
28160 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
28161 All callers changed so as not to call SetPortWindowPort.
28162 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
28163 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
28164 mac_draw_string_common.
28165 (mac_draw_image_string_qd): Likewise.
28166 (mac_draw_string_common): Use them. Add INLINE.
28167 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
28168 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
28169 GetGlobalMouse.
28170 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
28171 and FRAME_OUTER_TO_INNER_DIFF_Y.
28172 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
28173 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
28174 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
28175 repositioning window to mac_handle_window_event.
28176 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
28177 saving window location to mac_handle_window_event
28178 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
28179 (install_menu_target_item_handler): Remove argument in extern.
28180 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
28181 Also accept command events.
28182 (do_keystroke): New function created from XTread_socket.
28183 (init_command_handler): Remove functions.
28184 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
28185 and save window location by kEventWindowShowing and kEventWindowHiding
28186 handlers here. Don't call next handler for window state change and
28187 focus events.
28188 (mac_handle_application_event, mac_handle_keyboard_event)
28189 [TARGET_API_MAC_CARBON]: New functions.
28190 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
28191 kEventWindowShowing and kEventWindowHiding events. Move installation
28192 of mouse, font, text input and menu target item handlers to
28193 install_application_handler.
28194 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
28195 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
28196 New function.
28197 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
28198 Register it.
28199 (XTread_socket) [TARGET_API_MAC_CARBON]:
28200 Consolidate SendEventToEventTarget calls.
28201 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
28202 Move application activation handler to mac_handle_application_event.
28203 Move keyboard handler to mac_handle_keyboard_event.
28204 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
28205 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
28206 init_command_handler. Call install_application_handler.
28207
28208 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
28209 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
28210
28211 2007-06-07 Glenn Morris <rgm@gnu.org>
28212
28213 * emacs.c (main): Use `emacs-copyright' in --version output.
28214
28215 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
28216
28217 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
28218
28219 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28220
28221 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
28222
28223 * macgui.h: Replace WindowPtr with WindowRef.
28224
28225 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
28226 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
28227 Replace ControlHandle with ControlRef.
28228 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
28229
28230 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
28231 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
28232 Replace ControlHandle with ControlRef.
28233 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
28234 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
28235
28236 * macterm.h (struct scroll_bar): Rename member control_handle_low
28237 and control_handle_high to control_ref_low and control_ref_high.
28238 All uses changed.
28239 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
28240 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
28241 respectively. All uses changed.
28242 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
28243 (install_window_handler, remove_window_handler): Replace WindowPtr
28244 with WindowRef in externs.
28245
28246 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
28247
28248 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
28249
28250 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
28251
28252 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
28253
28254 * frame.c (Fmouse_position, Fmouse_pixel_position):
28255 Condition on HAVE_GPM too.
28256
28257 * term.c (term_mouse_highlight): Remove unused variables.
28258 (Fterm_open_connection): Set gpm_zerobased to 1.
28259 (term_mouse_movement, term_mouse_click, handle_one_term_event):
28260 Use zero based co-ordinates.
28261 (handle_one_term_event): Report a drag as mouse movement too.
28262
28263 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
28264
28265 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
28266
28267 * image.c (search_image_cache): New function. Require background
28268 color match if background color is unspecified in the image spec.
28269 (uncache_image, lookup_image): Use it.
28270
28271 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
28272
28273 * window.c (Fshrink_window): Reflow docstring.
28274
28275 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
28276
28277 * Version 22.1 released.
28278
28279 2007-06-01 Richard Stallman <rms@gnu.org>
28280
28281 * xfns.c (x_encode_text): Add GCPRO.
28282
28283 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28284
28285 * xfns.c (x_set_name_internal): Save encoded name before
28286 x_encode_text in case string data is relocated.
28287
28288 2007-05-31 Richard Stallman <rms@gnu.org>
28289
28290 * buffer.c (syms_of_buffer): Doc fix.
28291
28292 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
28293
28294 * sysdep.c (init_sys_modes): Add rather than replace with
28295 O_NONBLOCK.
28296
28297 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
28298 term_mouse_moveto.
28299
28300 * termhooks.h (term_mouse_moveto): New extern.
28301
28302 * term.c (mouse_face_window): Rename...
28303 (Qmouse_face_window): ...to this.
28304 (term_show_mouse_face, term_clear_mouse_face)
28305 (term_mouse_highlight): Use Qmouse_face_window.
28306 (term_mouse_moveto): New function.
28307 (term_mouse_position): Make it work.
28308 (syms_of_term): Uncomment assignment to mouse_position_hook.
28309 Staticpro Qmouse_face_window.
28310
28311 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28312
28313 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
28314 around current_column call.
28315
28316 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
28317
28318 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
28319 * xdisp.c (next_element_from_buffer):
28320 * window.c (delete_window):
28321 * term.c (term_mouse_highlight):
28322 * msdos.c (getdefdir):
28323 * macterm.c (mac_create_bitmap_from_bitmap_data)
28324 (init_font_name_table):
28325 * fns.c (Fsxhash):
28326 * data.c (Fmake_local_variable):
28327 * ccl.c (ccl_driver): Likewise.
28328
28329 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28330
28331 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
28332 Call mac_wakeup_from_rne on window size change.
28333
28334 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
28335
28336 * image.c (uncache_image): Fix typo.
28337
28338 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
28339
28340 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
28341
28342 2007-05-22 Richard Stallman <rms@gnu.org>
28343
28344 * xterm.c (x_connection_closed): Remove NO_RETURN.
28345
28346 2007-05-22 Martin Rudalics <rudalics@gmx.at>
28347
28348 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
28349
28350 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
28351
28352 * image.c (uncache_image): New function.
28353 (Fimage_refresh): New function.
28354
28355 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
28356
28357 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
28358
28359 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
28360
28361 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
28362 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
28363
28364 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
28365
28366 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
28367 conditional on [HAVE_GPM_H].
28368
28369 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
28370
28371 * syntax.c (skip_chars): Update syntax-table only after we checked that
28372 the new location is valid.
28373
28374 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28375
28376 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
28377 mac_get_window_bounds.
28378
28379 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
28380
28381 * Makefile.in (LIBGPM): Allow it to be set from configure.
28382 If set then link Emacs with it.
28383
28384 * config.in: Regenerate.
28385
28386 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
28387 New externs.
28388
28389 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
28390 Include gpm.h.
28391 (handle_one_term_event, term_gpm): New externs.
28392
28393 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
28394 and allow it to be interrupted by SIGIO.
28395
28396 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
28397 (wait_reading_process_output): Wait on gpm_fd too.
28398 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
28399 (add_gpm_wait_descriptor_called_flag): New variable.
28400 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
28401
28402 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
28403 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
28404 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
28405 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
28406 (make_lispy_event): Add case GPM_CLICK_EVENT.
28407 (read_avail_input): Handle mouse input.
28408
28409 * term.c (write_glyphs_with_face): New function.
28410 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
28411 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
28412 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
28413 (mouse_face_face_id, term_gpm, pos_x, pos_y)
28414 (last_mouse_x, last_mouse_y): New variables.
28415 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
28416 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
28417 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
28418 (Fterm_close_connection): New functions.
28419 (term_init): Initialise mouse_face_window.
28420
28421 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
28422
28423 * xdisp.c (redisplay_window): If first window line is a
28424 continuation line, recompute the new window start instead of
28425 recentering.
28426
28427 2007-05-18 Glenn Morris <rgm@gnu.org>
28428
28429 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
28430 Suggested by Alfred M. Szmidt <ams@gnu.org>.
28431
28432 2007-05-17 Glenn Morris <rgm@gnu.org>
28433
28434 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
28435
28436 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28437
28438 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
28439 dead key repeat and up events.
28440
28441 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
28442
28443 * image.c (pbm_load): Check image size for monochrome pbm.
28444
28445 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
28446
28447 * xterm.c (XTread_socket): Revert last change.
28448
28449 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
28450
28451 * image.c (pbm_load): Correctly check image size for greyscale pbm.
28452
28453 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
28454
28455 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
28456
28457 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
28458 mixup (YAILOM).
28459
28460 2007-05-07 Andreas Schwab <schwab@suse.de>
28461
28462 * keymap.c (Flookup_key): Fix typo in last change.
28463
28464 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
28465
28466 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
28467 mapping for unibyte strings.
28468
28469 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28470
28471 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
28472 (Fx_popup_dialog) [MAC_OSX]: Likewise.
28473
28474 2007-04-29 Richard Stallman <rms@gnu.org>
28475
28476 * insdel.c (replace_range): For undo, record insertion first.
28477
28478 2007-04-29 Andreas Schwab <schwab@suse.de>
28479
28480 * lisp.h (VECSIZE): Use OFFSETOF.
28481
28482 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28483
28484 * xdisp.c (try_window_reusing_current_matrix): Fix number of
28485 disabled lines.
28486
28487 2007-04-28 Richard Stallman <rms@gnu.org>
28488
28489 * lread.c (read_escape): In a string, \s is always space.
28490
28491 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
28492
28493 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
28494
28495 * gtkutil.c (xg_update_menubar, create_menus): Create empty
28496 submenu for menu bar items.
28497
28498 See ChangeLog.10 for earlier changes.
28499
28500 ;; Local Variables:
28501 ;; coding: utf-8
28502 ;; End:
28503
28504 Copyright (C) 2007, 2008, 2009, 2010
28505 Free Software Foundation, Inc.
28506
28507 This file is part of GNU Emacs.
28508
28509 GNU Emacs is free software: you can redistribute it and/or modify
28510 it under the terms of the GNU General Public License as published by
28511 the Free Software Foundation, either version 3 of the License, or
28512 (at your option) any later version.
28513
28514 GNU Emacs is distributed in the hope that it will be useful,
28515 but WITHOUT ANY WARRANTY; without even the implied warranty of
28516 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28517 GNU General Public License for more details.
28518
28519 You should have received a copy of the GNU General Public License
28520 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
28521