src/image.c (DEF_IMGLIB_FN): Add argument to adapt to strict prototypes.
[bpt/emacs.git] / src / ChangeLog
1 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
2
3 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
4 prototypes; all callers changed.
5
6 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
7
8 * makefile.w32-in (TLIB2): Rename from TLIBW32.
9 (OBJ2): New macro.
10 (WIN32OBJ, FONTOBJ): Remove.
11 (OBJ1): Redistribute object files with OBJ2.
12 (LIBS, $(TEMACS)): Use TLIB2.
13 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
14 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
15
16 2010-10-13 Juanma Barranquero <lekktu@gmail.com>
17
18 * emacs.c (Vdynamic_library_alist)
19 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
20 Doc fix.
21
22 * lisp.h (Vdynamic_library_alist): Declare extern.
23
24 * image.c (Vimage_library_alist)
25 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
26 (lookup_image_type): Use Vdynamic_library_alist.
27 (Finit_image_library): Doc fix.
28
29 2010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
30
31 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
32 (lispdir): Remove trailing /, update all uses.
33
34 2010-10-12 Jan Djärv <jan.h.d@swipnet.se>
35
36 * nsterm.m (Qleft): Declare.
37 (ns_right_alternate_modifier): New variable
38 (NSRightAlternateKeyMask): New define.
39 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
40 ns_right_alternate_modifier isn't Qleft.
41 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
42 as emacs modifier for NSRightAlternateKeyMask.
43 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
44
45 2010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
46
47 * gnutls.c (emacs_gnutls_write): If we're trying to write before
48 gnutls is ready, return EAGAIN as the errno.
49
50 2010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
51
52 * vm-limit.c:
53 * unexhp9k800.c:
54 * unexelf.c:
55 * unexaix.c:
56 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
57
58 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
59 (PROFILING_LDFLAGS): Remove, not needed anymore.
60
61 * Makefile.in: Use $(...) everywhere instead of ${...}
62 (CRT_DIR): Move near potential user.
63 (START_FILE): Move near CRT_DIR, it might use it.
64
65 * sysdep.c (LPASS8): Remove, unused.
66 (emacs_ospeed): Change from being a global to a local in the only
67 user: init_baud_rate.
68
69 2010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
70
71 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
72 (emacs_gnutls_write): Remove the debuggin fsync call.
73 (emacs_gnutls_read): Return -1 if we got an error from
74 gnutls_read. This allows us to actually read lots of data from
75 the GnuTLS stream.
76 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
77 According to the documentation, this is correct, and it seems to
78 make things work.
79
80 2010-10-09 Chong Yidong <cyd@stupidchicken.com>
81
82 * xterm.c (x_draw_relief_rect): Clear corner pixels.
83
84 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
85
86 * keyboard.c: Revert last change; it was not intended to be
87 synchronized with the trunk.
88
89 2010-10-08 Kenichi Handa <handa@m17n.org>
90
91 * coding.c (complement_process_encoding_system): Fix previous change.
92
93 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
94
95 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
96 (Fdbus_init_bus): ... here. (Bug#7113)
97
98 2010-10-08 Glenn Morris <rgm@gnu.org>
99
100 * buffer.c (before-change-functions, after-change-functions):
101 Three-year overdue doc fix following 2007-08-13 change.
102
103 2010-10-08 Kenichi Handa <handa@m17n.org>
104
105 * coding.c (coding_inherit_eol_type): If parent doesn't specify
106 eol-format, inherit from the system's default.
107 (complement_process_encoding_system): Make a new coding system
108 inherit the original eol-format.
109
110 2010-10-08 Kenichi Handa <handa@m17n.org>
111
112 * coding.c (complement_process_encoding_system): New function.
113
114 * coding.h (complement_process_encoding_system): Extern it.
115
116 * callproc.c (Fcall_process): Complement the coding system for
117 encoding arguments.
118 (Fcall_process_region): Complement the coding system for encoding
119 the input to the process.
120
121 * process.c (Fstart_process): Complement the coding system for
122 encoding arguments.
123 (send_process): Complement the coding system for encoding what
124 sent to the process.
125
126 2010-10-08 Kenichi Handa <handa@m17n.org>
127
128 * xfont.c (xfont_open): Fix setting of font->average_width from
129 :avgwidth property (Bug#7123).
130
131 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
132
133 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
134 is more portable.
135
136 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
137 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
138 has not defined SIGIO.
139
140 2010-10-08 Chong Yidong <cyd@stupidchicken.com>
141
142 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
143 draw the outermost line using the black relief, for legibility.
144 Omit drawing the four corner pixels.
145
146 2010-10-04 Chong Yidong <cyd@stupidchicken.com>
147
148 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
149 (read_key_sequence): Inline echo_prompt.
150 (echo_dash): Add a dash only if key is continued (Bug#7137).
151
152 2010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
153
154 Remove O_RDONLY, O_WRONLY definitions, not needed.
155 * unexcoff.c:
156 * lread.c:
157 * fileio.c:
158 * doc.c:
159 * callproc.c:
160 * alloc.c:
161 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
162
163 2010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
164
165 * gnutls.h (GNUTLS_LOG2): Convenience macro.
166
167 * gnutls.c: Add property list symbol holders.
168 (emacs_gnutls_handshake): Clarify how sockets are passed to
169 GnuTLS.
170 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
171 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
172 and keyfiles to be a list of file names. Default to "NORMAL" for
173 the priority string. Improve logging.
174
175 2010-10-03 Glenn Morris <rgm@gnu.org>
176
177 * fileio.c (Vdirectory_sep_char): Remove.
178
179 2010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
180
181 * termhooks.h: Remove #ifdef CONSP.
182
183 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
184
185 Include <fcntl.h> unconditionally.
186 * termcap.c:
187 * sysdep.c:
188 * lread.c:
189 * keyboard.c:
190 * filelock.c:
191 * fileio.c:
192 * doc.c:
193 * callproc.c:
194 * alloc.c: Remove include guards for <fcntl.h>, process.c already
195 does it.
196
197 * process.c: Do not include <sys/wait.h>, syswait.h does it.
198
199 * sysdep.c (flush_pending_output): Remove code, does not do
200 anything on any platform.
201
202 Remove unused code.
203 * sysdep.c (select_alarm, sys_select, read_input_waiting): Remove
204 select emulation, all systems support select.
205 (set_exclusive_use): Remove, the only user is in an #if 0 block.
206 * process.c (create_process): Remove #if 0 code.
207
208 Remove unused arguments for unexec.
209 The third one is never used, and the last two are always passed as zero.
210 * emacs.c (unexec): Add declaration.
211 (Fdump_emacs): Only pass the first two arguments to unexec.
212 Simplify #ifdef.
213 * unexw32.c (unexec):
214 * unexsol.c (unexec):
215 * unexhp9k800.c (unexec):
216 * unexcw.c (unexec): Remove the last 3 arguments, unused.
217 * unexelf.c (unexec): Remove the last 3 arguments, unused.
218 (find_section): Use const.
219 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
220 (unexec_error): Declare it NO_RETURN.
221 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
222 it as an argument, remove data_start and entry_address arguments, unused.
223 (unexec): Remove bss_start, data_start and
224 entry_address arguments.
225 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
226 it as an argument, remove data_start and entry_address arguments, unused.
227 (unexec): Remove bss_start, data_start and
228 entry_address arguments.
229
230 2010-10-03 Juanma Barranquero <lekktu@gmail.com>
231
232 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
233
234 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
235 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
236 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
237 Fix typos in docstrings.
238 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
239 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
240
241 2010-10-03 Chong Yidong <cyd@stupidchicken.com>
242
243 * keyboard.c (command_loop_1): Make sure the mark is really alive
244 before using it (Bug#7044).
245
246 2010-10-02 Juanma Barranquero <lekktu@gmail.com>
247
248 * makefile.w32-in (tags): Rename target to full-tags.
249
250 2010-10-02 Eli Zaretskii <eliz@gnu.org>
251
252 * emacs.c (main): Remove !WINDOWSNT conditional.
253 (Fkill_emacs): Don't mention exemption on MS-Windows.
254
255 2010-10-02 Glenn Morris <rgm@gnu.org>
256
257 * character.c (Fchar_bytes): Remove obsolete function.
258 (syms_of_character): Remove Schar_bytes.
259
260 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
261 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
262 in batch-mode.
263 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
264 (kill-emacs-hook): Doc fix.
265
266 2010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
267
268 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
269 (parse_region): Reworked to take regions instead of strings, and
270 renamed to reflect that these are the libxml functions.
271
272 2010-10-01 Eli Zaretskii <eliz@gnu.org>
273
274 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
275 screen dimensions in tty->Wcm.
276
277 * xdisp.c (set_cursor_from_row): When the row is truncated and
278 point is outside the range of displayed characters, position the
279 cursor inside the scroll margin. (Bug#6349)
280
281 2010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
282
283 Do not include stdlib.h and string.h, config.h does it.
284 * xfont.c:
285 * w32term.c:
286 * w32reg.c:
287 * w32inevt.c:
288 * w32heap.c:
289 * w32console.c:
290 * w16select.c:
291 * unexsol.c:
292 * term.c:
293 * sound.c:
294 * scroll.c (m):
295 * gtkutil.c:
296 * font.c:
297 * filelock.c:
298 * fileio.c:
299 * dosfns.c:
300 * dbusbind.c:
301 * bidi.c:
302 * callproc.c:
303 * process.c:
304 * msdos.c:
305 * charset.c: Do not include stdlib.h and string.h, config.h does it.
306
307 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h defines it.
308
309 * process.c: Move #include <pty.h> earlier.
310 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
311 (pty_name): Move definition later.
312
313 * nsselect.m (syms_of_nsselect):
314 * nsmenu.m (syms_of_nsmenu):
315 * nsfns.m (syms_of_nsfns):
316 * msdos.c (syms_of_msdos):
317
318 * image.c (syms_of_image):
319 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
320
321 * point.h: Remove, unused.
322
323 2010-10-01 Eli Zaretskii <eliz@gnu.org>
324
325 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
326 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
327 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
328
329 2010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
330
331 * xml.c (parse_string): Use const.
332
333 2010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
334
335 * eval.c (Fbacktrace): Don't overwrite print-level on exit. Also
336 only override Vprint_level if it isn't already bound, and increase
337 the level to 8 to produce more useful backtraces for bug reports.
338
339 2010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
340
341 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
342
343 2010-09-30 Juanma Barranquero <lekktu@gmail.com>
344
345 * w32console.c (vga_stdcolor_name): Remove unused function;
346 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
347
348 2010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
349
350 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
351 (Fgnutls_boot): Start the handshake.
352 (emacs_gnutls_read): Perform the handshake from the reader loop.
353 (Fgnutls_boot): Remove some debugging messages.
354 Change indentation throughout to use the Emacs style.
355 (emacs_gnutls_handshake): Cast the fds to something that's
356 possibly the expected length.
357 (emacs_gnutls_write): Return -1 if we try to write before handshake.
358
359 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
360
361 * process.c (make_process): Set the gnutls_p field to zero by
362 default.
363 (read_process_output): Always call the gnutls_read function if the
364 stream is a gnutls stream.
365 (send_process): Ditto for writes.
366
367 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
368 or write anything until the state is GNUTLS_STAGE_READY.
369 (Fgnutls_boot): Mark the stream as being a gnutls stream.
370
371 2010-09-29 Eli Zaretskii <eliz@gnu.org>
372
373 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
374 NEUTRAL_DIR.
375 (handle_invisible_prop, iterate_out_of_display_property)
376 (next_element_from_buffer): If bidi_it.first_elt is set, call
377 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
378 (Bug#7128)
379
380 * print.c (print_object): Fix format string and argument types for
381 printing a Lisp_Misc_Marker.
382
383 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
384 (load_overlay_strings, get_overlay_strings_1)
385 (get_overlay_strings, forward_to_next_line_start)
386 (back_to_previous_visible_line_start, reseat, reseat_to_string)
387 (get_next_display_element, next_element_from_string)
388 (next_element_from_c_string, next_element_from_buffer)
389 (move_it_vertically_backward, move_it_by_lines, add_to_log)
390 (message_dolog, message_log_check_duplicate, message2_nolog)
391 (message3, message3_nolog, vmessage, set_message, set_message_1)
392 (hscroll_window_tree, text_outside_line_unchanged_p)
393 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
394 (find_last_unchanged_at_beg_row)
395 (find_first_unchanged_at_end_row, row_containing_pos)
396 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
397 (display_count_lines, x_produce_glyphs, note_mouse_highlight): Use
398 EMACS_INT for buffer and string positions.
399
400 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
401 (row_containing_pos): Adjust prototype.
402
403 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
404 (message2_nolog, set_message): Adjust prototypes.
405
406 2010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
407
408 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
409 (Fgnutls_boot): Use SDATA.
410 (Fgnutls_handshake): Remove unused var `max_log_level'.
411
412 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
413
414 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
415 (Bug#7113)
416
417 2010-09-27 Jan Djärv <jan.h.d@swipnet.se>
418
419 * xgselect.c (xg_select): Clear file descriptors not set from
420 rfds and wfds.
421
422 * process.c (wait_reading_process_output): Add missing FD_CLR
423 for write_mask (must mirror connect_wait_mask).
424
425 2010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
426
427 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
428 prefix.
429 (Fgnutls_boot): Use changed process members. Use log level with a
430 function parameter to set it. Bring back Emacs-level debugging
431 messages at log level 1 and 2.
432
433 * process.c (make_process): Initialize gnutls_log_level.
434
435 * process.h: Add gnutls_log_level and rename x509_cred and
436 anon_cred to have the gnutls_ prefix for consistency.
437
438 * gnutls.h (GNUTLS_LOG): Add convenience macro.
439
440 2010-09-27 Juanma Barranquero <lekktu@gmail.com>
441
442 * w32.c (g_b_init_get_sid_identifier_authority)
443 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
444 Remove, not used.
445 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
446 (init_winsock): Remove useless assignment.
447 (open_process_token, get_token_information, lookup_account_sid)
448 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
449 (get_security_descriptor_owner, get_security_descriptor_group)
450 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
451 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
452 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
453 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
454 (unc_volume_file_attributes, convert_from_time_t)
455 (create_toolhelp32_snapshot, process32_first, process32_next)
456 (open_thread_token, impersonate_self, revert_to_self)
457 (get_process_memory_info, get_process_working_set_size)
458 (global_memory_status, global_memory_status_ex, socket_to_fd)
459 (shutdown_handler): Make static.
460
461 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
462
463 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
464 (xd_pending_messages): Functions removed.
465 (xd_read_queued_messages): Add parameters fd, *data, for_read in
466 order to be compatible with add_read_fd. Determine bus from data,
467 and call xd_read_message just for this bus.
468 (xd_add_watch): Use xd_read_queued_messages as callback function.
469 Add data.
470
471 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
472
473 2010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
474
475 * gnutls.c (gnutls_log_function): Added more debugging.
476 (emacs_gnutls_read): Don't infloop while reading.
477
478 2010-09-27 Kenichi Handa <handa@m17n.org>
479
480 These changes are to remove restriction on the number of glyphs in
481 one composition.
482
483 * dispextern.h (struct glyph): Change the member "slice" to union.
484 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
485 (GLYPH_SLICE_EQUAL_P): Adjusted for the above change.
486
487 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
488 instead of glyph->slice.
489 (marginal_area_string): Likewise.
490
491 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
492 glyph->u.cmp.
493 (append_composite_glyph): Likewise.
494
495 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
496 glyph->u.cmp.
497 (fill_gstring_glyph_string, x_get_glyph_overhangs)
498 (append_composite_glyph): Likewise.
499 (fill_image_glyph_string): Use glyph->slice.img instead of
500 glyph->slice.
501 (append_glyph, produce_image_glyph, append_stretch_glyph)
502 (note_mouse_highlight): Likewise.
503
504 2010-09-26 Jan Djärv <jan.h.d@swipnet.se>
505
506 * process.c (add_keyboard_wait_descriptor)
507 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
508 (wait_reading_process_output): Don't pass write_mask to select
509 if SELECT_CANT_DO_WRITE_MASK is defined.
510 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
511
512 * process.h (add_read_fd, delete_read_fd, add_write_fd)
513 (delete_write_fd): Declare.
514
515 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
516 (write_mask): New variable.
517 (max_input_desc): Renamed from max_keyboard_desc.
518 (fd_callback_info): New variable.
519 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
520 New functions.
521 (Fmake_network_process): FD_SET write_mask.
522 (deactivate_process): FD_CLR write_mask.
523 (wait_reading_process_output): Connecting renamed to Writeok.
524 check_connect removed. check_write is new. Remove references to gpm.
525 Use Writeok/check_write unconditionally (i.e. no #ifdef
526 NON_BLOCKING_CONNECT) instead of Connecting.
527 Loop over file descriptors and call callbacks in fd_callback_info
528 if file descriptor is ready for I/O.
529 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
530 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
531 (keyboard_bit_set): Use max_input_desc.
532 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
533 Remove #ifdef subprocesses. Use max_input_desc.
534 (init_process): Initialize write_mask and fd_callback_info.
535
536 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
537
538 * dbusbind.c: Include process.h.
539 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
540 (xd_read_message_1): New functions.
541 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
542 Handle watch for both read and write.
543 (Fdbus_init_bus): Also register xd_toggle_watch.
544 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
545 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
546 to dbus_connection_flush.
547 (xd_read_message): Move most of the code to xd_read_message_1.
548 Call xd_read_message_1 until status is COMPLETE.
549
550 2010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
551
552 * term.c: Do not include sys/ioctl.h, not needed.
553 (init_tty): Reorder code to reduce the number of #ifdefs.
554 No code changes.
555
556 2010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
557
558 * process.h: Set up GnuTLS support.
559
560 * process.c (make_process, Fstart_process)
561 (read_process_output, send_process): Set up GnuTLS support for
562 process input/output file descriptors.
563
564 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
565
566 * gnutls.c: The source code for GnuTLS support in Emacs.
567
568 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
569
570 * config.in: Set up GnuTLS support.
571
572 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
573 (obj, LIBES): Set up GnuTLS support.
574
575 2010-09-26 Juanma Barranquero <lekktu@gmail.com>
576
577 * w32.c (get_emacs_configuration_options): Fix previous change.
578
579 2010-09-25 Chong Yidong <cyd@stupidchicken.com>
580
581 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
582 alive before using it (Bug#6977).
583
584 2010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
585
586 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
587
588 * dispextern.h: EMACS_INT/int fixup.
589
590 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
591 fixup.
592
593 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
594
595 2010-09-25 Eli Zaretskii <eliz@gnu.org>
596
597 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
598 (Fselect_window, window_scroll_pixel_based)
599 (window_scroll_line_based, Frecenter, Fset_window_configuration):
600 Use EMACS_INT for buffer positions.
601
602 * textprop.c (validate_interval_range, interval_of)
603 (property_change_between_p, Fadd_text_properties)
604 (set_text_properties_1, Fremove_text_properties)
605 (Fremove_list_of_text_properties, Ftext_property_any)
606 (Ftext_property_not_all, copy_text_properties)
607 (text_property_list, extend_property_ranges)
608 (verify_interval_modification): Use EMACS_INT for buffer
609 positions.
610
611 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
612 for buffer positions.
613
614 * process.c (read_process_output, send_process)
615 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
616 and string positions and size.
617
618 * print.c (print_object, print_string, strout): Use EMACS_INT for
619 string indices.
620
621 * minibuf.c (string_to_object): Use EMACS_INT for string position
622 and size.
623
624 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
625
626 * lread.c <read_from_string_index, read_from_string_index_byte>
627 <read_from_string_limit, readchar_count>: Define EMACS_INT.
628 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
629 buffer positions and string length.
630
631 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
632 EMACS_INT.
633 (echo_truncate, adjust_point_for_property, read_char)
634 (gen_help_event, make_lispy_event, modify_event_symbol)
635 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
636 for buffer positions and string length.
637
638 * keyboard.h (gen_help_event): Adjust prototype.
639
640 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
641
642 * commands.h <last_point_position>: Declare EMACS_INT.
643
644 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
645 (truncate_echo_area): Accept EMACS_INT argument.
646
647 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
648
649 * lisp.h (truncate_echo_area): Adjust prototype.
650
651 * composite.c (composition_adjust_point): Return EMACS_INT.
652
653 * composite.h (composition_adjust_point): Adjust prototype.
654
655 2010-09-25 Juanma Barranquero <lekktu@gmail.com>
656
657 * process.c (Fmake_network_process): When arg :host is 'local,
658 use address 127.0.0.1, not name "localhost". (Bug#6781)
659
660 2010-09-24 Eli Zaretskii <eliz@gnu.org>
661
662 * indent.c (Fcurrent_indentation, indented_beyond_p)
663 (compute_motion): Use EMACS_INT for buffer position variables.
664
665 * lisp.h (indented_beyond_p): Adjust prototype.
666
667 * buffer.c (overlay_strings): Return EMACS_INT.
668
669 * buffer.h (overlay_strings): Adjust prototype.
670
671 * region-cache.c (pp_cache): Adjust format to arguments.
672
673 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
674 (call_debugger): Use EMACS_INT for specpdl_size related variables.
675 (verror): Use EMACS_INT for size of allocated buffer.
676
677 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
678 positions.
679
680 * xdisp.c (redisplay_internal, try_window_id)
681 (set_cursor_from_row, find_first_unchanged_at_end_row): Use
682 EMACS_INT for buffer positions.
683
684 * dispextern.h (set_cursor_from_row): Adjust prototype.
685
686 * dispnew.c (increment_matrix_positions)
687 (increment_row_positions, copy_glyph_row_contents)
688 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
689 positions.
690
691 * dispextern.h (mode_line_string, marginal_area_string)
692 (increment_matrix_positions, increment_row_positions): Adjust
693 prototypes.
694
695 * data.c (Faref, Faset): Use EMACS_INT for string length and
696 positions.
697
698 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
699 characters to insert.
700
701 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
702 position and size.
703
704 * syntax.c (scan_words, update_syntax_table)
705 (prev_char_comend_first, back_comment, skip_chars)
706 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars): Use
707 EMACS_INT for buffer and string positions.
708
709 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
710
711 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
712 positions.
713
714 2010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
715
716 * scroll.c (calculate_scrolling, line_ins_del)
717 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
718 conversion.
719
720 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
721 (region_cache_backward, region_cache_forward)
722 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
723 conversion.
724
725 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
726
727 * eval.c (verror): Fix EMACS_INT/int conversion.
728
729 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
730 (print_preprocess, print_check_string_charset_prop)
731 (print_object): Fix EMACS_INT/int conversion.
732
733 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
734
735 2010-09-24 Eli Zaretskii <eliz@gnu.org>
736
737 * callproc.c (Fcall_process): Use EMACS_INT for count of
738 characters read from the subprocess.
739
740 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
741 positions.
742 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
743 positions.
744
745 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
746 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
747 length.
748 (advance_to_char_boundary, Fset_buffer_multibyte)
749 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
750 (overlay_touches_p, record_overlay_string, overlay_strings)
751 (recenter_overlay_lists, fix_start_end_in_overlays)
752 (modify_overlay, Fmove_overlay, report_overlay_modification)
753 (evaporate_overlays): Use EMACS_INT for buffer positions.
754
755 * lisp.h (fix_start_end_in_overlays, overlay_touches_p): Adjust
756 prototypes.
757
758 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
759 positions.
760
761 * fns.c (Fcompare_strings, Fstring_lessp, concat)
762 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
763 (Fsubstring_no_properties, substring_both, Ffillarray)
764 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
765 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
766 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
767 (Fmd5): Use EMACS_INT for buffer and string positions and length
768 variables and arguments.
769
770 * lisp.h (substring_both): Adjust prototype.
771
772 2010-09-24 Juanma Barranquero <lekktu@gmail.com>
773
774 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
775 * w32fns.c (clipboard_sequence_fn): Don't declare.
776 (globals_of_w32fns): Don't initialize it.
777
778 2010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
779
780 * syntax.c (back_comment): Detect the case where a 1-char comment
781 starter is also the 2nd char of a 2-char comment ender.
782
783 2010-09-23 Jan Djärv <jan.h.d@swipnet.se>
784
785 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
786
787 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
788
789 * eval.c (verror): EMACS_INT/int cleanup.
790
791 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
792 unwind_protect more than 2GB worth of functions.
793
794 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
795
796 * lisp.h: Have oblookup take EMACS_INT to allow interning big
797 string and avoid compiler warnings.
798 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
799 all users.
800
801 * lread.c (oblookup): EMACS_INT/int cleanup.
802
803 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
804
805 2010-09-23 Eli Zaretskii <eliz@gnu.org>
806
807 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
808
809 * lisp.h (clip_to_bounds): Adjust prototype.
810
811 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
812
813 2010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
814
815 * lisp.h: doprnt.c EMACS_INT/int cleanup.
816
817 * doprnt.c (doprnt): EMACS_INT/int cleanup.
818
819 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
820 cleanup.
821
822 * lisp.h: Change the definition of all marker.c functions that
823 take and return buffer stuff to be EMACS_INT instead of int.
824
825 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
826 (buf_charpos_to_bytepos, bytepos_to_charpos)
827 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
828 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
829 for all buffer positions.
830
831 2010-09-23 Chong Yidong <cyd@stupidchicken.com>
832
833 * intervals.c (traverse_intervals, rotate_right, rotate_left)
834 (split_interval_right, find_interval, next_interval)
835 (delete_node, delete_interval, interval_deletion_adjustment)
836 (adjust_intervals_for_deletion, merge_interval_right)
837 (merge_interval_left, graft_intervals_into_buffer)
838 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
839
840 * intervals.h (traverse_intervals): Update prototype.
841
842 2010-09-23 Eli Zaretskii <eliz@gnu.org>
843
844 * indent.c (compute_motion): Use EMACS_INT for arguments to
845 region_cache_forward.
846
847 * region-cache.c (struct boundary, struct region_cache): Use
848 EMACS_INT for positions.
849 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
850 (delete_cache_boundaries, set_cache_region)
851 (invalidate_region_cache, know_region_cache)
852 (region_cache_forward, region_cache_backward, pp_cache): Use
853 EMACS_INT for buffer positions.
854
855 * region-cache.h (know_region_cache, invalidate_region_cache)
856 (region_cache_forward, region_cache_backward): Adjust prototypes.
857
858 * search.c (string_match_1, fast_c_string_match_ignore_case)
859 (looking_at_1, scan_buffer, scan_newline)
860 (find_next_newline_no_quit, find_before_next_newline)
861 (search_command, trivial_regexp_p, search_buffer, simple_search)
862 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
863 and string positions and length.
864
865 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
866 (find_before_next_newline): Adjust prototypes.
867
868 * editfns.c (transpose_markers, update_buffer_properties)
869 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
870 (get_pos_property, Fconstrain_to_field)
871 (Fline_beginning_position, Fline_end_position, Fprevious_char)
872 (Fchar_after, Fchar_before, Finsert_char)
873 (Finsert_buffer_substring, Fcompare_buffer_substrings)
874 (Fsubst_char_in_region, Fformat, Ftranspose_regions): Use
875 EMACS_INT for buffer and string position variables.
876 (Finsert_char): Protect against too large insertions.
877
878 * lisp.h (clip_to_bounds): Adjust prototype.
879
880 * intervals.c (traverse_intervals, rotate_right, rotate_left)
881 (balance_an_interval, split_interval_right, split_interval_left)
882 (find_interval, next_interval, update_interval)
883 (adjust_intervals_for_insertion, delete_node, delete_interval)
884 (interval_deletion_adjustment, adjust_intervals_for_deletion)
885 (offset_intervals, merge_interval_right, merge_interval_left)
886 (graft_intervals_into_buffer, adjust_for_invis_intang)
887 (move_if_not_intangible, get_local_map, copy_intervals)
888 (copy_intervals_to_string, compare_string_intervals)
889 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
890 and for interval tree size.
891
892 * intervals.h (traverse_intervals, split_interval_right)
893 (split_interval_left, find_interval, offset_intervals)
894 (graft_intervals_into_buffer, copy_intervals)
895 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
896 (update_interval): Adjust prototypes.
897
898 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
899 Use EMACS_INT for buffer position variables and arguments.
900
901 * composite.c (get_composition_id, find_composition)
902 (run_composition_function, compose_text)
903 (composition_gstring_width, autocmp_chars)
904 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
905 for buffer positions and string length variables and arguments.
906
907 * composite.h (get_composition_id, find_composition, compose_text)
908 (composition_gstring_width): Adjust prototypes.
909
910 * editfns.c (Fformat): Use EMACS_INT for string size variables.
911
912 * xdisp.c (store_mode_line_noprop, display_mode_element): Use
913 EMACS_INT for string positions.
914
915 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
916 position arguments.
917
918 * intervals.h (get_property_and_range): Adjust prototype.
919
920 * character.c (parse_str_as_multibyte, str_as_multibyte)
921 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
922 (string_count_byte8, string_escape_byte8, c_string_width)
923 (strwidth, lisp_string_width, multibyte_chars_in_text): Use
924 EMACS_INT for string length variables and arguments.
925
926 * character.h (parse_str_as_multibyte, str_as_multibyte)
927 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
928 (c_string_width, strwidth, lisp_string_width): Adjust
929 prototypes.
930
931 * font.c (font_intern_prop): Use EMACS_INT for string length
932 variables.
933
934 * font.c (font_intern_prop): Use EMACS_INT for string length
935 variables.
936
937 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
938 variables.
939
940 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
941 (Fmake_string): Protect against too large strings.
942 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
943 (live_misc_p): Use ptrdiff_t instead of int for pointer
944 differences.
945 (string_bytes, check_sblock, check_string_free_list)
946 (allocate_string_data, compact_small_strings, Fmake_string)
947 (Fmake_bool_vector, make_string, make_unibyte_string)
948 (make_multibyte_string, make_string_from_bytes)
949 (make_specified_string_string, Fmake_list, Fmake_vector): Use
950 EMACS_INT for string length variables and arguments.
951 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
952 (Fpurecopy): Use EMACS_INT for string size.
953 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
954 for vector size.
955
956 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
957 (make_string_from_bytes, make_specified_string_string)
958 (make_pure_string, string_bytes, check_point_in_composition):
959 Adjust prototypes.
960
961 2010-09-22 Eli Zaretskii <eliz@gnu.org>
962
963 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
964 (check_translation): Use EMACS_INT for buffer positions and
965 length.
966
967 * undo.c (record_marker_adjustment, record_delete)
968 (record_change, record_point, record_insert)
969 (record_property_change, Fprimitive_undo): Use EMACS_INT for
970 buffer positions.
971
972 * lisp.h (record_marker_adjustment, record_delete)
973 (record_change, record_point, record_insert)
974 (record_property_change, Fprimitive_undo): Adjust prototypes.
975
976 2010-09-22 Juanma Barranquero <lekktu@gmail.com>
977 Eli Zaretskii <eliz@gnu.org>
978
979 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
980
981 2010-09-22 Eli Zaretskii <eliz@gnu.org>
982
983 * minibuf.c (Fminibuffer_contents)
984 (Fminibuffer_contents_no_properties)
985 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
986 positions.
987
988 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
989 mark.
990
991 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
992 (allocate_string_data): Accept EMACS_INT for string length.
993
994 * editfns.c (Ffield_string, Ffield_string_no_properties)
995 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
996 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
997 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
998 (Ffield_end): Use EMACS_INT for buffer positions.
999
1000 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
1001 point with mark.
1002
1003 * lisp.h (allocate_string_data, make_uninit_string)
1004 (make_uninit_multibyte_string, make_buffer_string)
1005 (make_buffer_string_both): Adjust prototypes.
1006
1007 2010-09-22 Chong Yidong <cyd@stupidchicken.com>
1008
1009 * xml.c: Switch to GNU indentation.
1010 (make_dom): Change parse tree format to match xml.el.
1011 (Fxml_parse_html_string_internal): Rename from html-parse-string.
1012 (Fxml_parse_string_internal): Rename from xml-parse-string.
1013
1014 2010-09-22 Kenichi Handa <handa@m17n.org>
1015
1016 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
1017 only if we are not at a composition.
1018 (set_iterator_to_next): Give it->end_charpos to
1019 composition_compute_stop_pos.
1020 (set_iterator_to_next, next_element_from_buffer): Likewise.
1021
1022 * dispnew.c (buffer_posn_from_coords): Fix position when the
1023 current display element is a grapheme cluster in bidi-reordered
1024 region.
1025
1026 2010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
1027
1028 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
1029 the regions may overlap.
1030
1031 2010-09-21 Juanma Barranquero <lekktu@gmail.com>
1032
1033 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
1034
1035 2010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
1036
1037 * emacs.c: Do not include sys/ioctl.h, not needed.
1038
1039 * doprnt.c: Do not include stdlib.h, config.h does it.
1040 Move #include before macro definition.
1041
1042 2010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
1043
1044 * Makefile.in (temacs): Link using $(CC) not $(LD).
1045 (LD_FIRSTFLAG): Define using autoconf.
1046 (LD): Remove.
1047
1048 Remove HAVE_TERMIOS definitions.
1049 * s/usg5-4-common.h (HAVE_TERMIOS):
1050 * s/template.h (HAVE_TERMIOS):
1051 * s/gnu-linux.h (HAVE_TERMIOS):
1052 * s/darwin.h (HAVE_TERMIOS):
1053 * s/cygwin.h (HAVE_TERMIOS):
1054 * s/bsd-common.h (HAVE_TERMIOS):
1055 * s/aix4-2.h (HAVE_TERMIOS):
1056 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
1057 defined on all non-MS platforms.
1058 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
1059
1060 * xterm.c (xt_action_hook): Use const.
1061
1062 2010-09-20 Juanma Barranquero <lekktu@gmail.com>
1063
1064 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
1065 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
1066 (gethostname) [!HAVE_SOCKETS]: Remove.
1067 (SOCK_REPLACE_HANDLE): Remove macro.
1068 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
1069 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
1070 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
1071 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
1072
1073 2010-09-18 Eli Zaretskii <eliz@gnu.org>
1074
1075 * deps.mk (xml.o): Add dependencies.
1076
1077 * xdisp.c (Fcurrent_bidi_paragraph_direction):
1078 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
1079
1080 * bidi.c (bidi_paragraph_init): Accept an additional argument
1081 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
1082 search back until a paragraph with a strong directional character
1083 is found, and use that to determine paragraph's base direction.
1084
1085 * dispextern.h (bidi_paragraph_init): Update prototype.
1086
1087 2010-09-17 Eli Zaretskii <eliz@gnu.org>
1088
1089 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
1090 of w32api >= 3.15. (Bug#6989)
1091
1092 2010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
1093
1094 * process.c (wait_reading_process_output): Don't message about
1095 accept-process-output unless the time limit really is zero.
1096
1097 2010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
1098
1099 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
1100 int/Lisp_Object mixup).
1101
1102 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
1103
1104 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
1105 not HELP.
1106
1107 2010-09-17 Stephen Berman <stephen.berman@gmx.net>
1108
1109 * frame.c (Ftool_bar_pixel_width): New function to expose tool
1110 bar's pixel width to Lisp (Bug#7048).
1111
1112 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
1113
1114 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
1115
1116 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
1117
1118 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
1119 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
1120
1121 2010-09-17 Kenichi Handa <handa@m17n.org>
1122
1123 * ftfont.c (ftfont_check_otf): Fix previous change.
1124
1125 2010-09-14 Kenichi Handa <handa@m17n.org>
1126
1127 * ftfont.c (ftfont_check_otf): Fix the case of checking just
1128 existence of GSUB or GPOS.
1129
1130 2010-09-14 Juanma Barranquero <lekktu@gmail.com>
1131
1132 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
1133
1134 2010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
1135
1136 * xml.c (parse_buffer): Renamed to parse_string(), since that's
1137 what it does.
1138 (parse_string): Return nil when the document can't be parsed.
1139
1140 2010-09-14 Jan Djärv <jan.h.d@swipnet.se>
1141
1142 * xterm.c (get_current_vm_state): New function.
1143 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
1144 want_fullscreen so set_wm_state calls are few (Bug#7013).
1145 (x_handle_net_wm_state): Move code to get_current_vm_state and
1146 call that function.
1147
1148 2010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
1149
1150 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
1151
1152 2010-09-14 Kenichi Handa <handa@m17n.org>
1153
1154 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
1155 we may use designation or locking-shift.
1156
1157 2010-09-14 Kenichi Handa <handa@m17n.org>
1158
1159 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
1160 sequence when the source is multibyte.
1161
1162 2010-09-14 Andreas Schwab <schwab@linux-m68k.org>
1163
1164 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
1165 Don't make first argument optional. Doc fix.
1166
1167 2010-09-14 Leo <sdl.web@gmail.com> (tiny change)
1168
1169 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
1170 parameters for the doc string.
1171
1172 2010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
1173
1174 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
1175
1176 2010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1177
1178 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
1179 (syms_of_fns): Don't defsubr Sy_or_n_p.
1180 * lisp.h: Don't declare Fy_or_n_p.
1181 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
1182
1183 2010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
1184
1185 * xml.c (Fxml_parse_buffer): New function to parse XML files.
1186
1187 2010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
1188
1189 * xml.c: New file.
1190 (Fhtml_parse_buffer): New function to interface to the libxml2
1191 html parsing function.
1192
1193 2010-09-05 Juanma Barranquero <lekktu@gmail.com>
1194
1195 * biditype.h: Regenerate.
1196
1197 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
1198
1199 * nsimage.m (ns_load_image): Check argument types.
1200
1201 * image.c: Remove all uses of gcpro.
1202 (xpm_load): Check all lisp types.
1203 (pbm_load): Likewise.
1204 (png_load): Likewise.
1205 (jpeg_load): Likewise.
1206 (tiff_load): Likewise.
1207 (gif_load): Likewise.
1208 (imagemagick_load_image): Likewise.
1209 (imagemagick_load): Likewise.
1210 (svg_load): Likewise.
1211 (gs_load): Likewise.
1212
1213 2010-09-04 Eli Zaretskii <eliz@gnu.org>
1214
1215 * w32uniscribe.c (uniscribe_shape): Update commentary. Don't
1216 try to reorder grapheme clusters, since LGSTRING should always
1217 hold them in the logical order.
1218 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
1219 return glyph codes in the logical order.
1220
1221 2010-09-04 Andreas Schwab <schwab@linux-m68k.org>
1222
1223 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
1224 (imagemagick_load_image): Fix type mismatch.
1225 (Fimagemagick_types): Likewise. Doc fix.
1226
1227 2010-09-02 Jan Djärv <jan.h.d@swipnet.se>
1228
1229 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
1230
1231 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
1232
1233 * xselect.c: Remove declaration of cut-buffer objects and functions.
1234 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
1235 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
1236 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
1237 (Fx_rotate_cut_buffers_internal): Remove.
1238 (syms_of_xselect): Remove defsubr of above.
1239 Remove intern of QCUT_BUFFERn.
1240
1241 2010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
1242
1243 * cmds.c (Vblink_paren_function): Remove.
1244 (internal_self_insert): Make it insert N chars at a time.
1245 Don't call blink-paren-function.
1246 (Fself_insert_command): Adjust accordingly.
1247 (syms_of_cmds): Don't declare blink-paren-function.
1248
1249 2010-08-31 Kenichi Handa <handa@m17n.org>
1250
1251 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
1252 characters.
1253
1254 * term.c (encode_terminal_code): Fix the previous change.
1255 (produce_glyphs): Don't set it->char_to_display here.
1256 Don't handle unibyte-display-via-language-environment here.
1257 (produce_special_glyphs): Set temp_it.char_to_display before
1258 calling produce_glyphs.
1259
1260 * xdisp.c (get_next_display_element): Set it->char_to_display
1261 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
1262 characters.
1263 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
1264 calling PRODUCE_GLYPHS.
1265 (append_space_for_newline): Save and store it->char_to_display.
1266 Set it->char_to_display before calling PRODUCE_GLYPHS.
1267 (extend_face_to_end_of_line): Set it->char_to_display before
1268 calling PRODUCE_GLYPHS.
1269 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
1270 character to its byte value.
1271 (get_char_glyph_code): New function.
1272 (produce_stretch_glyph): Set it2.char_to_display too before
1273 calling x_produce_glyphs.
1274 (x_produce_glyphs): Simplify by using the same code for ASCII and
1275 non-ASCII characters. Don't set it->char_to_display here.
1276 Don't handle unibyte-display-via-language-environment here. For a
1277 character of no glyph, use font->space_width instead of FONT_WIDTH.
1278
1279 2010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
1280
1281 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
1282
1283 2010-08-31 Chong Yidong <cyd@stupidchicken.com>
1284
1285 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
1286
1287 2010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
1288
1289 * marker.c (Fcopy_marker): Make the first arg optional.
1290
1291 2010-08-30 Kenichi Handa <handa@m17n.org>
1292
1293 * composite.c (composition_update_it): Fix computing of
1294 cmp_it->width.
1295
1296 2010-08-29 Kenichi Handa <handa@m17n.org>
1297
1298 * term.c (encode_terminal_code): Encode byte chars to the
1299 corresponding bytes.
1300
1301 2010-08-29 Jan Djärv <jan.h.d@swipnet.se>
1302
1303 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
1304
1305 2010-08-26 Kenichi Handa <handa@m17n.org>
1306
1307 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
1308 on calling composition_compute_stop_pos.
1309
1310 2010-08-25 Kenichi Handa <handa@m17n.org>
1311
1312 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
1313 :otf.
1314
1315 * composite.c (composition_compute_stop_pos): Don't break
1316 composition at PT.
1317 (composition_reseat_it): Likewise. Fix calculation of character
1318 position starting a composition.
1319 (Fcomposition_get_gstring): Don't limit the number of components
1320 for automatic composition.
1321
1322 2010-08-25 Kenichi Handa <handa@m17n.org>
1323
1324 * composite.c (composition_compute_stop_pos): In forward search,
1325 pay attention to the possibility that some character after ENDPOS
1326 will be composed with charactrs before ENDPOS.
1327
1328 2010-08-24 Chong Yidong <cyd@stupidchicken.com>
1329
1330 * keyboard.c (command_loop_1): Don't clobber primary selection
1331 during handle-switch-frame (Bug#6872).
1332
1333 2010-08-23 Michael Albinus <michael.albinus@gmx.de>
1334
1335 * dbusbind.c: Accept UNIX domain sockets as bus address.
1336 (Fdbus_close_bus): New function.
1337 (Vdbus_registered_buses): New variable.
1338 (xd_initialize): Implement string as bus address.
1339 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
1340 (Fdbus_get_unique_name, Fdbus_call_method)
1341 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
1342 (Fdbus_method_error_internal, Fdbus_send_signal)
1343 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
1344 check. This is done in xd_initialize_bus. Adapt doc string, if
1345 necessary.
1346 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
1347 Vdbus_registered_buses.
1348 (Vdbus_registered_objects_table): Create hash.
1349
1350 2010-08-22 Juri Linkov <juri@jurta.org>
1351
1352 * keyboard.c (Fexecute_extended_command): Move reading a command name
1353 with `completing-read' to a new Elisp function `read-extended-command'.
1354 Call it to read a command to `function' (bug#5364, bug#5214).
1355
1356 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
1357
1358 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
1359
1360 2010-08-22 Andreas Schwab <schwab@linux-m68k.org>
1361
1362 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
1363 instead of SAFE_ALLOCA.
1364
1365 2010-08-22 Chong Yidong <cyd@stupidchicken.com>
1366
1367 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
1368 (Bug#6214).
1369
1370 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
1371
1372 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
1373
1374 2010-08-22 Jan Djärv <jan.h.d@swipnet.se>
1375
1376 * doc.c (Fsnarf_documentation): Initialize skip_file before
1377 build-files test.
1378
1379 2010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
1380
1381 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
1382 New definitions.
1383 (HAVE_TERMIO): Remove.
1384
1385 2010-08-22 Eli Zaretskii <eliz@gnu.org>
1386
1387 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
1388
1389 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
1390 for w32.
1391
1392 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
1393 it's done in nt/config.nt.
1394
1395 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
1396
1397 * unexcoff.c (report_error, make_hdr, write_segment)
1398 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
1399 Convert argument lists and prototypes to ANSI C.
1400 (make_hdr, write_segment): Remove unused variables.
1401 (unexec): Remove commented-out line. Initialize `new' to shut up
1402 compiler warnings.
1403
1404 2010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
1405
1406 Simplify termio code.
1407 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
1408 HAVE_TERMIO code is obsolete.
1409 Replace HAVE_TERMIOS conditionals with !DOS_NT.
1410 * systty.h: Do not define HAVE_TCATTR.
1411 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
1412 Do not define EMACS_HAVE_TTY_PGRP. Only define
1413 EMACS_GET_TTY_PGRP for !DOS_NT.
1414 * sysdep.c: Include sysselect.h unconditionally. Do not include
1415 sys/ioctl.h and termios.h, systty.h does it. Use
1416 HAVE_SYS_UTSNAME_H instead of USG as an include guard.
1417 (init_baud_rate): Remove HAVE_TERMIO code.
1418 (child_setup_tty): Remove HAVE_TERMIO code.
1419 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
1420 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
1421 (new_ltchars, new_tchars): Remove, unused.
1422 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
1423 code. Remove special casing for __mips__, it was a no-op. Remove
1424 HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
1425 (init_sys_modes): Remove HPUX special case.
1426 * process.c: Include stdlib.h unconditionally. Do not include
1427 fcntl.h, systty.h does it. Remove conditional code for
1428 HAVE_SERIAL, it is always true.
1429 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
1430 always true when SIGNALS_VIA_CHARACTERS is true.
1431 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
1432 !WINDOWSNT means HAVE_TERMIOS.
1433 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
1434 conditional, which is true for all HAVE_TERMIOS systems.
1435 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
1436 instead of HAVE_TERMIOS.
1437 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
1438 EMACS_HAVE_TTY_PGRP.
1439 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
1440 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
1441 anyway.
1442
1443 2010-08-21 Eli Zaretskii <eliz@gnu.org>
1444
1445 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
1446 mirroring pixel positions.
1447
1448 2010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
1449
1450 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
1451 write only.
1452 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
1453 malloc_sbrk_used, nothing uses them.
1454
1455 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
1456 defined, unconditionally defined in lisp.h.
1457
1458 * term.c: Do not include <termios.h>, systty.h does it.
1459
1460 * s/unixware.h (HAVE_TCATTR):
1461 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
1462 systty.h defines it when HAVE_TERMIOS is defined.
1463
1464 2010-08-20 Eli Zaretskii <eliz@gnu.org>
1465
1466 * dispnew.c (buffer_posn_from_coords): Fix last change for text
1467 terminals: add one-character offset for R2L lines.
1468
1469 * emacs.c <emacs_version>: Add a comment regarding
1470 msdos/mainmake.v2's dependency on the syntax of this declaration.
1471
1472 2010-08-20 Eli Zaretskii <eliz@gnu.org>
1473
1474 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
1475 position for R2L lines by mirroring the pixel position wrt the
1476 text are box. Improve commentary.
1477
1478 2010-08-20 Andreas Schwab <schwab@linux-m68k.org>
1479
1480 * image.c (imagemagick_clear_image): Remove debugging output.
1481
1482 2010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
1483
1484 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
1485 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
1486 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
1487 self-insert-face.
1488 (syms_of_cmds): Initialize the new vars.
1489
1490 2010-08-19 Jason Rumney <jasonr@gnu.org>
1491
1492 * w32menu.c (set_frame_menubar): Remove call to undefined function.
1493
1494 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
1495
1496 2010-08-19 Jan Djärv <jan.h.d@swipnet.se>
1497
1498 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
1499
1500 2010-08-18 Eli Zaretskii <eliz@gnu.org>
1501
1502 * xterm.c (x_draw_bar_cursor):
1503 * w32term.c (x_draw_bar_cursor): If the character under cursor is
1504 R2L, draw the bar cursor on its right rather than on its left.
1505
1506 2010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
1507
1508 * eval.c (Fdefmacro): Only obey one declaration.
1509
1510 * casefiddle.c (casify_region): Setup gl_state.
1511
1512 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
1513
1514 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
1515
1516 2010-08-18 Jan Djärv <jan.h.d@swipnet.se>
1517
1518 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
1519
1520 2010-08-18 David De La Harpe Golden <david@harpegolden.net>
1521
1522 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
1523 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
1524 QPRIMARY => NXPrimaryPboard.
1525 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
1526 NXPrimaryPboard => QPRIMARY.
1527 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
1528 NXSecondaryPboard = SecondarySelection.
1529 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
1530
1531 2010-08-18 Joakim Verona <joakim@verona.se>
1532
1533 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
1534 defined:
1535 (imagemagick_image_p): New function to test for ImageMagic image.
1536 (imagemagick_load): New function to load ImageMagick image.
1537 (imagemagick_load_image): New function, helper for imagemagick_load.
1538 (imagemagick-types): New function.
1539 (Qimagemagick): New Lisp_object.
1540 (imagemagick-render-type): New variable, decides which renderer to use.
1541
1542 2010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
1543
1544 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
1545 is a string.
1546
1547 2010-08-17 Jan Djärv <jan.h.d@swipnet.se>
1548
1549 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
1550 x_set_tool_bar_position handler.
1551
1552 2010-08-17 Eli Zaretskii <eliz@gnu.org>
1553
1554 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
1555 x_set_tool_bar_position handler, needed to support changes from
1556 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
1557
1558 2010-08-16 Jan Djärv <jan.h.d@swipnet.se>
1559
1560 * nsselect.m: include keyboard.h for QPRIMARY, remove its
1561 declaration (Bug#6863).
1562 (syms_of_nsselect): Don't intern QPRIMARY.
1563
1564 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
1565
1566 * keyboard.h (QPRIMARY): Declare (Bug#6864).
1567
1568 2010-08-16 Chong Yidong <cyd@stupidchicken.com>
1569
1570 * keyboard.c (command_loop_1): Avoid setting selection twice,
1571 since it's done in deactivate-mark as well.
1572 (Vselect_active_regions): Change default to t. Replace `lazy'
1573 with non-default value `only', meaning only set PRIMARY for
1574 temporarily active regions.
1575
1576 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
1577 select-active-regions.
1578
1579 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
1580
1581 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
1582 isn't a string.
1583
1584 2010-08-15 Andreas Schwab <schwab@linux-m68k.org>
1585
1586 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
1587
1588 2010-08-15 Jan Djärv <jan.h.d@swipnet.se>
1589
1590 * keyboard.c (parse_tool_bar_item): malloc buf.
1591 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
1592 new_lbl (Bug#6855).
1593
1594 2010-08-14 Eli Zaretskii <eliz@gnu.org>
1595
1596 * xterm.c (x_draw_stretch_glyph_string):
1597 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
1598 the cursor on the right edge of the stretch glyph.
1599
1600 * xdisp.c (window_box_right_offset, window_box_right):
1601 Fix commentary.
1602
1603 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
1604 direction when point is inside a run of whitespace characters.
1605
1606 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
1607
1608 2010-08-14 Jason Rumney <jasonr@gnu.org>
1609
1610 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
1611
1612 2010-08-14 Chong Yidong <cyd@stupidchicken.com>
1613
1614 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
1615
1616 2010-08-13 Jason Rumney <jasonr@gnu.org>
1617
1618 * w32menu.c (simple_dialog_show): Use unicode message box if available.
1619 (MessageBoxW_Proc): New function typedef.
1620 (unicode-message-box): New function pointer.
1621 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
1622
1623 2010-08-13 Jan Djärv <jan.h.d@swipnet.se>
1624
1625 * frame.h (Qtool_bar_position): Declare.
1626
1627 * xfns.c (Fx_create_frame): Call x_default_parameter for
1628 Qtool_bar_position.
1629
1630 2010-08-13 Eli Zaretskii <eliz@gnu.org>
1631
1632 * unexcoff.c: Remove the parts used when "emacs" is not defined.
1633 (report_error, report_error_1): Ditto.
1634 (write_segment): Remove "#if 0" unused code.
1635 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
1636 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
1637 (start_of_text): Remove unused function (was used only if NO_REMAP
1638 was NOT defined).
1639
1640 * msdos.c (IT_set_face): Fix format string to match argument
1641 types.
1642 (IT_write_glyphs, IT_note_mode_line_highlight)
1643 (IT_set_frame_parameters): Remove unused variables.
1644 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
1645 (IT_set_terminal_modes): Disambiguate expression in if clause.
1646 (Fmsdos_remember_default_colors): Return Qnil.
1647 (IT_set_frame_parameters): Add parens to disambiguate boolean
1648 expression for logging the cursor type to termscript.
1649 (keyboard_layout_list, keypad_translate_map)
1650 (grey_key_translate_map): Add braces in inner initializers.
1651 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
1652 (dos_rawgetc): Remove unused label.
1653 (XMenuActivate): Add braces to remove ambiguous `else'.
1654 (dos_ttraw): Always return a value.
1655 (spawnve): Declare.
1656 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
1657
1658 * dosfns.h (x_set_title): Declare.
1659
1660 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
1661 Remove unused variables.
1662
1663 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
1664 variables.
1665 (init_dosfns): Declare get_lim_data.
1666 (system_process_attributes): Declare Fget_internal_run_time.
1667
1668 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
1669 list to be consistent with menu.h.
1670
1671 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
1672 warnings due to mixing of "char *" and "const char *".
1673
1674 2010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
1675
1676 Introduce a new comment style "c" flag.
1677 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
1678 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
1679 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
1680 (syntax_prefix_flag_p): New function.
1681 (Fstring_to_syntax): Understand new "c" flag.
1682 (Finternal_describe_syntax_value): Recognize new flag; use the
1683 SYNTAX_FLAGS_* macros.
1684 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
1685 comment style to accomodate the new styles.
1686 (back_comment, forw_comment, Fforward_comment, scan_lists)
1687 (scan_sexps_forward): Update code to obey the new comment style flag.
1688
1689 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
1690
1691 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
1692
1693 2010-08-11 Jan Djärv <jan.h.d@swipnet.se>
1694
1695 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
1696 first.
1697 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
1698
1699 * gtkutil.h (xg_check_special_colors): Declare.
1700
1701 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
1702 (xg_create_frame_widgets): Connect theme name changes to
1703 style_changed_cb.
1704
1705 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
1706 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
1707 (x_term_init): Use char[] display_opt and name_opt instead of
1708 string literal. file is const char*.
1709
1710 * xsmfns.c (NOSPLASH_OPT): Change to char[].
1711 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
1712 props. Free them at the end.
1713
1714 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
1715
1716 * xrdb.c (get_system_app): Make path const and use char *p for
1717 non-const char.
1718
1719 * xmenu.c (Fx_popup_dialog): error_name is const char*.
1720 (xmenu_show): error parameter is const char **. pane_string is const
1721 char *.
1722 (button_names): Is const char *.
1723 (xdialog_show): error_name and pane_string is const.
1724
1725 * process.h (synch_process_death): Is const char*.
1726
1727 * w32menu.c (w32_menu_show):
1728 * nsmenu.m (ns_menu_show): error parameter is const char **.
1729
1730 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
1731 is const char **.
1732
1733 * menu.c (Fx_popup_menu): error_name is const.
1734
1735 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
1736 with unsigned char and XtPointer with void *.
1737
1738 * gtkutil.h: Replace widget_value with struct _widget_value.
1739 (enum button_type, struct _widget_value): Remove and use the one from
1740 keyboard.h.
1741
1742 * gtkutil.c (get_utf8_string): Always return an allocated string.
1743 Parameter is const.
1744 (create_dialog, xg_create_one_menuitem, create_menus)
1745 (xg_item_label_same_p, xg_update_menu_item): Free result from
1746 get_utf8_string.
1747 (xg_separator_p, xg_item_label_same_p): label is const.
1748
1749 * font.h (font_open_by_name): Make name const.
1750
1751 * font.c (font_open_by_name): Make name const.
1752
1753 * floatfns.c (matherr): Use a const char* variable for x->name.
1754
1755 * emacs.c (main): Pass char[] to putenv instead of literal.
1756
1757 * callproc.c (synch_process_death): Make const.
1758 (Fcall_process): Make signame const.
1759
1760 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
1761 (addDisplayItemWithImage): Use const char*.
1762
1763 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
1764 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
1765
1766 * nsfont.m (ns_descriptor_to_entity): Use const char*.
1767
1768 * keyboard.h (_widget_value): name, value and key are const char*.
1769
1770 * unexmacosx.c (unexec_error): Use const char *.
1771
1772 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
1773
1774 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
1775 (font_parse_name, font_open_by_name):
1776 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
1777 (font_parse_name, font_open_by_name): Remove const.
1778
1779 2010-08-09 Andreas Schwab <schwab@linux-m68k.org>
1780
1781 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
1782 definition.
1783
1784 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
1785 * m/amdx86-64.h: Likewise.
1786 * m/arm.h: Likewise.
1787 * m/hp800.h: Likewise.
1788 * m/ia64.h: Likewise.
1789 * m/ibmrs6000.h: Likewise.
1790 * m/ibms390.h: Likewise.
1791 * m/intel386.h: Likewise.
1792 * m/iris4d.h: Likewise.
1793 * m/m68k.h: Likewise.
1794 * m/macppc.h: Likewise.
1795 * m/mips.h: Likewise.
1796 * m/sh3.h: Likewise.
1797 * m/sparc.h: Likewise.
1798 * m/template.h: Likewise.
1799 * m/vax.h: Likewise.
1800 * m/xtensa.h: Likewise.
1801 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
1802 WORDS_BIG_ENDIAN.
1803 * lisp.h: Likewise.
1804 * md5.c: Likewise.
1805 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
1806
1807 2010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
1808
1809 Use const char* instead of char*.
1810 Reduce the number of warnings with -Wwrite-strings.
1811 * xrdb.c (get_environ_db, get_system_name):
1812 * unexelf.c (find_section):
1813 * term.c (string_cost, string_cost_one_line, per_line_cost)
1814 (get_named_tty, init_tty):
1815 * sysdep.c (sys_subshell):
1816 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
1817 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
1818 * search.c (Freplace_match):
1819 * process.c (Fmake_network_process, send_process, init_process):
1820 * lread.c (Fload, init_lread):
1821 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
1822 * keyboard.c (parse_tool_bar_item, struct event_head):
1823 * gtkutil.h (xg_get_font_name):
1824 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
1825 (make_widget_for_menu_item, make_menu_item, create_menus)
1826 (xg_make_tool_item):
1827 * font.c (parse_matrix, font_parse_name):
1828 * floatfns.c (rounding_driver, float_error_fn_name):
1829 * filelock.c (get_boot_time_1, lock_file_1):
1830 * fileio.c (barf_or_query_if_file_exists, check_writable):
1831 * editfns.c (get_system_name, get_operating_system_release)
1832 (Fencode_time, Fset_time_zone_rule):
1833 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
1834 * buffer.c (defvar_per_buffer): Use const.
1835
1836 2010-08-08 Kenichi Handa <handa@m17n.org>
1837
1838 * charset.c: Include <stdlib.h>.
1839 (struct charset_sort_data): New struct.
1840 (charset_compare): New function.
1841 (Fsort_charsets): New function.
1842 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
1843
1844 * coding.c (decode_coding_iso_2022): Fix checking of dimension
1845 number in CTEXT extended segment.
1846
1847 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
1848
1849 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
1850 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
1851
1852 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
1853
1854 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
1855 (Fhash_table_size): Fix typos in docstrings.
1856 (Fmake_hash_table): Doc fix.
1857
1858 2010-08-08 Juanma Barranquero <lekktu@gmail.com>
1859
1860 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
1861 Doc fix (bug#5625).
1862
1863 2010-08-08 Ken Brown <kbrown@cornell.edu>
1864
1865 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
1866 the MSDOS definition.
1867
1868 2010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
1869
1870 Use const char* instead of char*.
1871 * xterm.c (x_create_toolkit_scroll_bar):
1872 * xfont.c (xfont_list_pattern):
1873 * xfns.c (x_default_scroll_bar_color_parameter)
1874 (xic_create_fontsetname, x_default_font_parameter)
1875 (x_screen_planes):
1876 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
1877 (store_mode_line_string, decode_mode_spec, display_string):
1878 * menu.c (digest_single_submenu):
1879 * keymap.h (initial_define_key, initial_define_lispy_key):
1880 * keymap.c (initial_define_key, initial_define_lispy_key):
1881 * image.c (image_error, image_keyword):
1882 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
1883 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
1884 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
1885 (ftfont_list, ftfont_match):
1886 * frame.c (frame_parm_table):
1887 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
1888 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
1889 (font_add_log, font_deferred_log):
1890 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
1891 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
1892 (font_add_log, font_deferred_log):
1893 * emacs.c (argmatch):
1894 * dispextern.h (struct it):
1895 * coding.c (ENCODE_DESIGNATION):
1896 * charset.c (define_charset_internal): Use const.
1897
1898 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
1899
1900 * xrdb.c: Remove include guard.
1901 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1902 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
1903 realloc->xrealloc instead of using #defines.
1904
1905 2010-08-08 Eli Zaretskii <eliz@gnu.org>
1906
1907 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
1908 * editfns.c (Fline_beginning_position, Fline_end_position):
1909 State in the doc strings that start and end of line are in the
1910 logical order.
1911
1912 * xdisp.c (display_line): Move the handling of overlay arrow after
1913 the call to find_row_edges. (Bug#6699)
1914
1915 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
1916
1917 * keyboard.c (command_loop_1):
1918 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
1919
1920 2010-08-07 Chong Yidong <cyd@stupidchicken.com>
1921
1922 * insdel.c (prepare_to_modify_buffer): Save active region text to
1923 Vsaved_region_selection.
1924
1925 * xselect.c (QPRIMARY): Move to keyboard.c.
1926
1927 * keyboard.c (Vselect_active_regions): Move from simple.el.
1928 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
1929 (command_loop_1): Set window selection prior to deactivating the mark.
1930
1931 2010-08-07 Juanma Barranquero <lekktu@gmail.com>
1932
1933 * alloc.c (lisp_malloc):
1934 * buffer.c (set_buffer_internal, set_buffer_internal_1):
1935 * charset.h (emacs_mule_charset):
1936 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
1937 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
1938 (bitch_at_user):
1939 * lisp.h (Fcheck_coding_system, Fget_text_property)
1940 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
1941 Remove duplicate declarations.
1942
1943 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
1944
1945 * process.c: Simplify include logic.
1946
1947 * keyboard.h (quit_char): Add declaration.
1948 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
1949 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
1950 Add declarations.
1951 * sysdep.c:
1952 * w32.c: Remove the above declarations.
1953
1954 Remove extern declarations in .c files, .h files have them.
1955 * xterm.c:
1956 * xdisp.c:
1957 * msdos.c:
1958 * image.c:
1959 * gtkutil.c:
1960 * fileio.c:
1961 * eval.c: Remove declarations.
1962
1963 * frame.c (frame_params): Make const.
1964
1965 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
1966
1967 * emacs.c (emacs_copyright, emacs_version): Make static.
1968 (Vinitial_window_system, Vauto_save_list_file_name)
1969 (Vinhibit_redisplay): Remove declarations.
1970 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
1971 for AIX.
1972
1973 Use const for some arrays and functions.
1974 * xterm.h (xg_set_icon_from_xpm_data):
1975 * xfns.c (xg_set_icon_from_xpm_data):
1976 * term.c (fkeys):
1977 * keyboard.c (lispy_accent_keys, lispy_function_keys)
1978 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
1979 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
1980 (frame.c frame_parms):
1981 * emacs-icon.h (gnu_xpm_bits):
1982 * callint.c (callint_argfuns): Use const.
1983
1984 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
1985
1986 * sysdep.c: Move include term.h last of includes (Bug#6812).
1987
1988 2010-08-06 Eli Zaretskii <eliz@gnu.org>
1989
1990 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
1991
1992 * msdos.c (IT_display_cursor): Log cursor position on termscript.
1993
1994 * .gdbinit (pgx): Display the avoid_cursor_p flag.
1995
1996 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
1997
1998 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
1999
2000 2010-08-06 Jan Djärv <jan.h.d@swipnet.se>
2001
2002 * xterm.h (x_get_focus_frame): Declare.
2003
2004 * keyboard.h (poll_for_input_1): Unconditionally declare.
2005
2006 * nsterm.h (x_set_menu_bar_lines): Declare.
2007
2008 * window.c: Don't include menu.h, it depends on lots of other .h-files.
2009
2010 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
2011
2012 * window.c: Include menu.h.
2013
2014 * unexmacosx.c (print_region_list, print_regions)
2015 (build_region_list, find_emacs_zone_regions)
2016 (unexec_regions_merge, read_load_commands, dump_it)
2017 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
2018
2019 * term.c: Check HAVE_SYS_IOCTL_H.
2020
2021 * sysdep.c: Check HAVE_TERM_H.
2022
2023 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
2024
2025 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
2026 (ns_ring_bell, ns_defined_color, hide_hourglass)
2027 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
2028 Convert to ANSI C prototypes.
2029 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
2030 before code.
2031
2032 * nsterm.h : Include sysselect.h.
2033 (x_sync, x_get_focus_frame, x_set_mouse_position)
2034 (x_set_mouse_pixel_position, x_make_frame_visible)
2035 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
2036 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
2037 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
2038 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
2039 Declare.
2040
2041 * nsmenu.m (popup_activated, name_is_separator)
2042 (syms_of_nsmenu): Convert to ANSI C prototypes.
2043 (runMenuAt): Prototypes and move declarations before code.
2044
2045 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
2046
2047 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
2048 prototypes.
2049
2050 * nsfns.m (have_menus_p, ns_display_info_for_name)
2051 (x_set_cursor_type, ns_appkit_version_str)
2052 (ns_appkit_version_int, ns_do_applescript)
2053 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
2054 (syms_of_nsfns): Convert to ANSI C prototypes.
2055
2056 * menu.h (x_set_menu_bar_line): Declare.
2057 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
2058
2059 * lisp.h (fmod_float): Declare.
2060
2061 * image.c (xpm_scan, xpm_make_color_table_v)
2062 (xpm_put_color_table_v, xpm_get_color_table_v)
2063 (xpm_make_color_table_h, xpm_put_color_table_h)
2064 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
2065 (xpm_load): Convert to ANSI C prototypes.
2066
2067 * emacs.c: Include nsterm.h if HAVE_NS.
2068
2069 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
2070
2071 2010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
2072
2073 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
2074 subprocesses, only MSDOS does not define HAVE_SOCKETS.
2075 (socket_options): Use const char* for name.
2076
2077 2010-08-06 Juanma Barranquero <lekktu@gmail.com>
2078
2079 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
2080
2081 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
2082 Don't declare xmalloc_widget_value and digest_single_submenu.
2083
2084 * w32font.c (Qlatin): Remove declaration.
2085
2086 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
2087
2088 * dired.c (compile_pattern): Restore declaration.
2089
2090 2010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
2091
2092 Remove extern declarations in .c files, .h files have them.
2093 * data.c:
2094 * dired.c:
2095 * editfns.c:
2096 * filelock.c:
2097 * fns.c:
2098 * font.c:
2099 * fontset.c:
2100 * frame.c:
2101 * fringe.c:
2102 * ftfont.c:
2103 * gtkutil.c:
2104 * indent.c:
2105 * keyboard.c:
2106 * keymap.c:
2107 * lread.c:
2108 * menu.c:
2109 * print.c:
2110 * search.c:
2111 * sound.c:
2112 * window.c:
2113 * xdisp.c:
2114 * xfaces.c:
2115 * xfns.c:
2116 * xfont.c:
2117 * xftfont.c:
2118 * xmenu.c:
2119 * xterm.c: Remove declarations.
2120
2121 Cleanup syssignal.h.
2122 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
2123 (main_thread): Move down to remove #ifdef.
2124 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
2125 Remove conditional definition following unconditional ones.
2126
2127 * lisp.h: Remove HAVE_SHM code, unused.
2128 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
2129 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
2130 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
2131 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
2132 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
2133 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
2134 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
2135 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
2136 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
2137 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
2138 (Qwindow_scroll_functions, Vafter_load_alist)
2139 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
2140 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
2141 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
2142 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
2143 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
2144 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
2145 (initial_argv, last_nonmenu_event, load_in_progress)
2146 (noninteractive_need_newline, scroll_margin): Add declarations.
2147
2148 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
2149 declarations, menu.h has them.
2150 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
2151 (Vinput_method_function, Qinput_method_function)
2152 (Qevent_symbol_element_mask, last_event_timestamp):
2153 * dispextern.h (Voverflow_newline_into_fringe):
2154 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
2155 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
2156 (syms_of_w32font, syms_of_nsfont):
2157 * fontset.h (find_font_encoding, Qlatin):
2158 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
2159 (Vtool_bar_mode, set_frame_menubar):
2160 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
2161 * xterm.h (Qx_gtk_map_stock):
2162 * keymap.h (meta_prefix_char): Add declarations.
2163
2164 * term.c: Remove dead code.
2165
2166 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
2167 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
2168 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
2169 which is what was there before BSD_PGRPS was removed.
2170
2171 2010-08-05 Eli Zaretskii <eliz@gnu.org>
2172
2173 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
2174
2175 * unexcoff.c: Renamed from unexec.c.
2176
2177 2010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
2178
2179 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
2180
2181 2010-08-03 Johan Bockgård <bojohan@gnu.org>
2182
2183 * data.c (Flocal_variable_p): Handle variable aliases correctly.
2184 (Bug#6744)
2185
2186 2010-08-02 Jan Djärv <jan.h.d@swipnet.se>
2187
2188 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
2189 to TRUE if depth of screen is < 16.
2190
2191 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
2192 USE_GTK_TOOLTIP.
2193 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
2194 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
2195 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
2196 USE_GTK_TOOLTIP.
2197 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
2198
2199 * xterm.h (USE_GTK_TOOLTIP): New define.
2200 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
2201
2202 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
2203 to Control-D (Bug#6771).
2204
2205 2010-08-02 Juanma Barranquero <lekktu@gmail.com>
2206
2207 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
2208 Wording by Drew Adams <drew.adams@oracle.com>.
2209
2210 2010-08-01 Jan Djärv <jan.h.d@swipnet.se>
2211
2212 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
2213 ttip_lbl.
2214
2215 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
2216 calling gtk_widget_queue_draw.
2217 (x_free_frame_resources): Call xg_free_frame_widgets.
2218
2219 * xfns.c (x_gtk_use_system_tooltips): New variable.
2220 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
2221 new gtkutil tooltip functions to show the tooltip.
2222 (Fx_hide_tip): Call xg_hide_tooltip.
2223 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
2224
2225 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
2226 (xg_show_tooltip, xg_hide_tooltip): Declare.
2227
2228 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
2229 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
2230 New functions.
2231 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
2232 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
2233 Remove code that is commented out.
2234
2235 2010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
2236
2237 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
2238
2239 2010-07-31 Chong Yidong <cyd@stupidchicken.com>
2240
2241 * xselect.c (x_own_selection): Use list4.
2242
2243 2010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
2244
2245 * buffer.c (Qwindow): Do not define, already defined in data.c.
2246 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
2247
2248 2010-07-29 Chad Brown <yandros@mit.edu>
2249
2250 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
2251 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
2252 * config.in: Undef HAVE_DIRENT_H.
2253 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
2254 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
2255
2256 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
2257
2258 Rename s/usg5-4.h -> s/usg5-4-common.h.
2259 * s/usg5-4.h: Rename file to ...
2260 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
2261 * s/unixware.h:
2262 * s/sol2-6.h:
2263 * s/irix6-5.h: Update includes accordingly.
2264
2265 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
2266
2267 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
2268
2269 * xterm.h (struct x_output): Add toolbar_top_height,
2270 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
2271 Remove toolbar_height.
2272 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
2273 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
2274 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
2275 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
2276
2277 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
2278
2279 * xfns.c (x_set_tool_bar_position): New function.
2280 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
2281 (x_frame_parm_handlers): Add x_set_tool_bar_position.
2282 (syms_of_xfns): If USE_GTK, provide move-toolbar.
2283
2284 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
2285 and FRAME_TOOLBAR_LEFT_WIDTH.
2286
2287 * gtkutil.h (xg_change_toolbar_position): Declare.
2288
2289 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
2290 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
2291 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
2292 (xg_create_frame_widgets): Create a hobox for placing widgets
2293 vertically. Use gtk_box_pack_start.
2294 (xg_height_or_width_changed): Renamed from xg_height_changed.
2295 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
2296 (xg_update_frame_menubar, free_frame_menubar): Change to
2297 xg_height_or_width_changed.
2298 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
2299 size correctly. Remove hardcoded 4, instead use handlebox size -
2300 toolbar size.
2301 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
2302 size correctly. Use handlebox size + toolbar size as additional size.
2303 (xg_pack_tool_bar): POS is a new parameter.
2304 Set orientation of tool bar based on pos.
2305 Only make handlebox_widget if NULL.
2306 Check if tool bar goes to vbox or hbox depending on pos.
2307 (xg_update_tool_bar_sizes): New function.
2308 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
2309 height, call xg_update_tool_bar_sizes instead.
2310 (free_frame_tool_bar): Remove from hbox or vbox depending on
2311 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
2312 (xg_change_toolbar_position): New function.
2313
2314 * frame.h (struct frame): Add tool_bar_position.
2315 (Qbottom): Declare.
2316
2317 * frame.c (Qtool_bar_position): New variable.
2318 (make_frame): Set tool_bar_position to Qtop.
2319 (frame_parms): Add tool-bar-position.
2320 (x_report_frame_params): Store tool_bar_position.
2321 (x_set_fringe_width): Reset wm size hint after fringe changes.
2322
2323 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
2324
2325 Make lisp_time_argument declaration work on all systems.
2326 * lisp.h (lisp_time_argument): Move declaration ...
2327 * systime.h (lisp_time_argument): ... here
2328 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
2329
2330 2010-07-29 Jan Djärv <jan.h.d@swipnet.se>
2331
2332 * vm-limit.c (POINTER): Add typedef for it.
2333 (start_of_data): Change return type from POINTER to char *.
2334
2335 * frame.h (Qtty_color_mode): Move declaration out of ifdef
2336 HAVE_WINDOW_SYSTEM.
2337
2338 2010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
2339
2340 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
2341 Remove reference to __osf__, unused.
2342
2343 * mem-limits.h: Remove duplicated includes.
2344 (NULL): Remove definition, unused.
2345 (POINTER): Remove definition.
2346 (start_of_data): Use char* in prototype, as the function
2347 definition does.
2348
2349 Remove extern declarations from .c files, and them to .h files.
2350 * keyboard.h (Qhelp_echo, waiting_for_input)
2351 (input_available_clear_time, ignore_mouse_drag_p)
2352 (Vdouble_click_time, real_this_command, Vthis_original_command):
2353 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
2354 (Voverriding_local_map_menu_flag):
2355 * lisp.h (Qinteractive_form, use_file_dialog)
2356 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
2357 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
2358 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
2359 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
2360 (Qfunction, debug_on_next_call, Qfield)
2361 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
2362 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
2363 (Qfile_directory_p, Qinsert_file_contents)
2364 (Qcompletion_ignore_case, Qcompletion_ignore_case)
2365 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
2366 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
2367 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
2368 (Qminibuffer_prompt)
2369 (Vtemporary_file_directory,char_ins_del_vector, Qface):
2370 * xterm.h (gray_bitmap_width, gray_bitmap_height)
2371 (gray_bitmap_bits, xic_create_fontsetname):
2372 * coding.h (Vtranslation_table_for_input): Add extern declarations.
2373
2374 * xsmfns.c (Vuser_login_name):
2375 * xrdb.c (Vdouble_click_time):
2376 * xfaces.c (xic_create_fontsetname):
2377 * w32select.c (waiting_for_input):
2378 * print.c (minibuffer_auto_raise):
2379 * msdos.c (Qhelp_echo):
2380 * macros.c (real_this_command):
2381 * keymap.c (Voverriding_local_map):
2382 * xterm.c (poll_for_input_1, gray_bitmap_width)
2383 (gray_bitmap_height, gray_bitmap_bits;
2384 * xmenu.c ( Voverriding_local_map)
2385 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
2386 (use_file_dialog, Xt_app_con):
2387 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
2388 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
2389 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
2390 (Qtool_bar_lines, ignore_mouse_drag_p):
2391 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
2392 (Qrear_nonsticky, nconc2):
2393 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
2394 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
2395 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
2396 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
2397 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
2398 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
2399 (gc_in_progress):
2400 * doc.c (Voverriding_local_map, Qremap):
2401 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
2402 (Vcompletion_regexp_list):
2403 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
2404 (Qcompletion_ignore_case):
2405 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
2406 (Vhistory_length, Vthis_original_command, real_this_command)
2407 (Qface, Qminibuffer_prompt, history_delete_duplicates):
2408 * image.c (Qrisky_local_variable):
2409 * fontset.c (QCname):
2410 * fns.c (minibuffer_auto_raise, QCname):
2411 * dispnew.c (char_ins_del_cost):
2412 * composite.c (font_fill_lglyph_metrics):
2413 * cmds.c (Qface, Vtranslation_table_for_input):
2414 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
2415 * ccl.c (charset_unicode):
2416 * callproc.c (Vtemporary_file_directory):
2417 * buffer.c (emacs_strerror): Remove extern declarations.
2418
2419 * data.c (Qwindow): Make non-static, used from other files too.
2420 * frame.c (validate_x_resource_name): Remove shadow definition for i.
2421
2422 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
2423 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
2424 * s/usg5-4.h (COFF):
2425 * s/template.h:
2426 * s/msdos.h (COFF, NO_REMAP):
2427 * s/ms-w32.h (NO_REMAP):
2428 * s/hpux10-20.h (NO_REMAP):
2429 * m/sparc.h (SEGMENT_MASK):
2430 * m/m68k.h (NO_REMAP):
2431 * m/intel386.h (SEGMENT_MASK):
2432 * m/arm.h (NO_REMAP):
2433 * m/alpha.h (COFF):
2434 * m/template.h: Remove references to unused defines.
2435
2436 2010-07-28 Jan Djärv <jan.h.d@swipnet.se>
2437
2438 * xsettings.c (Ftool_bar_get_system_style): Also check for
2439 Qtext_image_horiz.
2440
2441 * xdisp.c (Qtext_image_horiz): Define.
2442 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
2443 to documentation of tool-bar-style.
2444
2445 * lisp.h (Qtext_image_horiz): Declare.
2446
2447 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
2448 style text_image_horiz.
2449
2450 2010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2451
2452 * emacs.c (Fkill_emacs): Remove return statement.
2453
2454 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
2455 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
2456 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
2457 local extern declarations.
2458
2459 * xmenu.c: Do not included lwlib.h, not needed.
2460
2461 * m/iris4d.h (XUINT, XSET): Remove, not needed.
2462
2463 * process.c: Move definitions earlier to minimize #ifdefs.
2464
2465 * xterm.h (x_get_customization_string, x_load_resources)
2466 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
2467 (x_check_errors, x_property_data_to_lisp, defined_color)
2468 (xic_set_xfontset, x_defined_color): Use const.
2469
2470 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
2471 (x_text_icon, x_check_errors, x_connection_closed): Use const.
2472
2473 * xselect.c (selection_data_to_lisp_data)
2474 (x_property_data_to_lisp):
2475 * xrdb.c (x_get_string_resource, file_p)
2476 (x_get_customization_string, magic_file_p, search_magic_path)
2477 (get_system_app, get_user_app, x_load_resources, x_get_resource)
2478 (x_get_string_resource): Use const.
2479
2480 * xfns.c: Include xlwmenu.h when USE_LUCID.
2481 (x_defined_color, xic_set_xfontset): Use const.
2482 (Fx_hide_tip): Remove local extern declaration.
2483
2484 * xfaces.c (Qmouse_face): Remove declaration.
2485 (face_color_gray_p, tty_defined_color, defined_color)
2486 (face_color_gray_p, face_color_supported_p): Add const.
2487
2488 * xdisp.c (do_mouse_tracking): Remove declaration.
2489 (add_to_log): Use const.
2490
2491 * minibuf.c (Qmouse_face): Remove declaration.
2492
2493 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
2494
2495 * keyboard.h (do_mouse_tracking): Add declaration.
2496
2497 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
2498 (QCdata, QCtype, Qcenter): Remove declarations.
2499
2500 * frame.c (x_get_resource_string, x_get_string_resource)
2501 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
2502 (x_default_parameter): Use const.
2503
2504 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
2505 (QCheight, QCsize, QCname): Remove declarations.
2506
2507 * emacs.c (main): Remove local extern declaration.
2508
2509 * editfns.c (region_limit, syms_of_editfns): Remove local extern
2510 declarations.
2511
2512 * dispnew.c: Remove duplicate #include <unistd.h>.
2513 (update_window, update_frame_1, init_display): Remove local extern
2514 declarations.
2515
2516 * dispextern.h (add_to_log): Remove declaration.
2517 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
2518 (x_frame_get_and_record_arg, x_default_parameter): Add const.
2519
2520 * dired.c (scmp): Add const.
2521 (directory_files_internal): Remove local extern declaration.
2522
2523 * data.c (Finteractive_form): Use const.
2524
2525 * composite.c (syms_of_composite): Remove local extern declarations.
2526
2527 * charset.c (add_to_log): Remove declaration.
2528
2529 * character.c (strwidth, parse_str_to_multibyte): Add const.
2530
2531 * character.h (strwidth, parse_str_to_multibyte): Likewise.
2532
2533 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
2534
2535 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
2536 (Lisp_Subr): Make doc and intspec constant.
2537 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
2538 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
2539 (QCheight, QCsize, QCname, QCwidth, QCforeground)
2540 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
2541 (display_arg): Add declarations.
2542
2543 2010-07-27 Christoph Scholtes <cschol2112@gmail.com>
2544
2545 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
2546
2547 * window.c (Fwindow_height): Doc fix (bug#6518).
2548
2549 2010-07-27 Juanma Barranquero <lekktu@gmail.com>
2550
2551 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
2552
2553 2010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
2554
2555 * keyboard.c (Ftop_level, Fexit_recursive_edit)
2556 (Fabort_recursive_edit): Remove return statements in NO_RETURN
2557 functions.
2558
2559 * frame.h (Qtty_color_mode): Add declaration.
2560
2561 * lisp.h (Ftop_level, Fexit_recursive_edit)
2562 (Fabort_recursive_edit): Mark as NO_RETURN.
2563
2564 2010-07-26 Kenichi Handa <handa@m17n.org>
2565
2566 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
2567 number of glyphs gets smaller than the original length. (Bug#6621)
2568
2569 2010-07-26 Juanma Barranquero <lekktu@gmail.com>
2570
2571 * lread.c (unreadpure, mapatoms_1): Make static.
2572
2573 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
2574
2575 * terminfo.c (tparam): Fix prototype of tparm.
2576
2577 2010-07-25 Andreas Schwab <schwab@linux-m68k.org>
2578
2579 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
2580 find start of text segment.
2581 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
2582 is defined.
2583
2584 * callproc.c (set_initial_environment): Avoid unbalanced braces.
2585
2586 2010-07-25 Ken Brown <kbrown@cornell.edu>
2587
2588 * vm-limit.c (check_memory_limits): Fix previous change;
2589 accidentally reverted an earlier change.
2590
2591 2010-07-25 Ken Brown <kbrown@cornell.edu>
2592
2593 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
2594 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
2595
2596 2010-07-25 Juanma Barranquero <lekktu@gmail.com>
2597
2598 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
2599 * dired.c (opendir, readdir): Fix prototypes.
2600 * editfns.c (w32_get_internal_run_time): Fix prototypes.
2601 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
2602 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
2603 (telldir): Remove declaration.
2604 * ralloc.c (real_morecore, __morecore): Fix prototypes.
2605 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
2606 * syssignal.h (strsignal): Fix prototype.
2607 * term.c (tparam): Fix prototype.
2608 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
2609 (term_get_fkeys): Set inside "#ifndef DOS_NT".
2610 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
2611 and __morecore.
2612 * w32gui.h (XParseGeometry): Fix prototype.
2613 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
2614 * w32term.c (my_set_focus): Declare inside #if 0.
2615 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
2616 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
2617 (drain_message_queue, get_next_msg, post_msg, parse_button)
2618 (ClipboardSequence_Proc): Fix prototypes.
2619 (wait_for_sync): Remove declaration.
2620
2621 2010-07-24 Juanma Barranquero <lekktu@gmail.com>
2622
2623 * w32fns.c (w32_to_x_color): Remove, unused.
2624
2625 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
2626
2627 * lisp.h: Remove leftover P_.
2628
2629 2010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
2630
2631 * ecrt0.c, unexalpha.c: Remove files, unused.
2632
2633 2010-07-24 Andreas Schwab <schwab@linux-m68k.org>
2634
2635 * cmds.c (internal_self_insert): Make static.
2636 * lisp.h (internal_self_insert): Remove declaration.
2637
2638 2010-07-23 Juanma Barranquero <lekktu@gmail.com>
2639
2640 * alloc.c (free_float):
2641 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
2642 * frame.c (delete_frame_handler):
2643 * ralloc.c (reorder_bloc):
2644 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
2645 Remove unused static functions.
2646
2647 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
2648 it is called only from NS code.
2649
2650 * w32term.c (my_set_focus): #ifdef away; it is called only from
2651 "#ifdef 0" code.
2652
2653 * w32fns.c (x_edge_detection):
2654 * xfaces.c (may_use_scalable_font_p):
2655 Remove obsolete static declarations.
2656
2657 2010-07-20 Juanma Barranquero <lekktu@gmail.com>
2658
2659 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
2660 (emacs_blocked_realloc, uninterrupt_malloc):
2661 * fringe.c (w32_reset_fringes):
2662 * image.c (convert_mono_to_color_image, lookup_rgb_color)
2663 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
2664 * sound.c (be2hs, do_play_sound):
2665 * vm-limit.c (get_lim_data, ret_lim_data):
2666 * w32term.c (x_free_frame_resources):
2667 * xfaces.c (x_create_gc, x_free_gc):
2668 Convert definitions to standard C.
2669
2670 2010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
2671
2672 * eval.c (Feval, Ffuncall): Use the new names.
2673
2674 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
2675 (DEFUN): Add braces around the union initialisation and use ## to
2676 specify the right union alternative and avoid a cast.
2677
2678 2010-07-18 Juanma Barranquero <lekktu@gmail.com>
2679
2680 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
2681
2682 2010-07-17 Chong Yidong <cyd@stupidchicken.com>
2683
2684 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
2685
2686 2010-07-17 Jan Djärv <jan.h.d@swipnet.se>
2687
2688 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
2689 is related to the menu bar (Bug#6499).
2690 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
2691
2692 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
2693
2694 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
2695
2696 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
2697
2698 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
2699 i.e. don't put back ButtonRelease (Bug#6608).
2700
2701 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
2702 instead of Window. Call xg_event_is_for_menubar when
2703 USE_GTK (Bug#6499).
2704
2705 * gtkutil.h (xg_event_is_for_menubar): Declare.
2706
2707 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
2708
2709 2010-07-16 Eli Zaretskii <eliz@gnu.org>
2710
2711 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
2712 when it's the same as the old foreground. (Bug#6609)
2713
2714 2010-07-16 Jan Djärv <jan.h.d@swipnet.se>
2715
2716 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
2717 widget is non-null (Bug#6645).
2718
2719 2010-07-15 Andreas Schwab <schwab@linux-m68k.org>
2720
2721 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
2722 Convert old-style definition.
2723
2724 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
2725 timestamp argument.
2726
2727 2010-07-15 Eli Zaretskii <eliz@gnu.org>
2728
2729 * fringe.c (update_window_fringes): Restore mistakenly reverted
2730 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
2731
2732 2010-07-14 Jan Djärv <jan.h.d@swipnet.se>
2733
2734 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
2735 (SET_SAVED_KEY_EVENT): Remove (not used).
2736 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
2737 remove size parameter.
2738 (handle_one_xevent): Check popup_activated () for menu for Xt also.
2739 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
2740 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
2741 ButtonRelease.
2742 (x_set_window_size_1): scroll_bar_actual_width is always
2743 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
2744
2745 * xdisp.c (pending_menu_activation): Remove extern declaration.
2746 (prepare_menu_bars): Remove setting of pending_menu_activation.
2747
2748 * xmenu.c (pending_menu_activation): Remove.
2749 (x_activate_menubar): Set popup_activated_flag for Xt also.
2750 Remove setting of pending_menu_activation.
2751 (set_frame_menubar): Remove check of pending_menu_activation.
2752 Declare menubar_size before code. Correct spelling in comment.
2753
2754 2010-07-14 Kenichi Handa <handa@m17n.org>
2755
2756 * font.c (font_open_entity): Cancel previous change.
2757 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
2758
2759 2010-07-13 Eli Zaretskii <eliz@gnu.org>
2760
2761 Remove subprocesses #ifdefs.
2762 * process.c <inhibit_sentinels>: Move to the common part.
2763 (Fwaiting_for_user_input_p): Move to the common part; return nil
2764 if async subprocesses aren't supported.
2765 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
2766 MS-DOS. Remove "#ifdef subprocesses".
2767 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
2768 (gettimeofday): Remove "#ifdef subprocesses".
2769 (wait_without_blocking): Remove function.
2770 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
2771 Remove "#ifdef subprocesses".
2772 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
2773 compiled on MS-DOS.
2774 * callproc.c (Fcall_process) [!MSDOS]: Don't call
2775 wait_for_termination on MS-DOS.
2776 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
2777 initialization of inhibit_sentinels.
2778 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
2779 subprocesses" conditional.
2780 * callproc.c (Fcall_process) [!subprocesses]: Don't call
2781 wait_for_termination, since `buffer' cannot be an integer when
2782 async subprocesses are not supported
2783 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
2784 for ifdefing away the call to Fprocess_status.
2785
2786 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
2787 away the entire body of the function.
2788
2789 2010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
2790
2791 Remove subprocesses #ifdefs from term.c.
2792 * process.c (add_keyboard_wait_descriptor)
2793 (delete_keyboard_wait_descriptor): Move to common section, do
2794 nothing when subprocesses is not defined.
2795 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
2796 Remove subprocesses #ifdefs.
2797
2798 Convert maybe_fatal to standard C.
2799 * lisp.h (verror): Declare.
2800 * eval.c (verror): New function containing the code from ...
2801 (error): ... this. Call verror.
2802 * term.c (vfatal): New function containing the code from ...
2803 (fatal): ... this. Call vfatal.
2804 (maybe_fatal): Convert to standard C, use variable number of
2805 arguments. Declare as non-return.
2806 (init_tty): Fix maybe_fatal call.
2807
2808 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2809
2810 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
2811 (_scroll_bar_note_movement): Convert definitions to standard C.
2812 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
2813 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
2814
2815 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2816
2817 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
2818 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
2819 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
2820 (xaw_jump_callback, xaw_scroll_callback)
2821 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
2822 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
2823 definitions to standard C.
2824 * xmenu.c (menubar_id_to_frame, popup_get_selection)
2825 (popup_activate_callback, popup_deactivate_callback)
2826 (menu_highlight_callback, menubar_selection_callback)
2827 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
2828 (free_frame_menubar, popup_selection_callback, as)
2829 (create_and_show_popup_menu, dialog_selection_callback)
2830 (create_and_show_dialog):
2831 * xfns.c (hack_wm_protocols, x_window):
2832 * xfaces.c (x_update_menu_appearance):
2833 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
2834 (char_to_pixel_size, round_size_to_char, get_wm_shell)
2835 (set_frame_size, update_wm_hints, setup_frame_gcs)
2836 (update_various_frame_slots, update_from_various_frame_slots)
2837 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
2838 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
2839 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
2840
2841 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2842
2843 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
2844
2845 2010-07-12 Eli Zaretskii <eliz@gnu.org>
2846
2847 * process.c (setup_process_coding_systems): Move to the part
2848 shared by non-subprocesses systems, and make its body empty when
2849 subprocesses is not defined.
2850 (close_process_descs): Move to the part shared by non-subprocesses
2851 systems.
2852 (wait_reading_process_output) [!subprocesses]: Convert arg list to
2853 ANSI C.
2854
2855 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2856
2857 * editfns.c (transpose_markers): Convert old-style definition.
2858 * emacs.c (abort, shut_down_emacs, fixup_locale)
2859 (synchronize_system_time_locale)
2860 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
2861 * floatfns.c (extract_float, matherr, init_floatfns)
2862 (syms_of_floatfns): Likewise.
2863 * fns.c (make_hash_table): Likewise.
2864 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
2865 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
2866 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
2867 (ftfont_variation_glyphs): Likewise.
2868 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
2869 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
2870 * lread.c (read_filtered_event): Likewise.
2871 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
2872 * process.c (wait_reading_process_output): Likewise.
2873 * scroll.c (do_line_insertion_deletion_costs): Likewise.
2874 * search.c (search_buffer, boyer_moore): Likewise.
2875 * syntax.c (scan_sexps_forward): Likewise.
2876 * xdisp.c (try_scrolling): Likewise.
2877 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
2878 (face_at_string_position): Likewise.
2879 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
2880 * xselect.c (x_get_window_property, receive_incremental_selection)
2881 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
2882 Likewise.
2883 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
2884
2885 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
2886
2887 * callproc.c (child_setup): Remove subprocesses conditional.
2888 Remove code dealing with SET_EMACS_PRIORITY, unused.
2889
2890 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2891 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
2892
2893 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
2894 (__do_global_dtors, __main): Use void in definition.
2895 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
2896 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
2897 the only users from ...
2898 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
2899 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
2900 (HAVE_VOLATILE): Remove, unused.
2901
2902 Convert more function definitions to standard C.
2903 * xdisp.c (window_box_edges, handle_single_display_spec)
2904 (display_string): Convert definition to standard C.
2905 * scroll.c (do_direct_scrolling, scrolling_1):
2906 * dispnew.c (allocate_matrices_for_frame_redisplay)
2907 (mirrored_line_dance):
2908 * coding.c (code_convert_string):
2909 * charset.c (map_charset_chars):
2910 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
2911 (Fregister_ccl_program, Fregister_code_conversion_map):
2912 * keyboard.c (kbd_buffer_nr_stored): Likewise.
2913 (head_table): Make static and const.
2914
2915 2010-07-12 Andreas Schwab <schwab@linux-m68k.org>
2916
2917 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
2918 (PROFILING_LDFLAGS): Set from substitution.
2919 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
2920 CFLAGS last.
2921
2922 2010-07-12 Kenichi Handa <handa@m17n.org>
2923
2924 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
2925 (shortlisp): Likewise.
2926
2927 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
2928
2929 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
2930 of FONT_ENTITY_INDEX.
2931 (Ffont_get): If KEY is :otf and the font-object doesn't have the
2932 property, get the property value dynamically.
2933 (Ffont_put): Accept font-entity and font-object too.
2934 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
2935 return value changed.
2936 (syms_of_font): Adjusted for the above change.
2937
2938 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
2939
2940 * blockinput.h: Remove obsolete comment.
2941
2942 * lisp.h: Include <stddef.h>.
2943 (OFFSETOF): Don't define.
2944 (VECSIZE): Use offsetof instead of OFFSETOF.
2945 (PSEUDOVECSIZE): Likewise.
2946 * process.c (conv_sockaddr_to_lisp): Likewise.
2947 * alloc.c: Don't include <stddef.h>.
2948 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
2949
2950 * process.c: Remove obsolete comment.
2951
2952 2010-07-11 Chong Yidong <cyd@stupidchicken.com>
2953
2954 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
2955
2956 2010-07-11 Andreas Schwab <schwab@linux-m68k.org>
2957
2958 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
2959 index, rindex.
2960 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
2961 * editfns.c (Fuser_full_name, Fformat): Likewise.
2962 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
2963 * fileio.c (Ffile_symlink_p): Likewise.
2964 * filelock.c (current_lock_owner): Likewise.
2965 * font.c (font_parse_name, font_parse_family_registry): Likewise.
2966 * fontset.c (fontset_pattern_regexp): Likewise.
2967 * lread.c (read1): Likewise.
2968 * sysdep.c (init_system_name): Likewise.
2969 * xfns.c (select_visual): Likewise.
2970 * s/hpux10-20.h (index, rindex): Don't define.
2971 * s/ms-w32.h (index): Likewise.
2972 * s/usg5-4.h: Likewise.
2973
2974 * callproc.c (relocate_fd): Use F_DUPFD if defined.
2975
2976 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
2977 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
2978 (egetenv): Likewise.
2979 * doprnt.c (doprnt): Likewise.
2980 * editfns.c (set_time_zone_rule, format2): Likewise.
2981 * emacs.c (decode_env_path): Likewise.
2982 * eval.c (signal_error, error): Likewise.
2983 * insdel.c (replace_range_2): Likewise.
2984 * keyboard.c (cmd_error_internal): Likewise.
2985 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
2986 * print.c (write_string, write_string_1, print_error_message):
2987 Likewise.
2988 * vm-limit.c (warn_function, memory_warnings): Likewise.
2989 * xdisp.c (message1, message1_nolog, message_with_string)
2990 (vmessage, message, message_nolog): Likewise.
2991 * emacs.c: Remove duplicate declaration.
2992 * keyboard.h: Likewise.
2993 * lisp.h: Update prototypes.
2994
2995 * eval.c: Fix indentation problem.
2996
2997 * keyboard.c: Include "process.h"
2998
2999 * eval.c: Remove obsolete noinline declaration.
3000 * fns.c: Likewise.
3001
3002 2010-07-11 Ken Raeburn <raeburn@raeburn.org>
3003
3004 * doprnt.c (doprnt): Take a va_list argument instead of count and
3005 pointer.
3006 * eval.c (error): Change to a standard-C variadic function.
3007 * xdisp.c (vmessage): Renamed from message, made static, and
3008 changed to take a va_list argument.
3009 (message): New variadic wrapper.
3010 (message_nolog): Now a variadic function, calling vmessage.
3011 * lisp.h: Include stdarg.h for va_list.
3012 (doprnt, error, message, message_nolog): Decls updated.
3013
3014 2010-07-11 Eli Zaretskii <eliz@gnu.org>
3015
3016 * process.c (syms_of_process) <delete-exited-processes>: Define
3017 even if !subprocesses.
3018 (delete_exited_processes): Ditto.
3019
3020 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
3021 (delete_exited_processes): Don't define.
3022
3023 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
3024
3025 * frame.c (make_frame): Initialize menu_bar_lines and
3026 tool_bar_lines members.
3027 (make_initial_frame, make_terminal_frame): Initialize
3028 menu_bar_lines using value of menu-bar-mode.
3029
3030 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
3031
3032 2010-07-10 Eli Zaretskii <eliz@gnu.org>
3033
3034 * process.c: Reshuffle #include's. Condition some of the global
3035 and static variables on `subprocesses'.
3036 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
3037 Leave only one implementation.
3038 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
3039 (kill_buffer_processes, Flist_system_processes)
3040 (Fprocess_attributes, init_process, syms_of_process): Unify the
3041 implementations for with subprocesses and without them.
3042
3043 2010-07-09 Jan Djärv <jan.h.d@swipnet.se>
3044
3045 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
3046 correct size for Motif.
3047 (free_frame_menubar): Call x_set_window_size to update frame size.
3048
3049 * xfns.c (x_window): Set borderWidth to 0 for pane and
3050 EmacsFrame. Frame size calculation is wrong otherwise.
3051
3052 2010-07-09 Michael Albinus <michael.albinus@gmx.de>
3053
3054 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
3055 allows to suppress errors when polling in Emacs' main loop.
3056 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
3057 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
3058 (Fdbus_method_error_internal, Fdbus_send_signal)
3059 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
3060 (Fdbus_register_method): Use it. (Bug#6579)
3061
3062 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
3063
3064 * alloc.c: Convert DEFUNs to standard C.
3065 * buffer.c:
3066 * bytecode.c:
3067 * callint.c:
3068 * callproc.c:
3069 * casefiddle.c:
3070 * casetab.c:
3071 * category.c:
3072 * character.c:
3073 * charset.c:
3074 * chartab.c:
3075 * cmds.c:
3076 * coding.c:
3077 * composite.c:
3078 * data.c:
3079 * dbusbind.c:
3080 * dired.c:
3081 * dispnew.c:
3082 * doc.c:
3083 * dosfns.c:
3084 * editfns.c:
3085 * emacs.c:
3086 * eval.c:
3087 * fileio.c:
3088 * filelock.c:
3089 * floatfns.c:
3090 * fns.c:
3091 * font.c:
3092 * fontset.c:
3093 * frame.c:
3094 * fringe.c:
3095 * image.c:
3096 * indent.c:
3097 * insdel.c:
3098 * keyboard.c:
3099 * keymap.c:
3100 * lread.c:
3101 * macros.c:
3102 * marker.c:
3103 * menu.c:
3104 * minibuf.c:
3105 * msdos.c:
3106 * nsfns.m:
3107 * nsmenu.m:
3108 * nsselect.m:
3109 * print.c:
3110 * process.c:
3111 * search.c:
3112 * sound.c:
3113 * syntax.c:
3114 * term.c:
3115 * terminal.c:
3116 * textprop.c:
3117 * undo.c:
3118 * w16select.c:
3119 * w32console.c:
3120 * w32fns.c:
3121 * w32font.c:
3122 * w32menu.c:
3123 * w32proc.c:
3124 * w32select.c:
3125 * window.c:
3126 * xdisp.c:
3127 * xfaces.c:
3128 * xfns.c:
3129 * xmenu.c:
3130 * xselect.c:
3131 * xsettings.c:
3132 * xsmfns.c: Likewise.
3133
3134 2010-07-08 Eli Zaretskii <eliz@gnu.org>
3135
3136 * process.c (kbd_is_on_hold, hold_keyboard_input)
3137 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
3138
3139 2010-07-08 Jan Djärv <jan.h.d@swipnet.se>
3140
3141 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
3142 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
3143 unless USE_LUCID.
3144
3145 2010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
3146
3147 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
3148 declaration.
3149
3150 Clean up include guards.
3151 * tparam.c: Remove include guards for config.h, string.h and code
3152 that assumes #ifndef emacs.
3153 * termcap.c:
3154 * unexalpha.c:
3155 * sysdep.c:
3156 * filemode.c:
3157 * filelock.c:
3158 * bidi.c: Likewise.
3159
3160 Remove prefix-args.c
3161 * prefix-args.c: Remove file.
3162 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
3163 * Makefile.in (temacs${EXEEXT}): Remove references to
3164 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
3165 (mostlyclean): Remove reference to prefix-args.
3166 (prefix-args): Remove.
3167
3168 Simplify cstart_of_data, start_of_code and related code.
3169 * mem-limits.h: Remove !emacs and _LIBC conditional code.
3170 (start_of_data): Merge into start_of_data function.
3171 * sysdep.c (start_of_text): Remove. Move simplified versions of
3172 it in the only users: unexaix.c and unexec.c.
3173 (read_input_waiting): Remove local declaration of quit_char.
3174 (start, etext): Remove declarations.
3175 (start_of_data): Merge with the version in mem-limits.h and move
3176 to vm-limits.c.
3177 * vm-limit.c (start_of_data): Merged and simplified version of the
3178 code formerly in mem-limits.h and sysdep.c.
3179 * unexec.c (start): New declaration, moved from sysdep.c.
3180 (start_of_text): Simplified version of the code formerly in sysdep.c.
3181 * unexaix.c (start_of_text): Simplified version of the code
3182 formerly in sysdep.c.
3183 * m/alpha.h (HAVE_TEXT_START): Remove.
3184 (TEXT_START): Move ...
3185 * unexalpha.c (TEXT_START): ... here.
3186 * s/hpux10-20.h (TEXT_START): Remove.
3187 * s/darwin.h (TEXT_START):
3188 * m/mips.h (TEXT_START):
3189 * m/macppc.h (HAVE_TEXT_START):
3190 * m/m68k.h (TEXT_START):
3191 * m/iris4d.h (TEXT_START):
3192 * m/intel386.h (TEXT_START):
3193 * m/ibmrs6000.h (TEXT_START):
3194 * m/ia64.h (HAVE_TEXT_START):
3195 * s/msdos.h (TEXT_START): Likewise.
3196
3197 2010-07-07 Andreas Schwab <schwab@linux-m68k.org>
3198
3199 * alloc.c (overrun_check_malloc, overrun_check_realloc)
3200 (overrun_check_free, xstrdup, allocate_string)
3201 (allocate_string_data, compact_small_strings, Fmake_string)
3202 (make_unibyte_string, make_multibyte_string)
3203 (make_string_from_bytes, make_specified_string, make_float)
3204 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
3205 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
3206 memcpy, memmove, memset, memcmp.
3207 * atimer.c (start_atimer, set_alarm): Likewise.
3208 * buffer.c (clone_per_buffer_values, report_overlay_modification)
3209 (mmap_realloc, init_buffer_once): Likewise.
3210 * callint.c (Fcall_interactively): Likewise.
3211 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
3212 (getenv_internal_1): Likewise.
3213 * casefiddle.c (casify_object): Likewise.
3214 * ccl.c (ccl_driver): Likewise.
3215 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
3216 * charset.c (load_charset_map_from_file)
3217 (load_charset_map_from_file, load_charset_map_from_vector)
3218 (Fdefine_charset_internal): Likewise.
3219 * cm.c (Wcm_clear): Likewise.
3220 * coding.c (decode_eol, decode_coding_object)
3221 (Fset_coding_system_priority, make_subsidiaries): Likewise.
3222 * data.c (Faset): Likewise.
3223 * dired.c (directory_files_internal, file_name_completion_stat):
3224 Likewise.
3225 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
3226 (clear_glyph_row, copy_row_except_pointers)
3227 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
3228 (save_current_matrix, restore_current_matrix)
3229 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
3230 (mirror_line_dance, scrolling_window): Likewise.
3231 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
3232 Likewise.
3233 * doprnt.c (doprnt): Likewise.
3234 * editfns.c (Fuser_full_name, make_buffer_string_both)
3235 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
3236 * emacs.c (sort_args): Likewise.
3237 * eval.c (Fapply, Ffuncall): Likewise.
3238 * fileio.c (Ffile_name_directory, make_temp_name)
3239 (Fexpand_file_name, search_embedded_absfilename)
3240 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
3241 (auto_save_error): Likewise.
3242 * fns.c (Fstring_equal, Fcopy_sequence, concat)
3243 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
3244 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
3245 (Fmake_hash_table): Likewise.
3246 * fringe.c (Fdefine_fringe_bitmap): Likewise.
3247 * ftfont.c (ftfont_text_extents): Likewise.
3248 * getloadavg.c (getloadavg): Likewise.
3249 * image.c (define_image_type, make_image, make_image_cache)
3250 (x_create_x_image_and_pixmap, xbm_image_p)
3251 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
3252 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
3253 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
3254 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
3255 (tiff_image_p, tiff_read_from_memory, gif_image_p)
3256 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
3257 Likewise.
3258 * indent.c (scan_for_column, compute_motion): Likewise.
3259 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
3260 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
3261 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
3262 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
3263 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
3264 (store_user_signal_events, menu_bar_items, tool_bar_items)
3265 (process_tool_bar_item, append_tool_bar_item)
3266 (read_char_minibuf_menu_prompt, read_key_sequence)
3267 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
3268 Likewise.
3269 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
3270 Likewise.
3271 * lisp.h (STRING_COPYIN): Likewise.
3272 * lread.c (Fload, read1, oblookup): Likewise.
3273 * msdos.c (Frecent_doskeys): Likewise.
3274 * nsfns.m (Fx_create_frame): Likewise.
3275 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
3276 Likewise.
3277 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
3278 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
3279 Likewise.
3280 * nsmenu.m (ns_update_menubar): Likewise.
3281 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
3282 * print.c (print_unwind, printchar, strout, print_string)
3283 (print_error_message): Likewise.
3284 * process.c (conv_lisp_to_sockaddr, set_socket_option)
3285 (Fmake_network_process, Fnetwork_interface_list)
3286 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
3287 (init_process): Likewise.
3288 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
3289 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
3290 Likewise.
3291 * scroll.c (do_scrolling, do_direct_scrolling)
3292 (scrolling_max_lines_saved): Likewise.
3293 * search.c (search_buffer, wordify, Freplace_match): Likewise.
3294 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
3295 * syntax.c (skip_chars, skip_syntaxes): Likewise.
3296 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
3297 (emacs_set_tty): Likewise.
3298 * term.c (encode_terminal_code, calculate_costs)
3299 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
3300 Likewise.
3301 * termcap.c (tgetst1, gobble_line): Likewise.
3302 * termhooks.h (EVENT_INIT): Likewise.
3303 * tparam.c (tparam1): Likewise.
3304 * unexalpha.c (unexec): Likewise.
3305 * unexec.c (write_segment): Likewise.
3306 * unexmacosx.c (unexec_write_zero): Likewise.
3307 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
3308 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
3309 * w32font.c (w32font_list_family, w32font_text_extents)
3310 (w32font_list_internal, w32font_match_internal)
3311 (w32font_open_internal, compute_metrics, Fx_select_font):
3312 Likewise.
3313 * w32menu.c (set_frame_menubar, add_menu_item)
3314 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
3315 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
3316 * w32uniscribe.c (uniscribe_list_family): Likewise.
3317 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
3318 * window.c (make_window, replace_window, set_window_buffer)
3319 (Fsplit_window): Likewise.
3320 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
3321 (add_to_log, message3, x_consider_frame_title)
3322 (append_space_for_newline, extend_face_to_end_of_line)
3323 (decode_mode_spec_coding, init_glyph_string): Likewise.
3324 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
3325 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
3326 (face_attr_equal_p, make_realized_face, make_face_cache)
3327 (free_realized_faces, lookup_named_face, smaller_face)
3328 (face_with_height, lookup_derived_face)
3329 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
3330 (Finternal_set_font_selection_order, realize_default_face)
3331 (compute_char_face, face_at_buffer_position)
3332 (face_for_overlay_string, face_at_string_position, merge_faces):
3333 Likewise.
3334 * xfns.c (xic_create_fontsetname, Fx_create_frame)
3335 (Fx_window_property, x_create_tip_frame)
3336 (Fx_backspace_delete_keys_p): Likewise.
3337 * xfont.c (xfont_list, xfont_match, xfont_list_family)
3338 (xfont_text_extents): Likewise.
3339 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
3340 * xrdb.c (magic_file_p, x_get_resource): Likewise.
3341 * xselect.c (x_queue_event, x_get_window_property)
3342 (receive_incremental_selection): Likewise.
3343 * xsmfns.c (x_session_check_input): Likewise.
3344 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
3345 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
3346 Likewise.
3347 * character.h (BCOPY_SHORT): Removed.
3348 * config.in: Regenerate.
3349 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
3350 * emacs.c (main) [PROFILING]: Don't declare
3351 dump_opcode_frequencies.
3352 * lisp.h (safe_bcopy): Remove declaration.
3353 (memset) [!HAVE_MEMSET]: Declare.
3354 (memcpy) [!HAVE_MEMCPY]: Likewise.
3355 (memmove) [!HAVE_MEMMOVE]: Likewise.
3356 (memcmp) [!HAVE_MEMCMP]: Likewise.
3357 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
3358 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
3359 Don't define.
3360 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
3361 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
3362 (BCOPY_DOWNWARD_SAFE): Don't define.
3363 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
3364 (memcpy) [!HAVE_MEMCPY]: Define.
3365 (memmove) [!HAVE_MEMMOVE]: Define.
3366 (memcmp) [!HAVE_MEMCMP]: Define.
3367
3368 2010-07-07 Jan Djärv <jan.h.d@swipnet.se>
3369
3370 * process.c (kbd_is_on_hold): New variable.
3371 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
3372 New functions.
3373 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
3374 select on empty input mask.
3375 (init_process): Initialize kbd_is_on_hold to 0.
3376
3377 * process.h (hold_keyboard_input, unhold_keyboard_input)
3378 (kbd_on_hold_p): Declare.
3379
3380 * keyboard.c (input_available_signal): Declare.
3381 (kbd_buffer_nr_stored): New function.
3382 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
3383 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
3384 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
3385 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
3386 (tty_read_avail_input): If input is on hold, return.
3387 Don't read more that free slots in kbd_buffer (Bug#6571).
3388
3389 2010-07-07 Eli Zaretskii <eliz@gnu.org>
3390
3391 * msdos.h:
3392 * msdos.c:
3393 * dosfns.c:
3394 * w16select.c: Convert function definitions to ANSI C.
3395
3396 * msdos.h (ctrl_break_func, install_ctrl_break_check):
3397 Remove unused prototypes.
3398
3399 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
3400
3401 * coding.c, sysdep.c: Convert some more functions to standard C.
3402
3403 2010-07-07 Juanma Barranquero <lekktu@gmail.com>
3404
3405 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
3406 (encode_coding_object): Use SPECPDL_INDEX.
3407 (syms_of_coding): Use DOS_NT.
3408
3409 2010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
3410
3411 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
3412
3413 Make the function member of Lisp_Subr use standard C prototypes.
3414 * lisp.h (struct Lisp_Subr): Use a union for the function member.
3415 (DECL_ALIGN): Add a cast for the function.
3416 * eval.c (Feval, Ffuncall): Use the proper type for each type
3417 function call.
3418
3419 2010-07-06 Chong Yidong <cyd@stupidchicken.com>
3420
3421 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
3422 fringe face id, so face-remapping-alist works (Bug#6091).
3423
3424 2010-07-06 Juanma Barranquero <lekktu@gmail.com>
3425
3426 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
3427 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
3428 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
3429
3430 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
3431
3432 * xterm.c (x_get_keysym_name): Change type of parameter to int.
3433 * lisp.h: Declare x_get_keysym_name.
3434 * keyboard.c (modify_event_symbol): Don't declare
3435 x_get_keysym_name here.
3436
3437 2010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
3438
3439 * ecrt0.c: Revert conversion to standard C.
3440
3441 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
3442
3443 * vm-limit.c (memory_warnings):
3444 * keyboard.c (modify_event_symbol):
3445 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
3446 (round2, emacs_rint):
3447 * process.c (send_process, old_sigpipe): Convert function
3448 definitions and declarations to standard C.
3449
3450 2010-07-05 Juanma Barranquero <lekktu@gmail.com>
3451
3452 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
3453 * xdisp.c: Convert function definitions to standard C.
3454
3455 * cm.c (cmputc): Arg C is now int, not char.
3456 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
3457
3458 2010-07-05 James Cloos <cloos@jhcloos.com>
3459
3460 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
3461
3462 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
3463 _NET_WM_ICON_NAME atoms.
3464
3465 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
3466 and _NET_WM_ICON_NAME properties, too, matching what is
3467 done in the Gtk+ case.
3468
3469 2010-07-05 Jan Djärv <jan.h.d@swipnet.se>
3470
3471 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
3472
3473 * xsmfns.c (SSDATA): New macro.
3474 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
3475 passed to strlen/strcpy/strcat.
3476 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
3477 7:th arg to XChangeProperty to (unsigned char *).
3478
3479 * xsettings.c (something_changedCB, parse_settings)
3480 (apply_xft_settings): Reformat prototype.
3481 (something_changedCB, init_gconf): Remove unused variable i.
3482 (read_settings): Remove unused variable long_len.
3483
3484 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
3485 (xg_get_image_for_pixmap, create_dialog)
3486 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
3487 (menuitem_highlight_callback, make_menu_item)
3488 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
3489 (xg_create_scroll_bar, xg_update_scrollbar_pos)
3490 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
3491 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
3492 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
3493 (xg_tool_bar_item_expose_callback): Reformat prototype.
3494 (xg_update_menubar): GList *group => GSList *group.
3495 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
3496 before use.
3497 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
3498 to GTK_IMAGE (wimage).
3499
3500 2010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
3501
3502 * atimer.c: Use "" instead of <> for local includes for
3503 consistency with the rest of the code.
3504
3505 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
3506 * xrdb.c (get_system_name):
3507 * window.c (shrink_windows):
3508 * syntax.c (forw_comment):
3509 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
3510 (ins_del_costs):
3511 * mem-limits.h (start_of_data):
3512 * lread.c (readevalloop):
3513 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
3514 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
3515 * frame.c (x_get_focus_frame):
3516 * floatfns.c (fmod_float):
3517 * fileio.c (choose_write_coding_system):
3518 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
3519 (malloc_initialize_hook, sort_args, synchronize_locale):
3520 * doprnt.c (doprnt):
3521 * dired.c (compile_pattern):
3522 * data.c (fmod_float):
3523 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
3524 (map_char_table_for_charset):
3525 * charset.c (define_charset_internal):
3526 * alloc.c (Fgarbage_collect): Convert declarations or definitions
3527 to standard C.
3528
3529 2010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
3530 Stefan Monnier <monnier@iro.umontreal.ca>
3531
3532 * lread.c (read1): Fix up last change to not mess up `c'.
3533
3534 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
3535
3536 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
3537
3538 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
3539
3540 Fix prototypes.
3541
3542 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
3543 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
3544 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
3545 arg, as required by internal_condition_case_1.
3546 * print.c (strout): Use const char* for arg PTR.
3547 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
3548 (analyse_first): Fix "const const".
3549 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
3550 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
3551 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
3552
3553 2010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
3554
3555 * alloc.c: Convert function definitions to standard C.
3556 * atimer.c:
3557 * bidi.c:
3558 * bytecode.c:
3559 * callint.c:
3560 * callproc.c:
3561 * casefiddle.c:
3562 * casetab.c:
3563 * category.c:
3564 * ccl.c:
3565 * character.c:
3566 * charset.c:
3567 * chartab.c:
3568 * cmds.c:
3569 * coding.c:
3570 * composite.c:
3571 * data.c:
3572 * dbusbind.c:
3573 * dired.c:
3574 * dispnew.c:
3575 * doc.c:
3576 * doprnt.c:
3577 * ecrt0.c:
3578 * editfns.c:
3579 * fileio.c:
3580 * filelock.c:
3581 * filemode.c:
3582 * fns.c:
3583 * font.c:
3584 * fontset.c:
3585 * frame.c:
3586 * fringe.c:
3587 * ftfont.c:
3588 * ftxfont.c:
3589 * gtkutil.c:
3590 * indent.c:
3591 * insdel.c:
3592 * intervals.c:
3593 * keymap.c:
3594 * lread.c:
3595 * macros.c:
3596 * marker.c:
3597 * md5.c:
3598 * menu.c:
3599 * minibuf.c:
3600 * prefix-args.c:
3601 * print.c:
3602 * ralloc.c:
3603 * regex.c:
3604 * region-cache.c:
3605 * scroll.c:
3606 * search.c:
3607 * sound.c:
3608 * strftime.c:
3609 * syntax.c:
3610 * sysdep.c:
3611 * termcap.c:
3612 * terminal.c:
3613 * terminfo.c:
3614 * textprop.c:
3615 * tparam.c:
3616 * undo.c:
3617 * unexelf.c:
3618 * window.c:
3619 * xfaces.c:
3620 * xfns.c:
3621 * xfont.c:
3622 * xftfont.c:
3623 * xgselect.c:
3624 * xmenu.c:
3625 * xrdb.c:
3626 * xselect.c:
3627 * xsettings.c:
3628 * xsmfns.c:
3629 * xterm.c: Likewise.
3630
3631 2010-07-03 Eli Zaretskii <eliz@gnu.org>
3632
3633 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
3634 frames other than the initial one. Fix reversal of colors when
3635 `reverse' is specified in the frame parameters. Call
3636 update_face_from_frame_parameter instead of
3637 internal-set-lisp-face-attribute. Initialize screen colors from
3638 initial_screen_colors[] when f->default_face_done_p is zero,
3639 instead of depending on being called with default-frame-alist as
3640 the alist argument.
3641
3642 * xfaces.c (update_face_from_frame_parameter): Move out of
3643 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
3644 with HAVE_WINDOW_SYSTEM.
3645
3646 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
3647 to menu-bar-mode, if not set in the frame parameters or in
3648 default-frame-alist.
3649
3650 * w32console.c (sys_tputs): Adjust argument list to prototype in
3651 term.c.
3652
3653 2010-07-03 Juanma Barranquero <lekktu@gmail.com>
3654
3655 * lisp.h (memory_warnings): Fix prototype.
3656
3657 * cm.h (evalcost): Fix prototype.
3658
3659 * cm.c (evalcost): Fix arg type.
3660
3661 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
3662
3663 * term.c (term_clear_mouse_face, Fidentity):
3664 * syssignal.h (signal_handler_t):
3665 * lisp.h (memory_warnings):
3666 * coding.h (preferred_coding_system):
3667 * cm.h (evalcost):
3668 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
3669
3670 2010-07-02 Eli Zaretskii <eliz@gnu.org>
3671
3672 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
3673 from prototypes.
3674
3675 * msdos.h (load_pixmap): Don't define away.
3676
3677 2010-07-02 Jan Djärv <jan.h.d@swipnet.se>
3678
3679 * lisp.h:
3680 * atimer.h: Remove define for P_.
3681
3682 * alloc.c: Remove __P and P_ from .c and .m files.
3683 * atimer.c:
3684 * buffer.c:
3685 * callint.c:
3686 * category.c:
3687 * charset.c:
3688 * chartab.c:
3689 * cm.c:
3690 * coding.c:
3691 * composite.c:
3692 * data.c:
3693 * dired.c:
3694 * dispnew.c:
3695 * doc.c:
3696 * editfns.c:
3697 * emacs.c:
3698 * eval.c:
3699 * fileio.c:
3700 * filelock.c:
3701 * fns.c:
3702 * font.c:
3703 * fontset.c:
3704 * frame.c:
3705 * ftfont.c:
3706 * ftxfont.c:
3707 * gmalloc.c:
3708 * gtkutil.c:
3709 * image.c:
3710 * indent.c:
3711 * intervals.c:
3712 * keyboard.c:
3713 * keymap.c:
3714 * lread.c:
3715 * marker.c:
3716 * menu.c:
3717 * minibuf.c:
3718 * print.c:
3719 * process.c:
3720 * scroll.c:
3721 * search.c:
3722 * sound.c:
3723 * strftime.c:
3724 * syntax.c:
3725 * sysdep.c:
3726 * term.c:
3727 * terminal.c:
3728 * textprop.c:
3729 * unexalpha.c:
3730 * w32console.c:
3731 * w32fns.c:
3732 * w32font.c:
3733 * w32menu.c:
3734 * w32term.c:
3735 * w32uniscribe.c:
3736 * window.c:
3737 * xdisp.c:
3738 * xfaces.c:
3739 * xfns.c:
3740 * xfont.c:
3741 * xftfont.c:
3742 * xmenu.c:
3743 * xselect.c:
3744 * xterm.c: Likewise.
3745
3746 Remove P_ and __P macros.
3747 * atimer.h: Remove P_ and __P macros.
3748 * buffer.h:
3749 * category.h:
3750 * ccl.h:
3751 * character.h:
3752 * charset.h:
3753 * cm.h:
3754 * coding.h:
3755 * composite.h:
3756 * dispextern.h:
3757 * disptab.h:
3758 * dosfns.h:
3759 * font.h:
3760 * fontset.h:
3761 * frame.h:
3762 * gtkutil.h:
3763 * indent.h:
3764 * intervals.h:
3765 * keyboard.h:
3766 * keymap.h:
3767 * lisp.h:
3768 * macros.h:
3769 * md5.h:
3770 * menu.h:
3771 * msdos.h:
3772 * nsterm.h:
3773 * puresize.h:
3774 * region-cache.h:
3775 * syntax.h:
3776 * syssignal.h:
3777 * systime.h:
3778 * termhooks.h:
3779 * w32font.h:
3780 * w32term.h:
3781 * widget.h:
3782 * window.h:
3783 * xgselect.h:
3784 * xsettings.h:
3785 * xterm.h: Likewise.
3786
3787 2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
3788
3789 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
3790
3791 Cleanup old code.
3792 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
3793 * syssignal.h: Remove code for Lynx, not supported anymore.
3794 * vm-limit.c: Remove unused code the depends on emacs not being
3795 defined and NO_LIM_DATA being defined.
3796 * mem-limits.h: Remove dead code.
3797
3798 2010-07-01 Jan Djärv <jan.h.d@swipnet.se>
3799
3800 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
3801
3802 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
3803 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
3804
3805 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
3806 parameters, they are already absolute.
3807
3808 * nsterm.m (x_set_window_size, initFrameFromEmacs):
3809 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
3810
3811 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
3812
3813 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
3814 Update FRAME_TOOLBAR_HEIGHT.
3815
3816 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
3817 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
3818
3819 2010-06-30 Chong Yidong <cyd@stupidchicken.com>
3820
3821 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
3822 check default-frame-alist.
3823
3824 2010-06-30 Andreas Schwab <schwab@linux-m68k.org>
3825
3826 * process.c (create_process): Avoid using invalid file descriptors.
3827
3828 * callproc.c (child_setup): Avoid closing a file descriptor twice.
3829
3830 2010-06-30 Jan Djärv <jan.h.d@swipnet.se>
3831
3832 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
3833 Improve documentation. Return font regardless of use_system_font.
3834 (syms_of_xsettings): Improve documentation for font-use-system-font.
3835
3836 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
3837
3838 * xfaces.c (realize_face): Garbage the frame if a face is removed
3839 (Bug#6593).
3840
3841 2010-07-05 Andreas Schwab <schwab@linux-m68k.org>
3842
3843 * keyboard.c: Remove duplicate <setjmp.h>.
3844 (read_key_sequence): Remove volatile qualifiers.
3845
3846 2010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3847
3848 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
3849 (struct glyph_row): New members left_fringe_offset and
3850 right_fringe_offset.
3851
3852 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
3853 specially.
3854 * w32term.c (w32_draw_fringe_bitmap): Likewise.
3855 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
3856
3857 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
3858 Take account of bitmap offset.
3859 (draw_window_fringes): Take account of window vscroll.
3860 (update_window_fringes): Likewise. Extend top-aligned top indicator
3861 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
3862 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
3863 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
3864
3865 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
3866
3867 * w32fns.c (Qtooltip): Declare.
3868 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
3869
3870 2010-07-03 Jan Djärv <jan.h.d@swipnet.se>
3871
3872 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
3873 grab on just Press (Bug#6499).
3874
3875 2010-07-02 Chong Yidong <cyd@stupidchicken.com>
3876
3877 * frame.c (Qtooltip): New var.
3878 (delete_frame): Use it. Fix faulty if statement. Don't update
3879 mode line for tooltip frames. Suggested by Martin Rudalics.
3880
3881 * xfns.c (x_create_tip_frame):
3882 * w32fns.c (x_create_tip_frame): Use it.
3883
3884 2010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
3885
3886 * xftfont.c (xftfont_open): Check font width one by one also when
3887 spacing is dual.
3888
3889 * ftfont.c (ftfont_open): Ditto.
3890
3891 2010-06-30 Glenn Morris <rgm@gnu.org>
3892
3893 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
3894
3895 * Makefile.in (CANNOT_DUMP): Update for configure name change.
3896
3897 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
3898 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
3899 * s/darwin.h (SYSTEM_MALLOC):
3900 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
3901
3902 2010-06-29 Jan Djärv <jan.h.d@swipnet.se>
3903
3904 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
3905 (ns_get_screen): Don't assign integer to f.
3906 (Fx_display_color_cells): Declarations before statements.
3907
3908 2010-06-28 Jan Djärv <jan.h.d@swipnet.se>
3909
3910 * xfns.c (x_default_font_parameter): Remove got_from_system
3911 (Bug#6526).
3912
3913 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
3914 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
3915 defines based on what configure finds.
3916
3917 * xterm.c (XTflash): Use gtk_widget_get_window.
3918 (xg_scroll_callback): Use gtk_adjustment_get_upper and
3919 gtk_adjustment_get_page_size.
3920 (handle_one_xevent): Use gtk_widget_get_mapped.
3921 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
3922 messages.
3923
3924 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
3925
3926 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
3927 HAVE_GTK_FILE_SELECTION_NEW.
3928
3929 * gtkutil.c (xg_display_open, xg_display_close): Remove
3930 HAVE_GTK_MULTIDISPLAY, it is always defined.
3931 (xg_display_open): Return type is void.
3932 (gtk_widget_set_has_window)
3933 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
3934 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
3935 (gtk_adjustment_set_page_increment)
3936 (gtk_adjustment_get_step_increment): #define these if not found
3937 by configure.
3938 (remove_submenu): New define based on Gtk+ version.
3939 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
3940 gtk_widget_get_window.
3941 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
3942 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
3943 (create_dialog): Use gtk_dialog_get_action_area and
3944 gtk_dialog_get_content_area.
3945 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
3946 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
3947 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
3948 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
3949 g_object_ref and g_object_unref.
3950 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
3951 gtk_widget_get_sensitive.
3952 (xg_update_submenu): Use remove_submenu.
3953 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
3954 properties instead to get old x and y position.
3955 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
3956 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
3957 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
3958 (xg_get_tool_bar_widgets): New function.
3959 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
3960 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
3961 (toolbar_set_orientation): New #define based on if configure
3962 finds gtk_orientable_set_orientation.
3963 (xg_create_tool_bar): Call toolbar_set_orientation.
3964 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
3965 instead of gtk_box_pack_start_defaults.
3966
3967 2010-06-28 Chong Yidong <cyd@stupidchicken.com>
3968
3969 * cmds.c (Fdelete_backward_char): Move into Lisp.
3970
3971 2010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
3972
3973 * s/freebsd.h (BSD4_2): Remove redundant definition.
3974 bsd-common.h defines it already.
3975
3976 2010-06-27 Chong Yidong <cyd@stupidchicken.com>
3977
3978 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
3979 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
3980 tool-bar-mode, which are now set using these X resources at
3981 startup, to determine the defaults (Bug#2249).
3982
3983 * w32fns.c (Fx_create_frame):
3984 * nsfns.m (Fx_create_frame): Likewise.
3985
3986 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
3987
3988 2010-06-24 Juanma Barranquero <lekktu@gmail.com>
3989
3990 * gtkutil.c (xg_update_scrollbar_pos):
3991 Avoid C99 mid-block variable declaration.
3992
3993 2010-06-22 Jan Djärv <jan.h.d@swipnet.se>
3994
3995 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
3996
3997 * gtkutil.h (xg_show_scroll_bar): Remove.
3998
3999 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
4000 if height is less than scroll bar min size.
4001 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
4002
4003 * xfns.c (x_default_font_parameter): Try to open font from system
4004 before using it (bug#6478). Rename got_from_gconf to got_from_system.
4005
4006 2010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
4007
4008 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
4009
4010 2010-06-20 Eli Zaretskii <eliz@gnu.org>
4011
4012 * xdisp.c (try_scrolling): When scroll-conservatively is set to
4013 most-positive-fixnum, be extra accurate when scrolling window
4014 start, to avoid missing the cursor line.
4015
4016 2010-06-19 Eli Zaretskii <eliz@gnu.org>
4017
4018 * xdisp.c (try_scrolling): Compute the limit for searching point
4019 in forward scroll from scroll_max, instead of an arbitrary limit
4020 of 10 screen lines. See
4021 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
4022 and
4023 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
4024 for details.
4025
4026 2010-06-16 Glenn Morris <rgm@gnu.org>
4027
4028 * editfns.c (Fbyte_to_string): Pacify compiler.
4029
4030 2010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
4031
4032 * lread.c (read1): Phase out old-style backquotes a bit more.
4033
4034 2010-06-12 Eli Zaretskii <eliz@gnu.org>
4035
4036 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
4037 bidimirror.h.
4038
4039 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
4040
4041 * bidi.c (bidi_initialize): Remove explicit initialization of
4042 bidi_type_table; include biditype.h instead. Don't support
4043 entries whose second codepoint is zero. Initialize bidi_mirror_table.
4044 (bidi_mirror_char): Use bidi_mirror_table.
4045
4046 * biditype.h: New file.
4047
4048 * bidimirror.h: New file.
4049
4050 * window.c (syms_of_window): Doc fix (bug#6409).
4051
4052 2010-06-12 Romain Francoise <romain@orebokech.com>
4053
4054 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
4055 ediff-hook.
4056
4057 2010-06-10 Glenn Morris <rgm@gnu.org>
4058
4059 * editfns.c (Fbyte_to_string): Pacify compiler.
4060
4061 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
4062
4063 2010-06-26 Andreas Schwab <schwab@linux-m68k.org>
4064
4065 * alloc.c (Fmake_byte_code): Don't access undefined argument
4066 (Bug#6517).
4067
4068 2010-06-25 Chong Yidong <cyd@stupidchicken.com>
4069
4070 * xdisp.c (next_element_from_image): Ensure that after-strings are
4071 read the next time we hit handle_stop (Bug#1336).
4072
4073 2010-06-23 Andreas Schwab <schwab@linux-m68k.org>
4074
4075 * lread.c (read1): Signal error if #s is not followed by paren.
4076
4077 2010-06-19 Chong Yidong <cyd@stupidchicken.com>
4078
4079 * image.c (free_image): Mark frame as garbaged (Bug#6426).
4080
4081 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
4082
4083 2010-06-15 Glenn Morris <rgm@gnu.org>
4084
4085 * editfns.c (Fbyte_to_string): Pacify compiler.
4086
4087 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
4088
4089 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
4090 Check `object's type before accessing its guts.
4091
4092 2010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
4093
4094 * s/usg5-4.h: Fix previous change.
4095 Suggested by Lawrence Mitchell <wence@gmx.li>
4096
4097 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
4098
4099 * minibuf.c (Fall_completions): Add more checks.
4100
4101 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
4102
4103 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
4104
4105 2010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
4106
4107 * lread.c (X_OK): Remove, unused.
4108
4109 * dispnew.c: Remove obsolete comment.
4110
4111 Remove INCLUDED_FCNTL.
4112 * xterm.c (INCLUDED_FCNTL):
4113 * callproc.c (INCLUDED_FCNTL):
4114 * alloc.c (INCLUDED_FCNTL):
4115 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
4116 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
4117
4118 2010-06-07 Martin Rudalics <rudalics@gmx.at>
4119
4120 * window.c (Fselect_window): Move `record_buffer' up to the
4121 beginning of this function, so the buffer gets recorded
4122 even if the selected window does not change.
4123 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
4124
4125 2010-06-07 Juanma Barranquero <lekktu@gmail.com>
4126
4127 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
4128 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
4129
4130 2010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
4131
4132 Remove BSTRING related code, all platforms define it.
4133 * s/usg5-4.h (BSTRING): Remove definition.
4134 * s/template.h (BSTRING):
4135 * s/msdos.h (BSTRING):
4136 * s/ms-w32.h (BSTRING):
4137 * s/hpux10-20.h (BSTRING):
4138 * s/gnu-linux.h (BSTRING):
4139 * s/darwin.h (BSTRING):
4140 * s/cygwin.h (BSTRING):
4141 * s/bsd-common.h (BSTRING):
4142 * s/aix4-2.h (BSTRING): Likewise.
4143 * sysdep.c: Remove code depending on BSTRING not being defined.
4144
4145 2010-06-05 Juanma Barranquero <lekktu@gmail.com>
4146
4147 Remove obsolete macro BASE_LEADING_CODE_P.
4148 * character.h (BASE_LEADING_CODE_P): Remove.
4149 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
4150 * buffer.c (Fset_buffer_multibyte):
4151 * indent.c (scan_for_column, compute_motion):
4152 * insdel.c (count_combining_before, count_combining_after):
4153 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
4154
4155 2010-06-04 Juanma Barranquero <lekktu@gmail.com>
4156
4157 Turn `directory-sep-char' into a noop.
4158
4159 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
4160 (DIRECTORY_SEP): Define unconditionally.
4161
4162 * s/ms-w32.h (DIRECTORY_SEP): Remove.
4163
4164 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
4165 call dostounix_filename directly.
4166
4167 * fileio.c (CORRECT_DIR_SEPS): Remove.
4168 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
4169 (Fsubstitute_in_file_name): Use dostounix_filename instead.
4170 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
4171 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
4172
4173 * w32proc.c (CORRECT_DIR_SEPS): Remove.
4174 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
4175
4176 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
4177
4178 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
4179 (Bug#6346)
4180
4181 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
4182
4183 * ccl.c (Fccl_program_p): Fix typo in docstring.
4184
4185 2010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
4186
4187 Move UNEXEC definition to autoconf.
4188 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
4189 * s/sol2-10.h (UNEXEC):
4190 * s/irix6-5.h (UNEXEC):
4191 * s/hpux10-20.h (UNEXEC):
4192 * s/gnu-linux.h (UNEXEC):
4193 * s/darwin.h (UNEXEC):
4194 * s/cygwin.h (UNEXEC):
4195 * s/bsd-common.h (UNEXEC):
4196 * s/aix4-2.h (UNEXEC):
4197 * m/alpha.h (UNEXEC): Likewise.
4198 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
4199
4200 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
4201
4202 Remove obsolete pre-unicode2 macros.
4203 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
4204 * composite.c (composition_reseat_it):
4205 * data.c (Faset):
4206 * fns.c (Ffillarray):
4207 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
4208 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
4209
4210 2010-06-03 Juri Linkov <juri@jurta.org>
4211
4212 * buffer.c (Fother_buffer): Add CHECK_FRAME.
4213 (Fswitch_to_buffer): Remove unused variable `err'.
4214
4215 2010-06-03 Glenn Morris <rgm@gnu.org>
4216
4217 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
4218
4219 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
4220 now that AH_BOTTOM does it.
4221
4222 * m/hp800.h (HAVE_ALLOCA):
4223 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
4224
4225 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
4226 Remove NOT_C_CODE tests, it is always true now.
4227
4228 2010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
4229
4230 Fix config.h includes.
4231 * xsettings.c:
4232 * xgselect.c:
4233 * nsterm.m:
4234 * nsselect.m:
4235 * nsimage.m:
4236 * nsfont.m:
4237 * nsfns.m:
4238 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
4239 other files do.
4240
4241 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
4242
4243 * s/sol2-6.h: Remove obsolete comments.
4244
4245 Remove unnecessary alloca.h includes.
4246 * keymap.c: Do not include alloca.h, config.h does that.
4247 * sysdep.c: Likewise. Do not define fwrite, not used.
4248
4249 2010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
4250
4251 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
4252 the HAVE_TERMIO where it belongs (bug#6149).
4253
4254 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
4255
4256 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
4257 of bug#6305).
4258
4259 2010-05-30 Eli Zaretskii <eliz@gnu.org>
4260
4261 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
4262 state is always cached (bug#6306).
4263
4264 2010-05-29 Eli Zaretskii <eliz@gnu.org>
4265
4266 Fix cursor motion in bidi-reordered continued lines.
4267 * xdisp.c (try_cursor_movement): Backup to non-continuation line
4268 only after finding point's row. Fix the logic. Rewrite the loop
4269 over continuation lines in bidi-reordered buffers. Return
4270 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
4271 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
4272
4273 2010-05-28 Michael Albinus <michael.albinus@gmx.de>
4274
4275 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
4276
4277 2010-05-28 Kenichi Handa <handa@m17n.org>
4278
4279 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
4280 Don't sheck SPEC if it is nil.
4281 (font_list_entities): Call font_delete_unmatched if
4282 Vface_ignored_fonts is non-nil. (Bug#6287)
4283
4284 2010-05-28 Glenn Morris <rgm@gnu.org>
4285
4286 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
4287
4288 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
4289
4290 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
4291 whether to trash.
4292 (internal_delete_file, Frename_file): Callers changed.
4293 (delete_by_moving_to_trash): Doc fix.
4294 (Fdelete_directory_internal): Don't move to trash.
4295
4296 * callproc.c (delete_temp_file):
4297 * buffer.c (Fkill_buffer): Callers changed.
4298
4299 * lisp.h: Update prototype.
4300
4301 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
4302
4303 * xdisp.c (redisplay_window): After redisplay, check if point is
4304 still valid before setting it (Bug#6177).
4305
4306 2010-05-27 Glenn Morris <rgm@gnu.org>
4307
4308 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
4309 Convert comments to Makefile format.
4310
4311 * Makefile.in (bootstrap-clean): No more Makefile.c.
4312
4313 2010-05-26 Glenn Morris <rgm@gnu.org>
4314
4315 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
4316 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
4317
4318 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
4319 Remove.
4320 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4321
4322 2010-05-26 Kenichi Handa <handa@m17n.org>
4323
4324 * composite.c (composition_compute_stop_pos): Fix condition for
4325 backward scanning.
4326
4327 2010-05-25 Glenn Morris <rgm@gnu.org>
4328
4329 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
4330 Move before TEMACS_LDFLAGS.
4331 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4332 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
4333
4334 * Makefile.in (NOT_C_CODE): No longer define.
4335 (config.h): No longer include.
4336
4337 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
4338 variables it may reference.
4339
4340 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
4341 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
4342
4343 2010-05-25 Kenichi Handa <handa@m17n.org>
4344
4345 * dispextern.h (struct composition_it): New members rule_idx and
4346 charpos.
4347
4348 * xdisp.c (set_iterator_to_next): While scanning backward, assume
4349 that the character positions of IT point the last character of the
4350 current grapheme cluster.
4351 (next_element_from_composition): Don't change character positions
4352 of IT.
4353 (append_composite_glyph): Set glyph->charpos to
4354 it->cmp_it.charpos.
4355
4356 * composite.c (autocmp_chars): Change the first argument to RULE,
4357 and try composition with RULE only.
4358 (composition_compute_stop_pos): Record the index number of the
4359 composition rule in CMP_IT->rule_idx.
4360 (composition_reseat_it): Call autocmp_chars repeatedly until the
4361 correct rule of the composition is found.
4362 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
4363 is at the last character of the current grapheme cluster when
4364 CMP_IT->reversed_p is nonzero.
4365
4366 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
4367
4368 * editfns.c (Fbyte_to_string): New function.
4369
4370 2010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
4371
4372 * process.c (Fmake_network_process): Set :host to nil if it's not used.
4373 Suggested by Masatake YAMATO <yamato@redhat.com>.
4374
4375 2010-05-23 Eli Zaretskii <eliz@gnu.org>
4376
4377 * dispextern.h (init_iterator): Sync prototype with changed definition.
4378
4379 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
4380
4381 * s/netbsd.h: If terminfo is found, use it in preference to
4382 termcap. (Bug#6190) [Backport from trunk]
4383
4384 2010-05-19 Eli Zaretskii <eliz@gnu.org>
4385
4386 Redesign and reimplement bidi-aware edge positions of glyph rows.
4387
4388 * dispextern.h (struct glyph_row): New members minpos and maxpos.
4389 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
4390 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
4391 and maxpos members instead of start.pos and end.pos, respectively.
4392
4393 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
4394 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
4395 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
4396 (try_window_reusing_current_matrix, try_window_id):
4397 Use ROW->minpos rather than ROW->start.pos.
4398 (init_from_display_pos, init_iterator): Use EMACS_INT for
4399 character and byte positions.
4400 (find_row_edges): Rename from find_row_end. Accept additional
4401 arguments for minimum and maximum buffer positions seen by
4402 display_line for this row. Don't use iterator to find the
4403 position following the maximum one; instead, increment the
4404 position found by display_line directly. Fix logic; eol_pos
4405 should be tested before the rest. Handle the case of characters
4406 delivered from display vector (bug#6036). Fix tests related to
4407 it->method. Handle the truncated_on_right_p rows.
4408 (RECORD_MAX_MIN_POS): New macro.
4409 (display_line): Use it to record the minimum and maximum buffer
4410 positions for glyphs in the row being assembled. Record the
4411 position of the newline that terminates the line. If word wrap is
4412 in effect, restore minimum and maximum positions seen up to the
4413 wrap point, when iterator returns to it.
4414 (try_window_reusing_current_matrix): Give up if in bidi-reordered
4415 row and cursor not already at point. Restore original pre-bidi
4416 code for unidirectional buffers.
4417
4418 * dispnew.c (increment_row_positions, check_matrix_invariants):
4419 Increment and check row->start.pos and row->end.pos, in addition
4420 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
4421
4422 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
4423 Display truncated_on_left_p and truncated_on_right_p flags.
4424 Formatting fixes.
4425 (pmtxrows): Display the ordinal number of each row. Don't display
4426 rows beyond the last one.
4427
4428 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
4429 it is not copied by bidi_copy_it.
4430
4431 2010-05-22 Eli Zaretskii <eliz@gnu.org>
4432
4433 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
4434 (Bug#6237)
4435
4436 2010-05-22 Chong Yidong <cyd@stupidchicken.com>
4437
4438 * image.c (Fimage_flush): Rename from image-refresh.
4439
4440 2010-05-21 Chong Yidong <cyd@stupidchicken.com>
4441
4442 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
4443 just one window.
4444
4445 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
4446 (clear_image_cache): If the number of cached images is unusually
4447 large, decrease the cache eviction delay (Bug#6230).
4448
4449 2010-05-21 Glenn Morris <rgm@gnu.org>
4450
4451 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
4452 Move these rules to ns.mk.
4453 * ns.mk: New file.
4454
4455 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
4456
4457 * Makefile.in (CANNOT_DUMP): New, set by configure.
4458 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
4459
4460 2010-05-20 Juri Linkov <juri@jurta.org>
4461
4462 * fileio.c (Fdelete_file): Change interative spec to use
4463 `read-file-name' like in `find-file-read-args' where the default
4464 value is `default-directory' instead of `buffer-file-name'.
4465 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
4466
4467 2010-05-20 Kevin Ryde <user42@zip.com.au>
4468
4469 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
4470 (Voverriding_terminal_local_map, Vsystem_key_alist)
4471 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
4472
4473 2010-05-20 Glenn Morris <rgm@gnu.org>
4474
4475 * Makefile.in (DEPDIR): New constant.
4476 (DEPFLAGS): Set with configure, not cpp.
4477 (MKDEPDIR): New, set by configure.
4478 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
4479 (clean): Use $DEPDIR.
4480 (deps_frag): Include from configure.
4481 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
4482 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
4483
4484 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
4485 reallocation of the cache. (Bug#6210)
4486
4487 2010-05-19 Glenn Morris <rgm@gnu.org>
4488
4489 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
4490
4491 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
4492 (GNULIB_VAR): Remove.
4493 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
4494
4495 * m/ibms390x.h (LINKER):
4496 * m/macppc.h (LINKER) [GNU_LINUX]:
4497 * s/aix4-2.h (ORDINARY_LINK):
4498 * s/cygwin.h (LINKER):
4499 * s/darwin.h (ORDINARY_LINK):
4500 * s/gnu.h (ORDINARY_LINK):
4501 * s/netbsd.h (LINKER):
4502 * s/usg5-4.h (ORDINARY_LINK):
4503 Move to configure.
4504
4505 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
4506
4507 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
4508
4509 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
4510 prevent stack overflow if number of arguments is too large
4511 (Bug#6214).
4512
4513 2010-05-18 Juanma Barranquero <lekktu@gmail.com>
4514
4515 * charset.c (load_charset_map_from_file): Don't call close after fclose.
4516
4517 2010-05-18 Glenn Morris <rgm@gnu.org>
4518
4519 * s/gnu-linux.h: Combine two conditionals.
4520
4521 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
4522 $(POST_ALLOC_OBJ).
4523
4524 * Makefile.in (RALLOC_OBJ): New, set by configure.
4525 (rallocobj): Replace with the previous variable.
4526 (otherobj): Use $RALLOC_OBJ.
4527
4528 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
4529 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
4530
4531 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
4532 (gmallocobj, vmlimitobj): Replace with previous two variables.
4533 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
4534
4535 2010-05-17 Glenn Morris <rgm@gnu.org>
4536
4537 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
4538 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
4539
4540 2010-05-16 Glenn Morris <rgm@gnu.org>
4541
4542 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
4543
4544 * Makefile.in (clean): Get rid of HAVE_NS conditional.
4545
4546 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
4547 trailing "/".
4548
4549 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
4550 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
4551
4552 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
4553 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
4554 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
4555 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
4556 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
4557
4558 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
4559 Remove ${STARTFLAGS}, nothing ever sets it.
4560
4561 2010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
4562
4563 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
4564
4565 2010-05-16 Glenn Morris <rgm@gnu.org>
4566
4567 * Makefile.in (LIBX_BASE): Always define.
4568
4569 * Makefile.in (LIBX_OTHER): Move out of cpp section.
4570
4571 * Makefile.in (LIBXT): Always define.
4572
4573 2010-05-15 Glenn Morris <rgm@gnu.org>
4574
4575 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
4576
4577 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
4578 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
4579
4580 2010-05-15 Ken Raeburn <raeburn@raeburn.org>
4581
4582 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
4583 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
4584
4585 * emacs.c (main): Initialize initial-environment and
4586 process-environment before generating from env, not after.
4587
4588 Handle --version reasonably in CANNOT_DUMP configuration.
4589 * emacs.c (emacs_version, emacs_copyright): New string variables.
4590 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
4591 (syms_of_emacs): Defvar them, and initialize them from the C
4592 string variables.
4593 (main): If initialization hasn't been done, print initial version
4594 info from the C strings, instead of starting an interactive session.
4595
4596 2010-05-15 Eli Zaretskii <eliz@gnu.org>
4597
4598 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
4599 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
4600 (bidi_paragraph_init): Remove redundant assertion that we are at
4601 the beginning of a line after call to bidi_find_paragraph_start.
4602
4603 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
4604 (syms_of_xdisp): Defsubr it.
4605
4606 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
4607
4608 * Makefile.in: Fix MSDOS-related comments.
4609
4610 2010-05-15 Glenn Morris <rgm@gnu.org>
4611
4612 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
4613 (really-lwlib, really-oldXMenu): Always define.
4614 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
4615
4616 * Makefile.in: Simplify cpp conditional.
4617
4618 * Makefile.in (${ns_appdir}): Simplify using umask.
4619
4620 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
4621
4622 2010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
4623
4624 * eval.c (specbind): Remove left-over duplicate test.
4625 Disallow let-binding frame-local vars. Add comment.
4626
4627 2010-05-14 Eli Zaretskii <eliz@gnu.org>
4628
4629 Make the cache of bidi iterator states dynamically allocated.
4630 * bidi.c (bidi_cache_shrink): New function.
4631 (bidi_init_it): Call it.
4632 (bidi_cache_iterator_state): Enlarge the cache if needed.
4633
4634 * bidi.c (bidi_move_to_visually_next): Rename from
4635 bidi_get_next_char_visually. All callers changed.
4636
4637 2010-05-14 Kenichi Handa <handa@m17n.org>
4638
4639 * dispextern.h (struct composition_it): New member reversed_p.
4640
4641 * composite.c (composition_compute_stop_pos): Search backward if
4642 ENDPOS < CHARPOS.
4643 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
4644 Set CMP_IT->reversed_p.
4645 (composition_update_it): Pay attention to CMP_IT->reversed_p.
4646
4647 * xdisp.c (set_iterator_to_next):
4648 Call composition_compute_stop_pos with negative ENDPOS if we are
4649 scanning backward. Call composition_compute_stop_pos if scan
4650 direction is changed.
4651 (next_element_from_buffer): Call composition_compute_stop_pos with
4652 negative ENDPOS if we are scanning backward.
4653 (next_element_from_composition): Pay attention to
4654 IT->cmp_it.reversed_p.
4655
4656 2010-05-14 Kenichi Handa <handa@m17n.org>
4657
4658 * font.c (font_range): Return the range for the font found at first.
4659
4660 2010-05-14 Glenn Morris <rgm@gnu.org>
4661
4662 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
4663
4664 * Makefile.in (mktime, X11, register): Move undefs to configure.
4665
4666 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
4667 (MSDOS_X_OBJ): New variable.
4668 (MSDOS_SUPPORT_REAL): New constant.
4669 (MSDOS_SUPPORT): Set as a variable, not with cpp.
4670 (obj): Use MSDOS_X_OBJ.
4671 (lisp): Use MSDOS_SUPPORT as a variable.
4672
4673 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
4674 (GPM_MOUSE_SUPPORT): Now it's a constant.
4675 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
4676 not cpp.
4677
4678 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
4679 (ns_appresdir): Remove, unused.
4680
4681 * Makefile.in (SHELL): Move outside cpp section.
4682
4683 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
4684
4685 2010-05-13 Glenn Morris <rgm@gnu.org>
4686
4687 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
4688 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
4689
4690 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
4691 HAVE_WINDOW_SYSTEM must be too.
4692
4693 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
4694 (lisp): Remove WINNT_SUPPORT.
4695
4696 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
4697 Let configure set these variables (to empty) in this case as well.
4698
4699 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
4700 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
4701
4702 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
4703 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
4704 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
4705 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
4706 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
4707 the values output by configure.
4708 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
4709
4710 2010-05-12 Glenn Morris <rgm@gnu.org>
4711
4712 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
4713 (LINKER_WAS_SPECIFIED): Remove.
4714
4715 * Makefile.in (LIB_GCC): Set using configure, not cpp.
4716 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
4717 * m/arm.h (LIB_GCC) [GNU_LINUX]:
4718 * s/cygwin.h (LIB_GCC):
4719 * s/freebsd.h (LIB_GCC):
4720 * s/gnu-linux.h (LIB_GCC):
4721 * s/msdos.h (LIB_GCC):
4722 * s/netbsd.h (LIB_GCC):
4723 Move to configure.
4724
4725 2010-05-11 Karel Klic <kklic@redhat.com>
4726
4727 * ftfont.c: Fix incorrect parentheses of #if condition for
4728 definining M17N_FLT_USE_NEW_FEATURE.
4729
4730 2010-05-11 Glenn Morris <rgm@gnu.org>
4731
4732 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
4733 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
4734
4735 2010-05-10 Eli Zaretskii <eliz@gnu.org>
4736
4737 * xdisp.c (init_iterator): Don't turn on bidi reordering in
4738 unibyte buffers. See
4739 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
4740
4741 2010-05-10 Glenn Morris <rgm@gnu.org>
4742
4743 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
4744 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
4745 (LIBES): Use LIBS_SYSTEM as a variable.
4746 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
4747 * s/aix4-2.h (LIBS_SYSTEM):
4748 * s/freebsd.h (LIBS_SYSTEM):
4749 * s/hpux10-20.h (LIBS_SYSTEM):
4750 * s/sol2-6.h (LIBS_SYSTEM):
4751 * s/unixware.h (LIBS_SYSTEM):
4752 Move to configure.
4753
4754 * s/aix4-2.h (MAIL_USE_LOCKF):
4755 * s/bsd-common.h (MAIL_USE_FLOCK):
4756 * s/darwin.h (MAIL_USE_FLOCK):
4757 * s/gnu-linux.h (MAIL_USE_FLOCK):
4758 * s/irix6-5.h (MAIL_USE_FLOCK):
4759 * s/template.h (MAIL_USE_FLOCK):
4760 Move to configure.
4761
4762 2010-05-08 Chong Yidong <cyd@stupidchicken.com>
4763
4764 * Version 23.2 released.
4765
4766 2010-05-08 Andreas Schwab <schwab@linux-m68k.org>
4767
4768 * composite.c (autocmp_chars): Save point as marker before calling
4769 auto-composition-function (Bug#5984).
4770
4771 * lisp.h (restore_point_unwind): Add prototype.
4772
4773 * fileio.c (restore_point_unwind): Remove static attribute.
4774
4775 2010-05-08 Kenichi Handa <handa@m17n.org>
4776
4777 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
4778 new feature of libotf and m17n-flt.
4779 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
4780 Call OTF_check_features even if no specific feature is given.
4781 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
4782 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
4783 that OUT is NULL. Use OTF_drive_gsub_with_log and
4784 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
4785 OTF_drive_gpos.
4786 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
4787 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
4788 Setup mflt_enable_new_feature and mflt_try_otf.
4789
4790 2010-05-08 Jan Djärv <jan.h.d@swipnet.se>
4791
4792 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
4793
4794 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
4795 box and toolbar (Bug #6139).
4796 (xg_create_tool_bar): Remove comment (Bug #6139).
4797 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
4798 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
4799
4800 2010-05-08 Juanma Barranquero <lekktu@gmail.com>
4801
4802 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
4803 Update dependencies.
4804
4805 2010-05-08 Eli Zaretskii <eliz@gnu.org>
4806
4807 * fringe.c (update_window_fringes): Set up truncation bitmaps for
4808 R2L lines.
4809
4810 2010-05-08 Glenn Morris <rgm@gnu.org>
4811
4812 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
4813
4814 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
4815 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
4816 (termcapobj): Replace with TERMCAP_OBJ.
4817 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
4818 (LIBES): Use LIBS_TERMCAP as a variable.
4819
4820 * s/freebsd.h (osreldate.h): No longer include, since this file
4821 does not use __FreeBSD_version any more.
4822
4823 * s/aix4-2.h (TERMINFO):
4824 * s/cygwin.h (TERMINFO):
4825 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4826 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
4827 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4828 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
4829 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
4830 * s/irix6-5.h (TERMINFO):
4831 * s/netbsd.h (LIBS_TERMCAP):
4832 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
4833 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
4834 * s/usg5-4.h (TERMINFO):
4835 Move to configure.
4836
4837 2010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
4838
4839 * eval.c (unbind_to): Don't unbind a local binding into the global
4840 binding when the local binding disappeared. Inversely, don't unbind
4841 a global binding into a newly created local binding.
4842 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
4843 can specify the frame to use, when applicable. Adjust callers.
4844
4845 2010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
4846 Stefan Monnier <monnier@iro.umontreal.ca>
4847
4848 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
4849
4850 2010-05-07 Eli Zaretskii <eliz@gnu.org>
4851
4852 * w32fns.c: Include w32.h.
4853 (Fw32_shell_execute): Decode the error message before passing it
4854 to `error'. (Bug#6126)
4855
4856 * msdos.c (dos_set_window_size):
4857 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
4858 instead of `XSYMBOL (foo)->value'.
4859
4860 2010-05-07 Eli Zaretskii <eliz@gnu.org>
4861
4862 Fix the MS-DOS build, broken by autoconfiscation.
4863
4864 * Makefile.in: Don't use Make-style comments past the "start of
4865 cpp stuff" line.
4866 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
4867
4868 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
4869 edited directly by msdos/sed1v2.inp).
4870
4871 2010-05-07 Glenn Morris <rgm@gnu.org>
4872
4873 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
4874 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
4875 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
4876 move out of cpp section.
4877 * s/freebsd.h (LD_SWITCH_SYSTEM):
4878 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
4879 * s/netbsd.h (LD_SWITCH_SYSTEM):
4880 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
4881
4882 2010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
4883
4884 Define LIB_STANDARD and START_FILES using autoconf.
4885 * s/usg5-4.h (LIB_STANDARD):
4886 * s/netbsd.h (START_FILES):
4887 * s/irix6-5.h (LIB_STANDARD):
4888 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
4889 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
4890 * s/freebsd.h (START_FILES):
4891 * s/darwin.h (START_FILES):
4892 * s/cygwin.h (START_FILES):
4893 * s/aix4-2.h (LIB_STANDARD):
4894 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
4895 * Makefile.in (STARTFILES): Rename to START_FILES, define using
4896 autoconf, not cpp.
4897
4898 2010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
4899
4900 Remove NEED_BSDTTY and NEED_UNISTD_H.
4901 * s/hpux10-20.h (NEED_BSDTTY): Remove.
4902 * s/aix4-2.h (NEED_UNISTD_H): Remove.
4903 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
4904 <sys/ptyio.h> and <unistd.h>.
4905
4906 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
4907
4908 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
4909 * s/gnu.h (START_FILES): Remove empty definition.
4910
4911 2010-05-06 Jan Djärv <jan.h.d@swipnet.se>
4912
4913 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
4914
4915 2010-05-06 Glenn Morris <rgm@gnu.org>
4916
4917 * Makefile.in (CPP, LN_S): Remove unused variables.
4918
4919 2010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
4920
4921 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
4922
4923 2010-05-05 Lawrence Mitchell <wence@gmx.li>
4924
4925 * m/sparc.h: Fix typo in earlier change.
4926
4927 2010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
4928
4929 Misc tweaks.
4930 * eval.c (Fdefvaralias): Remove unintended nested if.
4931 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
4932
4933 2010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
4934
4935 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
4936
4937 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
4938
4939 Remove BSD_PGRPS.
4940 * s/bsd-common.h (BSD_PGRPS): Remove undef.
4941 * s/gnu-linux.h (BSD_PGRPS): Remove.
4942 * term.c (dissociate_if_controlling_tty):
4943 * sysdep.c (narrow_foreground_group, widen_foreground_group)
4944 (init_sys_modes, reset_sys_modes):
4945 * emacs.c (main):
4946 * callproc.c (Fcall_process, child_setup): Remove code depending
4947 on BSD_PGRPS.
4948
4949 Remove POSIX_SIGNALS.
4950 * s/usg5-4.h (POSIX_SIGNALS):
4951 * s/netbsd.h (POSIX_SIGNALS):
4952 * s/msdos.h (POSIX_SIGNALS):
4953 * s/ms-w32.h (POSIX_SIGNALS):
4954 * s/hpux11.h (POSIX_SIGNALS):
4955 * s/gnu.h (POSIX_SIGNALS):
4956 * s/gnu-linux.h (POSIX_SIGNALS):
4957 * s/freebsd.h (POSIX_SIGNALS):
4958 * s/darwin.h (POSIX_SIGNALS):
4959 * s/cygwin.h (POSIX_SIGNALS):
4960 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
4961 * s/unixware.h:
4962 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
4963 * process.c (create_process):
4964 * syssignal.h:
4965 * sysdep.c (wait_for_termination, init_signals):
4966 * process.c (create_process):
4967 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
4968 remove all code that assumes the contrary.
4969
4970 2010-05-04 Glenn Morris <rgm@gnu.org>
4971
4972 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
4973 variable.
4974 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
4975 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
4976 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
4977 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
4978 LD_SWITCH_SYSTEM_tmp.
4979 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
4980 New variables, set by configure.
4981
4982 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
4983 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
4984 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
4985 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
4986 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
4987
4988 * s/aix4-2.h (C_SWITCH_SYSTEM):
4989 * m/alpha.h (C_SWITCH_MACHINE):
4990 Move to configure.in.
4991 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
4992 New variables, set by configure.
4993 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
4994 $c_switch_machine and $c_switch_system.
4995
4996 2010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
4997
4998 * s/hpux10-20.h (LIB_STANDARD): New definition.
4999 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
5000 on it, not used anymore.
5001
5002 2010-05-03 Chong Yidong <cyd@stupidchicken.com>
5003
5004 * eval.c (internal_condition_case_n): Rename from
5005 internal_condition_case_2.
5006 (internal_condition_case_2): New function.
5007
5008 * xdisp.c (safe_call): Use internal_condition_case_n.
5009
5010 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
5011 (internal_delete_file, Frename_file): Callers changed.
5012
5013 * buffer.c (Fkill_buffer):
5014 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
5015
5016 * lisp.h: Update prototypes.
5017
5018 2010-05-03 Glenn Morris <rgm@gnu.org>
5019
5020 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
5021 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
5022 (LIBXT): Set with configure, not cpp.
5023 (LIBX): Remove.
5024 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
5025
5026 2010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
5027
5028 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
5029 The FreeBSD is not needed, the default works, Solaris version is
5030 not needed, and the remaining case is not supported by configure.
5031
5032 2010-05-02 Jan Djärv <jan.h.d@swipnet.se>
5033
5034 * xsmfns.c (CHDIR_OPT): New define.
5035 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
5036 restarting emacs.
5037
5038 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
5039 shut_down_emacs.
5040
5041 * emacs.c (USAGE1): Mention --chdir.
5042 (main): Handle --chdir.
5043 (standard_args): Add --chdir.
5044 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
5045 #5552).
5046
5047 2010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
5048
5049 Remove LD_SWITCH_MACHINE.
5050 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
5051 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
5052
5053 Clean up IRIX code.
5054 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
5055 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
5056
5057 Clean up AIX code.
5058 * m/ibmrs6000.inp: Remove file, unused.
5059 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
5060 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
5061 definition ...
5062 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
5063
5064 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
5065 unused.
5066
5067 2010-05-01 Eli Zaretskii <eliz@gnu.org>
5068
5069 Emulate POSIX_SIGNALS on MS-Windows.
5070
5071 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
5072 (SIG_SETMASK, SIG_UNBLOCK): Define.
5073
5074 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
5075 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
5076 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
5077
5078 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
5079 New stubs.
5080
5081 Miscellaneous fixes of bidi display.
5082
5083 * xdisp.c (find_row_end): New function, refactored from display_line.
5084 (display_line): Use it.
5085 (extend_face_to_end_of_line): In almost-filled rows, extend only
5086 if the row is R2L and not continued.
5087 (display_line): Fix prepending of truncation glyphs to R2L rows.
5088 Preserve overlay and string info in row->end.
5089 (insert_left_trunc_glyphs): Support addition of left truncation
5090 glyphs to R2L rows.
5091 (set_cursor_from_row): Don't place cursor on the vertical border
5092 glyph between adjacent windows. Fix a crash when a display string
5093 is continued to the next line. Don't return zero if cursor was
5094 found by `cursor' property of a display string.
5095 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
5096 test for that explicitly.
5097
5098 2010-05-01 Glenn Morris <rgm@gnu.org>
5099
5100 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
5101 for clarity.
5102 (OTHER_OBJ): Remove.
5103 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
5104 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
5105
5106 2010-05-01 Karel Klíč <kklic@redhat.com>
5107
5108 * fileio.c (Ffile_selinux_context): Context functions may return null.
5109
5110 2010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
5111
5112 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
5113
5114 2010-04-30 Glenn Morris <rgm@gnu.org>
5115
5116 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
5117 (OTHER_OBJ): Define as a separate variable, for clarity.
5118
5119 2010-04-30 Jan Djärv <jan.h.d@swipnet.se>
5120
5121 * xsettings.c: include limits.h and update file comment.
5122
5123 2010-04-30 Glenn Morris <rgm@gnu.org>
5124
5125 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
5126 Set with configure, not cpp.
5127 (LIBW): Remove, replace with $TOOLKIT_LIBW.
5128
5129 * Makefile.in (mallocobj): Remove.
5130 (otherobj): Simplify using @OTHER_OBJ@.
5131
5132 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
5133 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
5134 Don't bother making nsgui.h dependency platform-specific.
5135
5136 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
5137
5138 2010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
5139
5140 * process.c (read_process_output, exec_sentinel): Don't burp if the
5141 sentinel/filter kills the current buffer (bug#6060).
5142
5143 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
5144 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
5145 Remove unused var `args'.
5146 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
5147 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
5148 * doc.c (store_function_docstring): Use XSETCAR.
5149
5150 2010-04-28 Glenn Morris <rgm@gnu.org>
5151
5152 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
5153 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
5154
5155 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
5156
5157 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
5158 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
5159
5160 * Makefile.in (FONT_OBJ): New, set by configure.
5161 (FONT_DRIVERS): Use $FONT_OBJ.
5162
5163 * Makefile.in (LIBXMU): Set with configure, not cpp.
5164 * s/aix4-2.h (LIBXMU):
5165 * s/hpux10-20.h (LIBXMU):
5166 Remove definition, now set in configure.
5167
5168 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
5169
5170 * m/amdx86-64.h [i386]: Move this test to configure.in.
5171
5172 2010-04-27 Glenn Morris <rgm@gnu.org>
5173
5174 * Makefile.in (LIBXTR6): Set with configure, not cpp.
5175 * s/unixware.h (NEED_LIBW): Remove definition.
5176
5177 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
5178 (TOOLKIT_LIBW): New, set by configure.
5179 (@X_TOOLKIT_TYPE@): No longer define it.
5180
5181 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
5182 (MOTIF_LIBW): Set with configure, not cpp.
5183 * s/aix4-2.h (LIB_MOTIF):
5184 * s/gnu-linux.h (LIB_MOTIF):
5185 * s/unixware.h (LIB_MOTIF): Move to configure.in.
5186
5187 2010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
5188
5189 Reduce CPP usage.
5190 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
5191 (obj): Use autoconf for unexec instead of cpp.
5192 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
5193 definitions and undefs. Inline definitions in the only user.
5194 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
5195
5196 2010-04-27 Glenn Morris <rgm@gnu.org>
5197
5198 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
5199 since the defaults (set by the system file) are fine in most cases.
5200 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
5201 * m/ibms390x.h (START_FILES, LIB_STANDARD):
5202 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
5203 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
5204 Remove definitions, since they are set correctly in s/gnu-linux.h.
5205 * s/freebsd.h (START_FILES, LIB_STANDARD):
5206 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
5207 * s/hpux10-20.h (START_FILES):
5208 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
5209 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
5210
5211 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
5212 (MOTIF_LIBW): Use $LIBXP.
5213 (otherobj): Use $WIDGET_OBJ.
5214
5215 2010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
5216
5217 * Makefile.in (LIBS_MACHINE): Remove, unused.
5218
5219 Use autoconf instead of cpp for LIB_MATH.
5220 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
5221 * s/cygwin.h (LIB_MATH): Likewise.
5222 * Makefile.in (LIB_MATH): Do not define with cpp.
5223 (LIBES): Use autoconf for LIB_MATH.
5224
5225 2010-04-26 Kenichi Handa <handa@m17n.org>
5226
5227 * composite.c (Ffind_composition_internal): Fix the return value
5228 for an automatic composition.
5229
5230 2010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
5231
5232 Remove all NO_ARG_ARRAY uses.
5233 * fns.c (concat2, concat3, nconc2):
5234 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
5235 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
5236 * m/xtensa.h (NO_ARG_ARRAY):
5237 * m/template.h (NO_ARG_ARRAY):
5238 * m/sparc.h (NO_ARG_ARRAY):
5239 * m/sh3.h (NO_ARG_ARRAY):
5240 * m/mips.h (NO_ARG_ARRAY):
5241 * m/macppc.h (NO_ARG_ARRAY):
5242 * m/iris4d.h (NO_ARG_ARRAY):
5243 * m/intel386.h (NO_ARG_ARRAY):
5244 * m/ibms390x.h (NO_ARG_ARRAY):
5245 * m/ibms390.h (NO_ARG_ARRAY):
5246 * m/ibmrs6000.h (NO_ARG_ARRAY):
5247 * m/ia64.h (NO_ARG_ARRAY):
5248 * m/hp800.h (NO_ARG_ARRAY):
5249 * m/arm.h (NO_ARG_ARRAY):
5250 * m/amdx86-64.h (NO_ARG_ARRAY):
5251 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
5252
5253 2010-04-25 Eli Zaretskii <eliz@gnu.org>
5254
5255 * xdisp.c (display_line): Don't assume 2nd call to
5256 get_next_display_element cannot return zero. (Bug#6030)
5257 (iterate_out_of_display_property): New function, body from pop_it.
5258 (pop_it): Use it.
5259
5260 2010-04-24 Glenn Morris <rgm@gnu.org>
5261
5262 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
5263 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
5264 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
5265 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
5266
5267 2010-04-24 Eli Zaretskii <eliz@gnu.org>
5268
5269 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
5270 use `get_next_display_element' and `set_iterator_to_next' to
5271 advance to the next character, when looking for the character that
5272 begins the next row.
5273
5274 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
5275 definition of "struct Lisp_Symbol".
5276
5277 2010-04-24 Glenn Morris <rgm@gnu.org>
5278
5279 * Makefile.in (CRT_DIR): New variable, set by configure.
5280 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
5281 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
5282
5283 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
5284
5285 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
5286
5287 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
5288
5289 Remove redundant flags.
5290 * s/freebsd.h (C_SWITCH_SYSTEM):
5291 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
5292 * s/netbsd.h (C_SWITCH_SYSTEM):
5293 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
5294 of these.
5295
5296 Simplify m/intel386.h.
5297 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
5298 user: ecrt0.c.
5299 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
5300 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
5301 the only user: s/unixware.h.
5302 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
5303 from m/intel386.h.
5304 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
5305 moved here from m/intel386.h.
5306
5307 * m/mips.h: Remove #if 0 code.
5308
5309 2010-04-23 Eli Zaretskii <eliz@gnu.org>
5310
5311 Fix display of composed characters from L2R scripts in bidi buffers.
5312 * xdisp.c (set_iterator_to_next, next_element_from_composition):
5313 After advancing IT past the composition, resync the bidi iterator
5314 with IT's position. (Bug#5977)
5315
5316 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
5317
5318 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
5319 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
5320
5321 2010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
5322
5323 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
5324
5325 2010-04-23 Eli Zaretskii <eliz@gnu.org>
5326
5327 Support `display' text properties and overlay strings in bidi buffers.
5328 * xdisp.c (pop_it): When the stack is popped after displaying
5329 from a string, bidi-iterate to exit from the text portion covered
5330 by the `display' property or overlay. (Bug#5988, bug#5920)
5331
5332 2010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
5333
5334 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
5335 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
5336
5337 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
5338 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
5339
5340 Simplify STARTFILES definition.
5341 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
5342 relying on Makefile.in to define it.
5343 * s/cygwin.h (START_FILES): Likewise.
5344 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
5345
5346 Clean up Solaris code.
5347 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
5348 (LIB_MOTIF): Remove, configure takes care of this.
5349 (NOT_USING_MOTIF): Remove, unused.
5350 * xrdb.c: Remove #if 0-ed #include.
5351 (SYSV): Remove conditional for old SysV.
5352 * sysdep.c (closedir): Remove conditional code for Solaris,
5353 Solaris has closedir.
5354
5355 2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
5356
5357 * xsettings.c (read_and_apply_settings): Check if current_font is
5358 NULL before strcmp (Bug#6001).
5359
5360 2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
5361
5362 Clean up HP-UX files.
5363 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
5364 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
5365 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
5366 * s/hpux10-20.h: ... to the only user, here.
5367
5368 2010-04-21 Eli Zaretskii <eliz@gnu.org>
5369
5370 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
5371 use buffer-local values of paragraph-start and paragraph-separate.
5372 <paragraph_start_re, paragraph_separate_re>: Rename from
5373 fallback_paragraph_start_re and fallback_paragraph_separate_re.
5374 (Bug#5992)
5375
5376 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
5377
5378 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
5379 current_tool_bar_style are new.
5380 (store_config_changed_event): Rename from store_font_changed_event.
5381 (XSETTINGS_TOOL_BAR_STYLE): New define.
5382 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
5383 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
5384 HAVE_XFT.
5385 (something_changedCB): store_font_changed_event is now
5386 store_config_changed_event.
5387 (parse_settings): Rename from parse_xft_settings. Read
5388 non-xft xsettings outside #ifdef HAVE_XFT.
5389 (read_settings): Renamed from read_xft_settings.
5390 (apply_xft_settings): Take current settings as parameter. Do not
5391 call read_(xft)_settings.
5392 (read_and_apply_settings): New function.
5393 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
5394 read_and_apply_settings if there are settings to be read.
5395 (init_xsettings): Renamed from init_xfd_settings.
5396 Call read_and_apply_settings unconditionally.
5397 (xsettings_initialize): Call init_xsettings.
5398 (Ftool_bar_get_system_style): New function.
5399 (syms_of_xsettings): Define Qmonospace_font_name and
5400 Qtool_bar_style. Initialize current_tool_bar_style to nil.
5401 defsubr Stool_bar_get_system_style. Fprovide on
5402 dynamic-setting.
5403 Move misplaced HAVE_GCONF
5404
5405 * xsettings.h (Ftool_bar_get_system_style): Declare.
5406
5407 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
5408 Qtext, Qboth, Qboth_horiz are new.
5409 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
5410 Vtool_bar_style, tool_bar_max_label_size.
5411
5412 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
5413
5414 * keyboard.c: QClabel is new.
5415 (parse_tool_bar_item): Take out QClabel from tool bar items.
5416 Try to construct a label if ther is no QClabel.
5417 (syms_of_keyboard): Intern :label as QClabel.
5418
5419 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
5420 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
5421 New.
5422
5423 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
5424 dynamic-setting.el.
5425
5426 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
5427 (xg_make_tool_item, xg_show_toolbar_item): New function.
5428 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
5429 Call xg_make_tool_item to make a tool bar item.
5430 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
5431
5432 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
5433 into account for toolbars.
5434
5435 2010-04-21 Jan Djärv <jan.h.d@swipnet.se>
5436
5437 * data.c (make_blv): Declarations before code (Bug#5993).
5438
5439 2010-04-21 Glenn Morris <rgm@gnu.org>
5440
5441 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
5442 Define using autoconf, not cpp.
5443 (LIBXSM): New variable, set by autoconf.
5444 (LIBXT): Use $LIBXSM.
5445
5446 2010-04-21 Dan Nicolaescu <local_user@dannlt>
5447
5448 Remove NOMULTIPLEJOBS, unused.
5449 * s/template.h (NOMULTIPLEJOBS):
5450 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
5451
5452 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
5453 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
5454 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
5455 detects -znocombreloc and passes it to the linker
5456 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
5457
5458 2010-04-21 Glenn Morris <rgm@gnu.org>
5459
5460 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
5461
5462 2010-04-21 Karel Klíč <kklic@redhat.com>
5463
5464 * Makefile.in (LIBSELINUX_LIBS): New.
5465 (LIBES): Add $LIBSELINUX_LIBS.
5466 * eval.c, lisp.h (call7): New function.
5467 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
5468 (Ffile_selinux_context, Fset_file_selinux_context):
5469 New functions.
5470 (Fcopy_file): New parameter preserve-selinux-context.
5471 (Frename_file): Preserve selinux context when renaming by copy-file.
5472
5473 2010-04-21 Juanma Barranquero <lekktu@gmail.com>
5474 Eli Zaretskii <eliz@gnu.org>
5475
5476 Don't depend on cm.c or termcap.c on Windows, use stubs.
5477 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
5478 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
5479 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
5480 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
5481 (sys_tputs, sys_tgetstr): New stubs.
5482 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
5483 (tputs, tgetstr): New; define to sys_*.
5484
5485 2010-04-20 Juanma Barranquero <lekktu@gmail.com>
5486
5487 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
5488
5489 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
5490
5491 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
5492 Just signal a warning rather than an error when inside a let.
5493 (Fmake_variable_frame_local): Add the same test.
5494
5495 * font.c (syms_of_font): Make the style table vars read-only.
5496
5497 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
5498 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
5499
5500 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
5501
5502 2010-04-20 Eli Zaretskii <eliz@gnu.org>
5503
5504 Fix R2L paragraph display on TTY.
5505
5506 * xdisp.c (unproduce_glyphs): New function.
5507 (display_line): Use it when produced glyphs are discarded from R2L
5508 glyph rows.
5509 (append_composite_glyph): In R2L rows, prepend the glyph rather
5510 than appending it.
5511
5512 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
5513 rather than append it. Set up the resolved_level and bidi_type
5514 attributes of the appended glyph.
5515 (produce_special_glyphs): Mirror the backslash continuation
5516 character in R2L lines.
5517
5518 Implement display of R2L paragraphs in GUI sessions.
5519
5520 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
5521 append_stretch_glyph.
5522 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
5523 off-by-one error in computing x at end of text in the row.
5524 (append_stretch_glyph): In reversed row, prepend the glyph rather
5525 than append it. Set resolved_level and bidi_type of the glyph.
5526 (extend_face_to_end_of_line): If the row is reversed, prepend a
5527 stretch glyph whose width is such that the rightmost glyph will be
5528 drawn at the right margin of the window. Fix off-by-one error on
5529 TTY frames in testing whether a line needs face extension. Fix
5530 face extension at ZV. If this is the last glyph row, use
5531 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
5532 region face.
5533 (set_cursor_from_row, display_line): Use
5534 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
5535 row->continuation_lines_width.
5536 (next_element_from_buffer): Don't call bidi_paragraph_init if we
5537 are at ZV. Fixes a crash when reseated to ZV by
5538 try_window_reusing_current_matrix.
5539 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
5540 which happens with R2L glyph rows. Fixes a crash when inserting a
5541 character at end of an R2L line.
5542 (set_cursor_from_row): Don't be fooled by truncated rows: don't
5543 treat them as having zero-width characters. Improve comments.
5544 Don't reverse pos_before and pos_after for reversed glyph rows.
5545 Set cursor.x to negative value when the cursor might be on the
5546 left fringe.
5547 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
5548 left fringe, not the right one.
5549 (notice_overwritten_cursor, draw_phys_cursor_glyph)
5550 (erase_phys_cursor): For reversed cursor_row, support cursor on
5551 the left fringe.
5552
5553 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
5554 of continuation indicators on the fringes.
5555 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
5556 left fringe.
5557
5558 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
5559 draw cursor on the left fringe.
5560
5561 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
5562 cursor on the left fringe.
5563
5564 * dispnew.c (update_text_area): Handle reversed desired rows when
5565 the cursor is on the left fringe.
5566 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
5567 below, not by 0, for when the cursor is on the left fringe.
5568
5569 2010-04-20 Jan Djärv <jan.h.d@swipnet.se>
5570
5571 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
5572 widget is a scrollbar.
5573
5574 2010-04-20 Kenichi Handa <handa@m17n.org>
5575
5576 * charset.c (char_charset): Consider Vcharset_non_preferred_head
5577 only when the arg CHARSET_LIST is nil.
5578
5579 2010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
5580
5581 Make variable forwarding explicit rather the using special values.
5582 Basically, this makes the structure of buffer-local values and object
5583 forwarding explicit in the type of Lisp_Symbols rather than use
5584 special Lisp_Objects for that. This tends to lead to slightly more
5585 verbose code, but is more C-like, simpler, and makes it easier to make
5586 sure we handled all cases, among other things by letting the compiler
5587 help us check it.
5588 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
5589 Removing forwarding objects.
5590 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
5591 (struct Lisp_Symbol): Make the various forms of variable-forwarding
5592 explicit rather than hiding them inside Lisp_Object "values".
5593 (XFWDTYPE): New macro.
5594 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
5595 (XBUFFER_LOCAL_VALUE): Remove.
5596 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
5597 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
5598 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
5599 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
5600 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
5601 Remove the Lisp_Misc_* header.
5602 (struct Lisp_Buffer_Local_Value): Redefine.
5603 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
5604 (struct Lisp_Misc_Any): Add filler to get the right size.
5605 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
5606 Lisp_Intfwd.
5607 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
5608 (DEFVAR_KBOARD): Allocate a forwarding object.
5609 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
5610 (let_shadows_global_binding_p): New function.
5611 (union Lisp_Val_Fwd): New type.
5612 (make_blv): New function.
5613 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
5614 (store_symval_forwarding, swap_in_global_binding, Fboundp)
5615 (swap_in_symval_forwarding, find_symbol_value, Fset)
5616 (let_shadows_buffer_binding_p, set_internal, default_value)
5617 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
5618 (Fkill_local_variable, Fmake_variable_frame_local)
5619 (Flocal_variable_p, Flocal_variable_if_set_p)
5620 (Fvariable_binding_locus):
5621 * xdisp.c (select_frame_for_redisplay):
5622 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
5623 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
5624 * frame.c (store_frame_param):
5625 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
5626 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
5627 value structure.
5628 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
5629 (clone_per_buffer_values): Only adjust markers into the current buffer.
5630 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
5631 (Fbuffer_local_value, set_buffer_internal_1)
5632 (swap_out_buffer_local_variables):
5633 Adapt to the new symbol value structure.
5634 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
5635 (defvar_per_buffer): Take a new arg for the fwd object.
5636 (buffer_lisp_local_variables): Return a proper alist (different fix
5637 for bug#4138).
5638 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
5639 (Fgarbage_collect): Don't handle buffer_defaults specially.
5640 (mark_object): Handle new symbol value structure rather than the old
5641 special Lisp_Misc_* objects.
5642 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
5643 * term.c (set_tty_color_mode):
5644 * bidi.c (bidi_initialize): Don't access the ->value field directly.
5645 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
5646 a buffer_local_flags.
5647 * print.c (print_object): Get rid of impossible forwarding objects.
5648
5649 2010-04-19 Eli Zaretskii <eliz@gnu.org>
5650
5651 * bidi.c (bidi_get_type, bidi_get_category)
5652 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
5653 (bidi_type_of_next_char, bidi_level_of_next_char):
5654 Declare static. Use `INLINE' rather than `inline'.
5655
5656 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
5657
5658 * dired.c (Ffile_attributes): Fix typo in docstring.
5659
5660 2010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
5661
5662 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
5663 NSInteger (Bug#5811).
5664
5665 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5666
5667 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
5668 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
5669
5670 2010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5671
5672 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
5673
5674 2010-04-19 Chong Yidong <cyd@stupidchicken.com>
5675
5676 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
5677 terminal frames (Bug#5837).
5678
5679 2010-04-19 Eli Zaretskii <eliz@gnu.org>
5680
5681 * .gdbinit (xsubchartable): New command.
5682
5683 2010-04-19 Eli Zaretskii <eliz@gnu.org>
5684
5685 * xdisp.c (display_line): Don't write beyond the last glyph row in
5686 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
5687 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
5688 and
5689 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
5690
5691 2010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
5692
5693 * alloc.c (Fpurecopy): Hash-cons if requested.
5694 (syms_of_alloc): Update purify-flag docstring.
5695
5696 2010-04-18 Jan Djärv <jan.h.d@swipnet.se>
5697
5698 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
5699 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
5700
5701 2010-04-17 Eli Zaretskii <eliz@gnu.org>
5702
5703 Fix a crash when an NSM character is inserted at BEGV.
5704
5705 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
5706 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
5707 NEUTRAL_B or UNKNOWN_BT.
5708
5709 2010-04-16 Eli Zaretskii <eliz@gnu.org>
5710
5711 * xdisp.c (set_cursor_from_row): Don't consider possibility of
5712 other rows with cursor unless they are different from this row and
5713 this row is part of a continued line. (Bug#5943)
5714
5715 2010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
5716
5717 * s/freebsd.h: Restore osreldate.h include.
5718 Suggested by Naohiro Aota.
5719
5720 2010-04-16 Jan Djärv <jan.h.d@swipnet.se>
5721
5722 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
5723
5724 2010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
5725
5726 * s/cygwin.h: Avoid linking against static libgcc.
5727
5728 2010-04-15 Juri Linkov <juri@jurta.org>
5729
5730 * window.c: Add Qscroll_command.
5731 Remove Vscroll_preserve_screen_position_commands.
5732 (window_scroll_pixel_based, window_scroll_line_based): Check the
5733 `scroll-command' property on the last command instead of searching
5734 the last command in Vscroll_preserve_screen_position_commands.
5735 (syms_of_window): Initialize and staticpro `Qscroll_command'.
5736 Put Qscroll_command property on Qscroll_up and Qscroll_down.
5737 (scroll-preserve-screen-position): Doc fix.
5738 (Vscroll_preserve_screen_position_commands): Remove variable.
5739
5740 2010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
5741
5742 * xdisp.c (message): Do not use NO_ARG_ARRAY.
5743
5744 2010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
5745
5746 Reduce cpp use in Makefile.in.
5747 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
5748 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
5749 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
5750 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
5751 (CRT0_COMPILE): Remove, inline it in the only user.
5752
5753 2010-04-14 Juri Linkov <juri@jurta.org>
5754
5755 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
5756 `scroll-up-command' and `M-v' from `scroll-down' to
5757 `scroll-down-command'.
5758
5759 2010-04-14 Juri Linkov <juri@jurta.org>
5760
5761 * window.c (Vscroll_preserve_screen_position_commands): New variable
5762 with the default value as the list of Qscroll_down and Qscroll_up.
5763 (window_scroll_pixel_based, window_scroll_line_based): Search the
5764 last command in the list Vscroll_preserve_screen_position_commands
5765 instead of comparing with Qscroll_up and Qscroll_down.
5766
5767 2010-04-13 Jan Djärv <jan.h.d@swipnet.se>
5768
5769 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
5770 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
5771 does that.
5772
5773 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
5774 to zero.
5775
5776 2010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
5777
5778 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
5779
5780 Try to solve the problem of spurious EOF chars in long lines of text
5781 sent to interactive subprocesses.
5782 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
5783 (system_process_attributes): Remove unused var `ttotal'.
5784 * process.c (send_process): Don't bother breaking long line with EOF
5785 chars when talking to ttys any more.
5786 (wait_reading_process_output): Output a warning when called in such
5787 a way that it could block without being interruptible.
5788
5789 Try to detect file modification within the same second.
5790 * buffer.h (struct buffer): New field modtime_size.
5791 * buffer.c (reset_buffer): Initialize it.
5792 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
5793 (Fverify_visited_file_modtime): Check it.
5794 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
5795 (Fset_visited_file_modtime): Set (or clear) it.
5796
5797 2010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
5798
5799 * process.c (status_notify): Remove unused var `ro'.
5800
5801 2010-04-12 Jan Djärv <jan.h.d@swipnet.se>
5802
5803 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
5804 more than one visual (Bug#5938).
5805
5806 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
5807
5808 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
5809 Undefine.
5810
5811 2010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
5812
5813 Remove C_SWITCH_SYSTEM_TEMACS.
5814 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
5815 (malloc, realloc, free): Use emacs, not temacs for conditional
5816 definition.
5817
5818 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
5819 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
5820
5821 Use autoconf, not cpp for some variables.
5822 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
5823 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
5824 (ALL_CFLAGS): Use them as make variables.
5825 (really-lwlib, really-oldXMenu): Do not pass them.
5826
5827 2010-04-11 Jan Djärv <jan.h.d@swipnet.se>
5828
5829 * xmenu.c (apply_systemfont_to_dialog): New.
5830 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
5831
5832 2010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
5833
5834 * process.c (exec_sentinel): Preserve current-buffer.
5835
5836 * process.c (read_process_output): Move the save-current-buffer to
5837 apply to both the filter and the non-filter branches.
5838
5839 2010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
5840
5841 * s/msdos.h (UNEXEC): New definition.
5842
5843 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5844
5845 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
5846 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
5847
5848 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
5849 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
5850 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
5851 TRY_WINDOW_CHECK_MARGINS.
5852
5853 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5854 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
5855 width only when it is for padding.
5856
5857 2010-04-09 Jan Djärv <jan.h.d@swipnet.se>
5858
5859 * xfns.c (Fx_show_tip): Call try_window in a loop until
5860 fonts_changed_p is zero (Bug#2423).
5861
5862 2010-04-08 Eli Zaretskii <eliz@gnu.org>
5863
5864 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
5865 the end of TEXT_AREA. (Bug#5856)
5866
5867 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
5868
5869 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
5870 HAVE_GCONF.
5871
5872 2010-04-08 Eli Zaretskii <eliz@gnu.org>
5873
5874 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
5875 prev.orig_type, for resolving type of NSM. (Bug#5858)
5876
5877 2010-04-08 Jan Djärv <jan.h.d@swipnet.se>
5878
5879 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
5880 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
5881 in current_font.
5882 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
5883 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
5884 New functions.
5885 (syms_of_xsettings): Initialize current_font.
5886 defsubr Sfont_get_system_normal_font.
5887
5888 * xsettings.h (Ffont_get_system_normal_font)
5889 (xsettings_get_system_normal_font): Declare.
5890
5891 * xfns.c (extern xlwmenu_default_font): Remove.
5892 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
5893 to xlwmenu.c.
5894
5895 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
5896 menu items in UTF-8.
5897
5898 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
5899 (apply_systemfont_to_menu): New function.
5900 (set_frame_menubar, create_and_show_popup_menu): Call
5901 apply_systemfont_to_menu.
5902
5903 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
5904
5905 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
5906 FRAME_LINE_TO_PIXEL_Y.
5907
5908 * xterm.c (x_set_window_size_1): Don't add border_width/height to
5909 pixelwidth/height.
5910
5911 2010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
5912
5913 Simplify code for HP machines.
5914 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
5915 for GNU_LINUX, not needed.
5916 (UNEXEC, NEED_BSDTTY): Move definitions...
5917 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
5918
5919 * m/iris4d.h (UNEXEC): Move definition ...
5920 * s/irix6-5.h (UNEXEC): ... here.
5921
5922 2010-04-04 Jan Djärv <jan.h.d@swipnet.se>
5923
5924 * xfns.c (set_machine_and_pid_properties): New function.
5925 (Fx_create_frame): Call set_machine_and_pid_properties.
5926
5927 2010-04-03 Eli Zaretskii <eliz@gnu.org>
5928
5929 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
5930 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
5931 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
5932
5933 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
5934 in this function. (Bug#5703)
5935
5936 2010-04-03 Chong Yidong <cyd@stupidchicken.com>
5937
5938 * nsterm.h: Fix last change.
5939
5940 2010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
5941
5942 * m/intel386.h (NO_REMAP): Move definition ...
5943 * s/msdos.h (NO_REMAP): ... here.
5944
5945 * m/vax.h (CRT0_DUMMIES): Remove, unused.
5946
5947 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
5948 used on those platforms.
5949
5950 2010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
5951
5952 Remove extern errno declarations.
5953 * xterm.c:
5954 * xrdb.c:
5955 * w32term.c:
5956 * unexec.c:
5957 * unexaix.c:
5958 * sysdep.c:
5959 * process.c:
5960 * lread.c:
5961 * keyboard.c:
5962 * floatfns.c:
5963 * filelock.c:
5964 * fileio.c:
5965 * emacs.c (main):
5966 * ecrt0.c:
5967 * dispnew.c:
5968 * callproc.c:
5969 * buffer.c: Remove errno extern declarations.
5970 * s/netbsd.h (NEED_ERRNO): Remove.
5971
5972 2010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
5973
5974 Remove all uses of LIBX11_SYSTEM.
5975 * Makefile.in (LIBX11_SYSTEM): Remove.
5976 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
5977 instead.
5978
5979 2010-04-01 Eli Zaretskii <eliz@gnu.org>
5980
5981 Remove support for DJGPP v1.x (bug#5813).
5982
5983 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
5984 * s/msdos.h:
5985 * unexec.c (make_hdr, copy_text_and_data):
5986 * sysdep.c (wait_for_termination, sys_subshell):
5987 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
5988 (IT_set_terminal_modes, __write, _rename, gethostname)
5989 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
5990 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
5991 the value of __DJGPP__.
5992 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
5993 compatibility code.
5994 * lread.c:
5995 * gmalloc.c (memalign):
5996 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
5997 * emacs.c (main):
5998 * dosfns.c (init_dosfns):
5999 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
6000
6001 2010-04-01 Eli Zaretskii <eliz@gnu.org>
6002
6003 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
6004 string with `cursor' property comes from an `after-string'
6005 overlay. (Bug#5816)
6006
6007 2010-04-01 Glenn Morris <rgm@gnu.org>
6008
6009 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
6010 Define as Makefile variables.
6011 (LIBX): Use above variables rather than directly using autoconf.
6012
6013 2010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
6014
6015 Clean up BSD_SYSTEM use.
6016 * xterm.c:
6017 * process.c:
6018 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
6019 for including <sys/ioctl.h>.
6020 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
6021 code is only used for MSDOS.
6022
6023 2010-03-31 Juri Linkov <juri@jurta.org>
6024
6025 * image.c: Add `Qextension_data'.
6026 (syms_of_image): Initialize and staticpro `Qextension_data'.
6027 (Fimage_metadata): Rename from `Fimage_extension_data'.
6028 (gif_load): Put GIF extension data to the property
6029 `Qextension_data'.
6030
6031 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
6032
6033 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
6034 * nsterm.h: Fix prototype.
6035
6036 2010-03-31 Eli Zaretskii <eliz@gnu.org>
6037
6038 * xdisp.c (highlight_trailing_whitespace): Support highlight of
6039 trailing whitespace in right-to-left rows.
6040
6041 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
6042
6043 Get rid of the direct_output optimizations.
6044 * keyboard.c (nonundocount): Remove extern declaration.
6045 (command_loop_1): Remove brittle optimisation for cheap and
6046 common operations.
6047 * xdisp.c (redisplay_internal): Don't bother checking
6048 redisplay_performed_directly_p any more.
6049 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
6050 any more.
6051 * dispnew.c (redisplay_performed_directly_p)
6052 (direct_output_for_insert, direct_output_forward_char):
6053 * dispextern.h (redisplay_performed_directly_p)
6054 (direct_output_for_insert, direct_output_forward_char): Remove.
6055 * cmds.c (nonundocount): Make it static.
6056
6057 2010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
6058
6059 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
6060
6061 2010-03-31 Jan Djärv <jan.h.d@swipnet.se>
6062
6063 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
6064 invisible (Bug#5766).
6065
6066 2010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
6067
6068 * xdisp.c (x_consider_frame_title, update_window_cursor):
6069 Remove HAVE_NS conditionals.
6070 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
6071
6072 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
6073 filename for the title.
6074 (ns_set_doc_edited): Do nothing if the selected window is a
6075 minibuffer window.
6076
6077 * nsterm.h: Add prototypes for ns_set_name_as_filename and
6078 ns_set_doc_edited.
6079
6080 * nsterm.m: Remove unneeded prototype.
6081
6082 2010-03-31 Glenn Morris <rgm@gnu.org>
6083
6084 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
6085 in the DOC file. (Bug#5336)
6086
6087 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
6088
6089 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
6090
6091 2010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
6092
6093 * window.c (keys_of_window): Remove redundant/overridden bindings.
6094
6095 2010-03-30 Eli Zaretskii <eliz@gnu.org>
6096
6097 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
6098 Restore original behavior when the iterator is not bidi_p.
6099
6100 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
6101
6102 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
6103
6104 2010-03-30 Eli Zaretskii <eliz@gnu.org>
6105
6106 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
6107 are outside the range of cached character positions.
6108
6109 2010-03-30 Juanma Barranquero <lekktu@gmail.com>
6110
6111 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
6112
6113 2010-03-30 Eli Zaretskii <eliz@gnu.org>
6114
6115 Initial support for bidirectional editing.
6116
6117 * Makefile.in (obj): Include bidi.o.
6118 (bidi.o): New target.
6119
6120 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
6121 ($(BLD)/bidi.$(O)): New target.
6122
6123 * bidi.c: New file.
6124
6125 * buffer.h (struct buffer): New members bidi_display_reordering
6126 and bidi_paragraph_direction.
6127
6128 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
6129 and bidi_paragraph_direction.
6130 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
6131 and bidi-paragraph-direction.
6132 (Fbuffer_swap_text): Swap the values of
6133 bidi_display_reordering and bidi_paragraph_direction.
6134
6135 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
6136 (bidi_type_t, bidi_dir_t): New types.
6137 (bidi_saved_info, bidi_stack, bidi_it): New structures.
6138 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
6139 prev_stop, base_level_stop, and eol_pos.
6140 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
6141 (IT_STACK_SIZE): Enlarge to 5.
6142 (struct glyph_row): New member reversed_p.
6143 <string_buffer_position>: Update prototype.
6144 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
6145 glyph_row if bidi_it.paragraph_dir == R2L.
6146 (struct glyph): New members resolved_level and bidi_type.
6147
6148 * dispnew.c (direct_output_forward_char): Give up if we need bidi
6149 processing or buffer's direction is right-to-left.
6150 (prepare_desired_row): Preserve the reversed_p flag.
6151 (row_equal_p): Compare the reversed_p attributes as well.
6152
6153 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
6154 bidi_init_it and set it->paragraph_embedding from the current
6155 buffer's value of bidi_paragraph_direction.
6156 (reseat_1): Initialize bidi_it.first_elt.
6157 (set_iterator_to_next, next_element_from_buffer): Use the value of
6158 paragraph_embedding to determine the paragraph direction.
6159 (set_iterator_to_next): Under bidi reordering, call
6160 bidi_get_next_char_visually. Call bidi_paragraph_init if the
6161 new_paragraph flag is set in the bidi iterator.
6162 (next_element_from_buffer): If bidi_it.first_elt is set,
6163 initialize paragraph direction and find the first character to
6164 display in the visual order. If reseated to a middle of a line,
6165 prime the bidi iterator starting at the line's beginning. Handle
6166 the situation where we overstepped stop_charpos due to
6167 non-linearity of the bidi iteration. Likewise for when we back up
6168 beyond the previous stop_charpos. When moving across stop_charpos,
6169 record it in prev_stop.
6170 (display_line): Set row->end and it->start for the next row to the
6171 next character in logical order. Always extend reversed_p rows to
6172 the end of line, even if they end at ZV. Copy the reversed_p flag
6173 to the next glyph row. Keep calling set_cursor_from_row for
6174 bidi-reordered rows even if we already have a possible candidate
6175 for cursor position. Set row_end after all the row's glyphs have
6176 been produced, by looping over the glyphs. Record the position
6177 after EOL in it->eol_pos, and use it to set end_pos of the last
6178 row produced for a continued line.
6179 <Qright_to_left, Qleft_to_right>: New variables.
6180 (syms_of_xdisp): Initialize and staticpro them.
6181 (string_buffer_position_lim): New function.
6182 (string_buffer_position): Most of code moved to
6183 string_buffer_position_lim. Last argument and return value are
6184 now EMACS_INT; all callers changed.
6185 (set_cursor_from_row): Rewritten to support bidirectional text and
6186 reversed glyph rows.
6187 (text_outside_line_unchanged_p, try_window_id): Disable
6188 optimizations if we are reordering bidirectional text and the
6189 paragraph direction can be affected by the change.
6190 (append_glyph, append_composite_glyph)
6191 (produce_image_glyph, append_stretch_glyph): Set the
6192 resolved_level and bidi_type members of each glyph.
6193 (append_glyph): If the glyph row is reversed, prepend the glyph
6194 rather than appending it.
6195 (handle_stop_backwards): New function.
6196 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
6197 (reseat): call handle_stop_backwards to recompute prev_stop and
6198 base_level_stop for the new position.
6199 (handle_invisible_prop): Under bidi iteration, skip invisible text
6200 using bidi_get_next_char_visually. If we are `reseat'ed, init the
6201 paragraph direction. Update IT->prev_stop after skipping
6202 invisible text.
6203 (move_it_in_display_line_to): New variables prev_method
6204 and prev_pos. Compare for strict equality in
6205 BUFFER_POS_REACHED_P.
6206 (try_cursor_movement): Examine all the candidate rows that occlude
6207 point, to return the best match. If rows are bidi-reordered
6208 and point moved backwards, back up to the row that is not a
6209 continuation line, and start looking for a suitable row from
6210 there.
6211
6212 * term.c (append_glyph): Reverse glyphs by pre-pending them,
6213 rather than appending, if the glyph_row's reversed_p flag is set.
6214 Set the resolved_level and bidi_type members of each glyph.
6215
6216 * .gdbinit (pbiditype): New command.
6217 (pgx): Use it to display bidi level and type of the glyph.
6218 (pitx): Display some bidi information about the iterator.
6219 (prowlims, pmtxrows): New commands.
6220
6221 2010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
6222
6223 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
6224 * s/usg5-4.h (LIBS_DEBUG):
6225 * s/irix6-5.h (C_DEBUG_SWITCH):
6226 * s/gnu-linux.h (LIBS_DEBUG):
6227 * s/darwin.h (LIBS_DEBUG):
6228 * s/bsd-common.h (LIBS_DEBUG):
6229 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
6230 * m/iris4d.h (LIBS_DEBUG):
6231 * m/hp800.h (LIBS_DEBUG): Remove definitions.
6232
6233 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
6234 (LIBS_DEBUG): Remove definition.
6235
6236 2010-03-27 Chong Yidong <cyd@stupidchicken.com>
6237
6238 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
6239 Windows.
6240
6241 2010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6242
6243 * process.c (Fmake_network_process): Don't call turn_on_atimers around
6244 `connect' (Bug#5723).
6245
6246 2010-03-25 Helmut Eller <eller.helmut@gmail.com>
6247
6248 * process.c (Fmake_network_process): Call `select' for interrupted
6249 `connect' rather than creating new socket (Bug#5173).
6250
6251 2010-03-24 Jan Djärv <jan.h.d@swipnet.se>
6252
6253 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
6254
6255 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
6256
6257 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
6258
6259 2010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6260
6261 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
6262 XLoadQueryFont.
6263
6264 2010-03-24 Kenichi Handa <handa@m17n.org>
6265
6266 * coding.c (decode_coding_ccl): Fix previous change for the
6267 multibyte case.
6268 (encode_coding_ccl): Don't setup ccl program here. Fix for the
6269 case that the output buffer is fullfilled.
6270 (encode_coding): Setup ccl program here.
6271
6272 2010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
6273
6274 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
6275
6276 Simplify LIBS_MACHINE definitions.
6277 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
6278 * m/iris4d.h (LIBS_MACHINE): Likewise.
6279 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
6280 * s/aix4-2.h (LIBS_SYSTEM): ... here.
6281 * s/netbsd.h: Remove commented out code.
6282
6283 2010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
6284
6285 Remove dead code dealing with POSIX_SIGNALS.
6286 * atimer.c (set_alarm): Remove dead code, all USG systems define
6287 POSIX_SIGNALS.
6288 * data.c (arith_error): Likewise.
6289 * keyboard.c (input_available_signal, handle_user_signal)
6290 (interrupt_signal): Likewise.
6291 * process.c (sigchld_handler): Likewise.
6292 (create_process): Remove if 0 code. Remove HPUX conditional when
6293 !defined (POSIX_SIGNALS), it cannot be true.
6294 * syssignal.h: Remove USG5_4 and USG conditionals when
6295 !POSIX_SIGNALS, they cannot be true.
6296
6297 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
6298 NO_SOCK_SIGIO, not used anymore.
6299
6300 2010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
6301
6302 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
6303 support vax on BSDs.
6304
6305 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
6306 * s/aix4-2.h (ORDINARY_LINK): ... here.
6307
6308 2010-03-21 Andreas Schwab <schwab@linux-m68k.org>
6309
6310 * Makefile.in (abs_builddir): Define.
6311 (bootstrap_exe): Use it.
6312 (VPATH): Use $(srcdir) instead of @srcdir@.
6313
6314 2010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
6315
6316 * Makefile.in (bootstrap_exe): Use an absolute name.
6317
6318 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
6319
6320 Remove support for old GNU/Linux using libc version 5.
6321 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
6322 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
6323
6324 Consolidate redundant definitions in s/bsd-common.h.
6325 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6326 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6327 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
6328 doing it in all files that include this one.
6329 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6330 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6331 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6332 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6333 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6334 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6335 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
6336 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
6337 (LDAV_SYMBOL, KERNEL_FILE): Remove.
6338
6339 Consolidate redundant definitions.
6340 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
6341 it's undefined in all files that include this one.
6342 (POSIX_SIGNALS): Define here instead of doing it in all files that
6343 include this one.
6344 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6345 (POSIX_SIGNALS): Do not define.
6346 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6347 (POSIX_SIGNALS): Do not define.
6348 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
6349 (POSIX_SIGNALS): Do not define.
6350
6351 Remove support for old UNIX System V systems.
6352 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
6353 * s/usg-5-4-2.h: Remove.
6354
6355 Remove support for Solaris on PPC and for old versions.
6356 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
6357 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
6358 that cancel each other.
6359 * s/sol2-3.h:
6360 * s/sol2-4.h:
6361 * s/sol2-5.h: Remove.
6362 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
6363 (NO_REMAP): Remove, unused.
6364 (UNEXEC): Move definition ...
6365 * s/aix4-2.h (UNEXEC): ... here.
6366
6367 * s/openbsd.h: Remove support for non-ELF and for systems that do
6368 not support shared libraries.
6369 * s/netbsd.h:
6370 * s/freebsd.h: Likewise.
6371
6372 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
6373
6374 Remove non-working support for lynxos 3.0.
6375 * s/lynxos.h: Remove file.
6376
6377 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
6378 COFF_BSD_SYMBOLS, nothing defines it anymore.
6379
6380 2010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
6381
6382 Remove obsolete uses of HAVE_SHM.
6383 * emacs.c (standard_args):
6384 (Fdump_emacs):
6385 (syms_of_emacs): Remove code depending on HAVE_SHM.
6386
6387 * alloc.c: Remove HAVE_SHM dependent definition.
6388
6389 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
6390
6391 2010-03-18 Glenn Morris <rgm@gnu.org>
6392
6393 * emacs.c (USAGE4): Hard-code bug address.
6394 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
6395 (bug_reporting_address): Remove.
6396 (main): Don't call bug_reporting_address.
6397
6398 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
6399 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
6400
6401 2010-03-15 Chong Yidong <cyd@stupidchicken.com>
6402
6403 * xfns.c (Fx_create_frame):
6404 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
6405 on left.
6406
6407 2010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
6408
6409 * editfns.c (Fformat): Account for string precision when computing
6410 field width (Bug#5710).
6411
6412 2010-03-12 Chong Yidong <cyd@stupidchicken.com>
6413
6414 * xfns.c (Fx_create_frame): Set default to Qright.
6415
6416 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
6417 all window systems.
6418
6419 2010-03-12 Eli Zaretskii <eliz@gnu.org>
6420
6421 These changes remove termcap.c from the build on Posix platforms.
6422 * Makefile.in (termcapobj): Move termcap.o from here...
6423 (MSDOS_OBJ): ...to here.
6424 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
6425 now identical to when LIBS_TERMCAP is defined.
6426
6427 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
6428
6429 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
6430
6431 * config.in: Regenerated. (See top-level ChangeLog.)
6432
6433 2010-03-10 Chong Yidong <cyd@stupidchicken.com>
6434
6435 * Branch for 23.2.
6436
6437 2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
6438
6439 Cleanup setup of gl_state in various parts of the code.
6440 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
6441 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
6442 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
6443 (skip_chars):
6444 * regex.c (regex_compile): Use it.
6445 (re_compile_pattern): Don't set gl_state.current_syntax_table since
6446 it's now set in regex_compile when/if we need it.
6447
6448 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
6449
6450 Make it possible to C-g in a tight bytecode loop again (bug#5680).
6451 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
6452 (QUIT): Use it to consolidate code and remove redundancy.
6453 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
6454
6455 * regex.c (regex_compile): Setup gl_state as well.
6456
6457 * syntax.c (skip_chars): Setup gl_state (bug#3823).
6458 (in_classes): Use CONSP before XCAR/XCDR.
6459
6460 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
6461
6462 * keymap.c (Fwhere_is_internal): Use Fequal to compare
6463 definitions, so that keyboard macros are correctly handled
6464 (Bug#5481).
6465
6466 2010-03-02 Eli Zaretskii <eliz@gnu.org>
6467
6468 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
6469 text that could be relocated inside the call to emacs_mule_char.
6470 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
6471 (CODING_DECODE_CHAR): Add a comment describing its purpose.
6472
6473 2010-03-02 Kenichi Handa <handa@m17n.org>
6474
6475 * character.c (parse_str_as_multibyte): Fix handling of the
6476 multibyte form of raw-bytes.
6477 (str_as_multibyte): Likewise.
6478
6479 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
6480 form of raw-bytes.
6481
6482 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
6483
6484 * charset.c (load_charset_map_from_file)
6485 (load_charset_map_from_vector): Zero out allocated
6486 charset_map_entries before using them.
6487
6488 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
6489
6490 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
6491
6492 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
6493
6494 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
6495 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
6496
6497 2010-02-26 Kenichi Handa <handa@m17n.org>
6498
6499 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
6500
6501 * xdisp.c (reseat_to_string): Fix previous change.
6502
6503 2010-02-26 David Reitter <david.reitter@gmail.com>
6504
6505 * nsfont.m (nsfont_draw): ns_antialias_text should be a
6506 Lisp_Object (Bug#4736).
6507
6508 2010-02-25 Kenichi Handa <handa@m17n.org>
6509
6510 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
6511
6512 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
6513
6514 * xterm.c (XTflash): Move declarations before statements.
6515
6516 * gtkutil.c (xg_get_gdk_display): Remove (unused).
6517 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
6518 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
6519 (xg_create_tool_bar): Remove unused variables.
6520 (x_wm_set_size_hint): Move declarations before statements.
6521 (xg_create_frame_widgets): Remove variable grav.
6522
6523 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
6524
6525 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
6526
6527 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
6528
6529 * term.c (fatal): Add a final \n if needed (bug#5596).
6530
6531 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
6532
6533 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
6534
6535 2010-02-18 Glenn Morris <rgm@gnu.org>
6536
6537 * callint.c (Finteractive): Doc fix.
6538
6539 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
6540
6541 * coding.c (record_conversion_result):
6542 Handle CODING_RESULT_INSUFFICIENT_DST.
6543 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
6544 memory allocation error.
6545
6546 2010-02-17 Kenichi Handa <handa@m17n.org>
6547
6548 * coding.c (decode_coding_ccl): Don't setup ccl program here.
6549 Fix for the case that the output buffer is fullfilled.
6550 (decode_coding): Setup ccl program here. Keep looping when the
6551 decoder stopped because the output buffer is
6552 fullfilled (bug#5534).
6553
6554 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
6555
6556 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
6557
6558 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
6559 bug #5571.
6560 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
6561 overdrawn.
6562
6563 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
6564
6565 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
6566 doing_interact here.
6567 (ice_connection_closed): New function.
6568 (x_session_check_input, smc_die_CB, ice_io_error_handler)
6569 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
6570 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
6571 returns I/O error.
6572 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
6573 bug #5512.
6574
6575 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
6576
6577 * nsfont.m (nsfont_open): The system's value for the font descent
6578 is negative, so round it down to avoid clipping.
6579
6580 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
6581
6582 * charset.c (load_charset_map_from_file)
6583 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
6584 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
6585
6586 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
6587
6588 * charset.c (load_charset_map_from_file): Allocate large
6589 charset_map_entries structure on the heap rather than the stack.
6590 (Bug#5526).
6591
6592 2010-01-31 Kenichi Handa <handa@m17n.org>
6593
6594 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
6595 size in NAME is invalid, return -1 (Bug#5396).
6596
6597 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
6598
6599 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
6600 <deactivated@gmail.com> (Bug#3605).
6601
6602 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
6603
6604 * fileio.c (Frename_file): Correctly rename symlinks to
6605 directories (Bug#5496).
6606
6607 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
6608
6609 * nsterm.m (ns_ring_bell): Handle visible bell like X.
6610
6611 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
6612
6613 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
6614
6615 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
6616
6617 * frame.c (DEFAULT_ROWS): Change default to 35.
6618
6619 * xfns.c (x_default_font_parameter): Change default XFT font to
6620 monospace-10 (Bug#3643).
6621
6622 2010-01-29 Eli Zaretskii <eliz@gnu.org>
6623
6624 * w32inevt.c (key_event): Remove unnecessary comparison of
6625 event->uChar.AsciiChar with 128.
6626
6627 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
6628
6629 * fileio.c (Frename_file): Fix last change (Bug#5487).
6630
6631 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
6632
6633 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
6634
6635 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
6636
6637 * xfns.c (Fx_create_frame): Remove window size matching code from
6638 2010-01-15.
6639 (x_get_current_desktop, x_get_desktop_workarea): Remove.
6640
6641 2010-01-27 Jason Rumney <jasonr@gnu.org>
6642
6643 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
6644 (key_event): Use unicode for characters 128 and higher (Bug#4567).
6645
6646 2010-01-27 Kenichi Handa <handa@m17n.org>
6647
6648 * regex.c (analyse_first): Fix setting of fastmap for unibyte
6649 pattern string (Bug#4209).
6650
6651 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
6652
6653 * fileio.c (Frename_file): Call copy-directory and
6654 delete-directory for directories, in order to handle cross-device
6655 renaming (Bug#3353).
6656
6657 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
6658
6659 * xfns.c (Fx_create_frame): If frame height is too big, try
6660 sizes 24 and 10. Bug #3643.
6661
6662 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
6663
6664 Try and fix bug#788, hopefully for real this time.
6665 * keymap.c (shadow_lookup): Add `remap' arg.
6666 (describe_map, describe_vector): Update calls to shadow_lookup.
6667 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
6668 `remapped' so this flag is applicable to `sequence'. Be careful to
6669 perform remapping during shadow_lookup check of remapped_sequences.
6670
6671 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
6672
6673 * image.c (png_load): Use png_sig_cmp instead of the obsolete
6674 png_check_sig, which has been removed in libpng 1.4.
6675
6676 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
6677
6678 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
6679 lacks this header file).
6680
6681 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6682
6683 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
6684 as in Emacs 22.
6685
6686 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6687
6688 * lisp.h (make_pure_string): String pointer arg now points to const.
6689
6690 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
6691 args now point to const.
6692
6693 2010-01-22 Eli Zaretskii <eliz@gnu.org>
6694
6695 * lread.c (Fload): Don't treat files without .elc extension as
6696 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
6697 them. (bug#5303)
6698
6699 2010-01-20 Kenichi Handa <handa@m17n.org>
6700
6701 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
6702 treat the source as actual byte sequence.
6703
6704 2010-01-19 Alan Mackenzie <acm@muc.de>
6705
6706 Fix spurious before-change-functions invocation from (insert ?\n).
6707 * textprop.c (set_text_properties): Rename parameter
6708 `signal_after_change_p' to `coherent_change_p', and make the
6709 invocation of `modify_region' conditional on it.
6710
6711 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
6712
6713 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
6714 for debug purpose.
6715 (syms_of_xsettings): Declare xft-settings.
6716
6717 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
6718
6719 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
6720
6721 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
6722
6723 * xterm.c (event_handler_gdk): Block input (Bug#5037).
6724
6725 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
6726
6727 * emacs.c (standard_args): Adjust arg priorities to reflect how
6728 they are processed in startup.el.
6729
6730 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
6731
6732 * Makefile.in (lisp, shortlisp): Update.
6733
6734 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
6735
6736 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
6737 code, link the new kboard into all_kboard before running Lisp code,
6738 and protect the new terminal with GCPRO (Bug#5365).
6739 (x_term_init): Remove unused var `atom'.
6740 (x_delete_display, x_delete_terminal): Remove unused var `i'.
6741
6742 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
6743
6744 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
6745 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
6746 to find out usable size of the desktop. Don't make frames larger than
6747 this. Bug #3643.
6748
6749 2010-01-15 Kenichi Handa <handa@m17n.org>
6750
6751 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
6752
6753 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
6754
6755 * nsterm.m (Qnone): Define.
6756
6757 * nsfns.m (Qnone): Move definition to nsterm.m.
6758
6759 2010-01-14 Kenichi Handa <handa@m17n.org>
6760
6761 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
6762 systems.
6763
6764 2010-01-14 Kenichi Handa <handa@m17n.org>
6765
6766 Make auto-composition work on all buffers even if they are
6767 fundamental mode.
6768
6769 * composite.c (Vauto_composition_mode): New variable.
6770 (composition_compute_stop_pos): Check Vauto_composition_mode
6771 instead of Vauto_composition_function.
6772 (composition_adjust_point, Ffind_composition_internal): Likewise.
6773 (syms_of_composite): Declare Lisp variable
6774 "auto-composition-mode" here.
6775
6776 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
6777
6778 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
6779 during call to vendor-specific-keysyms (Bug#5365).
6780
6781 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6782
6783 * keyboard.c (input_available_signal) [SYNC_INPUT]:
6784 Call SIGNAL_THREAD_CHECK (Bug#5333).
6785
6786 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
6787 Call SIGNAL_THREAD_CHECK.
6788
6789 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
6790
6791 Try to fix bug#5314. This is probably not the final word, tho.
6792 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
6793 recent-auto-save-p as a side-effect.
6794 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
6795 * buffer.c (Fkill_buffer, reset_buffer):
6796 * editfns.c (Fsubst_char_in_region):
6797 * fileio.c (Finsert_file_contents, Fdo_auto_save)
6798 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
6799
6800 2010-01-13 Kenichi Handa <handa@m17n.org>
6801
6802 Display buffer name, etc. in mode line by composing correctly.
6803
6804 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
6805 STRING is not nil.
6806 (display_mode_element): Adjust for the change of
6807 decode_mode_spec and display_line.
6808 (decode_mode_spec): Change arg MULTIBYTE to STRING.
6809 (display_string): Handle the case that STRING is non-null and
6810 LISP_STRING is not nil.
6811
6812 * xterm.c (x_draw_composite_glyph_string_foreground):
6813 Pay attention to s->face->overstrike.
6814
6815 * composite.c (composition_reseat_it): Don't check PT if STRING is
6816 non nil.
6817
6818 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6819
6820 * keyboard.c (read_char): Don't apply previous change when current
6821 buffer is unchanged by command execution.
6822
6823 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
6824
6825 * keyboard.c (read_char): Return after executing from special map.
6826
6827 2010-01-12 Glenn Morris <rgm@gnu.org>
6828
6829 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
6830 bug-gnu-emacs rather than emacs-pretest-bug.
6831
6832 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
6833
6834 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
6835 initializing the Lisp variables that depend on them.
6836
6837 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6838
6839 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
6840 Clear areas that will not be updated after change of menu bar lines.
6841 Clear the menu bar window's current matrix when the window gets empty.
6842
6843 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
6844
6845 * intervals.h, textprop.c (extend_property_ranges): Return value
6846 and args changed. Discard properties that begin at or after the
6847 new end (Bug#5306).
6848
6849 * editfns.c (Fformat): Caller changed.
6850
6851 * nsterm.m (ns_set_default_prefs): Delete function.
6852 (syms_of_nsterm): Initialize ns_command_modifier,
6853 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
6854 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
6855
6856 * xdisp.c (pos_visible_p): Check for invisible text at the correct
6857 position (Bug#4040).
6858
6859 2010-01-09 Eli Zaretskii <eliz@gnu.org>
6860
6861 * editfns.c (Ffloat_time): Doc fix.
6862
6863 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
6864
6865 * xfns.c (Fx_create_frame): Don't create frame larger than display
6866 by default bug#3643.
6867
6868 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6869
6870 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
6871 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
6872 windows above internal border.
6873
6874 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
6875 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
6876 windows above internal border.
6877
6878 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
6879 tool bar windows specially.
6880
6881 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
6882
6883 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
6884 specially.
6885 (XTflash): Take account of menu bar height.
6886
6887 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
6888 specially.
6889
6890 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
6891
6892 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
6893 also be true before we can return early (bug #5339).
6894
6895 2010-01-06 David Reitter <david.reitter@gmail.com>
6896
6897 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
6898 (Fns_display_usable_bounds): Rewrite, computing bounds properly
6899 (Bug#3233).
6900
6901 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
6902
6903 * font.c (font_open_entity): Enable chache and call cached_font_ok
6904 for the driver if defined.
6905 (QCuser_spec): New symbol.
6906 (font_spec_from_name): Save name as user-spec.
6907 (font_load_for_lface): Keep user-spec instead of name.
6908 (font_open_by_name): Save name as user-spec.
6909 (syms_of_font): Initialize QCuser_spec.
6910 (font_clear_prop): Clear name if it exists in font (bug#5157).
6911
6912 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
6913 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
6914 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
6915
6916 * font.h (struct font_driver): Add cached_font_ok.
6917
6918 * xterm.c (x_clear_frame): Queue draw for scroll bars.
6919
6920 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
6921
6922 * xterm.c (x_new_font): Move code for setting rows/cols before
6923 resizing ...
6924 (x_set_window_size): ... to here. Bug #2568.
6925
6926 * gtkutil.c (xg_clear_under_internal_border): New function.
6927 (xg_frame_resized, xg_frame_set_char_size):
6928 Call xg_clear_under_internal_border.
6929 (xg_update_scrollbar_pos): Clear under old scroll bar position.
6930
6931 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
6932
6933 * keyboard.c (read_key_sequence): Catch keyboard switch after
6934 making a new tty frame (Bug#5095).
6935
6936 2010-01-05 Kenichi Handa <handa@m17n.org>
6937
6938 * fontset.c (fontset_find_font): Fix getting the frame pointer.
6939
6940 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
6941
6942 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
6943 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
6944 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
6945
6946 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
6947
6948 * dbusbind.c (xd_add_watch): Improve debug message.
6949 (xd_remove_watch): Improve debug message. If DATA is the session
6950 bus, unset D-Bus session environment.
6951 (Fdbus_init_bus): Pass the bus as argument to
6952 dbus_connection_set_watch_functions. (Bug#5283)
6953
6954 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
6955
6956 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
6957
6958 * lread.c (syms_of_lread): Make it clearer that these are the
6959 names of loaded files (Bug#5068).
6960
6961 * eval.c (run_hook_with_args): Handle the case where the global
6962 value has the obsolete single-function form (Bug#5026).
6963
6964 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
6965
6966 * minibuf.c (Fall_completions): Minor optimization.
6967
6968 2009-12-26 Eli Zaretskii <eliz@gnu.org>
6969
6970 * .gdbinit (pgx): Fix display of composite glyphs.
6971 Display cmp.from and cmp.to as well.
6972 (pitx): Fix last change.
6973
6974 2009-12-25 Kenichi Handa <handa@m17n.org>
6975
6976 * composite.h (composition_adjust_point): Update prototype.
6977
6978 * composite.c (composition_reseat_it): Don't make a composition
6979 spanning over point.
6980 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
6981 composable characters.
6982 (composition_adjust_point): New arg NEW_PT. Callers changed.
6983
6984 * keyboard.c (command_loop_1): Force redisplay if the last point
6985 was within a composition.
6986 (adjust_point_for_property): Don't adjust point for automatic
6987 composition when called after buffer modification.
6988
6989 2009-12-19 Eli Zaretskii <eliz@gnu.org>
6990
6991 * .gdbinit (pitx): Don't use enum names, use their values.
6992 Remove reference to non-existing value GET_FROM_COMPOSITION.
6993 (pgx): Don't use enum names, use their values.
6994 (pitmethod): New helper command.
6995 (pitx): Use it to display iteration method.
6996 (pgrowit): New command.
6997
6998 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
6999
7000 Update dependencies in Makefile.in.
7001
7002 * Makefile.in (alloc.o): Depend on termhooks.h.
7003 (atimer.o): Depend on blockinput.h.
7004 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
7005 and frame.h.
7006 (callint.o): Depend on systime.h, coding.h, and composite.h.
7007 (callproc.o): Depend on buffer.h.
7008 (casefiddle.o): Don't depend on charset.h.
7009 (casetab.o): Depend on character.h.
7010 (ccl.o): Depend on composite.h.
7011 (chartab.o): Depend on ccl.h.
7012 (cm.o): Depend on dispextern.h.
7013 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
7014 (coding.o): Don't depend on $(INTERVALS_H).
7015 (composite.o): Don't depend on dispextern.h explicitly (it's in
7016 $(INTERVALS_H)). Depend on ccl.h.
7017 (data.o): Depend on systime.h, coding.h, composite.h,
7018 dispextern.h, font.h, and ccl.h.
7019 (dired.o): Depend on composite.h.
7020 (dispnew.o): Depend on coding.h. Don't depend explicitly on
7021 composite.h (it's in $(INTERVALS_H)).
7022 (doc.o): Depend on systime.h, coding.h, and composite.h.
7023 (editfns.o): Don't depend explicitly on dispextern.h.
7024 (emacs.o): Depend on frame.h and coding.h.
7025 (eval.o): Depend on coding.h, composite.h, and xterm.h.
7026 (fileio.o): Depend on frame.h and commands.h. Don't depend
7027 explicitly on dispextern.h.
7028 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
7029 composite.h.
7030 (fns.o): Don't depend on termhooks.h.
7031 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
7032 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
7033 coding.h, $(INTERVALS_H), window.h, xterm.h.
7034 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
7035 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
7036 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
7037 fontset.h, ccl.h, and ftfont.h.
7038 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
7039 (gtkutil.o): Depend on dispextern.h and composite.h.
7040 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
7041 termhooks.h, and ccl.h.
7042 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
7043 (intervals.o): Depend on systime.h and coding.h.
7044 (keyboard.o): Depend on composite.h and coding.h.
7045 (keymap.o): Depend on coding.h and frame.h.
7046 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
7047 (macros.o): Depend on systime.h, coding.h, and composite.h.
7048 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
7049 and atimer.h.
7050 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
7051 dispextern.h explicitly.
7052 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
7053 Don't depend explicitly on dispextern.h and composite.h.
7054 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
7055 (regex.o): Don't depend on charset.h.
7056 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
7057 (search.o): Don't depend explicitly on composite.h.
7058 (sound.o): Depend on atimer.h and systime.h.
7059 (syntax.o): Don't depend explicitly on composite.h.
7060 (sysdep.o): Depend on coding.h and composite.h.
7061 (term.o): Depend on xterm.h and buffer.h.
7062 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
7063 (textprop.o): Don't depend on dispextern.h explicitly.
7064 (undo.o): Depend on dispextern.h.
7065 (window.o): Depend on coding.h and termhooks.h. Don't depend on
7066 dispextern.h and composite.h explicitly.
7067 (xdisp.o): Depend on ccl.h.
7068 (xfaces.o): Depend on coding.h and ccl.h.
7069 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
7070 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
7071 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
7072 ftfont.h.
7073 (xgselect.o): New dependency.
7074 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
7075 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
7076 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
7077 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
7078 (xsmfns.o): Depend on frame.h and dispextern.h.
7079 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
7080 sysselect.h.
7081
7082 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
7083
7084 * font.c (Fclear_font_cache): Pass correct cache argument to
7085 font_clear_cache.
7086
7087 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
7088
7089 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
7090 twice.
7091
7092 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
7093
7094 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
7095 calling file-remote-p. Reported by Jim Meyering.
7096
7097 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
7098
7099 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
7100 avoid compiler warnings. (Bug #5217)
7101
7102 2009-12-14 Kenichi Handa <handa@m17n.org>
7103
7104 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
7105 in 8-bit encoding.
7106
7107 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
7108
7109 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
7110 tooltip windows.
7111
7112 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
7113
7114 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
7115 Xatom_net_window_type.
7116
7117 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
7118 Xatom_net_window_type.
7119
7120 * xterm.c (my_log_handler): New function.
7121 (x_term_init): Set my_log_handler as log handler during gtk_init
7122 so we can filter out buggy messages. (Bug #5120).
7123
7124 * xterm.c (xg_scroll_callback): Parameter list changed,
7125 use parameter GtkScrollType to determine scroll/line/page.
7126 Only allow dragging if a button < 4 is grabbed (bug #5177).
7127 (xg_end_scroll_callback): New function.
7128 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
7129 xg_create_scroll_bar.
7130
7131 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
7132 (scroll_end_callback): Remove.
7133 (xg_create_scroll_bar): Add parameter end_callback, bind it to
7134 button-release-event. Replace value-changed event with change-value,
7135 bug #5177.
7136 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
7137 bug #5177.
7138
7139 * gtkutil.h (XG_LAST_SB_DATA): Remove.
7140 (xg_create_scroll_bar): Add GCallback end_callback.
7141
7142 * xftfont.c (QClcdfilter): New variable.
7143 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
7144 (syms_of_xftfont): Initialize QClcdfilter.
7145
7146 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
7147
7148 * xsettings.c (struct xsettings): Add member seen.
7149 (parse_xft_settings): Update member seen with what we have read.
7150 Return non-zero if Xft-settings have been parsed, 0 otherwise.
7151 (apply_xft_settings): Only update Xft settings with what member seen
7152 indicates as new.
7153
7154 2009-12-12 Eli Zaretskii <eliz@gnu.org>
7155
7156 * dispextern.h (struct text_pos): Use EMACS_INT.
7157 (struct glyph): Use EMACS_INT for charpos.
7158 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
7159 region_beg_charpos, region_end_charpos,
7160 redisplay_end_trigger_charpos, and also for
7161 iterator_stack_entry.end_charpos and
7162 iterator_stack_entry.stop_charpos.
7163
7164 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
7165
7166 * gtkutil.c (scroll_end_callback): New function (bug #5177).
7167 (xg_create_scroll_bar): Call scroll_end_callback on button release
7168 event (bug #5177).
7169 (xg_event_is_for_scrollbar): != replaced with ==.
7170
7171 2009-12-12 Kenichi Handa <handa@m17n.org>
7172
7173 * ftfont.c (struct ftfont_info): New member matrix.
7174 (ftfont_open): Setup xftfont_info->matrix.
7175 (MFLTFontFT): New member matrix.
7176 (FLOOR, CEIL, ROUND): New macros.
7177 (ftfont_get_metrics): Handle matrix transformation.
7178 (ftfont_shape_by_flt): New arg matrix. Callers changed.
7179
7180 * xftfont.c (struct xftfont_info): New member matrix.
7181 (xftfont_open): Setup xftfont_info->matrix.
7182
7183 2009-12-10 Kenichi Handa <handa@m17n.org>
7184
7185 * xdisp.c (append_space_for_newline): Consider face-remapping.
7186
7187 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
7188
7189 * xsettings.c: Include "keyboard.h".
7190
7191 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
7192
7193 Fix implicit function declarations.
7194 * cmds.c: Include "frame.h".
7195 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
7196 * frame.h: Move declaration of delete_frame outside of
7197 HAVE_WINDOW_SYSTEM.
7198
7199 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
7200
7201 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
7202
7203 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
7204 GTK builds.
7205
7206 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
7207
7208 * unexelf.c (unexec): Don't search for .data twice.
7209
7210 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
7211
7212 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
7213 if push failed.
7214 (handle_line_prefix): Set avoid_cursor_p here. Check return value
7215 of push_display_prop (Bug#5000).
7216
7217 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
7218 value of font_list_entities (Bug#5085).
7219
7220 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
7221
7222 Fix `string-to-number' to deal consistently with integers and floats.
7223 * lread.c (isfloat_string): New argument ignore_trailing to accept all
7224 trailing characters, not just whitespace.
7225 (read1): Pass new arg 0 to keep old behavior.
7226 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
7227 trailing chars, as it is already done for integers. Doc fixes.
7228 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
7229
7230 2009-12-04 Eli Zaretskii <eliz@gnu.org>
7231
7232 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
7233 Delete unused enumeration value.
7234
7235 2009-12-03 Eli Zaretskii <eliz@gnu.org>
7236
7237 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
7238
7239 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
7240
7241 * process.c (Fmake_network_process): Fix up the tests for
7242 "connectionless socket", so they DTRT for seqpacket sockets as well.
7243
7244 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
7245
7246 * process.c (Qseqpacket): New symbol.
7247 (HAVE_SEQPACKET): New macro.
7248 (Fmake_network_process): Accept new :type `seqpacket'.
7249 (init_process): Add `seqpacket' feature when applicable.
7250 (syms_of_process): Initialize Qseqpacket.
7251
7252 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7253
7254 * font.c (font_load_for_lface, font_open_by_name): Don't store name
7255 if entity is Qnil.
7256
7257 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
7258
7259 * print.c (print_preprocess): Preprocess the key_and_value table of
7260 hashtables, even tho they're "hidden" (bug#5082).
7261
7262 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
7263
7264 * frame.c (frame_make_pointer_invisible)
7265 (frame_make_pointer_visible): Declare f before statements.
7266
7267 2009-11-28 Eli Zaretskii <eliz@gnu.org>
7268
7269 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
7270 omitted dependencies on lisp.h.
7271
7272 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
7273
7274 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
7275 is NULL.
7276
7277 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
7278
7279 * frame.c (frame_make_pointer_invisible)
7280 (frame_make_pointer_visible): Just return if there isn't any selected
7281 frame.
7282
7283 * search.c (simple_search): Remove warning by making *p const.
7284
7285 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
7286
7287 * xdisp.c (power_letter): Remove duplicate const.
7288
7289 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
7290
7291 * term.c (delete_tty): Remove check for last terminal (bug#4970).
7292
7293 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
7294 defaults (bug #5025).
7295
7296 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
7297
7298 * insdel.c (adjust_markers_for_delete): Move it in the
7299 right direction! (bug#4803)
7300
7301 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7302
7303 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
7304
7305 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
7306
7307 2009-11-24 Glenn Morris <rgm@gnu.org>
7308
7309 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
7310
7311 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
7312
7313 * Makefile.in: Must create deps for ecrt0.o in its rule.
7314
7315 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
7316 because that is what Gtk+ font dialog understands.
7317
7318 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
7319 of Fcopy_sequence.
7320 (font_open_by_name): Put name given into QCname for font-object returned.
7321
7322 * frame.c (x_set_font): Save original font name as frame parameter
7323 font-parameter.
7324
7325 * xsettings.c (set_default_xft_settings): New function.
7326 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
7327 is found.
7328
7329 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
7330
7331 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
7332 searching backwards through multibyte buffer.
7333
7334 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
7335
7336 * xterm.c: #include xgselect.h.
7337 (x_initialize): Call xgselect_initialize.
7338
7339 * xsettings.c (something_changedCB): C++ comments => C comments.
7340 (init_gconf): Do not deal with any GLib file descriptors, xg_select
7341 does that now.
7342
7343 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
7344 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
7345 (scroll_bar_button_cb): Remove.
7346 (create_menus): C++ comments => C comments. Don't bind grab-notify
7347 event.
7348 (xg_create_scroll_bar): Don't bind button-press-event and
7349 button-release-event.
7350
7351 * process.c: Include xgselect.h if defined (USE_GTK) ||
7352 defined (HAVE_GCONF).
7353 (wait_reading_process_output): Call xg_select for the same condition.
7354
7355 * xgselect.c (xg_select): New function to better integrate with
7356 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
7357
7358 * xgselect.h: New file, declare xg_select, xgselect_initialize.
7359
7360 * Makefile.in (XOBJ): Add xgselect.o.
7361
7362 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
7363
7364 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
7365 Remove ignored second argument. All callers changed.
7366 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
7367 (RE_STRING_CHAR_AND_LENGTH): Likewise.
7368 * xdisp.c (string_char_and_length): Likewise.
7369
7370 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
7371
7372 * xterm.c (x_new_font):
7373 * print.c (print_object):
7374 * cmds.c (Fself_insert_command): Move declarations before statements.
7375
7376 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
7377
7378 * s/cygwin.h: Remove unneeded linker flags.
7379
7380 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
7381
7382 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
7383
7384 * xsettings.h: Declare xsettings_get_system_font.
7385
7386 * xsettings.c (xsettings_get_system_font): New function.
7387 (init_gconf): No use initiating gconf unless we have Xft also.
7388 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
7389 HAVE_GCONF.
7390
7391 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
7392 add a blank entry so it doesn't collapse into nothing.
7393
7394 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
7395
7396 * lread.c (Funintern): Comment out last change.
7397
7398 2009-11-19 Richard Stallman <rms@gnu.org>
7399
7400 * lread.c (Funintern): Error if symbol is t or nil.
7401
7402 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
7403
7404 * insdel.c (make_gap_larger): Don't make as many assumptions about the
7405 representation of Lisp integers.
7406 Reported by MJ Chan <mjchan.inbox@gmail.com>.
7407
7408 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
7409
7410 * lisp.h: Remove declaration of Ffont_get_system_font.
7411 * xfns.c: Move include of "xsettings.h".
7412 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
7413
7414 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
7415
7416 * xsettings.c (something_changedCB, Ffont_get_system_font):
7417 Check use_system_font.
7418 (syms_of_xsettings): DEFVAR font-use-system-font.
7419
7420 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
7421
7422 * xfns.c (x_default_font_parameter): Remove dead assignment.
7423
7424 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
7425
7426 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
7427
7428 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
7429 not have FC_LCD_*. #define them if not there.
7430
7431 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
7432
7433 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
7434
7435 * xterm.c (handle_one_xevent): Call xft_settings_event for
7436 ClientMessage, PropertyNotify and DestroyNotify.
7437 (x_term_init): If we have XFT, get DPI from Xft.dpi.
7438 Call xsettings_initialize.
7439
7440 * xftfont.c (xftfont_fix_match): New function.
7441 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
7442 Call xftfont_fix_match after XftFontMatch.
7443
7444 * xfont.c (xfont_driver): Initialize all members.
7445
7446 * xfns.c (x_default_font_parameter):
7447 Try font from Ffont_get_system_font.
7448 Do not get font from x_default_parameter if we got one from
7449 Ffont_get_system_font.
7450 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
7451
7452 * w32font.c (w32font_driver): Initialize all members.
7453
7454 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
7455
7456 * lisp.h: Declare syms_of_xsettings.
7457
7458 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
7459 Handle CONFIG_CHANGED_EVENT.
7460
7461 * ftfont.c (ftfont_filter_properties): New function.
7462
7463 * frame.c (x_set_font): Remove unused variable lval.
7464
7465 * font.h (struct font_driver): Add filter_properties.
7466
7467 * font.c (font_put_extra): Don't return if val is nil, it means
7468 boolean option is off.
7469 (font_parse_fcname): Collect all extra properties in extra_props
7470 and call filter_properties for all drivers with extra_props and
7471 font as parameter.
7472 (font_open_entity): Do not use cache, it does not pick up new
7473 fontconfig settings like hinting.
7474 (font_load_for_lface): If spec had a name in it, store it in entity.
7475
7476 * emacs.c (main): Call syms_of_xsettings.
7477
7478 * config.in: HAVE_GCONF is new.
7479
7480 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
7481 xsettings.o is new.
7482
7483 2009-11-17 Kenichi Handa <handa@m17n.org>
7484
7485 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
7486 back to the default font in case that no suitable font is found.
7487
7488 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
7489
7490 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
7491 Suggested by Chad Brown <yandros@mit.edu>.
7492 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
7493
7494 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
7495
7496 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
7497
7498 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
7499
7500 * Makefile.in: Ignore errors from mkdir when creating deps directory.
7501
7502 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
7503
7504 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
7505 has a parent.
7506
7507 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
7508 dependency files in deps/. Include those files into Makefile.
7509
7510 * config.in: Generated (AUTO_DEPEND).
7511
7512 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
7513
7514 * dbusbind.c (Vdbus_registered_objects_table): Rename from
7515 Vdbus_registered_functions_table, because it contains also
7516 properties. Fix docstring.
7517 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
7518
7519 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
7520
7521 * alloc.c (mark_object): Don't reprocess marked strings.
7522 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
7523 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
7524
7525 2009-11-13 Kenichi Handa <handa@m17n.org>
7526
7527 * category.c (word_boundary_p): Adjust for the change of the
7528 semantics of Vword_combining_categories.
7529 (Vword_combining_categories): Describe the slight change of the
7530 semantics.
7531
7532 2009-11-13 Eli Zaretskii <eliz@gnu.org>
7533
7534 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
7535
7536 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
7537
7538 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
7539
7540 * xdisp.c (syms_of_xdisp): Fix typo in last change.
7541
7542 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
7543
7544 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
7545
7546 2009-11-11 David Reitter <david.reitter@gmail.com>
7547
7548 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
7549 variables to fix 2009-11-09 change.
7550
7551 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
7552
7553 * process.c (ifflag_def): Make flag_sym constant.
7554 (Fnetwork_interface_info): Use a constant pointer.
7555 (ifflag_table):
7556 * xfns.c (cursor_bits):
7557 * xdisp.c (power_letter):
7558 * termcap.c (speeds, esctab):
7559 * sysdep.c (baud_convert):
7560 * keyboard.c (lispy_accent_codes, modifier_names):
7561 * image.c (xbm_format, xpm_format, pbm_format, png_format)
7562 (jpeg_format, tiff_format, gif_format, svg_format)
7563 (interlace_start, interlace_increment, gs_format):
7564 * gtkutil.c (separator_names):
7565 * fringe.c (swap_nibble):
7566 * fns.c (base64_value_to_char, base64_char_to_value):
7567 * fileio.c (make_temp_name_tbl):
7568 * coding.c (suffixes): Make constant.
7569
7570 * frame.c (make_initial_frame):
7571 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
7572 build_string.
7573 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
7574
7575 * s/freebsd.h:
7576 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
7577
7578 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
7579 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
7580
7581 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
7582 * xterm.c (syms_of_xterm):
7583 * xfaces.c (syms_of_xfaces):
7584 * xdisp.c (syms_of_xdisp):
7585 * lread.c (syms_of_lread):
7586 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
7587 build_string.
7588
7589 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
7590
7591 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
7592
7593 * fns.c (Fplist_get): Merge the active and the commented out code.
7594
7595 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
7596
7597 * keyboard.h: Declare timer_check.
7598
7599 * keyboard.c (timer_check_2): New function that does what the old
7600 timer_check did.
7601 (timer_check): Call timer_check_2 until -1 or a non-zero time is
7602 returned, i.e. don't return -1 with timers pending.
7603
7604 * process.c: Remove extern declaration of timer_check.
7605
7606 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
7607 even if timer_check returned -1.
7608
7609 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
7610 xg_dialog_data.
7611 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
7612 the event loop.
7613 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
7614 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
7615 Destroy the dialog after xg_dialog_run.
7616
7617 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
7618
7619 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
7620
7621 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
7622
7623 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
7624
7625 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
7626
7627 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
7628
7629 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
7630
7631 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
7632 w32menu.c, and nsmenu.m.
7633 Simplify the obsolete case where position is nil.
7634 (cleanup_popup_menu): New function, moved from nsmenu.m.
7635 (struct skp): Remove slot `notreal'.
7636 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
7637 adjust callers.
7638 (single_menu_item): Adjust call to parse_menu_item.
7639 (syms_of_menu): Defsubr x-popup-menu.
7640 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
7641 (keymap_panes): Don't export any more.
7642 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
7643 (xmenu_show): Declare.
7644 * keyboard.c (parse_menu_item): Remove arg `notreal'.
7645 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
7646 * keyboard.h (parse_menu_item): Update declaration.
7647 * xmenu.c (Fx_popup_menu): Remove.
7648 (syms_of_xmenu): Don't defsubr x-popup-menu.
7649 * w32menu.c (Fx_popup_menu): Remove.
7650 (syms_of_w32menu): Don't defsubr x-popup-menu.
7651 * nsmenu.m (cleanup_popup_menu): Remove.
7652 (ns_menu_show): Rename from ns_popup_menu and remove all the code
7653 moved to menu.c's Fx_popup_menu.
7654 (Fx_popup_menu): Remove.
7655 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
7656 menu_items (it's done in menu.c already).
7657
7658 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
7659
7660 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
7661 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
7662
7663 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
7664
7665 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
7666 xmenu_show. Hide any tooltip before opening a menu.
7667 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
7668 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
7669
7670 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
7671
7672 Let integers use up 2 tags to give them one extra bit and thus double
7673 their range.
7674 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
7675 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
7676 New macros.
7677 (enum Lisp_Type): Use them. Give explicit values.
7678 (Lisp_Type_Limit): Remove.
7679 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
7680 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
7681 Pay attention to USE_2_TAGS_FOR_INTS.
7682 (INTEGERP): Use LISP_INT_TAG_P.
7683 * fns.c (internal_equal): Simplify the default case.
7684 (sxhash): Use case_Lisp_Int.
7685 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
7686 any more.
7687 (Ftype_of): Use case_Lisp_Int.
7688 (store_symval_forwarding): Take into account the fact that Ints can
7689 now have more than one tag.
7690 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
7691 (buffer_slot_type_mismatch):
7692 * xfaces.c (face_attr_equal_p):
7693 * print.c (print_object):
7694 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
7695 Use case_Lisp_Int.
7696
7697 2009-11-06 Eli Zaretskii <eliz@gnu.org>
7698
7699 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
7700
7701 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
7702 warning.
7703
7704 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
7705
7706 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
7707
7708 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
7709
7710 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
7711 ButtonPressRelease and MotionNotify (bug#4870).
7712
7713 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
7714
7715 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
7716
7717 * xterm.c (syms_of_xterm):
7718 * xselect.c (syms_of_xselect):
7719 * xmenu.c (syms_of_xmenu):
7720 * xfns.c (syms_of_xfns):
7721 * xfaces.c (syms_of_xfaces):
7722 * xdisp.c (syms_of_xdisp):
7723 * window.c (syms_of_window):
7724 * w32fns.c (syms_of_w32fns):
7725 * undo.c (syms_of_undo):
7726 * textprop.c (syms_of_textprop):
7727 * terminal.c (syms_of_terminal):
7728 * syntax.c (syms_of_syntax):
7729 * sound.c (syms_of_sound):
7730 * search.c (syms_of_search):
7731 * print.c (syms_of_print):
7732 * minibuf.c (syms_of_minibuf):
7733 * macros.c (syms_of_macros):
7734 * keymap.c (syms_of_keymap, initial_define_key)
7735 (initial_define_lispy_key):
7736 * keyboard.c (syms_of_keyboard):
7737 * insdel.c (syms_of_insdel):
7738 * image.c (syms_of_image):
7739 * fringe.c (syms_of_fringe):
7740 * frame.c (syms_of_frame):
7741 * fontset.c (syms_of_fontset):
7742 * fns.c (syms_of_fns):
7743 * fns.c (syms_of_fns):
7744 * fileio.c (syms_of_fileio):
7745 * fileio.c (syms_of_fileio):
7746 * eval.c (syms_of_eval):
7747 * doc.c (syms_of_doc):
7748 * dispnew.c (syms_of_display):
7749 * dired.c (syms_of_dired):
7750 * dbusbind.c (syms_of_dbusbind):
7751 * data.c (syms_of_data):
7752 * composite.c (syms_of_composite):
7753 * coding.c (syms_of_coding):
7754 * cmds.c (syms_of_cmds):
7755 * charset.c (define_charset_internal, syms_of_character):
7756 * ccl.c (syms_of_ccl):
7757 * category.c (syms_of_category, init_category_once):
7758 * casetab.c (syms_of_casetab):
7759 * casefiddle.c (syms_of_casefiddle):
7760 * callint.c (syms_of_callint):
7761 * bytecode.c (syms_of_bytecode):
7762 * buffer.c (keys_of_buffer, syms_of_buffer):
7763 * alloc.c (syms_of_alloc):
7764 * process.c (syms_of_process, init_process):
7765 * lread.c (syms_of_lread, init_obarray):
7766 * font.c (build_style_table):
7767 * emacs.c (syms_of_emacs, main): Replace calls to intern with
7768 intern_c_string, calls to make_pure_string with
7769 make_pure_c_string. Use pure_cons instead of Fcons.
7770
7771 * process.c (socket_options): Make it const.
7772 (set_socket_option, init_process): Use a const pointer.
7773
7774 * lread.c (intern_c_string): New function.
7775 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
7776 (defvar_int): Uset it. Make the name const char*.
7777
7778 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
7779 (defvar_int): Update prototypes.
7780 (DEFUN, EXFUN): Support for prototypes is now required.
7781 (intern_c_string): New prototype.
7782 (struct Lisp_Subr): Make symbol_name constant.
7783
7784 * font.c (struct table_entry): Remove unused member. Make NAMES
7785 constant.
7786 (weight_table, slant_table, width_table): Make constant.
7787
7788 * emacs.c (struct standard_args): Make name and longname constant.
7789
7790 * character.h (DEFSYM): Use intern_c_string.
7791
7792 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
7793
7794 * alloc.c (make_pure_c_string): New function.
7795
7796 * eval.c (Fautoload): Purecopy all arguments.
7797
7798 2009-11-05 Kenichi Handa <handa@m17n.org>
7799
7800 * fileio.c (Finsert_file_contents): Be sure set coding-system of
7801 the buffer in case of replace.
7802
7803 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
7804
7805 * puresize.h (BASE_PURESIZE): Increase to 1620000.
7806
7807 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
7808
7809 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
7810 when applicable (bug#4851).
7811
7812 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
7813 (P_): Support for prototypes is now required.
7814
7815 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
7816
7817 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
7818 (Bug#4827).
7819
7820 2009-10-30 Eli Zaretskii <eliz@gnu.org>
7821
7822 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
7823
7824 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
7825
7826 * puresize.h (BASE_PURESIZE): Increase to 1470000.
7827
7828 * lread.c (Fload): Purecopy the file name when building
7829 Vpreloaded_file_list.
7830
7831 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
7832
7833 * w32fns.c (syms_of_w32fns): Change default value of
7834 w32-scroll-lock-modifier to nil. (Bug#2827)
7835
7836 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
7837
7838 * minibuf.c (Fall_completions): Fix typos in docstring.
7839
7840 2009-10-26 Andreas Schwab <schwab@redhat.com>
7841
7842 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
7843
7844 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
7845
7846 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
7847 For delta < 0, skip check that only makes sense when the mini-window
7848 is going to be enlarged. (Bug#4534)
7849
7850 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
7851
7852 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
7853 string in menu maps (Bug#4471).
7854
7855 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
7856
7857 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
7858 FRAME_NS_VIEW on terminal frames (Bug#4765).
7859
7860 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
7861
7862 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
7863 DBUS_TYPE_UINTnn separately to get proper sign extension.
7864
7865 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
7866 can properly handle unsigned types.
7867 (make_uid, make_gid): Remove.
7868
7869 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
7870 types again.
7871
7872 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
7873 (system_process_attributes): Likewise.
7874
7875 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
7876
7877 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
7878
7879 * eval.c (Fautoload): Purecopy the filename. Simplify.
7880
7881 * category.c (Fdefine_category): Purecopy docstring.
7882
7883 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
7884
7885 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
7886
7887 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
7888
7889 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
7890
7891 * window.c (Fwindow_edges, Fwindow_pixel_edges)
7892 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
7893 (Bug#4775).
7894
7895 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
7896
7897 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
7898 (init_fileio_once):
7899 * lisp.h (init_fileio_once): Remove.
7900 * emacs.c (main): Don't call init_fileio_once.
7901
7902 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
7903
7904 * puresize.h (BASE_PURESIZE): Increase to 1430000.
7905
7906 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
7907
7908 * doprnt.c (doprnt): Fix overflow check.
7909
7910 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
7911
7912 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
7913
7914 * xterm.h (x_wait_for_event): Declare it.
7915
7916 * xterm.c (pending_event_wait): New variable.
7917 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
7918 see pending_event_wait.eventtype.
7919 (handle_one_xevent): Don't change gravity when parent changes.
7920 (x_new_font): Call change_frame_size with new rows/columns before we
7921 try to resize the frame.
7922 (x_wait_for_event): New function.
7923 (x_set_window_size_1): Don't change gravity unless change_gravity
7924 is set.
7925 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
7926 don't change frame size, instead wait for the ConfigureNotify.
7927 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
7928 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
7929 (x_initialize): Initialize pending_event_wait.
7930
7931 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
7932 size.
7933
7934 * widget.c (EmacsFrameSetValues): Add comment.
7935 (EmacsFrameSetCharSize): Just call x_set_window_size.
7936
7937 * gtkutil.c (xg_frame_set_char_size): Flush events and call
7938 x_wait_for_event.
7939 (flush_and_sync): Remove again.
7940 (xg_get_font_name): Suggest monospace if no previous font is known.
7941
7942 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
7943
7944 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
7945 8th bit, since that only made sense in the ASCII world (bug#4751).
7946
7947 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7948
7949 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
7950 processing pending events when event is filtered for input method.
7951 (Bug#3681)
7952
7953 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
7954
7955 * fns.c: Add #endif accidentally removed in previous change.
7956
7957 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
7958
7959 * fns.c: Remove code for unsupported system: MAC_OS.
7960 * image.c: Likewise. Include setjmp.h.
7961
7962 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
7963
7964 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
7965 pixel -1 (bug #4742).
7966
7967 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
7968
7969 * process.c (create_pty): Remove conditionals for no longer
7970 supported systems: UNIPLUS and RTU.
7971
7972 * xterm.c:
7973 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
7974
7975 * alloc.c: Do not define struct catchtag.
7976 * eval.c: Move struct catchtag definition ...
7977 * lisp.h: ... here.
7978
7979 * image.c: Move png.h #include earlier to avoid warnings.
7980
7981 * xterm.c:
7982 * xsmfns.c:
7983 * xselect.c:
7984 * xrdb.c:
7985 * xmenu.c:
7986 * xftfont.c:
7987 * xfont.c:
7988 * xfns.c:
7989 * xfaces.c:
7990 * xdisp.c:
7991 * window.c:
7992 * widget.c:
7993 * w32xfns.c:
7994 * w32uniscribe.c:
7995 * w32term.c:
7996 * w32select.c:
7997 * w32reg.c:
7998 * w32proc.c:
7999 * w32menu.c:
8000 * w32inevt.c:
8001 * w32heap.c:
8002 * w32font.c:
8003 * w32fns.c:
8004 * w32console.c:
8005 * w32.c:
8006 * w16select.c:
8007 * vm-limit.c:
8008 * unexsol.c:
8009 * unexec.c:
8010 * unexcw.c:
8011 * unexaix.c:
8012 * undo.c:
8013 * tparam.c:
8014 * textprop.c:
8015 * terminfo.c:
8016 * terminal.c:
8017 * termcap.c:
8018 * term.c:
8019 * syntax.c:
8020 * sound.c:
8021 * sheap.c:
8022 * search.c:
8023 * scroll.c:
8024 * region-cache.c:
8025 * regex.c:
8026 * ralloc.c:
8027 * process.c:
8028 * print.c:
8029 * nsterm.m:
8030 * nsselect.m:
8031 * nsmenu.m:
8032 * nsimage.m:
8033 * nsfont.m:
8034 * nsfns.m:
8035 * msdos.c:
8036 * minibuf.c:
8037 * menu.c:
8038 * marker.c:
8039 * macros.c:
8040 * keymap.c:
8041 * keyboard.c:
8042 * intervals.c:
8043 * insdel.c:
8044 * indent.c:
8045 * gtkutil.c:
8046 * ftxfont.c:
8047 * ftfont.c:
8048 * fringe.c:
8049 * frame.c:
8050 * fontset.c:
8051 * font.c:
8052 * fns.c:
8053 * floatfns.c:
8054 * filelock.c:
8055 * fileio.c:
8056 * emacs.c:
8057 * editfns.c:
8058 * dosfns.c:
8059 * doprnt.c:
8060 * doc.c:
8061 * dispnew.c:
8062 * dired.c:
8063 * dbusbind.c:
8064 * data.c:
8065 * composite.c:
8066 * coding.c:
8067 * cmds.c:
8068 * cm.c:
8069 * chartab.c:
8070 * charset.c:
8071 * character.c:
8072 * ccl.c:
8073 * category.c:
8074 * casetab.c:
8075 * casefiddle.c:
8076 * callproc.c:
8077 * callint.c:
8078 * bytecode.c:
8079 * buffer.c:
8080 * atimer.c: Include setjmp.h. (Bug#4643)
8081
8082 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
8083
8084 Remove leftover table unibyte_to_multibyte_table.
8085 * character.c (unibyte_to_multibyte_table): Remove.
8086 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
8087 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
8088 * character.h (UNIBYTE_TO_CHAR): New macro.
8089 (MAKE_CHAR_MULTIBYTE): Use it.
8090 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
8091 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
8092 (message_dolog, set_message_1):
8093 * search.c (Freplace_match):
8094 * editfns.c (Fcompare_buffer_substrings):
8095 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
8096 (concat):
8097 * insdel.c (copy_text, count_size_as_multibyte):
8098 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
8099 * term.c (produce_glyphs):
8100 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
8101 * regex.c (RE_CHAR_TO_MULTIBYTE):
8102 * cmds.c (internal_self_insert):
8103 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
8104
8105 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
8106
8107 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
8108
8109 * puresize.h (BASE_PURESIZE): Increase to 1310000.
8110
8111 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
8112
8113 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
8114
8115 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8116
8117 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
8118 still needed under Tiger.
8119
8120 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
8121
8122 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
8123 __Apple__.
8124
8125 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
8126
8127 2009-10-15 Kenichi Handa <handa@m17n.org>
8128
8129 * print.c (print_object): Escape a symbol like "2E10" too.
8130
8131 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
8132
8133 Cleanups and changes for 64-bit compile under Snow Leopard.
8134 Based on suggestions by Erik Charlebois.
8135
8136 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
8137
8138 * nsfont.m (ns_char_width): Replace deprecated call.
8139 (ns_findfonts, nsfont_list_family): Use long format in printf, and
8140 cast argument.
8141 (nsfont_open): Use ns_char_width() everywhere.
8142 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
8143
8144 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
8145
8146 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
8147 where appropriate.
8148
8149 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
8150 where appropriate.
8151 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
8152 Use stringWithUTF8String.
8153 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
8154
8155 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
8156 Add formal protocol mention to inheritance.
8157 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
8158
8159 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
8160 Fix printf format.
8161 (ns_query_color): Use CGFloat where appropriate.
8162 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
8163 (EmacsScroller-mouseDown:): Use long format in printf, and cast
8164 argument.
8165
8166 * config.in (NS_HAVE_NSINTEGER): Drop.
8167
8168 * dbusbind.c (dbus-method-return-internal)
8169 (dbus-method-error-internal): Use long format in printf, and cast
8170 argument.
8171
8172 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
8173 in printf, and cast argument.
8174
8175 * process.c (list_processes_1): Use long format in printf, and
8176 cast argument.
8177
8178 2009-10-11 Glenn Morris <rgm@gnu.org>
8179
8180 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
8181
8182 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
8183
8184 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
8185 menu bar with a small width so it doesn't enlarge the frame.
8186
8187 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
8188
8189 * fontset.c (Fset_fontset_font): Fix typos in error messages.
8190
8191 2009-10-06 Glenn Morris <rgm@gnu.org>
8192
8193 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
8194 SOME_MACHINE_LISP (this enters indirectly via DOC).
8195
8196 2009-10-05 Eli Zaretskii <eliz@gnu.org>
8197
8198 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
8199
8200 2009-10-04 Eli Zaretskii <eliz@gnu.org>
8201
8202 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
8203 Doc fix.
8204
8205 2009-10-03 Martin Rudalics <rudalics@gmx.at>
8206
8207 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
8208
8209 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
8210
8211 * lisp.h (Qdelete_directory_internal): Remove, because it is not
8212 used anymore outside fileio.c.
8213
8214 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
8215
8216 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
8217
8218 * lisp.h (Qdelete_directory_internal):
8219 Declare, instead of Qdelete_directory.
8220
8221 * w32fns.c (Fsystem_move_file_to_trash): Use it.
8222
8223 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
8224
8225 * eval.c (Fcalled_interactively_p): Add `kind' argument.
8226
8227 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
8228
8229 * fileio.c (Fdelete_directory_internal): Rename from
8230 Fdelete_directory. It is not a command anymore. It has no file
8231 name handler.
8232
8233 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
8234
8235 * xdisp.c (get_next_display_element): Use an enum in last change.
8236
8237 2009-09-28 Kenichi Handa <handa@m17n.org>
8238
8239 * xdisp.c (get_next_display_element): Pay attention to
8240 unibyte_display_via_language_environment in handling
8241 Vnobreak_char_display.
8242
8243 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8244
8245 * nsterm.h (ns_app_name): New extern variable.
8246
8247 * nsterm.m (ns_app_name): New variable.
8248 (ns_term_init): Set and use it.
8249 (ns_term_shutdown): Use it.
8250
8251 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
8252 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
8253
8254 * nsfns.m (ns_set_name_iconic, ns_set_name)
8255 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
8256 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
8257
8258 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
8259 Remove double-casting in client_data comparison.
8260
8261 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8262
8263 * keyboard.c (make_lispy_event): Remember last wheel direction.
8264 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
8265
8266 2009-09-26 Glenn Morris <rgm@gnu.org>
8267
8268 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
8269 internal.elc. Add term/pc-win.elc.
8270 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
8271 term/x-win.elc.
8272 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
8273 term/w32-win.elc.
8274 (NS_SUPPORT): New.
8275 (lisp): Add NS_SUPPORT.
8276 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
8277
8278 2009-09-25 David Reitter <david.reitter@gmail.com>
8279
8280 * nsmenu.m (EmacsMenu-clear): Recognize application menu
8281 on Mac OS X 10.6+ (bug#4513).
8282
8283 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
8284
8285 * frame.c (xrdb_get_resource): Return nil for empty string resources;
8286 some parts of Emacs code (like font selection) don't grok them.
8287 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
8288
8289 2009-09-24 Andreas Schwab <schwab@redhat.com>
8290
8291 * coding.c (decode_coding_iso_2022): Fix operator precedence.
8292
8293 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
8294
8295 * dired.c (Fdirectory_files): Fix typo in docstring.
8296
8297 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8298
8299 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
8300 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
8301 (EmacsScroller-setPosition:portion:whole:): Remove -display call
8302 under GNUstep.
8303 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
8304
8305 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
8306 glyph advancement.
8307
8308 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8309
8310 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
8311 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
8312
8313 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
8314 deleted (bug #4492).
8315
8316 * nsfont.m (Vns_reg_to_script): New lisp variable.
8317 (syms_of_nsfont): Declare it.
8318 (ns_registry_to_script): New function.
8319 (ns_get_req_script): Call it.
8320 (ns_findfonts): Don't give up on non-unicode registry.
8321
8322 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
8323
8324 2009-09-20 Tom Tromey <tromey@redhat.com>
8325
8326 * eval.c (find_handler_clause): Make stack-trace-on-error work in
8327 batch mode (bug#4228).
8328
8329 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
8330
8331 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
8332 carefully. (Bug #4339)
8333
8334 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
8335
8336 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
8337
8338 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
8339
8340 * emacs.c (inhibit_x_resources): Update doc string for NS.
8341 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
8342 legacy code for -NXHost. Fix error printf in daemon case.
8343
8344 * nsterm.h (ns_no_defaults): Remove.
8345
8346 * nsterm.m (ns_no_defaults): Remove.
8347 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
8348 (ns_use_qd_smoothing): Remove legacy variable.
8349 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
8350 don't update the NSWindow itself.
8351 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
8352 state detection and store user rect ourselves. (Bug #3581)
8353
8354 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
8355 ns_use_qd_smoothing.
8356
8357 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
8358 platform versions. Drop support for emacs-20-style face specs.
8359 (x-close-connection): Drop PSFlush() under OS X.
8360 (x-focus-frame): Activate the app first. (Bug #4180)
8361
8362 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
8363
8364 * emacs.c (inhibit_x_resources): New variable.
8365 (main) [HAVE_NS]: Don't process --quick command line option.
8366 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
8367
8368 * lisp.h (inhibit_x_resources): Declare it extern.
8369
8370 * w32reg.c (x_get_string_resource):
8371 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
8372
8373 2009-09-17 Eli Zaretskii <eliz@gnu.org>
8374
8375 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
8376 Add lisp/term/internal.elc.
8377
8378 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
8379
8380 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
8381 (bug#4461).
8382
8383 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
8384
8385 * puresize.h (BASE_PURESIZE): Increase to 1290000.
8386
8387 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
8388 (OBJECTS_MACHINE): Remove, unused.
8389
8390 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
8391
8392 * frame.c (x_get_resource_string): Remove unused.
8393
8394 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
8395
8396 * xterm.c (x_new_font): Call change_frame_size before calling
8397 x_set_window_size, in case frame size won't change.
8398
8399 * frame.c (x_set_font): Remove dead code.
8400
8401 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
8402
8403 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
8404
8405 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8406
8407 * lread.c (Fload): Don't output a message after loading an obsolete
8408 package any more (done in Lisp now).
8409
8410 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
8411
8412 * fns.c (syms_of_fns): Doc fix (Bug#4227).
8413
8414 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
8415
8416 * keymap.c (Fwhere_is_internal): Use nconc2.
8417
8418 2009-09-11 Alan Mackenzie <acm@muc.de>
8419
8420 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
8421 batch mode.
8422
8423 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
8424
8425 * xdisp.c (display_mode_element): Detect cycles.
8426
8427 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
8428
8429 * keymap.c (where_is_internal): Don't erroneously return nil right after
8430 filling the cache.
8431 (where_is_internal_1): Fix up typo.
8432
8433 2009-09-11 Glenn Morris <rgm@gnu.org>
8434
8435 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
8436 share a common doc-string.
8437
8438 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
8439
8440 * keymap.c (get_keymap): Return the actual keymap symbol rather than
8441 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
8442
8443 * keymap.c (QCadvertised_binding): New constant.
8444 (syms_of_keymap): Initialize it.
8445 (Fwhere_is_internal): Try and use bindings from :advertised-binding
8446 if applicable.
8447
8448 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
8449
8450 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
8451 (parse_menu_item): Streamline since bindings are recomputed all the
8452 time anyway. Don't bother checking Vdefine_key_rebound_commands any
8453 more and don't support lmenu's menu-alias any more either.
8454
8455 * keymap.c (where_is_internal_data): Make noindirect a boolean.
8456 (where_is_internal): Strip it down to only traverse the keymaps.
8457 Move the cache handling from Fwhere_is_internal to here.
8458 (Fwhere_is_internal): Move the handling of remapping and the choice of
8459 the best binding from where_is_internal to here.
8460 Unify the cached/noncached paths, so remapping is also handled
8461 correctly when the cache is used, and so the cache can be used to
8462 speed up remap-handling when applicable.
8463 Give preference to non-remapped bindings.
8464 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
8465 non-remapped bindings.
8466 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
8467 command remapping.
8468
8469 * xdisp.c (display_mode_element): Move list length limit from 50 to
8470 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
8471
8472 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
8473
8474 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
8475
8476 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
8477
8478 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
8479 (Bug#4334)
8480
8481 * keymap.c (where_is_internal): Filter out shadowed remappings.
8482 Assume that where_is_internal returns unshadowed bindings to simplify
8483 the code and get rid of the gotos. Use ASIZE.
8484
8485 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
8486
8487 * xterm.c (x_focus_changed): If we get a focusout and pointer
8488 is invisible, make it visible.
8489
8490 * xterm.h: Remove condition for declaration of
8491 x_*_window_to_frame.
8492
8493 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
8494
8495 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
8496 initial terminal as well.
8497
8498 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
8499
8500 * xterm.h: Rename x_non_menubar_window_to_frame to
8501 x_menubar_window_to_frame.
8502
8503 * xterm.c: Remove declarations also in xterm.h.
8504 (XTmouse_position): Do not return valid positions
8505 for clicks in the menubar and the toolbar for Gtk+.
8506
8507 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
8508 if the widget for the event has the same top level as a frame,
8509 return the frame.
8510 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
8511 internal windows, bug #4122.
8512 (x_non_menubar_window_to_frame): Remove.
8513
8514 2009-09-02 Glenn Morris <rgm@gnu.org>
8515
8516 * buffer.c (default-major-mode): Move most of the doc from here...
8517 (major-mode): ... to here.
8518
8519 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
8520
8521 * process.c (wait_reading_process_output): Keep the descriptor
8522 when pty is used by a non-child process, e.g., in I/O buffer of
8523 GDB this allows inferior to be restarted.
8524
8525 2009-08-29 Eli Zaretskii <eliz@gnu.org>
8526
8527 * xdisp.c (redisplay_internal): Remove redundant test and collapse
8528 both branches into one.
8529
8530 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
8531
8532 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
8533 (main): Use enable-multibyte-characters rather than
8534 default-enable-multibyte-characters. Output a warning message when
8535 running a unibyte session.
8536
8537 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8538
8539 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
8540 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
8541 (copy_data_segment): Also copy __program_vars section.
8542 (copy_dyld_info) [LC_DYLD_INFO]: New function.
8543 (dump_it) [LC_DYLD_INFO]: Use it.
8544
8545 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
8546
8547 2009-08-28 Eli Zaretskii <eliz@gnu.org>
8548
8549 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
8550 $(SRC)/buildobj.h.
8551 (buildobj.h): Renamed from $(SRC)/buildobj.h.
8552 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
8553 $(SRC)/buildobj.h.
8554 (clean): Add buildobj.h.
8555
8556 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
8557
8558 * print.c (print_object): Set escapeflag to 1 when printing
8559 hashtable keys and values.
8560
8561 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
8562
8563 * lread.c (read_integer): Use doubles (and potentially return a float
8564 number) as we do in string-to-number.
8565 (read1): Use strtol to read integers, signal errors on strtol's
8566 overflow and use floats if strtol's output is too large for
8567 Elisp integers.
8568
8569 2009-08-27 Eli Zaretskii <eliz@gnu.org>
8570
8571 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
8572 (make-buildobj-SH): Fix last change.
8573 (SRC): Move to before where it's first used.
8574
8575 2009-08-27 Kenichi Handa <handa@m17n.org>
8576
8577 * process.c (send_process): Use encode_coding_object instead of
8578 encode_coding_string to perform eol-conversion even if the string
8579 is unibyte.
8580
8581 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
8582 character.
8583
8584 * cmds.c (Fself_insert_command): Avoid unnecessay
8585 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
8586
8587 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
8588
8589 * callproc.c (Fcall_process): Remove always true #if.
8590
8591 * lisp.h: Replace #if 0 code for checking with text pointing to
8592 the --enable-checking configure flag.
8593
8594 * emacs.c (main): Mention the --enable-profiling configure flag
8595 instead of using CFLAGS.
8596
8597 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
8598
8599 * Makefile.in (buildobj.h): New target.
8600 (doc.o): Depend on it.
8601 (temacs${EXEEXT}): Don't generate buildobj.lst.
8602 (mostlyclean): Delete buildobj.h, not buildobj.lst.
8603 * makefile.w32-in ($(SRC)/buildobj.h): New target.
8604 ($(BLD)/doc.$(O)): Depend on it.
8605 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
8606 provided by Eli Zaretskii.)
8607 ($(TEMACS)): Don't generate buildobj.lst.
8608 * doc.c: Include buildobj.h.
8609 (buildobj): New static variable.
8610 (Fsnarf_documentation): Use it, instead of opening and reading
8611 buildobj.lst.
8612
8613 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
8614
8615 * dbusbind.c (Fdbus_call_method)
8616 (Fdbus_call_method_asynchronously): Use English numeric format for
8617 timeout values in doc string.
8618
8619 2009-08-25 Kenichi Handa <handa@m17n.org>
8620
8621 * alloc.c (mark_char_table): New function.
8622 (mark_object): Use mark_char_table for a char-table.
8623
8624 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
8625 (CHAR_TABLE_REF): Use it.
8626
8627 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
8628
8629 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
8630 before invoking the newly build emacs to check for load-path
8631 shadowing.
8632
8633 2009-08-22 Glenn Morris <rgm@gnu.org>
8634
8635 * Makefile.in (bootstrap_exe): New variable.
8636 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
8637 Use ${bootstrap_exe}.
8638
8639 2009-08-22 Eli Zaretskii <eliz@gnu.org>
8640
8641 * coding.h (encode_coding_string): Don't encode unibyte strings.
8642 (Bug#4047)
8643
8644 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
8645
8646 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
8647
8648 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
8649 intended as hotfix only.
8650 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
8651
8652 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8653
8654 * nsterm.m (ns_get_color): Update documentation properly for last
8655 change, and clean up loose ends in the code left by it. Fix
8656 longstanding bug with 16-bit hex parsing, and add support for
8657 yet another X11 format (rgb:r/g/b) for compatibility.
8658 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
8659 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
8660
8661 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
8662
8663 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
8664
8665 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
8666
8667 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
8668 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
8669 (xd_initialize, xd_pending_messages): Check, whether
8670 $DBUS_SESSION_BUS_ADDRESS is set.
8671
8672 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8673
8674 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
8675
8676 * nsterm.m (ns_get_color): Remove incompatible color formats again.
8677
8678 2009-08-20 Glenn Morris <rgm@gnu.org>
8679
8680 * emacs.c (system-type): Doc fix.
8681
8682 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
8683
8684 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
8685 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
8686
8687 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
8688
8689 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
8690 New functions.
8691 (xd_initialize): Revert change from 2009-08-16.
8692
8693 2009-08-18 Kenichi Handa <handa@m17n.org>
8694
8695 * fontset.c (Ffontset_font): If a nil element is found in a
8696 font-group vector, return nil.
8697
8698 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
8699
8700 * process.c (status_notify): Don't perform redisplay.
8701 (Fdelete_process, list_processes_1, process_send_signal):
8702 Expliticly perform redisplay.
8703 (wait_reading_process_output): Always check process status, but
8704 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
8705
8706 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
8707
8708 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
8709 (XFLOAT_INIT): New macro for storing a float value.
8710 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
8711 * fns.c (sxhash): Copy out the value of a float in order to
8712 examine its bytes.
8713 * dbusbind.c (xd_append_arg): Likewise.
8714
8715 * emacs.c (main): Don't call syms_of_data twice.
8716
8717 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
8718
8719 * dbusbind.c (xd_initialize): Add connection file descriptor to
8720 input_wait_mask, in order to let select() detect, whether a new
8721 message has been arrived.
8722 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
8723
8724 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
8725
8726 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
8727 New functions.
8728
8729 * lisp.h (xd_pending_messages): Declare.
8730
8731 * keyboard.c (readable_events): Call xd_pending_messages.
8732
8733 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
8734
8735 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
8736
8737 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
8738
8739 * buffer.c (set_buffer_internal_1)
8740 (swap_out_buffer_local_variables): Check for unbound local
8741 variables (Bug#4138).
8742
8743 2009-08-14 Eli Zaretskii <eliz@gnu.org>
8744
8745 * process.c (create_pty): Fix last change.
8746
8747 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
8748
8749 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
8750 (xbm_load_image): Caller changed.
8751 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
8752
8753 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
8754
8755 * process.c (create_pty): New function.
8756 (Fstart_process): Use it to allow Emacs to just associate a pty
8757 with the buffer. See associated change in gdb-mi.el.
8758 (list_processes_1): Deal with no program name.
8759 (start_process_unwind): Use pid == -2 to mean no process.
8760
8761 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
8762
8763 * cmds.c (nonundocount): New global variable.
8764 (keys_of_cmds): Initialize it.
8765 (Fself_insert_command): Use it to combine upto 20 sequential chars
8766 into a single undo entry, just like the Qself_insert_command code in
8767 keyboard.c does.
8768 Call frame_make_pointer_invisible, also like the Qself_insert_command
8769 code in keyboard.c does.
8770 * keyboard.c (command_loop_1): Use the new global nonundocount rather
8771 than its own local replacement for it.
8772
8773 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
8774
8775 * fns.c (concat): Don't re-set string length to its current value.
8776
8777 * coding.h (decode_coding_string, encode_coding_string):
8778 Use SBYTES macro.
8779
8780 * doprnt.c (doprnt_lisp): Delete unused function.
8781 (doprnt): Merge with doprnt1, discarding lispstrings code.
8782 * lisp.h (doprnt_lisp): Don't declare.
8783
8784 2009-08-07 Juri Linkov <juri@jurta.org>
8785
8786 * puresize.h (BASE_PURESIZE): Increase to 1270000.
8787
8788 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
8789
8790 * print.c (syms_of_print): Undo previous change.
8791
8792 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
8793
8794 * lread.c (read1, syms_of_lread): Read hashtables back from the
8795 readable format.
8796
8797 * print.c (print_preprocess, print_object): Print hashtables fully
8798 and readably.
8799 (syms_of_print): Provide 'hashtable-print-readable.
8800
8801 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
8802
8803 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
8804 no family set.
8805 (nsfont_open): Handle case when entity has no family.
8806
8807 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8808
8809 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
8810 element, not a list, for match case.
8811
8812 2009-07-28 Kenichi Handa <handa@m17n.org>
8813
8814 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
8815 rigidly.
8816
8817 * xfont.c (xfont_list_pattern): Don't ignore the return value of
8818 font_parse_xlfd. Check font properties more rigidly.
8819
8820 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8821
8822 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
8823 bsd-common.h.
8824
8825 2009-07-27 Kenichi Handa <handa@m17n.org>
8826
8827 * xfaces.c (face_with_height): Call font_clear_prop.
8828
8829 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
8830
8831 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
8832
8833 * xterm.c (x_term_init): Use Qx.
8834
8835 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
8836
8837 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
8838 (ns_get_color): Revert 2009-07-16 change.
8839
8840 2009-07-25 Eli Zaretskii <eliz@gnu.org>
8841
8842 * lread.c (syms_of_lread) <force_load_messages>: New variable.
8843 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
8844
8845 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
8846
8847 * coding.h (decode_coding_string, encode_coding_string):
8848 Use SCHARS macro.
8849
8850 * lread.c: Rewrite 2009-07-21 changes.
8851 (load_depth): Delete.
8852 (Qload_in_progress): New variable.
8853 (load_unwind): Don't reference load_depth or load_in_progress.
8854 (Fload): Likewise; specbind Qload_in_progress instead.
8855 (init_lread): Don't initialize load_depth.
8856 (syms_of_lread): Initialize and protect Qload_in_progress.
8857
8858 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8859
8860 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
8861
8862 2009-07-23 Yavor Doganov <yavor@gnu.org>
8863
8864 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
8865
8866 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8867
8868 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
8869 Bugs 3792, 3720, 2402.
8870 (ns_lookup_indexed_color): Check for bad index.
8871 (ns_index_color): Init unused slot to 0.
8872 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
8873 Bug 3714, possibly 3082.
8874
8875 2009-07-22 Jason Rumney <jasonr@gnu.org>
8876
8877 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
8878 Position IME window at cursor (Bug#2570).
8879 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
8880 (globals_of_w32fns): Dynamically load functions required above.
8881
8882 * w32term.c (w32_draw_window_cursor): Send message to reposition
8883 any IME window.
8884
8885 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
8886
8887 * fileio.c: Revert 2009-07-16 changes.
8888 (Vauto_save_include_big_deletions): New variable.
8889 (Fdo_auto_save): Disable auto-save only if
8890 auto-save-include-big-deletions is nil.
8891
8892 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
8893
8894 * xdisp.c (move_it_to): For continued lines ending in a tab, take
8895 the overflowed pixels into account (Bug#3879).
8896
8897 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
8898
8899 * lread.c (load_depth): New variable.
8900 (Fload, load_unwind, init_lread): Set it to the load recursion
8901 depth; set load_in_progress as a simple boolean based on the
8902 current load_depth. (Bug#3892)
8903
8904 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8905
8906 * nsfont.m (ns_has_attribute): Remove.
8907 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
8908
8909 2009-07-18 Juri Linkov <juri@jurta.org>
8910
8911 * process.c (Fset_process_query_on_exit_flag): Mention killing
8912 a buffer in docstring.
8913
8914 2009-07-17 Kenichi Handa <handa@m17n.org>
8915
8916 * casetab.c (shuffle): Fix the logic of setting up the cycle.
8917
8918 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8919
8920 * nsfns.m (Fns_set_alpha): Remove function.
8921 (syms_of_nsfns): Don't defsubr it.
8922
8923 * nsterm.m (ns_get_color): Remove incompatible color formats.
8924 (ns_color_to_lisp): Generate #rrggbb color format string.
8925
8926 2009-07-16 Richard Stallman <rms@gnu.org>
8927
8928 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
8929 (Fset_buffer_auto_saved): Handle save_length = -2.
8930
8931 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
8932
8933 * xterm.c (Qx_gtk_map_stock): New var.
8934
8935 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
8936 of calling intern each time.
8937
8938 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8939
8940 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
8941 does tiling.
8942
8943 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
8944
8945 2009-07-14 Kenichi Handa <handa@m17n.org>
8946
8947 * font.c (font_vconcat_entity_vectors): New function.
8948 (struct font_sort_data): New member font_driver_preference.
8949 (font_compare): Check font_driver_preference.
8950 (font_sort_entities): The format of the first argument changed.
8951 (font_delete_unmatched): Likewise.
8952 (font_list_entities): The return type changed.
8953 (font_select_entity): The format of the second argument changed.
8954 (font_find_for_lface): Adjuste for the above changes.
8955 Don't suppress the checking of C even if the repertory supports it.
8956 (Flist_fonts): Adjust for the above changes.
8957
8958 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
8959 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
8960 Reject a font who has adstyle property that is different from a
8961 langname derived from registry property.
8962 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
8963
8964 2009-07-13 Eli Zaretskii <eliz@gnu.org>
8965
8966 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
8967 local copy of dirfilename.
8968
8969 2009-07-13 Kenichi Handa <handa@m17n.org>
8970
8971 * chartab.c (sub_char_table_ref_and_range): Fix the range check
8972 against max_char.
8973
8974 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
8975 calling XSYMBOL (sym).
8976
8977 2009-07-11 Eli Zaretskii <eliz@gnu.org>
8978
8979 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
8980 New function.
8981 (directory_files_internal) [WINDOWSNT]:
8982 Bind w32-get-true-file-attributes to either t or nil, depending whether
8983 the filesystem of the directory is fast or slow.
8984
8985 * w32.c (logon_network_drive): Don't assume PATH is an absolute
8986 file name.
8987 (is_slow_fs): New function.
8988 (stat): Use it to determine whether to issue more system calls to
8989 get accurate file attributes, when w32-get-true-file-attributes is
8990 `local'.
8991
8992 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
8993
8994 * xfns.c (Fx_select_font): Remember last font selected in
8995 x_last_font_name and use that the next time. Also try the frame
8996 parameter font-parameter as default to the font dialog.
8997
8998 2009-07-10 Kenichi Handa <handa@m17n.org>
8999
9000 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
9001
9002 2009-07-09 Eli Zaretskii <eliz@gnu.org>
9003
9004 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
9005
9006 * w32.c (stat): Treat UNC file names as residing on remote
9007 drives. (Bug#3542)
9008
9009 2009-07-09 Kenichi Handa <handa@m17n.org>
9010
9011 * fontset.c (fontset_find_font): Fix previous change.
9012
9013 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
9014
9015 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
9016 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
9017 error flag.
9018
9019 2009-07-08 Kenichi Handa <handa@m17n.org>
9020
9021 * fontset.c (fontset_find_font): Fix the logic of handling
9022 charset_matched.
9023 (font_for_char): Delete unused var.
9024 (generate_ascii_font_name): Delete it.
9025
9026 * coding.h (JIS_TO_SJIS2): Fix the code range check.
9027
9028 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
9029 (encode_coding_sjis): Fix the code range check.
9030
9031 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
9032
9033 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
9034 (Fexpand_file_name): Copy string data properly (Bug#3772).
9035
9036 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
9037
9038 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
9039 first MapNotify.
9040
9041 2009-07-07 Kenichi Handa <handa@m17n.org>
9042
9043 * character.h (unibyte_has_multibyte_table): Delete extern.
9044 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
9045
9046 * charset.c (Fset_charset_priority): Update charset_unibyte.
9047 (syms_of_charset): Initialize charset_unibyte.
9048
9049 * character.c (unibyte_has_multibyte_table): Delete it.
9050 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
9051 charset_unibyte.
9052 (multibyte_char_to_unibyte_safe): Likewise.
9053 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
9054
9055 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
9056 (x_produce_glyphs): Likewise.
9057
9058 * .gdbinit (xcharset): Fix the treating $arg0.
9059
9060 2009-07-04 Eli Zaretskii <eliz@gnu.org>
9061
9062 Emulation of `getloadavg' on MS-Windows.
9063 * w32.c: Include float.h.
9064 (g_b_init_get_native_system_info, g_b_init_get_system_times)
9065 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
9066 (get_native_system_info, get_system_times): New functions.
9067 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
9068 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
9069 (globals_of_w32): Initialize g_b_init_get_native_system_info,
9070 g_b_init_get_system_times, and num_of_processors.
9071
9072 2009-07-03 Jason Rumney <jasonr@gnu.org>
9073
9074 * w32term.c (w32_initialize): Use standard types.
9075
9076 2009-07-03 Eli Zaretskii <eliz@gnu.org>
9077
9078 * dired.c (Ffile_attributes): Decode user and group names by the
9079 locale's encoding. (Bug#3443)
9080
9081 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
9082
9083 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
9084 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
9085
9086 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
9087
9088 * term.c (init_tty): Remove spurious #ifdef.
9089
9090 * m/mips.h: Mention this file is also used for netbsd.
9091 * m/pmax.h: Remove file.
9092
9093 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
9094
9095 * xterm.h (struct x_display_info): Add invisible_cursor.
9096 (struct x_output): Add current_cursor.
9097
9098 * xterm.c (XTtoggle_invisible_pointer): New function.
9099 (x_define_frame_cursor): Don't define cursor if invisible or the
9100 same as before. Set current_cursor.
9101 (x_create_terminal): Set toggle_invisible_pointer_hook.
9102
9103 * xfns.c (make_invisible_cursor): New function.
9104 (x_set_mouse_color): Call make_invisible_cursor.
9105 Set current_cursor.
9106 (x_window): Set current_cursor.
9107
9108 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
9109
9110 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
9111 inserting a character.
9112 (read_avail_input): Call frame_make_pointer_visible.
9113
9114 * frame.c (Vmake_pointer_invisible): New variable.
9115 (frame_make_pointer_invisible, frame_make_pointer_visible):
9116 New functions.
9117 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
9118
9119 * frame.h: Declare frame_make_pointer_invisible and
9120 frame_make_pointer_visible.
9121 (struct frame): Add pointer_invisible.
9122
9123 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
9124
9125 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
9126 frame isn't visible.
9127 (xg_frame_resized): If width/height is -1, get size of window
9128 from X server.
9129
9130 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
9131 for MapNotify.
9132
9133 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
9134 here or call change_frame_size. Just call flush_and_sync.
9135 (flush_and_sync): Reintroduce.
9136
9137 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
9138
9139 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
9140
9141 * xterm.c (x_handle_net_wm_state): Also look for sticky.
9142 (x_term_init): Initialize Xatom_net_wm_state_sticky.
9143
9144 * frame.h: Declare Qsticky.
9145
9146 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
9147
9148 * nsfns.m (ns_frame_parm_handlers): Ditto.
9149
9150 * frame.c: Declare Qsticky.
9151 (frame_parms): Add sticky.
9152
9153 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
9154
9155 * xterm.h: Declare x_set_sticky.
9156
9157 * xterm.c (x_set_sticky): New function.
9158
9159 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
9160 (xg_tool_bar_menu_proxy): Attach enter/leave events to
9161 xg_tool_bar_proxy_help_callback.
9162
9163 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
9164
9165 * frame.c: Qmaximized is new.
9166 (x_set_frame_parameters): Do not handle fullscreen specially.
9167 Only set width and height if explicitly set.
9168 (x_set_fullscreen): Handle Qmaximized.
9169 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
9170 (syms_of_frame): Initialize Qmaximized.
9171
9172 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
9173 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
9174
9175 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
9176 for Expose event. Add call to x_check_fullscreen for MapNotify event.
9177 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
9178 set gravity to NorthWestGravity when USE_GTK.
9179 (set_wm_state): New function.
9180 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
9181 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
9182 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
9183 or the case when no window manager is running. That means remove calls
9184 to x_real_positions and x_fullscreen_adjust.
9185
9186 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
9187 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
9188 flush_and_sync.
9189 (xg_height_changed): New function.
9190 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
9191 and gtk_window_set_policy. Set frame gravity after parsing the
9192 geometry string.
9193 (xg_update_frame_menubar, free_frame_menubar)
9194 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
9195 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
9196 Remove calls to xg_frame_set_char_size.
9197
9198 2009-07-01 Kenichi Handa <handa@m17n.org>
9199
9200 * keyboard.c (decode_keyboard_code): New function.
9201 (tty_read_avail_input): Decode the input bytes if necessary.
9202
9203 * coding.c (setup_coding_system):
9204 Initialize coding->carryover_bytes to 0.
9205 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
9206 use Qno_conversion.
9207
9208 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9209
9210 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
9211
9212 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
9213
9214 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
9215
9216 2009-06-30 Jason Rumney <jasonr@gnu.org>
9217
9218 * w32term.c (w32_initialize): Use GetModuleHandle for library that
9219 is already loaded.
9220 Set user model ID if supported (bug#1849).
9221
9222 2009-06-29 Jim Meyering <meyering@redhat.com>
9223
9224 Remove useless if-before-xfree test.
9225 * nsfont.m (nsfont_close): Remove useless test.
9226 * term.c (delete_tty): Likewise.
9227 * w32.c (system_process_attributes): Likewise.
9228 * w32font.c (w32font_close): Likewise.
9229 * xfaces.c (x_free_gc): Likewise.
9230 * xselect.c (buffer): Likewise.
9231
9232 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
9233
9234 * process.c (send_process): Keep decoded string in a local
9235 variable and protect it from GC. (Bug#3521)
9236
9237 2009-06-28 Eli Zaretskii <eliz@gnu.org>
9238
9239 * term.c (create_tty_output) [MSDOS]: #ifdef away.
9240 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
9241
9242 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
9243
9244 * xdisp.c (start_display, handle_face_prop)
9245 (move_it_vertically_backward, cursor_row_fully_visible_p)
9246 (redisplay_window, try_window_id, produce_image_glyph):
9247 Delete some #ifdef-ed out code chunks that are now obsolete.
9248
9249 * xterm.c (x_update_window_begin, x_new_focus_frame)
9250 (x_scroll_bar_handle_click, handle_one_xevent)
9251 (handle_one_xevent, XTread_socket, x_focus_on_frame)
9252 (x_make_frame_visible, x_make_frame_invisible)
9253 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
9254 code chunks that are now obsolete.
9255
9256 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
9257
9258 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
9259 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
9260 for hours, when optimzation is enabled.
9261 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
9262 (xd_read_message): Make them static.
9263
9264 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
9265
9266 * term.c (turn_on_face): Allow simultaneously bold and dim
9267 terminal faces (Bug#3530).
9268
9269 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
9270
9271 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
9272
9273 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
9274 truncation glyphs (Bug#3686).
9275
9276 2009-06-27 Glenn Morris <rgm@gnu.org>
9277
9278 * m/pmax.h: Restore file, with only netbsd portions.
9279
9280 2009-06-26 David Reitter <david.reitter@gmail.com>
9281
9282 * nsterm.m (keydown): Avoid infinite loop.
9283
9284 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
9285
9286 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
9287 the arg FORCE_SYMBOL.
9288
9289 2009-06-25 Kenichi Handa <handa@m17n.org>
9290
9291 * fontset.c (fontset_find_font): When a usable rfont_def is found
9292 in a fallback font-group, make it the first element of the group.
9293
9294 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
9295
9296 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
9297
9298 2009-06-24 Kenichi Handa <handa@m17n.org>
9299
9300 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
9301 set for C.
9302 (fontset_font): Record the availability of a font for C both in
9303 the realized fontsets of the current one and the default one.
9304
9305 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
9306
9307 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
9308 conditional, it is always defined on AIX.
9309
9310 2009-06-23 Miles Bader <miles@gnu.org>
9311
9312 * window.c (Vrecenter_redisplay): New variable.
9313 (syms_of_window): Initialize it.
9314 (Qtty): New extern declaration.
9315 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
9316
9317 2009-06-23 Jim Meyering <meyering@redhat.com>
9318
9319 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
9320 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
9321 pointer dereferences are guaranteed to be valid.
9322
9323 2009-06-23 Kenichi Handa <handa@m17n.org>
9324
9325 * emacs.c (main): Call init_font ().
9326
9327 * font.h (Vfont_log): Extern it.
9328 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
9329
9330 * font.c (font_sort_entities, font_list_entities)
9331 (font_matching_entity, font_open_entity)
9332 (font_close_object): Change font_add_log to FONT_ADD_LOG.
9333 (Vfont_log): Delete static.
9334 (font_log_env_checked): Delete this variable.
9335 (font_add_log): Don't check font_log_env_checked.
9336 (font_deferred_log): Check Vfont_log.
9337 (init_font): New function.
9338
9339 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
9340
9341 * w32font.c: Change font_add_log to FONT_ADD_LOG.
9342
9343 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
9344
9345 * xfont.c: Change font_add_log to FONT_ADD_LOG.
9346
9347 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
9348 (face_for_char): Don't call font_deferred_log here.
9349 (font_for_char): Likewise.
9350
9351 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
9352
9353 * w32term.c (x_draw_glyph_string): Use the glyph string's width
9354 rather than its background_width for drawing the overline and
9355 underline (Bug#489).
9356
9357 * xterm.c (x_draw_glyph_string): Use the glyph string's width
9358 rather than its background_width for drawing the overline and
9359 underline (Bug#489).
9360 (xg_default_icon_file): New variable.
9361 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
9362 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9363
9364 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
9365 (load_overlay_strings): Remove externs.
9366 (fast_find_position): Function deleted.
9367 (mouse_face_from_buffer_pos): New function, based on
9368 fast_find_position. Correctly handle before-strings,
9369 display-strings, and after-strings (Bug#1220).
9370 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
9371
9372 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
9373
9374 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
9375 (move_it_in_display_line_to, move_it_in_display_line_to)
9376 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
9377
9378 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
9379
9380 * Branch for 23.1.
9381
9382 2009-06-21 Jason Rumney <jasonr@gnu.org>
9383
9384 * w32term.c (keyboard_codepage): New static variable.
9385 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
9386 (w32_read_socket) [WM_CHAR]: Use it to decode character
9387 input (bug#3237).
9388 (w32_initialize): Initialize it.
9389 (codepage_for_locale): New function.
9390
9391 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
9392
9393 * process.c (status_message): Pass Faset index argument as a lisp
9394 object, so as to work with USE_LISP_UNION_TYPE.
9395
9396 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9397
9398 * coding.c (Ffind_coding_systems_region_internal):
9399 Cache checked characters.
9400
9401 2009-06-18 Kenichi Handa <handa@m17n.org>
9402
9403 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
9404
9405 2009-06-18 Andreas Schwab <aschwab@redhat.com>
9406
9407 * xdisp.c (redisplay_internal): Check that the frame is still
9408 live after redisplay of its windows.
9409 (redisplay_windows): Check that the window is still live.
9410
9411 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
9412
9413 * coding.c (detect_coding_utf_16): Fix previous change.
9414
9415 2009-06-16 Kenichi Handa <handa@m17n.org>
9416
9417 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
9418 UTF-16 by checking the dispersion of Eth and Oth bytes.
9419
9420 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
9421
9422 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
9423
9424 2009-06-15 Kenichi Handa <handa@m17n.org>
9425
9426 * process.c (status_message): Fix previous change. Be sure to
9427 decode a localized string.
9428
9429 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9430
9431 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
9432 add comment explaining why.
9433
9434 2009-06-14 Sidney Markowitz <sidney@sidney.com>
9435
9436 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
9437
9438 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
9439
9440 * nsfont.m (ns_attribute_value): Remove.
9441 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
9442 (ns_has_attribute): Shrink the normal range.
9443 (ns_findfonts): Don't worry about requested spec in determining
9444 need for synthItal.
9445 (ns_get_covering_families): Retain scriptToFamilies.
9446
9447 2009-06-14 Seiji Zenitani <zenitani@mac.com>
9448
9449 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
9450
9451 2009-06-11 Kenichi Handa <handa@m17n.org>
9452
9453 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
9454 overhang for the static composition case.
9455
9456 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9457
9458 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
9459 overhang for the automatic composition case.
9460
9461 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
9462 composition case.
9463
9464 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
9465
9466 * xdisp.c (get_next_display_element): When handling wrap-prefix
9467 and line-prefix, treat \n as a control character (bug#3502).
9468
9469 2009-06-10 Kenichi Handa <handa@m17n.org>
9470
9471 * font.c (font_parse_family_registry): Fix for one-char foundry.
9472 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
9473
9474 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
9475
9476 * process.c (status_message): Fix handling of multibyte signal
9477 string (Bug#3499).
9478
9479 2009-06-09 Jim Meyering <meyering@redhat.com>
9480
9481 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
9482 color name is missing.
9483
9484 2009-06-09 Kenichi Handa <handa@m17n.org>
9485
9486 * charset.c (Fmap_charset_chars): In docstring, state clearly that
9487 FROM-CODE and TO-CODE are codepoints of CHARSET.
9488
9489 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
9490
9491 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
9492
9493 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
9494
9495 Changes to support :script/:lang/:otf in NS font driver.
9496 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
9497 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
9498 indicate not part of font driver interface, and change callers.
9499 (ns_get_family): Remove pointless null check.
9500 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
9501 ns_spec_to_descriptor, ns_descriptor_to_entity.
9502 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
9503 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
9504 (ns_spec_to_descriptor, ns_descriptor_to_entity)
9505 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
9506 (ns_get_req_script, ns_accumulate_script_ranges)
9507 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
9508 New functions.
9509 (nsfont_list, nsfont_match): Use ns_findfonts.
9510 (nsfont_open): Use font descriptor instead of traits.
9511 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
9512 (dump_glyphstring): Rename to ns_dump_glyphstring.
9513
9514 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
9515
9516 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
9517
9518 * fontset.c (fontset_from_font): Remove NS-specific code.
9519
9520 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
9521
9522 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
9523 nonactive windows.
9524
9525 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
9526
9527 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
9528
9529 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
9530
9531 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
9532
9533 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
9534
9535 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
9536 account for the overflowing of newlines into the last glyph on the
9537 display line (Bug#3482).
9538
9539 2009-06-05 David Reitter <david.reitter@gmail.com>
9540
9541 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
9542 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
9543 Fns_selection_exists_p, Fns_selection_owner_p.
9544
9545 2009-06-03 Jason Rumney <jasonr@gnu.org>
9546
9547 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
9548 available. (Bug#3379)
9549
9550 2009-05-29 Kenichi Handa <handa@m17n.org>
9551
9552 * coding.c (get_translation_table):
9553 Check Venable_character_translation.
9554
9555 2009-05-26 David Reitter <david.reitter@gmail.com>
9556
9557 * nsterm.m (ns_raise_frame): Only raise frame if visible.
9558 (x_make_frame_visible): Move frame to front rather than calling
9559 ns_raise_frame().
9560 (keyDown:): Do not swallow events that aren't re-sent if frame
9561 isn't key window.
9562 (drawRect:): Do not set visibility/iconified flags because
9563 drawRect may be called by NSView even if the frame is hidden.
9564
9565 * nsfns.m (Fx_create_frame): Follow other ports in
9566 determining visibility; default to t. Ensure async_visible is set.
9567
9568 2009-05-23 Eli Zaretskii <eliz@gnu.org>
9569
9570 * dired.c (Ffile_attributes): Doc fix.
9571
9572 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
9573
9574 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
9575
9576 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
9577
9578 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
9579 and xfont_scratch_props.
9580 (syms_of_xfont): Do it here instead.
9581 (xfont_find_ccl_program): Delete, unused.
9582 (xfont_open): Delete unused var `i'.
9583
9584 2009-05-21 Kenichi Handa <handa@m17n.org>
9585
9586 * fontset.c (Qlatin): Don't make it static.
9587
9588 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
9589 New functions.
9590 (xfont_scripts_cache, xfont_scratch_props): New variables.
9591 (Qlatin, Vscalable_fonts_allowed): Extern it.
9592 (xfont_list_pattern): Argument changed. Callers changed.
9593 Check Vscalable_fonts_allowed. Check the support of a script.
9594 (xfont_list): Don't reject a font spec with :script property.
9595 (xfont_has_char): Fix setting of encoding.
9596 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
9597 xfont_scratch_props.
9598
9599 2009-05-19 Kenichi Handa <handa@m17n.org>
9600
9601 * font.c (font_sort_entities): Rename from font_sort_entites.
9602 Callers changed.
9603
9604 2009-05-18 Kenichi Handa <handa@m17n.org>
9605
9606 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
9607
9608 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
9609
9610 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
9611 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
9612
9613 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9614
9615 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
9616 (x_delete_terminal): Dissociate resource database from display and
9617 then call XrmDestroyDatabase before closing display.
9618
9619 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
9620
9621 * nsterm.m (ns_read_socket): Remove unused variable.
9622 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
9623 whether selected frame is viable before raising it (based on patch
9624 by David Reitter), and improve commentary.
9625 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9626
9627 2009-05-15 Kenichi Handa <handa@m17n.org>
9628
9629 * font.c (Ffont_spec): Check arguments.
9630
9631 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
9632
9633 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
9634 weight when testing attributes (Bug#3282).
9635
9636 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9637
9638 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
9639 what we expect to get in the next ConfigureNotify event.
9640
9641 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
9642 before Xft one (Bug#1696).
9643
9644 2009-05-07 David Reitter <david.reitter@gmail.com>
9645
9646 * nsfns.m (Fx_display_planes): Compute bitplanes using
9647 NSBitsPerPixelFromDepth (Bug#3207).
9648
9649 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
9650
9651 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
9652
9653 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
9654
9655 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
9656
9657 2009-05-07 David Reitter <david.reitter@gmail.com>
9658
9659 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
9660 Respect mouse face background.
9661
9662 2009-05-07 David Reitter <david.reitter@gmail.com>
9663
9664 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
9665 Mouse movement/highlight: bracket drawing operations
9666 in ns_update_begin and ns_update_end.
9667
9668 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
9669
9670 * nsfns.m (ns_get_screen): Rewrite.
9671 Don't presume selected-frame is of type `ns'.
9672
9673 * font.c (font_update_drivers): Sanity fallback to avoid disabling
9674 all drivers.
9675
9676 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
9677
9678 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9679
9680 * keyboard.h (add_user_signal): Fix typo in extern.
9681
9682 * lisp.h (add_user_signal): Remove extern.
9683
9684 * unexelf.c (unexec): Consider a section to precede the .bss section
9685 if its addresses overlap that of .bss.
9686 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
9687 instead of dumping process.
9688
9689 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
9690
9691 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
9692
9693 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
9694
9695 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
9696
9697 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
9698
9699 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
9700 any statements.
9701
9702 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
9703
9704 * process.c (read_process_output): Make sure the current buffer is
9705 always restored.
9706
9707 * coding.c (record_conversion_result): Don't modify
9708 Vlast_code_conversion_error for successful result.
9709 (alloc_destination): Don't clobber conversion result. (Bug#1650)
9710
9711 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9712
9713 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
9714 (load_charset_map): Remove unnecessary code.
9715
9716 2009-04-30 David Reitter <david.reitter@gmail.com>
9717
9718 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
9719 through f24.
9720
9721 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
9722
9723 * xfaces.c (face_at_buffer_position): New arg base_face_id.
9724
9725 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
9726 face_at_buffer_position.
9727 (face_before_or_after_it_pos, get_next_display_element)
9728 (note_mouse_highlight): Update face_at_buffer_position call.
9729
9730 * term.c (term_mouse_highlight):
9731 * msdos.c (IT_note_mouse_highlight):
9732 * fontset.c (Finternal_char_font):
9733 * font.c (font_at, font_range): Update face_at_buffer_position call.
9734
9735 * dispextern.h (face_at_buffer_position): Update prototype.
9736
9737 2009-04-30 Kenichi Handa <handa@m17n.org>
9738
9739 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
9740
9741 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
9742
9743 * callproc.c (Fcall_process): Fix GC protection. Make sure
9744 current buffer is always restored.
9745
9746 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9747
9748 * atimer.c (init_atimer): Also clear stopped_atimers.
9749
9750 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
9751
9752 * process.c (create_process): Clean up merger residues of
9753 2008-07-17 change.
9754
9755 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
9756
9757 * lread.c (Vread_circle): New variable.
9758 (read1): Disable recursive read if Vread_circle is nil.
9759
9760 2009-04-29 Kenichi Handa <handa@m17n.org>
9761
9762 * fontset.h (set_default_ascii_font): Delete extern.
9763
9764 * fontset.c (set_default_ascii_font): Delete this unused function.
9765
9766 * frame.c (x_set_font): When ARG is a font-object, check if the
9767 font-object matches with the ASCII font-spec of the frame's
9768 fontset. If not, create a new fontset for the frame. (Bug #3075)
9769
9770 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
9771
9772 * fns.c (Flocale_info): Protect vector from GC during decoding.
9773
9774 * process.c (Fstart_process): Protect argv strings from GC during
9775 encoding.
9776
9777 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
9778
9779 * sysdep.c: Include <ctype.h>.
9780
9781 2009-04-27 David Reitter <david.reitter@gmail.com>
9782
9783 * nsfont.m (nsfont_open): Remove unused variable shrink.
9784 Remove commented-out code.
9785
9786 2009-04-26 Johan Bockgård <bojohan@gnu.org>
9787
9788 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
9789
9790 2009-04-25 Jason Rumney <jasonr@gnu.org>
9791
9792 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
9793
9794 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9795
9796 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
9797 Swap bytes in short integer if fringe bitmap width > 8.
9798
9799 2009-04-23 Kenichi Handa <handa@m17n.org>
9800
9801 * xfaces.c (Fx_list_fonts): If a font size is specified in
9802 PATTERN, set it in returned scalable fonts.
9803
9804 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
9805
9806 * keyboard.c (Fset_input_meta_mode): Doc fix.
9807
9808 * dispnew.c (Fsend_string_to_terminal): Doc fix.
9809
9810 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
9811
9812 * coding.c (Fterminal_coding_system): Doc fix.
9813
9814 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
9815 (Fx_display_pixel_height, Fx_display_planes)
9816 (Fx_display_color_cells, Fx_server_max_request_size)
9817 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
9818 (Fx_display_mm_height, Fx_display_mm_width)
9819 (Fx_display_backing_store, Fx_display_visual_class)
9820 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
9821 Doc fixes, replacing "terminal id" with "terminal object".
9822 (check_x_display_info): Handle terminal objects instead of
9823 terminal ids.
9824
9825 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
9826 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
9827 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
9828 Doc fixes, replacing "terminal id" with "terminal object".
9829
9830 2009-04-21 Kenichi Handa <handa@m17n.org>
9831
9832 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
9833 (font_score): Check AVGWIDTH too.
9834
9835 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
9836 worst case.
9837 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
9838 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
9839
9840 2009-04-19 Jason Rumney <jasonr@gnu.org>
9841
9842 The following changes fix Bug#3005 for wide glyphs on each platform,
9843 without reintroducing Bug#1258 for stretch glyphs.
9844
9845 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
9846 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
9847 get_phys_cursor_geometry.
9848
9849 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
9850 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
9851 using get_phys_cursor_geometry.
9852
9853 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
9854 correctly calculated.
9855
9856 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
9857
9858 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
9859 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
9860 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
9861 is deprecated.
9862
9863 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
9864
9865 * font.c (font_put_frame_data): Use xfree instead of free.
9866
9867 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
9868
9869 * w32font.c (Qja, Qko): Remove declarations.
9870 (syms_of_w32font): Don't DEFSYM them.
9871
9872 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
9873
9874 * font.c (Qja, Qko): Move definitions here from ftfont.c.
9875
9876 * font.h (Qja, Qko): Extern them.
9877
9878 * ftfont.c (Qja, Qko): Remove declarations.
9879
9880 * xfont.c (Qja, Qko): Remove declarations.
9881
9882 2009-04-17 Kenichi Handa <handa@m17n.org>
9883
9884 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
9885 string from a vector to handle Latin-1 characters correctly.
9886
9887 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
9888 entity even if the cache hits.
9889
9890 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
9891
9892 * search.c (boyer_moore): Use zero as marker value for a possible
9893 match instead of depending on overflow behavior. (Bug#2844)
9894
9895 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
9896 * lisp.h: Adjust prototypes.
9897
9898 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
9899
9900 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
9901 change (Bug#3003).
9902
9903 2009-04-16 Kenichi Handa <handa@m17n.org>
9904
9905 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
9906
9907 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
9908 adstyle.
9909
9910 * ftfont.c (Qja, Qko): Don't make them static.
9911 (enum ftfont_cache_for): New enum.
9912 (fc_charset_table): Undo the previous change.
9913 (ftfont_get_latin1_charset): Delete it.
9914 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
9915 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
9916 non-scarable font, try to get AVERAGE_WIDTH.
9917 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
9918 Change ft_face_cache from a list of a hash-table. Don't check
9919 `ja' and `ko' adstyle here.
9920 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
9921 FTFONT_CACHE_FOR_CHARET.
9922 (ftfont_get_charset): Undo the previous change.
9923 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
9924 (ftfont_close): Likewise.
9925 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
9926
9927 * font.c (font_sort_entites): Change the meaning of the arg
9928 BEST-ONLY. Don't optimize for VEC of lenght 1.
9929 (font_select_entity): Just return the value of font_sort_entites.
9930
9931 * xfaces.c (merge_face_vectors): Reflect font properties in
9932 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
9933 font_clear_prop if a face attribute doesn't change.
9934
9935 * charset.h (charset_ksc5601): Extern it.
9936
9937 * charset.c (charset_ksc5601): New variable.
9938 (Fdefine_charset_internal): Set charset_ksc5601.
9939 (init_charset_once): Initialize charset_ksc5601 to -1.
9940
9941 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
9942
9943 * fileio.c (history_delete_duplicates): Remove unused declaration.
9944
9945 * callint.c (history_delete_duplicates): New declaration.
9946 (Fcall_interactively): Remove command history duplicates when
9947 history_delete_duplicates is true.
9948
9949 2009-04-14 Eli Zaretskii <eliz@gnu.org>
9950
9951 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
9952
9953 2009-04-14 Kenichi Handa <handa@m17n.org>
9954
9955 * font.c (Ffont_info): Fix docstring. Fix the second element of
9956 the returned value (bug#2949).
9957
9958 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
9959
9960 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
9961
9962 2009-04-14 Kenichi Handa <handa@m17n.org>
9963
9964 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
9965 encoding charset is ascii_compatible.
9966
9967 * charset.c (Fdefine_charset_internal): Make charset
9968 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
9969 code_offset is 0, and covers all ASCII characters.
9970
9971 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
9972
9973 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
9974 (ns_string_to_pasteboard_internal):
9975 * nsmenu.m (process_dialog):
9976 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
9977 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
9978 * lisp.h (Fx_load_color_file): Declare.
9979
9980 2009-04-13 Kenichi Handa <handa@m17n.org>
9981
9982 * font.c (font_delete_unmatched): Preserve the order of list elements.
9983 (font_select_entity): Suppress the code to optimize for the same
9984 kind of fonts.
9985 (font_load_for_lface): Get a font that supports at least ASCII
9986 characters.
9987
9988 * ftfont.c (Qja, Qko): New variables.
9989 (fc_charset_table): Delete uniquifier data for iso8859-1.
9990 (ftfont_get_latin1_charset): New function.
9991 (get_adstyle_property): New function.
9992 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
9993 bitmap fonts.
9994 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
9995 Delete iso-8859-1 range from the charset of fonts whose adstyle is
9996 `ko' or `ja'.
9997 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
9998 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
9999 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
10000 property.
10001 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
10002 (syms_of_ftfont): DEFSYM Qja and Qko.
10003
10004 2009-04-09 Kenichi Handa <handa@m17n.org>
10005
10006 * charset.c (map_charset_chars): For a charset of `superset'
10007 method, fix calculation of code range.
10008
10009 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
10010 from the list of extra properties.
10011 (font_clear_prop): Be sure to delete `:name' font property.
10012
10013 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10014
10015 * dispnew.c (redraw_overlapping_rows): Fix detection of
10016 overlapping for topmost and bottommost rows.
10017
10018 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
10019
10020 2009-04-06 Jason Rumney <jasonr@gnu.org>
10021
10022 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
10023
10024 2009-04-06 Kenichi Handa <handa@m17n.org>
10025
10026 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
10027
10028 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
10029
10030 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10031
10032 * ftfont.c (ftfont_open): Fix checking of the return value of
10033 FT_Load_Char. Fix setting font->underline_thickness.
10034
10035 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
10036
10037 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
10038 (Fterminal_parameters, Fterminal_parameter)
10039 (Fset_terminal_parameter): In doc string, refer to terminal
10040 objects rather than terminal ids.
10041
10042 2009-04-04 Eli Zaretskii <eliz@gnu.org>
10043
10044 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
10045 ret_lim_data. (Bug#2867)
10046
10047 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
10048
10049 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
10050 so they don't get wider than the window, matching 2006-01-23
10051 change to the partner function in xdisp.c (Bug#2800).
10052
10053 2009-04-03 Kenichi Handa <handa@m17n.org>
10054
10055 * print.c (print_object): Make each lowest sub_char_table start a
10056 new line (Bug#2866).
10057
10058 2009-04-02 Kenichi Handa <handa@m17n.org>
10059
10060 * fontset.c (fontset_font): Record no-font when a fontset
10061 explicitly tells not to try another font-specs.
10062
10063 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
10064
10065 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
10066
10067 2009-03-30 Kenichi Handa <handa@m17n.org>
10068
10069 * fontset.c (fontset_from_font): Specify only registry in a
10070 font-spec for all characters supported by that registry.
10071
10072 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
10073 even if HAVE_M17N_FLT is not defined.
10074
10075 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
10076
10077 * ftfont.c: Conditionalize prototyping and use of
10078 ftfont_variation_glyphs.
10079
10080 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
10081
10082 * frame.c (delete_frame): Work around compiler bug.
10083
10084 * editfns.c (general_insert_function): Adjust to insdel.c changes.
10085 * insdel.c (prepare_to_modify_buffer, signal_before_change):
10086 Some more EMACS_INT.
10087 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
10088
10089 * xdisp.c (dump_glyph): Fix typo.
10090
10091 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
10092 (adjust_markers_gap_motion, adjust_markers_for_delete)
10093 (adjust_markers_for_insert, adjust_point)
10094 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
10095 (make_gap, copy_text, count_size_as_multibyte, insert)
10096 (insert_and_inherit, insert_before_markers)
10097 (insert_before_markers_and_inherit, insert_1)
10098 (count_combining_before, count_combining_after, insert_1_both)
10099 (insert_from_string, insert_from_string_before_markers)
10100 (insert_from_string_1, insert_from_gap, insert_from_buffer)
10101 (insert_from_buffer_1, adjust_after_replace)
10102 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
10103 (replace_range_2, del_range, del_range_1, del_range_byte)
10104 (del_range_both, del_range_2, modify_region)
10105 (prepare_to_modify_buffer, signal_before_change)
10106 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
10107 for buffer positions and sizes.
10108 * lisp.h: Adjust prototypes accordingly.
10109
10110 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
10111 (non_regular_inserted, non_regular_nbytes, read_non_regular)
10112 (Finsert_file_contents): Use EMACS_INT for buffer positions.
10113
10114 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
10115
10116 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
10117
10118 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
10119 lines and columns so we keep the same pixel height and width.
10120
10121 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
10122 the property _NET_WM_STATE has changed.
10123 (x_handle_net_wm_state): New function to update frame parameter
10124 fullscreen.
10125 (x_term_init): Initialize atoms for _NET_WM_STATE.
10126
10127 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
10128
10129 2009-03-27 Kevin Ryde <user42@zip.com.au>
10130
10131 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
10132 Gpm_GetEvent as an error that justifies closing the filedescriptor.
10133 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
10134 (Fgpm_mouse_stop): Pass that new parameter.
10135 * termhooks.h (close_gpm): Adjust prototype.
10136
10137 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
10138
10139 * lisp.h (Fx_focus_frame): Declare.
10140
10141 * callint.c (Fcall_interactively): For '^' just delegate the work to
10142 handle-shift-selection.
10143 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
10144
10145 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
10146
10147 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
10148
10149 * data.c (Qinteractive_form): New variable.
10150 (Finteractive_form): Use it.
10151
10152 * eval.c (Fcommandp): Use Qinteractive_form.
10153
10154 2009-03-24 Jason Rumney <jasonr@gnu.org>
10155
10156 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
10157 Calculate total size precisely. Decode environment variables
10158 before substituting. (Bug#38)
10159
10160 2009-03-24 Kenichi Handa <handa@m17n.org>
10161
10162 * font.c (find_font_encoding): Return Qnil for unsupported
10163 encoding (Bug#2722).
10164
10165 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
10166
10167 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
10168 that gdpy is set.
10169
10170 2009-03-22 Alan Mackenzie <acm@muc.de>
10171
10172 * callint.c (Finteractive): Clarify the doc string - even
10173 promptless elements need \n separators.
10174
10175 2009-03-22 Jason Rumney <jasonr@gnu.org>
10176
10177 * w32term.c (syms_of_w32term): Doc fix for
10178 x-use-underline-position-properties.
10179
10180 2009-03-21 Eli Zaretskii <eliz@gnu.org>
10181
10182 * w32.c (getpwuid): Change argument type to unsigned.
10183 (struct w32_id): Change type of `rid' member to unsigned.
10184 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
10185 argument ID to unsigned. All callers changed.
10186 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
10187
10188 2009-03-20 Eli Zaretskii <eliz@gnu.org>
10189
10190 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
10191 negative, produce a float value.
10192
10193 * dired.c (make_uid, make_gid): New functions.
10194 (Ffile_attributes): Use them to avoid negative UID and GID.
10195
10196 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
10197
10198 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
10199 (syms_of_keyboard) <command-hook-internal, input-method-function>:
10200 Fix typos in docstrings.
10201
10202 2009-03-19 Kenichi Handa <handa@m17n.org>
10203
10204 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
10205 changed, use font_load_for_lface to get a new font object.
10206 Call free_realized_fontset after handling ASCII font change.
10207
10208 * frame.c (x_set_font): Handle the case that ARG is a cons.
10209
10210 2009-03-19 Glenn Morris <rgm@gnu.org>
10211
10212 * fileio.c (Fsubstitute_in_file_name): Doc fix.
10213
10214 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
10215
10216 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
10217
10218 2009-03-19 Kenichi Handa <handa@m17n.org>
10219
10220 * charset.c (load_charset_map_from_file): When a mapfile can't be
10221 loaded, signal an error.
10222
10223 2009-03-18 Eli Zaretskii <eliz@gnu.org>
10224
10225 * dired.c (Ffile_attributes): Make sure UID and GID are always
10226 positive, even if the value is too large for a positive EMACS_INT.
10227 Doc fix.
10228
10229 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
10230
10231 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10232
10233 * xmenu.c (xdialog_show): Move Fredisplay call ...
10234 (Fx_popup_dialog): ... here.
10235
10236 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
10237
10238 * dired.c (file_name_completion): Disable the first optimization just
10239 installed, since it is not implemented correctly.
10240
10241 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
10242
10243 * dired.c (file_name_completion): Check completion-ignored-extensions
10244 only if the entry can affect bestmatch.
10245 Stop the search early, as Ftry_completion already does.
10246
10247 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
10248
10249 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
10250
10251 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
10252
10253 * keyboard.c (parse_menu_item): Don't display remappings as menu
10254 equivalent bindings (Bug#788).
10255
10256 2009-03-15 Jason Rumney <jasonr@gnu.org>
10257
10258 * w32term.h (WM_EMACS_PAINT): New message.
10259 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
10260 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
10261 before passing to lisp thread. (Bug#950)
10262
10263 2009-03-14 David Reitter <david.reitter@gmail.com>
10264
10265 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
10266 variable as it was never reset.
10267 (ns_term_init): Remove initialization of Lisp-settable defaults
10268 and ns_expand_space.
10269 (-setPanelFromDefaultValues): Remove ns_expand_space.
10270 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
10271 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
10272 i.e. no additional spacing, similar to Carbon port.
10273
10274 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
10275 * nsfns.m (ns-popup-prefs-panel): Remove.
10276
10277 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
10278
10279 * sound.c (alsa_configure): Remove call to deprecated
10280 snd_pcm_sw_params_set_xfer_align.
10281
10282 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
10283
10284 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
10285 after clicking in a detached tool bar.
10286 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
10287
10288 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
10289
10290 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
10291 int/Lisp_Object mixup).
10292
10293 2009-03-13 Kenichi Handa <handa@m17n.org>
10294
10295 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
10296 Handle NAME nil and t correctly. Callers changed.
10297 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
10298 (set_fontset_font): Change ARG to a vector. Handle range_list in
10299 ARG correctly.
10300 (Fset_fontset_font): Fix the case that TARGET is both a script
10301 name and charset name. Adjust the arg to set_fontset_font for
10302 the above change.
10303 (fontset_from_font): Fix previous change.
10304 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
10305 entry. If FONTSET is the default fontset, don't set the extra
10306 slot of the returning char-table.
10307
10308 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
10309
10310 * nsfns.m (Fx_close_connection): Doc fix.
10311 (Fns_do_applescript): Reflow docstring.
10312 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
10313 (Fx_display_pixel_width, Fx_display_pixel_height)
10314 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
10315 Fix typos in docstrings.
10316 (Fns_set_alpha): Fix typos in error messages.
10317
10318 2009-03-12 David Reitter <david.reitter@gmail.com>
10319
10320 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
10321 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
10322 were used for such events.
10323
10324 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
10325 (toggleToolbar, performDragOperation, runHelp): Use it.
10326
10327 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
10328 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
10329
10330 2009-03-11 Kenichi Handa <handa@m17n.org>
10331
10332 * font.h (font_open_by_spec): Extern it.
10333
10334 * font.c (font_open_by_spec): New function.
10335 (font_open_by_name): Use font_open_by_spec.
10336
10337 * frame.c (x_set_font): When ARG is a font-object, don't alter the
10338 fontset of the frame.
10339
10340 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
10341 modify the default font of frames that use this fontset.
10342 (num_auto_fontsets): New variable.
10343 (fontset_from_font): Use num_auto_fontsets to decide a fontset
10344 name. Be sure to set FONTSET_ASCII to the correct font name.
10345 (update_auto_fontset_alist): New function.
10346
10347 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
10348
10349 * makefile.w32-in: Update dependencies.
10350
10351 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10352
10353 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
10354
10355 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
10356
10357 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
10358
10359 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
10360
10361 * lread.c (Feval_buffer): Doc fix.
10362
10363 2009-03-09 Kenichi Handa <handa@m17n.org>
10364
10365 * charset.c (Qfile_name_handler_alist): Extern it.
10366 (load_charset_map_from_file): Temporarily bind
10367 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
10368
10369 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
10370
10371 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
10372 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
10373
10374 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
10375
10376 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
10377 (x_set_window_size): Change back to calculated method of setting
10378 toolbar height under Cocoa. (Bug#2546)
10379 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
10380 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
10381
10382 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
10383
10384 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
10385 accelerator in parens under GNUstep.
10386
10387 2009-03-06 Kenichi Handa <handa@m17n.org>
10388
10389 These changes are to detect incorrect composition sequence without
10390 looking ahead the source. (Bug#2370)
10391
10392 * coding.h: Include "composite.h".
10393 (enum compisition_state): New enum.
10394 (struct compisition_status): New struct.
10395 (struct iso_2022_spec): New member cmp_status.
10396 (struct emacs_mule_spec): New struct.
10397 (struct coding_system): New members ctext_extended_segment_len and
10398 embedded_utf_8. Change the union member
10399 spec.emacs_mule_full_support to spec.emacs_mule.
10400
10401 * coding.c (CODING_ISO_CMP_STATUS): New macro.
10402 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
10403 (MAX_ANNOTATION_LENGTH): Define to 5.
10404 (ADD_COMPOSITION_DATA): New arg nbytes.
10405 (emacs_mule_char): New arg cmp_status.
10406 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
10407 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
10408 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
10409 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
10410 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
10411 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
10412 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
10413 (EMACS_MULE_COMPOSITION_END): New macro.
10414 (emacs_mule_finish_composition): New function.
10415 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
10416 (decode_coding_emacs_mule): Avoid long looking ahead while
10417 handling composition.
10418 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
10419 (ENCODE_COMPOSITION_RULE): New macro.
10420 (finish_composition): New function.
10421 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
10422 (DECODE_COMPOSITION_START): New implementation.
10423 (DECODE_COMPOSITION_END): Likewise.
10424 (STORE_COMPOSITION_RULE): New macro.
10425 (decode_coding_iso_2022): Avoid long looking ahead while handling
10426 composition, CTEXT extended segment, and embedded UTF-8.
10427 (setup_coding_system): For a coding of type iso-2022, reset
10428 CODING_ISO_EXTSEGMENT_LEN (coding) and
10429 CODING_ISO_EMBEDDED_UTF_8 (coding).
10430 (get_translation): Delete arguments last_block, from_nchars,
10431 to_nchars. Callers changed.
10432 (produce_chars): Don't modify charbuf. Adjusted for the change of
10433 get_translation.
10434 (produce_composition): Adjust for the new annotation sequence.
10435 (handle_composition_annotation): Likewise.
10436 (consume_chars): Adjust for the change of get_translation.
10437
10438 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
10439
10440 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
10441
10442 2009-03-05 Kenichi Handa <handa@m17n.org>
10443
10444 * font.c (font_select_entity): New function.
10445 (font_find_for_lface): Use font_select_entity to select a font.
10446
10447 * fontset.c (fontset_find_font): If a font found without
10448 restricting to the characters C doesn't support C, try to find a
10449 font with C restriction.
10450
10451 2009-03-04 Nikolaj Schumacher <me@nschum.de>
10452
10453 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
10454
10455 2009-03-04 Jason Rumney <jasonr@gnu.org>
10456
10457 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
10458 characters that have already been read. (Bug#2569)
10459
10460 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
10461 Log an error message if check_image_size failed.
10462 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
10463 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10464
10465 2009-03-02 Eli Zaretskii <eliz@gnu.org>
10466
10467 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
10468 when decoding process output.
10469
10470 2009-03-01 Richard M Stallman <rms@gnu.org>
10471
10472 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
10473
10474 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
10475
10476 2009-02-28 Eli Zaretskii <eliz@gnu.org>
10477
10478 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
10479 (decode_coding_emacs_mule, decode_coding_iso_2022)
10480 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10481 (decode_coding_raw_text, decode_coding_charset)
10482 (setup_coding_system, decode_eol, decode_coding, consume_chars):
10483 Honor inhibit-eol-conversion. (Bug #2186)
10484
10485 2009-02-28 Jason Rumney <jasonr@gnu.org>
10486
10487 * coding.c (detect_coding_charset): If not checking latin extra,
10488 fail on characters between 0x80 and 0xA0. (Bug#2354)
10489
10490 2009-02-28 Eli Zaretskii <eliz@gnu.org>
10491
10492 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
10493 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
10494
10495 2009-02-27 Glenn Morris <rgm@gnu.org>
10496
10497 * callint.c (Finteractive): Doc fix.
10498
10499 2009-02-27 Kenichi Handa <handa@m17n.org>
10500
10501 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
10502
10503 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
10504
10505 * font.c (font_style_to_value): Set value for unknown symbols to
10506 100 instead of 255.
10507 (weight_table, slant_table, width_table): Treat "unspecified" as
10508 the default value.
10509
10510 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
10511
10512 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
10513
10514 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
10515
10516 * lread.c (Fload): Stop checking Vloads_in_progress and signal
10517 error as soon as a recursive load is detected.
10518
10519 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10520
10521 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
10522 before caching.
10523
10524 2009-02-24 Kenichi Handa <handa@m17n.org>
10525
10526 * fontset.c (fontset_find_font): Fix the condition for checking
10527 unavailable font.
10528
10529 2009-02-24 Glenn Morris <rgm@gnu.org>
10530
10531 * xfaces.c (Finternal_set_font_selection_order): Remove leading
10532 whitespace that confuses documentation.
10533
10534 2009-02-23 Miles Bader <miles@gnu.org>
10535
10536 * process.c (Flist_system_processes, Fprocess_attributes)
10537 (syms_of_process): Rename `system-process-attributes' to
10538 `process-attributes'.
10539
10540 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
10541
10542 * coding.h (struct coding_system): Make safe_charsets a pointer to
10543 unsigned char.
10544 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
10545 being 255.
10546 (SAFE_CHARSET_P): Likewise.
10547 (setup_iso_safe_charsets): Properly setup safe_charsets.
10548 (Fdefine_coding_system_internal): Likewise.
10549 (setup_coding_system): Likewise. Remove unneeded casts.
10550 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
10551 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
10552 unneeded casts.
10553
10554 * insdel.c (del_range_2): Don't modify gap contents when called
10555 from decode_coding_object. (Bug#1809)
10556
10557 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
10558
10559 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
10560 Qfont_object.
10561 (Ftype_of): Recognize font objects.
10562
10563 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
10564
10565 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
10566 moved to data.c.
10567
10568 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
10569
10570 * nsterm.m (x_make_frame_invisible): Unset async_visible,
10571 async_iconified. Based on a patch by Christian Lynbech
10572 <christian.lynbech@tieto.com>.
10573 (EmacsView-windowDidMiniaturize:): Unset async_visible.
10574
10575 2009-02-20 Glenn Morris <rgm@gnu.org>
10576
10577 * syntax.c (Fskip_chars_forward): Fix doc typo.
10578
10579 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
10580
10581 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
10582
10583 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
10584
10585 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
10586
10587 2009-02-19 Kenichi Handa <handa@m17n.org>
10588
10589 * coding.c (detect_coding): Preserve coding->mode.
10590 Don't overflow coding->carryover. (Bug#2370)
10591
10592 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
10593
10594 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
10595
10596 2009-02-18 Kenichi Handa <handa@m17n.org>
10597
10598 * font.c (font_check_otf_features): Fix handling of `nil' element.
10599 (Ffont_spec): Describe :lang and :otf in the docstring.
10600
10601 2009-02-16 Andreas Schwab <schwab@suse.de>
10602
10603 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
10604 string.
10605
10606 2009-02-16 Kenichi Handa <handa@m17n.org>
10607
10608 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
10609 (Bug#1723)
10610
10611 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
10612
10613 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
10614
10615 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
10616 (handle_line_prefix): Suppress wrapping of wrap prefixes.
10617
10618 2009-02-14 Eli Zaretskii <eliz@gnu.org>
10619
10620 * msdos.c (MAX_SCREEN_BUF): New macro.
10621 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
10622 Encode the entire run of glyphs sharing the same face, instead of
10623 doing that one glyph at a time (fixes a bug with displaying
10624 double-size characters).
10625
10626 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
10627
10628 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
10629
10630 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
10631 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
10632 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
10633
10634 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
10635 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
10636
10637 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
10638
10639 * keyboard.c (adjust_point_for_property): Allow stopping between two
10640 invisible areas.
10641
10642 2009-02-12 Jason Rumney <jasonr@gnu.org>
10643
10644 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
10645 (add_font_entity_to_list): Call check_face_name even when family
10646 is unspecified.
10647
10648 * w32term.c (x_display_pixel_height, x_display_pixel_width):
10649 Release DC when finished. Use NULL window to refer to desktop.
10650 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
10651
10652 * w32font.c (add_font_entity_to_list): Fix check for substituted
10653 raster fonts. (Bug#2219)
10654
10655 2009-02-12 Kenichi Handa <handa@m17n.org>
10656
10657 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
10658 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
10659 (autocmp_chars): Use fast_looking_at. Don't compose more
10660 characters than MAX_COMPOSITION_COMPONENTS.
10661 (find_automatic_composition): While looking forward and backward,
10662 check static composition. Fix where to stop looking forward.
10663 (composition_adjust_point): Fix checking of static composition.
10664 (Fcomposition_get_gstring): Pay attention to
10665 MAX_COMPOSITION_COMPONENTS.
10666
10667 * lisp.h (fast_looking_at): Extern it.
10668
10669 * search.c (fast_looking_at): New function.
10670
10671 * term.c (encode_terminal_code): Adjust for the change of
10672 <struct glyph>.u.cmp.to.
10673 (append_composite_glyph): Likewise.
10674
10675 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
10676 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
10677 composition.
10678 (append_composite_glyph): Adjust for the change of
10679 <strcut glyph>.u.cmp.to.
10680
10681 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
10682
10683 * casetab.c (init_casetab_once):
10684 * coding.c (ALLOC_CONVERSION_WORK_AREA):
10685 * font.c (font_update_lface):
10686 * fontset.c (Fnew_fontset):
10687 * ftfont.c (ftfont_drive_otf):
10688 * xfont.c (xfont_open):
10689 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
10690
10691 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
10692
10693 * fileio.c (Fwrite_region): !NILP -> CONSP.
10694
10695 2009-02-10 Andreas Schwab <schwab@suse.de>
10696
10697 * process.c (send_process): Properly relocate pointer into data
10698 when using encoded data. (Bug#2272)
10699
10700 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
10701
10702 * coding.c (detect_coding_charset): Fix previous change.
10703
10704 2009-02-08 Jason Rumney <jasonr@gnu.org>
10705
10706 * w32fns.c (w32_hide_hourglass): Handle case where frame
10707 disappeared while hourglass was displayed. (Bug #2193)
10708
10709 2009-02-07 Andreas Schwab <schwab@suse.de>
10710
10711 * unexelf.c (unexec): Fix error message.
10712
10713 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
10714
10715 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
10716 when modal window is active. (Bug #2152)
10717 (applicationShouldTerminate:): Remove now-unneeded while loop
10718 around NSRunAlertPanel.
10719
10720 * nsmenu.m (popupSession): New file-global variable.
10721 (pop_down_menu): End the popupSession before closing dialog.
10722 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
10723 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
10724 don't query NSApp for events (just sleep instead).
10725
10726 2009-02-07 Eli Zaretskii <eliz@gnu.org>
10727
10728 * coding.c (syms_of_coding) <translation-table-for-input>:
10729 Modify doc string to discourage use for character code unification.
10730
10731 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10732
10733 * atimer.c (run_timers): Update pending_atimers.
10734
10735 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
10736
10737 * image.c (svg_load_image): Fix last change.
10738
10739 * xfns.c (Fx_create_frame): Signal an error if no font is
10740 found (Bug#2147).
10741
10742 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
10743
10744 * character.c (syms_of_character) <script-representative-chars>:
10745 Fix typo in docstring.
10746
10747 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
10748
10749 * nsmenu.m (pop_down_menu): New function.
10750 (ns_popup_dialog): Call it on unwind.
10751 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
10752 call timer_check() (Bug#2154).
10753 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
10754 handling_signal is set.
10755 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
10756
10757 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
10758
10759 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
10760
10761 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
10762
10763 * keyboard.c (poll_for_input_1, handle_async_input):
10764 Set handling_signal under HAVE_NS.
10765
10766 2009-02-04 Glenn Morris <rgm@gnu.org>
10767
10768 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
10769
10770 2009-02-04 Kenichi Handa <handa@m17n.org>
10771
10772 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
10773
10774 * charset.c (Fchar_charset): New optional arg restriction.
10775
10776 * coding.h (coding_system_charset_list): Extern it.
10777
10778 * coding.c (coding_system_charset_list): New function.
10779
10780 * composite.c: Include coding.h and termhooks.h.
10781 (composition_gstring_p): Fix for the terminal case.
10782 (composition_gstring_width): Likewise.
10783 (fill_gstring_body): Likewise.
10784 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
10785 the frame.
10786 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
10787 is within a composition.
10788 (Fcomposition_get_gstring): Fix the terminal case.
10789
10790 * term.c (encode_terminal_code): Fix handling of composition.
10791 (produce_composite_glyph): For static composition, get pixel_width
10792 from struct composition.
10793
10794 2009-02-02 Andreas Schwab <schwab@suse.de>
10795
10796 * unexelf.c (unexec): Handle unaligned bss offset.
10797
10798 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10799
10800 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
10801 XT,w32read_socket changes to ns_read_socket.
10802
10803 * keyboard.c (handle_interrupt): Don't call
10804 quit_throw_to_read_char() under NS.
10805
10806 * blockinput.h: Remove NS-specific code.
10807
10808 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
10809
10810 * dispnew.c (window_change_signal): Don't try to get the size of a
10811 suspended tty frame.
10812 * term.c (Fresume_tty): Resize if the size has changed while the
10813 tty was suspended.
10814
10815 * alloc.c (mark_stack): Properly conditionalize previous change.
10816
10817 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
10818
10819 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
10820 * w32term.c (w32_read_socket) [SYNC_INPUT]:
10821 Remove; this code is not used on Windows.
10822
10823 2009-01-30 Eli Zaretskii <eliz@gnu.org>
10824
10825 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
10826 EOLs that also has stray ^M characters.
10827
10828 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
10829
10830 * atimer.c (run_timers, alarm_signal_handler):
10831 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
10832 * w32inevt.c (w32_console_read_socket):
10833 * w32term.c (w32_read_socket):
10834 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
10835
10836 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
10837
10838 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
10839 Initialize it as a relative filename pattern.
10840 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
10841 (Fcall_process_region): Simplify temp file creation using
10842 temporary-file-directory.
10843
10844 2009-01-29 Eli Zaretskii <eliz@gnu.org>
10845
10846 * msdos.c: Rename pending_signals to msdos_pending_signals.
10847 (sig_suspender, sigprocmask): Adjust.
10848
10849 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
10850
10851 * keyboard.c (pending_signals): New var.
10852 (poll_for_input, input_available_signal, init_keyboard): Set it.
10853 (process_pending_signals): New function.
10854
10855 * lisp.h (QUIT): Check pending_signals instead of
10856 interrupt_input_pending. Use process_pending_signals.
10857
10858 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
10859
10860 * process.c (wait_reading_process_output): Use process_pending_signals.
10861
10862 * sysdep.c (emacs_write): Use process_pending_signals.
10863
10864 * xterm.c (XTread_socket): Update pending_signals.
10865
10866 * w32term.c (w32_read_socket): Update pending_signals.
10867
10868 * w32inevt.c (w32_console_read_socket): Update pending_signals.
10869
10870 2009-01-29 Kenichi Handa <handa@m17n.org>
10871
10872 * xftfont.c (xftfont_has_char): New function.
10873 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
10874
10875 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
10876
10877 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
10878 under GNUstep.
10879 (ns_query_color): New declaration.
10880
10881 * nsterm.m (ns_confirm_quit): New variable.
10882 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
10883 (EmacsApp-applicationShouldTerminate:): Use it.
10884 (EmacsPrefsController): Let user set it.
10885 (ns_query_color): New function.
10886 (ns_defined_color): Use it.
10887 (ns_initialize): Drop.
10888 (ns_term_init): Add two lines from ns_initialize(), and set
10889 input_interrupt_mode to nil.
10890
10891 * image.c (svg_load_image): Don't right-shift background RGB when
10892 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
10893
10894 2009-01-28 Kenichi Handa <handa@m17n.org>
10895
10896 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
10897 (fontset_get_font_group): Remember that no font-group is specified
10898 for C.
10899
10900 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
10901
10902 * fns.c (concat): Check for string overflow (bug#1787).
10903
10904 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
10905 Quadruple undo limits (bug#1501).
10906
10907 2009-01-27 Kenichi Handa <handa@m17n.org>
10908
10909 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
10910 directly use GT_Get_Char_index.
10911
10912 * xftfont.c (struct xftfont_info): New member `index'.
10913
10914 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
10915 (Ffontset_font): Adjust for the change of fontset entry.
10916
10917 2009-01-26 Kenichi Handa <handa@m17n.org>
10918
10919 * fontset.c (fontset_find_font): Fix handling of non-cons return
10920 value of fontset_get_font_group.
10921 (fontset_font): Revert last change.
10922
10923 2009-01-26 Jason Rumney <jasonr@gnu.org>
10924
10925 * w32font.c (w32font_list_internal): Return quickly if registry is
10926 unknown. Simplify final return.
10927 (add_font_entity_to_list): Break complex logic down into more
10928 manageable chunks. Move unknown registry check to
10929 w32font_list_internal.
10930
10931 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
10932
10933 Changes to remove Feval calls from GUI under NS.
10934
10935 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
10936 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
10937 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
10938
10939 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
10940 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
10941 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
10942 instead of NON_ASCII_KEYSTROKE_EVENT.
10943 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
10944 (EmacsApp-applicationShouldTerminate:): Query user.
10945 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
10946 instead of Feval.
10947
10948 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
10949
10950 * keyboard.c (kbd_buffer_get_event): Check for it.
10951 (keys_of_keyboard): Define lispy keys for
10952 ns-put/unput-working-text.
10953
10954 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
10955 versions.
10956 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
10957
10958 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
10959
10960 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
10961 setting current_buffer directly. (Bug#2044)
10962
10963 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
10964
10965 * fontset.c (fontset_font): If we know there is no font, don't do
10966 any work. (Bug#1952, bug#1990).
10967
10968 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
10969
10970 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
10971
10972 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
10973 (ns_no_defaults): New declaration.
10974 (main): Use it.
10975
10976 * nsterm.h (ns_no_defaults): New declaration.
10977
10978 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
10979
10980 * nsterm.m (ns_no_defaults): New variable.
10981 (ns_initialize): Don't read defaults when ns_no_defaults.
10982 (EmacsView-readSelectionFromPasteboard:)
10983 (writeSelectionToPasteboard:types:): New stubbed-out methods for
10984 NSServicesRequests protocol. (Bug#1435)
10985 (ns_dumpglyphs_stretch): New function.
10986 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
10987 of 2008-11-15 to other terms. (Bug#615)
10988
10989 * nsimage.m (setPixmapData:): Set to ignore image DPI.
10990
10991 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
10992
10993 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
10994 call for Sparc64.
10995
10996 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10997
10998 * nsfns.m:
10999 * nsgui.h:
11000 * nsmenu.m:
11001 * nsselect.m:
11002 * nsterm.h:
11003 * nsterm.m: Remove '23' comments that indicated code added during
11004 update from emacs-20 -> emacs-23.
11005
11006 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11007
11008 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
11009 ns_alternate_modifier. (Bug#1217)
11010
11011 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
11012 Display all shortcuts, including those w/o super modifier.
11013
11014 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
11015
11016 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
11017
11018 * fileio.c (Vwrite_region_post_annotation_function)
11019 (Vwrite_region_annotation_buffers): New vars.
11020 (build_annotations_unwind): Just reset
11021 Vwrite_region_annotation_buffers.
11022 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
11023 Call write-region-post-annotation-function.
11024 (build_annotations): Add to Vwrite_region_annotation_buffers if
11025 buffer changes.
11026
11027 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11028
11029 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
11030 Tiger.
11031 * nsfns.m (ns_do_applescript):
11032 Conditionalize typeUTF16ExternalRepresentation on Tiger.
11033
11034 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
11035
11036 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
11037
11038 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11039
11040 * nsmenu.m (NSMENUPROFILE): Change #if style.
11041
11042 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
11043
11044 * nsterm.m (x_set_frame_alpha): Add prototype.
11045 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
11046 handle Ctrl-tab. (Bug#1841)
11047 (ns_get_color): Use unsigned long long for scanned hex string value.
11048 (ns_term_shutdown): Abort on non SIGTERM signals.
11049 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
11050 (EmacsPrefsController-setPanelFromDefaultValues): New function.
11051 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
11052 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
11053 (ns_defined_color): Fix settings of the XColor variable fields:
11054 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
11055
11056 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
11057 DPI. (Bug#1316)
11058 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
11059 values in onTiger section.
11060
11061 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
11062
11063 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
11064 Check return value of font_spec_from_name.
11065 (Fx_list_fonts): Doc fix. (Bug#1951)
11066
11067 * font.c (font_spec_from_name): Return Qnil if font name could not
11068 be parsed.
11069 (font_parse_name): Treat a `?' character as part of an XLFD.
11070
11071 * fns.c (Fsubstring): Doc fix.
11072
11073 2009-01-19 Kenichi Handa <handa@m17n.org>
11074
11075 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
11076 (ftfont_list): Likewise.
11077
11078 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
11079
11080 * dbusbind.c (Fdbus_register_signal):
11081 * process.c (conv_sockaddr_to_lisp):
11082 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
11083
11084 * callproc.c (Fgetenv_internal): Doc fix.
11085
11086 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
11087
11088 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
11089 it is not even used.
11090
11091 2009-01-16 Glenn Morris <rgm@gnu.org>
11092
11093 * font.c (Ffont_variation_glyphs): Silence compiler.
11094
11095 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
11096
11097 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
11098 Reported by David Robinow <drobinow@gmail.com>.
11099
11100 2009-01-15 Kenichi Handa <handa@m17n.org>
11101
11102 * coding.c (detect_coding_system): Fix handling of null_byte_found.
11103
11104 2009-01-14 Jason Rumney <jasonr@gnu.org>
11105
11106 * frame.c (x_set_font): Always store a font to the font parameter,
11107 never a fontset. (Bug#1562)
11108
11109 2009-01-14 Kenichi Handa <handa@m17n.org>
11110
11111 * coding.c (TWO_MORE_BYTES): New macro.
11112 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
11113
11114 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
11115
11116 * font.c (font_clear_prop): If clearing the family, clear the font
11117 width index too.
11118
11119 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
11120
11121 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
11122
11123 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
11124 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
11125 functions, use sizeof.
11126
11127 2009-01-12 Martin Rudalics <rudalics@gmx.at>
11128
11129 * keyboard.c (read_char): Fix case where last_nonmenu_event
11130 returned a bad value with submenus. (Bug#447)
11131
11132 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
11133
11134 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
11135 family, clear the font width index too.
11136
11137 2009-01-11 Jason Rumney <jasonr@gnu.org>
11138
11139 * keyboard.c (cmd_error_internal): Exit when errors occur before
11140 frame creation and not in daemon mode. (Bug#1836)
11141
11142 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
11143
11144 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
11145 of a display vector, backtrack.
11146 (try_window_reusing_current_matrix): Check glyph type before
11147 referencing charpos member.
11148
11149 2009-01-10 Eli Zaretskii <eliz@gnu.org>
11150
11151 Fix Bug #876:
11152
11153 * coding.c (inhibit_null_byte_detection): New variable.
11154 (detect_coding, detect_coding_system): Don't pay attention to null
11155 bytes if inhibit_null_byte_detection is non-zero.
11156 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
11157 <inhibit-iso-escape-detection>: Doc fix.
11158
11159 2009-01-09 Jason Rumney <jasonr@gnu.org>
11160
11161 * w32font.c (add_font_entity_to_list): Don't report unknown
11162 Windows charset as any unrecognized registry. (Bug#1548)
11163 Only report Unicode Plane 2 fonts as unicode-sip.
11164
11165 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
11166
11167 * xfaces.c (Fx_font_family_list): Delete function.
11168 Move compatibility version to faces.el.
11169
11170 * font.c (Ffont_family_list): Return a list of strings, not symbols.
11171
11172 2009-01-09 Martin Rudalics <rudalics@gmx.at>
11173
11174 * frame.c (x_set_frame_parameters): Remember requested value for
11175 fullscreen before it's reset by the parameter handler.
11176
11177 2009-01-09 Glenn Morris <rgm@gnu.org>
11178
11179 * keyboard.c (last_command_char): For clarity, rename to...
11180 (last_command_event): ... and update all users.
11181 (last_input_char): For clarity, rename to...
11182 (last_input_event): ... and update all users.
11183 (last-command-char, last-input-char): Move to subr.el as aliases.
11184 * cmds.c, commands.h: Update for last_command_char rename.
11185
11186 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
11187
11188 * font.c (font_open_for_lface): Handle unspecified height attribute.
11189
11190 2009-01-08 Jason Rumney <jasonr@gnu.org>
11191
11192 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
11193 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
11194 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
11195 Don't declare.
11196 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
11197 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
11198
11199 2009-01-07 Kenichi Handa <handa@m17n.org>
11200
11201 * fileio.c (Finsert_file_contents): In the case of replace,
11202 remember the coding system used for decoding in
11203 coding_system (Bug#1039).
11204
11205 * coding.c (decode_coding_utf_8): Check byte_after_cr before
11206 breaking the loop. (Bug#870)
11207 (decode_coding_utf_16, decode_coding_emacs_mule)
11208 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11209 (decode_coding_charset): Likewise.
11210
11211 2009-01-05 Martin Rudalics <rudalics@gmx.at>
11212
11213 * frame.c (x_set_frame_parameters): Make sure height (width) get
11214 applied when fullwidth (fullheight) is set. (Bug#1522)
11215
11216 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
11217
11218 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
11219 (utc_base): Declare as ULONGLONG, not long double.
11220 (convert_time_raw): Delete.
11221 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
11222 (initialize_utc_base): New function.
11223 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
11224 (convert_from_time_t): Use initialize_utc_base; compute result with
11225 64-bit arithmetic.
11226 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
11227
11228 2009-01-03 Eli Zaretskii <eliz@gnu.org>
11229
11230 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
11231 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
11232 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
11233 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
11234 [!subprocesses]: Define.
11235 (syms_of_process) [!subprocesses]: Intern and staticpro them.
11236 (Flist_system_processes, Fsystem_process_attributes)
11237 [!subprocesses]: Call list_system_processes and
11238 system_process_attributes instead of returning Qnil.
11239
11240 * dosfns.c (system_process_attributes, list_system_processes):
11241 New functions.
11242
11243 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
11244
11245 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
11246 Don't use the default (no-op) implementation.
11247
11248 2009-01-03 Jason Rumney <jasonr@gnu.org>
11249
11250 * keyboard.c (parse_modifiers_uncached): Wheel events are
11251 clicks (bug#687).
11252
11253 * w32term.c (x_query_colors, x_query_color): New functions.
11254
11255 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
11256 (svg_load_image): Cast returned pointers from dynamically loaded
11257 functions. Eliminate W32 specific code.
11258
11259 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
11260
11261 * nsfns.m (x_set_foreground_color, x_set_background_color)
11262 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
11263 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
11264 x_ prefix instead of ns_. Update references.
11265 (syms_of_nsfns): Add a FIXME comment.
11266
11267 * nsterm.m (x_set_cursor_type): New prototype.
11268 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
11269
11270 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
11271 for Solaris instead of incorrectly providing Qutime and Qcutime.
11272
11273 2009-01-02 Eli Zaretskii <eliz@gnu.org>
11274
11275 * w32.c (process_times): Compute sum of utime and stime.
11276 (system_process_attributes): Add Qtime to the alist.
11277
11278 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
11279 and add them to the alist.
11280
11281 * process.c (top level) <Qtime, Qctime>: New variables.
11282 (syms_of_process): staticpro them.
11283 (Fsystem_process_attributes): Add their documentation to the doc
11284 string.
11285
11286 * process.h: Declare Qtime and Qctime.
11287
11288 2009-01-02 Jason Rumney <jasonr@gnu.org>
11289
11290 * image.c (Qgobject): New symbol.
11291 (syms_of_image): Initialize it.
11292 (init_svg_functions): Load some functions from gobject library.
11293
11294 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
11295
11296 * frame.c (make_terminal_frame): Remove redundant code and useless
11297 block.
11298
11299 2009-01-01 Andreas Schwab <schwab@suse.de>
11300
11301 * process.c (conv_sockaddr_to_lisp): Add workaround for
11302 getsockname bug on BSD.
11303
11304 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
11305
11306 * xfns.c (x_create_tip_frame): Set border width of the X window.
11307
11308 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
11309
11310 2009-01-01 Jason Rumney <jasonr@gnu.org>
11311
11312 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
11313 Don't block input, as per earlier xterm.c changes.
11314
11315 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
11316
11317 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
11318 (ns_appkit_version_int): New function.
11319 (x-server-version): Use ns_appkit_version_int and follow 21+
11320 convention of returning 3 integers.
11321
11322 2008-12-30 Kenichi Handa <handa@m17n.org>
11323
11324 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
11325 (CHAR_SURROGATE_PAIR_P): New macro.
11326
11327 * font.h (struct font_driver): New member get_variation_glyphs.
11328
11329 * font.c (font_range): Don't require a font for a variation selector.
11330 (Ffont_variation_glyphs): New function.
11331 (syms_of_font): Defsubr it.
11332
11333 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
11334 ftfont_variation_glyphs.
11335 (setup_otf_gstring): New function.
11336 (ftfont_drive_otf): Use it.
11337 (ftfont_shape_by_flt): Handle variation selector.
11338 (ftfont_variation_glyphs): New function.
11339
11340 2008-12-30 Martin Rudalics <rudalics@gmx.at>
11341
11342 * frame.c (Vemacs_iconified): Remove.
11343
11344 2008-12-30 Jason Rumney <jasonr@gnu.org>
11345
11346 * frame.c (store_frame_param, x_get_arg): Enable newer code on
11347 WINDOWSNT too, as related changes have already been synced. (Bug#117)
11348
11349 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
11350
11351 * indent.c (Fvertical_motion): Don't advance iterator if we have
11352 reseated to the desired position.
11353
11354 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
11355 checking for pos match.
11356
11357 2008-12-30 Kenichi Handa <handa@m17n.org>
11358
11359 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
11360 just get the low 8-bit of the code.
11361
11362 * font.c (font_intern_prop): Validate str as multibyte.
11363
11364 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
11365
11366 * dispextern.h (struct face): Move lface and hash from the middle
11367 of bitfields.
11368
11369 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
11370
11371 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
11372
11373 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
11374 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
11375 instead of intervals.h.
11376
11377 2008-12-26 Andreas Schwab <schwab@suse.de>
11378
11379 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
11380 cons.
11381
11382 2008-12-26 Martin Rudalics <rudalics@gmx.at>
11383
11384 * textprop.c (Qminibuffer_prompt): New variable.
11385 (syms_of_textprop): Initialize it.
11386 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
11387 in minibuffer-prompt face. (Bug#1662)
11388
11389 2008-12-25 Jason Rumney <jasonr@gnu.org>
11390
11391 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
11392
11393 2008-12-24 Jason Rumney <jasonr@gnu.org>
11394
11395 * ralloc.c (r_alloc_reset_variable): New function.
11396
11397 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
11398 record of what points where. (Bug#716)
11399
11400 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
11401
11402 * minibuf.c (read_minibuf): Follow the non-interactive case when
11403 running as a daemon, before detaching.
11404
11405 2008-12-22 Andreas Schwab <schwab@suse.de>
11406
11407 * buffer.c (init_buffer): Use realloc instead of xrealloc.
11408 * gtkutil.c (free_widget_value): Use xfree instead of free.
11409
11410 2008-12-22 Martin Rudalics <rudalics@gmx.at>
11411
11412 * frame.c (delete_frame): New function derived from
11413 Fdelete_frame to handle Qnoelisp value for FORCE argument.
11414 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
11415 (Fdelete_frame): Call delete_frame. Remove line from doc-string
11416 saying that FORCE non-nil doesn't run `delete-frame-functions'.
11417 * frame.h: Extern delete_frame.
11418 * window.c (window_loop):
11419 * terminal.c (delete_terminal):
11420 * xterm.c (x_connection_closed):
11421 * xfns.c (Fx_hide_tip):
11422 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
11423
11424 2008-12-21 Jason Rumney <jasonr@gnu.org>
11425
11426 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
11427 when character maps to .notdef character.
11428
11429 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
11430
11431 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
11432
11433 2008-12-20 Jason Rumney <jasonr@gnu.org>
11434
11435 * frame.c (Fmake_terminal_frame): Raise an error when called from
11436 a graphical frame on Windows. (Bug#1325)
11437
11438 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
11439
11440 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
11441
11442 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
11443
11444 * minibuf.c (Fread_buffer): Doc fix.
11445
11446 2008-12-20 Jason Rumney <jasonr@gnu.org>
11447
11448 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
11449 server name in UNC paths. (Bug#719)
11450
11451 * coding.c (decode_coding): Clear chars_at_source flag when using
11452 charbuf. (Bug#1035)
11453
11454 2008-12-19 Daniel Engeler <engeler@gmail.com>
11455
11456 * sysdep.c (serial_configure): Fix typo.
11457
11458 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
11459
11460 * sysdep.c: Include alloca.h.
11461 (system_process_attributes): Add implementation for Solaris.
11462
11463 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
11464
11465 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
11466
11467 Reorganize implementation of Flist_system_processes and
11468 Fsystem_process_attributes. No functional changes.
11469 * process.c: Don't #include pwd.h, grp.h and limits.h.
11470 (Flist_system_processes): Just call list_system_processes.
11471 (Fsystem_process_attributes): Just call system_process_attributes.
11472 (procfs_list_system_processes, time_from_jiffies)
11473 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
11474 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
11475
11476 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
11477 (list_system_processes): Rename from
11478 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
11479 Provide a do nothing implementation.
11480 (system_process_attributes): Rename from
11481 procfs_list_system_processes.
11482 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
11483 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
11484
11485 * w32.c (list_system_processes): Rename from
11486 w32_list_system_processes.
11487 (system_process_attributes): Rename from
11488 w32_system_process_attributes.
11489
11490 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
11491
11492 * process.h (w32_list_system_processes)
11493 (w32_system_process_attributes): Remove.
11494 (list_system_processes, system_process_attributes):
11495 New prototypes.
11496
11497 2008-12-19 Kenichi Handa <handa@m17n.org>
11498
11499 * xfont.c (xfont_decode_coding_xlfd): New function.
11500 (xfont_encode_coding_xlfd): New function.
11501 (xfont_list_pattern): Decode XLFD by iso-8859-1.
11502 (xfont_list): Decode and encode XLFD by iso-8859-1.
11503 (xfont_match): Likewise.
11504 (xfont_list_family): Likewise.
11505 (xfont_open): Likewise.
11506
11507 * ftfont.c (ftfont_open): Generate a multibyte string if given
11508 names are utf-8.
11509
11510 * xftfont.c (xftfont_open): Generate a multibyte string if given
11511 names are utf-8.
11512
11513 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
11514
11515 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
11516 changed.
11517 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
11518 clicked on a detached tool bar button.
11519
11520 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
11521
11522 * emacs.c (main): Print and error and exit when no data is read
11523 from the pipe.
11524
11525 2008-12-17 Jason Rumney <jasonr@gnu.org>
11526
11527 * w32font.c (w32font_has_char): Always return -1.
11528
11529 2008-12-16 Kenichi Handa <handa@m17n.org>
11530
11531 * font.c (font_open_entity): Fix previous change.
11532
11533 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
11534
11535 * process.c: Include <limits.h>.
11536
11537 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
11538
11539 * font.c (font_update_drivers): Fix mistake in reconstructing the
11540 driver list.
11541
11542 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
11543
11544 * font.c (font_clear_cache): Fix format of font cache data.
11545
11546 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
11547
11548 * xftfont.c (xftfont_open): Free Xft font pattern if
11549 XftFontOpenPattern fails.
11550
11551 * xterm.c (x_free_frame_resources): Remove extraneous call to
11552 free_frame_faces.
11553
11554 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
11555
11556 * xterm.c (x_delete_display): Move xim_close_dpy call to
11557 x_delete_terminal.
11558 (x_delete_terminal): Call xim_close_dpy.
11559
11560 2008-12-13 Jason Rumney <jasonr@gnu.org>
11561
11562 * w32font.c (intern_font_name): New function.
11563 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
11564 (w32font_open_internal, Fx_select_font): Decode font name.
11565 (fill_in_logfont, list_all_matching_fonts): Encode font name.
11566
11567 * w32font.h (intern_font_name): Declare new function.
11568
11569 * w32uniscribe.c (add_opentype_font_name_to_list):
11570 Use intern_font_name.
11571
11572 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
11573
11574 * frame.c (Fdelete_frame): Call free_font_driver_list.
11575
11576 * font.c (free_font_driver_list): Implement missing function.
11577
11578 * w32term.c (w32_term_init): Don't initialize the image cache
11579 here; it will be done in init_frame_faces.
11580
11581 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
11582 (struct x_display_info): Remove unused member null_pixel. New
11583 member xim_callback_data.
11584
11585 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
11586 (xim_initialize): Save pointer to callback function data.
11587 (xim_close_dpy): Free callback function data. Call XCloseIM,
11588 reverting 2008-11-04 change by David Smith.
11589 (x_term_init): Don't initialize the image cache here; it will be
11590 done in init_frame_faces. Remove ancient "null_pixel" cruft.
11591 (x_delete_display): Free x_dnd_atoms member.
11592
11593 2008-12-13 Kenichi Handa <handa@m17n.org>
11594
11595 * font.c (font_rescale_ratio): Moved from xfaces.c.
11596 Argument type changed. Handle a font-spec too.
11597 (font_score): Check Vface_font_rescale_alist.
11598 (font_open_entity): Likewise. (Bug#1547)
11599
11600 * xfaces.c (font_rescale_ratio): Moved to font.c.
11601
11602 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
11603
11604 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
11605
11606 2008-12-12 Jason Rumney <jasonr@gnu.org>
11607
11608 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
11609 Vwindow_system_version to the real w32 major version.
11610
11611 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
11612
11613 * term.c (init_tty): Move setting the terminal name before the
11614 potential user: maybe_fatal.
11615
11616 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
11617
11618 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
11619 all callers changed. Call free_frame_faces to free the face cache.
11620
11621 2008-12-11 Jason Rumney <jasonr@gnu.org>
11622
11623 * w32font.c (fill_in_logfont): Don't assume symbol script means
11624 SYMBOL_CHARSET. (Bug#547)
11625
11626 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
11627 size for surrogates. (Bug#1096, bug#872)
11628
11629 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
11630
11631 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
11632
11633 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
11634
11635 * process.c (Fsystem_process_attributes, syms_of_process):
11636 Fix typo in name of Ssystem_process_attributes.
11637 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
11638
11639 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
11640
11641 * syntax.c (Fmodify_syntax_entry): Doc fix.
11642
11643 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
11644
11645 * font.c (Ffont_spec): Move usage to end of docstring.
11646
11647 2008-12-10 Jason Rumney <jasonr@gnu.org>
11648
11649 * w32font.c (Qcham): New symbol.
11650 (font_supported_scripts): Add cham, and comments for other new
11651 scripts in bitfield from OpenType spec.
11652 (add_font_entity_to_list): Limit unicode-sip fonts to those that
11653 contain characters beyond the bmp.
11654
11655 2008-12-10 Kenichi Handa <handa@m17n.org>
11656
11657 * ftfont.c (fc_charset_table): Add "unicode-sip".
11658 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
11659 Qunicode_sip.
11660
11661 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
11662
11663 * coding.c (QCdefault_char): Rename from QCdefalut_char.
11664 (Fcoding_system_put): Use QCdefault_char.
11665 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
11666
11667 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
11668
11669 * xftfont.c (syms_of_xftfont): Fix typo.
11670
11671 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
11672
11673 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
11674
11675 * emacs.c (main): Close daemon_pipe on exec.
11676
11677 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
11678
11679 * termchar.h (struct tty): New members termcap_term_buffer and
11680 termcap_strings_buffer.
11681
11682 * term.c (encode_terminal_code): Free any previous memory blocks
11683 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
11684 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
11685 All callers changed.
11686 (init_tty): Store termcap data and string buffers in new struct
11687 tty members termcap_term_buffer and termcap_strings_buffer.
11688 (delete_tty): Free them.
11689 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
11690
11691 2008-12-07 Seiji Zenitani <zenitani@mac.com>
11692
11693 * nsfns.m (ns_set_background_color): Remove code duplication.
11694 It was a substitute for face-transparency on OS X 10.3.
11695
11696 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
11697
11698 * coding.c (make_conversion_work_buffer): Disable buffer
11699 modification hooks in the work buffer.
11700
11701 2008-12-05 Eli Zaretskii <eliz@gnu.org>
11702
11703 * process.c (procfs_system_process_attributes): If `nread' has a
11704 negative value, assign zero to it.
11705
11706 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
11707
11708 * eval.c (Vdebug_on_error): Doc fix.
11709
11710 2008-12-05 Kenichi Handa <handa@m17n.org>
11711
11712 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
11713 second character is a combining character.
11714
11715 2008-12-05 Eli Zaretskii <eliz@gnu.org>
11716
11717 * process.c (procfs_system_process_attributes): Don't use cmd,
11718 cmdsize, and q without initializing them first.
11719
11720 2008-12-04 Jason Rumney <jasonr@gnu.org>
11721
11722 * w32font.c (w32font_draw): Initialize orig_clip before getting
11723 it, and delete it when finished.
11724
11725 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
11726
11727 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
11728 case when running as a daemon before detaching.
11729
11730 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
11731
11732 * w32.c (init_environment): Don't unload library shell32.dll.
11733
11734 2008-12-03 Kenichi Handa <handa@m17n.org>
11735
11736 * font.c (font_at): Set `multibyte' at first.
11737
11738 * coding.c (decode_coding_charset): Check type of an element of
11739 vector VALIDS.
11740 (encode_coding_emacs_mule): Be sure to set `code'.
11741
11742 * fontset.c (face_for_char): Handle invalid charset property correctly.
11743 (font_for_char): Likewise.
11744
11745 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
11746
11747 * font.c (Fopen_font): Compute pixel size correctly.
11748 (font_update_lface): Handle fonts with corrupted size specs,
11749 i.e. non-int and non-float.
11750
11751 * ftfont.c (ftfont_match): Initialize entity variable.
11752 (ftfont_resolve_generic_family): Avoid using uninitialized var.
11753 (ftfont_list_family): Initialize list var earlier.
11754
11755 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
11756
11757 * xterm.c (x_draw_glyph_string): Fall back on
11758 underline_minimum_offset for underline position.
11759
11760 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
11761
11762 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
11763
11764 * character.c (c_string_width): Specify the type for LEN.
11765
11766 2008-12-03 Kenichi Handa <handa@m17n.org>
11767
11768 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
11769 (decode_coding_utf_8): Likewise.
11770 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
11771 (produce_chars): Initialize consumed_chars to 0.
11772
11773 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
11774
11775 * keyboard.c (make_lispy_position): Only use PT if the selected
11776 window is current.
11777
11778 2008-12-02 Andreas Schwab <schwab@suse.de>
11779
11780 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
11781
11782 * doprnt.c (doprnt1): Fix size of charbuf.
11783
11784 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
11785
11786 * keyboard.c (timer_check): Revert last change.
11787
11788 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
11789
11790 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
11791
11792 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
11793
11794 * makefile.w32-in: Update dependencies.
11795 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
11796
11797 2008-12-01 Andreas Schwab <schwab@suse.de>
11798
11799 * font.c (register_font_driver): Use xmalloc.
11800 (font_put_frame_data): Likewise.
11801
11802 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
11803
11804 * xfaces.c (realize_x_face): Make abort condition clearer.
11805
11806 * gtkutil.c (update_frame_tool_bar): Initialize variable.
11807
11808 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
11809
11810 * keyboard.c (timer_check): After a timer runs, ensure that the
11811 selected window's buffer is current.
11812
11813 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
11814
11815 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
11816 It was accidentally restored by the Unicode merge.
11817
11818 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
11819
11820 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
11821
11822 * w32proc.c: Include "coding.h".
11823 (Fw32_short_file_name): Encode filename passed to Windows API.
11824 (Fw32_long_file_name): Encode filename passed to Windows API and
11825 decode back the result. (Bug#1433)
11826
11827 2008-11-29 Kenichi Handa <handa@m17n.org>
11828
11829 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
11830 not before accessing it.
11831
11832 * charset.c (Fdefine_charset_internal): After calculating
11833 min_char, max_char, and fastmap, copy the charset structure again.
11834 (encode_char): Fix the previous change.
11835
11836 2008-11-28 Seiji Zenitani <zenitani@mac.com>
11837
11838 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
11839
11840 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
11841
11842 * nsterm.m (x_set_frame_alpha): New function.
11843
11844 2008-11-27 Eli Zaretskii <eliz@gnu.org>
11845
11846 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
11847
11848 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
11849
11850 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
11851 pointer to check_face_name.
11852
11853 2008-11-27 Kenichi Handa <handa@m17n.org>
11854
11855 * category.h (SET_CATEGORY_SET): Call set_category_set.
11856 (set_category_set): Extern it.
11857
11858 * category.c (hash_get_category_set): New function.
11859 (Fmodify_category_entry): Adjusted for the change of
11860 char_table_ref_and_range. Call hash_get_category_set to get a
11861 category set to store in the table.
11862
11863 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
11864 Funify_charset.
11865
11866 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
11867 (DECODE_CHAR): Check if the decoder vector is ready.
11868 (ENCODE_CHAR): Check if the encoder char-table is ready.
11869 (maybe_unify_char): Extern it.
11870
11871 * charset.c (Vchar_unified_charset_table): Delete it.
11872 (inhibit_load_charset_map): New variable.
11873 (temp_charset_work): New variable.
11874 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
11875 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
11876 New macros.
11877 (load_charset_map): Meaning of control_flag changed. If
11878 inhibit_load_charset_map is nonzero, setup a table in
11879 temp_charset_work.
11880 (load_charset): New argument control_flag.
11881 (map_charset_for_dump): New function.
11882 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
11883 map_charset_for_dump.
11884 (Fdefine_charset_internal): If the charset method is MAP, load
11885 mapping tables by calling load_charset.
11886 (Funify_charset): Don't load a mapping table but directly set
11887 Vchar_unify_table.
11888 (maybe_unify_char): New function.
11889 (decode_char): Don't handle the deleted method MAP_DEFERRED.
11890 Handle the case of inhibit_load_charset_map being nonzero.
11891 (encode_char): Don't handle the deleted method MAP_DEFERRED.
11892 Handle the case of inhibit_load_charset_map being nonzero.
11893 (Fclear_charset_maps): Just free temp_charset_work.
11894 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
11895 variable.
11896
11897 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
11898 change of char_table_ref_and_range.
11899 (char_table_ref_and_range): Change the meaning of argument FROM
11900 and TO. Now the caller must provide initial values for *FROM
11901 and *TO.
11902
11903 * fontset.c (fontset_add): Adjusted for the change of
11904 char_table_ref_and_range.
11905 (fontset_get_font_group): Likewise.
11906 (Ffontset_info): Likewise.
11907
11908 * keymap.c (describe_vector): Adjusted for the change of
11909 char_table_ref_and_range. For char-table, put boundary between
11910 non-ASCII and 8-bit characters.
11911
11912 * print.c (print_object): For bool-vector, delete unnecessary
11913 check of ASCII_BYTE_P.
11914
11915 2008-11-26 Jason Rumney <jasonr@gnu.org>
11916
11917 * w32font.c (w32font_open_internal): Don't include external
11918 leading in font height. (Bug#879)
11919
11920 2008-11-26 Glenn Morris <rgm@gnu.org>
11921
11922 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
11923 redefinition with ifdef. (Bug#1383)
11924
11925 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11926
11927 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
11928
11929 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
11930
11931 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
11932 New EmacsView methods.
11933 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
11934 Fixes bug #1048,1357,1414.
11935
11936 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11937
11938 Fix bug #1362.
11939 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
11940 is not an indexed color.
11941 * nsterm.m (free_indexed_color): Add argument checking.
11942 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
11943
11944 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
11945
11946 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
11947 Document confirm-after-completion value for
11948 minibuffer-completion-confirm.
11949
11950 2008-11-24 Jason Rumney <jasonr@gnu.org>
11951
11952 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
11953 warning.
11954
11955 2008-11-23 Jason Rumney <jasonr@gnu.org>
11956
11957 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
11958 restored before returning.
11959
11960 * w32font.c (check_face_name): New function.
11961 (add_font_entity_to_list): Use it to filter out common substituted
11962 fonts. (Bug#642)
11963
11964 2008-11-22 Martin Rudalics <rudalics@gmx.at>
11965
11966 * buffer.c (Fswitch_to_buffer): Reword and mention new option
11967 confirm-nonexistent-file-or-buffer in doc-string.
11968
11969 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
11970
11971 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
11972 Fix copy/paste typo. Add checks.
11973
11974 2008-11-21 Kenichi Handa <handa@m17n.org>
11975
11976 * coding.c (detect_coding_iso_2022): Reject invalid composition
11977 sequence.
11978 (DECODE_COMPOSITION_START): If the current source is the last
11979 block, and the current composition doesn't end, regard this
11980 sequence as invalid.
11981 (decode_coding_iso_2022): Handle invalid composition sequence.
11982
11983 2008-11-20 Martin Rudalics <rudalics@gmx.at>
11984
11985 * window.c (coordinates_in_window): Don't return
11986 ON_VERTICAL_BORDER for the rightmost position of a mode/header
11987 line when the window is not the rightmost one. (Bug#1372)
11988
11989 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
11990
11991 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
11992
11993 2008-11-15 Eli Zaretskii <eliz@gnu.org>
11994
11995 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
11996 and bright_bg if noninteractive is non-zero.
11997
11998 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11999
12000 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
12001 x_draw_glyph_string_background.
12002
12003 * w32term.c (x_draw_glyph_string): Likewise.
12004
12005 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
12006
12007 * xterm.c (x_draw_glyph_string): Stop drawing the background of
12008 the next glyph string once past the overhang width.
12009
12010 * nsterm.m (ns_draw_glyph_string): Likewise.
12011
12012 * w32term.c (x_draw_glyph_string): Likewise.
12013
12014 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
12015
12016 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
12017 double file close.
12018
12019 2008-11-14 Martin Rudalics <rudalics@gmx.at>
12020
12021 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
12022 dedicated status of window before attempting to display another
12023 buffer in it.
12024
12025 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
12026
12027 * msdos.c (Fmsdos_long_file_names):
12028 (syms_of_msdos) <dos-unsupported-char-glyph>:
12029 * dosfns.c (Fint86): Fix typos in docstrings.
12030
12031 2008-11-14 Eli Zaretskii <eliz@gnu.org>
12032
12033 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
12034
12035 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
12036
12037 * puresize.h (BASE_PURESIZE): Increase to 1260000.
12038
12039 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
12040
12041 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
12042
12043 * frame.h: Negative alpha means "don't touch".
12044
12045 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
12046
12047 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
12048
12049 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
12050
12051 * hftctl.c:
12052 * chpdef.h:
12053 * acldef.h: Remove files used only for systems no longer supported.
12054
12055 * Makefile.in: Fix .o alphabetical ordering.
12056 (hftctl.o): Remove dependency, file removed.
12057 (keymap.o, print.o): Depend on charset.h.
12058
12059 2008-11-10 Kenichi Handa <handa@m17n.org>
12060
12061 * character.c (Fget_byte): Fix and make it faster for unibyte target.
12062
12063 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
12064
12065 * dired.c (file_name_completion): If completion_ignore_case is
12066 enabled, ignore case when checking completion-regexp-list.
12067
12068 2008-11-08 Eli Zaretskii <eliz@gnu.org>
12069
12070 * vm-limit.c (get_lim_data): Fix last change.
12071
12072 2008-11-08 Kenichi Handa <handa@m17n.org>
12073
12074 * character.c (Fget_byte): New function.
12075 (syms_of_character): Defsubr Fget_byte.
12076
12077 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
12078
12079 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
12080 cursor position is valid after scrolling.
12081
12082 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
12083
12084 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
12085
12086 2008-11-06 Glenn Morris <rgm@gnu.org>
12087
12088 * xterm.c (handle_one_xevent): Don't let popup menus cause
12089 mouse-autoselect-window related window switching. (Bug#1261)
12090
12091 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
12092
12093 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
12094
12095 2008-11-04 Andreas Schwab <schwab@suse.de>
12096
12097 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
12098
12099 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
12100
12101 * xfns.c (Fx_wm_set_size_hint): New function.
12102
12103 2008-11-03 Martin Rudalics <rudalics@gmx.at>
12104
12105 * textprop.c (Fprevious_single_char_property_change): Return 0
12106 when there's no change in a string. (Bug#1301)
12107
12108 2008-11-02 Martin Rudalics <rudalics@gmx.at>
12109
12110 * frame.c (do_switch_frame): New argument NORECORD passed to
12111 Fselect_window.
12112 (Fselect_frame): New argument NORECORD passed to
12113 do_switch_frame.
12114 (Fset_frame_selected_window): New argument NORECORD passed to
12115 Fselect_frame.
12116 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
12117 in call of do_switch_frame.
12118 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
12119 Handle NORECORD argument in call of Fselect_frame.
12120 * lisp.h (do_switch_frame, Fselect_frame)
12121 (Fset_frame_selected_window): Adjust declarations.
12122 * window.c (select_frame_norecord): New function.
12123 (run_window_configuration_change_hook): Use it and call
12124 Fselect_frame with NORECORD set.
12125 (Fselect_window): Pass NORECORD to Fselect_frame.
12126 (Fset_window_configuration): Handle NORECORD argument in call of
12127 do_switch_frame.
12128 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
12129 Fset_frame_selected_window.
12130 * keyboard.c (command_loop_1): Handle NORECORD in call of
12131 Fselect_frame (currently ifdefd).
12132
12133 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
12134
12135 * emacs.c (USAGE2): Untabify.
12136
12137 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
12138
12139 * composite.c (fill_gstring_header): Fix copy/paste typo.
12140
12141 2008-10-31 Martin Rudalics <rudalics@gmx.at>
12142
12143 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
12144 (Fother_window): Rename argument and rewrite doc-string.
12145 (select_window_norecord): Fix return value. (Bug#1276)
12146
12147 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
12148
12149 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
12150 new frames overriding foreground for tooltips. Based on similar patch
12151 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
12152
12153 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
12154
12155 * emacs.c (Fdaemon_initialized): Initialize nfd.
12156
12157 2008-10-29 Martin Rudalics <rudalics@gmx.at>
12158
12159 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
12160 (Fwindow_text_height): Clarify doc-strings.
12161 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
12162 doc-string of window-scroll-functions.
12163
12164 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
12165
12166 * category.c (syms_of_category): Fix typo in docstring.
12167
12168 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
12169
12170 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
12171 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
12172 Fix typos in docstrings.
12173
12174 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
12175
12176 * emacs.c (daemon_pipe): Make non-static.
12177 (IS_DAEMON): Move definition ...
12178 * lisp.h (IS_DAEMON): ... here.
12179 (daemon_pipe): Declare.
12180 (is_daemon): Remove.
12181 * dispnew.c (init_display): Use IS_DAEMON.
12182
12183 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
12184
12185 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
12186 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
12187
12188 * emacs.c (is_daemon): Remove.
12189 (main): Don't set is_daemon.
12190 (IS_DAEMON): New macro.
12191 (Fdaemonp, Fdaemon_initialized): Use it.
12192 (Fdaemon_initialized): Write a char into the pipe to make sure the
12193 parent exits.
12194 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
12195
12196 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
12197
12198 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
12199 over-sized glyph, draw it with the default glyph width.
12200
12201 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
12202 glyph, draw it with the default glyph width.
12203
12204 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
12205 glyph, draw it with the default glyph width.
12206
12207 * xdisp.c (try_scrolling): When computing the distance from the
12208 scroll margin to PT, try moving some distance past the window
12209 bottom before giving up.
12210
12211 2008-10-27 Martin Rudalics <rudalics@gmx.at>
12212
12213 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
12214 (Fset_window_buffer): Explain in doc-string that a window can be
12215 "strongly" dedicated to its buffer.
12216
12217 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
12218
12219 * emacs.c (daemon_name): New variable.
12220 (main): Deal with --daemon=SERVER_NAME.
12221 (Fdaemonp): Return a name if one was passed to --daemon.
12222
12223 2008-10-26 Romain Francoise <romain@orebokech.com>
12224
12225 * emacs.c (daemon_pipe): New variable.
12226 (main): Create a pipe before forking, make the parent exit only after
12227 the child has closed its end of the pipe. Move closing the
12228 descriptors ...
12229 (Fdaemon_initialized): ... here. New function.
12230
12231 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
12232
12233 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
12234 the previous unoptimized table.
12235
12236 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
12237 the distinction between non-nil and non-t value of `dedicated'.
12238
12239 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
12240
12241 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
12242 read_char_minibuf_menu_text is large enough to hold the menu string.
12243
12244 2008-10-25 Martin Rudalics <rudalics@gmx.at>
12245
12246 * window.c (Fget_buffer_window, Fdelete_windows_on)
12247 (Freplace_buffer_in_windows): Make buffer argument optional and
12248 rename to buffer_or_name.
12249
12250 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
12251
12252 * xdisp.c (handle_single_display_spec, handle_display_prop):
12253 Undo 2005-05-16 change.
12254 (handle_stop): Pop iterator if it's loaded with an empty string.
12255 (get_overlay_strings_1): Don't save iterator if it's loaded with
12256 an empty string (bug#1201).
12257
12258 2008-10-24 Kenichi Handa <handa@m17n.org>
12259
12260 * ftfont.c (ftfont_otf_features): Fix previous change.
12261 (ftfont_otf_capability): Check FeatureList.FeatureCount before
12262 calling ftfont_otf_features.
12263
12264 2008-10-24 Kenichi Handa <handa@m17n.org>
12265
12266 * font.c (font_match_p): Fix for the case that a vector of
12267 characters is in script-representative-chars.
12268
12269 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
12270
12271 * dbusbind.c (xd_in_read_queued_messages): New variable.
12272 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
12273 (xd_read_queued_messages): Catch Qdbus_error from the macros.
12274 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
12275 macro. (Bug#1186)
12276
12277 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
12278
12279 * s/sol2-10.h: New file.
12280
12281 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
12282
12283 * xdisp.c (fill_glyph_string): Fix typo in source (though the
12284 poor beast has survived 9+ years and the jump from xterm.c!).
12285
12286 2008-10-23 Martin Rudalics <rudalics@gmx.at>
12287
12288 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
12289 Reword doc-string.
12290 (Fbury_buffer): In doc-string say what happens to the buffer's window.
12291
12292 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
12293
12294 * character.c (syms_of_character) <script-representative-chars>:
12295 <unicode-category-table>: Doc fixes.
12296
12297 2008-10-23 Noah Friedman <friedman@splode.com>
12298
12299 * coding.c (make_conversion_work_buffer): Check that
12300 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
12301 Fget_buffer_create.
12302
12303 2008-10-23 Kenichi Handa <handa@m17n.org>
12304
12305 * font.c (font_add_log): Check the values of extra properties.
12306
12307 2008-10-22 Martin Rudalics <rudalics@gmx.at>
12308
12309 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
12310 Reword doc-string.
12311 (Fset_window_parameter): Use NILP.
12312 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
12313 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12314
12315 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
12316
12317 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
12318
12319 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12320
12321 * nsfns.m (ns_appkit_version): New function.
12322 (x-server-version): Use it.
12323 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
12324 (x-server-vendor): Don't check_ns().
12325
12326 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
12327
12328 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
12329
12330 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
12331 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
12332
12333 2008-10-22 Kenichi Handa <handa@m17n.org>
12334
12335 * syntax.c (scan_words): Call word_boundary_p instead of comparing
12336 scripts.
12337
12338 * category.c (word_boundary_p): Check scripts instead of charset.
12339 Handle nil value in word-separating-categories and
12340 word-combining-categories.
12341 (syms_of_category): Fix docstrings of word-separating-categories
12342 and word-combining-categories.
12343
12344 2008-10-21 Eli Zaretskii <eliz@gnu.org>
12345
12346 * coding.c (Fencode_coding_region, Fdecode_coding_region)
12347 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
12348
12349 2008-10-21 Martin Rudalics <rudalics@gmx.at>
12350
12351 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
12352 Rename arg "buffer" to "buffer_or_name".
12353 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
12354 it optional.
12355 (no_switch_window): Remove since the return value is not used.
12356 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
12357 Consider window as dedicated when Fwindow_dedicated_p returns a
12358 non-nil value.
12359 * lisp.h: Remove prototype for no_switch_window.
12360
12361 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
12362
12363 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
12364 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
12365
12366 2008-10-21 Kenichi Handa <handa@m17n.org>
12367
12368 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
12369 check Vlatin_extra_code_table.
12370
12371 2008-10-20 Eli Zaretskii <eliz@gnu.org>
12372
12373 * fileio.c (Fset_file_modes): Doc fix.
12374
12375 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
12376
12377 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
12378 in arrays.
12379
12380 2008-10-19 Martin Rudalics <rudalics@gmx.at>
12381
12382 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
12383 Mention kill-buffer in doc-string.
12384 (Fset_window_buffer): Reinsert tem check removed in last commit.
12385 (Fenlarge_window, Fshrink_window): Have argument names and
12386 doc-string follow Elisp manual more closely.
12387
12388 2008-10-18 Eli Zaretskii <eliz@gnu.org>
12389
12390 * fileio.c (Fset_file_modes): Doc fix.
12391
12392 2008-10-18 Martin Rudalics <rudalics@gmx.at>
12393
12394 * window.c (Fwindow_width, Fset_window_start)
12395 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
12396 (Fdelete_windows_on, Freplace_buffer_in_windows):
12397 Make doc-strings follow code and Elisp manual more closely.
12398 (Fwindow_dedicated_p): Make window argument optional.
12399 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
12400 (Fset_window_buffer): Respect any non-nil dedicated value for
12401 window. Rename "buffer" argument to "buffer_or_name".
12402
12403 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
12404
12405 * m/sh3.h: New file, machine description for SuperH.
12406
12407 2008-10-17 Martin Rudalics <rudalics@gmx.at>
12408
12409 * window.c (Fsplit_window): Rename arg horflag to horizontal.
12410
12411 2008-10-17 Kenichi Handa <handa@m17n.org>
12412
12413 * ftfont.c (ftfont_otf_features): Fix indexing
12414 gsub_gpos->FeatureList.Feature. Check the validity of indices.
12415
12416 2008-10-16 Magnus Henoch <mange@freemail.hu>
12417
12418 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
12419 (Fdbus_call_method_asynchronously): Ditto.
12420 This change makes C-h f display the argument list.
12421
12422 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
12423
12424 * fileio.c (Fexpand_file_name): Doc fix.
12425
12426 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
12427 of :foreground and :background equivalent to unspecified (20.x
12428 compatibility).
12429
12430 2008-10-15 Eli Zaretskii <eliz@gnu.org>
12431
12432 * buffer.c (syms_of_buffer): Doc fix.
12433
12434 2008-10-14 Kenichi Handa <handa@m17n.org>
12435
12436 * font.c (font_clear_prop): When clearing font width, clear the
12437 average width field too.
12438
12439 2008-10-12 Andreas Schwab <schwab@suse.de>
12440
12441 * ftfont.c (ftfont_shape_by_flt): Make static.
12442 * ftfont.h (ftfont_shape_by_flt): Don't declare.
12443
12444 * font.c: Don't include <m17n-flt.h>.
12445
12446 2008-10-10 Eli Zaretskii <eliz@gnu.org>
12447
12448 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
12449
12450 2008-10-09 Eli Zaretskii <eliz@gnu.org>
12451
12452 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
12453 away code.
12454
12455 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
12456
12457 * dispnew.c (update_text_area): Avoid looping due to large glyph
12458 overhangs (bug#1070).
12459
12460 2008-10-09 Kenichi Handa <handa@m17n.org>
12461
12462 * fontset.c (face_for_char): If face->fontset is negative, just
12463 return ascii_face.
12464
12465 * font.c (font_delete_unmatched): Fix previous change.
12466 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
12467
12468 2008-10-09 Martin Rudalics <rudalics@gmx.at>
12469
12470 * frame.c (Fraise_frame): On text-only terminals select frame in
12471 order to make it visible. (Bug#1061)
12472
12473 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
12474
12475 * fontset.c (fontset_find_font): Check frame validity.
12476
12477 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
12478
12479 * gtkutil.c (xg_display_open): Reset default display if none exists.
12480 (xg_display_close): Allow Emacs to close all displays (bug#985).
12481
12482 2008-10-06 Andreas Schwab <schwab@suse.de>
12483
12484 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
12485
12486 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
12487
12488 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
12489
12490 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
12491
12492 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
12493 during initialization.
12494
12495 2008-10-04 Eli Zaretskii <eliz@gnu.org>
12496
12497 * xdisp.c (redisplay_internal): If frame switched, redisplay the
12498 whole thing on MSDOS frames as well as on a TTY.
12499
12500 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
12501 well as for TTY.
12502 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
12503 well as on a TTY.
12504
12505 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
12506 as well as for TTY.
12507
12508 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
12509
12510 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
12511 MSDOS frames as well.
12512
12513 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
12514
12515 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
12516 correct arguments.
12517 * menu.c (find_and_return_menu_selection): Add cast.
12518
12519 2008-10-03 Glenn Morris <rgm@gnu.org>
12520
12521 * emacs.c (USAGE1): Add --daemon.
12522
12523 2008-10-02 Eli Zaretskii <eliz@gnu.org>
12524
12525 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
12526 100, so it's in percents as advertised.
12527
12528 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
12529
12530 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
12531 (ns_output.current_cursor, ns_output.desired_cursor)
12532 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
12533 (FRAME_NEW_CURSOR_COLOR): Remove.
12534
12535 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
12536 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
12537 enumeration (HOLLOW_BOX_CURSOR, etc.).
12538
12539 * nsterm.m (ns_frame_rehighlight): Remove commented code.
12540 (draw_window_cursor): Simplify code.
12541 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
12542 Don't change cursor type. In latter, call rehighlight instead of doing
12543 updates manually.
12544 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
12545 Use core Emacs cursor types.
12546
12547 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
12548
12549 2008-10-02 Martin Rudalics <rudalics@gmx.at>
12550
12551 * process.c (Faccept_process_output): Fix doc-string.
12552
12553 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
12554
12555 * gmalloc.c (__sbrk): Also define for uClibc.
12556
12557 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
12558 for uClibc.
12559
12560 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12561
12562 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
12563 styles.
12564 (nsfont_open): Reenable the cache.
12565
12566 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12567
12568 * font.c (font_matching_entity): Reflect ATTRS in font selection.
12569 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
12570
12571 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
12572
12573 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
12574 a suspended terminal.
12575
12576 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
12577
12578 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
12579
12580 2008-09-30 Eli Zaretskii <eliz@gnu.org>
12581
12582 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
12583
12584 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
12585
12586 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
12587 in a continued line coincides with a line beginning.
12588
12589 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
12590
12591 * nsfont.m (nsfont_trait_distance): Fix bug.
12592 (nsfont_list): Return a list rather than a vector (syncs with Handa
12593 changes of 2008-05-14).
12594 (nsfont_open): Improve logging.
12595
12596 2008-09-29 Andreas Schwab <schwab@suse.de>
12597
12598 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
12599
12600 2008-09-28 Martin Rudalics <rudalics@gmx.at>
12601
12602 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
12603 name as char-resolve-modifiers.
12604 Reported by: Markus Triska <markus.triska@gmx.at>
12605
12606 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
12607
12608 * dispnew.c (init_display): Return earlier when running as a daemon.
12609
12610 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12611
12612 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
12613
12614 2008-09-27 Eli Zaretskii <eliz@gnu.org>
12615
12616 * composite.c (Fcomposition_get_gstring)
12617 (Fcompose_region_internal, Fcompose_string_internal)
12618 (Ffind_composition_internal): Doc fix.
12619 (syms_of_composite) <compose-chars-after-function>: Doc fix.
12620 (syms_of_composite) <auto-composition-function>: Doc fix.
12621 (syms_of_composite) <composition-function-table>: Doc fix.
12622
12623 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
12624
12625 * search.c (wordify): New argument for lax word-ends.
12626 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
12627
12628 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
12629
12630 * lisp.h (is_daemon): Declare.
12631 * dispnew.c (init_display): Do not try to initialize the terminal
12632 when running as a daemon.
12633
12634 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
12635
12636 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
12637 x_display_pixel_height.
12638
12639 2008-09-22 Martin Rudalics <rudalics@gmx.at>
12640
12641 * undo.c (record_point): Don't call Fundo_boundary for first
12642 change. (Bug#731)
12643
12644 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
12645
12646 * emacs.c (Fdaemonp): Doc fix.
12647
12648 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
12649
12650 * emacs.c (main): Place #ifdef in the proper place.
12651
12652 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
12653
12654 * emacs.c (standard_args): Add --daemon.
12655 (main): Disconnect from the terminal when --daemon is passed.
12656 (is_daemon): New variable.
12657 (Fdaemonp): New function.
12658 (syms_of_emacs): Defsubr it.
12659
12660 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
12661
12662 * xdisp.c (get_next_display_element): Handle string display
12663 correctly when checking for the end of a box run.
12664
12665 2008-09-20 Glenn Morris <rgm@gnu.org>
12666
12667 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
12668 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
12669 (Frename_file): Avoid copying to trash if a rename involves
12670 a delete. (Bug#964).
12671
12672 2008-09-20 Eli Zaretskii <eliz@gnu.org>
12673
12674 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
12675 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
12676 frames as well as termcap frames.
12677 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
12678 get_named_tty.
12679
12680 2008-09-19 Eli Zaretskii <eliz@gnu.org>
12681
12682 * process.c (procfs_system_process_attributes): Fix cmdline in
12683 case /proc/PID/cmdline is empty.
12684
12685 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
12686 x_display_pixel_height.
12687
12688 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
12689
12690 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
12691
12692 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
12693 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
12694
12695 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
12696
12697 * dispextern.h (struct it): Move line_wrap away from the middle of
12698 bitfields. Move voffset in struct iterator_stack_entry after the
12699 bitfields. Move tab_width near after another short.
12700
12701 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
12702
12703 * frame.h (struct frame): Move alpha from the middle of bitfields.
12704
12705 * window.h (struct window): Move frozen_window_start_p after the
12706 rest of the bitfields to reduce padding.
12707
12708 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
12709
12710 * xterm.h (x_display_info): Remove `height' and `width' members.
12711
12712 * nsterm.h (ns_display_info): Remove `height' and `width' members.
12713
12714 * w32term.h (w32_display_info): Remove `height', `width',
12715 `height_in', and `width_in' members.
12716
12717 * xterm.c (x_display_pixel_height, x_display_pixel_width):
12718 New functions.
12719 (x_calc_absolute_position): Use them.
12720 (x_term_init): Omit removed `height' and `width' members.
12721
12722 * w32term.c (x_display_pixel_height, x_display_pixel_width):
12723 New functions.
12724 (w32_read_socket, x_calc_absolute_position): Use them.
12725 (w32_initialize_display_info, w32_term_init): Omit removed members
12726 of w32_display_info.
12727
12728 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
12729 New functions.
12730 (ns_initialize_display_info): Omit removed members of ns_display_info.
12731
12732 * xterm.c (x_display_pixel_height, x_display_pixel_width):
12733 New functions.
12734 (x_calc_absolute_position): Use them.
12735 (x_term_init): Omit removed `height' and `width' members.
12736
12737 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
12738 (compute_tip_xy):
12739 * frame.c (x_fullscreen_adjust):
12740 * xmenu.c (menu_position_func): Use x_display_pixel_height and
12741 x_display_pixel_width.
12742
12743 2008-09-18 Kenichi Handa <handa@m17n.org>
12744
12745 * composite.c (fill_gstring_header): Don't check FROM and TO here.
12746 (composition_compute_stop_pos): Fix handling of static composition.
12747 (Fcomposition_get_gstring): Check FROM and TO at first.
12748
12749 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
12750
12751 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
12752 mixup (YAILOM).
12753
12754 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
12755
12756 * indent.c (Fvertical_motion): Use position reported by iterator
12757 instead of PT for determining screen motion (bug#943).
12758
12759 2008-09-17 Romain Francoise <romain@orebokech.com>
12760
12761 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
12762
12763 2008-09-17 Kenichi Handa <handa@m17n.org>
12764
12765 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
12766
12767 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
12768 if necessary.
12769
12770 2008-09-16 Kenichi Handa <handa@m17n.org>
12771
12772 * coding.c (make_conversion_work_buffer): Avoid calling
12773 Fget_buffer_create if it is not necessary.
12774
12775 2008-09-15 Martin Rudalics <rudalics@gmx.at>
12776
12777 * window.c (Fselect_window): Don't update window_select_count and
12778 use_time when norecord is not nil.
12779
12780 2008-09-14 Kenichi Handa <handa@m17n.org>
12781
12782 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
12783 specpdl_ptr.
12784
12785 2008-09-12 Kenichi Handa <handa@m17n.org>
12786
12787 * indent.c (scan_for_column): Don't handle automatic composition
12788 if the current buffer is not associated with a window.
12789
12790 * composite.c (composition_reseat_it): If the current buffer is
12791 not associated with a window, ignore the automatic composition.
12792 (find_automatic_composition): Likewise.
12793
12794 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
12795
12796 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
12797 (Fgpm_mouse_stop): Use it.
12798 * termhooks.h (close_gpm): Declare.
12799 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
12800 connection if Gpm_GetEvent fails.
12801
12802 * window.c (set_window_buffer): Always preserve current-buffer.
12803
12804 2008-09-12 Glenn Morris <rgm@gnu.org>
12805
12806 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
12807
12808 2008-09-11 Glenn Morris <rgm@gnu.org>
12809
12810 * charset.c (charset-map-path): Doc fix.
12811
12812 2008-09-10 Kenichi Handa <handa@m17n.org>
12813
12814 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
12815
12816 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
12817 compose a grapheme cluster with the preceding base glyph.
12818
12819 * composite.c (composition_compute_stop_pos): Fix previous change.
12820 Reset cmp_it->id to -1 at first.
12821
12822 2008-09-10 Glenn Morris <rgm@gnu.org>
12823
12824 * Makefile.in (character.o, chartab.o): Fix config.h typo.
12825
12826 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
12827
12828 * keyboard.c (read_key_sequence): Reapply translation maps when
12829 switching keyboards.
12830
12831 2008-09-09 Kenichi Handa <handa@m17n.org>
12832
12833 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
12834 characters.
12835
12836 * composite.c (FORWARD_CHAR): Fix calculation
12837 of (POSITION).pos_byte.
12838 (composition_compute_stop_pos): Limit the search of composition to
12839 at most 500 characters ahead. If we reach the limit or find a
12840 newline, set cmp_it->ch to -2 and return 0.
12841 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
12842
12843 2008-09-08 Kenichi Handa <handa@m17n.org>
12844
12845 * indent.c (Fvertical_motion): Be sure to set
12846 it_overshoot_expected if it.cmp_it.id is non-negative.
12847
12848 2008-09-07 Andreas Schwab <schwab@suse.de>
12849
12850 * callproc.c (Fcall_process): Don't hold references to string data
12851 across garbage collection. Move initialisation of new_argv down
12852 to avoid compiler bug.
12853
12854 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
12855
12856 * process.c (Fsystem_process_attributes): Doc fix.
12857
12858 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
12859
12860 * callproc.c (Fcall_process): Canonicalize current directory name.
12861
12862 * xdisp.c (move_it_to): When moving by vpos, ensure that the
12863 iterator advances to the next line if the current line ends in a
12864 continued tab.
12865
12866 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
12867
12868 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
12869 member to point to cmp_from.
12870
12871 * xdisp.c: Doc fix for references to gidx data member.
12872
12873 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
12874
12875 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
12876
12877 2008-09-07 Kenichi Handa <handa@m17n.org>
12878
12879 * composite.c (FORWARD_CHAR): Check STOP after
12880 incrementing (POSITION).pos.
12881
12882 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
12883
12884 * process.c (Fsystem_process_attributes): Doc fix.
12885
12886 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
12887
12888 * keyboard.c (Ftop_level): Doc fix.
12889
12890 2008-09-06 Eli Zaretskii <eliz@gnu.org>
12891
12892 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
12893 minibuffer, don't let lower part of menu invade the echo area.
12894
12895 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
12896 "char *q" to access menu text and advance through it. Revert the
12897 change that displayed ">" instead of ASCII character 0x10.
12898
12899 2008-09-05 Eli Zaretskii <eliz@gnu.org>
12900
12901 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
12902 toggle boxes and radio buttons on MS-DOS as well.
12903
12904 2008-09-05 Kenichi Handa <handa@m17n.org>
12905
12906 * composite.c (autocmp_chars): Check lookback count.
12907 (composition_compute_stop_pos): Set cmp_it->lookback.
12908 (composition_reseat_it): Check lookback count.
12909 (struct position_record): New struct.
12910 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
12911 (find_automatic_composition): New function.
12912 (composition_adjust_point): Use find_automatic_composition.
12913
12914 * dispextern.h (struct composition_it): New member lookback.
12915
12916 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
12917
12918 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
12919 if moving by a single line.
12920
12921 2008-09-02 Andreas Schwab <schwab@suse.de>
12922
12923 * xterm.c (x_delete_display): Fix merge error.
12924
12925 * fileio.c (Fexpand_file_name): Remove unused variables.
12926
12927 2008-09-02 Eli Zaretskii <eliz@gnu.org>
12928
12929 * fileio.c (Fexpand_file_name): Copy argument `name' into local
12930 storage on all platforms, not just on DOS_NT.
12931
12932 2008-09-02 Jason Rumney <jasonr@gnu.org>
12933
12934 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
12935 Ensure mouse is not grabbed after menu is finished.
12936
12937 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
12938
12939 * xfaces.c (Finternal_set_alternative_font_family_alist)
12940 (Finternal_set_alternative_font_registry_alist): Properly copy
12941 entire alist structure.
12942
12943 2008-09-01 Kenichi Handa <handa@m17n.org>
12944
12945 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
12946 representative chars of the script is a vector.
12947 (ftfont_list): Handle the case where the representative chars of
12948 the script is a vector.
12949
12950 * character.c (syms_of_character): Docstring of
12951 script-representative-chars fixed.
12952
12953 2008-08-31 Eli Zaretskii <eliz@gnu.org>
12954
12955 * msdos.c (BUILD_CHAR_GLYPH): New macro.
12956 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
12957 the menu. Allocate larger buffer for `text', to account for
12958 possible ^C characters.
12959
12960 2008-08-31 Martin Rudalics <rudalics@gmx.at>
12961
12962 * xdisp.c (prepare_menu_bars): Don't call
12963 Vwindow_size_change_functions with arg Qt.
12964
12965 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
12966
12967 * font.h (font_range):
12968 * fileio.c (report_file_error):
12969 * composite.c (composition_update_it): Yet another int/Lisp_Object
12970 mixup (YAILOM).
12971
12972 2008-08-30 Glenn Morris <rgm@gnu.org>
12973
12974 * data.c (Fmake_variable_frame_local): Doc fix.
12975
12976 * frame.c (Fmodify_frame_parameters): Doc fix.
12977
12978 2008-08-30 Eli Zaretskii <eliz@gnu.org>
12979
12980 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
12981 needed by GetTokenInformation.
12982 (w32_system_process_attributes): Check return values of all system
12983 APIs.
12984
12985 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
12986 only when the state changes.
12987 (IT_update_begin, IT_update_end): Add termscript trace.
12988
12989 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
12990 clipboard is unavailable. Set dst to NULL if it doesn't point to
12991 malloc'ed data.
12992 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
12993 passing random values to xfree.
12994
12995 * dispnew.c (init_display): Set `tty's association in frame's
12996 parameters alist to the name of the terminal device, if that is known.
12997
12998 2008-08-29 Jason Rumney <jasonr@gnu.org>
12999
13000 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
13001
13002 2008-08-29 Eli Zaretskii <eliz@gnu.org>
13003
13004 * composite.c (fill_gstring_body): Avoid compiler warnings.
13005
13006 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
13007 LGLYPH_SET_CODE to avoid compiler warnings.
13008
13009 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
13010
13011 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
13012
13013 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
13014 LGLYPH_SET_CODE.
13015
13016 2008-08-29 Kenichi Handa <handa@m17n.org>
13017
13018 * fileio.c (report_file_error): Don't downcase the first character
13019 of errstring if it is still unibyte.
13020
13021 2008-08-29 Kenichi Handa <handa@m17n.org>
13022
13023 These changes are to re-implement the automatic composition so
13024 that it doesn't use text properties.
13025
13026 * Makefile.in (ftfont.o): Depend on composite.h.
13027 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
13028
13029 * character.h (Vunicode_category_table): Extern it.
13030
13031 * character.c (Vunicode_category_table): New variable.
13032 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
13033
13034 * chartab.c (optimize_sub_char_table): Perform more greedy
13035 optimization.
13036
13037 * composite.h (enum composition_method):
13038 Delete COMPOSITION_WITH_GLYPH_STRING.
13039 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
13040 (Vcomposition_function_table): Extern it.
13041 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
13042 (composition_gstring_put_cache, composition_gstring_from_id)
13043 (composition_gstring_p, composition_gstring_width)
13044 (composition_compute_stop_pos, composition_reseat_it)
13045 (composition_update_it, composition_adjust_point): Extern them.
13046 (Fcomposition_get_gstring): EXFUN it.
13047
13048 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
13049 (Vcomposition_function_table)
13050 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
13051 (gstring_hash_table, gstring_work, gstring_work_headers):
13052 New variables.
13053 (gstring_lookup_cache, composition_gstring_put_cache)
13054 (composition_gstring_from_id, composition_gstring_p)
13055 (composition_gstring_width, fill_gstring_header)
13056 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
13057 (composition_reseat_it, composition_update_it)
13058 (composition_adjust_point, Fcomposition_get_gstring): New functions.
13059 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
13060 and gstring_work_headers. DEFVAR_LISP composition-function-table.
13061 Defsubr composition_get_gstring.
13062
13063 * dispextern.h (struct glyph): New union u.cmp. Delete the member
13064 cmp_id.
13065 (struct glyph_string): Delete the member gidx. New members
13066 cmp_id, cmp_from, and cmp_to.
13067 (enum it_method): Delete GET_FROM_COMPOSITION.
13068 (struct composition_it): New struct.
13069 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
13070 Delete c, len, cmp_id, cmp_len in u.comp.
13071
13072 * font.h (enum lgstring_indices): Delete it.
13073 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
13074 (enum lglyph_indices): Likewise.
13075 (font_range): Adjust extern.
13076 (font_fill_lglyph_metrics): Extern it.
13077
13078 * font.c (QCf): New variable.
13079 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
13080 (font_prepare_composition): Delete this function.
13081 (font_range): Type and arguments changed.
13082 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
13083 (font_fill_lglyph_metrics): New function.
13084 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
13085 (syms_of_font): DEFSYM QCf. Delete defsubr for
13086 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
13087 Defsubr Sfont_shape_gstring.
13088
13089 * fontset.h (font_for_char): Extern it.
13090
13091 * fontset.c (font_for_char): New function.
13092
13093 * ftfont.c: Include composite.h.
13094 (ftfont_resolve_generic_family): Add langset "en" to pattern.
13095 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
13096
13097 * indent.c: Include composite.h and dispextern.h.
13098 (check_composition): Delete this function.
13099 (scan_for_column): Handle composition by
13100 composition_compute_stop_pos, composition_reseat_it, and
13101 composition_update_it.
13102 (compute_motion): Likewise.
13103 (Fvertical_motion): Fix checking of composition.
13104
13105 * keyboard.c (adjust_point_for_property): Check composition by
13106 composition_adjust_point.
13107
13108 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
13109 struct glyph_string.
13110
13111 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
13112 (append_composite_glyph): Adjust for the change of struct it and
13113 struct glyph.
13114 (produce_composite_glyph): Likewise.
13115
13116 * w32term.c (x_draw_composite_glyph_string_foreground):
13117 Adjust for the change of struct glyph_string.
13118 (x_draw_glyph_string): Likewise.
13119
13120 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
13121 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
13122
13123 * xdisp.c: Include font.h.
13124 (it_props): Delete the entry for Qauto_composed.
13125 (init_iterator): Initialize it->cmp_it.id to -1.
13126 (compute_stop_pos): Call composition_compute_stop_pos.
13127 (face_before_or_after_it_pos): Adjust for the change of struct it.
13128 (handle_auto_composed_prop): Delete it.
13129 (handle_composition_prop): Handle only static composition.
13130 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
13131 from xassert. Initialize it->cmp_it.stop_pos.
13132 (push_it): Adjust for the change of struct it.
13133 (pop_it): Likewise.
13134 (get_next_element): Delete next_element_from_composition.
13135 (CHAR_COMPOSED_P): New macro.
13136 (get_next_display_element): For automatic composition, get a face
13137 from the font in the glyph-string.
13138 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
13139 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
13140 (next_element_from_string): Check if the character at the current
13141 position is composed by CHAR_COMPOSED_P.
13142 (next_element_from_buffer): Likewise.
13143 (next_element_from_composition): Adjust for the change of struct it.
13144 Update it->cmp_it.
13145 (dump_glyph): Adjust for the change of struct glyph.
13146 (fill_composite_glyph_string): Adjust for the change of struct
13147 it and struct glyph. Don't handle automatic composition here.
13148 (fill_gstring_glyph_string): New function.
13149 (x_get_glyph_overhangs): Handle automatic composition.
13150 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
13151 (BUILD_GSTRING_GLYPH_STRING): New macro.
13152 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
13153 automatic composition.
13154 (append_composite_glyph): Adjust for the change of struct it and
13155 struct glyph.
13156 (x_produce_glyphs): Adjust for the change of struct it.
13157
13158 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13159 the change of struct glyph_string.
13160 (x_draw_glyph_string): Likewise.
13161
13162 2008-08-29 Glenn Morris <rgm@gnu.org>
13163
13164 * buffer.c (word-wrap): Doc fix.
13165 * xdisp.c (truncate-partial-width-windows): Doc fix.
13166 Increase default to 50.
13167
13168 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
13169
13170 * xdisp.c (update_tool_bar_unwind): New function.
13171 (update_tool_bar): Temporarily set selected frame before building
13172 tool-bar items.
13173
13174 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
13175
13176 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
13177 snprintf, respectively.
13178 (xd_append_arg): Convert strings with Fstring_make_unibyte.
13179
13180 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
13181
13182 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
13183 LDFLAGS to GNUstep CC invocation.
13184
13185 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
13186
13187 * indent.c (Fvertical_motion): Revert last change. Handle the
13188 general case where we are moving forward, and PT spans multiple
13189 screen lines.
13190
13191 * eval.c (find_handler_clause): Temporarily increase
13192 max-lisp-eval-depth while printing the backtrace buffer, to
13193 guarantee that help-mode code can run.
13194
13195 2008-08-27 Eli Zaretskii <eliz@gnu.org>
13196
13197 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
13198 colors under -rv.
13199 (IT_set_frame_parameters): Don't swap foreground and background
13200 colors if `(reverse . t)' is present in the frame properties.
13201 (internal_terminal_init): Call init_frame_faces only for the
13202 initial frame.
13203
13204 2008-08-27 Andreas Schwab <schwab@suse.de>
13205
13206 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
13207
13208 2008-08-27 Andreas Schwab <schwab@suse.de>
13209
13210 * search.c (search_buffer): Set char_base to zero only at the end.
13211
13212 2008-08-27 Kenichi Handa <handa@m17n.org>
13213
13214 * fileio.c (report_file_error): Fix handling of multibyte error string.
13215
13216 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
13217
13218 * xterm.c (x_term_init): Temporarily hide the partially
13219 initialized terminal while calling vendor-specific-keysyms.
13220
13221 2008-08-26 Eli Zaretskii <eliz@gnu.org>
13222
13223 * msdos.c (internal_terminal_init): Most initializations done only
13224 once, especially initial_screen_colors[] and termscript open.
13225
13226 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
13227
13228 * eval.c (Fcondition_case): Doc fix.
13229
13230 * widgetprv.h (EmacsFramePart): Change font member to the new font
13231 struct.
13232
13233 * widget.c: Include character.h and font.h for XSETFONT.
13234 (setup_frame_gcs): Compute X font id from font struct, just once.
13235
13236 2008-08-26 Eli Zaretskii <eliz@gnu.org>
13237
13238 * term.c (get_named_tty): Fix last change.
13239
13240 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
13241
13242 * indent.c (Fvertical_motion): If moving forward starting from a
13243 multi-line string, move the iterator to the last line of that string.
13244
13245 2008-08-25 Eli Zaretskii <eliz@gnu.org>
13246
13247 * frame.c (do_switch_frame): Mark previously displayed frame as
13248 obscured for FRAME_MSDOS_P frames as well.
13249
13250 2008-08-24 Eli Zaretskii <eliz@gnu.org>
13251
13252 * frame.c (make_terminal_frame): Initialize f->terminal,
13253 f->terminal->reference_count, and scroll bars on MS-DOS as well.
13254 Set the top frame to newly created frame.
13255 (Fmake_terminal_frame): Reuse the_only_display_info.
13256
13257 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
13258 estimating available memory.
13259
13260 2008-08-23 David Reitter <david.reitter@gmail.com>
13261
13262 * nsterm.m (ns_draw_window_cursor): Don't call
13263 NSDisableScreenUpdates and NSEnableScreenUpdates on
13264 non-NS_IMPL_COCOA systems.
13265
13266 2008-08-23 Andreas Schwab <schwab@suse.de>
13267
13268 * process.c (procfs_system_process_attributes): Fix use of
13269 uninitialized variables.
13270
13271 2008-08-23 Eli Zaretskii <eliz@gnu.org>
13272
13273 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
13274
13275 * dispnew.c (init_display): Remove MS-DOS specific conditions for
13276 calling tty-set-up-initial-frame-faces.
13277
13278 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
13279 Allow MSDOS frames along with X frames.
13280
13281 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
13282 addition to output_termcap.
13283
13284 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
13285
13286 * termchar.h (FRAME_TTY): Support output_msdos_raw.
13287 (struct tty_display_info) [MSDOS]: Add fields related to mouse
13288 highlight.
13289
13290 * process.c [!subprocesses]: Define QCname.
13291 (syms_of_process): Intern and staticpro it.
13292
13293 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
13294 Adjust for changes in encoding/decoding routines.
13295 Use encode_coding_object and decode_coding_object instead of
13296 encode_coding and decode_coding.
13297
13298 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
13299
13300 * dosfns.c: Include frame.h before termhooks.h.
13301 (dos_cleanup): Use CURTTY ()->termscript instead of a global
13302 variable termscript.
13303
13304 * s/msdos.h (USER_FULL_NAME): Define.
13305 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
13306
13307 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
13308 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
13309 pw->pw_gecos.
13310
13311 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
13312 SELECTED_FRAME as additional (1st) argument.
13313 (tty_read_avail_input): Handle output_msdos_raw in
13314 addition to output_termcap.
13315
13316 * msdos.c: Include frame.h before termhooks.h.
13317 (mouse_on, mouse_off, mouse_moveto, mouse_init)
13318 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
13319 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
13320 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
13321 (IT_set_terminal_modes, IT_reset_terminal_modes)
13322 (IT_set_frame_parameters): Use tty->termscript instead of a global
13323 variable termscript.
13324 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
13325 global variable terminal_coding. Don't refer to
13326 Vnonascii_translation_table.
13327 (internal_terminal_init): Set Vwindow_system in current_kboard.
13328 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
13329 Announce date and time of session start, if termscript is open.
13330 Don't zero out the_only_display_info (it is done in
13331 term.c:init_tty). Open termscript only of not already open.
13332 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
13333 here instead of dos_ttraw. Don't initialize display if this is an
13334 initial tty. Don't set FRAME_FONT.
13335 (Vwindow_system_version): Bump to 23.
13336 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
13337 is available, set up mouse_position_hook.
13338 (dos_ttraw, IT_set_terminal_modes): If called with initial
13339 terminal, do nothing.
13340 (IT_set_frame_parameters): Handle the Qtty_type frame
13341 parameter by calling internal_terminal_init.
13342 (dos_set_window_size, show_mouse_face)
13343 (clear_mouse_face, IT_note_mode_line_highlight)
13344 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
13345 (dos_rawgetc): Use tty_display_info instead of x_display_info.
13346 (initialize_msdos_display): New function.
13347 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
13348 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
13349 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
13350 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
13351 Accept additional argument: a pointer to a frame. Update all callers.
13352 (request_sigio, unrequest_sigio): Don't define, now defined on
13353 sysdep.c.
13354 (IT_write_glyphs): Rewrite to use encode_terminal_code.
13355
13356 * term.c [MSDOS]: Include msdos.h.
13357 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
13358 conditional to DOS_NT. Allow only one call to this function in a
13359 session. Don't allocate a new struct tty_display_info; instead,
13360 reuse the_only_display_info. Call get_tty_size to get screen
13361 dimensions. Call init_baud_rate to set bad_rate.
13362 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
13363 (Fsuspend_tty) [MSDOS]: Don't close input and output.
13364 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
13365 (get_tty_terminal, get_named_tty, Ftty_type)
13366 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
13367 output_termcap.
13368 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
13369 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
13370 only when subprocesses are supported.
13371
13372 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
13373 f->output_data.x.
13374 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
13375 terminal devices.
13376
13377 * msdos.h: Remove definition of struct x_display_info and struct
13378 x_output.
13379 (FRAME_FONT): Use output_data.tty.
13380 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
13381 (struct x_display_info): Rename from display_info. Update all users in
13382 msdos.c.
13383 (struct x_output): Remove background_pixel and foreground_pixel.
13384 (the_only_display_info): Rename from the_only_x_display.
13385 (dos_ttraw): Update prototype.
13386
13387 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
13388 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
13389
13390 2008-08-23 Jason Rumney <jasonr@gnu.org>
13391
13392 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
13393 (fn_TIFFSetDirectory): New library function used.
13394 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
13395 (tiff_load): Use :index to select among multiple images. Set count
13396 property when multiple images exist.
13397 (gif_format): Use :index, not :image.
13398
13399 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
13400
13401 * xdisp.c (try_scrolling): Check INT_MAX instead of
13402 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
13403 to obtain INT_MAX.
13404
13405 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
13406
13407 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
13408
13409 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
13410
13411 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
13412 GNUstep library location.
13413
13414 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
13415
13416 * xfaces.c (x_update_menu_appearance): Check validity of menu font
13417 before using it.
13418
13419 * puresize.h (BASE_PURESIZE): Increase to 1250000.
13420
13421 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13422
13423 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
13424 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
13425 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
13426 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
13427 (EmacsApp-cursor_blink_handler): Remove declaration.
13428 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
13429 match 01 Feb 2008 changes in xterm.c.
13430 (ns_read_socket): Add cast to avoid warning.
13431 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
13432 GNUstep.
13433
13434 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
13435
13436 * xselect.c (x_get_foreign_selection): Return nil if desired
13437 selection could not be obtained, instead of signalling an error.
13438
13439 2008-08-20 David Reitter <david.reitter@gmail.com>
13440
13441 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
13442 * nsterm.m: Remove ns-specific code for cursor blinking.
13443 (ns_draw_window_cursor): Clear cursor properly rather than
13444 redrawing the area. Respect width of bar cursors.
13445 These changes enable the use of generic blink-cursor-mode and
13446 generic cursor types in NS and support smooth cursor movements (do
13447 not blink off after command).
13448 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
13449 Nextstep, too.
13450
13451 2008-08-19 Kenichi Handa <handa@m17n.org>
13452
13453 * font.c (Vfont_log_deferred): New variable.
13454 (font_add_log): Check Vfont_log_deferred.
13455 (font_deferred_log): New function.
13456
13457 * font.h (font_deferred_log): Extern it.
13458
13459 * fontset.c (reorder_font_vector): Use encoding charset of fonts
13460 for sorting.
13461 (face_for_char): Use deferred log.
13462
13463 2008-08-18 Kenichi Handa <handa@m17n.org>
13464
13465 * fontset.c (face_for_char): Add font log.
13466
13467 * font.c (font_add_log): Add the font properties :script, :lang,
13468 and :otf in the log.
13469
13470 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
13471
13472 * xdisp.c: Remove dead code.
13473 (handle_invisible_prop, next_overlay_string): Defer call to
13474 setup_for_ellipsis.
13475 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
13476
13477 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
13478
13479 * xfaces.c (lookup_derived_face): Properly handle possible zero
13480 return value of get_lface_attributes.
13481 (merge_faces): Don't tell lookup_derived_face to signal an error
13482 if face is not found.
13483
13484 * dired.c (Fdirectory_files): Doc fix.
13485
13486 * process.c (make_process): Initialize kill_without_query struct
13487 member.
13488
13489 2008-08-15 Eli Zaretskii <eliz@gnu.org>
13490
13491 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
13492 Alternative calculation of totphys for Visual Studio 6.
13493
13494 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
13495
13496 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
13497 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
13498 All users changed.
13499 (stat): Only root directory passed to GetDriveType. Allow RAM
13500 disk as well as local fixed disk when w32-get-true-file-attributes
13501 is set to `local'.
13502 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
13503 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
13504 (w32_cached_id, w32_add_to_cache): New functions.
13505 (get_name_and_id): Look account names in the cache before calling
13506 lookup_account_sid.
13507 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
13508 New initialization flags.
13509 (globals_of_w32): Initialize them to zero.
13510 (w32_system_process_attributes): Use w32_cached_id and
13511 w32_add_to_cache.
13512
13513 2008-08-14 Lawrence Mitchell <wence@gmx.li>
13514
13515 * lread.c (Fread_char, Fread_char_exclusive): If no character
13516 event is read before timeout is reached, return nil, rather than
13517 converting to a number.
13518
13519 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
13520
13521 * fns.c (use_dialog_box): Doc fix.
13522
13523 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
13524 on OS X.
13525
13526 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
13527
13528 * frame.c (Qns_parse_geometry): New var.
13529 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
13530
13531 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
13532
13533 * xdisp.c (x_produce_glyphs): Handle the case when font has no
13534 space character in calculating tabs.
13535
13536 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
13537
13538 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
13539
13540 2008-08-10 Glenn Morris <rgm@gnu.org>
13541
13542 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
13543 silence gcc "limited range of data type" warnings in some
13544 make_fixnum_or_float calls.
13545
13546 2008-08-09 Eli Zaretskii <eliz@gnu.org>
13547
13548 * w32.c (w32_system_process_attributes): If the process does not
13549 exist, return nil.
13550
13551 * w32.c: Include thelp32.h, psapi.h and coding.h.
13552 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
13553 declarations.
13554 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
13555 (Process32Next_Proc): New typedefs.
13556 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
13557 (g_b_init_process32_next, g_b_init_open_thread_token)
13558 (g_b_init_impersonate_self, g_b_init_revert_to_self)
13559 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
13560 (g_b_init_get_process_working_set_size)
13561 (g_b_init_global_memory_status_ex): New static variables.
13562 (globals_of_w32): Initialize them.
13563 (create_toolhelp32_snapshot, process32_first, process32_next)
13564 (open_thread_token, impersonate_self, revert_to_self)
13565 (get_process_memory_info, get_process_working_set_size)
13566 (global_memory_status, global_memory_status_ex): New wrapper
13567 functions.
13568 (w32_list_system_processes, w32_system_process_attributes)
13569 (enable_privilege, restore_privilege, ltime, process_times):
13570 New functions.
13571 (convert_time_raw): New function.
13572 (convert_time): Remove conversion of FILETIME into time in 100
13573 nsec units, call convert_time_raw instead.
13574
13575 * process.h (w32_list_system_processes, w32_system_process_attributes):
13576 Add prototypes.
13577 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
13578 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
13579 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
13580 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
13581
13582 * process.c (Fsystem_process_attributes): Doc fix.
13583
13584 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
13585
13586 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
13587 a continued multi-char glyph; if so, advance to the actual glyph.
13588
13589 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
13590
13591 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
13592
13593 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
13594 (.m.o): Use it.
13595 * config.in: Regenerate.
13596
13597 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
13598
13599 * xdisp.c (redisplay_window): Revert last change.
13600 (try_window): Check bottom scroll margin too.
13601
13602 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
13603
13604 * config.in: Regenerate.
13605
13606 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
13607 -list-load-path-shadows'.
13608 (nsgui.h): Reduce number of things depending on it.
13609
13610 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
13611
13612 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
13613 instead of window-end which does the wrong thing at eob.
13614 (try_cursor_movement): Minor optimization.
13615 (redisplay_window): If scroll margin is defined, don't assume
13616 window doesn't need scrolling.
13617
13618 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
13619
13620 * config.in: Regenerate.
13621
13622 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
13623 (mostlyclean): Don't delete *.d under NS.
13624
13625 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
13626
13627 2008-08-06 Kenichi Handa <handa@m17n.org>
13628
13629 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
13630
13631 2008-08-06 Andreas Schwab <schwab@suse.de>
13632
13633 * config.in: Regenerate.
13634
13635 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
13636
13637 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
13638 forcing a window start.
13639
13640 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
13641 (auto_save_1): Update modtime when auto-save-list-file-name is on.
13642
13643 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13644
13645 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
13646 argument.
13647
13648 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
13649
13650 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
13651 <scroll-down-aggressively, before-change-functions>:
13652 <after-change-functions>: Reflow docstrings.
13653
13654 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13655 Ken Raeburn <raeburn@gnu.org>
13656
13657 Dock menu customization, based on a patch by Ken Raeburn, plus some
13658 other fixes.
13659 * nsmenu.m (dockMenu): New variable.
13660 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
13661
13662 * nsterm.h (dockMenu): Declare.
13663
13664 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
13665 (ns_term_init): Initialize dockMenu.
13666 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
13667 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
13668 left.
13669
13670 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
13671
13672 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
13673
13674 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
13675
13676 * config.in: Regenerate.
13677
13678 2008-08-04 Seiji Zenitani <zenitani@mac.com>
13679
13680 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
13681
13682 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
13683
13684 * nsterm.h (find_and_call_menu_selection): Fix prototype.
13685
13686 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
13687
13688 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
13689
13690 * keyboard.h: Comment an #endif.
13691
13692 * lisp.h (have_menus_p): Adjust comment.
13693
13694 * menu.c (find_and_return_menu_selection): Fix comparison with
13695 client_data.
13696
13697 * nsmenu.m (popup_activated_flag): New variable.
13698 (popup_activated): New function.
13699 (menu-or-popup-active-p): New exported lisp definition.
13700 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
13701 when popup done.
13702 (ns_popup_dialog): Set popup_activated_flag.
13703
13704 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
13705 version for GNUstep (handled by conditional typedef in nsterm.m).
13706 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
13707 in rgb.txt).
13708
13709 * process.c (init_process): Use DARWIN_OS, not DARWIN.
13710
13711 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
13712
13713 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
13714
13715 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
13716 shortcircuit if popup_activated like GTK and X toolkit.
13717
13718 * m/inter386.h: Change DARWIN to DARWIN_OS.
13719
13720 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
13721 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
13722 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
13723 comment on NO_SOCK_SIGIO.
13724
13725 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
13726
13727 * nsterm.m (windowDidResize): Remove stopModal call.
13728
13729 2008-08-03 Andreas Schwab <schwab@suse.de>
13730
13731 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
13732 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
13733
13734 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
13735
13736 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
13737 Don't use uninitialized pointer variable when using getrlimit.
13738
13739 2008-08-02 Jason Rumney <jasonr@gnu.org>
13740
13741 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
13742
13743 2008-08-02 Eli Zaretskii <eliz@gnu.org>
13744
13745 * alloc.c (NSTATICS): Bump to 0x640.
13746
13747 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
13748
13749 * lisp.h: Add prototype for directory_files_internal.
13750
13751 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
13752 New functions.
13753 (syms_of_process): Defsubr them. Add initializations for various
13754 Q* symbols used in procfs_system_process_attributes.
13755 (procfs_list_system_processes, procfs_system_process_attributes)
13756 [HAVE_PROCFS]: New functions.
13757 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
13758 (procfs_get_total_memory): New functions.
13759
13760 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
13761
13762 * xfaces.c (Fx_load_color_file): Fix previous change;
13763 it is #ifdef WINDOWSNT, not WINDOWS_NT.
13764
13765 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
13766
13767 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
13768
13769 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13770
13771 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
13772
13773 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
13774
13775 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
13776
13777 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
13778 define NSApplicationDelegateReplySuccess.
13779 (EmacsView -converstationIdentifier): Use long instead of
13780 NSInteger for GNUstep, since it doesn't have NSInteger.
13781
13782 * xmenu.c: Revert last change.
13783
13784 * keyboard.h: Fix last change.
13785
13786 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
13787
13788 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
13789 on Windows.
13790
13791 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13792
13793 Warning clearing and clean-up in NS port.
13794 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
13795 Add prototypes.
13796 * nsgui.h (FACE_DEFAULT): Remove, unused.
13797 (XGCValues): Change colors to unsigned long.
13798 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
13799 nsterm.m.
13800 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
13801 (ns_list_fonts): Remove, unused.
13802 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
13803 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
13804 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
13805 (nsfont_draw): Compare face colors to 0, not nil.
13806 * nsmenu.m (struct widget_value): Drop unneeded declaration.
13807 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
13808 (-addSubmenuWithTitle:): Use NSMenuItem class.
13809 (ns_popup_menu): Use NO, not NULL, for enabled setting.
13810 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
13811 (ns_clip_to_row): Make gc arg a BOOL.
13812 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
13813 ns_clip_to_row() call.
13814 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
13815 used). Cast FRAME_FONT assignments.
13816 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
13817 (ns_string_to_lispmod): Change arg to const char.
13818 (ns_term_init): Use NSMenuItem class.
13819 (EmacsApp -openFile:): Move to different section of file.
13820 (EmacsApp -application:openFiles:): Don't return a value, call
13821 -replyToOpenOrPrint:.
13822 (EmacsView -keyDown:): Fix up cast.
13823 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
13824 (EmacsView -menuDown:): Cast tag in call to
13825 find_and_call_menu_selection().
13826 (ns_list_fonts): Remove, unused.
13827 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
13828 (ns_fontname_to_xlfd): Make static.
13829 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
13830 Remove prototypes (now in keyboard.h).
13831 (next_menubar_widget_id): Remove, unused.
13832 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
13833 Remove prototypes (now in keyboard.h).
13834 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
13835
13836 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
13837
13838 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
13839 (floatfns.o): Depend on syssignal.h.
13840 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
13841
13842 * systty.h: Fix previous change that removed BSD_TERMIOS.
13843 Add comments to #ifdefs.
13844
13845 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
13846
13847 * w32fns.c (w32-load-color-file): Remove.
13848 (x-open-connection): Use renamed Fx_load_color_file.
13849 * xfaces.c (x-load-color-file): Add.
13850 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
13851 Emacs.clr.
13852 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
13853
13854 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
13855
13856 * dbusbind.c (Fdbus_call_method_asynchronously)
13857 (Fdbus_method_error_internal): New defuns.
13858 (xd_read_message): Handle also reply messages.
13859 (Vdbus_registered_functions_table): Extend docstring.
13860
13861 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
13862
13863 * keyboard.c (gobble_input): Fix previous change.
13864
13865 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
13866
13867 * bitmaps/README:
13868 * xfns.c:
13869 * termcap.c:
13870 * term.c:
13871 * syswait.h:
13872 * systty.h:
13873 * systime.h:
13874 * syssignal.h:
13875 * sysdep.c:
13876 * process.h:
13877 * process.c:
13878 * print.c:
13879 * ndir.h:
13880 * lread.c:
13881 * keyboard.c:
13882 * getpagesize.h:
13883 * floatfns.c:
13884 * fileio.c:
13885 * emacs.c:
13886 * doc.c:
13887 * dispnew.c:
13888 * dired.c:
13889 * data.c:
13890 * callproc.c:
13891 * buffer.c:
13892 * README:
13893 * Makefile.in:
13894 * s/template.h:
13895 * s/msdos.h:
13896 * m/vax.h: Remove VMS support.
13897 * s/vms.h:
13898 * vlimit.h:
13899 * uaf.h:
13900 * temacs.opt:
13901 * param.h:
13902 * ioctl.h: Remove file.
13903
13904 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
13905
13906 * s/ms-w32.h (MULTI_KBOARD): Remove.
13907 * xterm.c:
13908 * xselect.c:
13909 * xfns.c:
13910 * window.c:
13911 * w32term.c:
13912 * w32fns.c:
13913 * terminal.c:
13914 * termhooks.h:
13915 * term.c:
13916 * sysdep.c:
13917 * keyboard.h:
13918 * keyboard.c:
13919 * frame.h:
13920 * frame.c:
13921 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
13922 * config.in: Regenerate.
13923
13924 2008-07-30 Jason Rumney <jasonr@gnu.org>
13925
13926 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
13927
13928 * w32font.c (w32font_encode_char): Leave as unicode if in range.
13929 (w32font_open_internal): Get unicode version of textmetrics.
13930 Don't enable or disable glyph indices here.
13931 (w32font_open): Disable use of glyph indices.
13932
13933 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
13934
13935 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
13936
13937 * minibuf.c (Vread_buffer_function): Doc fix.
13938
13939 2008-07-30 John Paul Wallington <jpw@pobox.com>
13940
13941 * minibuf.c (read_buffer_completion_ignore_case): New var.
13942 (Fread_buffer): Use it.
13943
13944 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
13945
13946 * systty.h (sensemode): Remove empty #if. Remove reference to
13947 BSD_TERMIOS, unused.
13948
13949 * sysdep.c: Remove reference to DGUX.
13950 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
13951
13952 * config.in: Regenerate.
13953
13954 2008-07-30 Jason Rumney <jasonr@gnu.org>
13955
13956 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
13957
13958 2008-07-29 Jason Rumney <jasonr@gnu.org>
13959
13960 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
13961 is populated.
13962 (uniscribe_encode_char): Always use uniscribe.
13963 Avoid using context if cache is populated.
13964
13965 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
13966
13967 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
13968 open menu.
13969
13970 * gtkutil.c (menu_nav_ended): Remove.
13971 (create_menus): Remove signal connect for menu_nav_ended.
13972
13973 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
13974
13975 * xdisp.c (redisplay_window): Check return value of
13976 compute_window_start_on_continuation_line before forcing a window
13977 start.
13978
13979 2008-07-28 Jason Rumney <jasonr@gnu.org>
13980
13981 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
13982
13983 * w32term.c (w32_enable_unicode_output, cleartype_active):
13984 Remove obsolete display options.
13985 (x_draw_glyph_string_background): Don't use old cleartype_active
13986 workaround.
13987 (w32_initialize): Remove cleartype_active initialization.
13988 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
13989
13990 2008-07-28 Andreas Schwab <schwab@suse.de>
13991
13992 * lisp.h (init_weak_hash_tables, syms_of_font)
13993 (xd_read_queued_messages, syms_of_dbusbind): Declare.
13994 (remove_hash_entry): Don't declare.
13995 * eval.c (maybe_call_debugger): Make static and move before use.
13996 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
13997 * xdisp.c: Include "gtkutil.h" if USE_GTK.
13998 * xterm.h (x_set_frame_alpha): Declare.
13999
14000 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
14001
14002 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
14003 (create_menus): Connect selection-done to menu_nav_ended.
14004
14005 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
14006
14007 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
14008 Set Vx_resource_name to a fallback. Replace read of 'buffered'
14009 parameter with read of 'alpha' one.
14010 (Qns_frame_parameter): Remove.
14011 * nsselect.m (selection-coding-system)
14012 (next-selection-coding-system, Vselection_coding_system)
14013 (Vnext_selection_coding_system): Drop.
14014
14015 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
14016
14017 * nsfns.m (do-applescript, do_applescript): Rename to
14018 ns-do-applescript, ns_do_applescript, and move within file.
14019
14020 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
14021
14022 Remove support for Mac Carbon.
14023 * mactoolbox.c:
14024 * macterm.h:
14025 * macterm.c:
14026 * macselect.c:
14027 * macmenu.c:
14028 * macgui.h:
14029 * macfns.c:
14030 * mac.c: Remove file.
14031 * s/darwin.h:
14032 * m/intel386.h:
14033 * xfaces.c:
14034 * xdisp.c:
14035 * window.c:
14036 * tparam.c:
14037 * termhooks.h:
14038 * termcap.c:
14039 * term.c:
14040 * syssignal.h:
14041 * sysselect.h:
14042 * sysdep.c:
14043 * process.c:
14044 * lread.c:
14045 * lisp.h:
14046 * keyboard.c:
14047 * image.c:
14048 * fringe.c:
14049 * frame.h:
14050 * frame.c:
14051 * fontset.c:
14052 * font.h:
14053 * font.c:
14054 * fns.c:
14055 * fileio.c:
14056 * emacs.c:
14057 * dispnew.c:
14058 * dispextern.h:
14059 * config.in:
14060 * atimer.c:
14061 * Makefile.in: Remove code for Carbon.
14062
14063 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14064
14065 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
14066
14067 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14068
14069 * macterm.h (kCGBitmapByteOrder32Host): New define for
14070 non-universal SDKs.
14071
14072 * image.c (mac_create_cg_image_from_image, image_load_image_io)
14073 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
14074
14075 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
14076 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
14077
14078 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
14079
14080 * w32inevt.c: Include dispextern.h.
14081
14082 2008-07-26 Andreas Schwab <schwab@suse.de>
14083
14084 * print.c (print_object): Fix off-by-one in last change.
14085
14086 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
14087
14088 * term.c (syms_of_term): Don't initialize default_orig_pair,
14089 default_set_foreground and default_set_background on Windows.
14090
14091 2008-07-25 Jason Rumney <jasonr@gnu.org>
14092
14093 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
14094 ScriptItemize. Clean up return value checking. Remove unused
14095 variables.
14096 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
14097 shaping engine.
14098
14099 * w32font.c (w32font_has_char): Handle the case where we can't
14100 determine the script for a character.
14101
14102 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
14103
14104 * term.c (syms_of_term): Initialize default_orig_pair,
14105 default_set_foreground, and default_set_background.
14106
14107 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
14108 clash (bug#86).
14109 (getloadavg): Callers changed.
14110
14111 * image.c (svg_load_image): Fix last change.
14112 (svg_load_image): Use rsvg_handle_get_dimensions to check that
14113 image size is valid. Use g_object_unref instead of deprecated
14114 rsvg_handle_free to free rsvg handle.
14115 (x_from_xcolors): Don't initialize pixmap (silence compiler).
14116
14117 2008-07-25 Jason Rumney <jasonr@gnu.org>
14118
14119 * w32font.c (w32font_encode_char): Encode characters outside BMP as
14120 surrogates before looking up glyph index.
14121 (w32font_text_extents): Encode as surrogates if falling back to
14122 functions that need UTF-16 wide chars.
14123
14124 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
14125 BMP as surrogates before looking up glyph index.
14126
14127 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
14128
14129 * image.c (svg_load_image): Check for failure in return value of
14130 rsvg_handle_get_pixbuf. Free rsvg handle when done.
14131
14132 2008-07-25 Jason Rumney <jasonr@gnu.org>
14133
14134 * w32font.c (Fx_select_font): Reverse sense of second arg.
14135
14136 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
14137
14138 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
14139 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
14140
14141 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
14142 (PURESIZE): Use it.
14143
14144 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
14145
14146 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
14147 * m/alpha.h (TEXT_END):
14148 * m/ibmrs6000.h (TEXT_END):
14149 * m/macppc.h (TEXT_END):
14150 * s/darwin.h (TEXT_END):
14151 * s/msdos.h (TEXT_END): Remove, unused.
14152 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
14153 * s/cygwin.h: Remove comment.
14154
14155 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
14156 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
14157 * m/intel386.h (DOT_GLOBAL_START):
14158 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
14159 (USG): Remove, file not used on USG platforms.
14160
14161 * Makefile.in (HAVE_X11): Remove empty #else.
14162
14163 2008-07-24 Andreas Schwab <schwab@suse.de>
14164
14165 * fileio.c (Finsert_file_contents): Properly adjust undo list
14166 after format conversion.
14167
14168 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
14169
14170 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
14171 (menu_nav_ended): Remove.
14172 (create_menus): Remove signal connect for menu_nav_ended.
14173 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
14174 create_menus.
14175 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
14176
14177 2008-07-23 Jason Rumney <jasonr@gnu.org>
14178
14179 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
14180 with opened font.
14181 (w32font_open): Set font type to gdi.
14182
14183 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
14184
14185 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
14186
14187 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
14188 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
14189 defines it.
14190 * unexec.c (ADDR_CORRECT): Define unconditionally.
14191
14192 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
14193
14194 * unexec.c: Remove code depending on !COFF and USG, the file is
14195 not used for such systems.
14196
14197 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
14198 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
14199 (LD_SWITCH_SYSTEM_1): Remove, update users.
14200
14201 * s/darwin.h (DATA_END):
14202 * m/intel386.h (DATA_END):
14203 * m/ibmrs6000.h (DATA_END):
14204 * m/alpha.h (DATA_END): Remove, unused.
14205
14206 * config.in: Regenerate.
14207 * s/ms-w32.h (subprocesses): Define unconditionally.
14208 * s/template.h (subprocesses): Update comment.
14209 * s/vms.h (subprocesses):
14210 * s/usg5-4.h (subprocesses):
14211 * s/hpux10-20.h (subprocesses):
14212 * s/gnu-linux.h (subprocesses):
14213 * s/cygwin.h (subprocesses):
14214 * s/bsd-common.h (subprocesses):
14215 * s/aix4-2.h (subprocesses):
14216 * s/darwin.h (subprocesses): Do not define, defined by default now.
14217
14218 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
14219 Remove all references.
14220 (temacs): Add GNUstep specific ld flags.
14221
14222 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
14223 similarly to what X does.
14224
14225 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
14226
14227 * nsfns.m (x-list-fonts): Remove.
14228 (syms_of_nsfns): Drop the x-list-fonts declaration.
14229 * nsterm.m: Get rid of remaining "//" comments.
14230
14231 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
14232
14233 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
14234
14235 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
14236 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
14237 (Fns_own_selection_internal, Fx_disown_selection_internal)
14238 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
14239
14240 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
14241 ... */' style of docstrings. Doc fixes.
14242
14243 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
14244
14245 * terminfo.c (UP, BC, PC): Undo previous change.
14246
14247 * nsfns.m: Rename ns prefixed functions/variables to the
14248 corresponding x versions. Update references.
14249
14250 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
14251
14252 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
14253
14254 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
14255
14256 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
14257 Remove forwarding functions.
14258 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
14259 non-static.
14260 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
14261 non-static.
14262 (ns_frame_parm_handlers): Use the new names.
14263 (syms_of_nsfns): Move to the end of file.
14264
14265 * nsterm.m (syms_of_nsterm): Move to the end of file.
14266
14267 * dispnew.c (init_display): Remove code for X10.
14268
14269 2008-07-22 Jason Rumney <jasonr@gnu.org>
14270
14271 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
14272 bare drive.
14273
14274 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
14275
14276 * nsterm.m (syms_of_nsterm): Remove debugging println.
14277
14278 2008-07-22 David Reitter <david.reitter@gmail.com>
14279
14280 * nsfns.m (do_applescript, F_do_applescript): NS version of the
14281 Carbon implementation of the same functionality: execute arbitrary
14282 AppleScript code.
14283
14284 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
14285
14286 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
14287 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
14288 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
14289 (Fx_display_mm_height, Fx_display_mm_width)
14290 (Fx_display_backing_store, Fx_display_visual_class)
14291 (Fx_display_save_under, Fx_open_connection)
14292 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
14293 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
14294 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
14295 (Fx_display_pixel_width, Fx_display_pixel_height)
14296 (Fx_display_usable_bounds, Fx_display_planes)
14297 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
14298 ... */' style of docstrings.
14299
14300 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
14301
14302 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
14303 on this platform.
14304 (mips):
14305 * m/iris4d.h (mips): Do not define.
14306 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
14307
14308 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
14309
14310 * image.c:
14311 * nsfns.m:
14312 * nsselect.m:
14313 * nsterm.h:
14314 * nsterm.m: Rename ns prefixed functions/variables to the
14315 corresponding x versions. Update references.
14316
14317 * m/ibms390x.h (NO_REMAP): Do not undefine.
14318
14319 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
14320
14321 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
14322
14323 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
14324 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
14325 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
14326 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
14327 (Fns_display_mm_height, Fns_display_mm_width)
14328 (Fns_display_backing_store, Fns_display_visual_class)
14329 (Fns_display_save_under, Fns_open_connection)
14330 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
14331 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
14332 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
14333 (Fns_display_pixel_width, Fns_display_pixel_height)
14334 (Fns_display_usable_bounds, Fx_display_planes)
14335 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
14336
14337 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
14338
14339 * print.c (print_object): Check print_depth before searching for
14340 circularities.
14341
14342 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
14343
14344 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
14345 only sprintf.
14346
14347 2008-07-21 Kenichi Handa <handa@m17n.org>
14348
14349 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
14350
14351 2008-07-20 Andreas Schwab <schwab@suse.de>
14352
14353 * syntax.c (find_start_pos, find_start_value)
14354 (find_start_value_byte, find_start_begv, find_defun_start)
14355 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
14356
14357 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
14358
14359 * s/sol2-3.h: Insert contents of s/sol2.h.
14360 (LD_SWITCH_SYSTEM): Remove redundant definition.
14361 * s/sol2.h: Remove, unused.
14362
14363 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14364
14365 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
14366
14367 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14368
14369 * Makefile.in (ns_appdir): Fix typo in find command.
14370
14371 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
14372
14373 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
14374
14375 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
14376 added not supported anymore.
14377
14378 * s/usg5-4-2.h (LIBS_SYSTEM):
14379 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
14380
14381 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
14382 * s/lynxos.h (GETPGRP_NO_ARG):
14383 * s/hpux10-20.h (NO_SIOCTL_H):
14384 * s/gnu.h (GETPGRP_NO_ARG):
14385 * s/gnu-linux.h (NO_SIOCTL_H):
14386 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
14387 * s/cygwin.h (GETPGRP_NO_ARG):
14388 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
14389 (C_DEBUG_SWITCH): Remove duplicate definition.
14390
14391 * m/ibms390.h: Remove boilerplate comments.
14392
14393 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
14394
14395 * process.c (HAVE_SERIAL): Consolidate ifdefs.
14396 (wait_reading_process_output): Remove code for SunOS, platform not
14397 supported anymore. Use SOLARIS2 instead of sun.
14398
14399 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14400
14401 * font.c (font_open_by_name): Under NS, default lface height to zero.
14402 (font_open_for_lface): Under NS, set size based on frame fontsize.
14403 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
14404 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
14405
14406 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14407
14408 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
14409 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
14410 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
14411 YES/NO.
14412 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
14413 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
14414 * Makefile.in (clean): Clear out build destination dir.
14415
14416 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14417
14418 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
14419 xterm, xselect.
14420 * lisp.h: Remove declaration of hash_remove.
14421 * nsgui.h: Remove redefinitions of hash_remove.
14422 * fns.c (hash_remove): Rename to hash_remove_from_table.
14423
14424 2008-07-19 Seiji Zenitani <zenitani@mac.com>
14425
14426 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
14427 strdup() the family UTF8String before modifying it.
14428
14429 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
14430
14431 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
14432 NS_FACE_BACKGROUND with 0 instead of nil.
14433 * nsfont.m (nsfont_draw): Same.
14434
14435 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
14436
14437 * nsfns.m (ns_set_background_color): Fix crash.
14438
14439 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
14440
14441 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
14442
14443 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
14444
14445 * puresize.h (BASE_PURESIZE): Increase to 1240000.
14446
14447 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14448
14449 * gtkutil.c: Include <config.h> instead of "config.h".
14450
14451 * lisp.h (Foverlay_buffer): Add EXFUN.
14452
14453 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
14454 child process to complete child_setup. Undo 2005-09-21 change.
14455
14456 * s/darwin.h: Mention setsid after vfork.
14457
14458 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14459
14460 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
14461 Depend on macgui.h.
14462
14463 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
14464 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
14465
14466 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
14467 and f19.
14468 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
14469
14470 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
14471 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
14472 Remove enumerators.
14473
14474 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
14475 Check if FACE_FROM_ID returns NULL.
14476
14477 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
14478
14479 * w32inevt.c (change_frame_size): Remove extern declaration.
14480 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
14481 change_frame_size.
14482
14483 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
14484
14485 * getloadavg.c: Revert last change (2008-07-15).
14486
14487 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
14488
14489 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
14490 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
14491 from configure.
14492
14493 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
14494
14495 * s/sol2.h:
14496 * s/sol2-4.h: Reorganize conditionals.
14497
14498 * ecrt0.c: Remove code depending on m68000, not used anymore.
14499
14500 * fns.c (hash_remove): Make static.
14501 * lisp.h (hash_remove): Don't prototype.
14502
14503 * m/ibmrs6000.h:
14504 * m/ibms390x.h:
14505 * m/macppc.h: Remove boilerplate comments.
14506
14507 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
14508 Solaris, which does not need them.
14509
14510 * m/vax.h: Remove comments about unsupported systems.
14511
14512 * s/darwin.h: Reorganize ifdefs.
14513
14514 2008-07-17 Andreas Schwab <schwab@suse.de>
14515
14516 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
14517
14518 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
14519
14520 Use SDATA. Follow coding convention of placing operators at
14521 beginning of next line rather than end of previous line, and placing
14522 spaces around infix operators.
14523
14524 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
14525 in case it was defined already.
14526 USE @GNUSTEP_MAKEFILES@ rather than envvars.
14527 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
14528 ns_default.
14529 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
14530 Lisp_Objects.
14531 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
14532 (ns_defined_color, ns_color_to_lisp): Declare.
14533 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
14534 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
14535 it's accepted even with USE_LISP_UNION_TYPE.
14536 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
14537 (update_frame_tool_bar): Remove apparently obsolete tests for
14538 non-integerness of f->tool_bar_lines.
14539 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
14540 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
14541 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
14542 (nsfont_open): Don't confuse NULL for Qnil.
14543 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
14544 * menu.h (find_and_call_menu_selection):
14545 * menu.c (find_and_call_menu_selection): Use just int for vector size.
14546 (find_and_return_menu_selection): Always return something.
14547 * frame.h: Include dispextern.h for Display_Info.
14548 (display_x_get_resource): Declare.
14549
14550 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
14551
14552 * syntax.c: Remove stdio.h include accidentally introduced in
14553 Emacs.app commit.
14554 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
14555 NS_IMPL_COCOA.
14556 * keyboard.c (handle_async_input, input_available_signal): Remove
14557 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
14558
14559 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
14560
14561 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
14562 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
14563 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
14564 Use SDATA.
14565
14566 * keymap.c: Remove all NS-specific code.
14567 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
14568 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
14569 where_is_preferred_modifier, return a different value depending on how
14570 preferred is the binding.
14571 (where_is_internal): Adjust accordingly.
14572 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
14573 Adjust to new preferred_sequence_p.
14574 (syms_of_keymap): Declare `where-is-preferred-modifier'.
14575 * keyboard.c (parse_solitary_modifier): Not static any more.
14576 * keyboard.h (parse_solitary_modifier): Declare.
14577
14578 2008-07-16 Andreas Schwab <schwab@suse.de>
14579
14580 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
14581 of easymenu.
14582
14583 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
14584
14585 * xdisp.c (move_it_in_display_line): Account for word wrap, so
14586 that we don't move off the line.
14587
14588 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
14589
14590 * keyboard.c (Qsuper): Remove.
14591 (parse_menu_item): Don't call where_is_internal specially for NS.
14592
14593 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
14594
14595 * s/gnu-linux.h: Remove boilerplate comments.
14596
14597 * m/alpha.h (__ELF__): Consolidate conditions.
14598
14599 * m/m68k.h (linux): Use GNU_LINUX instead.
14600 Remove boilerplate comments.
14601
14602 * m/intel386.h: Undo refactoring from previous change.
14603 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
14604 too, remove dead code.
14605 (linux): Use GNU_LINUX instead.
14606
14607 2008-07-16 Jason Rumney <jasonr@gnu.org>
14608
14609 * w32gui.h: Repeat 26 June changes lost by last change.
14610
14611 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
14612
14613 * systty.h: Remove code for Aix on 386, unsupported platform.
14614
14615 * s/ms-w32.h: Remove boilerplate comments.
14616 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
14617
14618 * s/gnu-linux.h (TERM): Remove support.
14619 (HAVE_SYSVIPC): Remove, unused.
14620 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
14621 for this system.
14622
14623 * process.c: Remove support for IRIS, unused.
14624 Remove support for TERM, not relevant anymore.
14625
14626 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
14627 used with the definition.
14628
14629 * s/aix4-2.h (static): Do not undef.
14630
14631 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
14632 only used on Aix.
14633 (HAVE_SYSVIPC): Remove, unused.
14634
14635 * m/hp800.h (CANNOT_DUMP): Do not undef.
14636
14637 * m/alpha.h: Fix comment.
14638
14639 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
14640 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
14641 used by this configuration.
14642 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
14643 * unexec.c: Remove code depending on HPUX and
14644 USG_SHARED_LIBRARIES, not used with this file. Remove code
14645 depending on IRIS, unused. Remove if 0-ed code.
14646
14647 * s/template.h: Remove comments about static.
14648
14649 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
14650 Remove if 0-ed code.
14651 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
14652 were the same as the default.
14653 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
14654 Remove boilerplate comments.
14655 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
14656 (HAVE_SYSVIPC): Remove, unused.
14657 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
14658
14659 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
14660 Remove boilerplate comments.
14661 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
14662 Remove boilerplate comments.
14663 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
14664 Remove boilerplate comments.
14665 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
14666
14667 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
14668 USG systems which do not use DATA_SEG_BITS.
14669 Refactor code. Remove boilerplate comments.
14670
14671 * m/ibms390.h:
14672 * m/m68k.h:
14673 * s/bsd-common.h:
14674 * s/cygwin.h:
14675 * s/darwin.h:
14676 * s/freebsd.h:
14677 * s/gnu.h:
14678 * s/msdos.h: Remove boilerplate comments.
14679
14680 * m/iris4d.h: Remove boilerplate comments and code for systems that
14681 do not use this file.
14682 (IRIS_4D): Remove, unused.
14683
14684 * m/mips.h: Remove boilerplate comments and code for systems that
14685 do not use this file.
14686 (SIGN_EXTEND_CHAR):
14687 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
14688 * unexmips.c: Remove file, unused.
14689
14690 * editfns.c (Fuser_full_name): Replace the only use of
14691 USER_FULL_NAME with its value.
14692 * config.in: Regenerate.
14693
14694 2008-07-16 David Reitter <david.reitter@gmail.com>
14695
14696 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
14697 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
14698
14699 2008-07-16 Glenn Morris <rgm@gnu.org>
14700
14701 * emacs.c (system-type): Doc fix.
14702
14703 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
14704
14705 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
14706 If the cache doesn't work, let's fix it, rather than work around it.
14707
14708 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
14709
14710 * Makefile.in: Correct additions for nsfont.o in last commit.
14711 * nsfont.m: New file (forgot last commit).
14712
14713 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
14714
14715 * callproc.c (set_initial_environment): Initialize
14716 Vprocess_environment under CANNOT_DUMP (fixes crash when
14717 batch-compiling for bootstrap).
14718
14719 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
14720 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14721
14722 * frame.c (make_initial_frame): Call init_frame_faces(f) in
14723 CANNOT_DUMP case -- fix crash due to different init order.
14724
14725 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
14726
14727 Changes and additions for NeXTstep windowing system (Cocoa and
14728 GNUstep) support.
14729
14730 * Makefile.in:
14731 * config.in: Support defines and build commands for NS port.
14732 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
14733 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
14734 * dispextern.h: Include nsgui.h and add needed typedefs under NS
14735 windowing.
14736 (struct face): Add synth_ital field.
14737 * dispnew.c: Include nsterm.h when compiling under NS windowing.
14738 (init_display): Initialize Vinitial_window_system to "ns" when so
14739 compiled.
14740 * emacs.c: Include GSConfig.h when compiling under GNUstep.
14741 (display_arg): Use under NS.
14742 (main): Under NS, allocate autorelease pool and handle command line
14743 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
14744 (standard_args): Add NS-specific args.
14745 (shut_down_emacs): Shut down NS terminal if compiled under NS.
14746 * font.c (DEFAULT_ENCODING): New variable.
14747 (font_find_for_lface): Use it.
14748 (syms_of_font): Load syms_of_nsfont under NS.
14749 * font.h: Declare nsfont_driver when compiled under NS.
14750 * fontset.c: When compiling under NS, include nsterm.h.
14751 (fontset_from_font): Autoconstruct fontset under NS.
14752 * frame.c (various): Under NS, include nsterm.h, add Qns window system
14753 symbol, document and use it.
14754 (do_switch_frame): When for_deletion under Cocoa, add
14755 Fraise_frame(Qnil).
14756 (x_set_frame_parameters): Ensure font attribute changes are picked up.
14757 (x_get_arg): Allow "yes" and "no" as boolean values.
14758 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
14759 Qright under Cocoa.
14760 (focus-follows-mouse): Default to 0 under NS.
14761 * frame.h (enum output_method): Add output_ns.
14762 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
14763 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
14764 (FRAME_WINDOW_P): NS-specific definition.
14765 * fringe.c (max_used_fringe_bitmap): Make public.
14766 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
14767 (getloadavg): Use NeXT code under descendant OS's.
14768 * image.c (includes and header section, x_create_bitmap_from_data)
14769 (x_create_bitmap_from_file, free_bitmap_record, image_background)
14770 (image_background_transparent, x_clear_image_1)
14771 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
14772 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
14773 (x_to_xcolors, x_from_xcolors, x_disable_image)
14774 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
14775 other GUIs, including XPM support using code originally written for
14776 Carbon GUI.
14777 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
14778 using NS API.
14779 (image_ascent): Use font metrics macros instead of direct struct field
14780 access.
14781 * keyboard.c (includes): Add nsterm.h when compiling under NS.
14782 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
14783 Also, handle NS as GTK for menu bar purposes.
14784 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
14785 toolkit where they differ.
14786 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
14787 use cachelist, still needed under NS.
14788 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
14789 (struct widget_value): Define it here for menu.c.
14790 * keymap.c (includes): Include modifier internals.
14791 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
14792 NS.
14793 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
14794 support for preferring sequences using certain modifiers, specified by
14795 the FIRSTONLY argument.
14796 * lisp.h (hash_remove): Rename to avoid name clash when compiling
14797 under NS GNUstep implementation.
14798 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
14799 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
14800 * menu.c: Include nsterm.h under NS.
14801 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
14802 (free_menubar_widget_tree_value, update_submenu_strings)
14803 (find_and_call_menu_selection): Treat NS as X and NT.
14804 (find_and_return_menu_selection): New function, used for popup menus.
14805 * nsgui.h:
14806 * nsterm.h:
14807 * nsfns.m:
14808 * nsimage.m:
14809 * nsmenu.m:
14810 * nsselect.m:
14811 * nsterm.m: New files.
14812 * process.c (wait_reading_process_output): Under NS, call ns_select()
14813 instead of plain select().
14814 * syntax.c (char_quoted): Under NS, avoid a crash when called near
14815 beginning of buffer.
14816 * sysselect.h (init_process): Rename when compiling under Cocoa to
14817 avoid name conflict.
14818 * termhooks.h (display_info): Add ns_display_info to union.
14819 * terminal.c (Fterminal_live_p): Add ns to terminal types.
14820 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
14821 COCOA environment.
14822 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
14823 unexec() signature. (Note, this will dump, but the resulting file
14824 crashes; unexosx is used instead; keeping around for reference and
14825 possible aid in getting dump working under GNUstep.)
14826 * w32gui.h (button_type, widget_value): Remove definitions (now in
14827 keyboard.h).
14828 * window.c: Include nsterm.h when compiling under NS.
14829 * xdisp.c (includes): Include nsterm.h when compiling under NS.
14830 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
14831 other GUI windowing systems.
14832 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
14833 GTK.
14834 (x_consider_frame_title): Under NS, set icon type and frame
14835 modified-state indicator; use ns_set_name_as_filename() when using
14836 formatted title.
14837 (update_window_cursor): Make public when compiling under NS.
14838 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
14839 (hourglass_atimer, Vhourglass_delay
14840 * xfaces.c (header section, init_frame_faces, clear_font_table)
14841 (defined_color, unload_color, x_face_list_fonts)
14842 (prepare_face_for_display): Add NS support parallel to other GUIs.
14843 Emulate GCs like other non-X GUIs.
14844 (split_font_name): Don't lowercase font name under NS.
14845 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
14846 under NS.
14847 * s/darwin.h: Add support for compilation under NS.
14848
14849 2008-07-15 Jason Rumney <jasonr@gnu.org>
14850
14851 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
14852 (w32_show_hourglass): Rename from show_hourglass.
14853 (w32_hide_hourglass): Rename from hide_hourglass.
14854 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
14855 (Vhourglass_delay): Declare extern.
14856 (hourglass_started): Remove.
14857
14858 * xdisp.c (Vhourglass_delay): Remove static.
14859 (hourglass_started, start_hourglass, cancel_hourglass):
14860 Don't include these versions on WINDOWSNT.
14861
14862 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
14863
14864 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
14865 variables (formerly in xfns.c).
14866 (show_hourglass, hide_hourglass): New prototypes (same).
14867 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
14868 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
14869 in xfns.c).
14870 (syms_of_xdisp): Declare/initialize display-hourglass,
14871 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
14872 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
14873 formerly in xfns.c.
14874 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
14875 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
14876 (start_hourglass, cancel_hourglass): Remove.
14877 (show_hourglass, hide_hourglass): Remove prototypes and static
14878 modifiers.
14879 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
14880 hourglass_atimer, hourglass_shown_p declaration/initialization.
14881 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
14882 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
14883 (start_hourglass, cancel_hourglass): Remove.
14884 (show_hourglass, hide_hourglass): Remove prototypes and static
14885 modifiers.
14886 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
14887 hourglass_atimer, hourglass_shown_p declaration/initialization.
14888 * w32fns.c (display_hourglass_p, Vhourglass_delay)
14889 (DEFAULT_HOURGLASS_DELAY): Remove.
14890 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
14891 hourglass_shown_p declaration/initialization.
14892
14893 2008-07-14 Jason Rumney <jasonr@gnu.org>
14894
14895 * w32fns.c (w32_get_arg): Remove wrapper function.
14896 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
14897 directly.
14898 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
14899
14900 2008-07-14 Kenichi Handa <handa@m17n.org>
14901
14902 * xfont.c (xfont_open): Add workaround for X's bug.
14903
14904 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14905
14906 * fontset.c: Include <stdio.h> unconditionally.
14907
14908 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
14909
14910 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
14911 for filtering.
14912
14913 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
14914
14915 * s/vms.h: Use __GNUC__ instead of _GNUC_.
14916
14917 * m/macppc.h:
14918 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
14919
14920 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
14921 (SPECIAL_EMACS_INT):
14922 * m/ia64.h (SPECIAL_EMACS_INT):
14923 * m/amdx86-64.h (SPECIAL_EMACS_INT):
14924 * s/gnu.h (NLIST_STRUCT):
14925 * s/aix4-2.h (X11R5_INHIBIT_I18N):
14926 * s/gnu-linux.h (LINUX):
14927 * s/msdos.h (HAVE_FACES):
14928 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
14929
14930 * systty.h:
14931 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
14932 anymore.
14933
14934 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
14935
14936 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
14937 always defined as int.
14938
14939 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
14940 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
14941 * s/gnu-linux.h (HAVE_WAIT_HEADER):
14942 * s/freebsd.h (HAVE_WAIT_HEADER):
14943 * s/bsd-common.h (HAVE_UNION_WAIT):
14944 * s/aix4-2.h (HAVE_WAIT_HEADER):
14945 * m/mips.h (HAVE_UNION_WAIT):
14946 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
14947 (COFF, static): Do not define, they are undefined later in the file.
14948
14949 * process.c (update_status): Don't use a union.
14950 (status_convert):
14951 (sigchld_handler): Use int instead of WAITTYPE.
14952
14953 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
14954
14955 * indent.c (Fvertical_motion): Restore hscroll before moving to
14956 goal column.
14957
14958 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
14959
14960 * lisp.h: Remove left over code.
14961
14962 2008-07-11 Andreas Schwab <schwab@suse.de>
14963
14964 * lisp.h: Fix logic in last change.
14965
14966 * menu.h: New file.
14967 * menu.c: Include it.
14968 * xmenu.c: Likewise.
14969 * Makefile.in: Update dependencies.
14970
14971 2008-07-11 Kenichi Handa <handa@m17n.org>
14972
14973 * fontset.c (fontset_from_font): Cancel the previous change.
14974
14975 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
14976
14977 * lisp.h:
14978 * w32heap.c:
14979 * emacs.c:
14980 * alloc.c: Replace all references of NO_UNION_TYPE with
14981 USE_LISP_UNION_TYPE.
14982
14983 * m/xtensa.h (NO_UNION_TYPE):
14984 * m/vax.h (NO_UNION_TYPE):
14985 * m/template.h (NO_UNION_TYPE):
14986 * m/sparc.h (NO_UNION_TYPE):
14987 * m/mips.h (NO_UNION_TYPE):
14988 * m/macppc.h (NO_UNION_TYPE):
14989 * m/m68k.h (NO_UNION_TYPE):
14990 * m/iris4d.h (NO_UNION_TYPE):
14991 * m/intel386.h (NO_UNION_TYPE):
14992 * m/ibms390x.h (NO_UNION_TYPE):
14993 * m/ibms390.h (NO_UNION_TYPE):
14994 * m/ibmrs6000.h (NO_UNION_TYPE):
14995 * m/ia64.h (NO_UNION_TYPE):
14996 * m/hp800.h (NO_UNION_TYPE):
14997 * m/arm.h (NO_UNION_TYPE):
14998 * m/amdx86-64.h (NO_UNION_TYPE):
14999 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
15000 defining it the same.
15001
15002 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
15003
15004 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
15005
15006 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
15007
15008 * fileio.c:
15009 * sysdep.c:
15010 * systty.h:
15011 * m/ibmrs6000.h:
15012 * m/iris4d.h:
15013 * s/aix4-2.h:
15014 * s/freebsd.h:
15015 * s/gnu-linux.h:
15016 * s/hpux10-20.h:
15017 * s/hpux11.h:
15018 * s/netbsd.h:
15019 * s/sol2-3.h:
15020 * s/sol2-4.h:
15021 * s/sol2.h:
15022 * s/usg5-4.h:
15023 * s/vms.h: Remove references to unused variables.
15024
15025 2008-07-10 Andreas Schwab <schwab@suse.de>
15026
15027 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
15028 pattern before matching the generic family.
15029
15030 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
15031
15032 * unexec.c:
15033 * s/vms.h:
15034 * s/usg5-4-2.h:
15035 * s/sol2-5.h:
15036 * s/freebsd.h:
15037 * s/darwin.h: Remove dead code.
15038
15039 * m/template.h:
15040 * m/sparc.h:
15041 * m/mips.h:
15042 * m/m68k.h:
15043 * m/iris4d.h:
15044 * m/intel386.h:
15045 * m/ibms390x.h:
15046 * m/ibms390.h:
15047 * m/ia64.h:
15048 * m/hp800.h:
15049 * m/arm.h:
15050 * m/amdx86-64.h: Remove dead code and references to unused
15051 and compiler defined symbols.
15052
15053 * unexmips.c:
15054 * unexelf.c: Remove references to desupported systems.
15055
15056 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
15057
15058 * m/powermac.h: Remove boilerplate comments.
15059 (NO_REMAP): Remove unused definition.
15060
15061 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
15062 define them.
15063
15064 2008-07-10 Kenichi Handa <handa@m17n.org>
15065
15066 * xfont.c (xfont_open): Log the reason of failure.
15067
15068 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
15069
15070 * fontset.c (fontset_get_font_group):
15071 * font.c (font_check_otf): Specify argument types.
15072
15073 2008-07-09 Kenichi Handa <handa@m17n.org>
15074
15075 * coding.c (detect_coding_utf_8): Set detect_info->found only when
15076 non-ASCII char is found.
15077
15078 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
15079 (reorder_font_vector): Change the arg preferred_family to font.
15080 Prefer the spec matching with font.
15081 (fontset_get_font_group): New function.
15082 (fontset_find_font): Change the format of an element of a realized
15083 fontset. Use fontset_get_font_group.
15084 (fontset_font): Try the current fontset, the default fontset, the
15085 fallbacks of the current fontset, and the fallbacks of the default
15086 fontset in this order.
15087 (face_for_char): Delete the shortcut to use the current font.
15088 (fontset_from_font): Don't set fonts for Latin in the fontset.
15089
15090 * font.h (font_make_object, font_match_p): Adjust prototypes.
15091
15092 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
15093
15094 * font.c (font_make_object): New arg entity and pixelsize.
15095 (font_check_otf_features, font_check_otf): New functions.
15096 (font_match_p): Check :lang, :script, and :otf properties.
15097
15098 * xfont.c (xfont_open): Adjust it for the change of
15099 font_make_object.
15100 (xfont_text_extents): Fix initial setting of metrics.
15101
15102 * ftfont.c (struct ftfont_info): New member index, delete member
15103 fc_charset_idx. Make the member order compatible with struct
15104 xftfont_info.
15105 (fc_charset_table): Change charset names to registry names.
15106 (ftfont_pattern_entity): Delete the args registry and
15107 fc_charset_idx. Change the value of :font-entity property
15108 to (FONTNAME . INDEX). Always set :registry property to
15109 `iso10646-1'.
15110 (struct ftfont_cache_data): New struct.
15111 (ftfont_lookup_cache): New arg for_face.
15112 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
15113 (ftfont_driver): Set the member otf_capability.
15114 (ftfont_get_charset): Adjust it for the change of
15115 fc_charset_table.
15116 (OTF_TAG_SYM): New macro.
15117 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
15118 for the change of fc_charset_table.
15119 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
15120 ftfont_pattern_entity. Add FC_INDEX to objset.
15121 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
15122 and ftfont_pattern_entity.
15123 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
15124 font_make_object, struct ftfont_info.
15125 (ftfont_has_char): Use ftfont_get_fc_charset.
15126 (ftfont_otf_features, ftfont_otf_capability): New functions.
15127 (ftfont_shape): Use ftfont_get_otf.
15128 (ftfont_text_extents): Fix initial setting of metrics.
15129
15130 * xftfont.c (struct xftfont_info): New member ft_size. Make the
15131 member order compatible with struct ftfont_info.
15132 (xftfont_open): Add FC_CHARSET to the pattern. Set
15133 xftfont_info->ft_size. Don't unlock the face. Check BDF
15134 properties if appropriate.
15135 (xftfont_close): Unlock the face.
15136 (xftfont_anchor_point, xftfont_shape): Deleted.
15137 (syms_of_xftfont): Don't set members anchor_point and shape of
15138 xftfont_driver.
15139
15140 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
15141 font_make_object.
15142
15143 * w32font.c (w32font_open): Adjust it for the change of
15144 font_make_object.
15145 (w32font_open_internal): Don't set properties of font_object here.
15146
15147 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
15148
15149 * macfns.c (x_create_tip_frame):
15150 * w32fns.c (x_create_tip_frame):
15151 * xfns.c (x_create_tip_frame): Pass parameter argument to
15152 face-set-after-frame-default.
15153
15154 * xfaces.c (Finternal_merge_in_global_face): Save merged
15155 attributes for the default face back into the face vector.
15156
15157 2008-07-08 Andreas Schwab <schwab@suse.de>
15158
15159 * fontset.h: Declare fontset_from_font. Don't declare
15160 new_fontset_from_font and fontset_from_font_name.
15161 * xterm.c: Include "fontset.h".
15162 * Makefile.in (xterm.o): Update dependencies.
15163
15164 2008-07-08 Glenn Morris <rgm@gnu.org>
15165
15166 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
15167 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
15168
15169 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
15170
15171 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
15172 (x_set_frame_parameters): Don't bind it.
15173
15174 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
15175
15176 * w32fns.c (map_w32_filename): Declare extern.
15177
15178 2008-07-07 Jason Rumney <jasonr@gnu.org>
15179
15180 * w32term.c (WS_EX_LAYERED): Define if not already.
15181
15182 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
15183
15184 * xfaces.c (set_font_frame_param): Don't try to set the font
15185 parameter if it is still unspecified in the lface.
15186
15187 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
15188
15189 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
15190 face if it didn't already exist.
15191
15192 * xdisp.c (try_window_id): Give up if word-wrapping is on.
15193
15194 2008-07-05 Andreas Schwab <schwab@suse.de>
15195
15196 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
15197
15198 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
15199
15200 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
15201 word-wrapping.
15202 (IT_DISPLAYING_WHITESPACE): New macro.
15203 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
15204 when word-wrapping. Simplify word-wrapping logic. Use correct
15205 pixel positions when saving copies of the iterator.
15206 (display_line): Use proper wrap point if the last character on a
15207 line was preceded by whitespace.
15208
15209 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
15210
15211 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
15212
15213 2008-07-04 Kenichi Handa <handa@m17n.org>
15214
15215 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
15216
15217 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
15218
15219 2008-07-02 Jason Rumney <jasonr@gnu.org>
15220
15221 * xfns.c (syms_of_xfns): Only define x-select-font when both
15222 HAVE_FREETYPE and USE_GTK.
15223
15224 * xdisp.c (next_element_from_display_vector): Move assignment out
15225 of if statement.
15226
15227 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
15228
15229 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
15230
15231 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
15232 (syms_of_fileio): Initialize and export them.
15233 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
15234
15235 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
15236 (Fsystem_move_file_to_trash): New function.
15237 (syms_of_w32fns): Export it to lisp.
15238
15239 2008-07-01 Jason Rumney <jasonr@gnu.org>
15240
15241 * w32font.c (w32font_text_extents): Don't count overhang as part
15242 of width.
15243
15244 2008-06-30 Miles Bader <miles@gnu.org>
15245
15246 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
15247 Add `avoid_cursor_p' field.
15248
15249 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
15250 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
15251 (append_glyph, append_composite_glyph, produce_image_glyph)
15252 (append_stretch_glyph): Initialize avoid_cursor_p.
15253 (get_it_property): Rename from `get_line_height_property'.
15254 (x_produce_glyphs): Use get_it_property.
15255 (handle_line_prefix, push_display_prop): New functions.
15256 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
15257 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
15258 New variables.
15259 (syms_of_xdisp): Initialize them.
15260
15261 2008-06-30 Kenichi Handa <handa@m17n.org>
15262
15263 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
15264 XftDefaultSubstitute (they are called in XftFontMatch).
15265 (xftfont_open): Fix args to ftfont_font_format.
15266
15267 * ftfont.c (fc_charset_table): New member lang.
15268 (ftfont_resolve_generic_family): New arg pattern.
15269 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
15270 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
15271 (ftfont_open): Fix args to ftfont_font_format.
15272 (ftfont_font_format): New arg filename.
15273
15274 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
15275
15276 * xfaces.c (Finternal_merge_in_global_face): If default face was
15277 modified, realize it again. Update the font face attribute.
15278
15279 2008-06-29 Jason Rumney <jasonr@gnu.org>
15280
15281 * w32term.c (x_set_frame_alpha): Fix logic.
15282
15283 2008-06-29 Kenichi Handa <handa@m17n.org>
15284
15285 * fontset.c (Finternal_char_font): Return font-object instead of
15286 font-name.
15287
15288 * composite.c (get_composition_id): Fix the width calculation for TAB.
15289
15290 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
15291
15292 * indent.c (Fvertical_motion): Properly handle float column arg.
15293
15294 2008-06-28 Jason Rumney <jasonr@gnu.org>
15295
15296 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
15297 (pfnSetLayeredWindowAttributes): New function pointer.
15298 (w32_initialize): Initialize it when supported.
15299 (x_set_frame_alpha): New function.
15300
15301 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
15302 (w32_frame_parm_handlers): Set alpha handler.
15303
15304 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
15305
15306 2008-06-27 Jason Rumney <jasonr@gnu.org>
15307
15308 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
15309 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
15310 (w32_to_x_charset, x_to_w32_charset)
15311 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
15312 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
15313 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
15314 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
15315 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
15316 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
15317 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
15318 (Qw32_charset_unicode): Remove.
15319 (syms_of_w32fns): Update for above changes.
15320
15321 * w32font.c (w32_to_x_charset, x_to_w32_charset)
15322 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
15323 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
15324 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
15325 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
15326 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
15327 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
15328 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
15329 (syms_of_w32font): Update for above changes.
15330
15331 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
15332
15333 * s/usg5-4.h: Fix previous change: keep the correct branch of a
15334 removed #if.
15335 (USG_SHARED_LIBRARIES): Remove duplicate definition.
15336
15337 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
15338 Eli Zaretskii <eliz@gnu.org>
15339
15340 * makefile.w32-in (LOCAL_FLAGS):
15341 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
15342
15343 * sysdep.c (_spawnlp, _getpid):
15344 Declare with explicit _cdecl instead of _CRTAPI1.
15345
15346 * editfns.c (Fget_internal_run_time):
15347 Check for WINDOWSNT with #ifdef, not #if.
15348
15349 2008-06-26 Jason Rumney <jasonr@gnu.org>
15350
15351 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
15352
15353 * w32term.c (x_draw_glyph_string_foreground)
15354 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
15355 Use FONT_HANDLE macro.
15356 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
15357
15358 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
15359 (uniscribe_encode_char): Use FONT_HANDLE macro.
15360
15361 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
15362 (w32font_text_extents): Use precast w32_font.
15363 (w32font_close): Free cached metrics.
15364 (w32font_open_internal): Allocate space for name on stack.
15365
15366 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
15367
15368 * xdisp.c (extend_face_to_end_of_line): Fix last change.
15369
15370 2008-06-26 Jason Rumney <jasonr@gnu.org>
15371
15372 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
15373 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
15374
15375 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
15376
15377 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
15378
15379 2008-06-26 Jason Rumney <jasonr@gnu.org>
15380
15381 * w32bdf.c, w32bdf.h: Remove obsolete files.
15382
15383 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
15384
15385 * w32gui.h: Don't include w32bdf.h.
15386 (XCharStruct, enum w32_char_font_type, W32FontStruct):
15387 Remove obsolete font support.
15388
15389 * w32font.h (struct w32font_info): Remove compat_w32_font.
15390 Add hfont member.
15391 (FONT_COMPAT): Remove obsolete macro.
15392
15393 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
15394 (w32font_encode_char, w32font_text_extents): Use new hfont member.
15395 (w32font_open_internal): Remove compat code. Set new hfont member.
15396 (Fx_select_font): Use new hfont member.
15397
15398 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
15399 (uniscribe_encode_char): Use new hfont member.
15400
15401 * w32term.c (x_draw_glyph_string_foreground)
15402 (x_draw_composite_glyph_string_foreground): Use new hfont member.
15403 (x_draw_glyph_string): Use metrics in w32font_info.
15404
15405 2008-06-26 Kenichi Handa <handa@m17n.org>
15406
15407 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
15408
15409 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
15410
15411 * unexnext.c:
15412 * m/ews4800.h:
15413 * m/hp9000s300.h:
15414 * m/ibm370aix.h:
15415 * m/mips-siemens.h:
15416 * m/ncr386.h:
15417 * m/next.h:
15418 * m/pmax.h:
15419 * m/powerpcle.h:
15420 * m/tandem-s2.h:
15421 * s/386bsd.h:
15422 * s/bsd386.h:
15423 * s/bsd4-1.h:
15424 * s/bsd4-2.h:
15425 * s/bsdos2-1.h:
15426 * s/bsdos2.h:
15427 * s/bsdos3.h:
15428 * s/bsdos4.h:
15429 * s/nextstep.h:
15430 * s/ultrix4-3.h:
15431 * s/usg5-0.h:
15432 * s/usg5-2-2.h:
15433 * s/usg5-2.h:
15434 * s/usg5-4-3.h:
15435 * s/ux4800.h:
15436 * s/uxpds.h:
15437 * s/uxpv.h: Remove support for obsolete systems.
15438 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
15439 Remove, insert contents in s/hpux10-20.h.
15440 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
15441 Remove, insert contents in s/aix4-2.h.
15442 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
15443 * s/bsd4-3.h: Rename to ...
15444 * s/bsd-common.h: ... this.
15445 * data.c:
15446 * doc.c:
15447 * ecrt0.c:
15448 * emacs.c:
15449 * fileio.c:
15450 * floatfns.c:
15451 * keyboard.c:
15452 * mem-limits.h:
15453 * print.c:
15454 * process.c:
15455 * sysdep.c:
15456 * syssignal.h:
15457 * systty.h:
15458 * syswait.h:
15459 * term.c:
15460 * unexec.c:
15461 * unexelf.c:
15462 * unexhp9k800.c:
15463 * m/hp800.h:
15464 * m/ibmrs6000.h:
15465 * m/mips.h:
15466 * m/vax.h:
15467 * s/darwin.h:
15468 * s/freebsd.h:
15469 * s/gnu.h:
15470 * s/ms-w32.h:
15471 * s/msdos.h:
15472 * s/netbsd.h:
15473 * s/template.h: Remove references to obsolete variables.
15474
15475 * Makefile.in: Add dependencies for all unexec files.
15476 (admindir): Remove unused variable.
15477 (UNEXEC_SRC): Remove references.
15478
15479 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
15480
15481 * xfns.c (x_default_font_parameter): If Xft is available, first
15482 try Monospace-12 for the default font.
15483
15484 2008-06-25 Jason Rumney <jasonr@gnu.org>
15485
15486 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
15487
15488 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
15489
15490 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
15491
15492 * buffer.c (syms_of_buffer): Remove default-word-wrap.
15493
15494 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
15495
15496 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
15497 <scroll-conservatively>: Fix typo in docstring.
15498
15499 * xselect.c (Fx_send_client_event): Doc fix.
15500
15501 2008-06-25 Kenichi Handa <handa@m17n.org>
15502
15503 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
15504
15505 * font.c (font_parse_fcname): Remove unused variables.
15506 (font_sort_entites): Delete the arg SPEC. Caller changed.
15507 Fix for the case of ! best_only.
15508 (font_delete_unmatched): Check DPI and AVGWIDTH too.
15509
15510 * lisp.h (Fstring_to_unibyte): EXFUN it.
15511
15512 * character.h (str_to_unibyte): Extern it.
15513
15514 * character.c (str_to_unibyte): New function.
15515
15516 * fns.c (Fstring_to_unibyte): New function.
15517 (syms_of_fns): Defsubr it.
15518
15519 2008-06-24 Kenichi Handa <handa@m17n.org>
15520
15521 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
15522 DPI too.
15523 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
15524
15525 2008-06-24 Andreas Schwab <schwab@suse.de>
15526
15527 * Makefile.in (${lispsource}loaddefs.el): Rename from
15528 ../lisp/loaddefs.el.
15529 (bootstrap-clean): Do what distclean does but don't remove
15530 Makefile.
15531 (distclean): Depend on bootstrap-clean and remove Makefile.
15532
15533 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
15534
15535 * buffer.h (struct buffer): New member word_wrap.
15536
15537 * buffer.c (syms_of_buffer): New variables default-word-wrap and
15538 word-wrap.
15539 (init_buffer_once): Initialize them.
15540
15541 * dispextern.h (struct it): Replace bool truncate_lines_p with a
15542 line_wrap enum possessing three possible values.
15543
15544 * termopts.h: Replace truncate_partial_width_windows with
15545 Vtruncate_partial_width_windows.
15546
15547 * dispnew.c (direct_output_for_insert): Avoid direct output when
15548 inserting a space with word wrap on.
15549
15550 * indent.c (compute_motion): Obey integer values of
15551 truncate-partial-width-windows.
15552
15553 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
15554 replacing truncate_partial_width_windows.
15555 (init_iterator): If Vtruncate_partial_width_windows is an integer,
15556 truncate only if the window width is below that integer.
15557 (start_display, resize_mini_window, produce_stretch_glyph)
15558 (display_string, move_it_in_display_line_to): Use line_wrap.
15559 (back_to_previous_visible_line_start, reseat_1): Reset
15560 string_from_display_prop_p.
15561 (display_line): Extend default face to end of line when wrapping.
15562
15563 2008-06-24 Kim F. Storm <storm@cua.dk>
15564
15565 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
15566 to wrap continued lines at word boundaries.
15567
15568 2008-06-24 Jason Rumney <jasonr@gnu.org>
15569
15570 * font.c (Ffont_face_attributes): Multiply pixel size before point
15571 conversion to avoid multiplying rounding error.
15572
15573 2008-06-23 Jason Rumney <jasonr@gnu.org>
15574
15575 * w32term.c (x_draw_glyph_string_background)
15576 (x_draw_glyph_string): Remove old bdf font code.
15577
15578 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
15579
15580 2008-06-22 Kenichi Handa <handa@m17n.org>
15581
15582 * font.c (font_find_for_lface): Try the adstyle specified in
15583 the property of LFACE_FONT of LFACE (if any).
15584
15585 2008-06-21 Seiji Zenitani <zenitani@mac.com>
15586 Ryo Yoshitake <ryo@shiftmode.net>
15587
15588 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
15589
15590 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
15591
15592 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
15593 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
15594 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
15595 (witness-emacs): Remove.
15596 (lisp, shortlisp): Move loaddefs.el earlier.
15597 (mostlyclean): Forget about witness-emacs.
15598
15599 2008-06-22 Glenn Morris <rgm@gnu.org>
15600
15601 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
15602 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
15603
15604 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
15605
15606 * Makefile.in (PRECOMP): Remove.
15607 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
15608 (witness-emacs): Run `compile-first'.
15609 (.el.elc): Use the new compile-onefile target.
15610
15611 2008-06-21 Kenichi Handa <handa@m17n.org>
15612
15613 * xftfont.c (xftfont_open): Handle QCembolden only when
15614 FC_EMBOLDEN is defined.
15615
15616 2008-06-21 Andreas Schwab <schwab@suse.de>
15617
15618 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
15619 (.el.elc): Likewise.
15620
15621 2008-06-21 Miles Bader <miles@gnu.org>
15622
15623 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
15624 build dir, not the lisp source dir.
15625
15626 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
15627
15628 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
15629 (bootstrapclean): Remove.
15630 (.el.elc): New rule.
15631 (PRECOMP): New var.
15632 (../lisp/subdirs.el): Remove.
15633 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
15634 (witness-emacs): New target.
15635 (mostlyclean): Remove witness-emacs as well.
15636 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
15637 Add witness-emacs dependency.
15638
15639 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
15640
15641 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
15642 defined by the font.
15643
15644 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
15645
15646 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
15647 (bootstrap-clean): New target that keeps TAGS around.
15648 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
15649 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
15650
15651 2008-06-20 Jason Rumney <jasonr@gnu.org>
15652
15653 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
15654 Remove obsolete font code.
15655
15656 * w32font.c (font_matches_spec): Use csb bitfield from font signature
15657 to determine language support.
15658
15659 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
15660
15661 * sysdep.c (cfsetspeed): New fun extracted from the code.
15662 (cfmakeraw): Move before first use.
15663
15664 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
15665
15666 * sysdep.c (cfmakeraw): Provide fallback implementation.
15667 (serial_configure): Provide fallback implementation of cfsetspeed.
15668
15669 2008-06-20 Kenichi Handa <handa@m17n.org>
15670
15671 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
15672 the pattern.
15673
15674 * fontset.c (fontset_from_font): Copy font_spec before changing
15675 the elements.
15676
15677 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
15678
15679 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
15680
15681 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
15682 for explicit `font' parameters.
15683
15684 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
15685
15686 2008-06-19 Kenichi Handa <handa@m17n.org>
15687
15688 * frame.c: Include <ctype.h>.
15689 (x_set_font_backend): Allow spacing characters in the X resource
15690 for FontBackend.
15691
15692 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
15693
15694 * w32fns.c, xfns.c (Qfont_param): New var.
15695 (syms_of_w32fns): Initialize it.
15696 (x_default_font_parameter): Record explicit `font' into
15697 `font-parameter'.
15698
15699 2008-06-18 Kenichi Handa <handa@m17n.org>
15700
15701 * font.c (font_parse_xlfd): Fix previous change.
15702 (font_parse_fcname): Don't use :fc-unknown-spec.
15703 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
15704 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
15705 (font_add_log): Prepend the driver name to the resulting fonts.
15706
15707 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
15708 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
15709 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
15710
15711 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
15712 (QCembolden): New variables.
15713 (syms_of_xftfont): DEFSYM them.
15714 (xftfont_open): Call XftFontMatch. Don't trust the result of
15715 XftTextExtents8 if the pixel_size is less than 5.
15716
15717 2008-06-18 Andreas Schwab <schwab@suse.de>
15718
15719 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
15720 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
15721
15722 2008-06-18 Jason Rumney <jasonr@gnu.org>
15723
15724 * w32font.c (w32font_list, w32font_match): Add logging.
15725
15726 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
15727
15728 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
15729
15730 * font.c (font_parse_fcname): Store divider characters for
15731 unknown-spec list. For known key symbols, intern using correct
15732 symbol name.
15733
15734 2008-06-17 Kenichi Handa <handa@m17n.org>
15735
15736 * xfaces.c (realize_default_face): If the frame is not on window
15737 system, set the fontset of face to nil.
15738
15739 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
15740
15741 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
15742
15743 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
15744
15745 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
15746 (build_font_name_from_vector): Delete externs.
15747
15748 * xfaces.c (struct font_name): Don't declare.
15749
15750 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
15751
15752 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
15753
15754 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
15755
15756 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
15757
15758 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
15759
15760 * font.c (Ffont_spec): Fix usage in docstring.
15761 (Ffont_face_attributes): Doc fix.
15762
15763 2008-06-16 Andreas Schwab <schwab@suse.de>
15764
15765 * font.c (Ffont_face_attributes): Fix definition.
15766
15767 2008-06-16 Jason Rumney <jasonr@gnu.org>
15768
15769 * font.h (font_style_symbolic_from_value): Remove.
15770
15771 * font.c (font_style_symbolic_from_value): Remove.
15772 (font_style_symbolic): Revert to pre 2008-06-13 version.
15773
15774 * w32font.c (w32_to_fc_weight): New function.
15775 (w32font_full_name, logfont_to_fcname): Use it.
15776
15777 2008-06-16 Kenichi Handa <handa@m17n.org>
15778
15779 * font.c (font_check_object): Delete it.
15780 (font_clear_cache): Check if a font-object is alive.
15781 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
15782 font-object to nil.
15783 (font_close_object): Don't check FONT_CLOSE_OBJECT.
15784 (font_at): Don't call font_check_object.
15785 (Ffont_get): Return a symbol for :weight, :slant, and :width.
15786
15787 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
15788
15789 * puresize.h (BASE_PURESIZE): Increase to 1230000.
15790
15791 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
15792
15793 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
15794
15795 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
15796
15797 * font.c (font_parse_fcname): Only one decimal point.
15798 (font_unparse_fcname): Handle data in family and foundry indices
15799 as symbols, not strings.
15800 (font_unparse_gtkname, Ffont_face_attributes): New functions.
15801
15802 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
15803
15804 * font.h (font_unparse_gtkname): Add prototype.
15805
15806 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
15807
15808 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
15809
15810 2008-06-15 Andreas Schwab <schwab@suse.de>
15811
15812 * font.c (font_update_drivers): Fix crash when no drivers match.
15813
15814 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
15815
15816 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
15817 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
15818
15819 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
15820
15821 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
15822
15823 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
15824
15825 * process.c (Fserial_process_configure, Fprocess_send_eof):
15826 Use EQ to compare Lisp_Objects.
15827
15828 2008-06-13 Jason Rumney <jasonr@gnu.org>
15829
15830 * w32fns.c (Fw32_select_font): Remove old font API function.
15831
15832 * w32font.c (logfont_to_fcname): New function.
15833 (Fx_select_font): New font dialog function compatible with
15834 GTK/fontconfig version.
15835
15836 * font.c (font_style_symbolic_from_value): New function.
15837 (font_style_symbolic): Use it.
15838
15839 * font.h (font_style_symbolic_from_value): Declare new function.
15840
15841 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
15842
15843 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
15844 <font-width-table>: Fix typos in docstrings.
15845
15846 2008-06-13 Daniel Engeler <engeler@gmail.com>
15847
15848 These changes add serial port access.
15849 * process.c: Add HAVE_SERIAL.
15850 (Fdelete_process, Fprocess_status, Fset_process_buffer)
15851 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
15852 (list_processes_1, select_wrapper, Fstop_process)
15853 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
15854 (status_notify): Modify to handle serial processes.
15855 [HAVE_SERIAL] (Fserial_process_configure)
15856 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
15857 New functions.
15858 * process.h (struct Lisp_Process): Add `type'.
15859 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
15860 New functions.
15861 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
15862 serial ports.
15863 (serial_open, serial_configure): New functions.
15864 * w32.h: Add FILE_SERIAL.
15865 (struct _child_process): Add ovl_read, ovl_write.
15866
15867 2008-06-13 Kenichi Handa <handa@m17n.org>
15868
15869 * dispextern.h (enum lface_attribute_index): New member
15870 LFACE_FOUNDRY_INDEX.
15871
15872 * font.c (font_score): Delete arg alternate_families. Check only
15873 weight, slant, width, and size. Ignore the difference of alias
15874 style symbols.
15875 (font_sort_entites): Adjust for the above change. Reflect the
15876 order of font-driver to scores.
15877 (font_list_entities): Don't check alternate_familes here.
15878 (font_clear_prop): Handle foundry.
15879 (font_update_lface): Don't parse "foundry-family" form here.
15880 Handle FONT_FOUNDRY_INDEX.
15881 (font_find_for_lface): Likewise. Handle alternate families here.
15882 If registry is nil, try iso8859-1 and ascii-0.
15883 (font_open_for_lface): Pay attention to size in ENTITY.
15884 (font_open_by_name): Simplify by calling font_load_for_lface.
15885 (free_font_driver_list): Delete it.
15886 (font_update_drivers): Preserve the order of backends.
15887 (syms_of_font): Setting of sort_shift_bits adjusted for the change
15888 of font_score and font_sort_entites.
15889 (font_update_sort_order): Likewise.
15890
15891 * xfaces.c (LFACE_FOUNDRY): New macro.
15892 (check_lface_attrs): Check foundry.
15893 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
15894 (merge_face_vectors): Check foundry.
15895 (merge_face_ref): Likewise.
15896 (Finternal_set_lisp_face_attribute): Likewise.
15897 (x_update_menu_appearance): Likewise.
15898 (Finternal_get_lisp_face_attribute): Likewise.
15899 (lface_hash): Likewise.
15900 (lface_same_font_attributes_p): Likewise.
15901 (x_supports_face_attributes_p): Likewise.
15902 (tty_supports_face_attributes_p): Likewise.
15903 (Finternal_set_alternative_font_family_alist): Intern strings.
15904 (Finternal_set_alternative_font_registry_alist): Downcase strings.
15905 (realize_default_face): Set LFACE_FOUNDRY (lface).
15906
15907 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
15908 font-driver at first.
15909
15910 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
15911
15912 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
15913
15914 * lread.c (Fload): Use xfree, not free on saved_doc_string.
15915
15916 2008-06-12 Jim Meyering <meyering@redhat.com>
15917
15918 Make unexec_free handle NULL the same way free does.
15919 * unexmacosx.c (unexec_free): Ignore a NULL argument.
15920
15921 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
15922
15923 * character.h (CHAR_TO_BYTE_SAFE): New macro.
15924 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
15925 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
15926 (WEAK_ALIAS): Simplify.
15927 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
15928 when searching a unibyte buffer.
15929
15930 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
15931
15932 * xfns.c (Fx_select_font): Rename from x-font-dialog.
15933
15934 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
15935
15936 * w32font.c: Include ctype.h.
15937
15938 2008-06-11 Jason Rumney <jasonr@gnu.org>
15939
15940 * w32font.c (w32font_encode_char): Detect missing glyphs that are
15941 misreported as space.
15942 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
15943 as aliases for registry iso10646-1.
15944
15945 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
15946
15947 * buffer.c (clone_per_buffer_values): Skip `name'.
15948
15949 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
15950
15951 * font.c (font_parse_fcname): Fix last change; accept decimal
15952 points in font size.
15953
15954 2008-06-10 Jason Rumney <jasonr@gnu.org>
15955
15956 * w32uniscribe.c (add_opentype_font_name_to_list):
15957 Skip non unicode fonts.
15958
15959 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
15960
15961 * xfns.c (Fx_font_dialog): New function.
15962
15963 * gtkutil.c (xg_dialog_response_cb): Rename from
15964 xg_file_response_callback.
15965 (pop_down_dialog): Rename from pop_down_file_dialog.
15966 (xg_get_file_name): Callers changed.
15967 (xg_get_font_name): New function.
15968
15969 * gtkutil.h (xg_get_font_name): Insert prototype.
15970
15971 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
15972
15973 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
15974 x_underline_minimum_display_offset.
15975 (syms_of_xdisp): Declare it here rather than in xterm.c.
15976 * dispextern.h (underline_minimum_offset): Declare it.
15977 * w32term.c (x_draw_glyph_string): Use it.
15978 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
15979 (syms_of_xterm): Don't declare it any more.
15980 (x_draw_glyph_string): Adjust to the new name.
15981
15982 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
15983
15984 * xterm.c (x_underline_minimum_display_offset): New var.
15985 (x_draw_glyph_string): Use it.
15986 (syms_of_xterm): Declare it.
15987
15988 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
15989
15990 * font.c (font_parse_fcname): Accept GTK-style font names too.
15991
15992 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
15993
15994 * dired.c (file_name_completion): Don't return t if the match is exact
15995 but with different capitalization.
15996 * minibuf.c (Ftry_completion): Simplify.
15997
15998 * window.c (Vwindow_point_insertion_type): New var.
15999 (set_window_buffer): Use it.
16000 (syms_of_window): Init and export it to Lisp.
16001
16002 2008-06-10 Kenichi Handa <handa@m17n.org>
16003
16004 * font.h (font_intern_prop): Prototype adjusted.
16005
16006 * font.c (font_intern_prop): New arg force_symbol.
16007 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
16008 Adjust for the change of font_intern_prop.
16009
16010 * ftfont.c (ftfont_pattern_entity):
16011 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
16012 (w32_registry):
16013 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
16014 the change of font_intern_prop.
16015
16016 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
16017
16018 * w32menu.c (digest_single_submenu): Declare extern.
16019
16020 2008-06-09 Jason Rumney <jasonr@gnu.org>
16021
16022 * w32term.c (x_make_frame_visible): Use alternate restore flags.
16023
16024 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
16025 (parse_single_submenu): Remove.
16026 (digest_single_submenu): Remove.
16027 (syms_of_w32menu): Don't initialise variables that have moved
16028 to menu.c.
16029 (set_frame_menubar): Sync with version in xmenu.c.
16030 (w32_menu_show): Sync with xmenu_show in xmenu.c.
16031
16032 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
16033 Make static again.
16034
16035 2008-06-09 Jason Rumney <jasonr@gnu.org>
16036
16037 Changes to w32 files related to the move of common menu code
16038 to menu.c on 2008-06-08 by Chong Yidong.
16039
16040 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
16041 defs to w32gui.h.
16042 (single_keymap_panes, push_menu_item, push_menu_pane):
16043 Make globally visible.
16044
16045 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
16046 (local_free, malloc_widget_value, free_widget_value)
16047 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
16048 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
16049 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
16050 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
16051 (menu_items, menu_items_allocated, menu_items_used)
16052 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
16053 (init_menu_items, finish_menu_items, discard_menu_items)
16054 (grow_menu_items, push_submenu_start, push_submenu_end)
16055 (push_left_right_boundary, push_menu_pane, push_menu_item)
16056 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
16057 (free_menubar_widget_tree_value, parse_single_submenu)
16058 (update_submenu_strings): Remove functions.
16059 (xmalloc_widget_value): Remove and declare extern.
16060
16061 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
16062 (OBJ1): Build it.
16063
16064 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
16065 (local_heap, local_alloc, local_free, malloc_widget_value)
16066 (free_widget_value): Define here.
16067
16068 2008-06-09 Kenichi Handa <handa@m17n.org>
16069
16070 * font.h (Qascii_0): Extern it.
16071
16072 * font.c (Qascii_0): New variable.
16073 (syms_of_font): DEFSYM it.
16074 (font_open_by_name): If the registry "iso8859-1" fails, try also
16075 "ascii-0".
16076
16077 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
16078
16079 2008-06-08 Kenichi Handa <handa@m17n.org>
16080
16081 * .gdbinit (xfont): New command.
16082
16083 2008-06-08 Andreas Schwab <schwab@suse.de>
16084
16085 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
16086 * Makefile.in (menu.o): Update dependencies.
16087
16088 * Makefile.in (obj): Always add menu.o.
16089 * emacs.c (main): Always call syms_of_menu.
16090 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
16091
16092 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
16093
16094 * Makefile.in: Compile menu.c.
16095
16096 * lisp.h: Declare syms_of_menu.
16097
16098 * emacs.c (main): Call syms_of_menu.
16099
16100 * keyboard.h: Relocate platform-independent menu definitions from
16101 xmenu.c.
16102
16103 * menu.c: New file. Relocate platform-independent menu
16104 definitions from xmenu.c. Suggested by Adrian Robert.
16105
16106 * xmenu.c: Remove platform-independent menu definitions.
16107 (menu_items, menu_items_inuse, menu_items_allocated)
16108 (menu_items_used, menu_items_n_panes)
16109 (menu_items_submenu_depth): Move to keyboard.h.
16110 (init_menu_items, finish_menu_items, unuse_menu_items)
16111 (discard_menu_items, restore_menu_items, save_menu_items)
16112 (grow_menu_items, push_submenu_start, push_submenu_end)
16113 (push_left_right_boundary, push_menu_pane, push_menu_item)
16114 (keymap_panes, single_keymap_panes, single_menu_item)
16115 (list_of_panes, list_of_items, find_and_call_menu_selection)
16116 (xmalloc_widget_value, free_menubar_widget_value_tree)
16117 (parse_single_submenu, digest_single_submenu)
16118 (update_submenu_strings): Move to menu.c.
16119
16120 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
16121
16122 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
16123
16124 2008-06-06 Miles Bader <miles@gnu.org>
16125
16126 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
16127 face, not frame default.
16128
16129 2008-06-05 Martin Rudalics <rudalics@gmx.at>
16130
16131 * window.c (pop_up_windows, pop_up_frames)
16132 (display_buffer_reuse_frames, Vpop_up_frame_function)
16133 (Vdisplay_buffer_function, Veven_window_heights)
16134 (Vspecial_display_buffer_names, Vspecial_display_regexps)
16135 (Vspecial_display_function, Vsame_window_buffer_names)
16136 (Vsame_window_regexps, split_height_threshold)
16137 (Vsplit_window_preferred_function): Move those vars to window.el.
16138 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
16139 (Fdisplay_buffer): Move those functions to window.el.
16140 (syms_of_window): Remove corresponding declarations.
16141 (display_buffer): New function.
16142 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
16143 * dispnew.c (Flast_nonminibuf_frame): New function.
16144 * buffer.c (Fpop_to_buffer): Move to window.el.
16145
16146 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
16147
16148 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
16149
16150 2008-06-05 Kenichi Handa <handa@m17n.org>
16151
16152 * coding.c (detect_coding): Fix previous change.
16153 (detect_coding_system): Likewise.
16154
16155 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
16156
16157 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
16158
16159 * keymap.c (Vminibuffer_local_filename_must_match_map):
16160 Rename from Vminibuffer_local_must_match_filename_map.
16161 (syms_of_keymap):
16162 * minibuf.c (Fcompleting_read): Adjust accordingly.
16163 * commands.h: Rename declaration as well.
16164
16165 2008-06-05 Kenichi Handa <handa@m17n.org>
16166
16167 * font.c (Ffont_spec): Don't use font_parse_family_registry for
16168 family name.
16169 (Ffont_put): Likewise.
16170
16171 * fontset.c (fontset_find_font): Call font_open_for_lface with the
16172 current font-spec.
16173
16174 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
16175 is unspecified.
16176
16177 * xfaces.c (realize_x_face): If the font-related face attributes
16178 are the same as those of default face, realize a new fontset from
16179 default->fontset.
16180 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
16181
16182 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
16183
16184 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
16185 (move_it_in_display_line): New wrapper.
16186
16187 * window.c (window_scroll_pixel_based_preserve_x)
16188 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
16189 (window_scroll_pixel_based, window_scroll_line_based):
16190 Use them to preserve column positions.
16191 (syms_of_window): Initialize them.
16192
16193 * indent.c (Fvertical_motion): Extend first arg to allow passing an
16194 (HPOS . VPOS) pair.
16195
16196 * dispextern.h (move_it_in_display_line): Declare.
16197
16198 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
16199
16200 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
16201 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
16202 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
16203
16204 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
16205
16206 * window.c (Fset_window_parameter): Doc fix.
16207 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
16208
16209 2008-06-04 Joakim Verona <joakim@verona.se>
16210
16211 * window.h (struct window): Add new member window_parameters.
16212
16213 * window.c (Fwindow_parameters, Fwindow_parameter)
16214 (Fset_window_parameter): New defuns.
16215 (syms_of_window): Defsubr the new defuns.
16216 (make_window): Initialize window_parameters to nil.
16217
16218 2008-06-04 John Paul Wallington <jpw@pobox.com>
16219
16220 * eval.c (Fdefmacro): Doc fix.
16221
16222 2008-06-04 Kenichi Handa <handa@m17n.org>
16223
16224 * coding.c (detect_coding): Fix handling of coding->head_ascii.
16225 Be sure to call setup_coding_system when we find a proper coding system.
16226 (detect_coding_system): Fix handling of coding->head_ascii.
16227
16228 2008-06-03 Andreas Schwab <schwab@suse.de>
16229
16230 * font.c (font_prop_validate_spacing): Fix last change.
16231
16232 2008-06-03 Kenichi Handa <handa@m17n.org>
16233
16234 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
16235 (font_parse_fcname): Fix handling of unknown key.
16236
16237 * xfont.c (xfont_list): Try an alias.
16238
16239 * charset.c (char_charset): Return NULL if the arg charset_list is
16240 specified and C doesn't belong to any of them.
16241
16242 2008-06-02 Chip Coldwell <coldwell@redhat.com>
16243
16244 * font.c (font_pixel_size): Don't take cdr of an integer.
16245
16246 2008-06-02 Jim Meyering <meyering@redhat.com>
16247
16248 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
16249 * alloc.c (xfree): Return right away for a NULL arg.
16250 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
16251 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
16252 * mac.c (create_apple_event_from_event_ref): Likewise.
16253 (create_apple_event_from_drag_ref, cfstring_create_normalized):
16254 Likewise.
16255 * doprnt.c (doprnt1): Likewise.
16256 * frame.c (frame): Likewise.
16257 * keyboard.c (wipe_kboard): Likewise.
16258 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
16259 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
16260 * term.c (tty_default_color_capabilities, maybe_fatal)
16261 (delete_tty): Likewise.
16262 * w16select.c (string): Likewise.
16263 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
16264 * w32bdf.c (w32_free_bdf_font): Likewise.
16265 * w32fns.c (w32_unload_font): Likewise.
16266 * w32font.c (w32font_close): Likewise.
16267 * window.c (size_window): Likewise.
16268 * xselect.c (receive_incremental_selection): Likewise.
16269 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
16270 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
16271 * w32.c (stat): Likewise.
16272
16273 Remove useless if-before-free tests.
16274 * editfns.c (Fset_time_zone_rule): Likewise.
16275 * lread.c (nosuffix): Likewise.
16276 * ralloc.c (get_bloc): Likewise.
16277 * regex.c (reg_free): Likewise.
16278 * xftfont.c (xftfont_open, xftfont_close): Likewise.
16279 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
16280 * xsmfns.c (smc_save_yourself_CB): Likewise.
16281
16282 2008-06-02 Kenichi Handa <handa@m17n.org>
16283
16284 * font.c (font_find_for_lface): Handle float font size.
16285 (font_open_for_lface): Likewise.
16286
16287 * xfaces.c (x_supports_face_attributes_p): Check face->font before
16288 comparing the properties.
16289
16290 2008-06-01 Jason Rumney <jasonr@gnu.org>
16291
16292 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
16293 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
16294 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
16295 Don't add empty script list.
16296 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
16297
16298 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
16299
16300 * Makefile.in (dot, dotdot): Remove, update users.
16301 ".." has been used elsewhere in the file for a long time.
16302 (LIBXT_STATIC): Remove conditional based on unused variable.
16303
16304 2008-06-01 Miles Bader <miles@gnu.org>
16305
16306 * xfaces.c (Vface_remapping_alist): New variable.
16307 (syms_of_xfaces): Initialize it.
16308 (enum named_merge_point_kind): New type.
16309 (struct named_merge_point): Add `named_merge_point_kind' field.
16310 (push_named_merge_point): Make cycle detection respect different
16311 named-merge-point kinds.
16312 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
16313 Remove face-name alias resolution.
16314 (lface_from_face_name): New definition using
16315 `lface_from_face_name_no_resolve'.
16316 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
16317 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
16318 (get_lface_attributes): New definition that layers face-remapping on
16319 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
16320 (lookup_basic_face): New function.
16321 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
16322 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
16323 `get_lface_attributes'.
16324 (face_at_buffer_position): Use `lookup_basic_face' to lookup
16325 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
16326 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
16327
16328 * xdisp.c (init_iterator): Pass base_face_id through
16329 `lookup_basic_face' when we actually use it as a face-id.
16330 (handle_single_display_prop): Use `lookup_basic_face' to lookup
16331 DEFAULT_FACE_ID.
16332
16333 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
16334 lookup the initial face-id.
16335
16336 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
16337
16338 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
16339
16340 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
16341 (Fremove_text_properties): Fix typos in docstrings.
16342
16343 2008-05-31 Kenichi Handa <handa@m17n.org>
16344
16345 * font.c (font_list_entities): Fix the car part of data to be
16346 stored in the cache.
16347
16348 * ftfont.c (ftfont_font_format): Don't use strcasestr.
16349
16350 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
16351
16352 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
16353 Add a `test' argument so another predicate than `equal' can be used.
16354 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
16355 (map_char_table): Remove unused vars `c' and `i'.
16356 * lisp.h (Foptimize_char_table): Adjust declaration.
16357 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
16358
16359 2008-05-30 Kenichi Handa <handa@m17n.org>
16360
16361 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
16362 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
16363 defined.
16364
16365 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
16366
16367 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
16368 (Fmake_variable_frame_local): Disallow mixing buffer-local and
16369 frame-local settings for the same variable.
16370
16371 2008-05-30 Kenichi Handa <handa@m17n.org>
16372
16373 * fontset.c (Ffont_info): Move to font.c.
16374 (syms_of_fontset): Delete defsubr of Sfont_info.
16375
16376 * font.c (font_style_to_value, font_score): Delete casting of the
16377 args to xstcasecmp.
16378 (register_font_driver): Increment num_font_drivers only when
16379 registering the driver globally.
16380 (Ffont_info): Move from fontset.c. Handle a font object too.
16381 (syms_of_font): Defsubr Sfont_info.
16382
16383 2008-05-29 Kenichi Handa <handa@m17n.org>
16384
16385 * coding.h (enum define_coding_utf8_arg_index): New enum.
16386 (enum coding_attr_index): Change coding_attr_utf_16_bom to
16387 coding_attr_utf_bom.
16388 (enum utf_bom_type): Rename from utf_16_bom_type.
16389 (struct utf_16_spec): Adjust for the above change.
16390 (struct coding_system): Add utf_8_bom in `spec' union.
16391
16392 * coding.c (CODING_UTF_8_BOM): New macro.
16393 (enum coding_category): Delete coding_category_utf_8, add
16394 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
16395 coding_category_utf_8_sig.
16396 (CATEGORY_MASK_UTF_8): Delete it.
16397 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
16398 (CATEGORY_MASK_UTF_8_SIG): New macros.
16399 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
16400 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
16401 CATEGORY_MASK_UTF_8_SIG.
16402 (CATEGORY_MASK_UTF_8): New macro.
16403 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
16404 (detect_coding_utf_8): Check BOM.
16405 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
16406 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
16407 (encode_coding_utf_16): Likewise.
16408 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
16409 (detect_coding, detect_coding_system): Handle utf-8-auto.
16410 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
16411 (syms_of_coding): Fix setting up of Vcoding_category_table.
16412
16413 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
16414
16415 * process.c (Faccept_process_output): If `millisec' is non-nil,
16416 `seconds' default to 0.
16417 (wait_reading_process_output): Also return non-nil if we read output
16418 from a non-running process.
16419
16420 2008-05-29 Jason Rumney <jasonr@gnu.org>
16421
16422 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
16423 `raster' specified.
16424 (add_font_entity_to_list): Allow non-opentype truetype fonts back
16425 in the uniscribe backend, but disallow any font that has no
16426 unicode subrange support.
16427
16428 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
16429
16430 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
16431 Fix typos in docstrings.
16432
16433 2008-05-29 Kenichi Handa <handa@m17n.org>
16434
16435 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
16436 (Fx_family_fonts): Set frame correctly.
16437
16438 2008-05-28 Jason Rumney <jasonr@gnu.org>
16439
16440 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
16441
16442 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
16443
16444 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
16445 calling build_annotations.
16446
16447 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
16448
16449 * coding.c (Fdecode_coding_region, Fencode_coding_region)
16450 (Fencode_coding_string):
16451 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
16452 <latin-extra-code-table>: Fix typos in docstrings.
16453 (syms_of_coding) <coding-system-alist>: Doc fix.
16454 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
16455
16456 2008-05-28 Kenichi Handa <handa@m17n.org>
16457
16458 * fontset.c (Ffont_info): Don't call font_close_object.
16459
16460 * font.c (font_parse_family_registry): Use Ffont_put to validate
16461 foundry and family.
16462 (font_delete_unmatched): Don't check spacing.
16463 (font_list_entities): Add spacing to the spec to list fonts.
16464
16465 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
16466 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
16467
16468 * coding.c (encode_coding_raw_text): Fix previous change.
16469 (encode_coding_object): When the dst_object is a buffer and is
16470 different from src_object, move gap to PT.
16471
16472 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
16473
16474 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
16475
16476 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
16477
16478 * coding.c (encode_coding_raw_text): Set coding->produced_char for
16479 all branches. Compute it differently.
16480
16481 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
16482
16483 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
16484
16485 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
16486 into "else if () ... else ...".
16487
16488 2008-05-27 Jason Rumney <jasonr@gnu.org>
16489
16490 * w32font.c (w32font_open_internal): Determine if glyph indices
16491 are likely to work here.
16492
16493 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
16494
16495 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
16496 draw overlap glyphs with appropriate highlighting.
16497
16498 2008-05-27 Kenichi Handa <handa@m17n.org>
16499
16500 * xfont.c (xfont_open): Fix calculation of font->average_width.
16501
16502 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
16503
16504 * casefiddle.c (casify_object): Try to guess better whether the
16505 argument is a byte or a char.
16506
16507 2008-05-26 Andreas Schwab <schwab@suse.de>
16508
16509 * xselect.c (x_reply_selection_request): Properly handle format == 32.
16510 Always send multiples of format size.
16511
16512 * xterm.c (x_set_frame_alpha): Fix type mismatch.
16513
16514 2008-05-26 Jason Rumney <jasonr@gnu.org>
16515
16516 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
16517 (compute_metrics): Don't set failure if we just cleared the cache.
16518 (w32_weight_table): Remove unused variable.
16519 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
16520 backwards compatibility.
16521
16522 2008-05-25 Kenichi Handa <handa@m17n.org>
16523
16524 * w32term.c (x_draw_glyph_string):
16525 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
16526
16527 * xfaces.c: Delete unused function prototypes.
16528 (xstrlwr, font_frame): Delete them.
16529 (clear_face_cache): Delete unused variable.
16530
16531 * xftfont.c (xftfont_open): Delete unused variable.
16532 If underline_thickness is not 1, adjust underline_position.
16533
16534 * ftxfont.c (ftxfont_open): Delete unused variable.
16535
16536 * fontset.c (face_for_char): Optimize for the case of no charset
16537 property.
16538
16539 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
16540 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
16541 (otf_open, font_otf_capability, generate_otf_features)
16542 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
16543 Comment out by surrounding "#if 0" and "#endif" for the moment.
16544 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
16545 (syms_of_font): Codes for accessing above commented out.
16546
16547 2008-05-24 Eli Zaretskii <eliz@gnu.org>
16548
16549 * w32proc.c: Include dispextern.h.
16550
16551 * w32.c: Include dispextern.h.
16552
16553 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
16554
16555 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
16556 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
16557 Fix typos in docstrings.
16558
16559 2008-05-23 Jason Rumney <jasonr@gnu.org>
16560
16561 * xsmfns.c: Remove includes that are already included by config.h.
16562
16563 2008-05-23 Kenichi Handa <handa@m17n.org>
16564
16565 * charset.c (Qemacs, charset_emacs): New variables.
16566 (char_charset): Fix for non-Unicode characters.
16567 (syms_of_charset): Define charset_emacs.
16568
16569 * w32term.c (x_draw_glyph_string): Be sure to update
16570 s->underline_thickness and s->underline_position. Be sure to draw
16571 underline within the current line area.
16572
16573 * xterm.c (x_draw_glyph_string): Be sure to update
16574 s->underline_thickness and s->underline_position. Be sure to draw
16575 underline within the current line area.
16576
16577 * fontset.c: Delete unused variables and add casting for char *
16578 throughout the file.
16579 (fontset_font): Try the fallback fonts of the current fontset
16580 before consulting the default fontset.
16581
16582 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
16583
16584 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
16585
16586 2008-05-22 Jason Rumney <jasonr@gnu.org>
16587
16588 * font.c: Don't include strings.h.
16589
16590 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
16591
16592 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
16593 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
16594 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
16595 to call xstrcasecmp.
16596
16597 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
16598
16599 * fontset.c (fs_query_fontset): Use xstrcasecmp.
16600
16601 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
16602
16603 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
16604
16605 2008-05-22 Kenichi Handa <handa@m17n.org>
16606
16607 * puresize.h (BASE_PURESIZE): Increase to 1220000.
16608
16609 * font.c (font_prop_validate_style): Adjust for the format
16610 change of font_style_table.
16611
16612 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
16613 two args.
16614
16615 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
16616 two args.
16617
16618 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
16619
16620 * minibuf.c (keys_of_minibuf): Delete.
16621 * lisp.h (keys_of_minibuf): Delete.
16622 * emacs.c (main): Don't call keys_of_minibuf.
16623
16624 2008-05-22 Kenichi Handa <handa@m17n.org>
16625
16626 * ftfont.c (ftfont_resolve_generic_family): Rename from
16627 ftfont_list_generic_family. Return a single family for each
16628 generic family.
16629 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
16630 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
16631 Call font_add_log.
16632 (ftfont_match): Call font_add_log.
16633
16634 * font.h (Ffont_xlfd_name): EXFUN adjusted.
16635 (FONT_DEBUG): Define it.
16636 (font_add_log): Extern it.
16637 (font_assert): Rename from xassert.
16638
16639 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
16640 (xfont_list_family): Call font_add_log.
16641 (xfont_match): Likewise.
16642 (memq_no_quit): Delete.
16643
16644 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
16645 call of Ffont_xlfd_name.
16646
16647 * xfaces.c (struct table_entry, slant_table, weight_table)
16648 (swidth_table): Move to font.c.
16649
16650 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
16651 xassert are changed to font_assert. Delete many unused variables.
16652 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
16653 New variables.
16654 (struct table_entry): Move from xfaces.c and modified.
16655 (weight_table, slant_table, width_table): Move from xfaces.c and
16656 contents adjusted for the change of struct table_entry.
16657 (font_style_to_value, font_style_symbolic): Adjust for the
16658 format change of font_style_table.
16659 (font_parse_family_registry): Don't overwrite existing foundry and
16660 family of font_spec.
16661 (font_score): Fix calculation of diff for sizes.
16662 (font_sort_entites): Call font_add_log.
16663 (font_delete_unmatched): Return a newly created list.
16664 (font_list_entities): Fix previous change. Call font_add_log.
16665 (font_matching_entity, font_open_entity, font_close_entity):
16666 Call font_add_log.
16667 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
16668 (Finternal_set_font_style_table): Delete.
16669 (BUILD_STYLE_TABLE): New macro.
16670 (build_style_table): New function.
16671 (Vfont_log, font_log_env_checked): New variables.
16672 (font_add_log): New function.
16673 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
16674 Declare Lisp variables "font-weight-table", "font-slant-table",
16675 "font-width-table", and "font-log". Initialize font_style_table.
16676
16677 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
16678
16679 * xterm.c (x_set_frame_alpha): Move declarations before statements.
16680
16681 2008-05-21 Seiji Zenitani <zenitani@mac.com>
16682 Ryo Yoshitake <ryo@shiftmode.net>
16683
16684 * frame.c (Qalpha): Add a new frame parameter `alpha'.
16685 (Vframe_alpha_lower_limit): New variable.
16686 (x_set_alpha): New function.
16687
16688 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
16689
16690 * xfns.c (x-create-frame, Qalpha):
16691 Initialize the frame parameter `alpha'.
16692 * xterm.c (OPAQUE, OPACITY): New.
16693 (x_set_frame_alpha): New function.
16694 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
16695
16696 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
16697 * w32fns.c (w32_frame_parm_handlers): Likewise.
16698
16699 2008-05-20 Jason Rumney <jasonr@gnu.org>
16700
16701 * w32font.c (add_font_entity_to_list): Don't add non-opentype
16702 truetype fonts to opentype list.
16703
16704 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
16705
16706 * fontset.c (Ffontset_info): Doc fix.
16707 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
16708 <ignore-relative-composition>: Fix typos in docstrings.
16709
16710 * font.c (syms-of-font) <font-encoding-alist>:
16711 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
16712 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
16713 (Ffont_otf_alternates): Doc fixes.
16714
16715 2008-05-20 Kenichi Handa <handa@m17n.org>
16716
16717 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
16718 font.h through out the file.
16719 (FONT_DRIVERS): Rename from FONTOBJ.
16720 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
16721 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
16722
16723 * emacs.c (main): Call syms_of_font unconditionally.
16724
16725 * font.h (find_font_encoding): Extern it.
16726
16727 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
16728 fontset.c.
16729 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
16730 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
16731 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
16732 only when HAVE_WINDOW_SYSTEM is defined.
16733 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
16734 when HAVE_WINDOW_SYSTEM is defined.
16735
16736 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
16737 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
16738
16739 * xfaces.c: Include font.h unconditionally.
16740 (merge_face_ref, merge_face_vectors)
16741 (Finternal_set_lisp_face_attribute): Cancel the previous change.
16742
16743 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
16744
16745 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
16746 indirect_variable.
16747 * eval.c (lisp_indirect_variable): New fun.
16748 (Fuser_variable_p): Use it.
16749
16750 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
16751
16752 * lisp.h (indirect_variable):
16753 * data.c (indirect_variable, let_shadows_buffer_binding_p):
16754 Use Lisp_Symbol pointers rather than Lisp_Object.
16755 Adjust callers.
16756 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
16757 To this end, change calling-convention.
16758
16759 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
16760 if some non-hidden buffers are selected by string&pred.
16761
16762 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
16763
16764 * process.c (wait_reading_process_output): Always check status
16765 when in batch mode.
16766
16767 2008-05-19 Kenichi Handa <handa@m17n.org>
16768
16769 * font.c (font_list_entities): Fix handling of cache.
16770 (font_matching_entity): Likewise.
16771
16772 * ftfont.c (cs_iso8859_1): Delete.
16773 (ft_face_cache): New variable.
16774 (struct ftfont_info): New member fc_charset_idx.
16775 (ftfont_build_basic_charsets): Delete.
16776 (fc_charset_table): New variable.
16777 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
16778 . FC_CHARSET_IDX) as :font-entity property in the font entity.
16779 Callers changed.
16780 (ftfont_lookup_cache, ftfont_get_charset): New functions.
16781 (ftfont_spec_pattern): New argument fc_charset_idx.
16782 Check registry more rigidly. Change callers.
16783 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
16784 change of :font-entity property of the font.
16785
16786 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
16787 property of the font.
16788
16789 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
16790
16791 * coding.c (Fcoding_system_p): Rename argument to match docstring.
16792 (Funencodable_char_position, Fcheck_coding_systems_region)
16793 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
16794 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
16795 (Ffind_operation_coding_system, Fset_coding_system_priority)
16796 (Fcoding_system_eol_type): Doc fixes.
16797
16798 2008-05-17 Glenn Morris <rgm@gnu.org>
16799
16800 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
16801
16802 2008-05-16 Eli Zaretskii <eliz@gnu.org>
16803
16804 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
16805 and st_gid.
16806
16807 * frame.c (Fdelete_frame): Don't call font_update_drivers if
16808 HAVE_WINDOW_SYSTEM is not defined.
16809
16810 * xfaces.c (merge_face_ref, merge_face_vectors)
16811 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
16812 HAVE_WINDOW_SYSTEM is defined.
16813 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
16814
16815 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
16816
16817 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
16818
16819 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16820
16821 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
16822
16823 2008-05-15 Kenichi Handa <handa@m17n.org>
16824
16825 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
16826 preference.
16827
16828 2008-05-15 Glenn Morris <rgm@gnu.org>
16829
16830 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
16831
16832 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
16833
16834 * fns.c (init_fns): Don't initialize weak_hash_tables here.
16835 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
16836
16837 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
16838
16839 2008-05-15 Kenichi Handa <handa@m17n.org>
16840
16841 * ftfont.c (ftfont_list): Downcase family name to check generic
16842 families.
16843
16844 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
16845 font-spec for QCfont value.
16846
16847 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
16848 buffer. Check the return value of it.
16849
16850 2008-05-14 Jason Rumney <jasonr@gnu.org>
16851
16852 * w32term.c (w32_get_glyph_overhangs): Remove.
16853 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
16854
16855 2008-05-14 Kenichi Handa <handa@m17n.org>
16856
16857 * font.c (font_prop_validate): Make nil a valid value.
16858 (font_clear_cache): Check if the cached vector of entities is nil
16859 or not.
16860
16861 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16862
16863 * emacs.c (main_thread): Conditionalize on
16864 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
16865 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
16866
16867 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
16868 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
16869 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
16870
16871 2008-05-14 Kenichi Handa <handa@m17n.org>
16872
16873 * coding.c (detect_coding_iso_2022): Ignore a coding category that
16874 has no corresponding coding system.
16875
16876 2008-05-14 Jason Rumney <jasonr@gnu.org>
16877
16878 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
16879
16880 * w32font.h (w32font_open_internal): Update declaration.
16881
16882 * w32font.c (w32font_open_internal): Change last argument from
16883 w32font_info struct to font object. Fill in font object from
16884 font_entity. Get Outline metrics if possible. Use them to
16885 calculate underline position and thickness. Use xlfd name as name
16886 property. Don't set codepage.
16887 (w32font_open): Pass font_object to w32font_open_internal. Don't
16888 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
16889 (w32font_draw): Use s->font.
16890 (clear_cached_metrics): Don't clear non-existent blocks.
16891
16892 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
16893 font was not found.
16894 (x_draw_glyph_string): Use underline position and thickness from font.
16895
16896 * w32uniscribe.c (uniscribe_open): Pass font_object to
16897 w32font_open_internal.
16898
16899 2008-05-14 Kenichi Handa <handa@m17n.org>
16900
16901 These changes are to delete all legacy font-handling codes, and
16902 make Emacs use only font-backends.
16903
16904 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
16905 (frame.o, image.o, print.o): Depend on $(FONTSRC).
16906
16907 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
16908
16909 * charset.h (Vcharset_non_preferred_head)
16910 (Vcurrent_iso639_language): Extern them.
16911
16912 * charset.c (Vcharset_non_preferred_head): New variable.
16913 (Vcurrent_iso639_language): New variable.
16914 (syms_of_charset): Declare it as a Lisp variable.
16915 (char_charset): Don't check non preferred charsets. As a last
16916 resort, return charset_unicode.
16917 (Fset_charset_priority): Update Vcharset_non_preferred_head.
16918
16919 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
16920 conditionals. Don't check enable_font_backend. Delete all codes
16921 used only when USE_FONT_BACKEND is not defined.
16922
16923 * dispextern.h (struct glyph_string): Change type of `font' to
16924 `struct font *'.
16925 (struct glyph_string): New member underline_position and
16926 underline_thickness.
16927 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
16928 (struct face): Change type of `font' to `struct font *'. Remove
16929 members `font_name', `font_info_id'.
16930 (per_char_metric, encode_char): Delete externs.
16931 (calc_pixel_width_or_height): Adjust the prototype.
16932
16933 * emacs.c (enable_font_backend): Delete extern.
16934 (main): Don't set enable_font_backend. Don't check the command
16935 line argument "-disable-font-backend".
16936
16937 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
16938 (enum font_property_index): New members FONT_DPI_INDEX,
16939 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
16940 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
16941 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
16942 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
16943 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
16944 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
16945 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
16946 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
16947 (struct font_spec, struct font_entity): New structs.
16948 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
16949 (struct font): Many members from old "struct font_info" moved to
16950 here. Members font and entity deleted.
16951 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
16952 the new font-related objects.
16953 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
16954 (CHECK_FONT_GET_OBJECT): Likewise.
16955 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
16956 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
16957 (struct font_driver): New members case_sensitive anc check. Type
16958 of the member list and open changed.
16959 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
16960 (font_symbolic_width, font_find_object, font_get_spec)
16961 (font_set_lface_from_name): Delete extern.
16962 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
16963
16964 * font.c: Include <strings.h>.
16965 (enable_font_backend): Delete it.
16966 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
16967 (CHECK_VALIDATE_FONT_SPEC): Delete it.
16968 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
16969 (null_string): Delete it.
16970 (null_vector): Make it static.
16971 (font_family_alist): Delete it.
16972 (Qnormal): Extern it.
16973 (QCextra, QClanguage): Delete it.
16974 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
16975 (font_make_spec, font_make_entity, font_make_object)
16976 (font_intern_prop): Renamed from intern_downcase. Don't downcase
16977 the string. Callers changed.
16978 (font_pixel_size): Adjusted for the format change of font-related
16979 objects.
16980 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
16981 (font_style_to_value, font_style_symbolic): New function.
16982 (build_font_family_alist): Delete it.
16983 (font_registry_charsets): Use Fassoc_string instead of
16984 assq_no_quit.
16985 (font_prop_validate_symbol): Don't return null_string.
16986 (font_prop_validate_style): Adjusted for the change of
16987 style-related values in a font vector.
16988 (font_property_table): Delete entries for QClanguage and
16989 QCantialias, add entries for QCavgwidth.
16990 (get_font_prop_index): Delete the 2nd argument FROM.
16991 (font_prop_validate): Arguments changed.
16992 (font_put_extra): Adjusted for the change of font-related objects.
16993 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
16994 (font_parse_fcname, font_unparse_fcname)
16995 (font_prepare_composition): Likewise.
16996 (font_parse_family_registry): Renamed from font_merge_old_spec.
16997 (otf_open): Delete the 1st arg entity.
16998 (font_otf_capability): Adjusted for the above change.
16999 (font_score): New arg alternate_families. Adjusted for the change
17000 of font-related objects.
17001 (font_sort_entites): New arg best_only.
17002 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
17003 Delete them.
17004 (font_match_p): Check alternate families.
17005 (font_find_object): Delete it.
17006 (font_check_object): New function.
17007 (font_clear_cache): Adjusted for the change of font-related objects.
17008 (font_delete_unmatched): New arg.
17009 (font_list_entities): Call font_driver->list with a spec that
17010 doesn't specify style-related properties.
17011 (font_matching_entity): Arguments changed. Caller changed.
17012 (font_open_entity): Adjusted for the change of font-related objects.
17013 (font_close_object, font_has_char, font_encode_char)
17014 (font_get_name, font_get_spec): Likewise.
17015 (font_spec_from_name, font_clear_prop, font_update_lface):
17016 New functions.
17017 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
17018 (font_prepare_for_face, font_done_for_face, font_open_by_name)
17019 (font_at): Adjusted for the change of font-related objects.
17020 (font_range): New function.
17021 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
17022 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
17023 (Fcopy_font_spec, Fmerge_font_spec): New function.
17024 (Ffont_family_list): Renamed from list-families.
17025 (Finternal_set_font_style_table): Arguments changed.
17026 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
17027 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
17028 change of font-related objects.
17029 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
17030
17031 * fontset.h (struct font_info): Delete it. Most members go to
17032 struct font.
17033 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
17034 (enum FONT_SPEC_INDEX): Delete it.
17035 (font_info, list_fonts_func, load_font_func, query_font_func)
17036 (set_frame_fontset_func, find_ccl_program_func)
17037 (get_font_repertory_func, new_fontset_from_font_name): Delete
17038 externs.
17039 (fontset_from_font_name): Extern it.
17040 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
17041 (FONT_INFO_FROM_FACE): Deleted.
17042 (face_for_font): Adjust prototype.
17043
17044 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
17045 conditionals. Don't check enable_font_backend. Delete all codes
17046 used only when USE_FONT_BACKEND is not defined.
17047 (get_font_info_func, list_font_func, load_font_func)
17048 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
17049 (get_font_repertory_func): Delete them.
17050 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
17051 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
17052 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
17053 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
17054 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
17055 (fontset_compare_rfontdef): New function.
17056 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
17057 rfont-defs by qsort. Adjusted for the change of font-group vector.
17058 (load_font_get_repertory): Deleted.
17059 (fontset_find_font): Use new macros to ref/set elements of
17060 font-def and rfont-def.
17061 (fontset_font): Fix the timing of remembering that no font for C.
17062 (free_face_fontset): Do nothing if the face has no fontset.
17063 (face_suitable_for_char_p): Use new macros to ref/set elements of
17064 rfont-def.
17065 (face_for_char): Likewise. Call face_for_char with font_object.
17066 (fs_load_font): Delete. Delete #pragma surrounding it.
17067 (fs_query_fontset): Use strcasecmp instead of strcmp.
17068 (generate_ascii_font_name): Adjusted for the format change of
17069 font-spec.
17070 (Fset_fontset_font): Likewise. Use new macros to set elements of
17071 font-def.
17072 (Fnew_fontset): Use font_unparse_xlfd to generate
17073 FONTSET_ASCII (fontset).
17074 (new_fontset_from_font_name): Deleted.
17075 (fontset_from_font): Renamed from new_fontset_from_font. Check if
17076 a fontset is already created for the font. FIx updating of
17077 Vfontset_alias_alist.
17078 (fontset_ascii_font): Deleted.
17079 (Ffont_info): Adjusted for the format change of font-spec.
17080 (Finternal_char_font): Likewise.
17081 (Ffontset_info): Likewise.
17082 (syms_of_fontset): Don't check load_font_func.
17083
17084 * fns.c (internal_equal): Handle PREV_FONT.
17085
17086 * frame.h: Delete USE_FONT_BACKEND conditional.
17087
17088 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
17089 conditionals. Don't check enable_font_backend. Delete all codes
17090 used only when USE_FONT_BACKEND is not defined.
17091 (x_set_font): Call x_new_font, not x_new_fontset2.
17092 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
17093 already set for the frame.
17094
17095 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
17096 a font-entity by font_make_entity. Use font_intern_prop instead
17097 of intern_downcase. Use FONT_SET_STYLE to set a style-related
17098 font property. If a font is scalable, set avgwidth property to 0.
17099 Set font-entity property by font_put_extra.
17100 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
17101 (ffont_driver): Adjusted for the change of struct font_driver.
17102 (ftfont_spec_pattern): New function.
17103 (ftfont_list): Return a list, not vector.
17104 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
17105 (ftfont_list_family): Don't downcase names.
17106 (ftfont_free_entity): Deleted.
17107 (ftfont_open): Return a font-object. Adjusted for the change of
17108 struct font. Get underline_thickness and underline_position from
17109 font property. Don't update dpyinfo->smallest_font_height and
17110 dpyinfo->smallest_char_width.
17111 (ftfont_close): Don't free `struct font'.
17112 (ftfont_has_char): Adjusted for the format change of font-entity.
17113 (ftfont_encode_char, ftfont_text_extents): Likewise.
17114
17115 * ftxfont.c (ftxfont_list): Return a list, not vector.
17116 (ftxfont_open): Return a font-object. Adjusted for the change of
17117 struct font. Get underline_thickness and underline_position from
17118 font property. Don't update dpyinfo->smallest_font_height and
17119 dpyinfo->smallest_char_width.
17120 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
17121 (ftxfont_draw): Adjusted for the change of struct font.
17122
17123 * image.c (image_ascent): Don't include "charset.h". Include
17124 "character.h" and "font.h".
17125
17126 * lisp.h (enum pvec_type): New member PREV_FONT.
17127 (Fassoc_string): EXFUN it.
17128
17129 * print.c: Include font.h.
17130 (print_object): Handle font-related objects.
17131
17132 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
17133 conditionals. Don't check enable_font_backend. Delete all codes
17134 used only when USE_FONT_BACKEND is not defined.
17135 (handle_auto_composed_prop): Do nothing if it->f is not on a
17136 window system. Check how many following characters can be
17137 displayed by the same font.
17138 (calc_pixel_width_or_height): Type of the 4th arg is changed to
17139 'struct font *'.
17140 (get_char_face_and_encoding): Assign the whole encoding task to
17141 the `encode-char' method of a font driver.
17142 (fill_composite_glyph_string): Adjusted for the change of `struct
17143 face' and `struct glyph_string'.
17144 (fill_glyph_string): Likewise.
17145 (get_per_char_metric): Arguments changed.
17146 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
17147 and `struct glyph_string'.
17148 (produce_stretch_glyph, calc_line_height_property)
17149 (x_produce_glyphs): Likewise.
17150
17151 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
17152 conditionals. Don't check enable_font_backend. Delete all codes
17153 used only when USE_FONT_BACKEND is not defined. Use
17154 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
17155 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
17156 (Qp): Extern them.
17157 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
17158 Deleted.
17159 (struct font_name): Deleted.
17160 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
17161 (compare_fonts_by_sort_order): New function.
17162 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
17163 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
17164 Deleted.
17165 (Fx_family_fonts): Use font_list_entities, and sort fonts by
17166 compare_fonts_by_sort_order.
17167 (Fx_font_family_list): Call Ffont_family_list.
17168 (face_numeric_value, face_numeric_weight, face_numeric_slant)
17169 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
17170 (face_symbolic_slant, face_symbolic_swidth)
17171 (split_font_name_into_vector, build_font_name_from_vector)
17172 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
17173 (font_rescale_ratio, split_font_name, build_font_name)
17174 (free_font_names, sort_fonts, x_face_list_fonts)
17175 (face_font_available_p, sorted_font_list, cmp_font_names)
17176 (font_list_1, concat_font_list, font_list, remove_duplicates):
17177 Deleted.
17178 (Fx_list_fonts): Use Ffont_list.
17179 (LFACE_AVGWIDTH): Deleted.
17180 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
17181 by FONTP.
17182 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
17183 (set_lface_from_font_name): Delete it.
17184 (set_lface_from_font): Renamed from
17185 set_lface_from_font_and_fontset. Caller changed. Don't set
17186 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
17187 for face.
17188 (merge_face_vectors): Copy font-spec if necessary.
17189 Clear properties of the font-spec if necessary.
17190 (merge_face_ref): Clear properties of the font-spec if necessary.
17191 (Finternal_set_lisp_face_attribute): Likewise.
17192 (set_font_frame_param): Use font_load_for_lface to load a
17193 font-object, and call Fmodify_frame_parameters with it.
17194 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
17195 font name by Ffont_xlfd_name.
17196 (Finternal_lisp_face_attribute_values): Don't check QCweight,
17197 QCslant, and QCwidth.
17198 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
17199 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
17200 Compare fonts by EQ.
17201 (lookup_non_ascii_face): Deleted.
17202 (face_for_font): The 2nd argument changed.
17203 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
17204 Check atomic font properties by case insensitive.
17205 (realize_non_ascii_face): Set face->overstrike correctly.
17206 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
17207 (dump_realized_face): Get font name from
17208 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
17209
17210 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
17211 conditionals. Don't check enable_font_backend. Delete all codes
17212 used only when USE_FONT_BACKEND is not defined.
17213 (xic_create_xfontset): Original code deleted and renamed from
17214 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
17215 (x_make_gc): Don't set GCFont in GCs.
17216 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
17217 opened by "fixed".
17218 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
17219 find_ccl_program_func, query_font_func, set_frame_fontset_func,
17220 get_font_repertory_func.
17221
17222 * xfont.c: Include <stdlib.h> and "ccl.h".
17223 (struct xfont_info): New structure.
17224 (xfont_query_font): Deleted.
17225 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
17226 moved from xterm.c.
17227 (xfont_driver): Adjusted for the change of struct font_driver.
17228 (compare_font_names): New function.
17229 (xfont_list_pattern): Sort font names case insensitively. Make
17230 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
17231 (xfont_list): Return a list, not vector.
17232 (xfont_match): If the font doesn't have QCname property, generate
17233 a name from the other font properties.
17234 (xfont_open): Return a font-object. Adjusted for the change of
17235 struct font. Get underline_thickness and underline_position from
17236 font property. Don't update dpyinfo->smallest_font_height and
17237 dpyinfo->smallest_char_width.
17238 (xfont_close): Don't free struct font.
17239 (xfont_prepare_face): Adjusted for the change of struct font.
17240 (xfont_done_face): Deleted.
17241 (xfont_has_char): Adjusted for the change of struct font.
17242 (xfont_encode_char, xfont_draw): Likewise.
17243 (xfont_check): New function.
17244
17245 * xftfont.c (xftfont_list): Adjusted for the change of `list'
17246 callback function.
17247 (xftfont_match): Adjusted for the format change of font-entity.
17248 (xftfont_open): Adjusted for the format change of font-entity and
17249 font-object. Adjusted for the change of struct font. Return a
17250 font-object. Don't update dpyinfo->smallest_font_height and
17251 dpyinfo->smallest_char_width.
17252 (xftfont_close): Block input while calling XftFontClose.
17253 (xftfont_prepare_face): Don't block input while calling
17254 xftfont_get_colors. Adjusted for the change of struct font.
17255 (xftfont_shape): Return value of error case fixed.
17256
17257 * xrdb.c (x_load_resources): Don't setup a fontset resource.
17258
17259 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
17260 conditionals.
17261 (FONT_WIDTH): Return (f)->max_width.
17262 (struct x_display_info): Delete member `font'.
17263 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
17264 (x_find_ccl_program, x_get_font_repertory): Delete externs.
17265 (struct x_output): Change type of `font' to `struct font *'.
17266
17267 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
17268 conditionals. Don't check enable_font_backend. Delete all codes
17269 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
17270 (x_per_char_metric, x_encode_char): Deleted.
17271 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
17272 (x_compute_glyph_string_overhangs): Adjusted for the change of
17273 `struct face'.
17274 (x_draw_glyph_string_foreground)
17275 (x_draw_composite_glyph_string_foreground): Likewise.
17276 (x_draw_glyph_string): Likewise. Use font->underline_position and
17277 font->underline_thickness.
17278 (x_new_font): Renamed from x_new_fontset2.
17279 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
17280 (x_check_font): Call `check' method of a font driver.
17281 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
17282 (x_query_font, x_get_font_repertory): Deleted.
17283 (x_find_ccl_program): Renamed and moved to xfont.c.
17284 (x_redisplay_interface): Adjusted for the change of `struct
17285 redisplay_interface'.
17286
17287 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
17288 conditionals. Don't check enable_font_backend. Delete all codes
17289 used only when USE_FONT_BACKEND is not defined. Surround non-used
17290 code by "#ifdef OLD_FONT" and "endif".
17291 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
17292
17293 * w32font.h (struct w32font_info): New member.
17294 (FONT_COMPAT): New macro.
17295 (w32font_open_internal): Prototype adjusted.
17296
17297 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
17298 OLD_FONT" and "endif".
17299
17300 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
17301 conditionals. Don't check enable_font_backend. Delete all codes
17302 used only when USE_FONT_BACKEND is not defined.
17303 (w32font_open): Return a font-object. Make a font-object by
17304 font_make_object. Adjusted for the change of struct w32font_info.
17305 (w32font_close): Don't free struct font. Adjusted for the change
17306 of struct w32font_info.
17307 (w32font_encode_char, w32font_text_extents, w32font_draw):
17308 Adjusted for the change of struct w32font_info.
17309 (w32font_draw): Likewise.
17310 (w32font_list_internal): Return a list, not vector.
17311 (w32font_open_internal): Change the 4th arg to font-object.
17312 Adjusted for the change of struct w32font_info and font-object format.
17313 (add_font_name_to_list): Don't downcase names.
17314 (w32_enumfont_pattern_entity): Make a font-entity by
17315 font_make_entity. Adjusted for the format change of font-entity.
17316 Use FONT_SET_STYLE to set a style-related font property. If a
17317 font is scalable, set avgwidth property to 0. Set font-entity
17318 property by font_put_extra.
17319 (font_matches_spec): Adjusted for the format change of font-entity.
17320 (w32_weight_table, w32_decode_weight): New variables.
17321 (w32_encode_weight): New function.
17322 (fill_in_logfont): Adjusted for the format change of font-spec.
17323 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
17324 weight value.
17325 (w32font_driver): Adjusted for the change of struct font_driver.
17326
17327 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
17328 conditionals. Don't check enable_font_backend. Surround non-used
17329 code by "#ifdef OLD_FONT" and "endif".
17330 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
17331 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
17332
17333 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
17334 conditionals. Don't check enable_font_backend. Delete all codes
17335 used only when USE_FONT_BACKEND is not defined. Surround non-used
17336 code by "#ifdef OLD_FONT" and "endif".
17337
17338 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
17339 (uniscribe_open): Return value changed to font-object.
17340 Adjusted for the format change of font-object.
17341 (uniscribe_otf_capability): Adjusted for the change of struct font.
17342 (add_opentype_font_name_to_list): Don't downcase names.
17343 (uniscribe_font_driver): Adjusted for the change of struct
17344 font_driver.
17345
17346 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
17347
17348 * dispnew.c (update_frame_1): Check if tty output is still valid
17349 before flushing it.
17350
17351 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
17352
17353 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
17354 to Gtk+ menus.
17355
17356 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
17357
17358 * dired.c (file_name_completion): Tweak the code so as to always do it
17359 in a single pass. Tighten the scope of some variables.
17360
17361 * dired.c (Qdefault_directory): New var.
17362 (file_name_completion): Use it instead of Fexpand_file_name.
17363 (syms_of_dired): Initialize it.
17364
17365 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
17366
17367 * fileio.c (double_dollars): Remove dead code.
17368
17369 2008-05-10 Eli Zaretskii <eliz@gnu.org>
17370
17371 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
17372 Mention w32-get-true-file-attributes in doc string.
17373
17374 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
17375
17376 2008-05-09 Glenn Morris <rgm@gnu.org>
17377
17378 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
17379 2008-04-23.
17380
17381 2008-05-09 Eli Zaretskii <eliz@gnu.org>
17382
17383 Support for reporting owner and group of each file on MS-Windows:
17384 * dired.c (stat_uname, stat_gname): New functions, with special
17385 implementation for w32.
17386 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
17387
17388 * w32.c: Rename the_passwd_* to dflt_passwd_*.
17389 (dflt_group_name): New static variable.
17390 (dflt_group): Rename from the_group.
17391 (init_user_info): Init dflt_group fields. Get user's group name
17392 from LookupAccountSid.
17393 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
17394 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
17395 New initialization states.
17396 (globals_of_w32): Initialize them to zero. Initialize the default
17397 group name to "None".
17398 (GetFileSecurity_Name): New global var, the name of the function
17399 to call for GetFileSecurity.
17400 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
17401 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
17402 (get_file_security, get_security_descriptor_owner)
17403 (get_security_descriptor_group, is_valid_sid)
17404 (get_file_security_desc, get_rid, get_name_and_id)
17405 (get_file_owner_and_group): New functions.
17406 (stat): Use get_file_security_desc and get_file_owner_and_group to
17407 report the owner and primary group of each file. Don't ignore the
17408 high 32 bits of file's size, now that st_size is 64-bit wide.
17409 Fix test when to get true file attributes.
17410 (init_user_info): Use get_rid instead of equivalent inline code.
17411 (fstat): Don't ignore the high 32 bits of file's size.
17412
17413 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
17414
17415 * image.c (png_load): Use correct bit-depth for setting background
17416 color.
17417
17418 2008-05-08 Eli Zaretskii <eliz@gnu.org>
17419
17420 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
17421 epa-hook.elc.
17422
17423 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
17424
17425 * font.c (Ffont_match_p): Don't use `iff' in docstring.
17426
17427 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
17428
17429 * macfns.c (Fx_create_frame): Make a copy of frame parameters
17430 because the original parameters are in pure storage now.
17431 (mac_window): Remove unused params. Update callers.
17432
17433 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
17434
17435 * lread.c (substitute_object_recurse): Use lower-level primitives.
17436 Don't signal errors when traversing sub-char-tables.
17437 Don't loop over all the possible characters when traversing char-tables.
17438
17439 * print.c (print_preprocess): Add sub-char-tables to the print-table,
17440 just like we do in print.c.
17441
17442 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
17443
17444 * minibuf.c (Ftry_completion): Remove code left over from when we used
17445 scmp instead of Fcompare_strings.
17446
17447 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
17448
17449 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
17450
17451 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17452
17453 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
17454 Create bitmap context in native byte order.
17455
17456 * macterm.c (XDrawLine)
17457 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
17458 context in native byte order.
17459
17460 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17461
17462 * config.in: Regenerate.
17463
17464 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
17465 New definitions for Image I/O support.
17466 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
17467 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
17468 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
17469 (mac_data_provider_release_data, image_load_image_io)
17470 [USE_MAC_IMAGE_IO]: New functions.
17471 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
17472 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
17473 (init_image_func_pointer) [MAC_OSX]: Remove function.
17474 (image_load_quartz2d) [MAC_OSX]: Check availability of
17475 CGImageCreateWithPNGDataProvider at compile time.
17476 Use lowercase `false' for boolean constant.
17477 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
17478 Use image_load_image_io.
17479 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
17480 Don't check MyCGImageCreateWithPNGDataProvider.
17481 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
17482 Don't call init_image_func_pointer.
17483
17484 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
17485
17486 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
17487 Make variable non-static.
17488 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
17489 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
17490
17491 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
17492 (RED_FROM_ULONG): Mask off higher bits.
17493 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
17494
17495 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
17496 Include AvailabilityMacros.h.
17497 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
17498 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
17499
17500 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
17501
17502 * chartab.c (Fset_char_table_range): If range is t, really set all
17503 chars to that value.
17504
17505 2008-05-03 Eli Zaretskii <eliz@gnu.org>
17506
17507 * dired.c (Ffile_attributes): Don't allow the device number become
17508 negative.
17509
17510 2008-05-02 Daiki Ueno <ueno@unixuser.org>
17511
17512 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
17513
17514 2008-05-02 Juri Linkov <juri@jurta.org>
17515
17516 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
17517 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
17518 DEFAULT argument as a list of default values in docstrings.
17519
17520 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
17521
17522 * puresize.h (BASE_PURESIZE): Increase to 1210000.
17523
17524 2008-05-01 Martin Rudalics <rudalics@gmx.at>
17525
17526 * dispnew.c (change_frame_size_1): Preserve small windows when
17527 shrinking frames by calling set_window_height|width with third
17528 arg 2.
17529
17530 * window.h (struct window): Replace field too_small_ok by field
17531 resize_proportionally.
17532
17533 * window.c (make_window): Initialize resize_proportionally.
17534 (enlarge_window): Temporarily set resize_proportionally to make
17535 sure that shrink_windows does scale the window proportionally.
17536 (shrink_windows): When window has resize_proportionally set try
17537 to shrink it proportionally by stealing from other windows.
17538 (struct saved_window, Fset_window_configuration)
17539 (compare_window_configurations): Handle resize_proportionally.
17540 (WINDOW_TOTAL_SIZE): New macro.
17541 (window_min_size, shrink_windows, size_window): Use it.
17542 (check_min_window_sizes): Remove. Invalid values of
17543 window-min-height|width are handled by window_min_size_2 now.
17544 (size_window, Fsplit_window, enlarge_window)
17545 (adjust_window_trailing_edge, grow_mini_window): Don't call
17546 check_min_window_sizes.
17547 (window_min_size_2, window_min_size_1, window_min_size):
17548 New argument safe_p for retrieving "safe" minimum sizes.
17549 (Fdisplay_buffer, Fsplit_window, enlarge_window)
17550 (adjust_window_trailing_edge, grow_mini_window):
17551 Adjust arguments of window_min_size... functions.
17552 (shrink_windows): Argument min_size removed. New argument
17553 safe_p allows shrinking windows to their safe minimum sizes.
17554 Calculate minimum size and decide whether a window shall be
17555 deleted for each window individually.
17556 (size_window): When nodelete_p equals 2, tell shrink_windows to
17557 delete windows only if their new minimum size is no more safe.
17558 (shrink_window_lowest_first): Call window_min_size_1 to make
17559 sure to preserve modeline of bottom-most window when resizing
17560 the minibuffer.
17561 (Fset_window_configuration, Fcurrent_window_configuration)
17562 (compare_window_configurations): Do not handle
17563 window-min-height|width any more.
17564 (syms_of_window): Clarify window-min-height|width doc-strings.
17565
17566 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
17567
17568 * dired.c (file_name_completion): Fix up the encoding/decoding issue
17569 some more. Copy some of the code from Ftry_completions.
17570 Remove special case code that dates back to initial revision when the
17571 slash was only added when necessary and that can't trigger nowadays.
17572
17573 2008-04-27 Kenichi Handa <handa@m17n.org>
17574
17575 * font.c (font_prop_validate): Signal `error' instead of `font'.
17576
17577 2008-04-29 Jason Rumney <jasonr@gnu.org>
17578
17579 * w32fns.c (Fw32_battery_status): New defun.
17580 (syms_of_w32fns): Defsubr it.
17581
17582 2008-04-28 Andreas Schwab <schwab@suse.de>
17583
17584 * dired.c (file_name_completion): Fix another mixing of encoded
17585 and decoded names.
17586
17587 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
17588
17589 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
17590
17591 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
17592
17593 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
17594
17595 2008-04-27 Andreas Schwab <schwab@suse.de>
17596
17597 * dired.c (file_name_completion): Fix inappropriate mixing of
17598 encoded and decoded names.
17599
17600 * xterm.c (XTread_socket): Fix use of uninitialized variable.
17601
17602 * puresize.h (BASE_PURESIZE): Increase to 1200000.
17603
17604 2008-04-26 Eli Zaretskii <eliz@gnu.org>
17605
17606 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
17607 2008-03-31, it's not needed anymore with `struct stat' definition
17608 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
17609 for the same reasons.
17610
17611 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
17612
17613 * m/sparc.h: Additional redefinitions for GNU/Linux.
17614
17615 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17616
17617 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
17618 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
17619 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
17620 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
17621 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
17622 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
17623 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
17624 Likewise.
17625
17626 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
17627 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
17628 (mac_ax_number_of_characters): Add externs.
17629 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
17630 [USE_MAC_TSM]: Likewise.
17631 (mac_handle_text_input_event) [MAC_OSX]:
17632 Handle kEventTextInputOffsetToPos for no active input area case.
17633 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
17634 (mac_handle_document_access_event)
17635 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
17636 (install_application_handler) [MAC_OSX]: Register handlers for
17637 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
17638 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
17639 Register mac_handle_document_access_event.
17640
17641 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
17642 Make functions non-static.
17643
17644 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
17645
17646 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
17647 (read_file_name_completion_ignore_case, insert_default_directory)
17648 (Qdefault_directory): Move to minibuffer.el.
17649 (Fread_file_name): Call the new `read-file-name' instead.
17650
17651 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17652
17653 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
17654 Make function non-static.
17655 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
17656 Remove function.
17657 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
17658 Move to mactoolbox.c.
17659 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
17660
17661 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
17662 (mac_rect_make): New macro.
17663
17664 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
17665 instead of float.
17666 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
17667 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
17668 (XSetBackground) [USE_CG_DRAWING]: Likewise.
17669 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
17670 CGRectMake.
17671 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
17672 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
17673 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
17674 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
17675 instead of WindowRef in argument type.
17676 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
17677 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
17678 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
17679 instead of DISPLAY. All uses changed.
17680 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
17681 (x_calc_absolute_position): Simplify so as not to use
17682 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
17683
17684 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
17685 instead of WindowRef in argument type.
17686 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
17687 [TARGET_API_MAC_CARBON]: Remove externs.
17688 (create_apple_event, mac_event_parameters_to_lisp)
17689 [TARGET_API_MAC_CARBON]: Add externs.
17690
17691 * mactoolbox.c (Vmac_ts_script_language_on_focus)
17692 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
17693 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
17694 is clicked.
17695 (x_activate_menubar): Remove extern for saved_menu_event_location.
17696 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
17697 Move from mac.c.
17698
17699 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17700
17701 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
17702 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
17703
17704 2008-04-23 Jason Rumney <jasonr@gnu.org>
17705
17706 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
17707 attributes only for local files.
17708
17709 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
17710 default to Qlocal.
17711
17712 2008-04-22 Juri Linkov <juri@jurta.org>
17713
17714 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
17715 read-buffer-to-switch instead of using the letter "B".
17716
17717 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
17718
17719 * fileio.c (Qdefault_directory): New variable.
17720 (Fread_file_name): Use it to pass `dir' to the completion functions.
17721
17722 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
17723
17724 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
17725
17726 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
17727
17728 * keyboard.c (Vpre_help_message): Remove.
17729 (show_help_echo): Remove default C code.
17730
17731 * dired.c (directory_files_internal, file_name_completion):
17732 Only call ENCODE_FILE if the string is indeed decoded.
17733
17734 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
17735
17736 * Makefile.in (TOOLKIT_DEFINES): Remove.
17737 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
17738
17739 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17740
17741 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
17742 (mactoolbox.o): New target.
17743
17744 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
17745 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
17746
17747 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
17748 Use mac_set_frame_window_background instead of XSetWindowBackground.
17749 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
17750 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
17751 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
17752 instead of SetWindowTitleWithCFString.
17753 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
17754 Move function to mactoolbox.c.
17755 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
17756 Use mac_set_window_modified instead of SetWindowModified.
17757 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
17758 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
17759 (Fx_focus_frame): Use mac_front_non_floating_window instead of
17760 FrontNonFloatingWindow. Use mac_activate_window instead of
17761 ActivateWindow. Use mac_active_non_floating_window instead of
17762 ActiveNonFloatingWindow.
17763 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
17764 Use mac_show_hourglass and mac_hide_hourglass.
17765 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
17766 instead of GetGlobalMouse.
17767 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
17768 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
17769 Use mac_bring_window_to_front instead of BringToFront.
17770 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
17771 mactoolbox.c.
17772 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
17773 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
17774 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
17775 mactoolbox.c.
17776
17777 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
17778 (XtPointer): Move typedef from macmenu.c.
17779 (enum button_type): Move enum from macmenu.c.
17780 (widget_value): Move typedef from macmenu.c.
17781 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
17782 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
17783 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
17784 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
17785 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
17786 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
17787 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
17788 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
17789 (Selection): Move typedef from macselect.c.
17790 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
17791 macterm.c.
17792 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
17793 (mac_is_window_collapsed, mac_bring_window_to_front)
17794 (mac_send_window_behind, mac_hide_window, mac_show_window)
17795 (mac_collapse_window, mac_front_non_floating_window)
17796 (mac_active_non_floating_window, mac_activate_window)
17797 (mac_move_window_structure, mac_move_window, mac_size_window)
17798 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
17799
17800 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
17801 (enum mac_menu_kind): Move enum to mactoolbox.c.
17802 (min_menu_id): Move variable to mactoolbox.c.
17803 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
17804 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
17805 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
17806 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
17807 [TARGET_API_MAC_CARBON]: Likewise.
17808 (XtPointer): Move typedef to macgui.h.
17809 (enum button_type): Move enum to macgui.h.
17810 (widget_value): Move typedef to macgui.h.
17811 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
17812 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
17813 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
17814 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
17815 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
17816 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
17817 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
17818 (popup_activated_flag): Make variable non-static.
17819 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
17820 (add_menu_item, fill_menu, dispose_menus):
17821 Move functions to mactoolbox.c.
17822 (restore_show_help_function, menu_target_item_handler)
17823 (install_menu_target_item_handler, mac_handle_dialog_event)
17824 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
17825 [TARGET_API_MAC_CARBON]: Likewise.
17826 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
17827 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
17828 (find_and_call_menu_selection, name_is_separator): Make function
17829 non-static.
17830 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
17831 to mactoolbox.c.
17832 (set_frame_menubar): Don't call install_menu_quit_handler.
17833 (menu_item_selection): New variable.
17834 (mac_menu_show): Use create_and_show_popup_menu.
17835 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
17836 selection but set variable menu_item_selection. All uses changed.
17837 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
17838 Call install_menu_quit_handler. Move to mactoolbox.c.
17839
17840 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
17841 (Selection): Move typedef to macgui.h.
17842 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
17843 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
17844 Make variables non-static.
17845 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
17846 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
17847 Make functions non-static.
17848 (Vmac_service_selection) [MAC_OSX]: Likewise.
17849 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
17850 (mac_valid_selection_target_p, mac_clear_selection)
17851 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
17852 (mac_put_selection_value, mac_selection_has_target_p)
17853 (mac_get_selection_value, mac_get_selection_target_list)
17854 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
17855 Move functions to mactoolbox.c.
17856 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
17857 Likewise.
17858 (copy_scrap_flavor_data, mac_handle_service_event)
17859 (install_service_handler) [MAC_OSX]: Likewise.
17860 (syms_of_macselect) <Vmac_dnd_known_types>:
17861 Use mac_dnd_default_known_types.
17862
17863 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
17864 Move to mactoolbox.c.
17865 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
17866 (Fx_selection_owner_p): Add EXFUN.
17867 (install_window_handler, remove_window_handler, XSetWindowBackground):
17868 Remove externs.
17869 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
17870 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
17871 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
17872 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
17873 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
17874 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
17875 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
17876 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
17877 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
17878 (create_and_show_popup_menu, mac_get_selection_from_symbol)
17879 (mac_valid_selection_target_p, mac_clear_selection)
17880 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
17881 (mac_put_selection_value, mac_selection_has_target_p)
17882 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
17883 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
17884 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
17885 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
17886 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
17887 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
17888 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
17889 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
17890 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
17891
17892 * mactoolbox.c: New file.
17893
17894 2008-04-18 Jason Rumney <jasonr@gnu.org>
17895
17896 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
17897
17898 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
17899
17900 * character.c (Fmultibyte_char_to_unibyte):
17901 Return latin1 chars unchanged.
17902
17903 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
17904 relocated if it points to `name'.
17905
17906 2008-04-17 Kenichi Handa <handa@m17n.org>
17907
17908 * data.c (Faset): Allow setting a multibyte character in an
17909 ASCII-only unibyte string.
17910
17911 * lisp.h (STRING_SET_MULTIBYTE): New macro.
17912
17913 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
17914
17915 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
17916 done in config.h.
17917
17918 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
17919
17920 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
17921 (Fchar_direction): Add usage in the docstring.
17922
17923 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
17924
17925 * keyboard.c (read_key_sequence): Remove always-true checks.
17926
17927 2008-04-14 Jason Rumney <jasonr@gnu.org>
17928
17929 * w32font.c (w32font_open_internal): Set max_bounds.descent in
17930 compatibility struct, for better underline positioning.
17931
17932 2008-04-13 David Hansen <david.hansen@gmx.net>
17933
17934 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
17935 string.
17936
17937 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
17938
17939 * m/hp800.h (XUINT, XSET): Remove.
17940
17941 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
17942
17943 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
17944 previous change.
17945
17946 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
17947
17948 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
17949 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
17950
17951 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
17952
17953 * keymap.h (map_keymap_canonical): Declare.
17954 * xmenu.c (single_keymap_panes): Use it.
17955
17956 2008-04-11 Glenn Morris <rgm@gnu.org>
17957
17958 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
17959 set the target's value to that of the alias.
17960
17961 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
17962
17963 * term.c (set_tty_color_mode): Left over typo.
17964
17965 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
17966
17967 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
17968 only after check for file name handler functions. Signal, when
17969 native functionality is not supported.
17970 (syms_of_fileio): Declare it unconditionally.
17971
17972 2008-04-10 Jason Rumney <jasonr@gnu.org>
17973
17974 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
17975 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
17976
17977 * w32.c (logon_network_drive): Also logon to remote drives that
17978 are mapped to drive letters.
17979
17980 2008-04-10 Glenn Morris <rgm@gnu.org>
17981
17982 * xdisp.c (truncate-partial-width-windows): Doc fix.
17983
17984 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
17985
17986 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
17987 Move functions to minibuffer.el.
17988 (syms_of_fileio): Don't declare them.
17989
17990 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
17991
17992 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
17993 (syms_of_minibuf): Remove its initialization.
17994
17995 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
17996
17997 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
17998
17999 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
18000
18001 2008-04-09 Jason Rumney <jasonr@gnu.org>
18002
18003 * makefile.w32-in (distclean): Delete makefile too.
18004 (maintainer-clean): New target.
18005
18006 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
18007
18008 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
18009 for new font backend and composite cases.
18010
18011 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
18012
18013 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
18014 Most of the code moved to run_timers.
18015 (do_pending_atimers): Call run_timers.
18016 (run_timers): New function.
18017
18018 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
18019 run atimers.
18020
18021 * process.c (wait_reading_process_output): The same as above.
18022
18023 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
18024
18025 * minibuf.c (last_exact_completion): Remove variable.
18026 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
18027 (complete_and_exit_1, complete_and_exit_2)
18028 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
18029 (Fdisplay_completion_list, display_completion_list_1)
18030 (Fminibuffer_completion_help, Fself_insert_and_exit)
18031 (Fexit_minibuffer, Fminibuffer_message): Move functions to
18032 minibuffer.el.
18033 (syms_of_minibuf): Remove corresponding initializations.
18034
18035 * keyboard.c (Qdeactivate_mark): New var.
18036 (command_loop_1): Use it to call `deactivate-mark'.
18037 (syms_of_keyboard): Initialize it.
18038
18039 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
18040 to another frame.
18041 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
18042 Don't call set_tty_color_mode.
18043 (store_frame_param): Reset previous_frame rather than call
18044 set_tty_color_mode.
18045 * term.c (set_tty_color_mode): Rewrite.
18046 * dispextern.h (set_tty_color_mode): New type.
18047 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
18048
18049 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
18050
18051 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
18052 for generic chars, which do not exist any more in emacs-unicode.
18053
18054 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
18055
18056 * coding.c (detect_coding_emacs_mule)
18057 (Ffind_operation_coding_system): Fix typo.
18058
18059 2008-04-08 Jason Rumney <jasonr@gnu.org>
18060
18061 * w32uniscribe.c (SNAME): Extract only symbol name.
18062
18063 * w32font.h (struct w32_metric_cache): New struct.
18064 (w32font_info): Use it.
18065 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
18066 (CACHE_BLOCKSIZE): New constants.
18067
18068 * w32font.c (Qja, Qko, Qzh): New symbols.
18069 (syms_of_w32font): Initialise them.
18070 (font_matches_spec): Use them to filter by language.
18071 (recompute_cached_metrics): Remove function.
18072 (compute_metrics, clear_cached_metrics): New functions.
18073 (w32font_encode_char): Use them to manage metric cache.
18074 (w32font_text_extents): Cache metrics for all glyphs on demand.
18075 Delay converting glyph indices to WORD until needed.
18076 (w32font_open_internal): Initialize metric cache to empty.
18077 (registry_to_w32_charset): Charset should always be a symbol.
18078 (fill_in_logfont, list_all_matching_fonts): Family should
18079 always be a symbol.
18080
18081 2008-04-06 Jason Rumney <jasonr@gnu.org>
18082
18083 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
18084 Give up if glyph indices not supported. Use uniscribe obtained
18085 ABC widths for individual metrics. Map glyph clusters back to
18086 characters using fClusterStart flag. Return number of glyphs
18087 produced, not chars processed.
18088 (uniscribe_shape): Map char at FROM to current glyph.
18089
18090 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18091
18092 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
18093 Use SetMenuItemHierarchicalMenu.
18094
18095 2008-04-05 Jason Rumney <jasonr@gnu.org>
18096
18097 * image.c (pbm_load): Allow color values up to 65535.
18098 Throw an error if max_color_idx is outside the supported range.
18099 Report an error when image size is invalid.
18100 Read two bytes at a time when raw images have max_color_idx above 255.
18101
18102 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
18103
18104 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
18105 append "CCL: Quitted" when the CCL program is quitted.
18106 (setup_ccl_program): Initialize ccl->quit_silently to zero.
18107
18108 * ccl.h (struct ccl_program): New member quit_silently.
18109
18110 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
18111
18112 * search.c (compile_pattern_1): Treat non-nil and non-string of
18113 search-spaces-regexp as nil.
18114
18115 * minibuf.c (Fassoc_string): Tweak docstring.
18116
18117 2008-04-05 Eli Zaretskii <eliz@gnu.org>
18118
18119 * dired.c (Ffile_attributes): Support inode numbers wider than 32
18120 bits. Remove ugly WINDOWSNT-specific kludge introduced on
18121 2008-03-14 to force inode be positive.
18122
18123 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
18124 _S_* ones, since we now use our own sys/stat.h.
18125 (stat, fstat): Don't mangle the inode number.
18126 (init_user_info): Don't restrict UID and GID to 0-60000 range.
18127
18128 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
18129
18130 * frame.h (struct frame): Give one more bit to `visible' since we use
18131 values larger than 1 to indicate obscured frames on ttys.
18132
18133 * keymap.c (Qkeymap_canonicalize): New var.
18134 (Fmap_keymap_internal): New fun.
18135 (describe_map): Use keymap-canonicalize.
18136
18137 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
18138 (Fundo_boundary): Set them.
18139 (syms_of_undo): Initialize them.
18140 (record_point): Use them instead of last_point_position*.
18141 (last_undo_buffer): Change type.
18142
18143 2008-04-04 Jason Rumney <jasonr@gnu.org>
18144
18145 * w32font.c (w32font_text_extents): Use font's ascent and descent.
18146 (recompute_cached_metrics): Don't set ascent and descent per char.
18147
18148 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
18149 (uniscribe_check_otf): Add GC protection before consing.
18150 Rearrange loop for counting features.
18151
18152 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
18153
18154 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
18155 buffer with byte-size of source buffer.
18156
18157 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
18158
18159 * callint.c (Fcall_interactively): Handle temporary region even
18160 when shift-select-mode is off.
18161
18162 2008-04-03 Jason Rumney <jasonr@gnu.org>
18163
18164 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
18165
18166 2008-04-03 Kenichi Handa <handa@m17n.org>
18167
18168 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
18169 (CATEGORY_MASK_UTF_16): Likewise.
18170 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
18171 binary file.
18172 (detect_coding): Add null-byte detection for a binary file.
18173 (detect_coding_system): Likewise.
18174
18175 2008-04-03 Jason Rumney <jasonr@gnu.org>
18176
18177 * w32uniscribe.c: New file.
18178
18179 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
18180
18181 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
18182
18183 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
18184 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
18185 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
18186 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
18187 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
18188 (Qphonetic): New symbols.
18189 (syms_of_w32font): Initialize them.
18190 (font_supported_scripts): Use them.
18191 (w32font_list_family): List all charsets.
18192 (w32font_text_extents, recompute_cached_metrics): Fix metric
18193 calculations.
18194 (w32_enumfont_pattern_entity): Make full_type a DWORD.
18195 Give opentype fonts their own format.
18196 (font_matches_spec): New arguments backend and logfont.
18197 Handle :otf spec for uniscribe backend.
18198 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
18199 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
18200
18201 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
18202 font backend.
18203 (globals_of_w32fns): Initialize uniscribe font backend.
18204
18205 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
18206 dependencies.
18207 (w32uniscribe.$(O)): New file to build.
18208 (FONT_OBJ): Include w32uniscribe.$(O).
18209 (LIBS): Add uniscribe libraries.
18210
18211 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
18212
18213 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
18214
18215 * callint.c (Vshift_select_mode): New var.
18216 (Finteractive): Document new ^ spec.
18217 (Fcall_interactively): Call handle-shift-selection if the ^ spec
18218 is present.
18219
18220 * keyboard.c (Vthis_command_keys_shift_translated): New var.
18221 (command_loop_1): Avoid running the direct display versions of
18222 forward-char and backward-char if shift-selection may occur.
18223 (read_key_sequence): Set Vthis_command_keys_shift_translated if
18224 shift-translation takes place.
18225
18226 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
18227 avoid clobbering by define-minor-mode.
18228
18229 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
18230 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
18231
18232 * syntax.c (Fforward_word): Add ^ interactive spec.
18233
18234 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
18235 (Fscroll_right): Add ^ interactive spec.
18236
18237 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
18238
18239 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
18240
18241 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
18242
18243 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
18244
18245 2008-03-31 Juri Linkov <juri@jurta.org>
18246
18247 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
18248
18249 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
18250
18251 * gtkutil.c (xg_set_geometry): Fix indentation.
18252 (xg_resize_outer_widget): Remove.
18253 (x_wm_size_hint_off): Fix indentation.
18254 (xg_frame_set_char_size): Call flush_and_sync after
18255 gtk_window_resize.
18256 (x_wm_set_size_hint): Pass NULL as geometry window to
18257 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
18258 Add menu bar and tool bar height to base height.
18259 (xg_update_frame_menubar, free_frame_menubar)
18260 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
18261 (update_frame_tool_bar, free_frame_tool_bar):
18262 Change xg_resize_outer_widget to xg_frame_set_char_size.
18263
18264 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
18265
18266 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
18267 (Fdbus_call_method): New parameter TIMEOUT.
18268 (dbus-send-signal): Optimize UNGCPRO call.
18269
18270 2008-03-29 Juri Linkov <juri@jurta.org>
18271
18272 * window.c (Fdisplay_buffer): Move call to
18273 Vsplit_window_preferred_function out of conditions that check
18274 if window is eligible for vertical splitting.
18275 When Vsplit_window_preferred_function is non-nil, call it and use
18276 its non-nil return value as window. Otherwise, continue doing
18277 vertical splitting using Fsplit_window with arg horflag=nil.
18278 (syms_of_window) <Vsplit_window_preferred_function>: Change the
18279 default value from `split-window' to nil.
18280
18281 2008-03-29 Juri Linkov <juri@jurta.org>
18282
18283 * callint.c (Fcall_interactively): Revert 2008-03-16 change
18284 for interactive code letters 'b' and 'B'.
18285
18286 2008-03-29 Eli Zaretskii <eliz@gnu.org>
18287
18288 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
18289 multibyte string.
18290
18291 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
18292
18293 * keyboard.c (pending_funcalls): New var.
18294 (timer_check): Run it.
18295 (syms_of_keyboard): Initialize it.
18296 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
18297 (Vdelete_terminal_functions): New vars.
18298 (syms_of_terminal): Initialize them.
18299 (Fdelete_terminal): Run delete-terminal-functions.
18300 * xdisp.c (safe_eval): Rewrite.
18301 (safe_call2): New fun.
18302 * frame.c (Qdelete_frame_functions): New var.
18303 (syms_of_frame): Initialize it.
18304 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
18305 * lisp.h (safe_call2, pending_funcalls): Declare.
18306
18307 2008-03-28 Andreas Schwab <schwab@suse.de>
18308
18309 * indent.c (Fmove_to_column): Move declaration before statements.
18310
18311 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
18312
18313 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
18314 (struct frame): Use bit fields for boolean vars.
18315
18316 * process.c (server_accept_connection): Simplify naming.
18317 (emacs_get_tty_pgrp): Use SDATA.
18318
18319 * coding.c (decode_coding_object): Fix last change.
18320
18321 2008-03-27 Jason Rumney <jasonr@gnu.org>
18322
18323 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
18324
18325 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
18326
18327 * charset.c (Fdefine_charset_internal): Change the way of
18328 registering charsets in Vcharset_order_list.
18329 (syms_of_charset): Make the charset `eight-bit' supplementary.
18330
18331 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
18332
18333 * regex.c (EXTEND_BUFFER): Change order of pointer addition
18334 operations, to avoid having the difference between pointers
18335 overflow.
18336
18337 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
18338
18339 * indent.c (check_display_width): New fun.
18340 (scan_for_column): Use it.
18341
18342 * data.c (syms_of_data): Mark most-positive-fixnum and
18343 most-negative-fixnum as constants.
18344
18345 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
18346
18347 * indent.c (scan_for_column): Extract from current_column_1.
18348 Merge with the same code from Fmove_to_column.
18349 (current_column_1, Fmove_to_column): Use it.
18350
18351 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
18352
18353 * keymap.c (map_keymap_internal): New fun.
18354 (map_keymap): Use it.
18355 (Fmap_keymap_internal): New fun.
18356 (Fmap_keymap): Remove left-out test from before make_save_value.
18357
18358 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
18359
18360 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
18361 Use XCAR/XCDR.
18362
18363 * process.h (struct Lisp_Process): Remove filter_multibyte.
18364 * process.c (QCfilter_multibyte): Remove.
18365 (setup_process_coding_systems): Don't use filter_multibyte.
18366 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
18367 (read_process_output): Don't adjust multibyteness to filter_multibyte.
18368 (Fset_process_filter_multibyte): Change the coding-system to
18369 approximate the previous behavior.
18370 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
18371 coding-system.
18372
18373 * coding.c (decode_coding_object): When not decoding into a buffer,
18374 obey the coding system's preference of (uni|multi)byte.
18375
18376 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
18377
18378 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
18379 every char is changed and has a different byte-length.
18380 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
18381 Fix int -> EMACS_INT.
18382
18383 2008-03-23 David Hansen <david.hansen@gmx.net>
18384
18385 * dbusbind.c (xd_read_message): Remove extra copying of message
18386 strings. Check for NULL `interface' or `member'.
18387
18388 2008-03-22 Eli Zaretskii <eliz@gnu.org>
18389
18390 * w32.c (readdir): If FindFirstFile/FindNextFile return in
18391 cFileName a file name that includes `?' characters, use the 8+3
18392 alias in cAlternateFileName instead.
18393
18394 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
18395
18396 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
18397
18398 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
18399
18400 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
18401 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
18402 work on current_buffer only instead (that was already the case
18403 for some of the code anyway).
18404 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
18405 (temp_set_point, temp_set_point_both): Use EMACS_INT.
18406 (SET_PT, SET_PT_BOTH): Adjust.
18407 * intervals.h (set_point, temp_set_point, set_point_both)
18408 (temp_set_point_both): Remove redundant declarations.
18409
18410 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
18411
18412 * fileio.c (Finsert_file_contents):
18413 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
18414 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
18415 when buffer != current_buffer anyway.
18416
18417 2008-03-20 Andreas Schwab <schwab@suse.de>
18418
18419 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
18420 as default.
18421
18422 2008-03-19 Jason Rumney <jasonr@gnu.org>
18423
18424 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
18425 (syms_of_w32fns): Initialize them.
18426 (HOURGLASS_ID): New constant.
18427 (x_window_to_frame): Don't check hourglass_window.
18428 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
18429 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
18430 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
18431 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
18432 Only change the cursor if hourglass is not active.
18433 (Fx_create_frame): Initialize frame's current_cursor.
18434 (hourglass_atimer): Remove.
18435 (hourglass_started): New function.
18436 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
18437 (show_hourglass): Adapt to w32, changing argument to frame.
18438
18439 * w32term.h (struct w32_output): Remove hourglass_window.
18440 Add current_cursor.
18441
18442 * eval.c (call_debugger, Fsignal):
18443 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
18444 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
18445 (Fexecute_extended_command, cancel_hourglass_unwind):
18446 * minibuf.c (read_minibuf):
18447 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
18448
18449 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
18450
18451 * window.c (run_funs): New fun.
18452 (run_window_configuration_change_hook): Use it to run the buffer-local
18453 and the global part of the hook.
18454
18455 * xdisp.c (format_mode_line_unwind_data): Add window argument.
18456 (unwind_format_mode_line): Restore selected window.
18457 (x_consider_frame_title, Fformat_mode_line): Set selected window.
18458
18459 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
18460
18461 * editfns.c (Fchar_equal): Check they are valid characters.
18462
18463 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
18464
18465 2008-03-17 Andreas Schwab <schwab@suse.de>
18466
18467 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
18468 against a charset.
18469
18470 * lisp.h (Fbuffer_list): Declare.
18471
18472 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
18473
18474 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
18475 handlebox_widget is != 0.
18476
18477 2008-03-16 Juri Linkov <juri@jurta.org>
18478
18479 * callint.c (Fcall_interactively): For interactive code letters
18480 'b' and 'B' put the buffer list into the list of default "future"
18481 values of the minibuffer.
18482
18483 2008-03-16 Andreas Schwab <schwab@suse.de>
18484
18485 * keyboard.c (read_key_sequence): Fix downcasing of letters with
18486 modifiers.
18487
18488 * regex.c (re_match_2_internal): Correct matching of a charset
18489 against latin-1 characters.
18490
18491 2008-03-16 Kenichi Handa <handa@m17n.org>
18492
18493 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
18494 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
18495 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
18496 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
18497 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
18498 CHAR_STRING_ADVANCE.
18499 (produce_chars): Fix for the case that the source and the
18500 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
18501 instead of CHAR_STRING_ADVANCE.
18502 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
18503 STRING_CHAR_ADVANCE.
18504
18505 2008-03-15 Andreas Schwab <schwab@suse.de>
18506
18507 * regex.c (re_match_2_internal): Correct matching of eight bit
18508 characters in unibyte strings.
18509
18510 2008-03-15 Martin Rudalics <rudalics@gmx.at>
18511
18512 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
18513 at end of range when it coincides with the end of the buffer.
18514
18515 2008-03-14 Eli Zaretskii <eliz@gnu.org>
18516
18517 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
18518
18519 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
18520
18521 2008-03-14 Jason Rumney <jasonr@gnu.org>
18522
18523 * editfns.c (initial_tz): New variable.
18524 (syms_of_editfns): Initialize it.
18525 (Fset_time_zone_rule): Set it when first called.
18526 Use it when TZSTRING is nil.
18527
18528 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
18529 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
18530 (monitor_from_point_fn, get_monitor_info_fn): New globals.
18531 (globals_of_w32fns): Initialize them.
18532 (compute_tip_xy): Use them to position tooltips.
18533
18534 2008-03-14 Glenn Morris <rgm@gnu.org>
18535
18536 * emacs.c (main): Revert previous change.
18537 (standard_args): Revert -internal-script back to -scriptload,
18538 and remove the long-option form.
18539
18540 2008-03-13 Glenn Morris <rgm@gnu.org>
18541
18542 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
18543 Remove option -enable-font-backend.
18544
18545 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
18546
18547 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
18548
18549 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
18550
18551 * xterm.c (x_connection_closed): For GTK: If this is the last
18552 terminal just exit without closing the display.
18553
18554 2008-03-11 Jason Rumney <jasonr@gnu.org>
18555
18556 * w32font.c (w32font_full_name): Use floor to round.
18557
18558 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
18559
18560 * sound.c (alsa_configure): Declare vol at beginning of block.
18561
18562 * fontset.c (Ffontset_info): Remove extra semicolon.
18563
18564 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
18565
18566 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
18567 size of resulting string.
18568
18569 2008-03-10 Jason Rumney <jasonr@gnu.org>
18570
18571 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
18572
18573 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18574
18575 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
18576 Don't pretend as if characters with display property haven't been
18577 consumed for string-replacing-string case.
18578
18579 2008-03-08 Kim F. Storm <storm@cua.dk>
18580
18581 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
18582 (get_next_display_element, next_element_from_string)
18583 (next_element_from_ellipsis, next_element_from_buffer): Use it.
18584
18585 2008-03-08 Andreas Schwab <schwab@suse.de>
18586
18587 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
18588
18589 2008-03-06 Jason Rumney <jasonr@gnu.org>
18590
18591 * w32font.c (w32_registry): Take font_type argument. Use ANSI
18592 when charset not specified. Only translate ANSI to unicode when
18593 font_type is truetype.
18594 (w32font_coverage_ok): New function.
18595 (add_font_entity_to_list): Use it to filter unsuitable fonts.
18596
18597 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
18598
18599 * lread.c (Fread_char): Resolve modifiers.
18600 (Fread_char_exclusive): Likewise.
18601
18602 * character.c (char_resolve_modifier_mask): New function.
18603 (char_string): Use char_resolve_modifier_mask.
18604 (Fchar_resolve_modifiers): New function.
18605 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
18606 function.
18607
18608 2008-03-04 Jason Rumney <jasonr@gnu.org>
18609
18610 * makefile.w32-in: Always include w32font.c in the build.
18611 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
18612
18613 2008-03-04 Andreas Schwab <schwab@suse.de>
18614
18615 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
18616 (versionclean): Likewise.
18617
18618 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
18619
18620 * .cvsignore: Add oo.
18621
18622 2008-03-03 Andreas Schwab <schwab@suse.de>
18623
18624 * coding.c (decode_coding_object): Inhibit gap shrinking while
18625 decoding in place.
18626
18627 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
18628
18629 * w32term.c: Remove unused include "gnu.h".
18630 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
18631
18632 * gnu.h: Rename to ...
18633 * emacs-icon.h: ... this.
18634 * xterm.c: Use emacs-icon.h instead of gnu.h.
18635 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
18636
18637 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
18638
18639 * w32font.c: Include math.h.
18640
18641 2008-03-03 Jason Rumney <jasonr@gnu.org>
18642
18643 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
18644 Compute options separately.
18645 (w32font_open_internal): Set glyph_idx before caching metrics.
18646
18647 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
18648 Define if system headers don't.
18649 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
18650 (w32font_encode_char): Don't declare here.
18651
18652 * w32font.c (Quniscribe, QCformat): New symbols.
18653 (syms_of_w32font): Define them.
18654 (w32font_has_char): Indicate uncertainty.
18655 (w32font_encode_char): Encode as glyph point. Make static.
18656 (recompute_cached_metrics): New function.
18657 (w32font_open_internal): Use it. Set font to use glyph points
18658 initially. Set format based on type of font.
18659 (w32font_text_extents, w32font_draw): Optionally use glyph points.
18660 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
18661 on it. Set format based on information available here.
18662 (add_font_entity_to_list): Identify backend based on opentype_only.
18663
18664 2008-03-02 Andreas Schwab <schwab@suse.de>
18665
18666 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
18667
18668 * coding.c (decode_coding_big5, produce_chars):
18669 Fix typos in last change.
18670
18671 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
18672
18673 * gnu.h: New icon.
18674
18675 2008-03-02 Kenichi Handa <handa@m17n.org>
18676
18677 * coding.c (decode_coding_utf_8): When eol-type of CODING is
18678 `dos', don't decode '\r' if that is the last in the source.
18679 (decode_coding_utf_16, decode_coding_emacs_mule)
18680 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
18681 (decode_coding_raw_text, decode_coding_charset): Likewise.
18682 (produce_chars): Don't decode EOL here. Use EMACS_INT.
18683
18684 2008-03-01 Jason Rumney <jasonr@gnu.org>
18685
18686 * w32font.c (w32font_full_name): Report point size for scalable fonts.
18687
18688 2008-03-01 Kim F. Storm <storm@cua.dk>
18689
18690 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
18691
18692 2008-03-01 Jason Rumney <jasonr@gnu.org>
18693
18694 * w32font.c (w32font_full_name): New function.
18695 (w32font_open_internal): Use it.
18696
18697 2008-03-01 Kim F. Storm <storm@cua.dk>
18698
18699 * dispnew.c (line_draw_cost): Fix invalid glyph check.
18700
18701 2008-03-01 Jason Rumney <jasonr@gnu.org>
18702
18703 * font.c (font_unparse_fcname): Increase len when style is a symbol.
18704
18705 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
18706
18707 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
18708 xg_frame_resized when the event is for the edit widget.
18709
18710 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
18711
18712 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
18713 set_char_size.
18714 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
18715 operations on widgets here. Just set frame size if needed.
18716 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
18717 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
18718 (x_wm_set_size_hint): Set size hints on the edit widget only, not
18719 the whole frame.
18720 (xg_create_tool_bar): Move attachment of the tool bar to
18721 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
18722 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
18723
18724 2008-03-01 Jason Rumney <jasonr@gnu.org>
18725
18726 * w32fns.c (w32_msg_pump): Disable debug code.
18727
18728 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18729
18730 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
18731
18732 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
18733
18734 * xdisp.c (next_overlay_string): Don't set
18735 overlay_strings_at_end_processed_p if we're currently reading from
18736 a display string.
18737
18738 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
18739
18740 * xdisp.c (get_overlay_strings_1): Fix typo.
18741
18742 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
18743
18744 * xdisp.c (get_overlay_strings_1): Add missing argument type.
18745
18746 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
18747
18748 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
18749
18750 * xdisp.c (display_mode_element): Cancel the previous change.
18751 (decode_mode_spec): Likewise.
18752 (handle_auto_composed_prop): Don't make composition if it->string
18753 is a string.
18754
18755 2008-02-27 Kim F. Storm <storm@cua.dk>
18756
18757 * lisp.h (GLYPH): Change type from int to struct with separate char
18758 and face_id members.
18759 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
18760 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
18761 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
18762 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
18763 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
18764 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
18765 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
18766 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
18767 handle new Lisp glyph code encoding, either an integer or a cons.
18768
18769 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
18770 (GLYPH_ALIAS): Delete.
18771 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
18772 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
18773 (GLYPH_FROM_CHAR): Replace macro by ...
18774 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
18775
18776 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
18777 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
18778 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
18779 (GLYPH_INVALID_P): New macro.
18780 (spec_glyph_lookup_face): Update prototype.
18781
18782 * dispnew.c (line_draw_cost): Adapt to new glyph type.
18783 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
18784 new glyph code encoding.
18785 (spec_glyph_lookup_face): No return value; update passed glyph instead.
18786 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
18787
18788 * xdisp.c (get_next_display_element, next_element_from_display_vector):
18789 Adapt to new glyph type and new glyph code encoding.
18790
18791 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
18792
18793 * indent.c (current_column, current_column_1, Fmove_to_column)
18794 (compute_motion): Adapt to new glyph code encoding.
18795
18796 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
18797
18798 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
18799
18800 * process.c (wait_reading_process_output): Check for window
18801 changes caused by timers.
18802 Suggested by Johan Bockgård.
18803
18804 2008-02-27 Glenn Morris <rgm@gnu.org>
18805
18806 * emacs.c (USAGE1): Add `--disable-font-backend'.
18807
18808 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
18809
18810 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
18811 is made to the buffer.
18812
18813 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
18814
18815 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
18816 (face_at_string_position):
18817 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
18818 (face_at_string_position):
18819 * xdisp.c (display_string, next_overlay_change):
18820 * buffer.h (overlays_at):
18821 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
18822 Update callers.
18823
18824 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
18825
18826 * editfns.c (Fformat): Doc fix.
18827
18828 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
18829
18830 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
18831 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
18832 (Ffont_otf_alternates, Fquery_font): Doc fixes.
18833
18834 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
18835
18836 * buffer.c (Fbuffer_swap_text): New function.
18837 (syms_of_buffer): Defsubr it.
18838
18839 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
18840
18841 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
18842
18843 2008-02-25 Jason Rumney <jasonr@gnu.org>
18844
18845 * w32font.c (w32font_draw): Draw one character at a time when padding.
18846
18847 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
18848
18849 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
18850 Handle a nil arg. Use run_window_configuration_change_hook.
18851 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
18852 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
18853 Use run_window_configuration_change_hook.
18854
18855 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
18856
18857 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
18858 1-pixel width.
18859
18860 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
18861
18862 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
18863 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
18864 if the glyph in the font is zero pixel with.
18865
18866 * dispextern.h (struct glyph_string): New member padding_p.
18867
18868 * w32font.c (w32font_draw): Pay attention to s->padding_p.
18869
18870 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
18871
18872 * xfont.c (xfont_draw): Pay attention to s->padding_p.
18873
18874 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
18875
18876 * font.c: If the font driver doesn't have `shape' function, return Qnil.
18877
18878 2008-02-25 Jason Rumney <jasonr@gnu.org>
18879
18880 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
18881
18882 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
18883
18884 Allow fine-grained image-cache flushing.
18885 * dispextern.h (struct image): Add `dependencies' field.
18886 (clear_image_caches): Change arg to Lisp_Object.
18887 * image.c (make_image): Initialize `dependencies' field.
18888 (clear_image_cache): Change arg to allow fine-grained flushing.
18889 Perform the flush even if image-cache-eviction-delay is nil.
18890 (clear_image_caches): Change arg to Lisp_Object.
18891 (Fclear_image_cache): Expand meaning of the argument.
18892 (mark_image): Mark `dependencies' field.
18893 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
18894 (lface_hash): Use XHASH rather than XFASTINT.
18895 (face_at_buffer_position): Fix int -> EMACS_INT position.
18896 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
18897 (select_frame_for_redisplay): Remove code duplication.
18898 (redisplay_internal): Adapt arg to call to clear_image_caches.
18899
18900 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
18901
18902 * s/vms4-0.h:
18903 * s/vms4-2.h:
18904 * s/vms4-4.h:
18905 * s/vms5-5.h: Remove, unused.
18906
18907 * s/irix5-2.h:
18908 * s/irix6-0.h:
18909 * s/riscos5.h:
18910 * s/mach-bsd4-3.h:
18911 * m/mips4.h: Remove files for obsolete systems.
18912
18913 * Makefile.in:
18914 * filelock.c:
18915 * unexmips.c:
18916 * m/hp9000s300.h:
18917 * m/iris4d.h:
18918 * s/aix3-1.h:
18919 * s/hpux.h:
18920 * s/msdos.h:
18921 * s/usg5-0.h:
18922 * s/usg5-2-2.h:
18923 * s/usg5-2.h:
18924 * s/usg5-3.h: Remove references to obsolete variables.
18925
18926 * s/irix5-0.h: Remove, move all the contents ...
18927 * s/irix6-5.h: ... here. Simplify.
18928 * config.in: Regenerate.
18929
18930 2008-02-24 Jason Rumney <jasonr@gnu.org>
18931
18932 * w32term.c (x_draw_glyph_string_background): Clear the background
18933 manually when cleartype is in use.
18934 (x_draw_glyph_string_foreground): Draw text transparently when
18935 cleartype is in use.
18936
18937 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
18938 a font into it unless we have to.
18939
18940 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
18941
18942 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
18943 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
18944
18945 2008-02-18 Jason Rumney <jasonr@gnu.org>
18946
18947 * w32fns.c (Fw32_shell_execute): Encode parameters.
18948
18949 2008-02-09 Eli Zaretskii <eliz@gnu.org>
18950
18951 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
18952
18953 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
18954
18955 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
18956
18957 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
18958
18959 * xterm.c (x_set_offset): Don't change the gravity if
18960 CHANGE_GRAVITY is -1.
18961
18962 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
18963
18964 * fileio.c (auto_save_error_occurred): New var.
18965 (auto_save_error): Set it.
18966 (Fdo_auto_save): Don't overwrite the error message if an auto-save
18967 error occurred.
18968
18969 2008-02-23 Eli Zaretskii <eliz@gnu.org>
18970
18971 * w32.c (globals_of_w32): Add initializations for
18972 g_b_init_get_sid_sub_authority and
18973 g_b_init_get_sid_sub_authority_count.
18974
18975 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
18976
18977 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
18978 (font_parse_xlfd): Use them for sanity check.
18979 (Finternal_set_font_style_table): Make sure the table is bijective.
18980
18981 Consolidate the image_cache to the terminal struct.
18982 * termhooks.h (P_): Remove redundant def.
18983 (struct terminal): New field `image_cache'.
18984 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
18985 of FRAME_X_IMAGE_CACHE.
18986 * xterm.h (struct x_display_info): Remove image_cache field.
18987 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18988 * w32term.h (struct w32_display_info): Remove image_cache field.
18989 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18990 * macterm.h (struct mac_display_info): Remove image_cache field.
18991 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18992 * xterm.c (x_term_init):
18993 * w32term.c (w32_term_init):
18994 * macterm.c (mac_term_init): Set the image_cache in the terminal.
18995 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
18996 Remove declarations.
18997 (clear_image_caches, mark_image_cache): New declarations.
18998 * xfaces.c (clear_face_cache):
18999 * xdisp.c (redisplay_internal): Use clear_image_caches.
19000 * image.c (clear_image_cache): Don't check that a frame is on
19001 a window-system before checking if it shares the same cache.
19002 (clear_image_caches): New function.
19003 (Fclear_image_cache): Use it.
19004 (mark_image): Move from allo.c.
19005 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
19006 * alloc.c (mark_image, mark_image_cache): Move to image.c.
19007 (mark_object): Don't call mark_image_cache for frames.
19008 (mark_terminals): Call mark_image_cache.
19009
19010 * lisp.h (Fdelete_terminal): Declare.
19011
19012 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
19013 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
19014 wrong_type_argument.
19015
19016 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
19017
19018 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
19019 malayalam.el, and tamil.el. Add sinhala.el.
19020
19021 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
19022
19023 * xterm.c (x_connection_closed): Consolidate identical tests.
19024 (x_delete_terminal): Don't crash if called via x_connection_closed.
19025
19026 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
19027
19028 * xdisp.c (decode_mode_spec): New arg string.
19029 (display_mode_element): Adjust for the above change.
19030
19031 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
19032
19033 * callint.c (Fcall_interactively): Use AREF.
19034
19035 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
19036
19037 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
19038
19039 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
19040
19041 * xfns.c (Fx_show_tip): Set string to " " if empty.
19042
19043 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
19044
19045 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
19046 with Qt.
19047
19048 2008-02-17 Kenichi Handa <handa@m17n.org>
19049
19050 * ftfont.c (ftfont_shape): Return Lispy number.
19051
19052 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
19053 for GCs.
19054 (Finternal_set_font_selection_order): Call font_update_sort_order
19055 only when enable_font_backend is set.
19056 (realize_x_face): Set face->font_info to that of default face only
19057 when enable_font_backend is set.
19058
19059 * xdisp.c (handle_composition_prop): Set it->c to the fist
19060 character of the composed region.
19061 (fill_composite_glyph_string): Set base_face->font_info to
19062 s->font_info. Get a face for ascii from base_face->ascii_face.
19063 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
19064 with a face already decided.
19065 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
19066 non-negative.
19067 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
19068 call font_prepare_composition unconditionally.
19069
19070 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
19071
19072 * xterm.h (struct x_display_info): New member font.
19073
19074 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
19075 (x_set_mouse_face_gc, x_new_font): Likewise.
19076 (x_term_init): Setup display_info->font.
19077 (x_delete_terminal): Free display_info->font.
19078
19079 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
19080
19081 * ftxfont.c (ftxfont_default_fid): Delete it.
19082 (ftxfont_open): Set xfont->fid to 0.
19083 (ftxfont_end_for_frame): Clear data specific to the frame and the
19084 font-driver.
19085
19086 * xftfont.c (xftfont_default_fid): Delete it.
19087 (xftfont_open): Set xfont->fid to 0.
19088
19089 * fontset.c (FONTSET_OBJLIST): New macro.
19090 (fontset_find_font): Update font-object list of the fontset.
19091 (free_realized_fontset): New function.
19092 (free_face_fontset): Call free_realized_fontset.
19093 (Ffont_info): Call font_close_object only when enable_font_backend
19094 is set.
19095
19096 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
19097 [HAVE_NTGUI]: Include w32term.h.
19098 [MAC_OS]: Include macterm.ch.
19099 (font_otf_ValueRecord): Use make_number.
19100 (font_finish_cache): Fix handling of reference count.
19101 (font_clear_cache): Update num_fonts.
19102 (font_open_entity): Update smallest_char_width and
19103 smallest_font_height of the frame.
19104 (font_close_object): Update num_fonts.
19105 (Fclear_font_cache): Fix finding the target cache data.
19106
19107 2008-02-16 Glenn Morris <rgm@gnu.org>
19108
19109 * fontset.c (Finternal_char_font): Fix compilation warning.
19110
19111 2008-02-16 Eli Zaretskii <eliz@gnu.org>
19112
19113 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
19114 instead of char arrays. Enlarge the size of array passed to
19115 get_token_information.
19116
19117 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
19118 warnings.
19119
19120 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
19121
19122 * .gdbinit: Don't set `args', it breaks gdb --args.
19123
19124 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
19125
19126 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
19127 within a narrowed buffer.
19128
19129 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
19130
19131 * coding.c (decode_coding_object, encode_coding_object):
19132 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
19133
19134 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
19135
19136 * coding.c (coding_set_destination): Use BEG_BYTE rather than
19137 hardcoding 1.
19138 (detect_coding_system):
19139 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
19140 (string_char_to_byte, string_byte_to_char, insert_from_gap):
19141 * insdel.c (insert_from_gap):
19142 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
19143 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
19144 (string_to_multibyte):
19145 * character.c (chars_in_text, multibyte_chars_in_text):
19146 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
19147
19148 * character.h (FETCH_STRING_CHAR_ADVANCE)
19149 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
19150 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
19151 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
19152
19153 * casefiddle.c (casify_region): Only call after-change and composition
19154 functions on the part of the region that was changed.
19155
19156 * keyboard.c (read_avail_input):
19157 * frame.c (Fdelete_frame): Call Fdelete_terminal.
19158
19159 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
19160
19161 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
19162 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
19163
19164 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
19165
19166 * w32menu.c (push_submenu_start, push_submenu_end)
19167 (push_left_right_boundary, push_menu_pane, push_menu_item):
19168 * keyboard.c (read_key_sequence): Don't pass args with side effects
19169 to AREF, it fails when compiling with -DENABLE_CHECKING.
19170
19171 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
19172
19173 * Makefile.in (${lispsource}international/charprop.el):
19174 Delete this target.
19175
19176 * search.c (boyer_moore): Fix incorrect synching of the trunk and
19177 emacs-unicode-2.
19178
19179 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
19180
19181 * terminal.c (Fdelete_terminal): Clean up the `force' path.
19182
19183 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
19184
19185 * frame.c (Qnoelisp): New symbol.
19186 (syms_of_frame): Initialize it.
19187 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
19188 harmless Elisp code, from a strong `force' from x_connection_closed.
19189 * frame.h (Qnoelisp): Declare.
19190 * xterm.c (x_connection_closed): Pass `noelisp'.
19191
19192 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
19193 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
19194 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
19195 rather than `int' for the type of `type'.
19196
19197 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
19198
19199 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
19200
19201 * Makefile.in (GNUC): Remove support for gcc-1.x.
19202
19203 2008-02-10 Richard Stallman <rms@gnu.org>
19204
19205 * lisp.h (ASET): Use AREF, not ASLOT.
19206
19207 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
19208
19209 * lisp.h (ASET): Check bounds.
19210
19211 2008-02-10 Glenn Morris <rgm@gnu.org>
19212
19213 * buffer.c (mode-name): Doc fix.
19214
19215 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
19216
19217 * Makefile.in:
19218 * emacs.c:
19219 * gmalloc.c:
19220 * keyboard.c:
19221 * lisp.h:
19222 * m/ibm370aix.h:
19223 * process.c:
19224 * regex.c:
19225 * s/hpux.h:
19226 * sysdep.c:
19227 * sysselect.h:
19228 * systty.h:
19229 * unexec.c:
19230 * w32term.c:
19231 * xsmfns.c:
19232 * xterm.c: Remove code that deals with obsolete variables.
19233
19234 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
19235
19236 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
19237 nothing else needs it anymore.
19238
19239 2008-02-09 Eli Zaretskii <eliz@gnu.org>
19240
19241 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
19242 instead of unibyte_char_to_multibyte.
19243
19244 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
19245
19246 * s/gnu-linux.h: Remove commented out code.
19247
19248 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
19249
19250 * Makefile.in: Update what RMS says about using autoconf.
19251 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
19252 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
19253 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
19254 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
19255
19256 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
19257
19258 * keymap.c (Fkey_description): Move side effect outside of macro call.
19259
19260 * xfaces.c (Finternal_make_lisp_face):
19261 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
19262
19263 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
19264 (syms_of_fontset): Use ASET.
19265
19266 * fns.c (concat): Move side effect outside of macro call.
19267 (hash_clear): Use ASET.
19268
19269 2008-02-08 Richard Stallman <rms@gnu.org>
19270
19271 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
19272 If FORCE, and frame has a surrogate minibuffer for another frame,
19273 delete the other frame first.
19274
19275 2008-02-07 Timo Savola <timo.savola@iki.fi>
19276
19277 * xterm.c (x_detect_focus_change): Handle embed client message.
19278 (handle_one_xevent): Ditto.
19279 (handle_one_xevent): If embedded and we get a button press/release,
19280 request focus.
19281 (xembed_set_info, xembed_send_message): New functions.
19282 (x_make_frame_visible): Call xembed_set_info if embedded.
19283 (x_make_frame_invisible): Call xembed_set_info if embedded.
19284 (x_term_init): Initialize Xatom_XEMBED.
19285 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
19286 (x_iconify_frame): Ditto.
19287
19288 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
19289 (enum xembed_info, enum xembed_message, enum xembed_focus)
19290 (enum xembed_modifier, enum xembed_accelerator): New.
19291 (xembed_set_info, xembed_send_message): Declare.
19292 (FRAME_X_EMBEDDED_P): New.
19293
19294 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
19295 gtk_plug_new.
19296
19297 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
19298 window ID of a frame.
19299 (x_window): Reparent frame if embedded.
19300 (Fx_create_frame): Don't set border width if embedded.
19301
19302 * emacs.c (USAGE3): Add --parent-id.
19303 (standard_args): Ditto.
19304
19305 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
19306
19307 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
19308
19309 2008-02-07 Jim Meyering <meyering@redhat.com>
19310
19311 Use "do...while (0)", not "if (1)...else" in macro definitions.
19312 The latter provokes a warning from gcc about the empty else, when
19313 followed by ";". Also, without that trailing semicolon, it would
19314 silently swallow up any following statement.
19315 * syntax.h (SETUP_SYNTAX_TABLE)
19316 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
19317 * buffer.h (DECODE_POSITION): Likewise.
19318 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
19319 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
19320 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
19321 (FETCH_CHAR_ADVANCE): Likewise.
19322 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
19323
19324 2008-02-07 Jim Meyering <meyering@redhat.com>
19325
19326 * lread.c [lint]: Don't include <sys/inode.h>.
19327
19328 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
19329
19330 * xselect.c (x_handle_dnd_message):
19331 * xmenu.c (digest_single_submenu, xmenu_show):
19332 * xdisp.c (with_echo_area_buffer_unwind_data)
19333 (format_mode_line_unwind_data, unwind_format_mode_line)
19334 (display_menu_bar):
19335 * eval.c (Ffetch_bytecode):
19336 * doc.c (store_function_docstring):
19337 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
19338 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
19339 * buffer.c (add_overlay_mod_hooklist): Use ASET.
19340
19341 2008-02-07 Kenichi Handa <handa@m17n.org>
19342
19343 * ftxfont.c (ftxfont_open): Don't set
19344 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
19345
19346 * ftfont.c (ftfont_open): Fix previous change.
19347
19348 2008-02-06 Jason Rumney <jasonr@gnu.org>
19349
19350 * w32font.c (w32font_text_extents): Fill in lbearing metric.
19351 Use cached metrics for ASCII characters.
19352 (w32font_open_internal): Don't set font's owning_frame.
19353 Cache metrics for ASCII characters.
19354
19355 * w32font.h (struct w32font_info): Add ascii_metrics.
19356 Remove owning_frame.
19357
19358 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
19359
19360 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
19361 to negative value.
19362
19363 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
19364
19365 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
19366
19367 * charset.c (syms_of_charset): Set QCtest and Qeq.
19368
19369 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
19370
19371 * process.c (Fstart_process):
19372 * callproc.c (Fcall_process): Handle the case where
19373 Funhandled_file_name_directory returns nil.
19374
19375 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
19376 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
19377 * font.c (check_gstring): Use them and AREF to access the vector before
19378 we know it's really a gstring.
19379 (Ffont_shape_text): Fix typo.
19380 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
19381
19382 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
19383 Declare.
19384
19385 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
19386
19387 2008-02-05 Jason Rumney <jasonr@gnu.org>
19388
19389 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
19390 Set smallest_font_height and smallest_char_width in display info.
19391
19392 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
19393
19394 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
19395
19396 2008-02-05 Miles Bader <miles@gnu.org>
19397
19398 * xfaces.c (get_lface_attributes, merge_named_face)
19399 (lookup_named_face, lookup_derived_face, realize_named_face):
19400 Revert 2008-02-01 change by cyd@stupidchicken.com.
19401
19402 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
19403
19404 * fontset.c (Ffontset_info): Handle the case of inhibitting the
19405 fallback fonts.
19406 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
19407
19408 2008-02-04 Jason Rumney <jasonr@gnu.org>
19409
19410 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
19411 set full_name.
19412 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
19413
19414 2008-02-03 Jason Rumney <jasonr@gnu.org>
19415
19416 * makefile.w32-in (OBJ1): Include font.o here.
19417 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
19418
19419 2008-02-02 Jason Rumney <jasonr@gnu.org>
19420
19421 * makefile.w32-in (temacs): Bump EMHEAP to 21.
19422
19423 2008-02-01 Jason Rumney <jasonr@gnu.org>
19424
19425 * s/cygwin.h: Define VIRT_ADDR_VARIES.
19426
19427 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
19428
19429 2008-02-01 Andreas Schwab <schwab@suse.de>
19430
19431 * Makefile.in (shortlisp, lisp): Update for rename of
19432 ../lisp/language/myanmar.el.
19433
19434 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
19435
19436 * xfaces.c (get_lface_attributes): Delete function.
19437 (merge_named_face, lookup_named_face, lookup_derived_face)
19438 (realize_named_face): Call lface_from_face_name directly, and use
19439 the fact that merge_face_vectors does not alter its FROM argument.
19440
19441 2008-02-01 Jason Rumney <jasonr@gnu.org>
19442
19443 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
19444 input in the default locale. Handle non-Unicode multibyte input.
19445
19446 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19447
19448 * fontset.c (reorder_font_vector): Exclude nil elements from the
19449 font group. Don't try multiple fonts.
19450 (fontset_font): Adjust for the above change.
19451 (Finternal_char_font): Return nil if the found font doesn't
19452 contain the character ch.
19453
19454 * Makefile.in (lisp, shortlisp): Add cham.el.
19455
19456 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19457
19458 * font.h (FONTP): Make it return 1 also for a font-object.
19459
19460 * .gdbinit (xfontset): New function.
19461
19462 * font.c (font_find_for_lface): Check if the character C is
19463 supported or not only for the first font.
19464
19465 * fontset.c (reorder_font_vector): Fix typo.
19466 (fontset_find_font): Don't add a font-spec specifying a script.
19467 Use 0 (not Qt) for the indication of empty font-group. Change the
19468 format of RFONT-DEF. Return Qt if no font in the font-group
19469 support the character.
19470 (fontset_font): Adjust for the above change. If no font was
19471 found the character, remember that.
19472 (face_for_char): Adjust for the change of RFONT-DEF.
19473 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
19474 no font for the target.
19475 (Finternal_char_font): Adjust for the change of RFONT-DEF.
19476
19477 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19478
19479 * font.c (font_load_for_face): Handle the case that the font in
19480 face->lface is a string.
19481
19482 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19483
19484 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
19485
19486 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19487
19488 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
19489 Fix previous change. If the frame is not on a window system,
19490 signal an error.
19491
19492 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19493
19494 * coding.c (decode_coding_object, encode_coding_object): Adjust
19495 marker positions after conversion.
19496
19497 * lisp.h (struct Lisp_Marker): New member need_adjustment.
19498
19499 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19500
19501 * font.c (font_find_for_lface): Fix the handling of the return
19502 value of font_has_char.
19503 (Ffont_shape_text): Fix previous change.
19504
19505 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
19506 (fontset_ref_and_range): Delete it.
19507 (fontset_find_font): Call char_table_ref_and_range instead of
19508 FONTSET_REF_AND_RANGE.
19509 (make_fontset): Don't setup font groups of Latin here.
19510 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
19511 (new_fontset_from_font): Make the specified font the default for
19512 all Latin characters.
19513
19514 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19515
19516 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
19517 is on a window system before accessing the fontset of the frame.
19518
19519 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19520
19521 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
19522
19523 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
19524 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
19525
19526 * font.c (Ffont_shape_text): If the font driver doesn't have a
19527 shaper function, make zero-width glyphs to have at least one-pixel
19528 width. Fix setting of `to' field of glyphs.
19529
19530 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19531
19532 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
19533 glyphs.
19534
19535 * font.h (struct font_driver): Improve docstring of member `shape'.
19536
19537 2008-02-01 Kenichi Handa <handa@m17n.org>
19538
19539 * composite.c (syms_of_composite): Fix docstring of
19540 auto-composition-function.
19541
19542 * font.h (LGLYPH_SIZE): New macro.
19543
19544 * font.c (Ffont_fill_gstring): Stop filling when a character not
19545 supported by the font is found.
19546 (Ffont_shape_text): When a shape callback function returns nil,
19547 try at most two more times with larger gstring.
19548 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
19549
19550 * xdisp.c (handle_auto_composed_prop): Change the argument to
19551 auto-composition-function.
19552
19553 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
19554 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
19555 Lispy glyph and store it in the lgstring.
19556
19557 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
19558
19559 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
19560
19561 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19562
19563 * font.c (Ffont_shape_text): Avoid unnecessary composition.
19564
19565 * fontset.c (Vfont_encoding_charset_alist): New variable.
19566 (syms_of_fontset): DEFVAR it.
19567 (reorder_font_vector, fontset_find_font): Optimize for the case of
19568 no need of reordering.
19569 (face_for_char): Map the charset property by
19570 Vfont_encoding_charset_alist.
19571
19572 2008-02-01 Jason Rumney <jasonr@gnu.org>
19573
19574 * w32font.c (logfonts_match): Don't check adstyle here.
19575 (font_matches_spec): Check here against physical font instead.
19576 (add_font_entity_to_list): Avoid some substitutions.
19577
19578 * font.c (font_parse_fcname): Default weight and slant to normal.
19579 (font_score): Prefer normal fonts if weight or slant unspecified.
19580 (font_score) [WINDOWSNT]: Scale weight difference down to closer
19581 match freetype scores.
19582
19583 2008-02-01 Jason Rumney <jasonr@gnu.org>
19584
19585 * w32font.c (w32font_text_extents): Don't use the frame stored in the
19586 font, as it may have been deleted.
19587 (w32_enumfont_pattern_entity): Map generic family to adstyle using
19588 most common hyphenless variation.
19589 (logfonts_match): Check generic family.
19590 (font_matches_spec): Don't check generic family here.
19591 (fill_in_logfont): Set generic family based on adstyle.
19592
19593 * w32font.h (w32font_get_cache): Update declaration.
19594
19595 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19596
19597 * ftfont.c (ftfont_get_cache): Adjust the argument type.
19598
19599 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
19600 If none of the new drivers are available, call font_update_drivers
19601 with the old drivers.
19602
19603 * w32font.c (w32font_get_cache): Adjust the argument type.
19604
19605 * xfont.c (xfont_get_cache): Adjust the argument type.
19606
19607 * font.h (struct font_driver): Change argument type of get_cache.
19608
19609 * xftfont.c (xftfont_start_for_frame): Delete prototype.
19610
19611 * font.c (Ffont_get): Fix arguments to Fassoc.
19612 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
19613 (font_clear_cache): New function.
19614 (font_list_entities, font_matching_entity): Use font_get_cache.
19615 (font_update_drivers): Call font_clear_cache when finishing a driver.
19616
19617 * fontset.c (fontset_find_font): Fix previous change.
19618
19619 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19620
19621 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
19622 dpyinfo->font_table.
19623 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
19624 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
19625
19626 * font.c (font_at): Handle the case that the arg C is negative.
19627 Handle the unibyte case.
19628 (Ffont_at): Call font_at with the arg C -1.
19629
19630 * xdisp.c (handle_auto_composed_prop): Don't get a character at
19631 the position here, and call font_at with the arg C -1.
19632 Don't check the range of the existing composition at the point.
19633
19634 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19635
19636 * fontset.c (fontset_add): New args charset_id and family.
19637 Change caller.
19638 (load_font_get_repertory, fontset_find_font): Assume that
19639 font_spec is always a font-spec object.
19640 (Fset_fontset_font): Always store a font-spec object in a fontset.
19641
19642 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
19643 instead of get_property_and_range.
19644
19645 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19646
19647 * xftfont.c (struct xftfont_info): Delete the member ft_face.
19648 (xftfont_open): Don't keep locking face.
19649 (xftfont_close): Don't unlock face.
19650 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
19651
19652 * fontset.c (fontset_find_font): Don't prefer a font of
19653 supplementary charset.
19654
19655 2008-02-01 Kenichi Handa <handa@m17n.org>
19656
19657 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
19658 script, langsys_tag to langsys, new member script.
19659 (OTF_TAG_STR): Terminate by '\0'.
19660 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
19661 listing to the script specified in that property. Fix arg to
19662 OTF_check_features.
19663
19664 2008-02-01 Jason Rumney <jasonr@gnu.org>
19665
19666 * w32font.h: New file.
19667
19668 * w32font.c: Include it.
19669 (struct w32font_info): Add owning_frame field. Move to w32font.h.
19670 (w32font_open): Set owning_frame.
19671 (w32font_text_extents): Use owning_frame.
19672 (struct font_callback_data): Add opentype_only field.
19673 (add_font_entity_to_list): Use it to filter fonts.
19674 Don't check against full name.
19675 (w32font_list_internal): New function.
19676 (w32font_list): Use it.
19677 (w32font_match_internal): New function.
19678 (w32font_match): Use it.
19679 (w32font_open_internal): New function.
19680 (w32font_open): Use it.
19681 (w32font_get_cache, w32font_close, w32font_has_char)
19682 (w32font_encode_char, w32font_text_extents, w32font_draw):
19683 Make non-static.
19684
19685 * makefile.w32-in (w32font.o): Depend on w32font.h.
19686
19687 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19688
19689 * charset.c (Fdefine_charset_internal): Record a supplementary
19690 charset at the tail of Vcharset_order_list.
19691
19692 * font.c (Ffont_shape_text): Fix the return value.
19693
19694 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
19695
19696 * xdisp.c (handle_auto_composed_prop): Fix previous change.
19697
19698 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19699
19700 * ftfont.c (struct OpenTypeSpec): New struct.
19701 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
19702 (ftfont_get_open_type_spec): New function.
19703 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
19704
19705 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
19706
19707 2008-02-01 Jason Rumney <jasonr@gnu.org>
19708
19709 * w32font.c (add_font_entity_to_list): Compare only the beginning
19710 of full name.
19711
19712 2008-02-01 Kenichi Handa <handa@m17n.org>
19713
19714 * xdisp.c (handle_auto_composed_prop): Simplify the code.
19715 Never return HANDLED_RECOMPUTE_PROPS.
19716
19717 2008-02-01 Kenichi Handa <handa@m17n.org>
19718
19719 * font.c (font_gstring_produce): Delete it.
19720
19721 * composite.h (COMPOSITION_METHOD):
19722 Handle COMPOSITION_WITH_GLYPH_STRING.
19723
19724 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19725
19726 * xfont.c (Qx): Delete.
19727 (syms_of_xfont): Don't initialize Qx.
19728
19729 * composite.h (enum composition_method):
19730 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
19731
19732 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19733
19734 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
19735 (choose_face_font): Accept new form of font-spec.
19736
19737 * frame.h (font_driver_list): Declare it unconditionally.
19738 (struct frame): Define members font_driver_list and font_data_list
19739 unconditionally.
19740
19741 * fontset.c: Include "font.h" unconditionally.
19742 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
19743 (Fset_fontset_font): Accept a font-spec object.
19744
19745 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
19746 PIXEL_SIZE part a wild card.
19747
19748 * dispextern.h (struct glyph_string): Define members clip and
19749 num_clips unconditionally.
19750 (struct face): Define members font_info and extra unconditionally.
19751
19752 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
19753 ftfont_info only when HAVE_LIBOTF is defined.
19754
19755 2008-02-01 Andreas Schwab <schwab@suse.de>
19756
19757 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
19758 and end.
19759
19760 2008-02-01 Jason Rumney <jasonr@gnu.org>
19761
19762 * w32font.c (w32font_driver): Add new fields.
19763
19764 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19765
19766 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
19767 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
19768 (LIBES): Add @M17N_FLT_CFLAGS@.
19769
19770 * composite.c (compose_text): Don't treat the new style
19771 composition specially.
19772
19773 * emacs.c (main): Call syms_of_font unconditionally.
19774
19775 * font.h (FONT_ENTITY_NOT_LOADABLE)
19776 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
19777 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
19778 (struct font_driver): New member shape.
19779 (font_registry_charsets): Extern it.
19780 (font_find_for_lface, font_prepare_composition): Adjust prototype.
19781 (font_otf_capability, font_drive_otf): Delete their externs.
19782
19783 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
19784 (font_charset_alist, font_registry_charsets): Move from xfont.c
19785 and rename.
19786 (font_prop_validate_otf): New function.
19787 (font_property_table): Register it for QCotf.
19788 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
19789 (font_drive_otf): Delete.
19790 (font_prepare_composition): New arg F. Adjust for the change of
19791 lispy gstring.
19792 (font_find_for_lface): New arg C.
19793 (font_load_for_face): Adjust for the change of font_find_for_lface.
19794 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
19795 lispy gstring.
19796 (Ffont_shape_text): New function.
19797 (Fopen_font): If the font size is not given, use 12-pixel.
19798 (Ffont_at): New arg STRING.
19799 (syms_of_font): Initialize font_charset_alist.
19800 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
19801 conditionally.
19802
19803 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
19804 fonts of the same font-spec. Change the format of RFONT-DEF.
19805 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
19806 Adjust for the change of RFONT-DEF.
19807 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
19808
19809 * ftfont.h: New file.
19810
19811 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
19812 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
19813 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
19814 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
19815 font_otf_capability and font_drive_otf, set ftfont_shape.
19816 (ftfont_list): Adjust for the change of :otf property value.
19817 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
19818 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
19819 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
19820 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
19821 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
19822 (otf_gstring, gstring, m17n_flt_initialized): New variables.
19823
19824 * w32term.c (x_draw_composite_glyph_string_foreground):
19825 Adjust for the change of lispy gstring.
19826
19827 * xdisp.c (handle_composition_prop): Adjust for the change of
19828 lispy gstring. Call a function for auto-composition with the
19829 third arg it->window.
19830 (fill_composite_glyph_string): Adjust for the change of lispy string.
19831 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
19832
19833 * xfaces.c (set_font_frame_param): Adjust for the change of
19834 font_find_for_lface.
19835
19836 * xfont.c (x_font_charset_alist): Move to font.c and rename.
19837 (xfont_registry_charsets): Likewise. Change caller.
19838 (syms_of_xfont): Don't handle x_font_charset_alist.
19839
19840 * xftfont.c: Include "ftfont.h".
19841 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
19842 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
19843 (xftfont_close) [HAVE_LIBOTF]: Close otf.
19844 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
19845 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
19846 Set xftfont_driver.shape to xftfont_shape.
19847
19848 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
19849 the change of lispy gstring.
19850
19851 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19852
19853 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
19854
19855 2008-02-01 Jason Rumney <jasonr@gnu.org>
19856
19857 * w32font.c (w32font_draw): Fill background manually.
19858
19859 2008-02-01 Jason Rumney <jasonr@gnu.org>
19860
19861 * font.c (Qfontp): Remove unused symbol.
19862 (QCantialias): New symbol.
19863 (syms_of_font): Define it.
19864 (font_property_table): Set a validator for QCantialias.
19865
19866 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
19867 Define if not already.
19868 (QCfamily): Share with xfaces.c.
19869 (Qstandard, Qsubpixel, Qnatural): New symbols.
19870 (syms_of_w32font): Define them. Don't define QCfamily here.
19871 (w32_antialias_type, lispy_antialias_type): New functions.
19872 (w32_enumfont_pattern_entity): New arg requested_font.
19873 Set antialias parameter if non-default was requested.
19874 (fill_in_logfont): Fill in lfQuality if :antialias specified.
19875
19876 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19877
19878 * lread.c (read1): Undo the previous change.
19879
19880 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
19881
19882 * frame.c (Fdelete_frame): Call font_update_drivers only when
19883 USE_FONT_BACKEND is defined.
19884
19885 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19886
19887 * font.h (struct font_bitmap): New member bits_per_pixel.
19888 (struct font_driver): New members start_for_frame and end_for_frame.
19889 (struct font_data_list): New struct.
19890 (font_put_frame_data, font_get_frame_data): Extern them.
19891
19892 * frame.h (struct frame): New member font_data_list.
19893
19894 * font.c (font_update_drivers): Call driver->start_for_frame and
19895 driver->end_for_frame at proper timings.
19896 (font_put_frame_data, font_get_frame_data): New functions.
19897 (Ffont_spec): Add usage in the docstring.
19898
19899 * frame.c (make_frame): Initialize f->font_data_list to NULL.
19900 (Fdelete_frame): Call font_update_drivers.
19901
19902 * xftfont.c (struct xftface_info): Delete the member xft_draw.
19903 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
19904 (xftfont_get_xft_draw): New function.
19905 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
19906 (xftfont_end_for_frame): New function.
19907 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
19908
19909 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
19910 Change argument. Cache GCs in the per-frame data.
19911 (struct ftxfont_frame_data): New struct.
19912 (ftxfont_draw_bitmap): New arg gc_fore and flush.
19913 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
19914 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
19915 (ftxfont_end_for_frame): New function.
19916 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
19917
19918 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
19919
19920 2008-02-01 Kenichi Handa <handa@m17n.org>
19921
19922 * xselect.c (Vselection_coding_system)
19923 (Vnext_selection_coding_system): Delete them.
19924 (syms_of_xselect): Don't declare selection-coding-system and
19925 next-selection-coding-system. They are declared in select.el.
19926
19927 2008-02-01 Jason Rumney <jasonr@gnu.org>
19928
19929 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
19930
19931 * w32fns.c: Include imm.h.
19932 (get_composition_string_fn, get_ime_context_fn): New optional
19933 system functions.
19934 (globals_of_w32fns): Load them from imm32.dll.
19935 (ignore_ime_char): New flag.
19936 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
19937 WM_IME_ENDCOMPOSITION messages.
19938
19939 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
19940 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
19941
19942 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19943
19944 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
19945 (READCHAR_REPORT_MULTIBYTE): New macro.
19946 (readchar): New 2nd arg MULTIBYTE.
19947 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
19948 Make symbol's name multibyte according to the multibyteness of the
19949 source.
19950
19951 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19952
19953 * xfaces.c (face_for_overlay_string): Call lookup_face with
19954 correct arguments (fix of synching with the trunk).
19955
19956 2008-02-01 Kenichi Handa <handa@m17n.org>
19957
19958 * font.c (font_prop_validate_symbol, font_prop_validate_style)
19959 (font_prop_validate_non_neg, font_prop_validate_spacing):
19960 Delete argument prop_index.
19961 (font_property_table): Change arguments to validater. Change Callers.
19962 (font_lispy_object): Delete.
19963 (font_at): Use font_find_object instead fo font_lispy_object.
19964
19965 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19966
19967 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
19968 and file names.
19969
19970 2008-02-01 Jason Rumney <jasonr@gnu.org>
19971
19972 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
19973 (font_matches_spec): Remove debug output.
19974 (add_font_entity_to_list): Avoid using substituted fonts.
19975
19976 2008-02-01 Jason Rumney <jasonr@gnu.org>
19977
19978 * doc.c (Fsnarf_documentation):
19979 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
19980
19981 2008-02-01 Miles Bader <miles@gnu.org>
19982
19983 * dispextern.h (struct glyph_row): Only define "clip" field if
19984 HAVE_WINDOW_SYSTEM is defined.
19985
19986 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19987
19988 Fix up multi-tty merge.
19989
19990 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
19991 and indentation.
19992
19993 * xfaces.c (free_realized_face, clear_face_gcs):
19994 Include font_done_for_face in the input_blocked section, just in case.
19995
19996 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
19997 (get_char_face_and_encoding): Undo last change and remove the *other*
19998 duplicate definition (i.e. keep the one that's better scoped and that
19999 includes code for the font-backend).
20000
20001 * terminal.c (create_terminal): Default keyboard_coding to
20002 `no-conversion' and terminal_coding to `undecided'.
20003
20004 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
20005
20006 * fontset.c (free_realized_fontsets): Check that the table entry does
20007 contain a fontset before trying to compare it to `base'.
20008
20009 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
20010 syms_of_charset, and syms_of_coding earlier because init_window_once
20011 now needs Vcoding_system_hash_table to be setup.
20012
20013 * coding.h (default_buffer_file_coding): Remove.
20014
20015 * coding.c (default_buffer_file_coding): Remove.
20016 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
20017 than ->symbol, and use the terminal-local coding system.
20018 (syms_of_coding): Don't setup the coding-systems that are not
20019 terminal-local.
20020 (Fdefine_coding_system_internal): Use XCAR/XCDR.
20021
20022 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
20023 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
20024
20025 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
20026 in chartab.c and were re-added here by mistake.
20027 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
20028
20029 * doc.c (Fsnarf_documentation):
20030 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
20031 src to etc.
20032
20033 * ChangeLog.10: Add mistakenly removed entry.
20034
20035 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
20036
20037 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
20038
20039 2008-02-01 Miles Bader <miles@gnu.org>
20040
20041 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
20042 Add extra args to FACE_FOR_CHAR.
20043
20044 2008-02-01 Kenichi Handa <handa@m17n.org>
20045
20046 * keymap.c (where_is_internal_1): If key is a cons, store the copy
20047 in sequence.
20048
20049 * chartab.c (map_sub_char_table, map_char_table): If the range
20050 contains just one character, call the function with that character
20051 even if the depth is not 3.
20052
20053 2008-02-01 Jason Rumney <jasonr@gnu.org>
20054
20055 * w32font.c (w32font_text_extents): Calculate metrics for the
20056 whole string.
20057
20058 2008-02-01 Jason Rumney <jasonr@gnu.org>
20059
20060 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
20061
20062 2008-02-01 Jason Rumney <jasonr@gnu.org>
20063
20064 * w32term.c (x_set_glyph_string_clipping): Use
20065 get_glyph_string_clip_rects.
20066 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
20067 Adjust for the change of struct glyph_string.
20068
20069 * w32font.c (w32font_draw): Do clipping here.
20070
20071 2008-02-01 Kenichi Handa <handa@m17n.org>
20072
20073 * xftfont.c (xftfont_draw): Adjust for the change of struct
20074 glyph_string.
20075
20076 * xterm.c (x_set_glyph_string_clipping): Use
20077 get_glyph_string_clip_rects.
20078 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
20079 Adjust for the change of struct glyph_string.
20080
20081 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
20082 the resulting clip(s}.
20083 (expose_overlaps): Add arg r. Change callers. Set it to
20084 row->clip temporarily.
20085 (expose_window): Redraw rows overlapping the exposed area.
20086
20087 * dispextern.h (struct glyph_row): New member clip.
20088 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
20089 clip_height, new member clip, and num_clips.
20090
20091 2008-02-01 Kenichi Handa <handa@m17n.org>
20092
20093 * data.c (Fchar_or_string_p): Fix docstring.
20094
20095 2008-02-01 Kenichi Handa <handa@m17n.org>
20096
20097 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
20098 create a temporary XftDraw object.
20099
20100 2008-02-01 Kenichi Handa <handa@m17n.org>
20101
20102 * font.c (Ffontp): Fix docstring.
20103
20104 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
20105 strong evidence of ISO-2022.
20106
20107 2008-02-01 Kenichi Handa <handa@m17n.org>
20108
20109 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
20110 SYNTAX_ENTRY_FOLLOW_PARENT.
20111
20112 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
20113
20114 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
20115 its type.
20116 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
20117 Update to the new type of weak_hash_tables and next_weak.
20118
20119 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
20120 a plain C pointer to Lisp_Hash_Table.
20121
20122 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
20123 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
20124 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
20125 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
20126 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
20127 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
20128 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
20129 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
20130 (GC_EQ): Remove since they've been identical to their non-GC_
20131 alter-egos ever since the markbit was eradicated.
20132
20133 * alloc.c:
20134 * buffer.c:
20135 * buffer.h:
20136 * data.c:
20137 * fileio.c:
20138 * filelock.c:
20139 * fns.c:
20140 * frame.h:
20141 * lisp.h:
20142 * macterm.c:
20143 * print.c:
20144 * process.c:
20145 * w32fns.c:
20146 * w32menu.c:
20147 * w32term.c:
20148 * xfns.c:
20149 * xmenu.c:
20150 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
20151
20152 2008-02-01 Kenichi Handa <handa@m17n.org>
20153
20154 * chartab.c (map_sub_char_table): Make it work for the top-level
20155 char-table. Fix handling of parent char-table.
20156 (map_char_table): Adjust for the above change.
20157
20158 2008-02-01 Jason Rumney <jasonr@gnu.org>
20159
20160 * w32font.c (Qgdi): Rename from Qw32.
20161
20162 2008-02-01 Jason Rumney <jasonr@gnu.org>
20163
20164 * w32bdf.c (get_quoted_string): Make function static.
20165
20166 2008-02-01 Kenichi Handa <handa@m17n.org>
20167
20168 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
20169 bigger ascent and descent than those of the font, use them as
20170 font's ascent and descent.
20171
20172 2008-02-01 Kenichi Handa <handa@m17n.org>
20173
20174 * Makefile.in (${lispsource}international/charprop.el): Move this
20175 target within "#ifdef HAVE_UNIDATA" and "#endif".
20176
20177 2008-02-01 Kenichi Handa <handa@m17n.org>
20178
20179 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
20180 (shortlisp): Add ../lisp/language/tai-viet.el.
20181
20182 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
20183
20184 * Makefile.in (${lispsource}international/charprop.el): Depend on
20185 temacs${EXEEXT}.
20186
20187 2008-02-01 Jason Rumney <jasonr@gnu.org>
20188
20189 * w32font.c (w32font_close): Delete the GDI font object.
20190
20191 * w32menu.c: Include character.h.
20192
20193 * w32proc.c: Likewise.
20194
20195 * w32select.c: Likewise.
20196
20197 * makefile.w32-in (w32proc.o): Depend on character.h.
20198
20199 2008-02-01 Jason Rumney <jasonr@gnu.org>
20200
20201 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
20202
20203 * w32menu.c (syms_of_w32menu): Likewise.
20204
20205 * w32proc.c (syms_of_ntproc): Likewise.
20206
20207 * w32select.c (syms_of_w32select): Likewise.
20208
20209 * w32term.c (syms_of_w32term): Likewise.
20210
20211 2008-02-01 Jason Rumney <jasonr@gnu.org>
20212
20213 * w32font.c (w32font_draw): Delete brush after using it.
20214
20215 2008-02-01 Jason Rumney <jasonr@gnu.org>
20216
20217 * w32font.c (w32font_open): Don't set font_idx.
20218 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
20219 to font settings.
20220 (w32font_draw): Fill background explicitly.
20221
20222 2008-02-01 Jason Rumney <jasonr@gnu.org>
20223
20224 * w32term.c (w32_initialize): Don't call w32font_initialize.
20225
20226 * w32font.c (w32font_info): Remove subranges.
20227 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
20228 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
20229 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
20230 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
20231 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
20232 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
20233 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
20234 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
20235 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
20236 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
20237 New symbols.
20238 (font_callback_data): New struct.
20239 (w32font_list, w32font_match): Use it.
20240 (w32font_open): Don't populate subranges.
20241 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
20242 (w32font_encode_char): Always return unicode code-point as-is.
20243 (w32font_text_extents): Supply a transformation matrix to
20244 GetGlyphOutline. Never look up by glyph index. Avoid looping
20245 twice. Use unicode version of GetTexExtentPoint32 instead of
20246 glyph index version.
20247 (set_fonts_frame): Remove.
20248 (w32_enumfont_pattern_entity): Add frame parameter, use it to
20249 set frame parameter. Use backward compatible fake foundries.
20250 Save generic family in extra slot under QCfamily. Make width slot
20251 constant. Save QCspacing value. Save list of scripts instead of
20252 binary subranges.
20253 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
20254 (add_font_entity_to_list): Use font_callback_data struct. Filter
20255 unwanted fonts.
20256 (add_one_font_entity_to_list): Use font_callback_data struct.
20257 (w32_registry): Default to iso10646_1.
20258 (fill_in_logfont): Use dpi from extra slot. Don't bother with
20259 string font registries. Don't fill in font name if it is a generic
20260 family name, fill family instead. Use spacing, family and script
20261 extra info to fill pitch, family and charset fields.
20262 (list_all_matching_fonts): Use font_callback_data struct.
20263 (unicode_range_for_char): Remove.
20264 (font_supported_scripts): New function.
20265 (w32font_initialize): Remove.
20266 (syms_of_w32font): Update which symbols are defined.
20267
20268 2008-02-01 Jason Rumney <jasonr@gnu.org>
20269
20270 * font.c (font_pixel_size): Reverse assq_no_quit args.
20271
20272 * w32term.h (FONT_WIDTH): Report max width, not average.
20273 (FONT_MAX_WIDTH): Remove.
20274 (FONT_AVG_WIDTH): New macro.
20275
20276 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
20277 redefinition of FONT_WIDTH.
20278
20279 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
20280 (w32_cache_char_metrics): Use FONT_WIDTH.
20281
20282 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
20283
20284 2008-02-01 Jason Rumney <jasonr@gnu.org>
20285
20286 * w32font.c (w32font_open): Make lfHeight negative.
20287
20288 * w32fns.c (x_default_font_parameter): Use new style font name.
20289 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
20290
20291 2008-02-01 Jason Rumney <jasonr@gnu.org>
20292
20293 * w32font.c (QCsubranges): New symbol.
20294 (w32font_open, w32font_has_char): Get subranges from subproperty
20295 of extra.
20296 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
20297 (syms_of_w32font): Define :subranges symbol.
20298
20299 * font.c (font_put_extra): Expose externally.
20300
20301 * font.h (font_put_extra): Move declaration from font.c.
20302
20303 * font.c (Ffont_get): Use font driver to determine otf capability.
20304 (adjust_anchor): Check if driver defines anchor_point before using.
20305
20306 * w32font.c (w32font_open): Handle size, height and pixel_size better.
20307 (w32font_draw): Use options.
20308 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
20309 Fix detection of truetype fonts.
20310 (registry_to_w32_charset): Handle charsets other than iso8859-1
20311 expressed as lisp symbols.
20312 (w32_registry): Express charset as lisp symbol.
20313 (fill_in_logfont): Reverse pixel and point height logic.
20314 Don't set width here. Set quality to default.
20315
20316 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
20317 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
20318
20319 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
20320 Remove redundant loop and allocation.
20321
20322 * makefile.w32-in (font.o, w32font.o): New objects.
20323 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
20324 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
20325
20326 * xdisp.c (fill_composite_glyph_string): Make the first arg to
20327 STORE_XCHARB a valid l-value.
20328
20329 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
20330 calculations for non-Truetype fonts.
20331 (x_draw_glyph_string): Sync with xterm.c.
20332 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
20333 Remove redundant code.
20334 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
20335
20336 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
20337 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
20338
20339 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
20340 (x_to_w32_charset, w32_to_x_charset): Expose externally.
20341
20342 * w32font.c: New file for w32 font backend.
20343
20344 2008-02-01 Kenichi Handa <handa@m17n.org>
20345
20346 * term.c: Don't include "buffer.h" twice.
20347
20348 2008-02-01 Kenichi Handa <handa@m17n.org>
20349
20350 * character.c (Funibyte_string): New function.
20351 (syms_of_character): Defsubr it.
20352
20353 2008-02-01 Jason Rumney <jasonr@gnu.org>
20354
20355 * w32term.c [USE_FONT_BACKEND]:
20356 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
20357 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
20358 (x_draw_glyph_string, x_draw_glyph_string_foreground)
20359 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
20360 (x_free_frame_resources): Sync with xterm.c.
20361
20362 2008-02-01 Andreas Schwab <schwab@suse.de>
20363
20364 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
20365 char-table size.
20366
20367 2008-02-01 Kenichi Handa <handa@m17n.org>
20368
20369 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
20370
20371 2008-02-01 Kenichi Handa <handa@m17n.org>
20372
20373 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
20374 font_otf_gpos, add font_drive_otf.
20375
20376 * fontset.c (fontset_find_font): Pay attention to font size
20377 specified for a font.
20378 (reorder_font_vector): Check contents of font_def.
20379
20380 * font.c (struct otf_list): Delete it.
20381 (otf_list): Make it a lisp variable.
20382 (otf_open): Use lispy otf_list.
20383 (generate_otf_features): Rename from parse_gsub_gpos_spec.
20384 (check_otf_features): New function.
20385 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
20386 New functions.
20387 (font_drive_otf): New function merging font_otf_gsub and
20388 font_otf_gpos.
20389 (font_open_for_lface): New arg spec. Change argument order.
20390 (font_load_for_face): Adjust for the change of font_open_for_lface.
20391 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
20392 Ffont_otf_gpos.
20393 (syms_of_font): Staticpro otf_list. Delete defsubr of
20394 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
20395
20396 * xfaces.c (set_font_frame_param): Adjust for the change of
20397 font_open_for_lface.
20398
20399 * font.h (font_open_for_lface): Adjust prototype.
20400 (struct font_driver): Delete members otf_gsub and otf_gpos, add
20401 member otf_drive.
20402 (font_otf_gsub, font_otf_gpos): Delete externs.
20403 (font_drive_otf): Extern it.
20404
20405 2008-02-01 Kenichi Handa <handa@m17n.org>
20406
20407 * font.c (font_at): If the window W is not on a window system,
20408 return Qnil.
20409
20410 * coding.c (produce_chars, encode_coding): Don't call
20411 insert_from_gap if no characters to produce.
20412
20413 2008-02-01 Kenichi Handa <handa@m17n.org>
20414
20415 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
20416 Fclear_face_cache.
20417
20418 * xfaces.c (face_for_font): Check also face->font==font->font.font.
20419
20420 2008-02-01 Miles Bader <miles@gnu.org>
20421
20422 * emacs.c (main): Change default value of `enable_font_backend' to 1.
20423 Parse "--disable-font-backend" option.
20424 (standard_args): Add "--disable-font-backend" option.
20425
20426 2008-02-01 Kenichi Handa <handa@m17n.org>
20427
20428 * fontset.c (fontset_find_font): New function.
20429 (fontset_font): Use fontset_find_font.
20430 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
20431 Register the specified font for all Latin characters.
20432 (new_fontset_from_font): Register the specified font for all Latin
20433 characters.
20434 (dump_fontset): For a realized fontset, include the base fontset
20435 name in the returned vector.
20436
20437 2008-02-01 Kenichi Handa <handa@m17n.org>
20438
20439 * character.h (CHAR_STRING): Cast C to unsigned on calling
20440 char_string.
20441
20442 * character.c (char_string): Type of arg C changed to unsigned.
20443 Signal an error if C is an invalid character code.
20444
20445 * editfns.c (general_insert_function, Fchar_to_string):
20446 Use CHARACTERP, not INTEGERP.
20447
20448 2008-02-01 Kenichi Handa <handa@m17n.org>
20449
20450 * character.h (MIN_MULTIBYTE_LEADING_CODE)
20451 (MAX_MULTIBYTE_LEADING_CODE): New macros.
20452
20453 * regex.c (analyse_first): Fix for multibyte characters in "case
20454 charset:" and "case categoryspec:".
20455
20456 2008-02-01 Andreas Schwab <schwab@suse.de>
20457
20458 * Makefile.in (LIBES): Move standard libraries to the end.
20459
20460 2008-02-01 Kenichi Handa <handa@m17n.org>
20461
20462 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
20463 nonzero, don't shrink the buffer nextb.
20464
20465 * buffer.h (struct buffer_text): New member inhibit_shrinking.
20466
20467 * coding.c (coding_alloc_by_making_gap): New arg offset.
20468 (alloc_destination): Call coding_alloc_by_making_gap with the arg
20469 offset.
20470 (decode_coding_iso_2022): Update coding->safe_charsets.
20471 (decode_coding_gap): Temporarily set
20472 current_buffer->text->inhibit_shrinking to 1.
20473
20474 2008-02-01 Kenichi Handa <handa@m17n.org>
20475
20476 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
20477 indexing into elements of s->cmp and s->char2b.
20478
20479 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
20480
20481 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
20482
20483 2008-02-01 Kenichi Handa <handa@m17n.org>
20484
20485 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
20486 target_multibyte instead of multibyte.
20487 (re_match_2_internal): Call bcmp_translate with target_multibyte.
20488 (bcmp_translate): Change the argument name from multibyte to
20489 target_multibyte.
20490
20491 2008-02-01 Kenichi Handa <handa@m17n.org>
20492
20493 These changes are to compile a regexp into a pattern that can be
20494 used both for multibyte and unibyte targets.
20495
20496 * Makefile.in (search.o): Depend on charset.h.
20497
20498 * character.c (multibyte_char_to_unibyte_safe): New function.
20499
20500 * search.c: Include "charset.h".
20501 (compile_pattern_1): Delete argument multibyte. Don't set
20502 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
20503 (compile_pattern): Don't compare cp->buf.target_multibyte.
20504 Compare cp->buf.charset_unibyte.
20505 (compile_pattern): Set cp->buf.target_multibyte.
20506
20507 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
20508
20509 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
20510
20511 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
20512 multibyte. Change callers.
20513 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
20514 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
20515 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
20516 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
20517 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
20518 (regex_compile): Make the compiled pattern usable both for
20519 multibyte and unibyte targets.
20520 (analyse_first): Make the fastmap usable both for multibyte and
20521 unibyte targets.
20522 (TRANSLATE_VIA_MULTIBYTE): Delete.
20523 (re_match_2_internal): Pay attention to the case that the
20524 multibyteness of bufp and target may be different.
20525
20526 2008-02-01 Kenichi Handa <handa@m17n.org>
20527
20528 * xdisp.c (x_produce_glyphs): When a font is not found, make the
20529 empty box occupy at least one column width.
20530
20531 2008-02-01 Miles Bader <miles@gnu.org>
20532
20533 * Makefile.in: Remove redundant HAVE_XFT clause.
20534
20535 2008-02-01 Kenichi Handa <handa@m17n.org>
20536
20537 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
20538
20539 2008-02-01 Kenichi Handa <handa@m17n.org>
20540
20541 * fontset.c (Finternal_char_font): Fix for the case of POSITION
20542 being nil.
20543
20544 2008-02-01 Kenichi Handa <handa@m17n.org>
20545
20546 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
20547
20548 2008-02-01 Kenichi Handa <handa@m17n.org>
20549
20550 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
20551
20552 2008-02-01 Kenichi Handa <handa@m17n.org>
20553
20554 * search.c (simple_search): Fix previous change.
20555
20556 2008-02-01 Kenichi Handa <handa@m17n.org>
20557
20558 * xftfont.c (ftfont_font_format): Extern declaration.
20559
20560 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
20561
20562 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
20563 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
20564
20565 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
20566 (ftfont_font_format): Fix previous change.
20567
20568 * font.h (Ffont_xlfd_name): EXFUN it.
20569
20570 * font.c (font_parse_xlfd): Fix the array size of `f'.
20571 (register_font_driver): Use EQ to compare driver->type.
20572
20573 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
20574 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
20575 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
20576
20577 2008-02-01 Kenichi Handa <handa@m17n.org>
20578
20579 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
20580 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
20581
20582 2008-02-01 Kenichi Handa <handa@m17n.org>
20583
20584 * xfont.c (xfont_open): Set font->format.
20585
20586 * xftfont.c (xftfont_open): Set font->format.
20587
20588 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
20589 (ftfont_list): Include FC_FONTFORMAT in FcObject.
20590 (ftfont_open): Set font->format.
20591 (ftfont_font_format): New function.
20592
20593 * font.h (struct font): New member format.
20594
20595 * font.c (Qopentype): New variable.
20596 (syms_of_font): Defsym it.
20597 (Fquery_font): Change the format of the last element of the return
20598 value.
20599
20600 2008-02-01 Kenichi Handa <handa@m17n.org>
20601
20602 * xfns.c (xic_create_xfontset): Try the default fontset name as a
20603 last resort.
20604
20605 2008-02-01 Kenichi Handa <handa@m17n.org>
20606
20607 * coding.c (detect_coding_charset): Fix detection of multi-byte
20608 charset.
20609
20610 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
20611
20612 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
20613
20614 2008-02-01 Kenichi Handa <handa@m17n.org>
20615
20616 * xdisp.c (get_next_display_element): Set it->face_id for the
20617 first component of a composition.
20618 (x_produce_glyphs): Check if the font is changed or not for composition.
20619
20620 2008-02-01 Kenichi Handa <handa@m17n.org>
20621
20622 * fontset.c (Qlatin): New variable.
20623 (syms_of_fontset): Define it as a lisp symbol.
20624 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
20625
20626 2008-02-01 Kenichi Handa <handa@m17n.org>
20627
20628 * font.c (font_unparse_fcname): Pay attention to the case that
20629 some of font property is a null string.
20630
20631 2008-02-01 Kenichi Handa <handa@m17n.org>
20632
20633 * term.c: Include "composite.h".
20634 (encode_terminal_code): Output all components of composition.
20635 Check the size of encode_terminal_src.
20636 (produce_glyphs): For composition, call produce_composite_glyph.
20637 (append_composite_glyph, produce_composite_glyph): New functions.
20638
20639 * xdisp.c (x_produce_glyphs): In handling composition, if a font
20640 is not found, get font_info from the current ascii face.
20641
20642 2008-02-01 Kenichi Handa <handa@m17n.org>
20643
20644 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
20645 buffer-file-name to Qnil before calling insert_from_buffer.
20646
20647 * font.c (font_unparse_fcname): Pay attention to the case that
20648 foundry is a null string.
20649
20650 2008-02-01 Kenichi Handa <handa@m17n.org>
20651
20652 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
20653
20654 * font.c (Qunicode_sip): New variable.
20655 (syms_of_font): Declare it as a Lisp symbol.
20656
20657 * font.h (Qunicode_sip): Extern it.
20658
20659 2008-02-01 Kenichi Handa <handa@m17n.org>
20660
20661 * composite.c (get_composition_id): Pay attention to TAB component.
20662
20663 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
20664 TAB. Adjust for the change of s->char2b which always points to
20665 the first element of allocated memory.
20666
20667 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
20668
20669 * xdisp.c (handle_composition_prop): Set it->c to the first
20670 non-TAB component.
20671 (fill_composite_glyph_string): Change argument.
20672 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
20673 (x_produce_glyphs): Fix handling of left/right padding.
20674
20675 2008-02-01 Kenichi Handa <handa@m17n.org>
20676
20677 * coding.c (detect_coding_system): Fix for handling off
20678 inhibit_iso_escape_detection. Fix for the case that no coding
20679 system is defined for a specific coding category.
20680
20681 2008-02-01 Kenichi Handa <handa@m17n.org>
20682
20683 * font.c (font_matching_entity): Delete unused local var.
20684
20685 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
20686 opening a font.
20687
20688 * fileio.c (Finsert_file_contents): On recovering a file, assume
20689 Unix-like eol.
20690 (choose_write_coding_system): On auto-saving a file, force
20691 Unix-like eol.
20692
20693 * coding.c (setup_coding_system): Fix setting of
20694 coding->common_flags based on eol_type.
20695 (coding_inherit_eol_type): If PARENT is not nil, be sure to
20696 inherit from it.
20697
20698 2008-02-01 Kenichi Handa <handa@m17n.org>
20699
20700 * alloc.c (NSTATICS): Increas to 0x600.
20701
20702 2008-02-01 Kenichi Handa <handa@m17n.org>
20703
20704 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
20705 (ftfont_list): Don't check :name property.
20706 (ftfont_match): New function.
20707 (ftfont_pattern_entity): If the pattern doesn't contain
20708 FC_SPACING, don't assume FC_MONO.
20709
20710 * font.h (struct font_driver): New member `match'.
20711 (font_update_drivers): Adjust prototype.
20712
20713 * font.c (font_parse_fcname, font_parse_name): Don't change :name
20714 property of FONT.
20715 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
20716 them unconditionally.
20717 (font_matching_entity): New function.
20718 (font_open_by_name): Try font_matching_entity if exact match is
20719 not found.
20720 (font_update_drivers): Delete the arg FONT. Return a list of
20721 actually used backends. Don't free faces, font caches here.
20722 Don't store data in frame parameters. Don't call x_set_font.
20723 (Ffont_spec): Store :name property as is.
20724 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
20725 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
20726 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
20727 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
20728 Call font->driver->otf_gsub instead of font_otf_gsub.
20729
20730 * frame.c (x_set_font_backend): Do more works that were done in
20731 font_update_drivers before.
20732
20733 * xfont.c (xfont_match): New function.
20734 (xfont_driver): Set xfont_driver.match to xfont_match.
20735 (xfont_draw): Set font in GC if necessary.
20736
20737 * ftxfont.c (ftxfont_match): New function.
20738 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
20739
20740 * xftfont.c (xftfont_match): New function.
20741 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
20742
20743 2008-02-01 Kenichi Handa <handa@m17n.org>
20744
20745 * font.h (struct font): New member scalable.
20746 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
20747 (font_otf_gsub): Adjust prototype.
20748
20749 * font.c (font_otf_capability): Fix handling of the default langsys.
20750 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
20751 Check the contents of SPEC.
20752 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
20753 (check_gstring): New function.
20754 (REPLACEMENT_CHARACTER): New macro.
20755 (font_otf_gsub): New arg alternate_subst. Be sure to set all
20756 glyph codes of GSTRING.
20757 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
20758 (font_prepare_composition): Set cmp->glyph_len.
20759 (font_open_entity): Set font->scalable.
20760 (Ffont_get): Handle :otf property.
20761 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
20762 functions.
20763 (Fquery_font): Use font->font.full_name.
20764 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
20765 Sfont_otf_alternates.
20766
20767 * ftfont.c (ftfont_open): Set font->font.full_name and
20768 font->font.name properly. Fix calculation of font->font.height
20769 and font->min_width.
20770
20771 * ftxfont.c (ftxfont_create_gcs): New function.
20772 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
20773 (ftxfont_draw_backgrond): Fix filling region.
20774 (ftxfont_default_fid): New function.
20775 (ftxfont_open): Set xfont->fid to the return value of
20776 ftxfont_default_fid.
20777 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
20778 (ftxfont_done_face): Free only GCs that are created by
20779 ftxfont_create_gcs.
20780 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
20781
20782 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
20783 Clip to src->width, etc (not src->clip_XXX).
20784
20785 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
20786 FontBackend frame parameter.
20787
20788 2008-02-01 Kenichi Handa <handa@m17n.org>
20789
20790 * font.h (struct font_driver_list): New member `on'.
20791 (Fclear_font_cache): EXFUN it.
20792 (font_update_drivers): Extern it.
20793
20794 * font.c (font_unparse_fcname): Fix typo (swidth->width).
20795 (font_list_entities): Check driver_list->on.
20796 (register_font_driver): Initialize `on' member to 0.
20797 (font_update_drivers): New function.
20798 (Fclear_font_cache): Check driver_list->on.
20799
20800 * frame.h (Qfont_backend): Extern it.
20801 (x_set_font_backend): Extern it.
20802
20803 * frame.c (Qfont_backend): New variable.
20804 (frame_parms): New element for font-backend.
20805 (x_set_font_backend): New function.
20806
20807 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
20808 FontBackend frame parameter.
20809 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
20810 x_set_font_backend.
20811
20812 * xfont.c (xfont_list): Don't try listing by :name property if the
20813 name is not for XLFD.
20814
20815 2008-02-01 Kenichi Handa <handa@m17n.org>
20816
20817 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
20818 (LGLYPH_SET_TO): New macros.
20819 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
20820 element of G is vector or not.
20821 (font_at): Extern it.
20822
20823 * font.c: Include window.h.
20824 (font_lispy_object): New function.
20825 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
20826 end of valid glyph.
20827 (font_close_object): Fix getting (struct font *).
20828 (font_at): New function.
20829 (Ffont_get): If FONT is a font-object, get entity from it.
20830 (Ffont_make_gstring): Initialize elements of glyphs with nil.
20831 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
20832 range check.
20833 (Ffont_at): New function.
20834 (syms_of_font): Defsubr Sfont_at.
20835
20836 * xdisp.c (it_props): Move the entry for Qauto_composed to just
20837 before the entry for Qcomposition.
20838 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
20839 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
20840 the font in gstring.
20841 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
20842 LGLYPH_FORM (g) to detect the end of valid glyph.
20843 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
20844 we are composing with gstring.
20845
20846 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
20847 Check if adjustment is vector or not.
20848
20849 * Makefile.in (font.o): Make it depends on window.h.
20850
20851 2008-02-01 Kenichi Handa <handa@m17n.org>
20852
20853 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
20854 adjustment is vector or not.
20855
20856 2008-02-01 Miles Bader <miles@gnu.org>
20857
20858 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
20859
20860 2008-02-01 Kenichi Handa <handa@m17n.org>
20861
20862 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
20863 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
20864 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
20865
20866 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
20867 (DEVICE_DELTA): Fix typo.
20868 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
20869 LGLYPH format.
20870
20871 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
20872 the change of LGLYPH format.
20873
20874 2008-02-01 Kenichi Handa <handa@m17n.org>
20875
20876 * ftfont.c (ftfont_list): Fix typo.
20877 (ftfont_build_basic_charsets): Don't include letters with diacritics.
20878
20879 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20880
20881 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
20882
20883 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
20884 xftface_info is non-NULL.
20885
20886 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20887
20888 * ftfont.c (ftfont_list): Move misplaced #endif.
20889
20890 2008-02-01 Kenichi Handa <handa@m17n.org>
20891
20892 * ftfont.c (ftfont_list): Pay attention to the case that
20893 FC_CAPABILITY is not defined.
20894
20895 2008-02-01 Kenichi Handa <handa@m17n.org>
20896
20897 * xftfont.c (xftfont_open): Set charset related members to -1.
20898
20899 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
20900 QCname.
20901 (ftfont_open): Set charset related members to -1.
20902
20903 * fontset.c (Votf_script_alist): New variable.
20904 (syms_of_fontset): Initialize it.
20905 (fontset_font): Delete unused variable.
20906
20907 * fontset.h (Votf_script_alist): Extern it.
20908
20909 * font.c (font_find_for_lface): Optimize code.
20910
20911 * font.h (font_close_object, font_merge_old_spec): Extern them.
20912
20913 2008-02-01 Kenichi Handa <handa@m17n.org>
20914
20915 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
20916 (syms_of_font): Initialize them.
20917 (font_pixel_size): Allow float value in dpi.
20918 (font_prop_validate_type): Delete.
20919 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
20920 Change caller.
20921 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
20922 (font_prop_validate_extra): Delete.
20923 (font_prop_validate_spacing): New function.
20924 (font_property_table): Add elements for all known properties.
20925 (get_font_prop_index): Rename from check_font_prop_name. New
20926 argument FROM. Change caller.
20927 (font_prop_validate): Validate all known properties.
20928 (font_put_extra): Delete argument force. Change caller.
20929 (font_expand_wildcards): Make it static. Fix the way of shrinking
20930 the possible range.
20931 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
20932 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
20933 Change caller.
20934 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
20935 (font_parse_fcname): Delete argument merge. Fix parsing of point
20936 size. Don't validate properties values here. Change caller.
20937 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
20938 (font_open_by_name): Delete unused variable.
20939 (Ffont_spec): Likewise. Validate property values.
20940 (Ffont_match_p): New function.
20941
20942 * font.h (QCscalable): Extern it.
20943 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
20944
20945 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
20946
20947 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
20948 (xfont_list_pattern): New function.
20949 (xfont_list): Use xfont_list_pattern.
20950
20951 2008-02-01 Kenichi Handa <handa@m17n.org>
20952
20953 * font.h (Flist_fonts): EXFUN it.
20954
20955 2008-02-01 Jason Rumney <jasonr@gnu.org>
20956
20957 * w32term.c (w32_initialize): Add back smoothing_type and
20958 smoothing_enabled definitions.
20959
20960 2008-02-01 Kenichi Handa <handa@m17n.org>
20961
20962 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
20963 s->face->font on determining underline position.
20964
20965 2008-02-01 Kenichi Handa <handa@m17n.org>
20966
20967 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
20968 (font_has_char): Accept font-object too.
20969 (font_find_for_lface): Try at first with a size specified in face.
20970
20971 2008-02-01 Kenichi Handa <handa@m17n.org>
20972
20973 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
20974 font_open_by_name.
20975
20976 2008-02-01 Kenichi Handa <handa@m17n.org>
20977
20978 * font.h (QCspacing, QCdpi): Extern them.
20979 (enum font_spacing): New enum.
20980 (FONT_PIXEL_SIZE_QUANTUM): New macro.
20981
20982 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
20983 (QCspacing, QCdpi): New variables.
20984 (syms_of_font): Initialize them.
20985 (font_pixel_size): New function.
20986 (font_put_extra): New function.
20987 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
20988 in FONT_EXTRA.
20989 (font_parse_fcname): Handle enumerated values (e.g. bold).
20990 Fix handling font size. Add QCname property that contains only
20991 unknown properties.
20992 (font_score): Change argument. Change caller. Pay attention to
20993 FONT_PIXEL_SIZE_QUANTUM.
20994 (font_sort_entites, font_list_entities, font_find_for_lface)
20995 (font_open_for_lface, font_open_by_name): Fix handling of font size.
20996 (Ffont_spec): Add QCname property that contains only unknown properties.
20997
20998 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
20999 include weight in listing pattern, instead check weight of each
21000 listed font. Don't include scalable in pattern. Pay attention to
21001 FONT_PIXEL_SIZE_QUANTUM.
21002
21003 2008-02-01 Kenichi Handa <handa@m17n.org>
21004
21005 * font.c (font_parse_fcname): Fix parsing of point-size.
21006 (font_unparse_fcname): Produce symbolic names for style properties.
21007 (font_list_entities): Handle float size correctly.
21008 (font_open_by_name): Prefer `normal' property values if the name
21009 doesn't specify them.
21010
21011 * fontset.c (Finternal_char_font): Use font_get_name, not
21012 Ffont_xlfd_name.
21013
21014 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
21015 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
21016 pattern. Don't force scalable.
21017
21018 * xftfont.c (xftfont_open): For generating a name, start from
21019 96-byte buffer.
21020
21021 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
21022
21023 * frame.h (x_new_fontset2): Fix prototype.
21024
21025 2008-02-01 Kenichi Handa <handa@m17n.org>
21026
21027 * font.h (struct font_driver): Delete member parse_name.
21028 (font_match_p, font_get_spec, font_parse_fcname)
21029 (font_unparse_fcname): Extern them.
21030 (font_get_name): Adjust prototype.
21031
21032 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
21033 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
21034 (font_expand_wildcards): Fix handling ENCODING field. Avoid
21035 unnecessary checks for weight, slant, and swidth.
21036 (font_parse_fcname): New function.
21037 (font_unparse_fcname): New function.
21038 (font_parse_name): New function.
21039 (font_match_p): New function.
21040 (font_get_name): Change return value to Lisp string.
21041 (font_get_spec): New function.
21042 (Qunspecified, Qignore_defface): Don't extern them.
21043 (font_find_for_lface): Assume that LFACE is fully specified.
21044 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
21045 object, use it for FACE.
21046 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
21047 driver->parse_name.
21048 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
21049
21050 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
21051 prototype.
21052
21053 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
21054 argument F. Don't call Fnew_fontset. Instead, directly call
21055 make_fontset.
21056
21057 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
21058
21059 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
21060 of x_new_fontset2.
21061
21062 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
21063 (Qsans__serif): New variables.
21064 (ftfont_generic_family_list): New variable.
21065 (syms_of_ftfont): Initialize the above variables.
21066 (ftfont_pattern_entity): Delete argument NAME.
21067 (ftfont_list_generic_family): New function.
21068 (ftfont_parse_name): Delete this function.
21069 (ftfont_list): Try generic family only when FcFontList found no font.
21070 (ftfont_list_family): Fix args to FcObjectSetBuild.
21071
21072 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
21073 object in attrs[LFACE_FONT_INDEX].
21074 (set_lface_from_font_name): Cancel all changes for font-backend.
21075 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
21076 function.
21077 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
21078 font object in QCfont attribute.
21079 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
21080 (realize_default_face) [USE_FONT_BACKEND]: Call
21081 set_lface_from_font_and_fontset.
21082
21083 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
21084 "fixed", and signal error here if no suitable font was found.
21085
21086 * xfont.c (xfont_parse_name): Delete this function.
21087
21088 * xftfont.c (xftfont_open): Change coding style of error
21089 handling. Generate fontconfig's fontname pattern.
21090
21091 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
21092 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
21093
21094 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
21095 Both args FONTSET and FONT_OBJECT must be existing ones.
21096
21097 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21098
21099 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
21100
21101 2008-02-01 Kenichi Handa <handa@m17n.org>
21102
21103 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
21104
21105 * font.h (struct font): Fix typo.
21106
21107 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
21108 XLFD_XXX_INDEX.
21109 (enum xlfd_field_mask): New enum.
21110 (intern_font_field): Changed argument. Change caller. If digits
21111 are followed by non-digits, return a symbol.
21112 (font_expand_wildcards): New function.
21113 (font_parse_xlfd): Fix wildcard handling.
21114 (Ffont_spec): If :name is specified, reflect the info in the other
21115 properties.
21116
21117 * ftfont.c (ftfont_pattern_entity): Fix typo.
21118 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
21119 locale.
21120
21121 2008-02-01 Kenichi Handa <handa@m17n.org>
21122
21123 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
21124
21125 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
21126 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
21127 registry doesn't specify encoding part.
21128 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
21129 (font_open_by_name): At first try parsing the name.
21130 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
21131 as Lisp symbols.
21132
21133 * fontset.c (reorder_font_vector): Pay attention to the case that
21134 the 3rd element of font_def is nil.
21135 (fontset_font): For the default fontset, append one more fontset
21136 elements for a script-based font specification. Don't add script
21137 attribute on finding a font.
21138 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
21139 font name.
21140 (fontset_ascii_font): If a font can't be opened, return nil.
21141
21142 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
21143 (ftfont_pattern_entity): New function.
21144 (ftfont_get_cache): Assume that freetype_font_cache is already
21145 initialized.
21146 (ftfont_list): Handle the case that a file is specified in font
21147 name. Use ftfont_pattern_entity to generate entities.
21148 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
21149 (syms_of_ftfont): Initialize freetype_font_cache.
21150
21151 * xftfont.c (xftfont_open): Make the font name fontconfig's
21152 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
21153 (xftfont_close): Free font->font.name if not NULL.
21154
21155 * xfont.c (xfont_list): If script is specified for a font, return
21156 null_vector.
21157 (xfont_list_family): Declare argument type.
21158
21159 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
21160 name, set LFACE_FONT (lface) to nil.
21161
21162 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
21163 return Qnil.
21164
21165 2008-02-01 Kenichi Handa <handa@m17n.org>
21166
21167 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
21168 (standard_args): Add "-enable-font-backend".
21169
21170 2008-02-01 Kenichi Handa <handa@m17n.org>
21171
21172 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
21173 (struct xftdraw_list, xftdraw_list): Delete them.
21174 (register_xftdraw, check_xftdraw): Delete them.
21175 (xftfont_prepare_face): Don't call register_xftdraw.
21176 (xftfont_done_face): Don't call check_xftdraw.
21177 (xftfont_draw): Get background color only when with_background is
21178 nonzero.
21179
21180 * xfont.c (xfont_encode_char): Fix calculation of char2b.
21181
21182 2008-02-01 Kenichi Handa <handa@m17n.org>
21183
21184 These changes are for the new font handling codes.
21185
21186 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
21187 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
21188 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
21189 (FONTSRC, FONTOBJ): New variables.
21190 (obj): Add $(FONTOBJ).
21191 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
21192 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
21193 @LIBOTF_LIBS@.
21194 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
21195 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
21196
21197 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
21198
21199 * character.h (Vscript_representative_chars): Extern it.
21200
21201 * character.c (Vscript_representative_chars): New variable.
21202 (syms_of_character): Declare it as a Lisp variable.
21203
21204 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
21205 enable_font_backend is nonzero, accept the composition method
21206 COMPOSITION_WITH_GLYPH_STRING.
21207
21208 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
21209 enumeration COMPOSITION_WITH_GLYPH_STRING.
21210
21211 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
21212 members clip_x, clip_y, clip_width, and clip_height.
21213 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
21214
21215 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
21216 --enable-font-backend. Call syms_of_font.
21217
21218 * fns.c (assoc_no_quit): New function.
21219
21220 * fontset.h (FONT_INFO_FROM_FACE): New macro.
21221 (face_for_font, new_fontset_from_font)
21222 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
21223
21224 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
21225 (fontset_font, fontset_ascii, face_for_char)
21226 (make_fontset_for_ascii_face, Ffont_info)
21227 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
21228 is nonzero, use font-backend mechanism.
21229 (find_font_encoding): Make it non-static.
21230 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
21231 New functions.
21232
21233 * frame.h (struct frame): New members resx and resy.
21234 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
21235 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
21236
21237 * frame.c [USE_FONT_BACKEND]: Include "font.h".
21238 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
21239
21240 * lisp.h (assoc_no_quit): Extern it.
21241
21242 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
21243 Through out the file, use FONT_INFO_FROM_FACE instead of
21244 FONT_INFO_FROM_ID, use get_per_char_metric instead of
21245 rif->per_char_metric.
21246 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
21247 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
21248 (get_glyph_face_and_encoding, fill_composite_glyph_string)
21249 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
21250 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
21251 nonzero, use font-backend mechanism.
21252 (get_per_char_metric): New function.
21253
21254 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
21255 (set_lface_from_font_name)
21256 (set_font_frame_param, free_realized_face)
21257 (prepare_face_for_display, clear_face_gcs)
21258 (Finternal_set_font_selection_order, realize_x_face)
21259 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
21260 font-backend mechanism.
21261 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
21262 (load_face_font) [USE_FONT_BACKEND]: Abort.
21263 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
21264 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
21265
21266 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
21267 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
21268 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
21269 nonzero, register all available font drivers. Call
21270 x_default_font_parameter for deciding a font.
21271 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
21272
21273 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
21274 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
21275 (x_set_glyph_string_clipping_exactly)
21276 (x_compute_glyph_string_overhangs)
21277 (x_draw_glyph_string_foreground)
21278 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
21279 (x_free_frame_resources) [USE_FONT_BACKEND]: If
21280 enable_font_backend is nonzero, use font-backend mechanism.
21281 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
21282
21283 2008-02-01 Kenichi Handa <handa@m17n.org>
21284
21285 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
21286 system_eol_type.
21287 (syms_of_coding): Initialize system_eol_type.
21288
21289 * process.c (Fset_process_coding_system): Inherit system's eol
21290 format if necessary.
21291
21292 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21293
21294 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
21295
21296 2008-02-01 Kenichi Handa <handa@m17n.org>
21297
21298 * coding.c (decode_eol): Pay attention to buffer relocation in
21299 del_range_2.
21300 (decode_coding): Call decode_eol before restoring undo_list.
21301
21302 2008-02-01 Kenichi Handa <handa@m17n.org>
21303
21304 * charset.c (Fdefine_charset_internal): Fix setting of
21305 emacs_mule_bytes.
21306
21307 2008-02-01 Kenichi Handa <handa@m17n.org>
21308
21309 * keyboard.c (read_char): Check if C is a character or not before
21310 looking up Vkeyboard_translate_table.
21311
21312 2008-02-01 Kenichi Handa <handa@m17n.org>
21313
21314 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
21315 condition to terminate the loop.
21316
21317 2008-02-01 Kenichi Handa <handa@m17n.org>
21318
21319 * coding.c (produce_composition): Compare charbuf[i] instead of
21320 args[i] against 0.
21321 (Fterminal_coding_system): Use EQ to compare Lisp objects.
21322
21323 2008-02-01 Kenichi Handa <handa@m17n.org>
21324
21325 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
21326 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
21327 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
21328 detect_coding.
21329 (emacs_mule_char): Handle old style (Emacs 20) component character
21330 of a composition.
21331 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
21332 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
21333 composition rule.
21334 (decode_coding_emacs_mule): Handle invalid bytes correctly.
21335
21336 2008-02-01 Kenichi Handa <handa@m17n.org>
21337
21338 * coding.c (encode_coding_ccl): Allocate destination dynamically
21339 when necessary.
21340
21341 2008-02-01 Kenichi Handa <handa@m17n.org>
21342
21343 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
21344 the loop. When quitted, show a proper error message.
21345
21346 2008-02-01 Kenichi Handa <handa@m17n.org>
21347
21348 * xterm.c (x_set_glyph_string_clipping_exactly): Set
21349 src->clip_head and src->clip_tail temporarily instead of src->hl.
21350
21351 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
21352 character sequence.
21353 (Fccl_execute_on_string): Use ASET, not XSET.
21354
21355 2008-02-01 Kenichi Handa <handa@m17n.org>
21356
21357 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
21358
21359 2008-02-01 Kenichi Handa <handa@m17n.org>
21360
21361 * coding.c (decode_coding): Fix the condition of terminating the
21362 decoding loop.
21363
21364 2008-02-01 Kenichi Handa <handa@m17n.org>
21365
21366 * data.c (Faset): On setting a character bigger than 255 in a
21367 unibyte string, signal an error instead of make the string multibyte.
21368
21369 2008-02-01 Kenichi Handa <handa@m17n.org>
21370
21371 * charset.c (map_charset_chars): Fix for ascii-compatible charset
21372 made by a mapping table.
21373
21374 2008-02-01 Kenichi Handa <handa@m17n.org>
21375
21376 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
21377 not.
21378 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
21379 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
21380
21381 * xterm.c (x_draw_composite_glyph_string_foreground): Check
21382 s->face is NULL or not.
21383
21384 2008-02-01 Kenichi Handa <handa@m17n.org>
21385
21386 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
21387 (x_draw_glyph_string): Fix drawing of right_overhang and
21388 left_overhang around/on cursor.
21389
21390 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
21391
21392 2008-02-01 Kenichi Handa <handa@m17n.org>
21393
21394 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
21395
21396 2008-02-01 Kenichi Handa <handa@m17n.org>
21397
21398 * coding.c (Fdefine_coding_system_internal)
21399 (Fdefine_coding_system_alias): Avoid a duplicated element in
21400 Vcoding_system_alist.
21401
21402 2008-02-01 Kenichi Handa <handa@m17n.org>
21403
21404 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
21405
21406 * coding.c (Qcoding_system_define_form): New variable.
21407 (syms_of_coding): Intern and staticpro it.
21408 (Fcoding_system_p): Check Qcoding_system_define_form.
21409 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
21410
21411 * coding.h (CODING_SYSTEM_P): If ID is not available, call
21412 Fcoding_system_p.
21413 (CHECK_CODING_SYSTEM): If ID is not available, call
21414 Fcheck_coding_system.
21415 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
21416 Try also Fcheck_coding_system.
21417
21418 2008-02-01 Kenichi Handa <handa@m17n.org>
21419
21420 * coding.c (code_conversion_restore): GCPRO arg.
21421
21422 2008-02-01 Kenichi Handa <handa@m17n.org>
21423
21424 * character.c (lisp_string_width): Check multibyteness of STRING.
21425
21426 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21427
21428 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
21429 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
21430 (decode_mac_font_name): Use decode_coding_c_string instead of
21431 decode_coding.
21432 (x_load_font): Initialize fontp->fontset to -1. Set
21433 fontp->encoding_type.
21434
21435 2008-02-01 Kenichi Handa <handa@m17n.org>
21436
21437 * search.c (search_buffer): Give up BM search on case-fold-search
21438 if one of a target character has a case-equivalence of different
21439 byte length even if that target character is an ASCII.
21440 (simple_search): Fix calculation of byte length of matched text.
21441 (boyer_moore): Fix handling of case-equivalent multibyte characters.
21442
21443 2008-02-01 Kenichi Handa <handa@m17n.org>
21444
21445 * coding.c (decode_coding): Fix handling of invalid bytes.
21446
21447 2008-02-01 Kenichi Handa <handa@m17n.org>
21448
21449 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
21450 Unicode characters.
21451
21452 2008-02-01 Kenichi Handa <handa@m17n.org>
21453
21454 * coding.c (encode_coding_object): If a pre-write-conversion
21455 function makes a new buffer, kill it.
21456
21457 2008-02-01 Kenichi Handa <handa@m17n.org>
21458
21459 * coding.c (QCascii_compatible_p): New variable.
21460 (syms_of_coding): Initialize it.
21461 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
21462 calling string_char.
21463 (record_conversion_result): Add `default:' case.
21464 (coding_charset_list): Delete unused variable `coding_type'.
21465 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
21466 property in the plist of the coding system.
21467 (Fcoding_system_put): Check QCascii_compatible_p.
21468
21469 2008-02-01 Miles Bader <miles@gnu.org>
21470
21471 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
21472 removed calculation of frame `f', as it's now used.
21473
21474 2008-02-01 Kenichi Handa <handa@m17n.org>
21475
21476 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
21477 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
21478 (UNIDATA): New variable.
21479 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
21480 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
21481 $(RUN_TEMACS) unconditionally.
21482
21483 2008-02-01 Kenichi Handa <handa@m17n.org>
21484
21485 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
21486 (admindir): New variable.
21487 ($(lispsource)international/charprop.el): New target.
21488
21489 2008-02-01 Miles Bader <miles@gnu.org>
21490
21491 * character.c (chars-in-region): Remove obsolete function.
21492 (syms_of_character): Remove its initialization.
21493
21494 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
21495
21496 * w32select.c (validate_coding_system)
21497 (setup_windows_coding_system): New functions.
21498 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
21499 setup_windows_coding_system.
21500 (setup_config, Fw32_get_clipboard_data): Use
21501 validate_coding_system.
21502 (Fx_selection_exists): Move call to setup_config to a place
21503 where signals are allowed.
21504
21505 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
21506 (Fcheck_coding_system): Add declarations.
21507
21508 2008-02-01 Kenichi Handa <handa@m17n.org>
21509
21510 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
21511
21512 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21513
21514 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
21515 string as the second argument for x_new_fontset.
21516
21517 2008-02-01 Kenichi Handa <handa@m17n.org>
21518
21519 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
21520 (encode_coding_object): Use safe_call instead of call2.
21521
21522 2008-02-01 Kenichi Handa <handa@m17n.org>
21523
21524 * fontset.c (Fset_fontset_font): Check family element of a given vector.
21525
21526 * Makefile.in (lisp): Include charprop.el.
21527
21528 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21529
21530 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
21531 Not sure if it's unnecessary.
21532
21533 2008-02-01 Steven Tamm <steventamm@mac.com>
21534
21535 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
21536 some possibly unnecessary fontset checking code that crashed
21537 when creating a new frame.
21538
21539 2008-02-01 Kenichi Handa <handa@m17n.org>
21540
21541 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
21542 lookup_face.
21543
21544 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
21545
21546 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
21547
21548 2008-02-01 Kenichi Handa <handa@m17n.org>
21549
21550 * coding.c: Cancel the change done in HEAD on 2008-02-01.
21551 (coding_charset_list): New function.
21552
21553 * coding.h (coding_charset_list): Extern it.
21554
21555 2008-02-01 Kenichi Handa <handa@m17n.org>
21556
21557 * fontset.c (Fset_fontset_font): Call find_font_encoding with
21558 concatenation of family and registry.
21559
21560 2008-02-01 Kenichi Handa <handa@m17n.org>
21561
21562 * character.h (BYTE8_STRING): Fix typo.
21563
21564 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
21565 string to multibyte (sync to HEAD).
21566
21567 * casefiddle.c (casify_region): Handle changes in byte-length
21568 using replace_range_2 (sync to HEAD).
21569
21570 2008-02-01 Andreas Schwab <schwab@suse.de>
21571
21572 * chartab.c (map_char_table): GCPRO table and arg.
21573
21574 2008-02-01 Kenichi Handa <handa@m17n.org>
21575
21576 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
21577 already at limit.
21578
21579 2008-02-01 Kenichi Handa <handa@m17n.org>
21580
21581 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
21582 instead of fast_c_string_match_ignore_case.
21583 (find_font_encoding): Change argument to Lisp_Object. Use
21584 fast_string_match_ignore_case instead of
21585 fast_c_string_match_ignore_case. Change caller.
21586
21587 2008-02-01 Kenichi Handa <handa@m17n.org>
21588
21589 * xdisp.c (get_next_display_element): In unibyte case, decide to
21590 display in octal form by checking a character by
21591 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
21592
21593 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
21594
21595 * character.c (unibyte_has_multibyte_table): New variable.
21596
21597 * character.h (unibyte_has_multibyte_table): Extern it.
21598 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
21599
21600 2008-02-01 Kenichi Handa <handa@m17n.org>
21601
21602 * coding.c (encode_coding_iso_2022): Fix handling of charset
21603 annotation.
21604
21605 2008-02-01 Kenichi Handa <handa@m17n.org>
21606
21607 * coding.c (setup_coding_system): If coding_system is nil, use
21608 Qundecided.
21609 (Fterminal_coding_system): Return nil if terminal coding system is
21610 `undecided'.
21611 (syms_of_coding): Define coding-system `undecided' here. Setup
21612 terminal_coding as `undecided'.
21613
21614 2008-02-01 Kenichi Handa <handa@m17n.org>
21615
21616 * xdisp.c (message_dolog, set_message_1): Call
21617 unibyte_char_to_multibyte with arg type int.
21618
21619 * lread.c (read1): Fix reading of a char-table.
21620
21621 * print.c (print_object): Include sub char-table in circularities
21622 detection.
21623
21624 2008-02-01 Kenichi Handa <handa@m17n.org>
21625
21626 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
21627 Append the found sequences in car of ARGS instead of prepending.
21628
21629 2008-02-01 Kenichi Handa <handa@m17n.org>
21630
21631 * fileio.c (report_file_error): Make a unibyte string from
21632 strerror (errorno).
21633 (Fsubstitute_in_file_name): Fix the arg to
21634 unibyte_char_to_multibyte. It is evaluated twice.
21635
21636 2008-02-01 Kenichi Handa <handa@m17n.org>
21637
21638 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
21639
21640 2008-02-01 Kenichi Handa <handa@m17n.org>
21641
21642 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
21643 BOM is not found.
21644 (detect_coding, detect_coding_system): Optimization for ISO-2022
21645 when no 8-bit data is found.
21646
21647 2008-02-01 Jason Rumney <jasonr@gnu.org>
21648
21649 * w32fns.c (x_to_w32_font): Update to use new coding struct.
21650
21651 2008-02-01 Kenichi Handa <handa@m17n.org>
21652
21653 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
21654 CHARS.
21655
21656 2008-02-01 Steven Tamm <steventamm@mac.com>
21657
21658 * macterm.c (mac_encode_char): Add charset argument and update
21659 to use encoding_type.
21660 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
21661 switch to pure fontset.
21662 (decode_mac_font_name): Temporarily remove decoding.
21663 (x_font_name_to_mac_font_name): Temporarily remove encoding.
21664 (x_load_font): Temporarily remove encoding.
21665
21666 2008-02-01 Kenichi Handa <handa@m17n.org>
21667
21668 * xfaces.c (Fface_font): If frame is not on a window system,
21669 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
21670 refer to face->font.
21671 (split_font_name_into_vector, build_font_name_from_vector)
21672 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
21673 when HAVE_WINDOW_SYSTEM is defined.
21674
21675 2008-02-01 Kenichi Handa <handa@m17n.org>
21676
21677 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
21678 (x_produce_glyphs): Fix setting of members of cmp in case
21679 cmp->glyph_len is zero.
21680
21681 * fontset.c (Fset_fontset_font): Fix docstring.
21682 (Ffontset_info): Make it backward compatible. New arg ALL.
21683
21684 2008-02-01 Kim F. Storm <storm@cua.dk>
21685
21686 * process.c (read_process_output): Grow decoding_buf when needed;
21687 this could cause a crash in allocate_string and compact_small_strings.
21688
21689 2008-02-01 Kenichi Handa <handa@m17n.org>
21690
21691 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
21692
21693 2008-02-01 Kenichi Handa <handa@m17n.org>
21694
21695 * coding.c (setup_coding_system): Set coding->common_flags
21696 correctly for raw-text.
21697 (consume_chars): On encoding unibyte text by raw-text, don't check
21698 multibyte form.
21699 (encode_coding): On encoding by raw-text, never use translation tables.
21700
21701 * fileio.c (e_write): Short cut for the case of no encoding.
21702
21703 2008-02-01 Kenichi Handa <handa@m17n.org>
21704
21705 * coding.c (detect_coding, detect_coding_system): Delete unused
21706 variables.
21707
21708 2008-02-01 Kenichi Handa <handa@m17n.org>
21709
21710 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
21711 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
21712
21713 2008-02-01 Kenichi Handa <handa@m17n.org>
21714
21715 * coding.c (Ffind_coding_systems_region_internal): Include
21716 raw-text and no-conversion in the result.
21717
21718 2008-02-01 Kenichi Handa <handa@m17n.org>
21719
21720 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
21721 (load_font_get_repertory): Delete unnecessary check of ENCODING of
21722 FONT_DEF.
21723 (font_def_arg, add_arg, from_arg, to_arg): New args.
21724 (set_fontset_font): Change argument.
21725 (Fset_fontset_font): Fix for the case that TARGET is a script
21726 name and charset name.
21727 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
21728
21729 2008-02-01 Kenichi Handa <handa@m17n.org>
21730
21731 * fontset.c (fontset_font): Rename from fontset_face. Change return
21732 value.
21733 (face_suitable_for_char_p, face_for_char): Adjust for the change
21734 of fontset_font.
21735 (make_fontset_for_ascii_face): Fix setting of the fontset element
21736 for ASCII.
21737 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
21738 to get a font name.
21739 (Ffontset_info): Adjust for the change of fontset_font.
21740
21741 * coding.c (emacs_mule_char): Check invalid code more rigidly.
21742
21743 * character.h (LEADING_CODE_LATIN_1_MIN)
21744 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
21745
21746 2008-02-01 Kenichi Handa <handa@m17n.org>
21747
21748 * editfns.c (check_translation): New function.
21749 (Ftranslate_region_internal): Handle M:N mapping.
21750
21751 2008-02-01 Kenichi Handa <handa@m17n.org>
21752
21753 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
21754
21755 2008-02-01 Kenichi Handa <handa@m17n.org>
21756
21757 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
21758 goto invalid_code.
21759 (decode_coding_iso_2022): Fix handling of invalid designation.
21760
21761 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
21762 after calling code_conversion_save.
21763
21764 2008-02-01 Kenichi Handa <handa@m17n.org>
21765
21766 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
21767
21768 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
21769
21770 * fontset.c: Include "intervals.h".
21771 (fontset_face): Fix comparing of Lisp_Objects.
21772 (free_face_fontset, new_fontset_from_font_name): Fix
21773 Lisp_Object/int mixup.
21774
21775 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
21776
21777 * coding.c: Add many prototypes for static functions.
21778 (get_translation_table): Allow max_lookup to be NULL.
21779 (decode_coding, Ffind_coding_systems_region_internal)
21780 (Funencodable_char_position, Fcheck_coding_systems_region): Call
21781 get_translation_table with max_lookup NULL.
21782
21783 2008-02-01 Kenichi Handa <handa@m17n.org>
21784
21785 * coding.c (get_translation_table): Declare it as Lisp_Object.
21786 (LOOKUP_TRANSLATION_TABLE): New macro.
21787 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
21788 instead of CHAR_TABLE_REF.
21789
21790 2008-02-01 Kenichi Handa <handa@m17n.org>
21791
21792 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
21793 annotation data format.
21794 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
21795 Change arguments FROM and TO to single argument NCHARS. Change caller.
21796 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
21797 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21798 (decode_coding_ccl, decode_coding_charset): Pay attention to
21799 coding->charbuf_used.
21800 (get_translation): New function.
21801 (produce_chars): New arguments translation_table and last_block.
21802 Translate characters here. Return number of carryover chars.
21803 Change caller.
21804 (produce_composition): New argument pos. Change caller.
21805 Adjust for the change of annotation data format.
21806 (produce_charset, produce_annotation): Likewise.
21807 (decode_coding, encode_coding): Don't call translate_chars.
21808 (consume_chars): New arg translation_table. Change caller.
21809 (translate_chars): Delete.
21810 (syms_of_coding): Make translation-table's number of extra slots 2.
21811
21812 2008-02-01 Kenichi Handa <handa@m17n.org>
21813
21814 * search.c (simple_search): Fix setting this_pos_byte in backward
21815 search.
21816
21817 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
21818 byte sequence.
21819 (detect_coding_ccl): Fix setting of the variable valids.
21820
21821 2008-02-01 Kenichi Handa <handa@m17n.org>
21822
21823 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
21824
21825 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
21826
21827 * editfns.c (Ftranslate_region_internal): Rename from
21828 Ftranslate_region. Accept a char-table in TABLE.
21829 (syms_of_editfns): Defsubr Stranslate_region_internal.
21830
21831 * xfaces.c (set_lface_from_font_name): If a font is specified for
21832 a frame, generate a fontset from the font.
21833 (build_scalable_font_name): If the scalable font is requested for
21834 a specific size, don't change that size.
21835 (try_font_list): Try a scalable font also in the case that a
21836 pattern string is specified.
21837
21838 2008-02-01 Kenichi Handa <handa@m17n.org>
21839
21840 * xfaces.c (Fface_font): New optional arg CHARACTER.
21841
21842 2008-02-01 Kenichi Handa <handa@m17n.org>
21843
21844 * charset.h (CHARSET_OFFSET): New macro.
21845
21846 2008-02-01 Kenichi Handa <handa@m17n.org>
21847
21848 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
21849
21850 * fontset.c (fontset_face): Handle the case that repertory is a
21851 char-table.
21852 (find_font_encoding): Return nil for unknown encoding.
21853 (Fset_fontset_font): Ignore a font of unknown encoding.
21854
21855 2008-02-01 Kenichi Handa <handa@m17n.org>
21856
21857 * keymap.c (describe_vector): Handle default value of a char table.
21858
21859 * fontset.c (fontset_face): Handle fallback fonts correctly.
21860 (Ffontset_info): Return infomation about fallback fonts.
21861
21862 2008-02-01 Kenichi Handa <handa@m17n.org>
21863
21864 * fontset.c (FONTSET_DEFAULT): New macro.
21865 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
21866 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
21867 the case that it is nil.
21868 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
21869 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
21870
21871 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
21872 subset or superset.
21873
21874 2008-02-01 Kenichi Handa <handa@m17n.org>
21875
21876 * emacs.c (main): Call init_charset after syms_of_XXX.
21877
21878 * charset.c (Vcharset_map_directory): Delete.
21879 (Vcharset_map_path): New variable.
21880 (load_charset_map_from_file): Use Vcharset_map_path instead.
21881 (init_charset): Initialize Vcharset_map_path.
21882 (syms_of_charset): Delete declaration of "charset-map-directory",
21883 add declaration of "charset-map-path".
21884
21885 2008-02-01 Kenichi Handa <handa@m17n.org>
21886
21887 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
21888 ASCII only string.
21889
21890 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
21891
21892 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
21893 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
21894
21895 2008-02-01 Kenichi Handa <handa@m17n.org>
21896
21897 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
21898
21899 * coding.c (QCmnemonic, QCdefalut_char)
21900 (QCdecode_translation_table, QCencode_translation_table)
21901 (QCpost_read_conversion, QCpre_write_conversion): New variables.
21902 (get_translation_table): Return a list of translation tables if
21903 necessary.
21904 (decode_coding): Call get_translation_table with ENCODEP 0.
21905 (char_encodable_p): If translation_table is non-nil, always call
21906 translate_char.
21907 (Fdefine_coding_system_internal): Accept list of translation
21908 tables as :encode-translation-table and :decode-translation-table.
21909 (Fcoding_system_put): New function.
21910 (syms_of_coding): Declare new symbols. Defsubr
21911 Scoding_system_put.
21912 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
21913 typically JISX0212.
21914
21915 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
21916 when the charset is superset type.
21917
21918 * character.c (translate_char): Accept list of translation tables.
21919
21920 2008-02-01 Kenichi Handa <handa@m17n.org>
21921
21922 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
21923 (CODING_ATTR_TRANS_TBL): New macro.
21924
21925 * coding.c (get_translation_table): New function.
21926 (translate_chars): Fix the bug of skipping annotation data.
21927 (decode_coding, encode_coding): Utilize get_translation_table.
21928 (char_encodable_p, Funencodable_char_position): Translate char if
21929 necessary.
21930 (Ffind_coding_systems_region_internal)
21931 (Fcheck_coding_systems_region): Setup translation table for encode
21932 in a coding system attribute vector in advance.
21933 (Fdefine_coding_system_internal): Allow a symbol as translation
21934 table. For shift-jis type coding system, allow 4th charset.
21935
21936 2008-02-01 Kenichi Handa <handa@m17n.org>
21937
21938 * coding.c (decode_coding_sjis): Check the first byte rigidly.
21939
21940 * xdisp.c (get_next_display_element): Pass -1 as POS to
21941 FACE_FOR_CHAR if displaying a C-string.
21942
21943 2008-02-01 Kenichi Handa <handa@m17n.org>
21944
21945 * composite.c (get_composition_id): Handle xoff and yoff in a
21946 composition rule.
21947
21948 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
21949 (struct composition): New member lbearing and rbearing.
21950
21951 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
21952 (x_get_glyph_overhangs): Handle a composition glyph.
21953 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
21954
21955 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
21956 composition glyph.
21957
21958 2008-02-01 Kenichi Handa <handa@m17n.org>
21959
21960 * print.c: Include charset.h.
21961 (Vprint_charset_text_property): New variable.
21962 (Qdefault): Extern it.
21963 (PRINT_STRING_NON_CHARSET_FOUND)
21964 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
21965 (print_check_string_result): New variable.
21966 (print_check_string_charset_prop): New function.
21967 (print_prune_charset_plist): New variable.
21968 (print_prune_string_charset): New function.
21969 (print_object): Call print_prune_string_charset if
21970 Vprint_charset_text_property is not t.
21971 (print_interval): Print nothing if interval->plist is nil.
21972 (syms_of_print): Declare Vprint_charset_text_property as a lisp
21973 variable. Init and staticpro print_prune_charset_plist.
21974
21975 2008-02-01 Kenichi Handa <handa@m17n.org>
21976
21977 * fontset.c (new_fontset_from_font_name): Use the specified font
21978 for all characters in the new fontset.
21979
21980 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
21981 OBJECT args.
21982
21983 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
21984 OBJECT args for composition too.
21985
21986 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
21987 OBJECT args.
21988
21989 2008-02-01 Kenichi Handa <handa@m17n.org>
21990
21991 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
21992
21993 * fontset.c (reorder_font_vector): Adjust for the change of
21994 FONT_DEF format.
21995 (fontset_face): New arg id. Change caller.
21996 (face_for_char): New args pos and object.
21997 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
21998 (fs_query_fontset): Check NAME by Fassoc too.
21999 (Fset_fontset_font): Allow non-XLFD font name.
22000 (Ffontset_info): Adjust for the change of FONT_DEF format.
22001
22002 * fontset.h (face_for_char): Adjust prototype.
22003
22004 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
22005 (append_space, extend_face_to_end_of_line)
22006 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
22007 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
22008
22009 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
22010 POS and OBJECT args.
22011
22012 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
22013 POS and OBJECT args.
22014
22015 2008-02-01 Jason Rumney <jasonr@gnu.org>
22016
22017 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
22018 of GlobalAlloc'ed memory.
22019
22020 2008-02-01 Kenichi Handa <handa@m17n.org>
22021
22022 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
22023
22024 * charset.h (charset_table_used): Delete extern.
22025
22026 * charset.c (charset_table_used): Make it static.
22027 (map_charset_chars): Fix args to c_function with.
22028
22029 * chartab.c (map_sub_char_table_for_charset): Fix args to
22030 c_function with.
22031
22032 * coding.h (enum coding_result_code): Delete
22033 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
22034
22035 * coding.c (Qinsufficient_source, Qinconsistent_eol)
22036 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
22037 (Vlast_code_conversion_error): New variables.
22038 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
22039 (ONE_MORE_BYTE): Record error if any instead of signaling an
22040 error. If non-ASCII multibyte char is found, return the negative
22041 value of the code. All callers changed to check it.
22042 (ONE_MORE_BYTE_NO_CHECK): Likewise.
22043 (record_conversion_result): New function. Change all codes setting
22044 coding->result to call this function.
22045 (detect_coding_utf_8, decode_coding_utf_8)
22046 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
22047 Don't use the local variable incomplete.
22048 (emacs_mule_char): Change the second arg to `const'.
22049 (decode_coding): Fix of flushing out unprocessed data.
22050 (make_conversion_work_buffer): Fix making of a work buffer.
22051 (decode_coding_object): Return coding->dst_object.
22052
22053 * fontset.c (set_fontset_font): Fix args.
22054
22055 * lisp.h (CHARACTERBITS): Define as 22.
22056
22057 * process.c (send_process): Be sure to set coding->src_multibyte.
22058
22059 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
22060
22061 2008-02-01 Kenichi Handa <handa@m17n.org>
22062
22063 * xdisp.c (handle_auto_composed_prop): Give limit to
22064 Fnext_single_char_property_change.
22065
22066 2008-02-01 Kenichi Handa <handa@m17n.org>
22067
22068 * composite.c (syms_of_composite): Don't make the composition hash
22069 table weak.
22070
22071 * fontset.c (Fset_fontset_font): Fix docstring.
22072
22073 * lisp.h (detect_coding_system): Adjust prototype.
22074
22075 * fileio.c (kill_workbuf_unwind): Delete this function.
22076 (Finsert_file_contents): Adjust the call of detect_coding_system.
22077 Get conversion_buffer by code_conversion_save. Use the macro
22078 CODING_MAY_REQUIRE_DECODING. After decoding, update
22079 coding_system.
22080
22081 * coding.h (make_conversion_work_buffer): Delete extern.
22082 (code_conversion_save): Extern it.
22083
22084 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
22085 (CODING_GET_INFO): Delete argument eol_type. Change callers.
22086 (decode_coding_utf_8): Don't do eol converion.
22087 (detect_coding_utf_16): Check coding->src_chars, not
22088 coding->src_bytes. Add heuristics for those that have no signature.
22089 (decode_coding_emacs_mule, decode_coding_iso_2022)
22090 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
22091 Don't do eol converion.
22092 (adjust_coding_eol_type): Return a new coding system.
22093 (detect_coding): Don't detect eol. Fix for utf-16 detection.
22094 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
22095 each change.
22096 (decode_coding): Pay attention to undo_list. Do eol conversion for
22097 all types of coding-systems (if necessary).
22098 (Vcode_conversion_work_buf_list): Delete it.
22099 (Vcode_conversion_reused_workbuf): Rename from
22100 Vcode_conversion_reused_work_buf.
22101 (Vcode_conversion_workbuf_name): New variable.
22102 (reused_workbuf_in_use): New variable.
22103 (make_conversion_work_buffer): Delete the arg DEPTH.
22104 (code_conversion_restore): Change argument to cons.
22105 (code_conversion_save): Delete the argument BUFFER. Change callers.
22106 (detect_coding_system): New argument src_chars. Change callers.
22107 Fix for utf-16 detection.
22108 (init_coding_once): Don't use ISO_carriage_return.
22109 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
22110 reused_workbuf_in_use.
22111
22112 2008-02-01 Kenichi Handa <handa@m17n.org>
22113
22114 * keymap.c (store_in_keymap): Pay attention to the case that idx
22115 is a cons specifying a character range.
22116
22117 2008-02-01 Kenichi Handa <handa@m17n.org>
22118
22119 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
22120 HANDLED_RECOMPUTE_PROPS.
22121
22122 * coding.c (Fdefine_coding_system_internal): Fix checking of
22123 ascii compatibility.
22124
22125 2008-02-01 Kenichi Handa <handa@m17n.org>
22126
22127 * charset.c (find_charsets_in_text): Delete unused locale variable.
22128 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
22129
22130 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
22131 Resync charset_list to Vemacs_mule_charset_list.
22132
22133 * keymap.c (store_in_keymap): Pay attention to the case that idx
22134 is a cons specifying a character range.
22135
22136 2008-02-01 Kenichi Handa <handa@m17n.org>
22137
22138 * composite.c (update_compositions): Bind inhibit-read-only, etc
22139 to t before calling remove-list-of-text-properties.
22140
22141 * print.c (print_object): Always print ASCII chars as is.
22142
22143 2008-02-01 Kenichi Handa <handa@m17n.org>
22144
22145 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
22146
22147 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
22148 is a char table.
22149
22150 2008-02-01 Kenichi Handa <handa@m17n.org>
22151
22152 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
22153
22154 2008-02-01 Kenichi Handa <handa@m17n.org>
22155
22156 * xfaces.c (set_lface_from_font_name): Fix for the case that
22157 FONTNAME is not fontset name.
22158
22159 2008-02-01 Kenichi Handa <handa@m17n.org>
22160
22161 * fns.c (base64_encode_1): Fix previous change.
22162
22163 2008-02-01 Kenichi Handa <handa@m17n.org>
22164
22165 * fontset.c (set_fontset_font): New function.
22166 (Fset_fontset_font): If a font is specified for a charset, use
22167 map_charset_chars to store the font spec in a fontset.
22168
22169 2008-02-01 Kenichi Handa <handa@m17n.org>
22170
22171 * fontset.c (fontset_face): Create a fallback fontset on demand.
22172 (make_fontset): Don't create a fallback fontset here.
22173 (free_face_fontset): Free a fallback fontset (if any) too.
22174 (n_auto_fontsets): Delete this variable.
22175 (auto_fontset_alist): New variable.
22176 (new_fontset_from_font_name): Check auto_fontset_alist.
22177 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
22178 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
22179 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
22180 Defsubr Sfontset_list_all.
22181
22182 2008-02-01 Kenichi Handa <handa@m17n.org>
22183
22184 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
22185
22186 2008-02-01 Kenichi Handa <handa@m17n.org>
22187
22188 * fontset.c (Fnew_fontset): Check NAME more rigidly.
22189
22190 2008-02-01 Kenichi Handa <handa@m17n.org>
22191
22192 * editfns.c (Fgoto_char): Fix docstring.
22193
22194 2008-02-01 Kenichi Handa <handa@m17n.org>
22195
22196 * insdel.c (insert_from_gap): Adjust intervals correctly.
22197
22198 2008-02-01 Jason Rumney <jasonr@gnu.org>
22199
22200 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
22201 (pfnGetFontUnicodeRanges): New dynamically loaded function.
22202 (w32_initialize): Try to load it.
22203 (x_get_font_repertory): Use it if available.
22204 (w32_encode_char): Add shortcut for unicode output.
22205
22206 * w32fns.c (w32_load_system_font): Default charset to -1.
22207 (x_to_w32_charset): Match all fonts for unicode.
22208 (w32_to_x_charset): New parameter matching. Don't return partial
22209 or wildcard charsets.
22210 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
22211 (w32_codepage_for_font): Return CP_UNICODE for unicode.
22212 (w32_to_x_font): Match charset to real charset.
22213 (enum_font_cb2): Always list unicode versions.
22214
22215 * makefile.w32-in (temacs): Increase EMHEAP.
22216
22217 2008-02-01 Jason Rumney <jasonr@gnu.org>
22218
22219 * w32term.c (w32_encode_char): New charset parameter.
22220 font_info.encoding becomes encoding_type.
22221 (x_get_font_repertory): New function. Warning: stub only!
22222 (x_new_font): Return quickly if font already set.
22223 (x_new_fontset): fontsetname parameter is Lisp_Object.
22224 Use new fs_query_fontset. Try new_fontset_from_font_name.
22225 Use fontset_name for return value.
22226
22227 * w32term.h: Declare x_get_font_repertory.
22228
22229 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
22230 place of find_charset_in_text. Use encode_coding_object in place
22231 of encode_coding.
22232 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
22233 decode_coding.
22234
22235 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
22236 of x_new_fontset.
22237 (w32_load_system_font): Initialize charset as unicode.
22238 font_info.encoding becomes encoding_type.
22239 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
22240 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
22241 (syms_of_w32fns): Set get_font_repertory_func.
22242
22243 * w32console.c: Include character.h. Use terminal_encode_buffer
22244 from term.c.
22245 (write_glyphs): Use new version of encode_terminal_code. Use
22246 encode_coding_object in place of encode_coding.
22247
22248 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
22249 encoding becomes encoding_type.
22250
22251 * term.c (terminal_encode_buffer): Make externally visible.
22252
22253 * makefile.w32-in: Add character.h dependancies.
22254 (character.o, chartab.o): New targets.
22255
22256 2008-02-01 Kenichi Handa <handa@m17n.org>
22257
22258 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
22259 CODING_ID_EOL_TYPE.
22260
22261 2008-02-01 Andreas Schwab <schwab@suse.de>
22262
22263 * coding.c (produce_chars): Revert last change.
22264
22265 2008-02-01 Kenichi Handa <handa@m17n.org>
22266
22267 * charset.h (charset_unicode): Extern it.
22268
22269 * charset.c (string_xstring_p): Check by (C >= 0x100).
22270 (find_charsets_in_text): Change format of the arc CHARSETS. New
22271 arg MULTIBYTE.
22272 (Ffind_charset_region, Ffind_charset_string): Adjust for the
22273 change of find_charsets_in_text.
22274 (Fsplit_char): Fix doc. Never return unknown.
22275
22276 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
22277
22278 * coding.c (Fdefine_coding_system_alias): Update
22279 Vcoding_system_list.
22280
22281 * fontset.c (load_font_get_repertory): Pay attention to the case
22282 that ENCODING of a font is specified by a char-table.
22283
22284 * xterm.c (x_get_font_repertory): Handle the case that the
22285 encoding of font is other than Unicode.
22286
22287 2008-02-01 Kenichi Handa <handa@m17n.org>
22288
22289 * term.c (encode_terminal_code): Don't handle glyph-table. Check
22290 if a character is encodable by the terminal coding system. If
22291 not, produces proper number of `?'s. Update
22292 terminal_encode_buffer and terminal_encode_buf_size if necessary.
22293 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
22294
22295 2008-02-01 Kenichi Handa <handa@m17n.org>
22296
22297 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
22298 variables.
22299 (encode_terminal_code): Change argument. Encode multiple
22300 characters at once. Store the result of encoding in
22301 terminal_encode_buffer.
22302 (write_glyphs, insert_glyphs): Adjust for the change of
22303 encode_terminal_code.
22304 (term_init): Initialize terminal_encode_buffer and
22305 terminal_encode_buf_size.
22306
22307 * coding.c (consume_chars): If coding->src_object is nil, don't
22308 check annotation.
22309
22310 2008-02-01 Kenichi Handa <handa@m17n.org>
22311
22312 * character.c (char_string): Use ASCII_CHAR_P instead of
22313 SINGLE_BYTE_CHAR_P.
22314
22315 2008-02-01 Kenichi Handa <handa@m17n.org>
22316
22317 * xdisp.c (handle_auto_composed_prop): Check if the last
22318 characters of auto-composed region is newly composed with the
22319 following characters.
22320 (handle_composition_prop): Fix checking of point being inside
22321 composition.
22322
22323 2008-02-01 Kenichi Handa <handa@m17n.org>
22324
22325 * fns.c (concat): Don't change multibyteness of the result by
22326 concatenating an 8-bit character.
22327
22328 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
22329 multibyteness of the result when newelt is an 8-bit character.
22330
22331 2008-02-01 Dave Love <fx@gnu.org>
22332
22333 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
22334 EMACS_INT.
22335
22336 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
22337
22338 * xfaces.c (face_numeric_value): Declare dim size_t.
22339 (Finternal_lisp_face_equal_p): Remove unused f.
22340
22341 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
22342 (MATRIX_ROW): Remove unused vars.
22343 (draw_glyphs, x_insert_glyphs, fast_find_position)
22344 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
22345 byte/char counts.
22346
22347 * regex.c (regex_compile): Remove unused var.
22348
22349 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
22350
22351 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
22352 (Faccessible_keymaps, where_is_internal): Remove unused vars.
22353
22354 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
22355
22356 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
22357
22358 * fileio.c (Fwrite_region): Remove unused var.
22359
22360 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
22361 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
22362
22363 * composite.c (Fremove_list_of_text_properties): Declare.
22364
22365 * coding.c (inhibit_pre_post_conversion): Remove (unused).
22366 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
22367 (coding_inherit_eol_type): Remove unused attrs.
22368 (detect_coding): Cast arg of detect_eol.
22369
22370 * charset.c (syms_of_charset): Remove unused var p.
22371 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
22372 byte/char counts.
22373
22374 * casetab.c (set_case_table): Remove unused var.
22375
22376 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
22377 unused vars.
22378
22379 2008-02-01 Dave Love <fx@gnu.org>
22380
22381 * xterm.c (x_bitmap_mask): Declare.
22382
22383 2008-02-01 Dave Love <fx@gnu.org>
22384
22385 * xterm.c (x_term_init): Fix type error.
22386
22387 * lisp.h: Add Funibyte_char_to_multibyte.
22388
22389 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
22390 (Fset_coding_system_priority): Doc fix.
22391
22392 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
22393
22394 * indent.c (check_composition): Make start and end EMACS_INT.
22395
22396 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
22397
22398 * xdisp.c (handle_composition_prop, check_point_in_composition):
22399 Make buffer positions EMACS_INT.
22400
22401 * composite.c (find_composition, run_composition_function)
22402 (update_compositions, Ffind_composition_internal): Make buffer
22403 positions EMACS_INT.
22404
22405 * composite.h (find_composition, update_compositions): Make
22406 position args EMACS_INT.
22407
22408 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
22409
22410 * intervals.c (get_property_and_range):
22411 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
22412
22413 * unexalpha.c: Don't include varargs.h.
22414
22415 2008-02-01 Dave Love <fx@gnu.org>
22416
22417 * coding.h (ENCODE_UTF_8): New.
22418
22419 * Makefile.in (gtkutil.o): Depend on coding.h.
22420
22421 * coding.c (Fset_coding_system_priority): Doc fix.
22422
22423 2008-02-01 Kenichi Handa <handa@m17n.org>
22424
22425 * fileio.c (Finsert_file_contents): Call setup_coding_system in
22426 the case of auto saving.
22427
22428 2008-02-01 Andreas Schwab <schwab@suse.de>
22429
22430 * chartab.c (map_char_table, map_char_table_for_charset): Protect
22431 `range' from GC.
22432
22433 2008-02-01 Kenichi Handa <handa@m17n.org>
22434
22435 * coding.c (decode_coding_sjis): Check bytes more rigidly.
22436
22437 2008-02-01 Kenichi Handa <handa@m17n.org>
22438
22439 * fileio.c (choose_write_coding_system): Return a decided coding system.
22440 (Fwrite_region): Set Vlast_coding_system_used to the return value
22441 of choose_write_coding_system.
22442
22443 2008-02-01 Kenichi Handa <handa@m17n.org>
22444
22445 * charset.c (Fset_charset_priority): Pay attention to duplicated
22446 arguments.
22447
22448 * coding.c (QCcategory): New variable.
22449 (syms_of_coding): Defsym it. Set all elements of
22450 Vcoding_category_table and their symbol values.
22451 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
22452 coding-category-XXX, and coding-category-list.
22453 (Fdefine_coding_system_internal): Add category in the plist.
22454
22455 2008-02-01 Kenichi Handa <handa@m17n.org>
22456
22457 * callproc.c (Fcall_process): Handle carryover correctly.
22458
22459 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
22460 (raw_text_coding_system): Check NILP (coding_system).
22461 (coding_inherit_eol_type): Check NILP (coding_system) and
22462 NILP (parent).
22463 (consume_chars): Fix for the case of raw-text.
22464
22465 * process.c (read_process_output): Handle carryover correctly.
22466
22467 2008-02-01 Dave Love <fx@gnu.org>
22468
22469 * regex.c (re_search_2): Fix last change.
22470
22471 2008-02-01 Kenichi Handa <handa@m17n.org>
22472
22473 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
22474 target_multibyte. Even in a unibyte case, return a converted
22475 multibyte char.
22476 (GET_CHAR_AFTER): New macro.
22477 (PATFETCH): Translate via multibyte char.
22478 (HANDLE_UNIBYTE_RANGE): Delete this macro.
22479 (SETUP_MULTIBYTE_RANGE): New macro.
22480 (regex_compile): Setup compiled code so that its multibyteness
22481 matches that of a target. Fix the handling of "[X-YZ]" using
22482 SETUP_MULTIBYTE_RANGE.
22483 (analyse_first) <charset>: For filling fastmap for all multibyte
22484 characters, don't check by BASE_LEADING_CODE_P.
22485 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
22486 the same as RE_MULTIBYTE_P (bufp) now.
22487 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
22488 (TARGET_CHAR_AND_LENGTH): Delete this macro.
22489 (TRANSLATE_VIA_MULTIBYTE): New macro.
22490 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
22491 It is the same as RE_MULTIBYTE_P (bufp) now.
22492 <exactn>: Translate via multibyte.
22493 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
22494 translate it.
22495 <charset, charset_not>: Fetch a character by
22496 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
22497 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
22498 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
22499 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
22500 by GET_CHAR_AFTER.
22501 (bcmp_translate): Likewise.
22502
22503 * search.c (compile_pattern): Check the member target_multibyte,
22504 not the member multibyte of buf.
22505
22506 * lread.c (read1): While reading a string, set force_singlebyte
22507 and force_multibyte correctly.
22508
22509 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
22510 up of unibyte_to_multibyte_table.
22511
22512 2008-02-01 Kenichi Handa <handa@m17n.org>
22513
22514 * coding.c (setup_coding_system): If coding has
22515 post-read-conversion or pre-write-conversion, set
22516 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
22517 respectively.
22518 (decode_coding_gap): Run post-read-conversion if any.
22519
22520 * fileio.c (Finsert_file_contents): Even if we read into a
22521 unibyte buffer, check if we must decode the result or not.
22522
22523 2008-02-01 Kenichi Handa <handa@m17n.org>
22524
22525 * coding.c (make_conversion_work_buffer): Change the work buffer
22526 name to the same one as that of Emacs 21.
22527
22528 2008-02-01 Kenichi Handa <handa@m17n.org>
22529
22530 * coding.h (make_conversion_work_buffer): Adjust prototype.
22531 (code_conversion_restore): Don't extern it.
22532
22533 * coding.c (detected_mask): Delete unused variable.
22534 (decode_coding_iso_2022): Pay attention to the byte sequence of
22535 CTEXT extended segment, and retain those bytes as is.
22536 (decode_coding_ccl): Delete unused variable `valids'.
22537 (setup_coding_system): Delete unused variable `category'.
22538 (consume_chars): Delete unused variable `category'. Make it work
22539 for non-multibyte case.
22540 (make_conversion_work_buffer): Change argument.
22541 (saved_coding): Delete unused variable.
22542 (code_conversion_restore): Don't check saved_coding->destination.
22543 (code_conversion_save): New function.
22544 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
22545 instead of record_unwind_protect.
22546 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
22547 (detect_coding_system): Delete unused variable `mask'.
22548 (Fdefine_coding_system_internal): Delete unused variable id.
22549
22550 * fileio.c (kill_workbuf_unwind): New function.
22551 (Finsert_file_contents): On replacing, call
22552 make_conversion_work_buffer with correct args, and call
22553 record_unwind_protect with the first arg kill_workbuf_unwind.
22554
22555 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
22556
22557 2008-02-01 Kenichi Handa <handa@m17n.org>
22558
22559 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
22560 (fontset_add): Fix for the case that TO is less than TO1.
22561 (Ffontset_info): Don't use fallback fontset on checking the
22562 default fontset.
22563 (dump_fontset): New function for debugging.
22564
22565 * coding.c (Fdefine_coding_system_internal): Fix for the case that
22566 coding_type is Qcharset.
22567
22568 2008-02-01 Kenichi Handa <handa@m17n.org>
22569
22570 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
22571 (map_char_table): Don't inherit the value from the parent on
22572 initializing VAL. Adjust for the above change.
22573
22574 2008-02-01 Kenichi Handa <handa@m17n.org>
22575
22576 * coding.c (Qsignature, Qendian): Delete these variables.
22577 (syms_of_coding): Don't initialize them.
22578 (CATEGORY_MASK_UTF_16_AUTO): New macro.
22579 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
22580 detect_info->found.
22581 (decode_coding_utf_16): Don't detect BOM here.
22582 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
22583 is NOT utf_16_without_bom.
22584 (setup_coding_system): For a coding system of type utf-16, check
22585 if the attribute :endian is Qbig or not (not nil or not), and set
22586 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
22587 (detect_coding): If coding type is utf-16 and BOM detection is
22588 required, detect it.
22589 (Fdefine_coding_system_internal): For a coding system of type
22590 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
22591
22592 2008-02-01 Kenichi Handa <handa@m17n.org>
22593
22594 * coding.c (coding_set_source): Fix for the case that the current
22595 buffer is different from coding->src_object.
22596 (decode_coding_object): Don't use the conversion work buffer if
22597 DST_OBJECT is a buffer.
22598
22599 2008-02-01 Dave Love <fx@gnu.org>
22600
22601 * lread.c (read_emacs_mule_char) [len==2]: Index
22602 emacs_mule_charset correctly.
22603
22604 2008-02-01 Dave Love <fx@gnu.org>
22605
22606 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
22607 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
22608 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
22609 treated specially.)
22610 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
22611 (detected_mask): Remove Big5 bits.
22612
22613 2008-02-01 Kenichi Handa <handa@m17n.org>
22614
22615 The following changes are to make the font rescaling facility
22616 compatible with Emacs 21.
22617
22618 * xfaces.c (Vface_font_rescale_alist): Rename from
22619 Vface_resizing_fonts.
22620 (struct font_name): Rename member resizing_ratio to rescale_ratio.
22621 (font_rescale_ratio): Rename from font_resizing_ratio.
22622 (split_font_name): Set font->rescale_ratio.
22623 (better_font_p): Pay attention to font->rescale_ratio.
22624 (build_scalable_font_name): Likewise. Change RESX, and RESY
22625 fields.
22626 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
22627
22628 2008-02-01 Kenichi Handa <handa@m17n.org>
22629
22630 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
22631 (Qutf_16_le): Remove these variables.
22632 (syms_of_coding): Don't DEFSYM them.
22633 (decode_coding_utf_16): Fix handling of BOM.
22634 (encode_coding_utf_16): Fix handling of BOM.
22635
22636 2008-02-01 Kenichi Handa <handa@m17n.org>
22637
22638 * fileio.c (Finsert_file_contents): On replacing, before decoding
22639 the file into the work buffer, set point of the work buffer to the end.
22640
22641 2008-02-01 Dave Love <fx@gnu.org>
22642
22643 * coding.c (Fcheck_coding_systems_region): Fix type errors.
22644
22645 2008-02-01 Dave Love <fx@gnu.org>
22646
22647 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
22648 and fix C types.
22649
22650 2008-02-01 Kenichi Handa <handa@m17n.org>
22651
22652 * xdisp.c (SKIP_GLYPHS): New macro.
22653 (set_cursor_from_row): Pay attention to string display properties.
22654
22655 * category.c (copy_category_entry): Fix for the case that RANGE
22656 is an integer.
22657
22658 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
22659
22660 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
22661
22662 2008-02-01 Kenichi Handa <handa@m17n.org>
22663
22664 * charset.c (Fcharset_id_internal): New function.
22665 (syms_of_charset): Defsubr it.
22666
22667 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
22668 with the last arg charset_list acquired from coding.
22669 (Fdefine_coding_system_internal): For ccl-based coding system, fix
22670 the attribute coding_attr_ccl_valids.
22671
22672 * coding.h (enum define_coding_ccl_arg_index): Set the first
22673 member coding_arg_ccl_decoder to coding_arg_max.
22674
22675 * ccl.h (ccl_driver): Adjust prototype.
22676
22677 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
22678 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
22679 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
22680 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
22681 last arg Qnil.
22682
22683 2008-02-01 Kenichi Handa <handa@m17n.org>
22684
22685 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
22686 call encode_char.
22687
22688 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
22689
22690 2008-02-01 Dave Love <fx@gnu.org>
22691
22692 * composite.c (syms_of_composite): Make composition_hash_table weak.
22693
22694 2008-02-01 Kenichi Handa <handa@m17n.org>
22695
22696 * dispextern.h (check_face_attributes, generate_ascii_font_name)
22697 (font_name_registry): Don't extern them.
22698 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
22699
22700 * fontset.h (Qfontset): Don't extern it.
22701 (new_fontset_from_font_name): Extern it.
22702
22703 * fontset.c: Give 8 extra slots to fontset objects.
22704 (Qfontset_info): New variable.
22705 (syms_of_fontset): Defsym it.
22706 (FONTSET_FALLBACK): New macro.
22707 (fontset_face): Try also the default fontset.
22708 (make_fontset): Realize a fallback fontset from the default fontset.
22709 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
22710 using split_font_name_into_vector and build_font_name_from_vector.
22711 (Fset_fontset_font): Access the elements of font_spec by enum
22712 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
22713 name by using split_font_name_into_vector.
22714 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
22715 generate a proper font name from the fontset name. Update
22716 Vfontset_alias_alist.
22717 (n_auto_fontsets): New variable.
22718 (new_fontset_from_font_name): New function.
22719 (Ffont_info): Store the information about fonts generated from the
22720 default fontset in the first extra slot of the returned char-table.
22721
22722 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
22723 (font_name_registry): Delete function.
22724 (split_font_name_into_vector): New function.
22725 (build_font_name_from_vector): New function.
22726 (font_list): The argument REGISTRY is now a list of registry names.
22727 (choose_face_font): If we are choosing an ASCII font, and ATTRS
22728 specifies an explicit font name, return the name as is. Make a
22729 list of registy names.
22730
22731 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
22732 of x_new_fontset.
22733 (Fx_create_frame): Don't call x_new_fontset here. Just use
22734 x_list_fonts to check the existence of fonts.
22735
22736 * xterm.h (x_new_fontset): Adjust prototype.
22737
22738 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
22739 string. Use new_fontset_from_font_name to create a fontset from a
22740 font name.
22741
22742 2008-02-01 Kenichi Handa <handa@m17n.org>
22743
22744 * syntax.c (Vfind_word_boundary_function_table): New name for
22745 Vnext_word_boundary_function_table.
22746 (find-word-boundary-function-table): New name for
22747 next-word-boundary-function-table.
22748
22749 2008-02-01 Dave Love <fx@gnu.org>
22750
22751 * Makefile.in: Fix some dependencies.
22752
22753 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
22754 set it to nil before returning.
22755
22756 * composite.c (update_compositions): Fix type error.
22757
22758 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
22759
22760 2008-02-01 Kenichi Handa <handa@m17n.org>
22761
22762 * xterm.c (x_new_font): Optimize for the case that the font is
22763 already set for the frame.
22764
22765 2008-02-01 Kenichi Handa <handa@m17n.org>
22766
22767 * chartab.c (char_table_ascii): Check if the char table contents
22768 is sub-char-table or not.
22769 (char_table_set, char_table_set_range): Fix argument to
22770 char_table_ascii.
22771
22772 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
22773 (detect_coding_utf_8, detect_coding_utf_16)
22774 (detect_coding_emacs_mule, detect_coding_iso_2022)
22775 (detect_coding_sjis, detect_coding_big5)
22776 (detect_coding_ccl, detect_coding_charset): Change argument MASK
22777 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
22778 sequence is valid in this coding system. Change callers.
22779 (MAX_ANNOTATION_LENGTH): New macro.
22780 (ADD_ANNOTATION_DATA): New macro.
22781 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
22782 ADD_ANNOTATION_DATA. Change the format of annotation data.
22783 (ADD_CHARSET_DATA): New macro.
22784 (emacs_mule_char): New argument ID. Change callers.
22785 (decode_coding_emacs_mule, decode_coding_iso_2022)
22786 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
22787 Produce charset annotation data in coding->charbuf.
22788 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
22789 to charset annotation data in coding->charbuf.
22790 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
22791 coding->common_flags if the coding system is iso-2022 based and
22792 uses designation.
22793 (produce_composition): Adjust for the new annotation data format.
22794 (produce_charset): New function.
22795 (produce_annotation): Handle charset annotation.
22796 (handle_composition_annotation, handle_charset_annotation): New
22797 functions.
22798 (consume_chars): Handle charset annotation. Utilize the above two
22799 functions.
22800 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
22801 buffer, get the deleted text as a string and set
22802 coding->src_object to that string.
22803 (detect_coding, detect_coding_system): Use the new struct
22804 coding_detection_info.
22805
22806 * coding.h (struct coding_detection_info): New structure.
22807 (struct coding_system): Adjust prototype of the member `detector'.
22808 (CODING_ANNOTATE_CHARSET_MASK): New macro.
22809
22810 2008-02-01 Kenichi Handa <handa@m17n.org>
22811
22812 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
22813
22814 2008-02-01 Dave Love <fx@gnu.org>
22815
22816 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
22817 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
22818 to new local and nullify apropos_accumulate before returning.
22819 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
22820
22821 2008-02-01 Kenichi Handa <handa@m17n.org>
22822
22823 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
22824 correctly.
22825
22826 2008-02-01 Dave Love <fx@gnu.org>
22827
22828 * fns.c (Flanginfo): Call synchronize_system_time_locale.
22829
22830 2008-02-01 Kenichi Handa <handa@m17n.org>
22831
22832 The following changes are to make character composition happen
22833 automatically on displaying.
22834
22835 * Makefile.in (lisp, shortlisp): Add composite.elc.
22836
22837 * composite.h (Qauto_composed, Vauto_composition_function)
22838 (Qauto_composition_function): Extern them.
22839
22840 * composite.c (Vcomposition_function_table)
22841 (Qcomposition_function_table): Delete variables.
22842 (Qauto_composed, Vauto_composition_function)
22843 (Qauto_composition_function): New variables.
22844 (run_composition_function): Don't call
22845 compose-chars-after-function.
22846 (update_compositions): Clear `auto-composed' text property.
22847 (compose_chars_in_text): Delete this function.
22848 (syms_of_composite): Staticpro Qauto_composed and
22849 Qauto_composition_function. Declare Vauto_composition_function as
22850 a Lisp variable.
22851
22852 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
22853
22854 * xdisp.c (it_props): Add an entry for Qauto_composed.
22855 (handle_auto_composed_prop): New function.
22856
22857 * xselect.c (selection_data_to_lisp_data): Don't call
22858 compose_chars_in_text.
22859
22860 2008-02-01 Dave Love <fx@gnu.org>
22861
22862 * keyboard.c (read_char): Modify checking around use of
22863 Vkeyboard_translate_table.
22864
22865 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
22866 and fix C types.
22867
22868 2008-02-01 Kenichi Handa <handa@m17n.org>
22869
22870 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
22871 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
22872 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
22873 the case that the last byte is '\r' correctly.
22874 (decode_coding): Flush out the unprocessed data correctly.
22875 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
22876
22877 2008-02-01 Dave Love <fx@gnu.org>
22878
22879 * xterm.c (XTread_socket): Fix changes for defined keysyms.
22880 Add XK_ISO... case.
22881 (xaw_scroll_callback): Revert last change.
22882
22883 2008-02-01 Kenichi Handa <handa@m17n.org>
22884
22885 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
22886
22887 2008-02-01 Kenichi Handa <handa@m17n.org>
22888
22889 * xfaces.c (Vface_resizing_fonts): New variable.
22890 (struct font_name): New member `resizing_ratio'.
22891 (font_resizing_ratio): New function.
22892 (split_font_name): Set font->resizing_ratio.
22893 (better_font_p): Pay attention to font->resizing_ratio.
22894 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
22895 RESX, and RESY fields.
22896 (try_alternative_families): Try scalable fonts if
22897 Vscalable_fonts_allowed is not Qt.
22898 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
22899
22900 2008-02-01 Dave Love <fx@gnu.org>
22901
22902 * xterm.c (xaw_scroll_callback): Cast correctly.
22903
22904 2008-02-01 Dave Love <fx@gnu.org>
22905
22906 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
22907 (lispy_kana_keys): Comment out.
22908 (make_lispy_event) [XK_kana_A]: Comment out.
22909
22910 * xterm.c (xaw_scroll_callback): Cast call_data.
22911 (XTread_socket): Deal with ASCII keysyms.
22912 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
22913
22914 2008-02-01 Dave Love <fx@gnu.org>
22915
22916 * xterm.c (Vx_keysym_table): New.
22917 (syms_of_xterm): Initialize it.
22918 (XTread_socket): Use it.
22919 From head: Eliminate incorrect optimization that tried to avoid
22920 decoding the output of X*LookupString.
22921 (x_get_font_repertory): Delete charset declaration.
22922
22923 2008-02-01 Kenichi Handa <handa@m17n.org>
22924
22925 * coding.c (detect_coding_charset): If only ASCII bytes are found,
22926 return 0.
22927 (Fdefine_coding_system_internal): Setup
22928 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
22929
22930 2008-02-01 Dave Love <fx@gnu.org>
22931
22932 * coding.c (Fcheck_coding_system): Doc fix.
22933
22934 * editfns.c (Finsert_byte): Return a proper value.
22935
22936 2008-02-01 Kenichi Handa <handa@m17n.org>
22937
22938 * coding.c (decode_coding): Fix args to translate_chars. Pay
22939 attention to Vstandard_translation_table_for_decode.
22940 (encode_coding): Fix args to translate_chars. Pay attention to
22941 Vstandard_translation_table_for_encode.
22942
22943 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
22944 SINGLE_BYTE_CHAR_P.
22945
22946 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
22947 not by SINGLE_BYTE_CHAR_P.
22948
22949 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
22950 SINGLE_BYTE_CHAR_P.
22951
22952 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
22953 SINGLE_BYTE_CHAR_P.
22954
22955 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
22956 by SINGLE_BYTE_CHAR_P.
22957
22958 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
22959 SINGLE_BYTE_CHAR_P.
22960
22961 2008-02-01 Dave Love <fx@gnu.org>
22962
22963 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
22964
22965 2008-02-01 Dave Love <fx@gnu.org>
22966
22967 * fns.c (Flanginfo): Fix typo.
22968
22969 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
22970
22971 2008-02-01 Kenichi Handa <handa@m17n.org>
22972
22973 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
22974 (detect_coding_emacs_mule, detect_coding_iso_2022)
22975 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
22976 incomplete byte sequence. Don't update *mask when correctly detected.
22977 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
22978 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
22979 (detect_coding, detect_coding_system): Adjust for the changes above.
22980
22981 2008-02-01 Kenichi Handa <handa@m17n.org>
22982
22983 * character.c (char_string): Rename from
22984 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
22985 (string_char): Rename from string_char.
22986
22987 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
22988 if C is greater than MAX_3_BYTE_CHAR.
22989 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
22990 string_char instead of string_char_with_unification.
22991
22992 2008-02-01 Dave Love <fx@gnu.org>
22993
22994 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
22995
22996 2008-02-01 Kenichi Handa <handa@m17n.org>
22997
22998 * keymap.c (push_key_description): Pay attention to force_multibyte.
22999
23000 * regex.c (re_search_2): Fix for the case of unibyte buffer.
23001
23002 2008-02-01 Dave Love <fx@gnu.org>
23003
23004 * charset.c (define_charset_internal): Rename `supprementary'.
23005
23006 * Makefile.in (lisp, shortlisp): Remove latin-N.
23007
23008 2008-02-01 Dave Love <fx@gnu.org>
23009
23010 * xfns.c (x_window, x_window): Use use_xim.
23011
23012 * xterm.c (use_xim): Initialize.
23013 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
23014 (x_term_init): Maybe set use_xim.
23015
23016 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
23017
23018 2008-02-01 Kenichi Handa <handa@m17n.org>
23019
23020 * search.c (search_buffer): Fix case-fold-search of multibyte
23021 characters.
23022 (boyer_moore): Rename the last argument to char_high_bits.
23023
23024 2008-02-01 Kenichi Handa <handa@m17n.org>
23025
23026 * xdisp.c (display_string): Fix for the case of zero width glyph.
23027
23028 * xfns.c (x_set_font): Change the error message of the case that
23029 x_new_fontset returns Qt.
23030
23031 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
23032 (Finternal_set_lisp_face_attribute): Use signal_error for the
23033 error of invalid fontset.
23034
23035 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
23036 fontset, return Qt.
23037
23038 2008-02-01 Dave Love <fx@gnu.org>
23039
23040 * unexelf.c (unexec): Make .got handling not SGI-specific.
23041
23042 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
23043
23044 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
23045
23046 * keyboard.c (read_key_sequence): Fix type error.
23047
23048 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
23049 type error.
23050
23051 * fontset.c (fontset_add): Return Lisp_Object.
23052
23053 2008-02-01 Dave Love <fx@gnu.org>
23054
23055 * charset.h (charset_ordered_list_tick): Declare extern.
23056
23057 2008-02-01 Kenichi Handa <handa@m17n.org>
23058
23059 The following changes (and some of 2008-02-01 changes of mine) are
23060 for handling syntax, category, and case conversion for unibyte
23061 characters by converting them to multibyte on the fly. With these
23062 changes, we don't have to setup syntax and case tables for unibyte
23063 characters in each language environment.
23064
23065 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
23066 multibyte if necessary.
23067
23068 * bytecode.c (Fbyte_code): Likewise.
23069
23070 * character.h (LEADING_CODE_LATIN_1_MIN)
23071 (LEADING_CODE_LATIN_1_MAX): New macros.
23072 (unibyte_to_multibyte_table): Extern it.
23073 (unibyte_char_to_multibyte): New macro.
23074 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
23075 (CHAR_LEADING_CODE): New macro.
23076 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
23077
23078 * character.c (unibyte_to_multibyte_table): New variable.
23079 (unibyte_char_to_multibyte): Move to character.h and define as macro.
23080 (multibyte_char_to_unibyte): If C is an eight-bit character,
23081 convert it to the corresponding byte value.
23082
23083 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
23084 not 1, signals an error. Update the elements of
23085 unibyte_to_multibyte_table.
23086 (init_charset_once): Initialize unibyte_to_multibyte_table.
23087 (syms_of_charset): Define the charset `iso-8859-1'.
23088
23089 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
23090 as is without converting it to unibyte. In a unibyte buffer,
23091 convert C to multibyte before checking the syntax.
23092
23093 * lisp.h (unibyte_char_to_multibyte): Delete extern.
23094
23095 * minibuf.c (Fminibuffer_complete_word): Use the macro
23096 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
23097
23098 * regex.h (struct re_pattern_buffer): New member target_multibyte.
23099
23100 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
23101 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
23102 that is zero, convert an eight-bit char to multibyte.
23103 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
23104 non-emacs case.
23105 (PATFETCH): Convert an eight-bit char to multibyte.
23106 (HANDLE_UNIBYTE_RANGE): New macro.
23107 (regex_compile): Setup the compiled pattern for multibyte chars
23108 even if the given regex string is unibyte. Use PATFETCH_RAW
23109 instead of PATFETCH in many places. To handle `charset'
23110 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
23111 only for ASCII chars.
23112 (analyse_first) <exactn>: Simplify because the compiled pattern
23113 is multibyte.
23114 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
23115 <charset>: Use CHAR_LEADING_CODE to get leading codes.
23116 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
23117 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
23118 multibyte always 1.
23119 (re_search_2): In emacs, set the locale variable multibyte to 1,
23120 otherwise to 0. New local variable target_multibyte. Check it
23121 to decide the multibyteness of STR1 and STR2. If
23122 target_multibyte is zero, convert unibyte chars to multibyte
23123 before translating and checking fastmap.
23124 (TARGET_CHAR_AND_LENGTH): New macro.
23125 (re_match_2_internal): In emacs, set the locale variable multibyte
23126 to 1, otherwise to 0. New local variable target_multibyte. Check
23127 it to decide the multibyteness of STR1 and STR2. Use
23128 TARGET_CHAR_AND_LENGTH to fetch a character from D.
23129 <charset, charset_not>: If multibyte is nonzero, check fastmap
23130 only for ASCII chars. Call bcmp_translate with
23131 target_multibyte, not with multibyte.
23132 <begline>: Declare the local variable C as `unsigned'.
23133 (bcmp_translate): Change the last arg name to target_multibyte.
23134
23135 * search.c (compile_pattern_1): Don't adjust the multibyteness of
23136 the regexp pattern and the matching target. Set cp->buf.multibyte
23137 to the multibyteness of the regexp pattern. Set
23138 cp->but.target_multibyte to the multibyteness of the matching target.
23139 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
23140 FETCH_STRING_CHAR_ADVANCE.
23141 (Freplace_match): Convert unibyte chars to multibyte.
23142
23143 * syntax.c (char_quoted, back_comment, scan_words)
23144 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
23145 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
23146 unibyte chars to multibyte.
23147 (skip_chars): Delete the arg syntaxp, and move the code for
23148 handling syntaxes to skip_syntaxes. Change callers.
23149 Fix the case that the multibyteness of STRING and the current
23150 buffer doesn't match.
23151 (skip_syntaxes): New function.
23152 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
23153 SINGLE_BYTE_CHAR_P.
23154
23155 2008-02-01 Kenichi Handa <handa@m17n.org>
23156
23157 * xfaces.c (QCfontset): New variable.
23158 (LFACE_FONTSET): New macro.
23159 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
23160 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
23161 (Finternal_set_lisp_face_attribute)
23162 (Finternal_get_lisp_face_attribute): Handle QCfontset.
23163 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
23164 check also LFACE_FONTSET_INDEX.
23165 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
23166 attrs[LFACE_FONT_INDEX].
23167 (syms_of_xfaces): Intern and staticpro QCfontset.
23168
23169 * dispextern.h (enum lface_attribute_index): New member
23170 LFACE_FONTSET_INDEX.
23171
23172 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
23173
23174 2008-02-01 Kenichi Handa <handa@m17n.org>
23175
23176 * coding.c (coding_set_destination): Fix coding->destination for
23177 the case converting a region.
23178 (encode_coding_utf_8): Encode eight-bit chars as single byte.
23179 (encode_coding_object): Fix coding->dst_pos and
23180 coding->dst_pos_byte for the case converting a region.
23181
23182 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
23183
23184 * character.h (BYTE8_STRING): New macro.
23185
23186 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
23187
23188 2008-02-01 Kenichi Handa <handa@m17n.org>
23189
23190 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
23191 characters by octal form.
23192
23193 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
23194
23195 * buffer.h (_fetch_multibyte_char_len): Delete extern.
23196 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
23197 _fetch_multibyte_char_len.
23198 (FETCH_CHAR_AS_MULTIBYTE): New macro.
23199
23200 * casetab.c (set_canon, set_identity, shuffle): Simplify.
23201
23202 * casefiddle.c (casify_object): Simplify. Handle the case that
23203 the case conversion change the byte length.
23204 (casify_region): Likewise.
23205
23206 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
23207
23208 * character.c (_fetch_multibyte_char_len): Delete this variable.
23209 (syms_of_character): Setup Vprintable_chars.
23210
23211 * editfns.c (Fchar_equal): Fix for the unibyte case.
23212 (Finsert_byte): New function.
23213 (syms_of_editfns): Defsubr it.
23214
23215 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
23216 of direct code 0x3ffff.
23217
23218 * search.c (Freplace_match): Fix for the unibyte case.
23219
23220 2008-02-01 Kenichi Handa <handa@m17n.org>
23221
23222 * lread.c (safe_to_load_p): Fix the logic.
23223
23224 * syntax.c (scan_words): Don't treat characters belonging to
23225 different scripts as constituting a word.
23226
23227 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
23228
23229 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
23230
23231 * emacs.c (main): In the case of --unibyte, instead of aborting on
23232 finding non-empty buffer, make it unibyte.
23233
23234 2008-02-01 Kenichi Handa <handa@m17n.org>
23235
23236 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
23237 to create a fontset.
23238
23239 2008-02-01 Dave Love <fx@gnu.org>
23240
23241 * character.c (Funibyte_char_to_multibyte): Doc fix.
23242
23243 * xfns.c [HAVE_STDLIB_H]: Fix last change.
23244
23245 2008-02-01 Kenichi Handa <handa@m17n.org>
23246
23247 * fontset.c (fontset_add): Make the type `int'.
23248 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
23249
23250 * character.c (unibyte_char_to_multibyte)
23251 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
23252 charset_unibyte, not charset_primary.
23253
23254 * charset.h (charset_unibyte): Extern it instead of charset_primary.
23255
23256 * charset.c (charset_unibyte): Rename from charset_primary.
23257 (Funibyte_charset): Rename from Fprimary_charset.
23258 (Fset_unibyte_charset): Rename from Fset_primary_charset.
23259 (syms_of_charset): Adjust for the above changes.
23260
23261 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
23262 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
23263 it->multibyte_p is zero.
23264
23265 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
23266 Delete extern.
23267
23268 2008-02-01 Kenichi Handa <handa@m17n.org>
23269
23270 * coding.c (Fdefine_coding_system_internal): Fix category setting
23271 for a coding system of type iso-2022.
23272
23273 2008-02-01 Kenichi Handa <handa@m17n.org>
23274
23275 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
23276
23277 2008-02-01 Kenichi Handa <handa@m17n.org>
23278
23279 * syntax.c (Vnext_word_boundary_function_table): New variable.
23280 (next-word-boundary-function-table): Declare it as a Lisp variable
23281 in syms_of_syntax.
23282 (scan_words): Call functions in Vnext_word_boundary_function_table
23283 if any.
23284
23285 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
23286
23287 * fontset.c (fs_load_font): If fontp->charset is not negative,
23288 return fontp without setting its members.
23289
23290 2008-02-01 Dave Love <fx@gnu.org>
23291
23292 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
23293
23294 * m/sparc.h (HAVE_ALLOCA): Delete.
23295
23296 * s/irix6-5.h: Don't include strings.h.
23297 (bcopy, bzero, bcmp): Don't undef.
23298
23299 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
23300
23301 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
23302 (TIOCSIGSEND): Don't test IRIX6.
23303 (bcopy, bzero, bcmp): Define conditionally.
23304
23305 2008-02-01 Kenichi Handa <handa@m17n.org>
23306
23307 * buffer.c (Qas, Qmake, Qto): New variables.
23308 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
23309 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
23310
23311 * callproc.c (Fcall_process): Don't call insert_1_both directly if
23312 we are inserting a process output into a multibyte buffer.
23313
23314 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
23315 multibyte_char_to_unibyte.
23316
23317 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
23318 by the primary charset, make it eight-bit char.
23319 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
23320
23321 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
23322 (charset_8_bit__control, charset_8_bit_graphic)
23323 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
23324 (define_charset_internal): New function.
23325 (syms_of_charset): Call define_charset_internal for pre-defined
23326 charsets.
23327
23328 * charset.h (charset_8_bit): Extern it.
23329
23330 * coding.c (make_conversion_work_buffer): Adjust for the change
23331 of Fset_buffer_multibyte.
23332 (encode_coding_raw_text): Increment p0 in the loop.
23333
23334 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
23335
23336 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
23337 for the change of Fset_buffer_multibyte.
23338
23339 * fns.c (Fstring_to_multibyte): New function.
23340 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
23341
23342 2008-02-01 Dave Love <fx@gnu.org>
23343
23344 * xfns.c (x_put_x_image): Declare args.
23345
23346 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
23347 (try_font_list): Declare an arg.
23348
23349 * xdisp.c (message2_nolog, set_message): Declare an arg.
23350
23351 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
23352
23353 * syntax.c (scan_sexps_forward): Declare an arg.
23354
23355 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
23356 Declare an arg.
23357
23358 * lisp.h (Fnew_fontset): Declare.
23359
23360 * keymap.c (push_key_description): Call CHARACTERP correctly.
23361
23362 * fontset.c (fontset_add): Declare args. Call make_number correctly.
23363 (face_for_char): Delete unused vars.
23364 (Fset_fontset_font): Doc fix. Delete unused vars.
23365
23366 * doc.c (Fsubstitute_command_keys): Delete unused vars.
23367
23368 * composite.c (update_compositions): Declare arg.
23369
23370 * cm.c (calccost, cmgoto): Declare args.
23371
23372 * charset.c: Remove `emacs' conditional. Doc fixes.
23373 (map_char_table_for_charset): Declare.
23374
23375 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
23376
23377 * ccl.c: Remove `emacs' conditional.
23378
23379 2008-02-01 Kenichi Handa <handa@m17n.org>
23380
23381 The following changes are to allow specifying multiple font
23382 patterns for a character range (specified by script or charset).
23383
23384 * Makefile.in (abbrev.o): Depend on syntax.h.
23385 (xfaces.o): Depend on charset.h.
23386
23387 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
23388 SINGLE_BYTE_CHAR_P.
23389
23390 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
23391
23392 * character.h (Vchar_script_table): Extern it.
23393
23394 * character.c (Vscript_alist): Delete.
23395 (Vchar_script_table, Qchar_script_table): New variable.
23396 (syms_of_character): Declare Vchar_script_table as a lisp variable
23397 and initialize it.
23398
23399 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
23400 have property char-table-extra-slots, make no extra slot.
23401
23402 * dispextern.h (struct face): Delete member `charset'.
23403 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
23404 SINGLE_BYTE_CHAR_P.
23405 (choose_face_font, lookup_non_ascii_face, font_name_registry):
23406 Add prototypes.
23407 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
23408 (generate_ascii_font_name): Rename from generate_ascii_font.
23409
23410 * fontset.h (get_font_repertory_func): New prototype.
23411 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
23412 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
23413
23414 * fontset.c (Qprepend, Qappend): New variables.
23415 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
23416 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
23417 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
23418 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
23419 (fontset_ref_and_range, fontset_add, reorder_font_vector)
23420 (load_font_get_repertory): New functions.
23421 (fontset_set): Delete.
23422 (fontset_face): New arg FACE. Return face ID, not face.
23423 Complete re-write to handle new fontset structure. Change caller.
23424 (free_face_fontset): Use ASET istead of AREF (X) = Y.
23425 (face_for_char): Don't call lookup_face.
23426 (make_fontset_for_ascii_face): New arg FACE.
23427 (fs_load_font): New arg CHARSET_ID. Don't check
23428 Vfont_encoding_alist here.
23429 (find_font_encoding): New function.
23430 (list_fontsets): Use STRINGP, not ! NILP.
23431 (accumulate_script_ranges): New function.
23432 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
23433 re-written to handle new fontset structure.
23434 (Ffontset_font): Return a copy of element.
23435 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
23436 docstring of font-encoding-alist.
23437
23438 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
23439 (Fset_fotset_font): Fix arguments to 5.
23440
23441 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
23442
23443 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
23444 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
23445 (highlight_trailing_whitespace): Adjust for the change of
23446 lookup_named_face.
23447
23448 * xfaces.c: Include charset.h.
23449 (load_face_font): Delete argument C. Change caller.
23450 (generate_ascii_font_name): Rename from generate_ascii_font.
23451 (font_name_registry): New function.
23452 (cache_face): Store ascii faces before non-ascii faces in buckets.
23453 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
23454 Lookup only ascii faces.
23455 (lookup_non_ascii_face): New function.
23456 (lookup_named_face): Delete argument C. Change caller.
23457 (lookup_derived_face): Delete argument C. Change caller.
23458 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
23459 a string, just call font_list with it.
23460 (choose_face_font): Delete arguments FACE and C. New arg
23461 FONT_SPEC. Change caller.
23462 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
23463 Change caller.
23464 (realize_non_ascii_face): New function.
23465 (realize_x_face): Call load_face_font here.
23466 (realize_tty_face): Delete argument C. Change caller.
23467 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
23468 get a face ID.
23469 (dump_realized_face): Don't print charset of FACE.
23470
23471 * xfns.c (x_set_font): Always call x_new_fontset and
23472 store_frame_parameter.
23473 (Fx_create_frame): Call x_new_fontset, not x_new_font.
23474 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
23475
23476 * xterm.h (x_get_font_repertory): Extern it.
23477
23478 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
23479 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
23480 it->multibyte_p is zero.
23481 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
23482 (x_new_fontset): If FONTSETNAME doesn't match any existing
23483 fontsets, create a new one.
23484 (x_get_font_repertory): New function.
23485
23486 2008-02-01 Kenichi Handa <handa@m17n.org>
23487
23488 * coding.c (Ffind_coding_systems_region_internal): Detect an
23489 ASCII only string correctly.
23490
23491 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
23492 version is 0.
23493
23494 2008-02-01 Kenichi Handa <handa@m17n.org>
23495
23496 * lread.c: Include "coding.h".
23497 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
23498 (load_each_byte, unread_char): New variables.
23499 (readchar_backlog): Delete.
23500 (readchar): Return a character unless load_each_byte is nonzero.
23501 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
23502 cons. If unread_char is not -1, simply return it.
23503 (unreadchar): Handle the case that readcharfun is
23504 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
23505 (read_multibyte): Delete.
23506 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
23507 (read_emacs_mule_char): New functions.
23508 (Fload): Even if the file doesn't have the extension ".elc", if
23509 safe_to_load_p returns a positive version number, assume that the
23510 file contains bytecompiled code. If the version is less than 22,
23511 load the file while decoding multibyte sequences by emacs-mule.
23512 (readevalloop): Don't use readchar_backlog.
23513 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
23514 (Fread_from_string): Pay attention to the case that STREAM is a cons.
23515 (read_escape): Delete the arg BYTEREP.
23516 (read1): Set load_each_byte to 1 temporarily while handling
23517 #@NUMBER. Don't call read_multibyte.
23518 (read_vector): Call Fread with a cons. If readcharfun is
23519 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
23520 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
23521 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
23522 and Qload_force_doc_strings.
23523
23524 2008-02-01 Kenichi Handa <handa@m17n.org>
23525
23526 * xdisp.c (face_before_or_after_it_pos): Call
23527 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
23528
23529 2008-02-01 Kenichi Handa <handa@m17n.org>
23530
23531 * character.h (TRAILING_CODE_P): New macro.
23532 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
23533 (string_char_with_unification): Fix prototype.
23534 (Vscript_alist): Extern it.
23535
23536 * character.c (Vscript_alist): New variable.
23537 (string_char_with_unification, str_as_unibyte)
23538 (string_escape_byte8): Add `const' to local variables.
23539 (syms_of_character): Declare script-alist as a Lisp variable.
23540
23541 * charset.h (Vcharset_ordered_list): Extern it.
23542 (charset_ordered_list_tick): Extern it.
23543 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
23544 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
23545 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
23546 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
23547 (Funify_charset): Adjust for the change of Funify_charset.
23548
23549 * charset.c (charset_ordered_list_tick): New variable.
23550 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
23551 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
23552 deunify instead of unify a charset.
23553 (string_xstring_p): Add `const' to local variables.
23554 (find_charsets_in_text): Add `const' to arguments and local variables.
23555 (encode_char): Adjust for the change of Funify_charset. Fix
23556 detecting of invalid code.
23557 (Fset_charset_priority): Increment charset_ordered_list_tick.
23558 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
23559 and TO_CODE.
23560
23561 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
23562 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
23563 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
23564 (decode_coding_ccl, consume_chars)
23565 (Ffind_coding_systems_region_internal)
23566 (Fcheck_coding_systems_region): Add `const' to local variables.
23567
23568 * print.c (print_object): Use octal form for printing the
23569 contents of a bool vector.
23570
23571 2008-02-01 Dave Love <fx@gnu.org>
23572
23573 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
23574 <version == 20>: Refuse to load.
23575
23576 2008-02-01 Dave Love <fx@gnu.org>
23577
23578 * fns.c: Move coding.h.
23579 (Qcodeset, Qdays, Qmonths): New.
23580 (concat): Use CHARACTERP instead of INTEGERP.
23581 (Flocale_codeset): Delete.
23582 (Flanginfo): New function.
23583 (syms_of_fns): Change accordingly.
23584
23585 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
23586
23587 2008-02-01 Dave Love <fx@gnu.org>
23588
23589 * casetab.c (init_casetab_once, init_casetab_once): Fix
23590 CHAR_TABLE_SET call.
23591
23592 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
23593
23594 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
23595
23596 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
23597 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
23598 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
23599
23600 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
23601
23602 * coding.c (ENCODE_DESIGNATION, decode_eol)
23603 (make_conversion_work_buffer, code_conversion_restore)
23604 (Fdefine_coding_system_internal): Convert Lisp types.
23605 (code_conversion_restore): Use EQ, not ==.
23606 (Fencode_coding_string): Fix code_convert_string call.
23607
23608 * coding.h (code_convert_region): Fix prototype.
23609
23610 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
23611
23612 * fontset.c (fontset_ref, fontset_set, fs_load_font)
23613 (Ffontset_info): Convert Lisp types.
23614
23615 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
23616
23617 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
23618
23619 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
23620
23621 * chartab.c: Include "...h", not <...h> in some cases.
23622
23623 * callproc.c (Fcall_process): Remove unused variables.
23624
23625 2008-02-01 Dave Love <fx@gnu.org>
23626
23627 * coding.c (Fset_coding_system_priority): Allow null arg list.
23628
23629 2008-02-01 Dave Love <fx@gnu.org>
23630
23631 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
23632 (Fself_insert_and_exit): Use CHARACTERP.
23633
23634 * callproc.c (Fcall_process): Remove unused vars.
23635
23636 * xterm.c (XTread_socket): Add extra dead keysyms.
23637
23638 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
23639
23640 * dispextern.h: Remove prototypes for redraw_frame,
23641 redraw_garbaged_frames.
23642
23643 * cmds.c (Fself_insert_command): Use CHARACTERP.
23644
23645 * chartab.c (make_sub_char_table): Remove unused var.
23646 (Fset_char_table_default, Fmap_char_table): Doc fix.
23647
23648 * keymap.c (access_keymap): Remove generic char code.
23649 (push_key_description): Use CHARACTERP.
23650
23651 2008-02-01 Dave Love <fx@gnu.org>
23652
23653 * charset.c: Doc fixes.
23654 (Funify_charset): Extra checking.
23655
23656 2008-02-01 Dave Love <fx@gnu.org>
23657
23658 * lread.c: Remove some unused variables.
23659 (safe_to_load_p): If safe, return the magic number version byte.
23660 (Fload): Maybe use load-with-code-conversion.
23661
23662 2008-02-01 Kenichi Handa <handa@m17n.org>
23663
23664 * category.c (Fmodify_category_entry): Don't modify the contents
23665 of category_set for characters out of the range. Avoid
23666 unnecessary modification.
23667
23668 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
23669 Vchar_unify_table. The default value of the table is now nil.
23670
23671 * character.c (syms_of_character): Setup Vchar_width_table for
23672 eight-bit-control and raw-byte chars.
23673
23674 * charset.h (enum define_charset_arg_index): Delete
23675 charset_arg_parents and add charset_arg_subset and
23676 charset_arg_superset.
23677 (enum charset_attr_index): Delete charset_parents and add
23678 charset_subset and charset_superset.
23679 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
23680 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
23681 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
23682 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
23683 (CHARSET_SUPERSET): New macros.
23684 (charset_work): Extern it.
23685 (ENCODE_CHAR): Use charset_work.
23686 (CHAR_CHARSET_P): Adjust for the change of encoder format.
23687 (map_charset_chars): Extern it.
23688
23689 * charset.c (load_charset_map): Set the default value of encoder
23690 and deunifier char-tables to nil.
23691 (map_charset_chars): Change argument. Change callers. Use
23692 map_char_table_for_charset instead of map_char_table.
23693 (Fmap_charset_chars): New optional args from_code and to_code.
23694 (Fdefine_charset_internal): Adjust for the change of
23695 `define-charset' (:parents -> :subset or :superset).
23696 (charset_work): New variable.
23697 (encode_char, syms_of_charset): Adjust for the change of
23698 Fdefine_charset_internal.
23699 (Ffind_charset_string): Setup the vector `charsets' correctly.
23700
23701 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
23702 the previous change.
23703 (char_table_ref_and_range): Adjust for the above change.
23704 (map_sub_char_table_for_charset): New function.
23705 (map_char_table_for_charset): New function.
23706
23707 * keymap.c (describe_vector): Handle a char-table directly here.
23708 (describe_char_table): Delete.
23709
23710 * lisp.h (map_charset_chars): Delete.
23711
23712 2008-02-01 Dave Love <fx@gnu.org>
23713
23714 * fns.c (count_combining): Comment out (unused).
23715 (Flocale_codeset): New.
23716 (syms_of_fns): Defsubr it.
23717
23718 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
23719 (size_t): Remove.
23720
23721 2008-02-01 Dave Love <fx@gnu.org>
23722
23723 * Makefile.in (chartab.o): Depend on charset.h.
23724
23725 2008-02-01 Kenichi Handa <handa@m17n.org>
23726
23727 * character.c (syms_of_character): Set the default value of
23728 Vprintable_chars to Qnil.
23729
23730 2008-02-01 Dave Love <fx@gnu.org>
23731
23732 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
23733
23734 2008-02-01 Kenichi Handa <handa@m17n.org>
23735
23736 * charset.c (load_charset_map): Handle the case that from < to
23737 correctly.
23738
23739 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
23740 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
23741 Pay attention to raw-8-bit chars.
23742
23743 2008-02-01 Kenichi Handa <handa@m17n.org>
23744
23745 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
23746 It is not bytecompiled now.
23747
23748 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
23749 (charset_jisx0208): New variables.
23750 (Fdefine_charset_internal): Setup them if appropriate.
23751 (init_charset_once): Initialize them to -1.
23752
23753 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
23754 (charset_jisx0208): Extern them.
23755
23756 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
23757 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
23758 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
23759 (setup_iso_safe_charsets): Fix arguments to Fassq.
23760 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
23761 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
23762 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
23763 (encode_coding_iso_2022): Change the 1st arg to
23764 ENCODE_ISO_CHARACTER to a variable.
23765
23766 2008-02-01 Kenichi Handa <handa@m17n.org>
23767
23768 * charset.h (enum define_charset_arg_index): New enums
23769 charset_arg_min_code and charset_arg_max_code.
23770 (struct charset): New member char_index_offset.
23771
23772 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
23773 Take charset->char_index_offset into account.
23774 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
23775 args[charset_arg_max_code]. Setup charset.char_index_offset.
23776 (syms_of_charset): Fix args to Fdefine_charset_internal.
23777
23778 2008-02-01 Dave Love <fx@gnu.org>
23779
23780 * coding.c (decode_coding_utf_8): Reject overlong sequences.
23781
23782 2008-02-01 Dave Love <fx@gnu.org>
23783
23784 * coding.c: Doc fixes.
23785 (Fcoding_system_aliases): Fix return value.
23786 (Qmac): Remove (duplicated) definition.
23787
23788 2008-02-01 Dave Love <fx@gnu.org>
23789
23790 * charset.c (Fcharset_priority_list, Fset_charset_priority):
23791 New functions.
23792
23793 * character.c (Fstring): Doc fix.
23794
23795 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
23796
23797 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
23798 (font-encoding-alist): Doc fix.
23799
23800 2008-02-01 Dave Love <fx@gnu.org>
23801
23802 * term.c (costs_set): Declare static, non-initialized for pcc.
23803 (encode_terminal_code): Remove unused var.
23804
23805 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
23806 for K&R.
23807
23808 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
23809
23810 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
23811 (suffixes): Move out of make_subsidiaries for K&R.
23812
23813 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
23814
23815 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
23816
23817 2008-02-01 Dave Love <fx@gnu.org>
23818
23819 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
23820
23821 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
23822
23823 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
23824
23825 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
23826
23827 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
23828
23829 2008-02-01 Kenichi Handa <handa@m17n.org>
23830
23831 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
23832 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
23833
23834 2008-02-01 Kenichi Handa <handa@m17n.org>
23835
23836 * coding.c (decode_coding_charset): Adjust for the change of
23837 Fdefine_coding_system_internal.
23838 (Fdefine_coding_system_internal): For a coding system of
23839 `charset' type, store a list of charset IDs in
23840 `charset_attr_charset_valids' element of coding attributes.
23841
23842 2008-02-01 Kenichi Handa <handa@m17n.org>
23843
23844 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
23845 (emacs_mule_char): New arg src. Delete arg `composition'. Change
23846 caller. Handle 2-byte and 3-byte charsets correctly.
23847 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
23848 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
23849 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
23850 (DECODE_EMACS_MULE_21_COMPOSITION): Call
23851 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
23852 sequence.
23853 (decode_coding_emacs_mule): Handle composition correctly. Rewind
23854 `src' and `consumed_chars' correctly before calling emacs_mule_char.
23855 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
23856 and alt&rule composition.
23857 (decode_coding_iso_2022): Handle composition correctly.
23858 (init_coding_once): Setup emacs_mule_bytes for private charsets.
23859
23860 * charset.c (Fdefine_charset_internal): Fix bug for the case of
23861 re-defining a charset. If the charset has :emacs-mule-id, setup
23862 emacs_mule_bytes.
23863 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
23864
23865 2008-02-01 Kenichi Handa <handa@m17n.org>
23866
23867 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
23868 (encode_coding_big5, encode_coding_charset): If coding requires safe
23869 encoding, produce a character specified by
23870 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
23871
23872 2008-02-01 Dave Love <fx@gnu.org>
23873
23874 * xterm.c (XSetIMValues): Declare.
23875
23876 * process.c: Conditionally include sys/wait.h, pty.h.
23877
23878 * print.c (print_object): Fix print format for 64-bit systems.
23879
23880 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
23881
23882 * buffer.c (emacs_strerror): Declare.
23883
23884 * fontset.c (Fclear_face_cache): Declare.
23885 (accumulate_font_info): Comment-out (unused).
23886 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
23887 variables.
23888
23889 * character.h (string_escape_byte8): Declare.
23890
23891 * charset.c (load_charset_map, load_charset_map_from_file): Remove
23892 unused vars.
23893 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
23894 (Fmap_charset_chars): Doc fix.
23895
23896 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
23897 (Fset_coding_system_priority, Fset_coding_system_priority)
23898 (Fdefine_coding_system_internal): Doc fix.
23899
23900 2008-02-01 Dave Love <fx@gnu.org>
23901
23902 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
23903
23904 2008-02-01 Kenichi Handa <handa@m17n.org>
23905
23906 * character.c (string_escape_byte8): Make multibyte string with
23907 correct size.
23908
23909 * charset.c (Fmake_char): Delete unnecessary code.
23910
23911 2008-02-01 Kenichi Handa <handa@m17n.org>
23912
23913 * xfns.c (x_encode_text): Allocate coding.destination here, and
23914 call encode_coding_object with dst_object Qnil.
23915
23916 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
23917 multibyte form correctly.
23918
23919 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
23920 against Vfont_encoding_alist.
23921
23922 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
23923 handling of charset list.
23924 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
23925 (decode_coding_object): Move point to coding->dst_pos before
23926 calling post-read-conversion function.
23927 (encode_coding_object): Give correct arguments to
23928 pre-write-conversion. Ignore the return value of
23929 pre-write-conversion function. Pay attention to the case that
23930 pre-write-conversion changes the current buffer. If dst_object is
23931 Qt, even if coding->src_bytes is zero, allocate at least one byte
23932 to coding->destination.
23933
23934 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
23935
23936 * charset.c (Fmake_char): Make it more backward compatible.
23937 (Fmap_charset_chars): Fix docstring.
23938
23939 2008-02-01 Dave Love <fx@gnu.org>
23940
23941 * coding.c: Doc fixes.
23942 (Fdefine_coding_system_alias): Use names, not symbols, in
23943 coding-system-alist.
23944
23945 2008-02-01 Kenichi Handa <handa@m17n.org>
23946
23947 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
23948 of calling free_realized_face.
23949
23950 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
23951
23952 * charset.c (read_hex): Don't treat SPC as a comment starter.
23953 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
23954 (Fdecode_char): Fix typo.
23955
23956 2008-02-01 Kenichi Handa <handa@m17n.org>
23957
23958 * charset.h (struct charset): New member `code_space_mask'.
23959
23960 * coding.c (coding_set_source): Delete the local variable beg_byte.
23961 (encode_coding_charset, Fdefine_coding_system_internal):
23962 Delete the local variable charset.
23963 (Fdefine_coding_system_internal): Setup
23964 attrs[coding_attr_charset_valids] correctly.
23965
23966 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
23967 member to check if CODE is valid or not.
23968 (Fdefine_charset_internal): Initialize `code_space_mask' member.
23969 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
23970 is within the range of charset->min_code and carset->max_code.
23971
23972 2008-02-01 Dave Love <fx@gnu.org>
23973
23974 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
23975
23976 * dispextern.h (generate_ascii_font): Fix return type.
23977
23978 * xfaces.c (generate_ascii_font): Fix arg declaration.
23979
23980 * coding.c (coding_inherit_eol_type)
23981 (Fset_terminal_coding_system_internal)
23982 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
23983
23984 2008-02-01 Kenichi Handa <handa@m17n.org>
23985
23986 * coding.c (decode_coding_charset, encode_coding_charset): Handle
23987 multiple charsets correctly.
23988
23989 2008-02-01 Kenichi Handa <handa@m17n.org>
23990
23991 * search.c (boyer_moore): Fix handling of multibyte character
23992 translation.
23993
23994 * xdisp.c (display_mode_element): When the variable `elt' is
23995 changed, update `this' and `lisp_string'.
23996
23997 2008-02-01 Kenichi Handa <handa@m17n.org>
23998
23999 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
24000
24001 * callproc.c (Fcall_process): Be sure to give the current buffer
24002 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
24003
24004 * charset.c (struct charset_map_entries): New struct.
24005 (load_charset_map): Rename from parse_charset_map. New args
24006 entries and n_entries. Change caller.
24007 (load_charset_map_from_file): Rename from load_charset_map.
24008 Change caller. New arg control_flag. Call load_charset_map at
24009 the tail.
24010 (load_charset_map_from_vector): New function.
24011 (Fdefine_charset_internal): Setup charset.compact_codes_p.
24012 (encode_char): If the charset is compact, change a character index
24013 to a code point.
24014
24015 * coding.c (coding_alloc_by_making_gap): Check the case that the
24016 source and destination are the same correctly.
24017 (decode_coding_raw_text): Set coding->consumed_char and
24018 coding->consumed to 0.
24019 (produce_chars): If coding->chars_at_source is nonzero, update
24020 coding->consumed_char and coding->consumed before calling
24021 alloc_destination.
24022 (Fdefine_coding_system_alias): Register ALIAS in
24023 Vcoding_system_alist.
24024 (syms_of_coding): Define `no-conversion' coding system at the tail.
24025
24026 * fileio.c (Finsert_file_contents): Set coding_system instead of
24027 val. If the current buffer is multibyte, always call
24028 decode_coding_gap.
24029
24030 * xfaces.c (try_font_list): Give higher priority to fontset's
24031 family than face's family.
24032
24033 2008-02-01 Kenichi Handa <handa@m17n.org>
24034
24035 * callproc.c (Fcall_process): Be sure to give the current buffer
24036 to decode_coding_c_string.
24037
24038 * xfaces.c (try_font_list): Give a family specified in a fontset
24039 higher priority than a family specified in a face.
24040
24041 2008-02-01 Kenichi Handa <handa@m17n.org>
24042
24043 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
24044 Fix arguments to insert_from_buffer.
24045
24046 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
24047
24048 2008-02-01 Kenichi Handa <handa@m17n.org>
24049
24050 * coding.c (produce_chars): Set the variable `multibytep' correctly.
24051 (decode_coding_gap): Set coding->dst_multibyte correctly.
24052
24053 2008-02-01 Kenichi Handa <handa@m17n.org>
24054
24055 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
24056 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
24057 (encode_coding_utf_16): Substitute coding->default_char for
24058 non-Unicode characters.
24059 (decode_coding): Don't call record_insert here.
24060 (setup_coding_system): Initialize `surrogate' of
24061 coding->spec.utf_16 to 0.
24062 (EMIT_ONE_BYTE): Fix for multibyte case.
24063
24064 * insdel.c (insert_from_gap): Call record_insert.
24065
24066 2008-02-01 Kenichi Handa <handa@m17n.org>
24067
24068 * casefiddle.c (casify_region): Fix multibyte case.
24069
24070 * character.c (c_string_width): Add return type `int'.
24071 (char_string_with_unification): Delete arg ADVANCED.
24072
24073 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
24074 (CHAR_STRING): Adjust for the change of char_string_with_unification.
24075 (CHAR_STRING_ADVANCE): Make it do-while statement.
24076
24077 * chartab.c (sub_char_table_set_range): Optimize for the case
24078 DEPTH == 3. Add workaround code for a GCC optimization bug.
24079
24080 * charset.c (parse_charset_map): Remove an unused variable.
24081
24082 * coding.c: Delete unused variables.
24083
24084 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
24085 earlier. If inserted is zero and the coding system doesn't
24086 require flushing, don't call decode_coding_gap.
24087
24088 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
24089
24090 2008-02-01 Kenichi Handa <handa@m17n.org>
24091
24092 The following changes are for using Unicode as an internal
24093 character model, and use UTF-8 format for buffer/string
24094 representation.
24095
24096 * .gdbinit (xchartable): Adjust for the change of char table structure.
24097 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
24098
24099 * Makefile.in (obj): Add character.o and chartab.o.
24100 (lisp, shortlisp): Remove utf-8.elc.
24101 (*.o): For many files, change dependency on charset.h to
24102 character.h, and add dependency on character.h.
24103 (character.o, chartab.o): New targets.
24104
24105 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
24106 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
24107 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
24108 of "charset.h".
24109
24110 * dired.c, filelock.c: Include "character.h".
24111
24112 * alloc.c: Include "character.h" instead of "charset.h".
24113 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
24114 (syms_of_alloc): Remove defsubr for Smake_char_table.
24115
24116 * buffer.c: Include "character.h" instead of "charset.h", don't
24117 include "coding.h".
24118 (Fset_buffer_multibyte): Adjust for UTF-8.
24119
24120 * buffer.h: EXFUN Fbuffer_live_p.
24121
24122 * callproc.c: Include "character.h" instead of "charset.h".
24123 (Fcall_process): Big change for the new code-conversion APIs.
24124
24125 * casetab.c: Include "character.h" instead of "charset.h".
24126 (set_canon, set_identity, shuffle): Adjust for the new
24127 map_char_table spec.
24128 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
24129 accessing the char table structure.
24130
24131 * chartab.c: New file that implements char table.
24132
24133 * category.c: Include "character.h".
24134 (copy_category_entry): New function.
24135 (copy_category_table): Call map_char_table and copy_category_entry.
24136 (Fmake_category_table): Initialize all top-level slots.
24137 (char_category_set): New function.
24138 (modify_lower_category_set): Delete.
24139 (Fmodify_category_entry): Call char_table_ref_and_range.
24140
24141 * category.h (CATEGORY_SET): Just call char_category_set.
24142
24143 * ccl.c: Include "character.h".
24144 (Qccl, Qcclp): New variables.
24145 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
24146 it's less than 256.
24147 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
24148 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
24149 and DST type.
24150 (ccl_driver): Change types of argument, adjust code accordingly.
24151 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
24152 ccl_driver.
24153 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
24154
24155 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
24156 New members src_multibyte, dst_multibyte, consumed, and produced.
24157 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
24158 (CODING_SPEC_CCL_PROGRAM): New macro.
24159 (ccl_driver): Update prototype.
24160 (Qccl, Qcclp, Fccl_program_p): Extern them.
24161 (CHECK_CCL_PROGRAM): New macro.
24162
24163 * character.c, character.h, chartab.c: New files.
24164
24165 * charset.c: Mostly re-written. Move character and multibyte sequence
24166 handling codes to character.c.
24167
24168 * charset.h: Mostly re-written. Move character and multibyte sequence
24169 handling codes to character.h.
24170
24171 * coding.c, coding.h: Mostly re-written.
24172
24173 * composite.c: Include "character.h" instead of "charset.h".
24174 (CHAR_WIDTH): Move to character.h.
24175 (HASH_KEY, HASH_VALUE): Delete.
24176
24177 * composite.h (enum composition_method): Change order of enumeration
24178 symbols.
24179
24180 * data.c: Include "character.h" instead of "charset.h".
24181 (Faref): Call CHAR_TABLE_REF for a char table.
24182 (Faset): Call CHAR_TABLE_SET for a char table.
24183
24184 * dispextern.h (free_realized_face, check_face_attribytes)
24185 (generate_ascii_font): Extern them.
24186 (free_realized_multibyte_face): Delete extern.
24187
24188 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
24189 table structure.
24190
24191 * editfns.c: Include "character.h" instead of "charset.h".
24192 (Fchar_to_string): Always call CHAR_STRING.
24193
24194 * emacs.c (main): Call init_charset_once, init_charset,
24195 syms_of_chartab, and syms_of_character.
24196
24197 * fileio.c: Include "character.h" instead of "charset.h".
24198 (Finsert_file_contents): Big change for the new code-conversion API.
24199 (choose_write_coding_system, Fwrite_region): Likewise.
24200 (build_annotations_2): Delete.
24201 (e_write): Big change for the new code-conversion API.
24202
24203 * fns.c: Include "character.h" instead of "charset.h".
24204 (copy_sub_char_table): Move to chartab.c.
24205 (Fcopy_sequence): Call copy_char_table for a char table.
24206 (concat): Delete codes calling count_multibyte.
24207 (string_char_to_byte, string_byte_to_char): Adjust for the new
24208 multibyte form.
24209 (internal_equal): Adjust for the change of char table structure.
24210 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
24211 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
24212 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
24213 (char_table_translate, optimize_sub_char_table)
24214 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
24215 chartab.c.
24216 (char_table_ref_and_index): Delete.
24217 (HASH_KEY, HASH_VALUE): Move to lisp.h.
24218 (Fmd5): Call preferred_coding_system instead of accessing
24219 Vcoding_category_list. Adjust for the new code-conversion API.
24220 (syms_of_fns): Move defsubr for char table related functions to
24221 chartab.c.
24222
24223 * fontset.c: Mostly re-written.
24224
24225 * fontset.h (struct font_info): Change type of the member encoding_type.
24226 (enum FONT_SPEC_INDEX): New enum.
24227 (fontset_font_pattern, fs_load_font): Update prototype.
24228 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
24229
24230 * indent.c: Include "character.h" instead of "charset.h".
24231 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
24232
24233 * insdel.c: Include "character.h" instead of "charset.h".
24234 (copy_text): Don't refer to Vnonascii_translation_table.
24235 (insert_from_gap): New function.
24236
24237 * keyboard.c: Include "character.h" instead of "charset.h".
24238 (command_loop_1): Never call direct_output_forward_char before
24239 a non-ASCII character.
24240 (read_char): If Vkeyboard_translate_table is a char table, always
24241 translate a character.
24242
24243 * keymap.c: Include "character.h".
24244 (store_in_keymap): Handle the case that IDX is a cons.
24245 (Fdefine_key): Handle the case that KEY is a cons and the car part
24246 is also a cons (range).
24247 (push_key_description): Adjust for the new character code.
24248 (describe_vector): Call describe_char_table for a char table.
24249 (describe_char_table): New function.
24250
24251 * keymap.h (describe_char_table): Extern it.
24252
24253 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
24254 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
24255 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
24256 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
24257 Delete.
24258 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
24259 structure.
24260 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
24261 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
24262 (CHARTAB_SIZE_BITS_3): New macros.
24263 (chartab_size): Extern it.
24264 (struct Lisp_Char_Table): Re-design.
24265 (struct Lisp_Sub_Char_Table): New structure.
24266 (HASH_KEY, HASH_VALUE): Move from fns.c.
24267 (CHARACTERBITS): Define as 22.
24268 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
24269 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
24270 (GC_SUB_CHAR_TABLE_P): New macro.
24271 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
24272 (code_convert_string_norecord): Deleted extern.
24273 (init_character_once, syms_of_character, init_charset)
24274 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
24275
24276 * lread.c: Include "character.h".
24277 (read_multibyte): New arg NBYTES.
24278 (read_escape): Change the meaning of returned *BYTEREP.
24279 (to_multibyte): Delete.
24280 (read1): Adjust the handling of char table and string.
24281
24282 * print.c: Include "character.h" instead of "charset.h".
24283 (print_string): Convert 8-bit raw bytes to octal form by
24284 string_escape_byte8.
24285 (print_object): Adjust for the new multibyte form. Print 8-bit
24286 raw bytes always in octal form. Handle sub char table correctly.
24287
24288 * process.c: Include "character.h" instead of "charset.h".
24289 (read_process_output, send_process): Adjust for the new
24290 code-conversion API.
24291
24292 * puresize.h (BASE_PURESIZE): Increase.
24293
24294 * regex.c: Include "character.h" instead of "charset.h".
24295 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
24296 (regex_compile): Accept a range whose starting and ending
24297 character have different leading bytes.
24298 (analyse_first): Adjust for the above change.
24299
24300 * search.c: Include "character.h" instead of "charset.h".
24301 (search_buffer, boyer_moore): Adjust for the new multibyte form.
24302 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
24303
24304 * syntax.c: Include "character.h" instead of "charset.h".
24305 (syntax_parent_lookup): Delete.
24306 (Fmodify_syntax_entry): Accept a cons as CHAR.
24307 (skip_chars): Adjust for the new multibyte form.
24308 (init_syntax_once): Call char_table_set_range instead of directly
24309 accessing the structure of a char table.
24310
24311 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
24312 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
24313 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
24314 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
24315
24316 * term.c: Include "buffer.h" and "character.h".
24317 (encode_terminal_code, write_glyphs): Adjust for the new
24318 code-conversion API.
24319 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
24320
24321 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
24322
24323 * xdisp.c: Include "character.h".
24324 (get_next_display_element): Adjust for the new multibyte form.
24325 (disp_char_vector): Adjust for the new char table structure.
24326 (decode_mode_spec_coding): Adjust for the new structure of
24327 coding system.
24328 (decode_mode_spec): Adjust for the new code-conversion API.
24329
24330 * xfaces.c: Include "character.h" instead of "charset.h".
24331 (load_face_font): Adjust for the change of choose_face_font and
24332 FS_LOAD_FONT.
24333 (generate_ascii_font): New function.
24334 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
24335 (set_font_frame_param): Adjust for the change of choose_face_font.
24336 (free_realized_face): Make it public.
24337 (free_realized_faces_for_fontset): Rename from
24338 free_realized_multibyte_face. Free also faces realized for ASCII.
24339 (choose_face_font): Change arguments. Adjust for the change of
24340 fontset_font_pattern and FS_LOAD_FONT.
24341
24342 * xfns.c: Include "character.h".
24343 (x_encode_text): Adjust for the new code-conversion API.
24344
24345 * xselect.c: Don't include "charset.h".
24346 (selection_data_to_lisp_data): Adjust for the new code conversion API.
24347
24348 * xterm.c: Include "character.h".
24349 (x_encode_char): New argument CHARSET. Change caller.
24350 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
24351 Call ENCODE_CHAR instead of SPLIT_CHAR.
24352 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
24353 CHAR_WIDTH instead of CHARSET_WIDTH.
24354 (XTread_socket): Adjust for the new code-conversion API.
24355 (x_new_font): Adjust for the change of FS_LOAD_FONT.
24356 (x_load_font): Adjust for the change of struct font.
24357
24358 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
24359
24360 * xfaces.c (face_at_buffer_position): Remove unused vars.
24361
24362 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24363
24364 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
24365 Fix overflow checking.
24366
24367 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24368
24369 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
24370 Cancel previous change.
24371
24372 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
24373
24374 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
24375 ccl->eight_bit_control. Fix check for buffer overflow.
24376 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
24377 (ccl_driver): Initialize extra_bytes to 0.
24378
24379 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
24380
24381 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
24382 return it ORed with ctrl_modifier.
24383
24384 2008-01-29 Miles Bader <miles@gnu.org>
24385
24386 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
24387
24388 2008-01-28 Jason Rumney <jasonr@gnu.org>
24389
24390 * w32.c (stat): Don't double check for networked drive.
24391
24392 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
24393
24394 * window.c (run_window_configuration_change_hook): New function.
24395 Code extracted from set_window_buffer. Set the selected frame.
24396 (set_window_buffer): Use it.
24397 * window.h (run_window_configuration_change_hook): Declare.
24398 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
24399
24400 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
24401
24402 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
24403
24404 * Makefile.in: Remove references to unused macros.
24405
24406 2008-01-26 Eli Zaretskii <eliz@gnu.org>
24407
24408 * w32.c (g_b_init_get_sid_sub_authority)
24409 (g_b_init_get_sid_sub_authority_count): New static variables.
24410 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
24411 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
24412 (init_user_info): Use them to retrieve uid and gid.
24413 Use 500/513, the Windows defaults, as Administrator's uid/gid.
24414 (fstat): Use pw_uid and pw_gid from the_passwd structure for
24415 st_uid and st_gid of the file.
24416
24417 2008-01-26 Jason Rumney <jasonr@gnu.org>
24418
24419 * w32.c (logon_network_drive): New function.
24420 (stat): Use it.
24421
24422 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
24423
24424 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
24425 invisible text covered with an ellipsis.
24426
24427 2008-01-25 Richard Stallman <rms@gnu.org>
24428
24429 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
24430 jump back to beginning. Move some other initializations after that.
24431 (Qwindow_text_change_functions, Vwindow_text_change_functions):
24432 New variables.
24433 (syms_of_xdisp): Init them.
24434
24435 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
24436
24437 * buffer.c (reset_buffer_local_variables):
24438 Implement `permanent-local-hook'.
24439 (Qpermanent_local_hook): New variable.
24440 (syms_of_buffer): Init and staticpro it.
24441
24442 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
24443
24444 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
24445
24446 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
24447
24448 * fns.c (Fclrhash): Return TABLE.
24449
24450 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24451
24452 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
24453 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
24454 is set even without positional changes.
24455 (x_scroll_bar_clear): Set bar->redraw_needed_p.
24456
24457 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
24458
24459 2008-01-23 Jason Rumney <jasonr@gnu.org>
24460
24461 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
24462
24463 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
24464 the unicode range available in MULE by locale-coding-system.
24465 Improve dbcs lead byte detection. Set event timestamp and modifiers
24466 earlier.
24467
24468 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24469
24470 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
24471 [MAC_OSX] (init_mac_osx_environment): Initialize it.
24472 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
24473 when used on child processes.
24474
24475 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
24476
24477 * dbusbind.c (Fdbus_method_return_internal): Rename from
24478 Fdbus_method_return.
24479 (Fdbus_unregister_object): Move to dbus.el.
24480 (Fdbus_call_method, Fdbus_method_return_internal)
24481 (Fdbus_send_signal): Improve debug messages.
24482
24483 2008-01-20 Martin Rudalics <rudalics@gmx.at>
24484
24485 * undo.c (undo_inhibit_record_point): New variable.
24486 (syms_of_undo): Initialize it.
24487 (record_point): Don't record point when undo_inhibit_record_point
24488 is set.
24489
24490 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
24491
24492 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
24493
24494 * xdisp.c (Qauto_hscroll_mode): New var.
24495 (syms_of_xdisp): Initialize it.
24496 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
24497 window's buffer.
24498 (hscroll_windows): Don't check automatic_hscrolling_p here.
24499
24500 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
24501 vscroll if we're setting window-buffer to the value it already has.
24502
24503 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
24504
24505 * m/intel386.h: Remove references to XENIX.
24506
24507 2008-01-17 Andreas Schwab <schwab@suse.de>
24508
24509 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
24510 instead of HAVE_X86_64_LIB64_DIR.
24511 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
24512
24513 2008-01-17 Glenn Morris <rgm@gnu.org>
24514
24515 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
24516 to HAVE_X86_64_LIB64_DIR.
24517
24518 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
24519
24520 * s/irix3-3.h:
24521 * s/irix4-0.h:
24522 * s/386-ix.h:
24523 * s/domain.h:
24524 * s/hpux9-x11r4.h:
24525 * s/hpux9shxr4.h: Remove files for systems no longer supported.
24526
24527 * sysdep.c: Remove code containing references to symbols defined
24528 by unsupported systems.
24529
24530 2008-01-16 Glenn Morris <rgm@gnu.org>
24531
24532 * coding.c (select-safe-coding-system-function): Doc fix.
24533
24534 2008-01-15 Glenn Morris <rgm@gnu.org>
24535
24536 * config.in: Revert 2008-01-13 change: this is a generated file.
24537
24538 2008-01-13 Tom Tromey <tromey@redhat.com>
24539
24540 * lisp.h: Fix typo.
24541
24542 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
24543
24544 * m/sequent-ptx.h:
24545 * m/sequent.h:
24546 * s/ptx.h:
24547 * s/ptx4-2.h:
24548 * s/ptx4.h: Remove files for systems no longer supported.
24549
24550 * callproc.c (Fcall_process): Fix previous change.
24551
24552 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
24553
24554 * unexsunos4.c: Remove file, system not supported anymore.
24555
24556 * m/mips.h:
24557 * m/intel386.h:
24558 * callproc.c:
24559 * config.in:
24560 * ecrt0.c:
24561 * emacs.c:
24562 * fileio.c:
24563 * frame.c:
24564 * getpagesize.h:
24565 * keyboard.c:
24566 * lread.c:
24567 * process.c:
24568 * puresize.h:
24569 * sysdep.c:
24570 * systty.h:
24571 * syswait.h:
24572 * unexec.c:
24573 * xdisp.c:
24574 * alloc.c: Remove code containing references to symbols defined by
24575 unsupported systems.
24576
24577 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
24578
24579 * coding.c (detect_coding_mask): Fix previous change.
24580
24581 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
24582
24583 * coding.c (detect_coding_iso2022): New arg
24584 latin_extra_code_state. Allow Latin extra codes only
24585 when *latin_extra_code_state is nonzero.
24586 (detect_coding_mask): If there is a NULL byte, detect the encoding
24587 as UTF-16 or binary. If Latin extra codes exist, detect the
24588 encoding as ISO-2022 only when there's no other proper encoding is
24589 found.
24590
24591 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24592
24593 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
24594 #ifdef MAC_OS.
24595
24596 2008-01-08 Richard Stallman <rms@gnu.org>
24597
24598 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
24599
24600 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
24601
24602 * keyboard.c (parse_menu_item): Don't enclose key bindings on
24603 menu bar in parentheses.
24604
24605 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
24606
24607 * m/7300.h:
24608 * m/acorn.h:
24609 * m/alliant-2800.h:
24610 * m/alliant.h:
24611 * m/alliant1.h:
24612 * m/alliant4.h:
24613 * m/altos.h:
24614 * m/amdahl.h:
24615 * m/apollo.h:
24616 * m/att3b.h:
24617 * m/aviion-intel.h:
24618 * m/aviion.h:
24619 * m/celerity.h:
24620 * m/clipper.h:
24621 * m/cnvrgnt.h:
24622 * m/convex.h:
24623 * m/cydra5.h:
24624 * m/delta88k.h:
24625 * m/dpx2.h:
24626 * m/dual.h:
24627 * m/elxsi.h:
24628 * m/f301.h:
24629 * m/gould-np1.h:
24630 * m/gould.h:
24631 * m/i860.h:
24632 * m/ibmps2-aix.h:
24633 * m/ibmrt-aix.h:
24634 * m/ibmrt.h:
24635 * m/irist.h:
24636 * m/is386.h:
24637 * m/isi-ov.h:
24638 * m/mega68.h:
24639 * m/mg1.h:
24640 * m/news-r6.h:
24641 * m/news-risc.h:
24642 * m/news.h:
24643 * m/nh3000.h:
24644 * m/nh4000.h:
24645 * m/ns16000.h:
24646 * m/ns32000.h:
24647 * m/nu.h:
24648 * m/orion.h:
24649 * m/orion105.h:
24650 * m/paragon.h:
24651 * m/pfa50.h:
24652 * m/plexus.h:
24653 * m/pyramid.h:
24654 * m/pyrmips.h:
24655 * m/sh3el.h:
24656 * m/sps7.h:
24657 * m/sr2k.h:
24658 * m/stride.h:
24659 * m/sun1.h:
24660 * m/sun2.h:
24661 * m/sun3-68881.h:
24662 * m/sun3-fpa.h:
24663 * m/sun3-soft.h:
24664 * m/sun3.h:
24665 * m/sun386.h:
24666 * m/symmetry.h:
24667 * m/tad68k.h:
24668 * m/tahoe.h:
24669 * m/targon31.h:
24670 * m/tek4300.h:
24671 * m/tekxd88.h:
24672 * m/tower32.h:
24673 * m/tower32v3.h:
24674 * m/ustation.h:
24675 * m/wicat.h:
24676 * m/xps100.h:
24677 * s/cxux.h:
24678 * s/cxux7.h:
24679 * s/dgux.h:
24680 * s/dgux4.h:
24681 * s/dgux5-4-3.h:
24682 * s/dgux5-4r2.h:
24683 * s/esix.h:
24684 * s/esix5r4.h:
24685 * s/hiuxmpp.h:
24686 * s/hiuxwe2.h:
24687 * s/iris3-5.h:
24688 * s/iris3-6.h:
24689 * s/isc2-2.h:
24690 * s/isc3-0.h:
24691 * s/isc4-0.h:
24692 * s/isc4-1.h:
24693 * s/newsos5.h:
24694 * s/newsos6.h:
24695 * s/osf1.h:
24696 * s/osf5-0.h:
24697 * s/riscix1-1.h:
24698 * s/riscix12.h:
24699 * s/sco4.h:
24700 * s/sco5.h:
24701 * s/sunos4-0.h:
24702 * s/sunos4-1.h:
24703 * s/sunos413.h:
24704 * s/sunos4shr.h:
24705 * s/umax.h:
24706 * s/unipl5-2.h:
24707 * s/xenix.h:
24708 * cxux-crt0.s:
24709 * unexapollo.c:
24710 * unexconvex.c:
24711 * unexenix.c:
24712 * unexsni.c: Remove files for systems no longer supported.
24713
24714 * m/intel386.h: Remove references to unsupported systems.
24715
24716 * w32.c (get_emacs_configuration): Remove reference to i860.
24717
24718 * sysdep.c: Remove dead code.
24719
24720 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
24721
24722 * s/rtu.h:
24723 * m/masscomp.h: Remove files. Platform is obsolete.
24724
24725 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
24726
24727 * dbusbind.c (Fdbus_method_return): New function.
24728 (xd_read_message): Add the serial number to the event.
24729 (Fdbus_register_method): Activate the function.
24730
24731 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
24732
24733 * keyboard.c (read_key_sequence): Fix typo.
24734
24735 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
24736
24737 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
24738 (xd_signature, xd_append_arg): Handle element type detection for
24739 empty arrays.
24740 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
24741 SDATA () calls; this must be solved more general.
24742 (Fdbus_register_signal): Use SBYTES instead of strlen.
24743
24744 2008-01-03 Magnus Henoch <magnus@zemdatav>
24745
24746 * dbusbind.c (xd_append_arg): Use unsigned char instead of
24747 unsigned int for byte values (necessary for big-endian platform).
24748 (Fdbus_call_method): Handle the case of no returned arguments.
24749
24750 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
24751
24752 * dbusbind.c (xd_read_message): Use non-static input_event struct.
24753
24754 2007-12-31 Magnus Henoch <mange@freemail.hu>
24755
24756 * dbusbind.c (xd_signature): Signature of variant is just "v".
24757
24758 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
24759
24760 * dbusbind.c: Fix several errors and compiler warnings.
24761 Reported by Tom Tromey <tromey@redhat.com>.
24762 (XD_ERROR, XD_DEBUG_MESSAGE)
24763 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
24764 (xd_append_arg): Part for basic D-Bus types rewritten.
24765 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
24766 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
24767 appropriate.
24768 (xd_read_message): Return Qnil. Don't signal an error; it is not
24769 useful during event reading.
24770 (Fdbus_register_signal): Signal an error if the check for
24771 FUNCTIONP fails.
24772 (Fdbus_register_method): New function. The implementation is not
24773 complete, the call of the function signals an error therefore.
24774 (Fdbus_unregister_object): New function, renamed from
24775 Fdbus_unregister_signal. The initial check signals an error, if
24776 the object is not well formed.
24777
24778 2007-12-30 Richard Stallman <rms@gnu.org>
24779
24780 * textprop.c (get_char_property_and_overlay):
24781 Signal error if POSITION is out of range in a buffer.
24782
24783 2007-12-29 Martin Rudalics <rudalics@gmx.at>
24784
24785 * w32fns.c (Fx_create_frame): Make copy of frame parameters
24786 because the original parameters are in pure storage now.
24787
24788 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24789
24790 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
24791
24792 2007-12-22 Eli Zaretskii <eliz@gnu.org>
24793
24794 * callint.c (syms_of_callint) <command-history>: Add reference to
24795 history-length in the doc string.
24796
24797 2007-12-17 Jason Rumney <jasonr@gnu.org>
24798
24799 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
24800 before passing as wParam.
24801
24802 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
24803
24804 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
24805 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
24806 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
24807 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
24808 as number.
24809 (Fdbus_call_method): Fix docstring.
24810
24811 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
24812
24813 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
24814 New macros.
24815 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
24816 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
24817 Simplify.
24818 (xd_signature): New function.
24819 (xd_append_arg): Compute also signatures. Major rewrite.
24820 (xd_retrieve_arg): Make debug messages friendly.
24821 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
24822 Check for signatures of arguments.
24823
24824 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
24825
24826 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
24827 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
24828 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
24829 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
24830 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
24831 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
24832 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
24833 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
24834 (xd_retrieve_value): Remove. Functionality included in ...
24835 (xd_append_arg): New function.
24836 (Fdbus_call_method, Fdbus_send_signal): Apply it.
24837
24838 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
24839
24840 * dbusbind.c (top): Include <stdio.h>.
24841 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
24842 dbus_message_new_method_call and dbus_message_new_signal.
24843 (Fdbus_register_signal): Rename unique_name to uname.
24844 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
24845 non-existing unique name. Fix typos in matching rule. Return an
24846 object which is useful in Fdbus_unregister_signal.
24847 (Fdbus_unregister_signal): Reimplementation, in order to remove
24848 only the corresponding entry.
24849 (Vdbus_registered_functions_table): Change the order of entries.
24850 Apply these changes in xd_read_message and Fdbus_register_signal.
24851
24852 2007-12-16 Andreas Schwab <schwab@suse.de>
24853
24854 * fileio.c (Finsert_file_contents): Fix overflow check to not
24855 depend on undefined integer overflow.
24856
24857 2007-12-14 Jason Rumney <jasonr@gnu.org>
24858
24859 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
24860 for characters above 127.
24861
24862 2007-12-13 Jason Rumney <jasonr@gnu.org>
24863
24864 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
24865 before dereferencing array.
24866 (lookup_vk_code): Remove zero comparison.
24867
24868 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
24869
24870 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
24871 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
24872 Use `unsigned int' instead of `uint'.
24873 (xd_read_message, Fdbus_register_signal): Split expressions into
24874 multiple lines before operators "&&" and "||", according to the
24875 GNU Coding Standards.
24876
24877 2007-12-14 Eli Zaretskii <eliz@gnu.org>
24878
24879 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
24880
24881 2007-12-12 Juri Linkov <juri@jurta.org>
24882
24883 * buffer.c (Frename_buffer): In interactive spec replace
24884 `read-buffer' with `read-string' that uses `buffer-name-history'
24885 as history, and the current buffer's name as default.
24886
24887 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
24888
24889 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
24890 manipulating the backtrace manually.
24891 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
24892 (struct backtrace, backtrace_list): Remove.
24893 (command_loop_1): Remove dead var `no_direct'.
24894
24895 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
24896 preserve non-built-in buffer-local variables.
24897 (Fkill_all_local_variables): Don't re-create&re-set permanent
24898 buffer-local variables.
24899
24900 2007-12-09 Juri Linkov <juri@jurta.org>
24901
24902 * buffer.c (Frename_buffer): Change interactive spec from "s" to
24903 Lisp code that uses `read-buffer' with current buffer as default.
24904
24905 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
24906
24907 * dbusbind.c (xd_read_message): Generate an event for every
24908 registered handler. There might be several handlers registered
24909 for the same signal.
24910 (Fdbus_register_signal): Don't overwrite a registration for the
24911 same signal. Add a new registration if handlers are different.
24912 (Vdbus_registered_functions_table): Rework doc string.
24913
24914 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
24915
24916 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
24917 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
24918 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
24919 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
24920 Unify argument lists.
24921 (xd_read_message, Fdbus_register_signal): Reorder and extend event
24922 arguments and hash table keys. Use unique name for service.
24923 (Fdbus_unregister_signal): Remove checks.
24924 (Vdbus_registered_functions_table): Fix doc string.
24925
24926 2007-12-05 Magnus Henoch <mange@freemail.hu>
24927
24928 * process.c (make_process): Initialize pty_flag to 0.
24929
24930 2007-12-05 Jason Rumney <jasonr@gnu.org>
24931
24932 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
24933 specified XBMs.
24934
24935 2007-12-05 Richard Stallman <rms@gnu.org>
24936
24937 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
24938
24939 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24940
24941 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
24942 New variable.
24943 (mac_try_close_socket) [MAC_OSX]: New function.
24944 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
24945 Update cfsockets_for_select. Replace invalid CFRunLoop source.
24946
24947 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
24948 Use mac_try_close_socket.
24949
24950 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24951
24952 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
24953 reloc_base.
24954 (copy_dysymtab): Compute relocation base here.
24955 (rebase_reloc_address) [__ppc64__]: New function.
24956 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
24957 changed.
24958
24959 2007-12-05 Jason Rumney <jasonr@gnu.org>
24960
24961 * w32proc.c (sys_spawnve): Quote args with wildcards.
24962
24963 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24964
24965 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
24966 __objc_* sections.
24967 (unrelocate) [_LP64]: Set relocation base to address of data segment.
24968
24969 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
24970
24971 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
24972 Move check for Vdbus_registered_functions_table to
24973 xd_read_queued_messages.
24974 (xd_read_queued_messages): Protect xd_read_message calls by
24975 internal_condition_case_1.
24976
24977 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
24978
24979 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
24980 Qdbus_system_bus and Qdbus_session_bus, respectively.
24981 (Vdbus_intern_symbols): Remove.
24982 (Vdbus_registered_functions_table): New hash table.
24983 (XD_SYMBOL_INTERN_SYMBOL): Remove.
24984 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
24985 Rewrite in order to manage registered functions by hash table
24986 Vdbus_registered_functions_table.
24987
24988 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
24989
24990 * xterm.c: Update URL to Window Manager Specification in comment.
24991
24992 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
24993
24994 * config.in (HAVE_DBUS): Add.
24995
24996 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
24997 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
24998 (obj): Add $(DBUS_OBJ).
24999 (LIBES): Add $(DBUS_LIBS).
25000 (dbusbind.o): New target.
25001
25002 * dbusbind.c: New file.
25003
25004 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
25005
25006 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
25007 (Qdbus_event): New Lisp symbol.
25008 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
25009 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
25010 (keys_of_keyboard): Define dbus-event.
25011
25012 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
25013
25014 2007-12-01 Richard Stallman <rms@gnu.org>
25015
25016 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
25017
25018 2007-11-30 Jason Rumney <jasonr@gnu.org>
25019
25020 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
25021 (w32con_reset_terminal_modes): Clear screen buffer.
25022 (w32_face_attributes): Don't use color indexes that are out of range.
25023 Only reverse the default colors.
25024
25025 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
25026 WINDOWSNT.
25027
25028 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
25029
25030 2007-11-29 Jason Rumney <jasonr@gnu.org>
25031
25032 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
25033 (w32_face_attributes): Use Vtty_defined_color_alist to determine
25034 if the terminal colors are initialized.
25035 (unspecified_fg, unspecified_bg): Remove unused declarations.
25036
25037 2007-11-29 Andreas Schwab <schwab@suse.de>
25038
25039 * keyboard.c (apply_modifiers): Fix typo.
25040
25041 2007-11-29 Richard Stallman <rms@gnu.org>
25042
25043 * keymap.c (Fcurrent_local_map): Doc fix.
25044
25045 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
25046
25047 * s/gnu-kfreebsd.h: New file.
25048
25049 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
25050
25051 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
25052 Don't cast redundantly.
25053
25054 * keyboard.c (KEY_TO_CHAR): New macro.
25055 (parse_modifiers, apply_modifiers): Accept integer arguments.
25056 (read_key_sequence): Use them to unify the "shift->unshift" mapping
25057 for chars and symbol keys.
25058 After doing such remapping, apply function-key-map again.
25059
25060 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
25061
25062 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
25063 compiled anymore.
25064
25065 2007-11-26 Andreas Schwab <schwab@suse.de>
25066
25067 * process.c (list_processes_1): Fix indentation level of the
25068 command column.
25069
25070 2007-11-23 Andreas Schwab <schwab@suse.de>
25071
25072 * editfns.c (Fformat): Handle %c specially since it requires the
25073 argument to be of type int.
25074
25075 2007-11-23 Markus Triska <markus.triska@gmx.at>
25076
25077 * emacs.c (main): Call init_editfns before init_process, since
25078 init_process sets Vprocess_connection_type depending on OS release.
25079
25080 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
25081
25082 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
25083 (find_symbol_value): Use do_symval_forwarding.
25084
25085 * data.c (set_internal): Set the value in the `cons-cell' (for
25086 Buffer_Local_values) not only for frame-local variables.
25087
25088 2007-11-22 Andreas Schwab <schwab@suse.de>
25089
25090 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
25091 values to sprintf.
25092 * keymap.c (Fsingle_key_description): Likewise.
25093 * print.c (print_object): Likewise.
25094
25095 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
25096
25097 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
25098 file for image is nil.
25099
25100 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
25101
25102 * term.c: Include stdarg.h.
25103 (fatal): Implement using varargs.
25104 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
25105
25106 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
25107
25108 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
25109 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
25110 Update call to buffer_slot_type_mismatch.
25111 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
25112 (buffer_slot_type_mismatch): Update.
25113 * buffer.c (buffer_local_types): Remove.
25114 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
25115 (defvar_per_buffer): Set the type in the buffer_objfwd.
25116
25117 2007-11-21 Jason Rumney <jasonr@gnu.org>
25118
25119 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
25120 CreateFileMapping returns NULL on failure.
25121
25122 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
25123
25124 * search.c (Fset_match_data): Remove the `evaporate' feature.
25125 (unwind_set_match_data): Don't use the `evaporate' feature.
25126
25127 2007-11-21 Jason Rumney <jasonr@gnu.org>
25128
25129 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
25130
25131 * w32console.c (w32con_write_glyphs): Remove unused variables.
25132
25133 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
25134
25135 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
25136
25137 * s/darwin.h (MULTI_KBOARD): Remove.
25138
25139 * macfns.c (x_create_tip_frame, Fx_create_frame)
25140 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
25141
25142 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
25143
25144 * buffer.c (Fbuffer_local_value): Remove redundant test.
25145 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
25146 than in `current-buffer' to match the comment.
25147 Do the swap using swap_in_global_binding.
25148
25149 * data.c (store_symval_forwarding, set_internal):
25150 * eval.c (specbind): Remove dead code.
25151
25152 * coding.c (detect_coding, Fupdate_coding_systems_internal):
25153 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
25154 Since we do not want to see internal Lisp_*fwd objects here.
25155
25156 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
25157
25158 * sysdep.c (init_system_name): Use getaddrinfo if available.
25159
25160 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
25161 (x_scroll_bar_note_movement): start, end, with, height in struct
25162 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
25163
25164 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
25165
25166 * puresize.h (BASE_PURESIZE): Increase to 1190000.
25167
25168 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
25169
25170 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
25171 This undoes Richard's change of 14-Oct-2002.
25172
25173 * alloc.c (allocate_other_vector):
25174 * lisp.h (allocate_other_vector): Remove.
25175
25176 * window.c (struct save_window_data): Move non-lisp data to the end
25177 and make it `int' rather than Lisp_Object.
25178 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
25179 Done wrap/unwrap integer values.
25180 (Fset_window_configuration, compare_window_configurations):
25181 Update use of fields to their new types.
25182
25183 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
25184 Turn integer fields into `int'. Merge x_window_low and x_window_high.
25185 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
25186 (SET_SCROLL_BAR_X_WINDOW): Remove.
25187 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
25188 Access the new x_window field directly.
25189 * xterm.c (x_scroll_bar_create): Use a pseudovector.
25190 Don't wrap/unwrap integers into Lisp_Objects.
25191 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
25192 (x_scroll_bar_report_motion):
25193 Don't wrap/unwrap integers into Lisp_Objects.
25194 (x_term_init): Use SDATA.
25195 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
25196 (x_scroll_bar_set_handle, x_scroll_bar_remove)
25197 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
25198 (x_scroll_bar_report_motion, x_scroll_bar_clear):
25199 * xfns.c (x_set_background_color):
25200 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
25201 Access the new x_window field directly.
25202
25203 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
25204 (allocate_pseudovector): Make non-static.
25205
25206 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
25207 (allocate_pseudovector): Declare.
25208 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
25209
25210 2007-11-15 Andreas Schwab <schwab@suse.de>
25211
25212 * editfns.c (Fformat): Correctly format EMACS_INT values.
25213 Also take precision into account when formatting an integer.
25214
25215 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
25216
25217 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
25218
25219 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
25220 (syms_of_keyboard): Defsubr it.
25221
25222 * data.c (swap_in_global_binding): Fix longstanding bug where
25223 store_symval_forwarding was not called with the right second argument,
25224 thus causing objfwd-ing from being dropped.
25225
25226 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
25227
25228 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
25229 (Fx_display_pixel_height, Fx_display_planes)
25230 (Fx_display_color_cells, Fx_server_max_request_size)
25231 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
25232 (Fx_display_visual_class, Fx_display_save_under):
25233 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
25234 (Fx_display_pixel_height, Fx_display_planes)
25235 (Fx_display_color_cells, Fx_server_max_request_size)
25236 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
25237 (Fx_display_mm_height, Fx_display_mm_width)
25238 (Fx_display_backing_store, Fx_display_visual_class)
25239 (Fw32_select_font, Fx_display_save_under):
25240 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
25241 (Fx_display_pixel_height, Fx_display_planes)
25242 (Fx_display_color_cells, Fx_server_max_request_size)
25243 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
25244 (Fx_display_save_under): Fix typos in docstrings.
25245
25246 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
25247
25248 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
25249 corresponding to deleted entries; they are an implementation detail.
25250 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
25251 Remove variables.
25252 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
25253 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
25254 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
25255 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
25256 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
25257 (Fw32_define_rgb_color, Fw32_load_color_file)
25258 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
25259 Fix typos in docstrings.
25260 (Fx_server_version): Reflow docstring.
25261 (Fw32_shell_execute): Doc fixes.
25262
25263 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
25264
25265 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
25266 if w32_parse_hot_key returned nil.
25267
25268 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
25269
25270 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
25271
25272 2007-11-09 Jason Rumney <jasonr@gnu.org>
25273
25274 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
25275
25276 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
25277
25278 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
25279 Remove W32_SCROLL_BAR_CLICK_EVENT.
25280
25281 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
25282 Add MULTIMEDIA_KEY_EVENT.
25283
25284 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
25285 (lispy_multimedia_keys) [WINDOWSNT]: New array.
25286 (make_lispy_event) [WINDOWSNT]: Use it to translate
25287 MULTIMEDIA_KEY_EVENT.
25288
25289 * w32term.h (WM_APPCOMMAND): Define if not already.
25290 (GET_APPCOMMAND_LPARAM): Likewise.
25291
25292 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
25293 WM_APPCOMMAND.
25294
25295 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
25296 (syms_of_w32fns): Export and initialize it.
25297 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
25298
25299 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
25300
25301 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
25302 twice.
25303
25304 * xdisp.c (handle_face_prop): Fix last change.
25305
25306 2007-11-09 Richard Stallman <rms@gnu.org>
25307
25308 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
25309 not just for after-strings and before-strings.
25310 Call face_for_overlay_string and pass the overlay to it.
25311 (handle_display_prop): Determine whether property came from an overlay.
25312 Pass OVERLAY arg to handle_single_display_spec.
25313 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
25314 (load_overlay_strings): Fill in it->string_overlays.
25315 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
25316
25317 * xfaces.c (face_for_overlay_string): Function renamed from
25318 face_at_buffer_position_no_overlays, and add arg OVERLAY.
25319
25320 * dispextern.h (struct it): New elt string_overlays.
25321 New elt from_overlay, also in stack.
25322 Rearrange a few elements.
25323 (face_for_overlay_string): Decl renamed from
25324 face_at_buffer_position_no_overlays, and add argument.
25325
25326 2007-11-09 Richard Stallman <rms@gnu.org>
25327
25328 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
25329 to get the base face for an overlay string.
25330
25331 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
25332
25333 * xfaces.c (face_at_buffer_position_no_overlays): New function.
25334
25335 * xdisp.c (handle_stop): Move some code out of loop.
25336
25337 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25338
25339 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
25340 Fix conversion from Lisp object to ATSUFontID.
25341
25342 2007-11-09 Jason Rumney <jasonr@gnu.org>
25343
25344 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
25345
25346 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25347
25348 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
25349 Don't assume regions are aligned to page boundary.
25350 (print_load_command_name): Add LC_UUID if defined.
25351
25352 2007-11-09 Richard Stallman <rms@gnu.org>
25353
25354 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
25355
25356 2007-11-07 Jason Rumney <jasonr@gnu.org>
25357
25358 * s/windows95.h: Remove.
25359
25360 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
25361
25362 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
25363 abort with a message on unhandled store_type values.
25364
25365 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
25366
25367 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
25368 Remove HAVE_X11R5 and HAVE_X11R4.
25369
25370 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
25371
25372 * Makefile.in: Remove references to sunfns.c and sunfns.o.
25373
25374 2007-11-01 Johan Bockgård <bojohan@gnu.org>
25375
25376 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
25377 Don't set s->stippled_p here, since it has already been set by
25378 x_set_glyph_string_gc from x_draw_glyph_string.
25379
25380 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
25381
25382 * sunfns.c: Remove file.
25383
25384 * m/sun386.h:
25385 * m/sun2.h:
25386 * m/sparc.h: Remove Sun windows code.
25387
25388 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
25389
25390 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
25391 (init_keyboard): Set current_kboard's window-system to nil.
25392 (tty_read_avail_input): Typo.
25393 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
25394
25395 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
25396
25397 * s/usg5-4.h:
25398 * s/usg5-3.h:
25399 * s/ptx.h:
25400 * m/is386.h:
25401 * m/ibmps2-aix.h:
25402 * Makefile.in: Remove all mentions of X10.
25403
25404 * dispnew.c (syms_of_display): Don't mention version 10.
25405
25406 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
25407
25408 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
25409 ($(BLD)/abbrev.$(O)): Remove.
25410
25411 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
25412
25413 Rewrite abbrev.c in Elisp.
25414 * image.c (Qcount): Don't declare as extern.
25415 (syms_of_image): Initialize and staticpro `Qcount'.
25416 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
25417 * emacs.c (main): Don't call syms_of_abbrev.
25418 * Makefile.in (obj): Remove abbrev.o.
25419 (abbrev.o): Remove.
25420 * abbrev.c: Remove.
25421
25422 2007-10-26 Martin Rudalics <rudalics@gmx.at>
25423
25424 * window.c (window_min_size_2): Don't count header-line.
25425
25426 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
25427
25428 * frame.h (struct frame): Move all bit fields after the first bit
25429 field to take advantage of the available space. Group all the
25430 chars together to reduce wasted space due to padding.
25431
25432 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
25433
25434 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
25435
25436 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
25437 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
25438 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
25439 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
25440 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
25441 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
25442 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
25443 (last_marked, mark_object_loop_halt): Make static.
25444
25445 * frame.c (syms_of_frame) <delete-frame-functions>:
25446 Fix typo in docstring.
25447
25448 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
25449
25450 * w32.c (init_environment): Fix tiny memory leak.
25451 (w32_get_resource): Remove unused variable `ok'.
25452
25453 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
25454
25455 Make `window-system' into a keyboard-local variable (rather than
25456 frame-local as done originally by multi-tty).
25457
25458 * keyboard.h (struct kboard): Add Vwindow_system.
25459 * keyboard.c (init_kboard): Set a default for Vwindow_system.
25460 (mark_kboards): Mark Vwindow_system.
25461
25462 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
25463 (init_display): Don't set the obsolete `window-system' frame-param.
25464
25465 * xterm.c (x_term_init):
25466 * w32term.c (w32_create_terminal):
25467 * term.c (init_tty): Set Vwindow_system.
25468 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
25469 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
25470
25471 * xfns.c (Fx_create_frame, x_create_tip_frame):
25472 * w32fns.c (Fx_create_frame, x_create_tip_frame):
25473 * macfns.c (Fx_create_frame):
25474 Don't set the obsolete `window-system' frame-param.
25475
25476 * frame.h (Qwindow_system): Remove.
25477 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
25478 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
25479
25480 2007-10-24 Richard Stallman <rms@gnu.org>
25481
25482 * frame.c (x_figure_window_size): For fullscreen case,
25483 set USPosition | PPosition without clobbering rest of window_prompting.
25484
25485 * keyboard.c (Fcurrent_idle_time): Doc fix.
25486
25487 * print.c (Fwith_output_to_temp_buffer): Doc fix.
25488
25489 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
25490
25491 * process.c (unwind_request_sigio): Only define if __ultrix__.
25492
25493 * callproc.c (child_setup): Remove spurious *.
25494
25495 * lisp.h (Fget_text_property): Declare.
25496 (have_menus_p): Declare it here rather than in sys-dep header files.
25497 * macterm.h (have_menus_p):
25498 * msdos.h (have_menus_p):
25499 * xterm.h (have_menus_p): Remove.
25500
25501 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
25502 (Fmake_variable_frame_local): Just check the variable's const-ness
25503 rather than checking nil or t.
25504
25505 2007-10-22 Jason Rumney <jasonr@gnu.org>
25506
25507 * w32fns.c: Include math.h.
25508 (w32_abort): Declaration moved to nt/config.nt.
25509
25510 * s/ms-w32.h (HAVE_STDLIB_H): Define.
25511 (abort): Redefinition moved to nt/config.nt.
25512
25513 * m/windowsnt.h: Remove.
25514
25515 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
25516
25517 * emacs.c (Fdump_emacs): Fix typo in message.
25518 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
25519 <installation-directory>: Reflow docstring.
25520
25521 2007-10-22 Juri Linkov <juri@jurta.org>
25522
25523 * minibuf.c: Allow minibuffer default to be a list of default values.
25524 With empty input use the first element of this list as returned default.
25525 (string_to_object)
25526 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
25527 (read_minibuf): If defalt is cons, set histstring to its car.
25528 (Fread_string): If default_value is cons, set val to its car.
25529 (Fread_buffer): If def is cons, use its car.
25530 (Fcompleting_read): If defalt is cons, set val to its car.
25531
25532 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
25533
25534 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
25535
25536 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
25537
25538 * doc.c (Fdocumentation): Check for advice in all cases.
25539
25540 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
25541
25542 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
25543
25544 2007-10-19 Richard Stallman <rms@gnu.org>
25545
25546 * doc.c (Fdocumentation): Check for and handle an advised function.
25547
25548 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
25549
25550 * process.c (Fset_process_filter): Doc fix.
25551
25552 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
25553
25554 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
25555 which caused key-translation-map to applied repeatedly (thus breaking
25556 double-mode).
25557
25558 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
25559
25560 * xselect.c (x_own_selection, x_handle_selection_clear)
25561 (x_clear_frame_selections):
25562 * w32menu.c (list_of_panes, list_of_items):
25563 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
25564 * textprop.c (validate_plist, interval_has_all_properties)
25565 (interval_has_some_properties, interval_has_some_properties_list)
25566 (add_properties, text_property_list):
25567 * process.c (Fget_buffer_process, list_processes_1, status_notify):
25568 * minibuf.c (Fassoc_string):
25569 * macselect.c (x_own_selection, x_clear_frame_selections)
25570 (Fx_disown_selection_internal):
25571 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
25572 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
25573
25574 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
25575
25576 * process.c: Link to libs for calling res_init() if available.
25577 (Fmake_network_process): Call res_init() before getaddrinfo or
25578 gethostbyname, if possible.
25579
25580 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
25581
25582 * lread.c (read1): Set pvectype for char_tables.
25583
25584 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
25585 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
25586 Add type checks.
25587 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
25588
25589 * alloc.c (free_misc): Use XMISCTYPE.
25590 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
25591
25592 2007-10-17 Glenn Morris <rgm@gnu.org>
25593
25594 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
25595 (syms_of_minibuf): Add Qcompletion_ignore_case.
25596 * dired.c (Qcompletion_ignore_case): Change to external.
25597 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
25598 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
25599 (Fread_file_name): Use it rather than intern'ing.
25600
25601 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
25602 (Fread_coding_system): Ignore case of user input.
25603
25604 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25605
25606 * xdisp.c (handle_display_prop): Ignore display specs after
25607 replacing one when string text is being replaced.
25608 (handle_single_display_spec): Pretend as if characters with display
25609 property haven't been consumed only when buffer text is being replaced.
25610
25611 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
25612
25613 * xfns.c (Fx_create_frame, Fx_display_list):
25614 * window.c (window_fixed_size_p, enlarge_window)
25615 (shrink_window_lowest_first):
25616 * macterm.c (init_font_name_table):
25617 * macfns.c (Fx_create_frame, Fx_display_list):
25618 * lread.c (close_load_descs):
25619 * keyboard.c (read_char_x_menu_prompt):
25620 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
25621 * coding.c (code_convert_region_unwind): Test the type of an object
25622 rather than just !NILP before extracting data from it.
25623
25624 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
25625
25626 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
25627 (XMISCANY): New macro.
25628 (XMISCTYPE): Use it.
25629 (struct Lisp_Misc_Any): New type.
25630 (union Lisp_Misc): Use it.
25631 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
25632 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
25633 (find_symbol_value, set_internal, default_value, Fset_default)
25634 (Fmake_variable_buffer_local, Fmake_local_variable)
25635 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
25636 (Flocal_variable_if_set_p, Fvariable_binding_locus):
25637 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
25638 * alloc.c (allocate_buffer): Set the size and tag.
25639 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
25640 Use XMISCANY.
25641 (die): Follow the GNU convention for error messages.
25642 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
25643 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
25644 tag any more.
25645 (set_buffer_internal_1):
25646 * frame.c (store_frame_param):
25647 * eval.c (specbind):
25648 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
25649
25650 * doc.c (Fsnarf_documentation): Simplify.
25651
25652 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
25653
25654 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
25655 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
25656
25657 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
25658
25659 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
25660
25661 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
25662
25663 * eval.c (do_autoload): Don't save autoloads.
25664
25665 * data.c (Ffset): Save autoload of the function being set.
25666
25667 2007-10-07 John Paul Wallington <jpw@pobox.com>
25668
25669 * xfns.c (x_create_tip_frame): Set the `display-type' frame
25670 parameter before setting up faces.
25671
25672 2007-10-13 Eli Zaretskii <eliz@gnu.org>
25673
25674 * ccl.c (Fregister_code_conversion_map):
25675 * keyboard.c (append_tool_bar_item): Reformat last change.
25676
25677 * lisp.h (eabs): Rename from `abs'. All callers changed.
25678
25679 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
25680
25681 * buffer.c (add_overlay_mod_hooklist):
25682 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
25683 * fontset.c (make_fontset):
25684 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
25685 (append_tool_bar_item):
25686 * macmenu.c (grow_menu_items):
25687 * w32menu.c (grow_menu_items):
25688 * xmenu.c (grow_menu_items): Use larger_vector.
25689
25690 2007-10-13 Eli Zaretskii <eliz@gnu.org>
25691
25692 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
25693 selected frame'' on MSDOS).
25694
25695 2007-10-12 Martin Rudalics <rudalics@gmx.at>
25696
25697 * frame.c (Qexplicit_name): New variable.
25698 (x_report_frame_params): Report it in parameter alist.
25699 (syms_of_frame): Intern and staticpro it.
25700
25701 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
25702
25703 * macfns.c (x_create_tip_frame): Set terminal for frame.
25704
25705 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
25706
25707 * frame.c (Qenvironment): Remove.
25708 (syms_of_frame) <Qenvironment>: Don't initialize.
25709 (Fdelete_frame): Don't treat the `environment' param specially.
25710 * frame.h (Qenvironment): Don't declare.
25711 * callproc.c (set_initial_environment): Don't set unused frame param.
25712
25713 * frame.c (Fframe_with_environment): Remove.
25714 (syms_of_frame) <Sframe_with_environment>: Don't declare.
25715
25716 * lisp.h (Fframe_with_environment): Don't declare.
25717
25718 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
25719
25720 * indent.c (indent_tabs_mode, last_known_column)
25721 (last_known_column_modified): Make static.
25722 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
25723
25724 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
25725
25726 * puresize.h (BASE_PURESIZE): Increase to 1170000.
25727
25728 2007-10-09 Jason Rumney <jasonr@gnu.org>
25729
25730 * w32term.c (x_set_window_size): Disable code that attempts to tell
25731 Lisp code about a size change before it actually happens.
25732
25733 2007-10-09 Richard Stallman <rms@gnu.org>
25734
25735 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
25736 return HANDLED_RETURN.
25737
25738 2007-10-08 Martin Rudalics <rudalics@gmx.at>
25739
25740 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
25741 when there's an unread command event.
25742
25743 * frame.c (focus_follows_mouse): Move here from frame.el to allow
25744 window autoselection act appropriately when leaving selected frame.
25745 (syms_of_frame): Initialize focus_follows_mouse.
25746 * frame.h (focus_follows_mouse): Extern it.
25747 * macterm.c (XTread_socket): When focus_follows_mouse is nil
25748 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
25749 * msdos.c (dos_rawgetc): Likewise.
25750 * w32term.c (w32_read_socket): Likewise.
25751 * xterm.c (handle_one_xevent): Likewise.
25752 * xdisp.c (syms_of_xdisp): In doc-string of
25753 mouse-autoselect-window mention focus-follows-mouse.
25754
25755 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25756
25757 * macterm.c (mac_load_query_font): Fix missing return value.
25758 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
25759 Add BLOCK_INPUT.
25760
25761 2007-10-08 Richard Stallman <rms@gnu.org>
25762
25763 * xdisp.c (get_window_cursor_type): Implement documented behavior
25764 for cursor-in-non-selected-windows = t.
25765
25766 2007-10-08 Jason Rumney <jasonr@gnu.org>
25767
25768 * w32.c (w32_get_resource): Always close registry keys.
25769
25770 2007-10-08 Jason Rumney <jasonr@gnu.org>
25771
25772 * makefile.w32-in (LIBS): Add COMCTL32.
25773
25774 * w32fns.c (globals_of_w32fns): Init common controls.
25775
25776 2007-10-08 Richard Stallman <rms@gnu.org>
25777
25778 * image.c (our_memory_buffer): Rename from omfib_buffer.
25779
25780 2007-10-08 Richard Stallman <rms@gnu.org>
25781
25782 * buffer.c (Foverlays_at): Doc fix.
25783
25784 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
25785
25786 * fns.c (Fplist_put): Preserve uneven tail data.
25787
25788 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
25789
25790 * termhooks.h (enum event_kind): Remove trailing comma.
25791
25792 * frame.h (enum): Remove trailing comma.
25793
25794 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
25795
25796 * w32proc.c (delete_child): Don't terminate threads of zombies.
25797
25798 2007-10-08 Martin Rudalics <rudalics@gmx.at>
25799
25800 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
25801
25802 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
25803 last-repeatable-command.
25804 (init_kboard): Initialize Vlast_repeatable_command.
25805 (command_loop_1): Set it to real_this_command unless that was
25806 bound to an input event.
25807 (mark_kboards): Mark it.
25808
25809 2007-10-08 Richard Stallman <rms@gnu.org>
25810
25811 * eval.c (condition-case): Doc fix.
25812
25813 2007-10-08 Masatake YAMATO <jet@gyve.org>
25814
25815 * xfaces.c (tty_supports_face_attributes_p): Fix code
25816 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
25817 was copied and not edited.
25818
25819 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
25820
25821 Add new `input-decode-map' keymap and use it for terminal
25822 escape sequences.
25823 * keyboard.h (struct kboard): Add Vinput_decode_map.
25824 Remove Vlocal_key_translation_map.
25825 * keyboard.c (read_key_sequence): Add support for input-decode-map.
25826 (init_kboard): Init input-decode-map.
25827 Replace local-key-translation-map back with key-translation-map.
25828 (syms_of_keyboard): Declare input-decode-map.
25829 Remove local-key-translation-map. Update docstrings.
25830 (mark_kboards): Mark Vinput_decode_map.
25831 Don't mark Vlocal_key_translation_map.
25832 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
25833 Replace local-key-translation-map back with key-translation-map.
25834 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
25835 Bind in input-decode-map rather than function-key-map.
25836
25837 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
25838 This was made redundant by the previous introduction of XSETPVECTYPE.
25839
25840 2007-10-09 Richard Stallman <rms@gnu.org>
25841
25842 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
25843
25844 2007-09-29 Richard Stallman <rms@gnu.org>
25845
25846 * eval.c (internal_condition_case_2, internal_condition_case_1)
25847 (internal_condition_case): Reenable abort if x_catching_errors ()
25848 to see if that really happens and why.
25849
25850 2007-10-06 Andreas Schwab <schwab@suse.de>
25851
25852 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
25853
25854 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
25855
25856 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
25857
25858 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
25859
25860 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
25861
25862 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
25863
25864 * window.h (struct window):
25865 * window.c (struct save_window_data, struct saved_window):
25866 * termhooks.h (struct terminal):
25867 * process.h (struct Lisp_Process):
25868 * frame.h (struct frame):
25869 * buffer.h (struct buffer):
25870 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
25871 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
25872 The size field of (pseudo)vectors is now unsigned.
25873 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
25874
25875 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
25876 Turn `count' into an integer.
25877
25878 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
25879 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
25880 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
25881 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
25882 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
25883
25884 * alloc.c (allocate_pseudovector): New fun.
25885 (ALLOCATE_PSEUDOVECTOR): New macro.
25886 (allocate_window, allocate_terminal, allocate_frame)
25887 (allocate_process): Use it.
25888 (mark_vectorlike): New function.
25889 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
25890 (mark_terminals): Use it.
25891 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
25892 (Fmake_byte_code): Use XSETPVECTYPE.
25893
25894 * frame.c (Fframe_parameters): Minor simplification.
25895
25896 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
25897
25898 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
25899
25900 * buffer.c (Fget_buffer_create, init_buffer_once):
25901 * lread.c (defsubr):
25902 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
25903
25904 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
25905 defined differently in the m/*.h files.
25906 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
25907 (XSETPVECTYPE): New macro.
25908 (XSETPSEUDOVECTOR): Use it.
25909
25910 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
25911 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
25912
25913 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
25914 * lread.c (defvar_per_buffer):
25915 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
25916
25917 * window.c (candidate_window_p): Only consider as visible frames that
25918 are on the same terminal.
25919
25920 * m/ibms390x.h (MARKBIT): Remove unused macro.
25921
25922 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
25923
25924 * lread.c (Fload): Fix typo in docstring.
25925
25926 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
25927
25928 * floatfns.c (Fexpt): Manually check for overflows, so that a power
25929 of a non-zero value can't yield zero.
25930
25931 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
25932
25933 * term.c (term_clear_mouse_face, term_mouse_highlight)
25934 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
25935
25936 * print.c (safe_debug_print): Use XHASH.
25937
25938 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
25939 Lisp elements such as tags.
25940 (XHASH): New macro.
25941 (EQ): Use it.
25942 (SREF, SSET, STRING_COPYIN): Use SDATA.
25943 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
25944
25945 * alloc.c (mark_terminal): Remove left-over declaration.
25946 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
25947 (allocate_vectorlike): Remove type argument. Adjust callers.
25948 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
25949 Only handle the one remaining MEM_TYPE_VECTORLIKE.
25950
25951 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
25952 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
25953 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
25954 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
25955 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
25956 Use them.
25957
25958 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
25959 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
25960 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
25961
25962 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
25963
25964 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
25965 loaded by default.
25966
25967 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
25968
25969 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
25970 on this tty.
25971 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
25972
25973 * term.c (mouse_face_window): Rename from Qmouse_face_window.
25974 Update all users.
25975 (handle_one_term_event): Use Gpm_DrawPointer.
25976 (Fgpm_mouse_start): Rename from Fterm_open_connection.
25977 Signal errors instead of returning nil. Always return nil.
25978 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
25979 Make it a noop if gpm-mouse was not activated.
25980 (syms_of_term): Update names.
25981
25982 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
25983
25984 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
25985 (init_sys_modes): Check that gpm_tty is the current tty.
25986
25987 * alloc.c (allocate_terminal): Set the vector size to only count the
25988 lisp fields. Initialize those to nil.
25989 (mark_object): Don't treat terminals specially.
25990 (mark_terminal): Remove.
25991 (mark_terminals): Use mark_object instead.
25992
25993 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
25994 the GC to the beginning.
25995
25996 * indent.h:
25997 * indent.c: Use EMACS_INT for ints coming from Elisp data.
25998
25999 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
26000
26001 2007-09-25 Jason Rumney <jasonr@gnu.org>
26002
26003 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
26004
26005 * w32console.c (create_w32cons_output): Remove.
26006
26007 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
26008
26009 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
26010 (reset_sys_modes): Use reset_terminal_modes_hook.
26011
26012 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
26013
26014 * eval.c (do_autoload): Don't output any message.
26015
26016 2007-09-24 Juri Linkov <juri@jurta.org>
26017
26018 * emacs.c (standard_args): Change priority of "--no-splash"
26019 from 40 to 3. Add "--no-desktop" with the same priority.
26020
26021 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
26022
26023 * alloc.c (gc_sweep): Check cons cell mark bits word by word
26024 and optimize the case where they are all 1.
26025
26026 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
26027
26028 * lisp.h (abs): Define if not defined.
26029 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
26030 Don't define `abs', since it's defined in lisp.h.
26031
26032 2007-09-22 Eli Zaretskii <eliz@gnu.org>
26033
26034 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
26035 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
26036 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
26037 (init_tty): Use DEV_TTY instead of "/dev/tty".
26038 [WINDOWSNT]: No need to protect from NAME arg being null.
26039
26040 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
26041
26042 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
26043 up the tty state.
26044
26045 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
26046
26047 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
26048 (gpm_tty): Change its type.
26049 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
26050 (gpm_tty): Change its type and initialize it.
26051 (Fterm_open_connection): Check the frame is indeed a tty.
26052 Use the new gpm_tty.
26053 (Fterm_close_connection): Use the new gpm_tty.
26054 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
26055 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
26056
26057 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
26058
26059 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
26060 underline_color, to draw strike-through.
26061
26062 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
26063
26064 * lisp.h (allocate_terminal): Declare.
26065
26066 * window.c (candidate_window_p): Consider frames that are being placed
26067 by the user as somewhere between visible and iconified.
26068 (window_loop): Prefer windows on the current frame.
26069 (Fselect_window): Move the use of select-frame to the beginning so we
26070 can just delegate all the work (it'll call us back anyway).
26071
26072 * frame.c (Qdisplay_environment_variable):
26073 * frame.h (Qdisplay_environment_variable): Delete.
26074
26075 * .gdbinit (xbacktrace): Print the arg's address rather than the value
26076 of the first arg, since that value may be a union.
26077
26078 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
26079 parameter rather than Qdisplay_environment_variable. If all else
26080 fails, look for DISPLAY in initial-environment.
26081
26082 2007-09-21 Glenn Morris <rgm@gnu.org>
26083
26084 * Makefile.in (emacstool): Remove target.
26085 (lisp, shortlisp): Remove termdev.elc.
26086
26087 2007-09-21 Markus Triska <markus.triska@gmx.at>
26088
26089 * xterm.c (x_delete_display): Compile session management conditionally.
26090
26091 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
26092
26093 * callproc.c (getenv_internal_1): New function.
26094 (getenv_internal): Use it.
26095 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
26096
26097 * terminal.c (get_terminal): Don't accept ints to represent terminals.
26098 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
26099 (Fset_terminal_parameter): Work with dead terminals as well.
26100 (Fmodify_terminal_parameters): Remove.
26101
26102 * terminal.c (get_terminal): Handle terminals.
26103 Make sure the terminal returned is live.
26104 (create_terminal): Use allocate_terminal.
26105 (mark_terminals): Move to alloc.c.
26106 (delete_terminal): Use terminal->name as liveness status.
26107 NULL out fields after freeing their contents.
26108 Don't deallocate the object.
26109 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
26110 rather than an int.
26111 (Fterminal_live_p): Accept non-integer arguments.
26112 (Fterminal_list): Return terminal objects rather than an ints.
26113
26114 * alloc.c (enum mem_type): New member for `terminal' objects.
26115 (allocate_terminal): New function.
26116 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
26117 Handle terminals.
26118 (mark_terminal): New fun.
26119 (mark_terminals): Move from terminal.c.
26120
26121 * term.c (get_tty_terminal): Don't treat output_initial specially.
26122 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
26123 (delete_tty): Use terminal->name as liveness status.
26124
26125 * termhooks.h (struct terminal): Make it into a pseudovector.
26126 Remove `deleted' replaced by checking `name's nullness.
26127
26128 * print.c (print_object): Handle terminals.
26129
26130 * lisp.h (enum pvec_type): New `terminal' pseudovector.
26131 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
26132
26133 * frame.c (make_terminal_frame):
26134 * keyboard.c (tty_read_avail_input):
26135 * w32term.c (x_delete_terminal):
26136 * xfns.c (Fx_create_frame, x_create_tip_frame):
26137 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
26138
26139 2007-09-20 Glenn Morris <rgm@gnu.org>
26140
26141 * process.c (Fmake_network_process): Doc fix.
26142
26143 2007-09-19 Jason Rumney <jasonr@gnu.org>
26144
26145 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
26146
26147 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
26148
26149 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
26150 Fix a C warning regarding variable constness.
26151
26152 * xterm.c (handle_one_xevent): Fix a C warning.
26153
26154 2007-09-18 Jason Rumney <jasonr@gnu.org>
26155
26156 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
26157
26158 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
26159
26160 * gtkutil.c (gdpy_def): New variable.
26161 (xg_initialize): Initialize gdpy_def.
26162 (xg_display_close): If no other display exists, set gdpy_def to a
26163 new connection.
26164
26165 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
26166
26167 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
26168 when we have no file name for the icon.
26169 (xg_tool_bar_expose_callback): Remove.
26170 (xg_create_tool_bar): Don't connect expose signal to
26171 xg_tool_bar_expose_callback.
26172 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
26173
26174 2007-09-16 Andreas Schwab <schwab@suse.de>
26175
26176 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
26177 values instead of zapping them.
26178
26179 2007-09-14 Glenn Morris <rgm@gnu.org>
26180
26181 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
26182 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
26183 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
26184 scope and rename to omfib_buffer for clarity.
26185 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
26186
26187 2007-09-14 Kenichi Handa <handa@m17n.org>
26188
26189 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
26190
26191 2007-09-13 Jason Rumney <jasonr@gnu.org>
26192
26193 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
26194
26195 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
26196
26197 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
26198 (mac_term_init): Call here instead, passing rif.
26199
26200 2007-09-13 Glenn Morris <rgm@gnu.org>
26201
26202 * s/hpux.h: No longer define `static' as nothing.
26203
26204 2007-09-13 Johan Bockgård <bojohan@gnu.org>
26205
26206 * callint.c (Fcall_interactively): Remove unused var `fun'.
26207
26208 2007-09-12 Romain Francoise <romain@orebokech.com>
26209
26210 * window.c (prefer_window_split_horizontally, display_buffer):
26211 Revert 2007-09-08 change.
26212
26213 2007-09-12 Glenn Morris <rgm@gnu.org>
26214
26215 * alloca.c: Remove file.
26216 * Makefile.in (alloca): Do not undef.
26217 (allocaobj, alloca.o): Remove.
26218 (otherobj): Remove allocaobj.
26219 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
26220 * regex.c (C_ALLOCA): Remove all references and code that was only
26221 used when this was defined.
26222 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
26223 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
26224 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
26225
26226 * Makefile.in (SOURCES, unlock, relock): Delete.
26227
26228 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
26229 (menu_grab_callback): All uses changed.
26230
26231 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
26232 (x_reply_selection_request): All uses changed.
26233
26234 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
26235
26236 * lread.c (load_warn_old_style_backquotes): Change message to look
26237 better when it appears in the middle of byte-compiler messages.
26238
26239 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
26240
26241 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
26242
26243 * xterm.c (x_create_terminal): Add comment.
26244
26245 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
26246
26247 2007-09-10 Richard Stallman <rms@gnu.org>
26248
26249 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
26250
26251 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
26252
26253 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
26254 (DEFUN): Document `intspec', use it instead of `prompt'.
26255
26256 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
26257
26258 * data.c (Finteractive_form): If the interactive specification starts
26259 with a `(', use it as a Lisp form.
26260
26261 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
26262 name and file modes.
26263
26264 * callint.c (Fcall_interactively): Comment fixes.
26265
26266 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
26267
26268 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
26269 and compiled functions.
26270
26271 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
26272
26273 * window.c (prefer_window_split_horizontally): New variable.
26274 (display_buffer): Consider splitting window horizontally depending
26275 on prefer_window_split_horizontally.
26276
26277 2007-09-08 Eli Zaretskii <eliz@gnu.org>
26278
26279 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
26280
26281 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
26282
26283 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
26284
26285 * frame.c (x_set_frame_parameters): Check number is positive before
26286 using XFASTINT.
26287
26288 * window.c (freeze_window_start): Don't presume selected_window holds
26289 a window object.
26290 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
26291
26292 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
26293
26294 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
26295
26296 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
26297
26298 * window.c (Vsplit_window_preferred_function): New var.
26299 (Fdisplay_buffer): Use it.
26300 (syms_of_window): Export, and initialize it.
26301
26302 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
26303
26304 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
26305
26306 2007-09-06 Glenn Morris <rgm@gnu.org>
26307
26308 * gtkutil.c (menu_grab_callback) <cnt>:
26309 * xselect.c (x_reply_selection_request) <cnt>: Move static
26310 variable to file scope.
26311
26312 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
26313
26314 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
26315 consistent values of selected_frame and selected_window.
26316
26317 2007-09-04 Jason Rumney <jasonr@gnu.org>
26318
26319 * w32console.c (initialize_w32_display): Zero unused hooks.
26320
26321 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
26322
26323 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
26324 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
26325
26326 2007-09-04 Jason Rumney <jasonr@gnu.org>
26327
26328 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
26329 in w32console.c. Set up input. Remove XXX comments that have been
26330 confirmed as correct.
26331
26332 * s/ms-w32.h (MULTI_KBOARD): Define.
26333
26334 * w32console.c (one_and_only_w32cons): Remove.
26335 (initialize_w32_display): Take terminal argument.
26336
26337 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
26338 initialize_w32_display.
26339 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
26340
26341 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
26342
26343 * keyboard.c (discard_mouse_events): Discard it.
26344 (make_lispy_event): Translate it to a lisp event.
26345 (lispy_wheel_names): Add wheel-left and right events.
26346 (syms_of_keyboard): Enlarge wheel_syms.
26347
26348 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
26349 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
26350
26351 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
26352
26353 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
26354 from WM_MOUSEHWHEEL.
26355 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
26356
26357 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
26358 terminal.
26359
26360 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
26361 keyboard for the terminal.
26362
26363 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
26364
26365 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
26366 (Vresume_tty_hook): Rename from Vresume_tty_functions.
26367 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
26368 and resume-tty-function to resume-tty-hook.
26369 (Fsuspend_tty, Fresume_tty): Use new names.
26370
26371 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
26372
26373 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
26374 if it starts with "n:".
26375
26376 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
26377
26378 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
26379
26380 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
26381
26382 * frame.h:
26383 * frame.c (Qterm_environment_variable): Remove.
26384 (syms_of_frame): Don't init and staticpro it.
26385
26386 * callproc.c (getenv_internal): Remove special case for $TERM.
26387
26388 * callproc.c (Vinitial_environment): New variable.
26389 (set_initial_environment): Initialize it.
26390 (syms_of_callproc): Declare it.
26391 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
26392 TERM under which a process runs is never related to the TERM in which
26393 Emacs is running.
26394
26395 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
26396
26397 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
26398 * s/darwin.h: ... do it here.
26399
26400 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
26401
26402 * lisp.h (set_initial_environment): Rename from set_global_environment.
26403
26404 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
26405 removed by mistake on the multi-tty branch.
26406
26407 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
26408 (Fmodify_frame_parameters): Return a value.
26409
26410 * image.c (png_load): Comment-out var only used in commented-out code.
26411
26412 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
26413 before passing it to mark_object.
26414
26415 * xfaces.c (internal_resolve_face_name): Return a value.
26416 (internal_resolve_face_name, resolve_face_name_error): Comment out.
26417
26418 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
26419 (x_icon): Comment-out var only used in commented-out code.
26420
26421 2007-08-29 Romain Francoise <romain@orebokech.com>
26422
26423 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
26424 QUIT hasn't been provided.
26425
26426 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
26427
26428 * callproc.c (child_setup, getenv_internal): Use the
26429 display-environment-variable and term-environment-variable frame params.
26430 (set_initial_environment): Initialise Vprocess_environment.
26431
26432 * config.in: Disable multi-keyboard support on a mac.
26433
26434 * frame.c (Qterm_environment_variable)
26435 (Qdisplay_environment_variable): New variables.
26436 (syms_of_frame): Intern and staticpro them.
26437 (Fmake_terminal_frame): Disable output method test.
26438
26439 * frame.h: Declare them here.
26440
26441 * macfns.c (x_set_mouse_color): Get rif from the frame.
26442 (x_set_tool_bar_lines): Don't use updating_frame.
26443 (mac_window): Add 2 new parameters for consistency with other systems.
26444 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
26445 frame parameters following what is done in X11 and w32. Don't use
26446 FRAME_MAC_DISPLAY_INFO.
26447 (Fx_open_connection, start_hourglass): Remove window-system check.
26448 (x_create_tip_frame): Get the keyboard from the terminal.
26449
26450 * macmenu.c: Reorder includes.
26451 (Fx_popup_menu): Use terminal specific mouse_position_hook.
26452
26453 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
26454 terminal parameter.
26455 (x_clear_frame): Add a frame parameter.
26456 (note_mouse_movement): Get rif from the frame.
26457 (mac_term_init): Initialize the terminal.
26458 (mac_initialize): Make static and move terminal initialization ...
26459 (mac_create_terminal): ... to this new function.
26460
26461 * macterm.h (struct mac_display_info): Add terminal.
26462 (mac_initialize): Delete declaration.
26463
26464 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
26465
26466 * sysdep.c: Comment out text after #endif.
26467
26468 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
26469 is defined. Better initialize ttys in windows. Use terminal
26470 specific mouse_position_hook.
26471
26472 * termhooks.h (union display_info): Add mac_display_info.
26473
26474 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
26475 Set the default minibuffer frame, window_system and the rest of the
26476 frame parameters following what is done in X11.
26477
26478 * w32term.c (w32_initialize): Make static.
26479
26480 * xselect.c (x_handle_selection_clear): Only access
26481 terminal->kboard when MULTI_KBOARD is defined.
26482
26483 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
26484 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
26485
26486 2007-08-29 Jason Rumney <jasonr@gnu.org>
26487
26488 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
26489 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
26490
26491 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
26492 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
26493
26494 * keyboard.c (restore_kboard_configuration): Only define when
26495 MULTI_KBOARD defined.
26496
26497 * makefile.w32-in: Update dependancies from Makefile.in.
26498 (OBJ1): Add terminal.$(O)
26499
26500 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
26501 Don't define function body.
26502 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
26503
26504 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
26505
26506 * w32.c (request_sigio, unrequest_sigio): Remove.
26507
26508 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
26509 (w32con_clear_frame, w32con_clear_end_of_line)
26510 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
26511 (w32con_delete_glyphs, w32con_set_terminal_window)
26512 (scroll_line, w32_sys_ring_bell): Add frame arg.
26513 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
26514 Add terminal arg.
26515 (PICK_FRAME): Remove.
26516 (w32con_write_glyphs): Use frame specific terminal coding.
26517 (one_and_only_w32cons): New global variable.
26518 (initialize_w32_display): Use it for storing hooks.
26519 (create_w32cons_output): New function.
26520
26521 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
26522 arg a frame.
26523
26524 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
26525 Set window_system.
26526 (x_set_tool_bar_lines): Don't use updating_frame.
26527 (Fx_create_frame): Set terminal and ref count.
26528 (Fx_open_connection): Remove window-system check.
26529
26530 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
26531
26532 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
26533 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
26534 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
26535 Add frame arg.
26536 (x_delete_terminal, w32_create_terminal): New functions.
26537 (w32_term_init): Create a terminal.
26538 (w32_initialize): Move terminal specific initialization to
26539 w32_create_terminal.
26540
26541 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
26542 (w32_clear_rect, w32_clear_area): Use background from frame.
26543 (w32_display_info): Add terminal.
26544 (w32_sys_ring_bell, x_delete_display): Declare here.
26545
26546 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
26547
26548 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
26549
26550 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
26551
26552 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
26553 Fix get_named_tty calls for the controlling tty.
26554
26555 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
26556
26557 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
26558
26559 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
26560
26561 * term.c (tty_insert_glyphs): Add missing first parameter.
26562
26563 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
26564
26565 * buffer.c (Fbuffer_list, Fbury_buffer):
26566 Take frame->buried_buffer_list into account.
26567
26568 * cm.c (current_tty): New variable, for cmputc().
26569 (cmputc): Use it.
26570 (cmcheckmagic): Add tty parameter, look up terminal streams there.
26571 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
26572 (cmgoto): Add tty parameter. Pass it on to calccost().
26573 Use emacs_tputs() instead of tputs().
26574
26575 * cm.h (emacs_tputs): New macro to set current_tty, and then call
26576 tputs().
26577 (current_tty): New variable, for cmputc().
26578 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
26579
26580 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
26581 (internal_condition_case, internal_condition_case_1)
26582 (internal_condition_case_2): Don't abort when x_catching_errors.
26583
26584 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
26585 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
26586 prevent crashes caused by bogus longjmps in read_char.
26587
26588 * keymap.h (Fset_keymap_parent): Add EXFUN.
26589
26590 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
26591 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
26592 Remove redundant definition.
26593
26594 * macfns.c (x_set_mouse_color, x_make_gc):
26595 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26596
26597 * w32term.c (x_free_frame_resources):
26598 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26599 (w32_initialize): Use the accessor macros for terminal characteristics.
26600
26601 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
26602 Use the accessor macros for terminal characteristics.
26603 * msdos.c (internal_terminal_init): Use the accessor macros for
26604 terminal characteristics.
26605 (ScreenVisualBell, internal_terminal_init):
26606 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26607
26608 * termopts.h (no_redraw_on_reenter): Declare.
26609
26610 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
26611 (mark_terminals, mark_ttys): Declare.
26612 (Fgarbage_collect): Call them.
26613 (mark_object): Mark buried_buffer_list.
26614
26615 * prefix-args.c: Include stdlib.h for exit.
26616
26617 * syssignal.h: Add comment.
26618
26619 * indent.c: Include stdio.h.
26620
26621 * window.h (Vinitial_window_system): Declare.
26622 (Vwindow_system): Delete declaration.
26623
26624 * fontset.c (Finternal_char_font): Use FRAME_RIF.
26625
26626 * image.c (lookup_image): Don't initialize `c' until the xasserts
26627 have been run.
26628
26629 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
26630 FRAME_FOREGROUND_PIXEL.
26631
26632 * print.c (print_preprocess): Don't lose print_depth levels while
26633 iterating.
26634
26635 * widget.c (update_from_various_frame_slots):
26636 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26637
26638 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
26639 frames.
26640 (window_internal_height): Remove bogus make_number call.
26641 (init_window_once): Call make_terminal_frame with two zero parameters.
26642
26643 * fileio.c (Fread_file_name): Update comment.
26644
26645 * callint.c (Fcall_interactively):
26646 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
26647 Make sure it is correctly unwound.
26648
26649 * xsmfns.c (x_session_close): New function.
26650
26651 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
26652 Delete declarations.
26653
26654 * xterm.h: Remove declaration for x_fully_uncatch_errors.
26655 (x_output): Remove background_pixel and foreground_pixel fields.
26656 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
26657 (x_delete_device, x_session_close): Declare.
26658
26659 * lread.c: Include setjmp.h. Update declaration of `read_char'.
26660 (read_filtered_event): Call `read_char' with a local
26661 `wrong_kboard_jmpbuf'.
26662
26663 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
26664 Don't call single_kboard_state. Use FRAME_RIF.
26665
26666 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
26667 systems.
26668
26669 * lisp.h (set_process_environment): Rename to `set_global_environment'.
26670 (Fframe_with_environment, Fset_input_meta_mode)
26671 (Fset_quit_char): EXFUN.
26672 (x_create_device, tty_output, terminal, tty_display_info): Declare.
26673 (init_sys_modes, reset_sys_modes): Update prototypes.
26674 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
26675
26676 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
26677 Vlocal_key_translation_map, and Vkeyboard_translate_table.
26678 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
26679 Delete declarations.
26680 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
26681 (temporarily_switch_to_single_kboard, tty_read_avail_input):
26682 New declarations.
26683
26684 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
26685 already does that during init_display(). Call syms_of_keymap
26686 before syms_of_keyboard. Call `syms_of_terminal'.
26687 Call set_initial_environment, not set_process_environment.
26688 (shut_down_emacs): Call reset_all_sys_modes() instead of
26689 reset_sys_modes().
26690
26691 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
26692 (internal_resolve_face_name, resolve_face_name_error): New functions.
26693 (resolve_face_name): Protect against loops and errors thrown by Fget.
26694 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
26695 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
26696
26697 * scroll.c: Replace CURTTY() with local variables throughout the
26698 file (where applicable).
26699 (calculate_scrolling, calculate_direct_scrolling)
26700 (scrolling_1, scroll_cost): Use the accessor macros for terminal
26701 characteristics.
26702
26703 * keymap.c (Vfunction_key_map): Remove.
26704 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
26705 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
26706 (Vkey_translation_map): Remove.
26707 (syms_of_keymap): Remove DEFVAR for key-translation-map.
26708 (Fdescribe_buffer_bindings)
26709 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
26710 Update for terminal-local key-translation-map.
26711
26712 * Makefile.in (callproc.o): Update dependencies.
26713 (lisp, shortlisp): Add termdev.elc.
26714 (obj): Add terminal.o.
26715 (terminal.o): Add dependencies.
26716 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
26717 (data.o, fns.o): Add termhooks.h dependency.
26718 (SOME_MACHINE_LISP): Add dnd.elc.
26719 (minibuf.o): Fix typo.
26720 Update dependencies.
26721
26722 * data.c (do_symval_forwarding, store_symval_forwarding)
26723 (find_symbol_value): Use the selected frame's keyboard, not
26724 current_kboard.
26725
26726 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
26727 Vwindow_system.
26728
26729 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
26730 Fmenu_bar_open.
26731 (syms_of_xmenu): Update defsubr.
26732 (mouse_position_for_popup, Fx_popup_menu)
26733 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
26734 (set_frame_menubar, free_frame_menubar)
26735 (create_and_show_popup_menu, xmenu_show)
26736 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
26737 an X frame.
26738
26739 * xselect.c (x_own_selection): Abort if not an X frame.
26740 (some_frame_on_display): Check if it is an X frame.
26741 (x_handle_selection_clear): Deal with MULTI_KBOARD.
26742
26743 * coding.c: Include frame.h and termhooks.h.
26744 (terminal_coding, keyboard_coding): Delete.
26745 (Fset_terminal_coding_system_internal)
26746 (Fset_keyboard_coding_system_internal)
26747 (Fkeyboard_coding_system)
26748 (Fterminal_coding_system): Add a terminal parameter.
26749 Get terminal_coding from the terminal.
26750 (init_coding_once): Don't call setup_coding_system here.
26751
26752 * dispextern.h (set_scroll_region, turn_off_insert)
26753 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
26754 (tty_clear_end_of_line, tty_setup_colors)
26755 (delete_tty, updating_frame)
26756 (produce_special_glyphs, produce_glyphs, write_glyphs)
26757 (insert_glyphs): Remove.
26758 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
26759 (tty_turn_off_highlight, get_tty_size): Add declaration.
26760 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
26761
26762 * frame.h (enum output_method): Add output_initial.
26763 (struct x_output): Delete.
26764 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
26765 Access foreground_pixel and background_pixel directly from the frame.
26766 (tty_display): Delete.
26767 (struct frame): Add buried_buffer_list, foreground_pixel,
26768 background_pixel and terminal. Delete kboard.
26769 (union output_data): Add tty.
26770 (FRAME_KBOARD): Get the kboard from the terminal.
26771 (FRAME_INITIAL_P): New macro.
26772 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
26773 (Qterm_environment_variable, Qdisplay_environment_variable)
26774 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
26775 New declarations.
26776
26777 * termchar.h (tty_output, tty_display_info): New structures.
26778 (tty_list): Declare.
26779 (FRAME_TTY, CURTTY): New macros.
26780 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
26781 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
26782 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
26783 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
26784
26785 * callproc.c: Include frame.h and termhooks.h, for terminal
26786 parameters.
26787 (add_env): New function.
26788 (child_setup): Use it.
26789 (child_setup, getenv_internal): Handle the new Vprocess_environment.
26790 (getenv_internal): Fix get_terminal_param call.
26791 (Fgetenv_internal, egetenv): Update doc.
26792 (syms_of_callproc): Initialize Vprocess_environment to nil.
26793 Register and initialize them. Remove obsolete defvars. Update doc
26794 strings.
26795 (child_setup): Handle Vlocal_environment_variables.
26796 (getenv_internal): Add terminal parameter.
26797 Handle Vlocal_environment_variables.
26798 (Fgetenv_internal): Add terminal parameter.
26799 (child_setup, getenv_internal, Fgetenv_internal): Store the local
26800 environment in a frame (not terminal) parameter. Update doc strings.
26801 (set_initial_environment): Rename from set_global_environment.
26802 Store Emacs environment in initial frame parameter.
26803
26804 * xdisp.c (redisplay_internal): Update references to
26805 `previous_terminal_frame'.
26806 (display_mode_line, Fformat_mode_line): Replace calls to
26807 `push_frame_kboard' with `push_kboard'.
26808 (get_glyph_string_clip_rects): Add extra parentheses and
26809 braces to prevent compiler warnings.
26810 (calc_pixel_width_or_height): Add xassert to check that the
26811 frame is alive. Don't call `lookup_image' on a termcap frame.
26812 (message2_nolog, message3_nolog, redisplay_internal)
26813 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
26814 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
26815 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
26816 (Fx_display_pixel_width, Fx_display_pixel_height)
26817 (Fx_display_planes, Fx_display_color_cells)
26818 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
26819 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
26820 (Fx_display_backing_store, Fx_display_visual_class)
26821 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
26822 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
26823
26824 * xfns.c (x_set_foreground_color x_set_background_color)
26825 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
26826 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26827 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
26828 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
26829 terminal that is being deleted.
26830 (Fx_create_frame): Use `store_frame_param' to set `window-system'
26831 frame parameter, and make sure it overrides any user-supplied setting.
26832 (Fx_close_connection, Fx_synchronize): Unify argument names with
26833 the rest of the DEFUNs.
26834
26835 * dispnew.c (Fsend_string_to_terminal): Update call to
26836 `get_tty_terminal'.
26837 (Fredraw_frame, Fsend_string_to_terminal)
26838 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
26839 FRAME_TERMCAP_P and FRAME_TTY.
26840 (window_change_signal): Don't believe width/height values that are
26841 impossibly small.
26842 (Vinitial_window_system): Rename from Vwindow_system.
26843 (termscript, Wcm, rif): Delete.
26844
26845 * termhooks.h (struct terminal): New struct containing the
26846 previously global text display hooks and new members NAME,
26847 DELETED and PARAM_ALIST.
26848 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
26849 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
26850 (FRAME_RIF): New macros.
26851 (get_terminal_param, get_device): New declarations.
26852 (termscript): Delete declaration.
26853
26854 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
26855 (XTflash, x_free_frame_resources, x_scroll_bar_create)
26856 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
26857 FRAME_FOREGROUND_PIXEL.
26858 (x_fully_uncatch_errors): Disable definition.
26859 (x_scroll_bar_expose): Fix reference to foreground pixel.
26860 (XTread_socket): Disable loop on all X displays.
26861 (x_delete_terminal): Don't set terminal->deleted and let
26862 delete_terminal delete the frames on the terminal.
26863 (x_delete_display): Doc update to reflect changes in
26864 delete_terminal.
26865 (x_display_info) <terminal>: Move member earlier in the struct.
26866 (deleting_tty): Remove old variable.
26867 (Fsuspend_tty): Call clear_tty_hooks.
26868 (Fresume_tty, init_tty): Call set_tty_hooks.
26869 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
26870 errors on X frames.
26871 (x_catch_errors_unwind): Abort if x_error_message is NULL.
26872 (handle_one_xevent): Initialize `f' to NULL.
26873 (x_delete_terminal, x_create_terminal): New functions.
26874 (XTset_terminal_modes, XTreset_terminal_modes)
26875 (XTread_socket, x_connection_closed, x_term_init)
26876 (x_term_init, x_delete_display): Add terminal parameter.
26877 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
26878 X connections.
26879
26880 * frame.c: Include termchar.h.
26881 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
26882 (Qwindow_system, Qenvironment, Qterm_environment_variable)
26883 (Qdisplay_environment_variable): New vars.
26884 (Fframep): Deal with output_initial.
26885 (Fframe-live-p): Doc fix.
26886 (Fwindow-system): New function.
26887 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
26888 (make_terminal_frame): Don't create frames on a terminal that is
26889 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
26890 (store_frame_param): Check for found_for_frame before calling XFRAME.
26891 (Fmake_terminal_frame): Handle NULL tty names correctly.
26892 (syms_of_frame): Enhance doc string of `default-frame-alist'.
26893 (Fdelete_frame): Remove unused variable `count'. Don't allow other
26894 frames to refer to a deleted frame in their 'environment parameter.
26895 (Fframe_with_environment): New function.
26896 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
26897 (get_future_frame_param): New function.
26898 (Fmake_terminal_frame): Use it.
26899 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
26900
26901 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
26902 * sysdep.c (reset_sys_modes): Update for renames.
26903
26904 * keyboard.c (tty_read_avail_input): New function.
26905 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
26906 (syms_of_keyboard): Defsubr them.
26907 (Fset_input_meta_mode, Fset_quit_char): New functions.
26908 (Fset_input_mode): Split to above functions.
26909 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
26910 parameter. Use it in call to `read_char'.
26911 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
26912 Set wrong_kboard_jmpbuf correctly in recursive calls.
26913 Use current_kboard to access Vkeyboard_translate_table.
26914 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
26915 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
26916 Update longjmp invocations. Remember the original current_kboard,
26917 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
26918 changes it. Comment out unnecessary calls to
26919 `record_single_kboard_state' and `any_kboard_state'.
26920 Update recursive calls.
26921 (wrong_kboard_jmpbuf): Remove global variable.
26922 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
26923 Handle deleted interrupted_kboards correctly; that is a legal
26924 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
26925 and read_char calls. Abort if interrupted_kboard died in read_char.
26926 (any_kboard_state, single_kboard_state)
26927 (push_frame_kboard): Remove function.
26928 (pop_kboard): Switch out of single_kboard mode if the kboard has
26929 been deleted. Remove unused variable. Help debugging by not
26930 changing current_kboard unnecessarily. Set current_kboard to the
26931 kboard of the selected frame when the stored kboard object has
26932 been deleted before pop_kboard.
26933 (temporarily_switch_to_single_kboard): Change first parameter to a
26934 frame pointer. Throw an error when caller wants to change kboards
26935 while in single_kboard mode. Don't push_kboard if we weren't in
26936 single kboard state. Don't pop_kboard if we popped into any
26937 kboard state.
26938 (restore_kboard_configuration): Abort if pop_kboard changed the
26939 kboard in single_kboard mode. Call pop_kboard only after setting
26940 up single_kboard mode.
26941 (Frecursive_edit): Switch to single_kboard mode only in nested
26942 command loops.
26943 (cmd_error, command_loop, command_loop_1, timer_check):
26944 Comment out unnecessary call to `any_kboard_state' and
26945 `record_single_kboard_state'.
26946 (delete_kboard): Exit single_kboard mode if we have just deleted
26947 that kboard. Use FRAME_KBOARD.
26948 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
26949 `fatal_error_signal'.
26950 (record_single_kboard_state): Don't push_kboard if we weren't in
26951 single kboard state. Don't pop_kboard if we popped into any
26952 kboard state.
26953 (push_frame_kboard): Rename to push_kboard.
26954 (kbd_buffer_get_event): Use FRAME_TERMINAL.
26955 (read_avail_input): Read input from all terminals.
26956 (mark_kboards): Also mark Vkeyboard_translate_table.
26957 (kbd_buffer_store_event_hold): Simplify condition.
26958 (read_key_sequence): Reinitialize fkey and keytran at each replay.
26959 (Vkeyboard_translate_table): Move to struct kboard.
26960 (init_kboard): Initialize Vkeyboard_translate_table.
26961 (syms_of_keyboard): Use DEFVAR_KBOARD to define
26962 Vkeyboard_translate_table. Update doc strings. Update docs of
26963 local-function-key-map and function-key-map.
26964
26965 * terminal.c: New file.
26966
26967 * term.c: Include errno.h.
26968 (Vring_bell_function, device_list, initial_device)
26969 (next_device_id, ring_bell, update_begin, update_end)
26970 (set_terminal_window, cursor_to, raw_cursor_to)
26971 (clear_to_end, clear_frame, clear_end_of_line)
26972 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
26973 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
26974 (syms_of_term): Move their initialization to terminal.c.
26975 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
26976 (Ftty_display_color_cells)
26977 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
26978 (clear_tty_hooks, set_tty_hooks)
26979 (init_tty, maybe_fatal): New functions.
26980 (Ftty_type): Return nil if terminal is not on a tty instead of
26981 throwing an error. Doc update.
26982 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
26983 Doc update. Initialize new subrs and variables.
26984 (delete_tty): Use terminal->deleted.
26985 (tty_set_terminal_modes): Rename from set_terminal_modes.
26986 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
26987 (set_scroll_region): Rename to `tty_set_scroll_region'.
26988 (turn_on_insert): Rename to `tty_turn_on_insert'.
26989 (turn_off_insert): Rename to `tty_turn_off_insert'.
26990 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
26991 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
26992 (toggle_highligh): Rename to `tty_toggle_highlight'.
26993 (background_highlight): Rename to `tty_background_highlight'.
26994 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
26995 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
26996 (tty_set_scroll_region, tty_background_highlight)
26997 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
26998 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
26999 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
27000 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
27001 Add static modifier.
27002 (tty_reset_terminal_modes, tty_set_terminal_window)
27003 (tty_set_scroll_region, tty_background_highlight)
27004 (tty_highlight_if_desired, tty_cursor_to)
27005 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
27006 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
27007 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
27008 renames.
27009
27010 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
27011
27012 * keyboard.c: Qrtl is new.
27013 (parse_tool_bar_item): Handle :rtl keyword.
27014 (syms_of_keyboard): Intern :rtl keyword.
27015
27016 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
27017
27018 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
27019 so no Lisp code is executed.
27020 (file_for_image, find_rtl_image): New functions.
27021 (xg_get_image_for_pixmap): Use file_for_image.
27022 (update_frame_tool_bar): If direction is RTL, use RTL image if
27023 defined. Use Gtk stock images if defined.
27024
27025 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27026
27027 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
27028 for nonexistent or zero-width glyph in composition glyph.
27029
27030 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
27031
27032 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
27033
27034 * xdisp.c (Finvisible_p): New function.
27035 (syms_of_xdisp): defsubr it.
27036
27037 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
27038
27039 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
27040 Doc fixes.
27041
27042 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27043
27044 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
27045
27046 2007-08-24 Martin Rudalics <rudalics@gmx.at>
27047
27048 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
27049 whether decoding has modified buffer contents.
27050
27051 2007-08-24 Jason Rumney <jasonr@gnu.org>
27052
27053 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
27054 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
27055 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
27056 (init_svg_functions) [HAVE_NTGUI]: New function.
27057 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
27058 (svg_load_image): Use them.
27059 (svg_load_image) [HAVE_NTGUI]: Implement background.
27060
27061 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27062
27063 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
27064 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
27065 (LIBX): Remove @RSVG_LIBS@.
27066 (LIBES): Add $(RSVG_LIBS).
27067
27068 * image.c (svg_load_image): Blend with specified background if exists.
27069 Use IMAGE_BACKGROUND. Add Mac OS Support.
27070
27071 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
27072 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
27073 Remove macros.
27074 [MAC_OSX] (socket_callback): Do nothing.
27075 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
27076 ReceiveNextEvent.
27077 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
27078 socket_callback.
27079 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
27080
27081 2007-08-22 Glenn Morris <rgm@gnu.org>
27082
27083 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
27084
27085 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
27086
27087 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
27088
27089 * image.c: Add support for SVG images. Some additional comments
27090 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
27091 (svg_image_p): New function to test for SVG image.
27092 (svg_load): New function to load SVG image.
27093 (svg_load_image): New function, helper for svg_load.
27094 (Qsvg): New Lisp_object.
27095 (svg_keyword_index): New enum.
27096 (svg_format): New static `image_keyword' struct.
27097 (svg_type): New static `image_type' struct.
27098 (librsvg/rsvg.h): Include it.
27099
27100 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
27101
27102 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
27103
27104 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
27105
27106 * lread.c (Qold_style_backquotes): New var.
27107 (syms_of_lread): Init and staticpro it.
27108 (load_warn_old_style_backquotes): New fun.
27109 (Fload): Use them to warn about old style backquotes.
27110 (end_of_file_error, Fload): Remove unused vars.
27111
27112 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
27113
27114 * lread.c (Vold_style_backquotes): New var.
27115 (syms_of_lread): Init and export it to Elisp.
27116 (read1): Set it when we find an old-style (back)quote.
27117
27118 2007-08-22 Jason Rumney <jasonr@gnu.org>
27119
27120 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
27121
27122 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
27123
27124 * puresize.h (BASE_PURESIZE): Increase to 1140000.
27125
27126 2007-08-19 Richard Stallman <rms@gnu.org>
27127
27128 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
27129
27130 2007-08-19 Andreas Schwab <schwab@suse.de>
27131
27132 * alloc.c (pure): Round PURESIZE up.
27133
27134 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
27135
27136 * xterm.c (handle_one_xevent): Remove check that mouse click is in
27137 active frame.
27138
27139 2007-08-16 Richard Stallman <rms@gnu.org>
27140
27141 * eval.c (Fcommandp): Add parens to clarify.
27142
27143 * minibuf.c (Fall_completions): Use enum for type of table.
27144
27145 * emacs.c (USAGE2): Improve text.
27146
27147 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
27148
27149 * term.c (tty_default_color_capabilities): Declare static
27150 variables in file scope, to avoid HPUX compiler problem.
27151
27152 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
27153
27154 * gtkutil.c (update_frame_tool_bar): Use -1 as index
27155 to gtk_toolbar_insert.
27156
27157 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
27158
27159 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
27160
27161 * insdel.c (reset_var_on_error): New fun.
27162 (signal_before_change, signal_after_change):
27163 Use it to reset (after|before)-change-functions to nil in case of error.
27164 Bind inhibit-modification-hooks to t.
27165 Don't bind (after|before)-change-functions to nil while they run.
27166
27167 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27168
27169 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
27170 filling pixmap with stippled background.
27171
27172 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27173
27174 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
27175 Don't use invisible frame as parent window for repositioning.
27176
27177 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
27178
27179 * print.c (new_backquote_output): Rename from old_backquote_output.
27180 (print): Inverse its logic (according to its name) so as to match the
27181 behavior of new_backquote_flag in lread.c.
27182
27183 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27184
27185 * gmalloc.c (posix_memalign): New function.
27186
27187 * macterm.c (frame_highlight, frame_unhighlight): Don't call
27188 ActivateControl/DeactivateControl here.
27189 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
27190 frame-notice-user-settings is non-nil.
27191 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
27192 for kEventParamFMFontStyle.
27193 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
27194 mac_pass_command_to_system and mac_pass_control_to_system here.
27195 (XTread_socket): Call ActivateControl/DeactivateControl here.
27196 (XTread_socket) [TARGET_API_MAC_CARBON]:
27197 Check mac_pass_command_to_system and mac_pass_control_to_system here.
27198 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
27199 for window repositioning.
27200
27201 2007-08-08 Glenn Morris <rgm@gnu.org>
27202
27203 * Replace `iff' in doc-strings and comments.
27204
27205 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
27206
27207 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
27208
27209 2007-08-07 Martin Rudalics <rudalics@gmx.at>
27210
27211 * fileio.c (Finsert_file_contents): Run format-decode and
27212 after_insert_file_functions on entire buffer when REPLACE is
27213 non-nil and inhibit modification_hooks and point_motion_hooks.
27214 For consistency, run after_insert_file_functions iff something
27215 got inserted. Move signal_after_change and update_compositions
27216 after code running after_insert_file_functions. Make sure that
27217 undo_list doesn't record intermediate steps of the decoding process.
27218
27219 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27220
27221 * emacs.c (main)
27222 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
27223 Call malloc_enable_thread on interactive startup.
27224
27225 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
27226 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
27227 [USE_PTHREAD]: Conditionalize with it.
27228 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
27229 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
27230 New functions.
27231
27232 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
27233
27234 * xdisp.c (redisplay_window): When restoring original buffer
27235 position, make sure it is still valid.
27236
27237 * image.c (png_load): Ignore png-supplied background color.
27238
27239 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27240
27241 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
27242 Use kCFAbsoluteTimeIntervalSince1970.
27243
27244 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
27245 New variable.
27246 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
27247 event loop should be quit.
27248 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
27249 Quit dialog event loop if quit_dialog_event_loop is set.
27250
27251 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
27252 (Selection): New typedef. Use instead of ScrapRef.
27253 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
27254 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
27255 (mac_clear_selection): Rename from clear_scrap.
27256 (get_flavor_type_from_symbol): New argument SEL and subsume function of
27257 scrap_has_target_type. All uses changed.
27258 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
27259 (mac_selection_has_target_p): New functions.
27260 (mac_put_selection_value): Rename from put_scrap_string.
27261 (mac_get_selection_value): Rename from get_scrap_string.
27262 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
27263 (put_scrap_private_timestamp, scrap_has_target_type)
27264 (get_scrap_private_timestamp): Remove functions.
27265 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
27266 (x_own_selection, x_get_local_selection):
27267 Use mac_valid_selection_value_p.
27268 (x_own_selection): Don't use put_scrap_private_timestamp.
27269 Record OWNERSHIP-INFO into Vselection_alist instead.
27270 (x_get_local_selection): Don't check type if request is local.
27271 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
27272 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
27273
27274 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
27275
27276 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
27277 add comment explaining why.
27278
27279 2007-08-03 Richard Stallman <rms@gnu.org>
27280
27281 * fileio.c (Fvisited_file_modtime): Use make_time.
27282
27283 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
27284
27285 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
27286 build.
27287
27288 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
27289
27290 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
27291
27292 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
27293
27294 * puresize.h (BASE_PURESIZE): Increase to 1130000.
27295
27296 2007-07-30 Richard Stallman <rms@gnu.org>
27297
27298 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
27299
27300 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
27301
27302 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
27303
27304 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
27305
27306 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
27307 remote default-directory.
27308
27309 * buffer.c (mode-line-format): Update doc string.
27310
27311 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27312
27313 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
27314 scroll bar gap.
27315 (x_scroll_bar_create): Set bar->fringe_extended_p.
27316 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
27317 on frame edge. Check fringe background extension. Don't clear
27318 extended fringe background area.
27319
27320 * w32term.h (struct scroll_bar): New member fringe_extended_p.
27321 (w32_fill_area): Enclose multiple statements with do ... while (0).
27322
27323 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
27324 Extend fringe background to scroll bar gap.
27325 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
27326 Set bar->fringe_extended_p.
27327 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
27328 Put leftmost/rightmost scroll bars on frame edge. Check fringe
27329 background extension. Don't clear extended fringe background area.
27330
27331 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
27332 New member fringe_extended_p.
27333
27334 2007-07-25 Glenn Morris <rgm@gnu.org>
27335
27336 * Relicense all FSF files to GPLv3 or later.
27337
27338 * COPYING: Switch to GPLv3.
27339
27340 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
27341
27342 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
27343
27344 * data.c (Finteractive_form): Check for the presence of an
27345 `interactive-form' symbol property more thoroughly.
27346
27347 * data.c (Finteractive_form): Use an `interactive-form' property if
27348 present, analogous to the function-documentation property.
27349
27350 2007-07-24 Jason Rumney <jasonr@gnu.org>
27351
27352 * w32fns.c (x_real_positions): Get real position from OS instead of
27353 calculating it.
27354
27355 2007-07-23 Jason Rumney <jasonr@gnu.org>
27356
27357 * filelock.c (current_lock_owner): Allow for @ sign in username.
27358
27359 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
27360
27361 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
27362 remote default-directory.
27363
27364 * buffer.c (mode-line-format): Describe above case in doc string.
27365
27366 2007-07-20 Eli Zaretskii <eliz@gnu.org>
27367
27368 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
27369 Define if not defined.
27370
27371 2007-07-18 Jason Rumney <jasonr@gnu.org>
27372
27373 * w32proc.c (w32_executable_type): Handle 64 bit executables.
27374
27375 2007-07-18 Richard Stallman <rms@gnu.org>
27376
27377 * data.c (Fsetq_default): Doc fix.
27378
27379 * eval.c (Fsetq): Doc fix.
27380
27381 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
27382
27383 * coding.c (Ffind_operation_coding_system):
27384 * eval.c (For, Fand): Doc fixes.
27385 Reported by Johan Bockgård.
27386
27387 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
27388
27389 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
27390
27391 * xterm.h: Declare x_ewmh_activate_frame.
27392
27393 * xterm.c (x_ewmh_activate_frame): New function.
27394 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
27395
27396 2007-07-17 Martin Rudalics <rudalics@gmx.at>
27397
27398 * window.c (Fdisplay_buffer): If largest or LRU window is the
27399 only window, split it even if it is not eligible for splitting.
27400 This restores the original behavior broken by the 2007-07-15
27401 change.
27402
27403 2007-07-17 Glenn Morris <rgm@gnu.org>
27404
27405 * abbrev.c (abbrev_check_chars): New function.
27406 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
27407 Call abbrev_check_chars to check abbrev characters are word
27408 constituents. Doc fix.
27409
27410 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
27411
27412 * process.c (Fstart_process, Fmake_network_process)
27413 (read_process_output): Fix up last changes.
27414
27415 2007-07-16 Eli Zaretskii <eliz@gnu.org>
27416
27417 * makefile.w32-in (clean): Don't delete *~.
27418
27419 2007-07-16 Andreas Schwab <schwab@suse.de>
27420
27421 * window.c (Fdisplay_buffer): Use NILP.
27422 (Fset_window_scroll_bars): Likewise.
27423
27424 2007-07-15 Martin Rudalics <rudalics@gmx.at>
27425
27426 * window.c (window_min_size_2): New function.
27427 (window_min_size_1, size_window, Fdisplay_buffer)
27428 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
27429 windows without mode- or header-lines when window-min-height is
27430 too small.
27431 (size_window): Reset nodelete_p after testing it, following an
27432 earlier note by Kim F. Storm.
27433 (display_buffer): Do not set split_height_threshold to twice the
27434 value of window_min_height to avoid changing the value of a
27435 customizable variable. Rather explicitly check whether the
27436 height of the window that shall be splitted is at least as large
27437 as split_height_threshold.
27438 (Fwindow_full_width_p): New defun.
27439 (syms_of_window): Defsubr it.
27440
27441 * window.h: Add EXFUN for Fwindow_full_width_p.
27442
27443 2007-07-14 Jason Rumney <jasonr@gnu.org>
27444
27445 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
27446
27447 2007-07-14 Richard Stallman <rms@gnu.org>
27448
27449 * eval.c (maybe_call_debugger): New function.
27450 (find_handler_clause): Use maybe_call_debugger.
27451 Call it when the handler says `debug'.
27452 Eliminate DEBUGGER_VALUE_PTR.
27453 (Fsignal): Eliminate debugger_value.
27454 (Qdebug): New variable.
27455 (syms_of_eval): Initialize it.
27456
27457 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
27458
27459 * eval.c (Fprogn):
27460 * keyboard.c (Ftrack_mouse):
27461 * print.c (Fwith_output_to_temp_buffer):
27462 * window.c (Fsave_window_excursion): Doc fix.
27463
27464 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
27465
27466 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
27467
27468 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
27469
27470 * process.h (struct Lisp_Process): Turn slots infd, outfd,
27471 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
27472 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
27473 read_output_delay, and read_output_skip from Lisp_Objects to ints.
27474 Remove unused encoding_carryover.
27475 * process.c: Adjust all functions accordingly.
27476
27477 2007-07-12 Richard Stallman <rms@gnu.org>
27478
27479 * term.c: Include unistd.h only if HAVE_UNISTD_H.
27480
27481 2007-07-11 Jason Rumney <jasonr@gnu.org>
27482
27483 * makefile.w32-in (LIBS): Include OLE32.
27484
27485 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
27486 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
27487
27488 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
27489
27490 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
27491 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
27492 from a Lisp_Object into a bare pointer.
27493 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
27494 Adjust the code correspondingly.
27495
27496 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
27497
27498 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
27499 (term_show_mouse_face): Remove unused var `j'.
27500 (handle_one_term_event): Remove unused vars `i' and `j'.
27501 Don't cast return value of ttyname since it's not necessary.
27502
27503 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
27504
27505 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
27506 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
27507
27508 * fns.c (map_char_table): Use an array of int for `indices' rather than
27509 an array of Lisp_Objects (which are only ever integers anyway).
27510 (Fmap_char_table): Update caller.
27511 * lisp.h: Update prototype.
27512 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
27513 * fontset.c (Ffontset_info):
27514 * casetab.c (set_case_table): Update callers.
27515
27516 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
27517
27518 * keymap.c (struct accessible_keymaps_data)
27519 (struct where_is_internal_data): New structures.
27520 (accessible_keymaps_1, where_is_internal_1): Use them to change
27521 interface to adhere to the one used by map_keymap.
27522 (Faccessible_keymaps, where_is_internal): Use map_keymap.
27523 (accessible_keymaps_char_table, where_is_internal_2): Remove.
27524
27525 * keymap.h (map_keymap_function_t): More informative prototype.
27526
27527 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
27528
27529 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
27530 (looking_at_1): Don't change search_regs and last_thing_searched
27531 if `inhibit-changing-match-data' is non-nil.
27532 (string_match_1, search_buffer, set_search_regs): Likewise.
27533 (syms_of_search): Add Lisp level definition for
27534 `inhibit-changing-match-data' and set it to nil.
27535 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
27536 start and end of the match, instead of using values in search_regs.
27537
27538 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
27539
27540 * minibuf.c (Fcompleting_read): New value `confirm-only'
27541 for `require-match'.
27542
27543 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
27544
27545 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
27546 part of the 2007-06-27 change to syms_of_fileio.
27547
27548 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27549
27550 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
27551 Check WINDOWP before using XWINDOW. Consolidate return statements.
27552
27553 2007-06-27 Richard Stallman <rms@gnu.org>
27554
27555 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
27556
27557 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
27558
27559 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
27560
27561 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27562
27563 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
27564 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
27565 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
27566 (_free_internal, memalign): Use them.
27567 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
27568 Initialize to PTHREAD_MUTEX_INITIALIZER.
27569 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
27570 (morecore_nolock): Rename from morecore. All uses changed.
27571 Use only nolock versions of internal allocation functions.
27572 (_malloc_internal_nolock, _realloc_internal_nolock)
27573 (_free_internal_nolock): New functions created from
27574 _malloc_internal, _realloc_internal, and _free_internal.
27575 (_malloc_internal, _realloc_internal, _free_internal): Use them.
27576 Copy hook value to automatic variable before its use.
27577 (memalign): Copy hook value to automatic variable before its use.
27578
27579 2007-06-26 Kenichi Handa <handa@m17n.org>
27580
27581 * coding.c (Ffind_operation_coding_system): Docstring improved.
27582 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
27583
27584 2007-06-25 David Kastrup <dak@gnu.org>
27585
27586 * keymap.c (Fcurrent_active_maps): Add `position' argument.
27587 (Fwhere_is_internal): Adjust call to `current-active-maps' to
27588 cater for additional parameter.
27589
27590 * keymap.h: Adjust number of parameters to `current-active-maps'.
27591
27592 * doc.c (Fsubstitute_command_keys): Adjust call of
27593 `current-active-maps'.
27594
27595 2007-06-25 David Kastrup <dak@gnu.org>
27596
27597 * callint.c (Fcall_interactively): Make the parsing of interactive
27598 specs somewhat more readable.
27599
27600 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27601
27602 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
27603 to scroll bar gap also when bitmap fills fringe. Draw only foreground
27604 if extended background has already been filled.
27605
27606 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27607
27608 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
27609 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
27610
27611 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
27612 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
27613 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
27614 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
27615 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
27616 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
27617 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
27618 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
27619 Run timers during dialog popup.
27620 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
27621
27622 2007-06-21 Jason Rumney <jasonr@gnu.org>
27623
27624 * image.c (convert_mono_to_color_image): Swap fore and background.
27625
27626 2007-06-20 Jason Rumney <jasonr@gnu.org>
27627
27628 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
27629 (w32_free_bdf_font): Unmap memory not handle.
27630
27631 2007-06-20 Sam Steingold <sds@gnu.org>
27632
27633 * gmalloc.c (__morecore): Fix the declaration to comply with the
27634 definition.
27635
27636 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
27637
27638 * w32term.c (w32_delete_display): Remove leftover declaration.
27639 (w32_define_cursor, w32_initialize): Make static.
27640
27641 * w32.c (_wsa_errlist): Fix typo in error message.
27642 (init_environment): Ignore any environment variable from the
27643 registry having a null value.
27644
27645 2007-06-20 Glenn Morris <rgm@gnu.org>
27646
27647 * Makefile.in (LIBGIF): Default to -lgif.
27648
27649 2007-06-17 Jason Rumney <jasonr@gnu.org>
27650
27651 * w32menu.c (add_menu_item): Don't use multibyte string functions on
27652 unicode strings.
27653
27654 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
27655
27656 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
27657 Fix typo in docstring.
27658
27659 2007-06-16 Eli Zaretskii <eliz@gnu.org>
27660
27661 * w32menu.c (add_menu_item): Escape `&' characters in menu items
27662 and their keybindings.
27663
27664 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
27665
27666 * composite.c (update_compositions): Fix last fix.
27667
27668 2007-06-14 Jason Rumney <jasonr@gnu.org>
27669
27670 * w32.c (get_process_times_fn): New function pointer.
27671 (globals_of_w32): Intialize it if present in kernel32.dll.
27672 (w32_get_internal_run_time): New function.
27673
27674 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
27675
27676 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
27677
27678 * composite.c (update_compositions): Check the validness of
27679 compositions.
27680
27681 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27682
27683 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
27684 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
27685
27686 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
27687 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
27688
27689 * macgui.h (USE_MAC_TOOLBAR): New define.
27690
27691 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
27692 Return immediately unless popup is activated.
27693
27694 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
27695 background to scroll bar gap.
27696 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
27697 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
27698 scroll bars on frame edge. Check fringe background extension.
27699 Don't clear extended fringe background area.
27700 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
27701 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
27702 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
27703 [USE_MAC_TOOLBAR]: New macros.
27704 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
27705 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
27706 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
27707 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
27708 [USE_MAC_TOOLBAR]: New functions.
27709 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
27710 manually if previous repositioning has failed.
27711 (mac_handle_keyboard_event): Use precomputed event kind.
27712 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
27713 as tool bar item click. Handle mouse movement over tool bar items.
27714
27715 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
27716 toolbar_win_gravity.
27717 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
27718 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
27719 Add externs.
27720
27721 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
27722 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
27723
27724 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
27725
27726 * image.c (search_image_cache): Remove unused variable.
27727
27728 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
27729
27730 * xfns.c, xmenu.c: Link to xaw3d if available.
27731
27732 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27733
27734 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
27735 frame_foreground and frame_background.
27736
27737 * image.c (lookup_image): Save frame foreground and background colors.
27738 (search_image_cache): Check if saved and current frame colors match.
27739
27740 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
27741
27742 * regex.c (regex_compile): Remove the `regnum' counter.
27743 Use bufp->re_nsub instead. Add support for \(?N:RE\).
27744
27745 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
27746
27747 * term.c: Include intervals.h to declare Fget_text_property.
27748
27749 2007-06-10 Jason Rumney <jasonr@gnu.org>
27750
27751 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
27752
27753 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
27754
27755 * callint.c (Fcall_interactively):
27756 * editfns.c (Fdelete_and_extract_region):
27757 * fileio.c (Fread_file_name):
27758 * fns.c (Fmapconcat):
27759 * keyboard.c (cmd_error_internal):
27760 * keymap.c (Fkey_description):
27761 * lread.c (openp):
27762 * minibuf.c (read_minibuf):
27763 * search.c (wordify):
27764 * sunfns.c (sel_read):
27765 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
27766 * xfns.c (x_default_scroll_bar_color_parameter):
27767 * xmenu.c (menu_help_callback):
27768 * xselect.c (Fx_get_atom_name):
27769 * xterm.c (x_term_init): Use empty_unibyte_string.
27770
27771 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
27772
27773 * alloc.c (init_strings): Initialize canonical empty strings.
27774 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
27775 canonical empty string when the requested size is 0.
27776
27777 * emacs.c (empty_unibyte_string): Rename from empty_string.
27778 (empty_multibyte_string): New canonical empty string.
27779 (syms_of_emacs): Don't initialize empty_string.
27780
27781 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
27782 string, if appropriate.
27783 (empty_unibyte_string, empty_multibyte_string): New externs.
27784 (empty_string): Remove extern.
27785
27786 * lread.c (syms_of_lread): Use empty_unibyte_string.
27787
27788 2007-06-07 Jason Rumney <jasonr@gnu.org>
27789
27790 * s/ms-w32.h: Don't define HAVE_TZNAME.
27791
27792 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
27793
27794 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27795
27796 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
27797
27798 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
27799 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
27800
27801 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
27802 Don't call next handler.
27803 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
27804 Remove argument. Install handler to application.
27805 (set_frame_menubar): Don't change deep_p.
27806 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
27807 FRAME_OUTER_TO_INNER_DIFF_Y.
27808 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
27809 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
27810 [HAVE_DIALOGS]: New macros.
27811 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
27812 Use them.
27813 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
27814
27815 * macselect.c [MAC_OSX] (install_service_handler): Rename from
27816 init_service_handler. All callers changed. Return OSStatus value.
27817
27818 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
27819 All callers changed so as not to call SetPortWindowPort.
27820 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
27821 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
27822 mac_draw_string_common.
27823 (mac_draw_image_string_qd): Likewise.
27824 (mac_draw_string_common): Use them. Add INLINE.
27825 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
27826 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
27827 GetGlobalMouse.
27828 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
27829 and FRAME_OUTER_TO_INNER_DIFF_Y.
27830 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
27831 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
27832 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
27833 repositioning window to mac_handle_window_event.
27834 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
27835 saving window location to mac_handle_window_event
27836 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
27837 (install_menu_target_item_handler): Remove argument in extern.
27838 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
27839 Also accept command events.
27840 (do_keystroke): New function created from XTread_socket.
27841 (init_command_handler): Remove functions.
27842 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
27843 and save window location by kEventWindowShowing and kEventWindowHiding
27844 handlers here. Don't call next handler for window state change and
27845 focus events.
27846 (mac_handle_application_event, mac_handle_keyboard_event)
27847 [TARGET_API_MAC_CARBON]: New functions.
27848 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
27849 kEventWindowShowing and kEventWindowHiding events. Move installation
27850 of mouse, font, text input and menu target item handlers to
27851 install_application_handler.
27852 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
27853 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
27854 New function.
27855 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
27856 Register it.
27857 (XTread_socket) [TARGET_API_MAC_CARBON]:
27858 Consolidate SendEventToEventTarget calls.
27859 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
27860 Move application activation handler to mac_handle_application_event.
27861 Move keyboard handler to mac_handle_keyboard_event.
27862 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
27863 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
27864 init_command_handler. Call install_application_handler.
27865
27866 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
27867 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
27868
27869 2007-06-07 Glenn Morris <rgm@gnu.org>
27870
27871 * emacs.c (main): Use `emacs-copyright' in --version output.
27872
27873 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
27874
27875 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
27876
27877 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27878
27879 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
27880
27881 * macgui.h: Replace WindowPtr with WindowRef.
27882
27883 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
27884 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
27885 Replace ControlHandle with ControlRef.
27886 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
27887
27888 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
27889 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
27890 Replace ControlHandle with ControlRef.
27891 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
27892 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
27893
27894 * macterm.h (struct scroll_bar): Rename member control_handle_low
27895 and control_handle_high to control_ref_low and control_ref_high.
27896 All uses changed.
27897 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
27898 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
27899 respectively. All uses changed.
27900 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
27901 (install_window_handler, remove_window_handler): Replace WindowPtr
27902 with WindowRef in externs.
27903
27904 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
27905
27906 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
27907
27908 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
27909
27910 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
27911
27912 * frame.c (Fmouse_position, Fmouse_pixel_position):
27913 Condition on HAVE_GPM too.
27914
27915 * term.c (term_mouse_highlight): Remove unused variables.
27916 (Fterm_open_connection): Set gpm_zerobased to 1.
27917 (term_mouse_movement, term_mouse_click, handle_one_term_event):
27918 Use zero based co-ordinates.
27919 (handle_one_term_event): Report a drag as mouse movement too.
27920
27921 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
27922
27923 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
27924
27925 * image.c (search_image_cache): New function. Require background
27926 color match if background color is unspecified in the image spec.
27927 (uncache_image, lookup_image): Use it.
27928
27929 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
27930
27931 * window.c (Fshrink_window): Reflow docstring.
27932
27933 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
27934
27935 * Version 22.1 released.
27936
27937 2007-06-01 Richard Stallman <rms@gnu.org>
27938
27939 * xfns.c (x_encode_text): Add GCPRO.
27940
27941 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27942
27943 * xfns.c (x_set_name_internal): Save encoded name before
27944 x_encode_text in case string data is relocated.
27945
27946 2007-05-31 Richard Stallman <rms@gnu.org>
27947
27948 * buffer.c (syms_of_buffer): Doc fix.
27949
27950 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
27951
27952 * sysdep.c (init_sys_modes): Add rather than replace with
27953 O_NONBLOCK.
27954
27955 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
27956 term_mouse_moveto.
27957
27958 * termhooks.h (term_mouse_moveto): New extern.
27959
27960 * term.c (mouse_face_window): Rename...
27961 (Qmouse_face_window): ...to this.
27962 (term_show_mouse_face, term_clear_mouse_face)
27963 (term_mouse_highlight): Use Qmouse_face_window.
27964 (term_mouse_moveto): New function.
27965 (term_mouse_position): Make it work.
27966 (syms_of_term): Uncomment assignment to mouse_position_hook.
27967 Staticpro Qmouse_face_window.
27968
27969 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27970
27971 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
27972 around current_column call.
27973
27974 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
27975
27976 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
27977 * xdisp.c (next_element_from_buffer):
27978 * window.c (delete_window):
27979 * term.c (term_mouse_highlight):
27980 * msdos.c (getdefdir):
27981 * macterm.c (mac_create_bitmap_from_bitmap_data)
27982 (init_font_name_table):
27983 * fns.c (Fsxhash):
27984 * data.c (Fmake_local_variable):
27985 * ccl.c (ccl_driver): Likewise.
27986
27987 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27988
27989 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
27990 Call mac_wakeup_from_rne on window size change.
27991
27992 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
27993
27994 * image.c (uncache_image): Fix typo.
27995
27996 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
27997
27998 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
27999
28000 2007-05-22 Richard Stallman <rms@gnu.org>
28001
28002 * xterm.c (x_connection_closed): Remove NO_RETURN.
28003
28004 2007-05-22 Martin Rudalics <rudalics@gmx.at>
28005
28006 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
28007
28008 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
28009
28010 * image.c (uncache_image): New function.
28011 (Fimage_refresh): New function.
28012
28013 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
28014
28015 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
28016
28017 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
28018
28019 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
28020 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
28021
28022 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
28023
28024 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
28025 conditional on [HAVE_GPM_H].
28026
28027 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
28028
28029 * syntax.c (skip_chars): Update syntax-table only after we checked that
28030 the new location is valid.
28031
28032 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28033
28034 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
28035 mac_get_window_bounds.
28036
28037 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
28038
28039 * Makefile.in (LIBGPM): Allow it to be set from configure.
28040 If set then link Emacs with it.
28041
28042 * config.in: Regenerate.
28043
28044 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
28045 New externs.
28046
28047 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
28048 Include gpm.h.
28049 (handle_one_term_event, term_gpm): New externs.
28050
28051 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
28052 and allow it to be interrupted by SIGIO.
28053
28054 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
28055 (wait_reading_process_output): Wait on gpm_fd too.
28056 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
28057 (add_gpm_wait_descriptor_called_flag): New variable.
28058 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
28059
28060 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
28061 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
28062 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
28063 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
28064 (make_lispy_event): Add case GPM_CLICK_EVENT.
28065 (read_avail_input): Handle mouse input.
28066
28067 * term.c (write_glyphs_with_face): New function.
28068 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
28069 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
28070 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
28071 (mouse_face_face_id, term_gpm, pos_x, pos_y)
28072 (last_mouse_x, last_mouse_y): New variables.
28073 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
28074 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
28075 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
28076 (Fterm_close_connection): New functions.
28077 (term_init): Initialise mouse_face_window.
28078
28079 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
28080
28081 * xdisp.c (redisplay_window): If first window line is a
28082 continuation line, recompute the new window start instead of
28083 recentering.
28084
28085 2007-05-18 Glenn Morris <rgm@gnu.org>
28086
28087 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
28088 Suggested by Alfred M. Szmidt <ams@gnu.org>.
28089
28090 2007-05-17 Glenn Morris <rgm@gnu.org>
28091
28092 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
28093
28094 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28095
28096 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
28097 dead key repeat and up events.
28098
28099 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
28100
28101 * image.c (pbm_load): Check image size for monochrome pbm.
28102
28103 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
28104
28105 * xterm.c (XTread_socket): Revert last change.
28106
28107 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
28108
28109 * image.c (pbm_load): Correctly check image size for greyscale pbm.
28110
28111 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
28112
28113 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
28114
28115 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
28116 mixup (YAILOM).
28117
28118 2007-05-07 Andreas Schwab <schwab@suse.de>
28119
28120 * keymap.c (Flookup_key): Fix typo in last change.
28121
28122 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
28123
28124 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
28125 mapping for unibyte strings.
28126
28127 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28128
28129 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
28130 (Fx_popup_dialog) [MAC_OSX]: Likewise.
28131
28132 2007-04-29 Richard Stallman <rms@gnu.org>
28133
28134 * insdel.c (replace_range): For undo, record insertion first.
28135
28136 2007-04-29 Andreas Schwab <schwab@suse.de>
28137
28138 * lisp.h (VECSIZE): Use OFFSETOF.
28139
28140 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28141
28142 * xdisp.c (try_window_reusing_current_matrix): Fix number of
28143 disabled lines.
28144
28145 2007-04-28 Richard Stallman <rms@gnu.org>
28146
28147 * lread.c (read_escape): In a string, \s is always space.
28148
28149 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
28150
28151 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
28152
28153 * gtkutil.c (xg_update_menubar, create_menus): Create empty
28154 submenu for menu bar items.
28155
28156 See ChangeLog.10 for earlier changes.
28157
28158 ;; Local Variables:
28159 ;; coding: utf-8
28160 ;; add-log-time-zone-rule: t
28161 ;; End:
28162
28163 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
28164
28165 This file is part of GNU Emacs.
28166
28167 GNU Emacs is free software: you can redistribute it and/or modify
28168 it under the terms of the GNU General Public License as published by
28169 the Free Software Foundation, either version 3 of the License, or
28170 (at your option) any later version.
28171
28172 GNU Emacs is distributed in the hope that it will be useful,
28173 but WITHOUT ANY WARRANTY; without even the implied warranty of
28174 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28175 GNU General Public License for more details.
28176
28177 You should have received a copy of the GNU General Public License
28178 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
28179
28180 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40